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 ac1482d
Browse filesBrowse the repository at this point in the historyBrowse files
t('⭐ REFUSED: a `!` title whose newest report says `n/a` — exit 2, ZERO sends, no pr_ready, nothing written',refused(na),REFUSED,na.text.slice(-600));
2990
-
t('…and the refusal names the title marker, the report comment id, its dogfood_battery text, and what clears it',['`!` before the colon of the title','report: comment 501',JSON.stringify(NA),'to clear: run the full dogfood battery on head',HEAD].map((w)=>na.text.includes(w)),[true,true,true,true,true]);
2990
+
t('…and the refusal names the title marker, the report comment id, its dogfood_battery text, why, and what clears it',['`!` before the colon of the title','report: comment 501',JSON.stringify(NA),'why: the battery was not run','to clear: run the full dogfood battery on head',HEAD].map((w)=>na.text.includes(w)),[true,true,true,true,true,true]);
2991
2991
constonHead=awaitland(pull());
2992
2992
t('⭐ PASSES: a `!` title whose newest report ran on the head — ONE dispatch, comment → pr_ready → automerge_enable, ready and armed, exit 0',[onHead.exit,onHead.sent[0]?.actions.map((a)=>a.op),onHead.fake.board.draft,onHead.text.includes('② dogfood gate ✓'),onHead.text.includes('ran on the head')],[EXIT_OK,['comment','pr_ready','automerge_enable'],false,true,true],onHead.text.slice(-600));
2993
2993
t('…from the pull and the card thread alone — no commit walk when the battery names the head',onHead.fake.calls.map((c)=>c.op),['card-read','pull-read','comments-list','card-read','comments-list','pull-read']);
@@ -3000,36 +3000,48 @@ export async function selfTest() {
t('⛔ REFUSED: a merge whose second parent the base does not hold — a merge of another branch is new code',[...refused(notMain),notMain.text.includes('does not hold')],[...REFUSED,true]);
3003
+
t('⛔ REFUSED: a merge whose second parent the base does not hold — a merge of another branch is new code',[...refused(notMain),notMain.text.includes('which `main` does not hold')],[...REFUSED,true]);
3004
3004
constplain=awaitland(pull({title: 'fix(pm): an ordinary fixture',cards: {8: [report(NA)]}}));
3005
3005
t('⭐ NOT JUDGED: no `!` and no `(narrowing)` arm lands as today — even over an `n/a` report — with no gate read at all',[plain.exit,plain.text.includes('not judged'),plain.fake.calls.map((c)=>c.op)],[EXIT_OK,true,['card-read','card-read','comments-list','pull-read']]);
3006
3006
constwidening=awaitland(pull({title: 'feat(pm): a widening fixture',body: 'Fixes #8\n\nClause-②: yes (widening)\n',cards: {}}));
3007
3007
t('…a `(widening)` arm is not a marker either',[widening.exit,widening.text.includes('not judged')],[EXIT_OK,true]);
3008
3008
3009
3009
// FAIL CLOSED — every case NOT MEASURED is a refusal.
3010
+
// Each case: its board, and the fragment of the `why` only its own branch prints — so a branch ablated away
3011
+
// cannot hide behind a later refusal that happens to fire too.
3010
3012
constcases={
3011
-
'an UNREADABLE title': pull({title: ''}),
3012
-
'a MALFORMED `Clause-②:` line on an unmarked title': pull({title: 'fix: x',body: 'Fixes #8\n\nClause-②: maybe\n'}),
3013
-
'NO CARD — no closing keyword, no `Part of`, no dev branch': pull({body: 'A body naming nothing.\n',ref: 'feature/x'}),
3014
-
'a card thread that does not read': pull({cards: {}}),
3015
-
'NO REPORT on the card': pull({cards: {8: [{id: 9,created_at: '2026-11-08T14:00:00Z',user: {login: FLEET},body: 'Claim: PM loop round 1'}]}}),
'a report with no `dogfood_battery`': pull({cards: {8: [report(null,{raw: `${SIG}\nos-dev-report\n\n\`\`\`json\n{"issue": 8, "status": "done"}\n\`\`\`\n`})]}}),
3018
-
'a battery naming NO sha': pull({cards: {8: [report('ran the battery · VERDICT command-exit 0')]}}),
'a report with no `dogfood_battery`': [pull({cards: {8: [report(null,{raw: `${SIG}\nos-dev-report\n\n\`\`\`json\n{"issue": 8, "status": "done"}\n\`\`\`\n`})]}}),'no readable `dogfood_battery`'],
3022
+
'a battery naming NO sha': [pull({cards: {8: [report('ran the battery · VERDICT command-exit 0')]}}),'names no sha it ran on'],
'a walk commit that does not read': [pull({cards: {8: [report(RAN_BELOW)]}}),'is NOT MEASURED'],
3025
+
'a compare that does not read': [pull({cards: {8: [report(RAN_BELOW)]},commits: {[HEAD]: [BELOW,MAIN_SIDE]},onBase: [MAIN_SIDE]}),'did not read (GET'],
3026
+
[`a battery more than ${LAND_MERGE_HOP_CAP} merges below the head`]: [
t(`…while a battery exactly ${LAND_MERGE_HOP_CAP} merges below the head passes — the cap is the hop count, not one short of it`,[oneShorter.exit,oneShorter.text.includes(`ran ${LAND_MERGE_HOP_CAP} merge(s)`)],[EXIT_OK,true],oneShorter.text.slice(-400));
0 commit comments