Skip to content

📈 7 — Learn ​

Learn watches production outcomes, opens backlog issues, and improves context and controls.

Purpose ​

InputOutputOwner
Production telemetry, customer behavior, incidents, costEarly warnings, validated or invalidated hypotheses, new backlog issues, improved Persistent Context and Deterministic ControlsQA and maintainer

What is observed ​

DimensionExamplesFeeds
OutcomeThe outcome metric committed in the 1 — Triage backlog issueWas it worth building?
System healthLatency, error rate, saturation, availabilityIncident response
FlowLead time, deployment frequency, change failure rate, time to restoreMetrics
AI leverageAcceptance rate, rework rate, cost per changeModel and prompt evaluations
CostInfrastructure and model spend per squad and per featurePrioritization

Predictive monitoring ​

AI compares telemetry with baselines and the Triage outcome metric. It flags anomalies and worsening trends, such as rising errors, saturation, or cost.

StepWhat happensWho decides
DetectAI flags an anomaly or a trend that is heading toward a thresholdAI proposes
ExplainAI correlates logs, traces, deploys, and recent diffs to the likely causeQA and maintainer confirms
ActMitigate early, open a backlog issue in 1 — Triage, to tighten the control that should have caught itQA and maintainer decides; the rollback thresholds in 6 — Release still trigger automatic rollback

What monitoring learns can flow back into Persistent Context, and missed signals should become stricter Deterministic Controls.

The hypothesis ledger ​

Every work item that named an outcome metric is reviewed after its watch window.

VerdictMeaningNext action
ValidatedMetric moved as predictedInvest further, remove the flag
InconclusiveNo detectable movementDecide: iterate once, or remove
InvalidatedMetric did not move, or moved against usRemove the feature, record the lesson

Delete invalidated features. Dead code adds complexity to every future change.

Incidents ​

  1. Detect — alert or customer report.
  2. Mitigate — flag, rollback, or forward fix. Mitigation precedes diagnosis.
  3. Diagnose — AI correlates logs, traces, deploys, and recent diffs; humans conclude.
  4. Repair — add a test that reproduces the defect, confirm it fails, then fix the defect and confirm the test passes (Prove).
  5. Learn — review the incident within five working days.

Hardening Deterministic Controls ​

For every defect, rollback, or near-miss, ask: which control should have caught it?

  • A check was missing → add a guard, gate, contract, or probe.
  • A signal arrived too late → add an earlier probe.

Agents and skills ​

Learn closes the development feedback loop, running on primitives published by coding-pal:

Analysis & Governance Primitives ​

  • A Learn Analyst agent processes telemetry exports, correlates deployment histories, evaluates hypothesis outcome metrics, and drafts incident reviews.
  • A learn instruction enforces evidence discipline: mitigation precedes diagnosis, fixes require a failing test first, invalidated features are deleted, and only humans record verdicts.

Production Incident & Telemetry Skills ​

  • A telemetry-scan skill analyzes time-series metrics to identify early anomalies, degradation trends, and threshold breaches alongside preceding deploys.
  • An incident-record skill formats and validates docs/incidents/ records: guarantees mitigation timestamps precede diagnosis, links failing reproduction tests, and schedules retrospective reviews.

Hypothesis & Context Stewardship Skills ​

  • A hypothesis-ledger skill maintains specs/learn/hypotheses.md, comparing observed production metrics against declared targets and proposing verdicts (Validated, Inconclusive, Invalidated) for the Product Owner to decide.
  • A context-health skill audits instruction sets and analyzes corrections logs to suggest new or pruned Persistent Context artifacts.

Loop Closure ​

  • A learn-signals skill translates production findings, control hardening items, and invalidated hypotheses into new backlog issues for 1 — Triage, ensuring the factory continuously learns.

See the coding-pal Learn guide.

Exit gate ​

The loop closes when a Learn output has become a new backlog issue in 1 — Triage.

Published and maintained by ALTEN