4.0 KiB
Generated Scene Source Evidence Cross-Scan Design
Date: 2026-04-20 Status: Draft Parent roadmap:
docs/superpowers/plans/2026-04-20-generated-scene-source-first-runtime-semantics-hardening-plan.md
Intent
Execute the first bounded child step of the source-first runtime semantics hardening roadmap:
scan the original 102 source scenes for high-signal runtime-semantics evidence
This design does not change analyzer, generator, manifests, or runtime behavior. It only defines how to scan original source-scene evidence so later rule-hardening routes can be derived from source truth rather than from already-generated skills alone.
Objective
For every scene in the current 102-scene set:
- locate the original source directory
- perform a bounded source evidence scan
- record whether source-side evidence exists for the five anchor gap classes:
invocation_alias_gapdictionary_recovery_gapparameter_default_semantics_gapresolver_to_request_mapping_gapruntime_url_semantics_gap
Scope
In scope:
- source directories under:
D:/desk/智能体资料/全量业务场景/一平台场景
- current 102-scene mapping from existing materialization / board assets
- bounded file-content scanning over high-signal files
- JSON ledger + human-readable report
Out of scope:
- any code change in
src/ - any generated skill change
- any rematerialization
- any execution board update
- any pseudo-production execution
Required Scan Targets
The scan should prioritize only high-signal evidence sources.
1. Invocation alias evidence
Signals:
- scene name variants
- menu labels
- button labels
- route names
- report titles
- user-facing Chinese phrases in HTML / JS
2. Dictionary recovery evidence
Signals:
city.jsdict.jsenum.jsoptions*.js- tree / option arrays with
label,value,code,children
3. Parameter default semantics evidence
Signals:
moment(dayjs(- default query parameter assignment
- implicit month/week/date initialization
4. Resolver-to-request mapping evidence
Signals:
$.ajaxfetchcontentType- request
data - request body field names
- mode-specific request payloads
5. Runtime URL semantics evidence
Signals:
- app entry URLs
- module route URLs
- API endpoint URLs
- host runtime / bootstrap page hints
Scan Strategy
This is not a full source index.
The scan should:
- use bounded heuristics and targeted filename/content patterns
- avoid exhaustive deep parsing of every file
- record evidence flags and representative evidence paths
- be sufficient to classify scenes for later hardening routes
Inputs
Primary inputs:
tests/fixtures/generated_scene/scene_skill_102_final_materialization_manifest_2026-04-19.jsontests/fixtures/generated_scene/scene_execution_board_2026-04-18.json- source root:
D:/desk/智能体资料/全量业务场景/一平台场景
Anchor validation source:
D:/desk/智能体资料/全量业务场景/一平台场景/台区线损大数据-月_周累计线损率统计分析
Output Artifacts
JSON
tests/fixtures/generated_scene/generated_scene_source_evidence_cross_scan_2026-04-20.json
Each scene record should include:
sceneIdsceneNamesourceDirevidenceFlagsevidenceFilesriskHints
Report
docs/superpowers/reports/2026-04-20-generated-scene-source-evidence-cross-scan-report.md
The report must answer:
- how many scenes show dictionary evidence
- how many scenes show default parameter semantics
- how many scenes show request field aliasing
- how many scenes show multi-URL semantics
- which scenes look most similar to
sweep-030-scene
Acceptance Criteria
This design is complete when:
- all 102 scenes are included in the cross-scan
- the five evidence families are explicit
- the output JSON structure is defined
- the scan remains analysis-only
Stop Statement
Stop after publishing the child design and child plan.
Do not execute the scan inside this design.