5.6 KiB
G3 Real Sample Runtime Contract Correction Plan
Date: 2026-04-19 Status: Draft Upstream Spec: 2026-04-19-g3-real-sample-runtime-contract-correction-design.md Trigger Report: 2026-04-19-g3-real-sample-archetype-correction-closure-report.md
Plan Intent
This plan implements the next bounded scope selected after G3 archetype correction:
mainline G3 real-sample runtime / contract correction
Its purpose is to narrow the remaining real-sample gap from a coarse runtime-scope failure to the smallest accurate contract state.
Scope Guardrails
- do not reopen the completed
G3archetype-correction scope - do not broaden this work into
G8runtime implementation - do not open
G4 / G5 - do not add new family-expansion fixtures unrelated to the real-sample mismatch
- do not weaken fail-closed behavior for incomplete
G3scenes - do not update validation assets until the rerun result changes
Workstreams
WS1Runtime-Scope DifferentialWS2G3 Runtime-Scope Gate NarrowingWS3Regression and Fail-Closed IntegrityWS4Real-Sample Rerun and Closure
Phase 0: Freeze the Correction Boundary
Objective
Lock the scope to one remaining mismatch: G3 real-sample runtime scope compatibility.
Tasks
- freeze
95598工单明细表as the only correction anchor - freeze current remaining mismatch:
runtime_scope_gapoutput_contract_not_verified
- freeze current
G8behavior as a boundary-family constraint that must not regress
Deliverables
- correction-boundary note
- fixed runtime-gap statement
Acceptance Criteria
- no additional family or runtime scope is added under this plan
- the correction target is explicitly
G3 runtime scope, not a broader runtime program
Phase 1: Build the Runtime-Scope Differential
Objective
Understand why the current gate still marks the real sample as runtime-incompatible.
Tasks
- compare current
G3runtime-scope gate logic against the corrected real-sample evidence - isolate which localhost evidence should remain subordinate
- isolate what dominant-runtime pattern should still fail closed
- write a minimum gate-narrowing summary before code changes begin
Deliverables
- runtime-scope differential note
- gate-narrowing summary
Acceptance Criteria
- the minimum change to
g3_runtime_scope_compatibleis explicit - the team can distinguish subordinate host-runtime evidence from dominant runtime takeover
Phase 2: Narrow the G3 Runtime-Scope Gate
Objective
Allow valid G3 real samples with subordinate localhost evidence to stay runtime-compatible.
Tasks
- narrow
g3_runtime_scope_compatibleso it considers business-chain dominance, not only localhost evidence count - preserve fail-closed behavior for scenes whose business chain is still not dominant
- keep
G8representative behavior intact
Deliverables
- generator gate update
- explicit regression rule for subordinate localhost evidence inside
G3
Acceptance Criteria
- the corrected real sample no longer fails the runtime-scope gate for the old coarse reason
G8representative classification remains intact- incomplete
G3scenes still fail closed forG3reasons
Phase 3: Lock Regression and Fail-Closed Integrity
Objective
Prove the narrowed gate does not create a pseudo-runnable class of scenes.
Tasks
- add regression for real-sample-like
G3with subordinate localhost evidence - retain
G8regression and mixed-boundary regression - verify unresolved
G3scenes still fail closed when business-chain dominance is absent
Deliverables
- regression tests for
G3 runtime scope - updated assertions where needed
Acceptance Criteria
- no regression causes
G8to disappear as a boundary archetype - no regression causes unrelated
single_request_tableor other families to drift - test coverage explicitly names the corrected runtime-scope pattern
Phase 4: Rerun the Real Sample and Close the Loop
Objective
Use the actual real sample to confirm the narrowed runtime-scope outcome and record the next state.
Tasks
- rerun
sg_scene_generateon95598工单明细表 - record whether:
g3_runtime_scope_compatiblenow passes- remaining mismatch, if any, is narrower than runtime-scope failure
- update the real-sample validation record layer
- write a formal closure report
Deliverables
- rerun output
- updated real-sample validation assets
G3runtime-contract-correction closure report
Acceptance Criteria
- the rerun no longer fails for
g3_runtime_scope - the validation layer records the narrowed family outcome
- the next scope recommendation can move from
G3 runtime correctionto the next remaining mainline gap
Completion Criteria
This plan is complete when:
- the
G3real sample no longer fails for the old coarse runtime-scope reason - the narrowed gate is covered by automated regression
- real-sample validation assets are updated with the new outcome
G8remains a valid boundary-family archetype with no unintended regression
Next Step
After this plan completes:
- if
G3still has a narrower output or data-verification gap, move toG3real-sample output or contract verification - if
G3stabilizes, return to the next mainline mismatch in priority order, which isG2real-sample contract correction