4.3 KiB
G2 Real Sample Contract Correction Design
Date: 2026-04-19 Status: Draft Upstream Roadmap: 2026-04-18-scene-skill-real-sample-validation-roadmap-plan.md Trigger Record:
rsv-g2-001
1. Intent
This bounded design defines the next mainline correction slice after G3 is closed as an executed pass.
The only target is:
G2 real-sample contract correction
The purpose is to reduce the current G2 real-sample mismatch from a broad first-round failure bundle into either:
- a corrected executable pass
- or a smaller named contract mismatch
2. Current Trigger
The current real-sample validation record for G2 is:
recordId = rsv-g2-001validationState = executed-mismatchmismatchCodes = [archetype_mismatch, bootstrap_mismatch, request_contract_missing, column_defs_missing]
From the current mainline status, G2 is now the strongest unresolved real-sample pressure.
3. Scope Boundary
This design is strictly bounded to the real-sample contract gap for the fixed G2 anchor:
台区线损大数据-月_周累计线损率统计分析
The correction scope is limited to:
- bootstrap target correctness
- request contract correctness
- column-definition correctness
- output-contract correctness
This design does not reopen:
- completed
G2family expansion work - new
G2candidate promotion G1-EG3G6 / G7 / G8G4 / G5- login recovery or broader runtime-platform work
4. Problem Statement
The current mismatch is no longer about whether G2 exists as a family.
That work is already closed at the repo-local family layer.
The current problem is narrower:
- the fixed real sample still does not close against the intended
tq-lineloss-report-level business contract - the validation layer still records a compound mismatch instead of a narrowed real-sample outcome
Based on the real-sample analysis and existing G2 remediation reports, the remaining pressure should be treated as a contract-alignment issue around:
- target bootstrap surface
- mode-specific request template completeness
- output column semantics
- output correctness against the intended lineloss artifact
5. Correction Principles
The correction must obey these principles:
- prefer narrowing the current real-sample mismatch over broad family refactoring
- preserve
fail-closedbehavior for unresolvedG2variants - do not broaden
G2routing into unrelated line-loss-like scenes - keep the correction anchored on the fixed real sample rather than batch fixtures
- only update validation assets after the real-sample outcome becomes narrower than the current broad mismatch bundle
6. Target Outcome
The target outcome is one of two bounded states:
A. Preferred outcome
rsv-g2-001 becomes:
executed-pass
B. Acceptable narrower outcome
rsv-g2-001 remains executed-mismatch, but with a smaller named mismatch such as:
- bootstrap-only mismatch
- request-contract-only mismatch
- column-contract-only mismatch
- output-contract-only mismatch
The design explicitly rejects leaving G2 unchanged at the same coarse four-code mismatch bundle.
7. Required Verification Surfaces
The correction must be verified against these surfaces:
- real generated
generation-report.json - intended
tq-lineloss-reportsemantic baseline - automated regression that names the corrected real-sample pattern
- validation-layer assets:
real_sample_validation_records_2026-04-18.jsonscene_execution_board_2026-04-18.jsonboundary_runtime_entry_rules_2026-04-18.jsonif prioritization changes
8. Out of Scope
The following are explicitly out of scope for this design:
- promoting more
G2fixtures - redesigning all
G2subtype handling - rewriting the general
multi_mode_requestcompiler - opening a new
G2family roadmap - changing unrelated validation records
9. Exit Condition
This design is complete when implementation can be bounded to a single plan that:
- freezes the fixed
G2real sample - isolates the remaining bootstrap/request/column/output gap
- narrows the real-sample outcome
- updates validation assets without reopening family-expansion work