Skill: task-postflight — Post-dispatch validation + learning loop

Skill: task-postflight — Post-dispatch validation + learning loop

Skill path: ~/.claude/skills/task-postflight/

Description

Closes the loop on H/BLOCKER MC tasks after specialist dispatch. Runs Proveo (Angie Jones) validation against MC acceptance criteria, detects anomalies, invokes /learning-opportunity if anomaly found (root cause + memory entry), and writes mc.js ready submission with evidence path.

Trigger: /task-postflight <mc_id>

Use AFTER: Specialist dispatch completes for any task that went through /prompt-forge or any H/BLOCKER task.

Workflow

  1. Preconditions: Verify MC task exists, status is in_progress, evidence dir exists (or flag MISSING)
  2. Proveo dispatch: Spawn Angie Jones (Proveo) to validate against acceptance criteria
  3. Anomaly detection: Parse Proveo report, classify failure type and severity
  4. Learning-opportunity: Invoke learning loop on PARTIAL/FAIL verdicts (skip if PASS or known issue)
  5. Memory entry: Write feedback file if learning-opportunity returns memory path
  6. MC ready: Submit mc.js ready with evidence summary (or BLOCK on FULL_FAILURE)
  7. Audit trail: Append JSON line to ~/system/postflight-log.jsonl

Proveo Integration

Angie Jones (Proveo) validates against MC acceptance criteria. Expected output:

Report written to: /tmp/postflight-<mc_id>/proveo-report.md

Anomaly Classification

Verdict Anomaly Class Action
PASS (all criteria) ANOMALY:NONE Skip to mc.js ready
PASS (some SKIP) ANOMALY:PARTIAL_COVERAGE Learning-opportunity (LOW severity)
PARTIAL ANOMALY:PARTIAL_FAILURE Learning-opportunity (MEDIUM severity)
FAIL ANOMALY:FULL_FAILURE Learning-opportunity (HIGH severity) + BLOCK mc.js ready
Proveo timeout/error SYNTHESIS:DEGRADED Inline fallback check + escalate to John

Learning-Opportunity Loop

Invoked when anomaly class is not NONE. Receives:

Expected output:

Skip learning-opportunity if:

Cost and Limits

Failure Modes

Condition Action
Proveo unavailable SYNTHESIS:DEGRADED — inline fallback, flag in mc.js notes, escalate
Proveo timeout Same as unavailable
learning-opportunity fails Log LEARNING:FAILED, skip memory entry, continue with warning
MEMORY.md write fails Log error, skip index update, include content inline in mc.js notes
ANOMALY:FULL_FAILURE Block mc.js ready, write failure-summary.md, report re-dispatch required

Audit Trail

Every invocation appends one JSON line to ~/system/postflight-log.jsonl:

{"mc_id":9959,"timestamp":"2026-04-28T12:12:00Z","proveo_verdict":"PASS","anomaly_class":"NONE","learning_invoked":false,"ready_status":"submitted","cost_estimate":"$0.15"}

Log is lightweight observability — does NOT replace evidence files.

v0.1 Deferred (post-Akershus 2026-05-04)

References


Author: ALAI, 2026

Last updated: 2026-04-28


Revision #2
Created 2026-04-28 10:15:44 UTC by John
Updated 2026-05-31 20:06:41 UTC by John