model-monitoring-architect
Architect-level production model monitoring — input drift, prediction drift, delayed-label evaluation, per-segment performance, shadow deployment and feedback capture, and the alerting that says "the model is wrong" rather than "latency rose". Use when a model is live and nobody knows if it still works.
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- model-monitoring-architect
- license
- MIT
- metadata
- { "crusor-path": "ai-ml-architect/mlops-architect/model-monitoring-architect", "crusor-domain": "ai-ml-architect", "crusor-origin": "original", "crusor-sources": "evidentlyai.com/docs; docs.arize.com; cloud.google.com/vertex-ai/docs/model-monitoring", "crusor-triggers": "model monitoring, data drift, prediction drift, model decay, shadow deployment, feedback loop, model performance, drift alert", "crusor-verified-on": "2026-10-30" }
- description
- Architect-level production model monitoring — input drift, prediction drift, delayed-label evaluation, per-segment performance, shadow deployment and feedback capture, and the alerting that says "the model is wrong" rather than "latency rose". Use when a model is live and nobody knows if it still works.
- compatibility
- Evidently, WhyLabs, Arize, custom metrics
03 SKILL.md 正文
Model Monitoring Architect
Model monitoring answers "is the model still right?" — not "is the service up". Those are different systems, and only one of them shows model decay.
When to use
- A model's predictions drive decisions in production.
- A retraining schedule exists and its trigger needs evidence.
- A model silently degraded and nobody noticed for weeks.
When NOT to use
- The model is stateless, deterministic, and covered by normal tests.
- You have no ground truth and no proxies — establish a feedback path first.
Decision 1 — What to monitor
| Layer | Signal |
|---|---|
| inputs | distribution drift vs training baseline |
| predictions | score distribution, class mix, confidence |
| outcomes | accuracy once labels arrive; proxies until then |
| segments | per-cohort performance, not just aggregate |
| business | conversion, rejection rate, manual overrides |
- Aggregate health hides a segment that is broken — always monitor by cohort.
- A drift alert without a performance link is noise; measure both.
Decision 2 — Ground truth latency
- Labels arrive late (days, weeks) — define the expectation and track label lag.
- Proxies in the interim: user overrides, manual review outcomes, downstream conversion, escalation rate.
- Backfill evaluation windows when labels land; recompute historical performance.
- If no labels ever arrive, say so and design a sampling process.
Decision 3 — Drift detection
- Baseline = training distribution, plus a rolling recent window for comparison.
- Metrics: PSI/KL for numeric, chi-square for categorical, plus simple mean/variance.
- Threshold per feature based on business tolerance, not a universal 0.1.
- Alert on feature × segment where it matters; global drift can be a harmless mix shift.
Decision 4 — Deployment patterns that produce evidence
- Shadow: run the candidate in parallel, log predictions, compare to production before switching.
- Canary: small traffic share with guardrail metrics tied to the business.
- Champion/challenger: sustained comparison over a full cycle.
- Log features used at serving time; without them you cannot reproduce a prediction.
Decision 5 — Retraining triggers
| Trigger | Action |
|---|---|
| drift beyond threshold | evaluate retrain |
| performance below floor | retrain, escalate if unchanged |
| scheduled cadence | routine retrain |
| new segment growth | collect data, then retrain |
- Retraining is a pipeline run with eval gates, not a manual notebook.
- Track model version in every prediction log; a "regression" is often an old version still serving.
Decision 6 — Alerting quality
- Alert with the impact statement: which segment, what change, what threshold.
- Route to the model owner, with a runbook: check version, check input pipeline, check upstream schema, compare to shadow.
- Tune to few alerts; a channel with 200 weekly alerts is a dead channel.
- Review alert outcomes monthly; delete what never leads to action.
Failure modes at scale
- Latency and error-rate dashboards only; accuracy decayed for three months.
- Drift alert on a feature that changed because of a marketing campaign; ignored.
- Segment regression invisible in the aggregate metric.
- Retraining pipeline breaks silently; the model ages out over a quarter.
- Predictions logged without features; cannot reproduce or explain a complaint.
Verification receipts
- Monitoring plan: signals, thresholds, owners, alert routes.
- Drift report comparing a recent window to baseline.
- Delayed-label evaluation run once labels landed.
- Shadow deployment comparison for a candidate model.
- One alert triaged through the runbook, with the outcome recorded.
04 同仓库更多 Skills
interaction-patterns-architect
Architect-level interaction design in code — choosing established patterns over invented ones, feedback and latency behaviour, destructive-action safeguards, navigation and overlay conventions, and the state model behind every interactive surface. Use when a screen has to behave, not just look.
design-system-ops-architect
Architect-level operation of a design system in code — token pipelines and versioning, component API and variant policy, the catalogue as the contract, adoption metrics, and the governance that stops a system from forking into three. Use when a component library must survive several teams.
design-handoff-architect
Architect-level design handoff — what must be specified before implementation starts, tokens over raw values, responsive and content-limit contracts, state matrices, and the review loop that catches drift between design and code. Use when a design is about to become code.
content-microcopy-architect
Architect-level UI content — where strings live, voice and terminology consistency, error and empty-state copy as part of the interface, translation-ready authoring, and the content model a product needs before it multiplies screens. Use when the words in the interface matter as much as the pixels.
ui-ux-implementation-architect
Architect-level direction for turning a design into working UI — the handoff contract, component ownership versus screen-level layout, interaction and state conventions, design QA gates, and the review habits that keep an implementation faithful without frozen pixels. Use before any specific UI implementation skill.
test-strategy-architect
Architect-level test strategy — allocating assertions across unit, integration, contract and end-to-end layers, designing for testability through dependency boundaries, fixture and data strategy, and the flake and coverage policies that keep a suite trustworthy. Use when defining how a codebase is tested.