Skip to content

Commit 9d0adf7

Browse files
V30: Fix wrapped demonstration promotion posture
Broaden the runtime promotion README rewrite so it handles the real demonstration paragraph when the generated appendix path is wrapped onto the next line. Proof: npm --prefix protocol-demonstration run test:v22-canon-drift; node scripts/check-bitcode-canon-posture-drift.mjs --active-canon V29 --draft-target V30; copied promotion repro with V30/V31 drift check.
1 parent bc68d2e commit 9d0adf7

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,9 @@ test('runtime promotion preparation rewrites current inline demonstration README
114114
'',
115115
'`BITCODE_SPEC.txt` is the canonical pointer for active-system work. It currently',
116116
'resolves to `V29`; V30 is the active draft target for Protocol/BTD hardening.',
117-
'`BITCODE_SPEC.txt -> V29`. This demo is governed by the active V29 canonical',
118-
'spec and `BITCODE_SPEC_V29_PROVEN.md` as the current generated appendix while V30 draft',
117+
'`BITCODE_SPEC.txt -> V29`.',
118+
'This demo is governed by the active V29 canonical spec and',
119+
'`BITCODE_SPEC_V29_PROVEN.md` as the current generated appendix while V30 draft',
119120
'work proceeds outside the demonstration runtime boundary.'
120121
].join('\n'),
121122
'utf8'

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ function rewriteReadme(content, version, nextDraft) {
111111
`resolves to \`${version}\`; ${nextDraft} is the next draft target after this promotion.`
112112
);
113113
rewritten = rewritten.replace(
114-
/`BITCODE_SPEC\.txt -> V\d+`\.\s+This demo is governed by the active V\d+ canonical\s+spec and `(?:BITCODE_SPEC_V\d+_PROVEN\.md|_legacy\/ENGI_SPEC_V\d+_PROVEN\.md)` as the current generated appendix(?:\s+while V\d+ draft\s+work proceeds outside the demonstration runtime boundary)?\./m,
114+
/`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 V\d+ draft\s+work proceeds outside the demonstration runtime boundary)?\./m,
115115
`\`BITCODE_SPEC.txt -> ${version}\`. This demo is governed by the active ${version} canonical\nspec and \`${promotedProvenPath(version)}\` as the current generated appendix.`
116116
);
117117
rewritten = rewritten.replace(

0 commit comments

Comments
 (0)