5.0 KiB
Structured Fail-Closed Improvement Roadmap Design
Date: 2026-04-19 Status: Draft Upstream Reconciliation:
tests/fixtures/generated_scene/full_sweep_status_reconciliation_2026-04-19.json
Intent
Turn the 48 structured fail-closed records from the reconciled 102 sweep into a governed improvement roadmap.
The objective is not to weaken gates or inflate auto-pass. The objective is to classify contract gaps, identify the highest-value bounded correction slices, and then improve generic scene-to-skill conversion where evidence can be recovered safely.
Current Reconciled Baseline
After status reconciliation, the 102 scene set is:
| Reconciled status | Count |
|---|---|
auto-pass |
48 |
fail-closed-known |
48 |
adjudicated-valid-host-bridge |
4 |
source-unreadable |
2 |
missing-source |
0 |
unsupported-family |
0 |
The 4 raw route conflicts are no longer unresolved route bugs. They are valid host-bridge workflows.
This roadmap therefore focuses on fail-closed-known = 48.
Fail-Closed Buckets
| Inferred archetype | Reason | Count |
|---|---|---|
paginated_enrichment |
workflow evidence is incomplete before package generation |
35 |
local_doc_pipeline |
workflow evidence is incomplete before package generation |
5 |
multi_mode_request |
workflow evidence is incomplete before package generation |
4 |
single_request_enrichment |
workflow evidence is incomplete before package generation |
2 |
host_bridge_workflow |
workflow evidence is incomplete before package generation |
1 |
page_state_eval |
bootstrap_target |
1 |
The first priority is the 35 paginated_enrichment records because they are the largest bucket and map to the most important currently generic workflow family.
Scope Guardrails
In scope:
- classify the
48structured fail-closed records by missing contract piece - prioritize bounded correction slices
- implement bounded evidence recovery only after classification shows repeated recoverable patterns
- keep all fail-closed semantics intact
- rerun a bounded follow-up sweep after corrections
Out of scope:
- adding new scene families
- starting
G4/G5 - login recovery
- full browser host runtime transport
- local document attachment runtime
- auto-promoting scenes into the execution board
- weakening readiness gates to increase pass counts
- reopening the already adjudicated
4valid-host-bridge workflows - handling the
2remaining timeout records in this roadmap
Workstreams
WS1Fail-Closed Inventory and Gap TaxonomyWS2G3 Paginated Enrichment Contract RecoveryWS3Small-Bucket Contract RecoveryWS4Bootstrap Target IsolationWS5Follow-Up Sweep and Coverage Delta
Gap Taxonomy
Every structured fail-closed record must receive one primary missing-contract label:
main_request_missingpagination_plan_missingenrichment_request_missingjoin_key_missingexport_plan_missingmode_matrix_missingmode_request_contract_missingsingle_request_enrichment_contract_missinghost_bridge_contract_missinglocal_doc_contract_missingbootstrap_target_unresolvedmixed_or_ambiguous_contract_gap
Secondary labels may be added, but every record must have exactly one primary label.
Correction Strategy
Corrections must be pattern-based, not scene-by-scene.
Allowed correction types:
- bounded evidence extraction for repeated field names or workflow structures
- bounded IR fallback only when evidence is explicit and traceable
- more specific fail-closed reason reporting
- regression tests for each recovered pattern
Forbidden correction types:
- hard-coding a scene name to pass
- converting fail-closed records to pass without closing the contract
- broad route-precedence rewrites
- disabling or relaxing gates
Expected Outputs
tests/fixtures/generated_scene/structured_fail_closed_inventory_2026-04-19.jsontests/fixtures/generated_scene/structured_fail_closed_improvement_followup_2026-04-19.jsondocs/superpowers/reports/2026-04-19-structured-fail-closed-inventory-report.mddocs/superpowers/reports/2026-04-19-structured-fail-closed-improvement-coverage-delta-report.mddocs/superpowers/reports/2026-04-19-structured-fail-closed-improvement-roadmap-closure-report.md
Acceptance Criteria
- all
48fail-closed records are inventoried - all
48records have exactly one primary missing-contract label - the
35paginated_enrichmentrecords are split into actionable G3 gap groups - implementation, if performed, is limited to repeated recoverable patterns
- no adjudicated host-bridge record is reopened
- follow-up results are measured against the reconciled baseline
- execution board status remains unchanged
Completion Signal
The roadmap is complete when the 48 structured fail-closed records are no longer a single broad bucket and the follow-up sweep quantifies whether bounded evidence recovery improved safe conversion coverage.