feat(gstack2): port 6 judgment overlays (#1102 #1049 #592 #696 #1523 #1053)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Claude
2026-07-21 19:19:23 -07:00
parent 268e9ed10b
commit d72133e18e
30 changed files with 503 additions and 40 deletions
+5 -5
View File
@@ -82,7 +82,7 @@ function assertInventory(): void {
}
if (legacySections().length !== 16) throw new Error(`Expected 16 section templates, found ${legacySections().length}`);
if (SCENARIOS.length !== 25) throw new Error(`Expected 25 parity scenarios, found ${SCENARIOS.length}`);
if (BUG_FIX_OVERLAYS.length !== 16) throw new Error(`Expected 16 upstream judgment overlays, found ${BUG_FIX_OVERLAYS.length}`);
if (BUG_FIX_OVERLAYS.length !== 22) throw new Error(`Expected 22 upstream judgment overlays, found ${BUG_FIX_OVERLAYS.length}`);
}
function toc(body: string): string {
@@ -742,7 +742,7 @@ ${rows}
## Mechanical versus judgment changes
- \`JUDGMENT_PRESERVING_CARVE\`: pinned specialist workflow with the retired shared onboarding wrapper excluded, retired invocations resolved to six public routes, host/runtime paths normalized, and large carved phases loaded lazily from package-local pinned references.
- \`BUG_FIX\`: the canonical carved body plus a clearly delimited judgment overlay sourced from one of the 16 upstream PRs and its regression fixture.
- \`BUG_FIX\`: the canonical carved body plus a clearly delimited judgment overlay sourced from one of the 22 upstream PRs and its regression fixture.
- Asset relocation is byte-for-byte from the pinned Git blob and is indexed per tree.
`;
}
@@ -763,7 +763,7 @@ function parityDoc(assetCount: number): string {
Parity is executable, not a prose claim. Run \`bun run scripts/gstack2/run-parity.ts\` or the dedicated Bun tests.
The pinned release inventory passes **${EXPECTED_PARITY_CHECKS.toLocaleString('en-US')} checks** across 55 specialist sources, 16 carved sections, 25 routing scenarios, 16 regression ports, and **${assetCount} assets**.
The pinned release inventory passes **${EXPECTED_PARITY_CHECKS.toLocaleString('en-US')} checks** across 55 specialist sources, 16 carved sections, 25 routing scenarios, 22 regression ports, and **${assetCount} assets**.
The suite verifies:
@@ -772,7 +772,7 @@ The suite verifies:
- immutable full 1.x render hashes plus canonical specialist-render equality, with the excluded onboarding wrapper and lazy section references asserted explicitly;
- preservation of nine behavioral contract dimensions per module;
- 25 structured non-keyword routing fixtures with active/skipped modules, depth, mutation, and web context;
- 16 upstream judgment-port regression fixtures and anchors;
- 22 upstream judgment-port regression fixtures and anchors;
- all linked asset copies against their pinned Git blobs;
- frontmatter and \`agents/openai.yaml\` schema for each public skill.
@@ -922,7 +922,7 @@ function main(): void {
schema_version: 1,
base_sha: GSTACK2_BASE_SHA,
public_skills: [...TREE_NAMES],
counts: { public_skills: 6, mandatory_inputs: 31, templates: 55, section_templates: 16, packaged_section_copies: sectionCopies.length, internal_execution_adapters: 1, scenarios: 25, bug_fix_ports: 16, assets: assets.length, dependency_copies: dependencyCopies.length, runtime_helpers: runtimeHelpers.length },
counts: { public_skills: 6, mandatory_inputs: 31, templates: 55, section_templates: 16, packaged_section_copies: sectionCopies.length, internal_execution_adapters: 1, scenarios: 25, bug_fix_ports: 22, assets: assets.length, dependency_copies: dependencyCopies.length, runtime_helpers: runtimeHelpers.length },
sources: sourceRecords,
sections: sectionRecords,
section_copies: sectionCopies,