You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0e5e054
Browse filesBrowse the repository at this point in the historyBrowse files
feat(pm): declare COMMENT_BODY_LIMIT beside ISSUE_BODY_LIMIT, from its own bisection
The comment surface was bisected on objectstack#18826 to the same 262,144 bytes
the issue-body surface was bisected to on #18793 — two surfaces, two brackets,
one number — and post-stamped needs the comment one to name the cap in a size
refusal.
It is declared here rather than in post-stamped because this is already where
this fleet's measured body caps live: five workflow comments send a reader to
`ISSUE_BODY_LIMIT` in this file for the number, and the 65,536 folklore this
pair replaces grows back wherever one of two caps is kept somewhere else.
⛔ Two constants and not one shared number: two measurements that agree is not
one measurement, and the day the platform moves one surface a shared number
would lie about the other. The docblock-anchored provenance pins of the
`ISSUE_BODY_LIMIT measured cap` battery are extended to the sibling, including
the control that each provenance cites only the probe that measured it.
Claude-Session: https://claude.ai/code/session_01BTeBejoPUvRHN8WdAJC6oF
Co-authored-by: Claude <noreply@anthropic.com>
// docblock — unit, both sides of the bracket, the date and the probe issue —
24376
24416
// because a number with no provenance is what got re-derived from memory the
24377
24417
// first time.
24378
-
'ISSUE_BODY_LIMIT measured cap': 37,
24418
+
'ISSUE_BODY_LIMIT measured cap': 52,
24379
24419
});
24380
24420
24381
24421
/** The floor on the ROSTER itself — how many batteries must be declared at all. */
@@ -28559,6 +28599,32 @@ async function selfTest() {
28559
28599
b(BATTERY18664, '#18664 cap: ⛔ the retired 65,536 is gone', ISSUE_BODY_LIMIT === 65536, false);
28560
28600
b(BATTERY18664, '#18664 cap: …and the measured cap is four times it', ISSUE_BODY_LIMIT === 65536 * 4, true);
28561
28601
28602
+
// #18843: the COMMENT surface's cap, declared beside its sibling. Pinned in
28603
+
// THIS battery because what the battery floors is a measurement and its unit,
28604
+
// and the sibling is the same measurement on the other surface — ⛔ not in a
28605
+
// battery of its own, which would leave the name-roster pin below describing
28606
+
// a ledger it no longer covers.
28607
+
const commentCapDocblock = (() => {
28608
+
const at = selfSource.indexOf('\nexport const COMMENT_BODY_LIMIT =');
28609
+
const open = at < 0 ? -1 : selfSource.lastIndexOf('/**', at);
28610
+
return at < 0 || open < 0 ? '' : selfSource.slice(open, at);
28611
+
})();
28612
+
b(BATTERY18664, '#18843 provenance: ⭐ the extractor really found the comment cap\'s own docblock', commentCapDocblock.startsWith('/**') && commentCapDocblock.endsWith('*/'), true);
28613
+
b(BATTERY18664, '#18843 provenance: ⛔ …and not the whole file, which would satisfy every pin below with its own text', commentCapDocblock.includes('export const'), false);
28614
+
b(BATTERY18664, '#18843 provenance: the docblock names the UNIT', commentCapDocblock.includes('UTF-8 BYTES'), true);
28615
+
b(BATTERY18664, '#18843 provenance: …the landed side of the bracket', commentCapDocblock.includes('262,144 bytes STORED'), true);
b(BATTERY18664, '#18843 provenance: …the date it was taken', commentCapDocblock.includes('2026-09-17'), true);
28618
+
b(BATTERY18664, '#18843 provenance: …the issue it was measured on', commentCapDocblock.includes('objectstack#18826'), true);
28619
+
b(BATTERY18664, '#18843 provenance: …and that THIS surface refuses LOUDLY, which the issue body does not', commentCapDocblock.includes('HTTP 422'), true);
28620
+
b(BATTERY18664, '#18843 cap: the comment cap is the bisected value', COMMENT_BODY_LIMIT, 262144);
28621
+
b(BATTERY18664, '#18843 cap: …which is 256 KiB exactly, checkable by hand', COMMENT_BODY_LIMIT === 256 * 1024, true);
28622
+
b(BATTERY18664, '#18843 cap: ⛔ the retired 65,536 is gone here too', COMMENT_BODY_LIMIT === 65536, false);
28623
+
b(BATTERY18664, '#18843 cap: …and the measured cap is four times it', COMMENT_BODY_LIMIT === 65536 * 4, true);
28624
+
b(BATTERY18664, '#18843 pair: ⭐ the two surfaces agree — two bisections, one number', COMMENT_BODY_LIMIT === ISSUE_BODY_LIMIT, true);
28625
+
b(BATTERY18664, '#18843 pair: ⛔ …and each stands on its OWN probe, so neither provenance borrows the other\'s', capDocblock.includes('objectstack#18793') && capDocblock.includes('objectstack#18826') === false, true);
28626
+
b(BATTERY18664, '#18843 pair: ⛔ …the comment one likewise cites only the probe that measured it', commentCapDocblock.includes('objectstack#18793') === false, true);
28627
+
28562
28628
// The unit, at the primitive the guard is built on.
0 commit comments