3.5 KiB
Timeout Rerun Hygiene Integration Plan
Date: 2026-04-19 Status: Draft Upstream Design:
docs/superpowers/specs/2026-04-19-timeout-rerun-hygiene-integration-design.mdUpstream Hygiene:tests/fixtures/generated_scene/timeout_budget_rerun_hygiene_2026-04-19.json
Plan Intent
Integrate timeout rerun hygiene into sweep and reconciliation reporting.
This plan only changes the reporting layer. It does not change scene generation behavior.
Scope Guardrails
- do not modify
src/generated_scene/analyzer.rs - do not modify
src/generated_scene/generator.rs - do not update
scene_execution_board_2026-04-18.json - do not promote scenes
- do not rerun the
102sweep - do not start timeout implementation fixes
Fixed Inputs
tests/fixtures/generated_scene/structured_fail_closed_improvement_followup_2026-04-19.jsontests/fixtures/generated_scene/timeout_budget_rerun_hygiene_2026-04-19.json
Phase 0: Freeze Inputs
Objective
Freeze the sweep follow-up and timeout hygiene inputs.
Tasks
- verify follow-up sweep status counts
- verify timeout hygiene summary:
rerun-resolved-pass = 2rerun-resolved-fail-closed = 1rerun-still-timeout = 0rerun-error = 0
Deliverables
- frozen integration input set
Acceptance Criteria
- only the fixed follow-up and hygiene inputs are used
Phase 1: Build Hygiene Overlay
Objective
Attach timeout hygiene results onto raw timeout scenes.
Tasks
- match timeout hygiene records to the follow-up sweep by
sceneId - preserve raw
source-unreadable - add:
hygieneStatushygieneInterpretation
- map:
rerun-resolved-pass -> timeout-as-pass-candidatererun-resolved-fail-closed -> timeout-as-fail-closed-candidatererun-still-timeout -> timeout-still-unreadablererun-error -> timeout-rerun-error
Deliverables
- timeout hygiene overlay records
Acceptance Criteria
- all three timeout scenes receive one overlay status
- raw status is preserved
Phase 2: Build Integrated Summary
Objective
Publish a hygiene-aware timeout summary alongside the raw sweep summary.
Tasks
- preserve raw follow-up status counts
- add hygiene-aware timeout interpretation counts
- summarize:
timeout-as-pass-candidatetimeout-as-fail-closed-candidatetimeout-still-unreadabletimeout-rerun-error
Deliverables
- integrated summary block
Acceptance Criteria
- raw and hygiene-aware summaries both exist
- timeout bucket is no longer lossy in the integrated output
Phase 3: Publish Integrated Output
Objective
Publish the bounded reconciliation-friendly hygiene integration output.
Tasks
- write
tests/fixtures/generated_scene/timeout_rerun_hygiene_integration_2026-04-19.json - write
docs/superpowers/reports/2026-04-19-timeout-rerun-hygiene-integration-report.md - state that this is an interpretation/reporting layer only
Deliverables
- timeout hygiene integration JSON
- timeout hygiene integration report
Acceptance Criteria
- both files exist
- no execution board update is made
- no implementation change is made
Completion Criteria
This plan is complete when:
- inputs are frozen
- timeout hygiene overlay is attached
- integrated raw and hygiene-aware summaries are published
- JSON and report are written
Stop Statement
Stop after publishing the integration JSON and report.
Do not start implementation or board updates inside this plan.