Skip to content

Commit 5cb8d14

Browse files
V43 Gate 1: Repair promoted canon predicates
Update historical V40 and V42 protocol predicates to accept the promoted V42 / draft V43 roadmap posture instead of requiring V41 active or a V42 working gate. Add V42 to the protocol package boundary active/draft version table so the promoted canon pointer is accepted. Proof: pnpm --filter @bitcode/protocol test; pnpm run check:v43-gate1; node scripts/check-bitcode-spec-family.mjs --version V43 --mode draft --current-target V42; node scripts/check-bitcode-canonical-inputs.mjs --current-target V42; node scripts/check-bitcode-canon-posture-drift.mjs --active-canon V42 --draft-target V43; git diff --check.
1 parent 5e9557c commit 5cb8d14

7 files changed

Lines changed: 21 additions & 6 deletions

packages/protocol/src/canonical/v40-api-integration-contracts.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,8 @@ function buildPredicateResults(repoRoot) {
368368
predicateResult(
369369
'roadmap-documents-v41-prompt-programs',
370370
'SPECIFICATIONS_ROADMAP.md',
371-
roadmap.includes('| V41 | `BITCODE_SPEC_V41.md` | active canon | Prompt and PromptPart excellence') &&
371+
roadmap.includes('| V41 | `BITCODE_SPEC_V41.md` |') &&
372+
roadmap.includes('Prompt and PromptPart excellence') &&
372373
roadmap.includes('meaningfully benchmarkable semantic parts'),
373374
),
374375
...rowPredicates,

packages/protocol/src/canonical/v40-conversation-terminal-integration.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,8 @@ function buildPredicateResults(repoRoot) {
482482
predicateResult(
483483
'roadmap-preserves-v41-prompt-programs',
484484
'SPECIFICATIONS_ROADMAP.md',
485-
roadmap.includes('| V41 | `BITCODE_SPEC_V41.md` | active canon | Prompt and PromptPart excellence') &&
485+
roadmap.includes('| V41 | `BITCODE_SPEC_V41.md` |') &&
486+
roadmap.includes('Prompt and PromptPart excellence') &&
486487
roadmap.includes('prompts as programs'),
487488
),
488489
...rowPredicates,

packages/protocol/src/canonical/v40-reading-pipeline-integration-coverage.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,8 @@ function buildPredicateResults(repoRoot) {
500500
predicateResult(
501501
'roadmap-preserves-v41-prompt-programs',
502502
'SPECIFICATIONS_ROADMAP.md',
503-
roadmap.includes('| V41 | `BITCODE_SPEC_V41.md` | active canon | Prompt and PromptPart excellence') &&
503+
roadmap.includes('| V41 | `BITCODE_SPEC_V41.md` |') &&
504+
roadmap.includes('Prompt and PromptPart excellence') &&
504505
roadmap.includes('prompts as programs'),
505506
),
506507
...rowPredicates,

packages/protocol/src/canonical/v42-depositing-shortest-path.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,11 @@ function buildPredicateResults(repoRoot) {
220220
predicateResult(
221221
'roadmap-records-gate2-closure',
222222
SOURCE_ROOTS.roadmap,
223-
roadmap.includes('Current working gate: V42 Gate') && roadmap.includes('V42 Gate 2 closure anchor'),
223+
roadmap.includes('V42 Gate 2 closure anchor') &&
224+
(roadmap.includes('Current working gate: V42 Gate') ||
225+
roadmap.includes('Latest closed version: V42 Reliable MVP Experience') ||
226+
roadmap.includes('Recent V42 canonical promotion anchor') ||
227+
roadmap.includes('Current working gate: V43 Gate')),
224228
),
225229
];
226230
}

packages/protocol/src/canonical/v42-local-staging-mvp-rehearsal.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,10 @@ function buildPredicateResults(repoRoot) {
330330
SOURCE_ROOTS.roadmap,
331331
sources.roadmap.includes('V42 Gate 8 closure anchor') &&
332332
(sources.roadmap.includes('Current working gate: V42 Gate 8') ||
333-
sources.roadmap.includes('Current working gate: V42 Gate 9')),
333+
sources.roadmap.includes('Current working gate: V42 Gate 9') ||
334+
sources.roadmap.includes('Latest closed version: V42 Reliable MVP Experience') ||
335+
sources.roadmap.includes('Recent V42 canonical promotion anchor') ||
336+
sources.roadmap.includes('Current working gate: V43 Gate')),
334337
),
335338
predicateResult('readmes-document-gate8', SOURCE_ROOTS.rootReadme, sources.rootReadme.includes('V42 Gate 8') && sources.protocolReadme.includes('V42LocalStagingMvpRehearsal') && sources.assetPackReadme.includes('ReadingLocalStagingRehearsal') && sources.terminalReadme.includes('local/staging')),
336339
];

packages/protocol/src/canonical/v42-reading-shortest-path-state-machine.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,11 @@ function buildPredicateResults(repoRoot) {
257257
predicateResult(
258258
'roadmap-records-gate3-closure',
259259
SOURCE_ROOTS.roadmap,
260-
roadmap.includes('Current working gate: V42 Gate') && roadmap.includes('V42 Gate 3 closure anchor'),
260+
roadmap.includes('V42 Gate 3 closure anchor') &&
261+
(roadmap.includes('Current working gate: V42 Gate') ||
262+
roadmap.includes('Latest closed version: V42 Reliable MVP Experience') ||
263+
roadmap.includes('Recent V42 canonical promotion anchor') ||
264+
roadmap.includes('Current working gate: V43 Gate')),
261265
),
262266
predicateResult('readmes-document-gate3', SOURCE_ROOTS.rootReadme, rootReadme.includes('V42 Gate 3') && terminalReadme.includes('TerminalEnterpriseReadingUxState') && protocolReadme.includes('V42 Reading shortest path')),
263267
];

packages/protocol/test/protocol-package-boundary.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ test('@bitcode/protocol commercial formalization exports package-native canon he
6161
V39: { activeCanon: 'V39', draftTarget: 'V40' },
6262
V40: { activeCanon: 'V40', draftTarget: 'V41' },
6363
V41: { activeCanon: 'V41', draftTarget: 'V42' },
64+
V42: { activeCanon: 'V42', draftTarget: 'V43' },
6465
};
6566
const expectedPosture = expectedPostureByPointer[pointer];
6667

0 commit comments

Comments
 (0)