4.2 KiB
Generated Scene Source-First Runtime Semantics Ledger Plan
Date: 2026-04-20 Status: Draft Parent roadmap:
docs/superpowers/plans/2026-04-20-generated-scene-source-first-runtime-semantics-hardening-plan.mdParent design:docs/superpowers/specs/2026-04-20-generated-scene-source-first-runtime-semantics-ledger-design.mdUpstream completed step:docs/superpowers/plans/2026-04-20-generated-scene-source-evidence-cross-scan-plan.md
Plan Intent
Build the full source-first runtime-semantics ledger for the current 102-scene set.
This stage exists to convert the completed source cross-scan into a reusable comparison ledger before any analyzer/generator hardening route is defined.
Fixed Inputs
tests/fixtures/generated_scene/generated_scene_source_evidence_cross_scan_2026-04-20.jsonexamples/scene_skill_102_final_materialization_2026-04-19/skillstests/fixtures/generated_scene/scene_skill_102_deterministic_invocation_readiness_after_keyword_refinement_2026-04-20.jsontests/fixtures/generated_scene/scene_skill_102_natural_language_parameter_readiness_2026-04-20.jsontests/fixtures/generated_scene/scene_skill_102_parameter_dictionary_template_normalization_2026-04-20.jsonsweep-030-sceneinner-network findings already established in prior discussion and analysis assets
Scope Guardrails
Allowed:
- read source cross-scan outputs
- read current generated skills and references
- compare source evidence with generated evidence
- assign gap classes, risk levels, and route hints
- publish ledger JSON and report
Forbidden:
- no implementation changes in
src/ - no manifest or script edits
- no rematerialization
- no validation reruns
- no execution-board update
- no inner-network testing
Phase 0: Freeze Ledger Inputs
Objective
Make the cross-scan asset and current generated-skill assets the only valid inputs for this ledger stage.
Tasks
- verify the cross-scan JSON parses
- verify all 102 scenes are represented
- verify the current generated skill root is readable
Acceptance
- the ledger stage starts from a stable 102-scene evidence base
Phase 1: Build Per-Scene Comparison Records
Objective
For each scene, merge source evidence with generated-skill evidence into one comparison record.
Tasks
- load source evidence flags, evidence files, alias samples, request tokens, and runtime URL samples
- read current scene-level generated manifests/references as needed
- summarize generated-side evidence for:
- invocation aliases
- dictionaries
- parameter defaults
- request mapping
- runtime URL roles
- write one comparison record per scene
Acceptance
- all 102 scenes have both source-side and generated-side summaries
Phase 2: Assign Gap Classes and Risk Levels
Objective
Convert comparison records into a stable runtime-semantics risk ledger.
Tasks
- assign
gapsfrom the fixed five-class taxonomy - assign
riskLevel = high|medium|low - assign:
generatorLevelGapruntimeOnlyResidual
- record
comparisonNotes
Acceptance
- every scene has
gaps - every scene has
riskLevel - every scene has
recommendedFixRoutes
Phase 3: Aggregate Route-Level Signals
Objective
Produce route-level reuse signals from the scene ledger so the next stage can design bounded hardening routes.
Tasks
- count scenes carrying each gap class
- count scenes marked
generatorLevelGap - count scenes marked
runtimeOnlyResidual - identify the highest-density reusable route clusters
Acceptance
- the ledger can drive downstream route prioritization without returning to anecdotal scene debugging
Deliverables
tests/fixtures/generated_scene/generated_scene_source_first_runtime_semantics_ledger_2026-04-20.jsondocs/superpowers/reports/2026-04-20-generated-scene-source-first-runtime-semantics-ledger-report.md
Expected Coverage
The ledger should represent:
- all 102 scenes
- all five canonical gap classes
- source-first route hints derived from the completed cross-scan
Stop Statement
Stop after:
- publishing the ledger JSON
- publishing the ledger report
- summarizing the highest-reuse hardening routes
Do not yet create implementation route plans inside this ledger plan.