Skip to content

Commit 01ad0b0

Browse files
committed
test(pm): pin the --land gate's no-list thread page refusal
Claude-Session: https://claude.ai/code/session_01ADHkmPoqLCQHtTFH1fsaSB Co-authored-by: Claude <noreply@anthropic.com>
1 parent 468c5ac commit 01ad0b0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎scripts/pm/label-write.mjs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2434,7 +2434,7 @@ const SELF_TEST_BATTERIES = Object.freeze({
24342434
[FOLD_BATTERY]: 28,
24352435
[REAL_TRANSPORT_BATTERY]: 5,
24362436
[STATELESS_BATTERY]: 19,
2437-
[LAND_DOGFOOD_BATTERY]: 45,
2437+
[LAND_DOGFOOD_BATTERY]: 46,
24382438
});
24392439
const SELF_TEST_BATTERY_FLOOR = 17;
24402440
const UNATTRIBUTED_BATTERY = '(unattributed)';
@@ -3076,6 +3076,7 @@ export async function selfTest() {
30763076
'a pull read with no full head sha': [pull({ head: 'abc' }), 'no full head sha'],
30773077
'NO CARD — no closing keyword, no `Part of`, no dev branch': [pull({ body: 'A body naming nothing.\n', ref: 'feature/x' }), 'why: no card'],
30783078
'a card thread that does not read': [pull({ cards: {} }), "card #8's thread did not read", EXIT_PREREQUISITE],
3079+
'a card thread page that answers no list': [{ ...pull(), hooks: { 'comments-list': [{ status: 200, json: { message: 'not a list' } }] } }, 'answered no list on page 1'],
30793080
'a RATE-LIMITED card thread read': [{ ...pull(), hooks: { 'comments-list': [{ status: 403, rateRemaining: 0, json: { message: 'API rate limit exceeded' } }] } }, 'ratelimit) — NOT MEASURED', EXIT_PREREQUISITE],
30803081
'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' }] } }), 'carries no `os-dev-report` by'],
30813082
'an UNPARSABLE report': [pull({ cards: { 8: [report(null, { raw: `${SIG}\nos-dev-report\n\n\`\`\`json\n{ "dogfood_battery": \n\`\`\`\n` })] } }), 'no readable `dogfood_battery`'],

0 commit comments

Comments
 (0)