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 1e996b0
Browse filesBrowse the repository at this point in the historyBrowse files
fix(pm): record-recognisers answers every card a tie holds, beside the pairing that still refuses one
deliveredCardsAtStrongest returns the delivered cards at the strongest
grade, in body order, from the same enumeration deliveredCardNumber
answers from. deliveredCardNumber is unchanged: it still yields no card
on a tie, so the queue guard's record pairing does not move.
Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgVv6gTt6GofcDEN2Bd
'⭐ the signature line: the reader reads LANE#N · ACCOUNT · SESSION exactly, and one leading signature changes no first-line reading': 22,
2813
2846
'⭐ the `Contract-review-claim:` line — session, FULL head, time; lapses on a moved head or after two hours; the earliest live claim holds': 24,
2814
2847
'⭐ the `Contract-review-hold:` line — session, head, reason, until; a new head clears it; at 24 hours it reads overdue and still holds': 23,
2848
+
// The tie relation: the cards a fold's equal closing keywords deliver, for the `--land` dogfood gate, which reads
2849
+
// every one of them; `deliveredCardNumber`'s pairing stays refusing on a tie.
2850
+
'⭐ the tie relation: `deliveredCardsAtStrongest` answers every card a tie holds, in body order, from the ONE enumeration `deliveredCardNumber` answers from — which still yields no card on a tie': 8,
2815
2851
});
2816
2852
2817
2853
// DELETING an entry silences that battery's floor exactly as effectively as
// Raised 16 → 17 with the hold-line battery (the maintainer's lane-hold rule): one battery, one row.
2837
2873
// Raised 17 → 18 with the knock-signature battery (#33789 item 3, split to #34013): one battery, one row.
2838
2874
// Raised 18 → 19 with the card-thread delegate battery (#34013 remainder 2): one battery, one row.
2839
-
constSELF_TEST_BATTERY_FLOOR=19;
2875
+
// Raised 19 → 20 with the tie-relation battery (`deliveredCardsAtStrongest`): one battery, one row.
2876
+
constSELF_TEST_BATTERY_FLOOR=20;
2840
2877
2841
2878
// The key an assertion is filed under when no battery is open. It is not a
2842
2879
// declared battery, so it reds by the same set difference rather than silently
@@ -3936,6 +3973,22 @@ export async function selfTest() {
3936
3973
t('⛔ CONTROL: the ranking belongs to `deliveryEvidence` -- every grade it answers is ranked here, none invented',DELIVERY_EVIDENCE_PRECEDENCE.every((kind)=>deliveryEvidenceNote(kind)!=='evidence unread')&&newSet(DELIVERY_EVIDENCE_PRECEDENCE).size===DELIVERY_EVIDENCE_PRECEDENCE.length);
3937
3974
t('…and it is ranked in the order that function applies, measured pair by pair',DELIVERY_EVIDENCE_PRECEDENCE.indexOf(deliveryEvidence(PIN_PULL(`Fixes #1\nPart of #2`),'1'))<DELIVERY_EVIDENCE_PRECEDENCE.indexOf(deliveryEvidence(PIN_PULL(`Fixes #1\nPart of #2`),'2'))&&DELIVERY_EVIDENCE_PRECEDENCE.indexOf('part-of')<DELIVERY_EVIDENCE_PRECEDENCE.indexOf('branch-name'));
3938
3975
3976
+
// `deliveredCardsAtStrongest` -- the cards a tie holds, for a reader that reads them ALL (the `--land` dogfood
3977
+
// gate). It answers from the same enumeration as `deliveredCardNumber`, which still refuses to choose.
3978
+
battery('⭐ the tie relation: `deliveredCardsAtStrongest` answers every card a tie holds, in body order, from the ONE enumeration `deliveredCardNumber` answers from — which still yields no card on a tie');
t('⭐ two closing keywords: BOTH cards, at that grade, in the order the body names them -- never sorted',same(tie('Fixes #5555\nFixes #4444'),{cards: [5555,4444],evidence: 'closing-keyword'}),JSON.stringify(tie('Fixes #5555\nFixes #4444')));
3983
+
t('⛔ …and on that same body `deliveredCardNumber` still yields NO card: the record pairing is unchanged on a tie',(()=>{constr=deliveredCardNumber(PIN_PULL('Fixes #5555\nFixes #4444'));returnr.card===null&&r.reason.includes('same strength')&&r.reason.indexOf('#5555')<r.reason.indexOf('#4444');})());
3984
+
t('two `Part of` declarations and no keyword are a tie at `part-of`',same(tie('Part of #4444\nPart of #5555'),{cards: [4444,5555],evidence: 'part-of'}),JSON.stringify(tie('Part of #4444\nPart of #5555')));
3985
+
t('a STRONGER grade still leaves one card: a `Part of` beside a keyword is not in the tie',same(tie('Fixes #4444\nPart of #5555'),{cards: [4444],evidence: 'closing-keyword'}),JSON.stringify(tie('Fixes #4444\nPart of #5555')));
3986
+
t('a branch named for a third card adds nothing once the body speaks',same(tie('Fixes #4444\nFixes #5555','claude/issue-6666-x'),{cards: [4444,5555],evidence: 'closing-keyword'}),JSON.stringify(tie('Fixes #4444\nFixes #5555','claude/issue-6666-x')));
3987
+
t('⛔ a body naming NO card is no tie: no cards and no grade',same([tie('nothing here'),deliveredCardsAtStrongest(null)],[{cards: [],evidence: null},{cards: [],evidence: null}]),JSON.stringify([tie('nothing here'),deliveredCardsAtStrongest(null)]));
3988
+
t('⛔ CONTROL: one card here is exactly the card `deliveredCardNumber` answers, and none here is its null -- on every fixture above',['Fixes #5555\nFixes #4444','Part of #4444\nPart of #5555','Fixes #4444\nPart of #5555',`Part of #${PIN_CARD}`,'nothing here'].every((body)=>{constall=deliveredCardsAtStrongest(PIN_PULL(body));constone=deliveredCardNumber(PIN_PULL(body));returnall.cards.length===1 ? one.card===all.cards[0]&&one.evidence===all.evidence : one.card===null;})&&deliveredCardNumber(PIN_PULL('nothing',`claude/issue-${PIN_CARD}-x`)).card===tie('nothing',`claude/issue-${PIN_CARD}-x`).cards[0]);
3989
+
t('structural: both relations answer from the ONE enumeration, and neither grades evidence itself',(()=>{constown=readFileSync(fileURLToPath(import.meta.url),'utf8');constbody=(name)=>own.slice(own.indexOf(`export function ${name}(`),own.indexOf('\n}\n',own.indexOf(`export function ${name}(`)));return['deliveredCardNumber','deliveredCardsAtStrongest'].every((name)=>body(name).includes('strongestDeliveredRows(pr)')&&!body(name).includes('deliveryEvidence('));})());
3990
+
}
3991
+
3939
3992
// -- The floor: every declared battery RAN, and ran its cases (#13489) -----
3940
3993
//
3941
3994
// Evaluated after every battery has had its chance and BEFORE the verdict, so
0 commit comments