Skip to content

Commit 70be386

Browse files
V41 Promotion: Harden canon README posture rewrite
Makes runtime canon-promotion README rewriting tolerate wrapped demonstration posture text, adds regression coverage for the wrapped inline form, and refreshes the V41 promotion-readiness artifact. Validation: node --test protocol-demonstration/test/v22-canon-drift.test.js; node scripts/check-v41-gate9-promotion-readiness.mjs --promotion-mode --skip-branch-check --skip-package-tests; node scripts/promote-bitcode-canon.mjs --version V41 --commit HEAD --dry-run; git diff --check.
1 parent e30ead4 commit 70be386

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

.bitcode/v41-promotion-readiness-report.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@
207207
{
208208
"relativePath": "scripts/prepare-bitcode-runtime-canon-promotion.mjs",
209209
"present": true,
210-
"digest": "sha256:9b556aca984dcdac18a611e46b71c4d753b2009f21b9a8769f205e8dd1e002fd",
210+
"digest": "sha256:77b598b0257d7dc2aef367531126f0d8ef1238d1264a78c1e876c624909b4511",
211211
"requiredTokens": [
212212
{
213213
"token": "--next-draft",

protocol-demonstration/test/v22-canon-drift.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,11 @@ test('runtime promotion preparation rewrites current inline demonstration README
113113
'# Bitcode Protocol Demonstration - V29 canonical deterministic local prototype',
114114
'',
115115
'`BITCODE_SPEC.txt` is the canonical pointer for active-system work. It currently',
116-
'resolves to `V29`; V30 is the active draft target for Protocol/BTD hardening.',
117-
'`BITCODE_SPEC.txt -> V29`.',
118-
'This demo is governed by the active V29 canonical spec and',
116+
'resolves to `V29`; V30 is the active draft target for Protocol/BTD hardening. This',
117+
'demo is governed by the active V29 canonical spec and',
119118
'`BITCODE_SPEC_V29_PROVEN.md` as the current generated appendix while V30 draft',
120-
'work proceeds outside the demonstration runtime boundary.'
119+
'work proceeds outside the demonstration runtime boundary.',
120+
'`BITCODE_SPEC.txt -> V29`.',
121121
].join('\n'),
122122
'utf8'
123123
);

scripts/prepare-bitcode-runtime-canon-promotion.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@ function rewriteReadme(content, version, nextDraft) {
115115
`resolves to \`${version}\`; ${nextDraft} is the next draft target after this promotion.`
116116
);
117117
rewritten = rewritten.replace(
118-
/`BITCODE_SPEC\.txt -> V\d+`\.\s+This demo is governed by the active V\d+ canonical\s+spec and\s+`(?:BITCODE_SPEC_V\d+_PROVEN\.md|_legacy\/ENGI_SPEC_V\d+_PROVEN\.md)` as the current generated appendix(?:\s+while\s+[^.]+)?\./m,
118+
/`BITCODE_SPEC\.txt -> V\d+`\.\s+This\s+demo is governed by the active V\d+ canonical\s+spec and\s+`(?:BITCODE_SPEC_V\d+_PROVEN\.md|_legacy\/ENGI_SPEC_V\d+_PROVEN\.md)` as the current generated appendix(?:\s+while\s+[^.]+)?\./m,
119119
`\`BITCODE_SPEC.txt -> ${version}\`. This demo is governed by the active ${version} canonical\nspec and \`${promotedProvenPath(version)}\` as the current generated appendix.`
120120
);
121121
rewritten = rewritten.replace(
122-
/This demo is governed by the active V\d+ canonical\s+spec and\s+`(?:BITCODE_SPEC_V\d+_PROVEN\.md|_legacy\/ENGI_SPEC_V\d+_PROVEN\.md)` as the current generated appendix(?:\s+while\s+[^.]+)?\./m,
122+
/This\s+demo is governed by the active V\d+ canonical\s+spec and\s+`(?:BITCODE_SPEC_V\d+_PROVEN\.md|_legacy\/ENGI_SPEC_V\d+_PROVEN\.md)` as the current generated appendix(?:\s+while\s+[^.]+)?\./m,
123123
`This demo is governed by the active ${version} canonical\nspec and \`${promotedProvenPath(version)}\` as the current generated appendix.`
124124
);
125125
rewritten = rewritten.replace(

0 commit comments

Comments
 (0)