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 084b6db
Browse filesBrowse the repository at this point in the historyBrowse files
- dev-worktree.sh: 408/421/429 and every 5xx (keyed as the 4xx arm keys its
own, so a proxy's "Received HTTP code 502" is placed) read `network`, ahead
of the 4xx arm; the comment says why. The spelled second run prints a flag
as typed when no character of it needs quoting (`--backoff=2,4`).
- os-dev.md rule 1: the probe line spells `--branch=BRANCH`; ratchet row
lowered to the landed size.
- check-owed-reviews.mjs: the TRIAGE_ROUND_MINUTES sentence says who reads it.
- check-handover.mjs: the --inflight clear line names DIR/**/GLOB.
- git-history.mjs: the failed-disambiguate case asserts through the CLI.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5oPfjnm2yWHEwkiYrn
? `check-handover --inflight: OVERLAP — ${verdict.overlaps.length} in-flight claim(s) on ${repo} meet the surface about to be dispatched.`
925
925
: verdict.exit===EXIT_SURFACE_UNREAD
926
926
? `check-handover --inflight: NO OVERLAP READ, ${verdict.unread.length} SURFACE(S) UNREAD — no readable in-flight surface on ${repo} meets this one; the cards below name no path, so read their claims by hand.`
927
-
: `check-handover --inflight: clear — no in-flight claim on ${repo} declares a surface that meets this one${verdict.notCompared?.length>0 ? `; ${verdict.notCompared.length} claimed bare name(s) NOT COMPARED, listed below` : ''}. A claimed path fragment deeper inside a dispatched directory, and a claimed glob fragment, are never judged.`;
927
+
: `check-handover --inflight: clear — no in-flight claim on ${repo} declares a surface that meets this one${verdict.notCompared?.length>0 ? `; ${verdict.notCompared.length} claimed bare name(s) NOT COMPARED, listed below` : ''}. A claimed path fragment deeper inside a dispatched directory, spelled DIR, DIR/** or DIR/**/GLOB alike, and a claimed glob fragment, are never judged.`;
consthow={path: '',name: ' (a bare file name on the claim, read anywhere)',suffix: ' (a path fragment on the claim, read as a suffix)'};
@@ -1609,7 +1609,7 @@ export function selfTest() {
1609
1609
t('inflight: N4 — a clear run NAMES the claimed bare names it could not judge against a directory or `DIR/**`; a `No changes outside …` clause is surface, not a fence',n4.exit===EXIT_OK&&n4.notCompared.map((x)=>x.claimed).join()==='package.json'&&inflightText(n4,{repo: 'o/r',paths: ['scripts/pm/**'],read: 'x'}).includes('1 claimed bare name(s) NOT COMPARED')&&surfaceTokens('No changes outside `packages/lint/**`.').paths.join()==='packages/lint/**');
1610
1610
1611
1611
t('inflight: ⭐ S5 — ONE directory, two spellings, one answer: a fragment that starts inside `DIR` meets `DIR` and `DIR/**` alike; a deeper fragment meets neither, and the clear line says so',meetKind('.claude/skills/pm-dispatch/references','references/contract-review.md')==='suffix'&&meetKind('.claude/skills/pm-dispatch/references/**','references/contract-review.md')==='suffix'&&meetKind('.claude/skills/pm-dispatch/references/**','lanes/director.md')===null&&meetKind('.claude/skills/pm-dispatch/references','lanes/director.md')===null&&inflightText(inflightVerdict({paths: ['x/y.md'],held: []}),{repo: 'o/r',paths: ['x/y.md'],read: 'x'}).includes('deeper inside a dispatched directory'));
1612
-
t('inflight: ⭐ N12 — a glob under the directory a fragment starts inside answers as the bare `DIR/**` does: `references/**/*.md` meets `references/contract-review.md`, a remainder that does not match (`**/*.ts`) and a fragment that would sit deeper (`pm-dispatch/**/*.md`) do not',meetKind('.claude/skills/pm-dispatch/references/**/*.md','references/contract-review.md')==='suffix'&&meetKind('.claude/skills/pm-dispatch/references/**/*.md','references/lanes/director.md')==='suffix'&&meetKind('.claude/skills/pm-dispatch/references/**/*.ts','references/contract-review.md')===null&&meetKind('.claude/skills/pm-dispatch/**/*.md','references/contract-review.md')===null&&meetKind('.claude/skills/pm-dispatch/xreferences/**/*.md','references/contract-review.md')===null);
1612
+
t('inflight: ⭐ N12 — a glob under the directory a fragment starts inside answers as the bare `DIR/**` does: `references/**/*.md` meets `references/contract-review.md`, a remainder that does not match (`**/*.ts`) and a fragment that would sit deeper (`pm-dispatch/**/*.md`) do not, and the clear line names that deeper case',meetKind('.claude/skills/pm-dispatch/references/**/*.md','references/contract-review.md')==='suffix'&&meetKind('.claude/skills/pm-dispatch/references/**/*.md','references/lanes/director.md')==='suffix'&&meetKind('.claude/skills/pm-dispatch/references/**/*.ts','references/contract-review.md')===null&&meetKind('.claude/skills/pm-dispatch/**/*.md','references/contract-review.md')===null&&meetKind('.claude/skills/pm-dispatch/xreferences/**/*.md','references/contract-review.md')===null&&inflightText(inflightVerdict({paths: ['x/y.md'],held: []}),{repo: 'o/r',paths: ['x/y.md'],read: 'x'}).includes('deeper inside a dispatched directory, spelled DIR, DIR/** or DIR/**/GLOB alike'));
1613
1613
t('inflight: N8 — a single-segment dispatch directory (`scripts/`) lists a claimed bare name NOT COMPARED, like `scripts/pm/` and `scripts/**`',['scripts/','scripts/pm/','scripts/**'].map((d)=>inflightVerdict({paths: [d],held: [{issue: IF_CARD(), ...inflightSurface(IF_CARD(),[IF_CLAIM('File surface: `card-pick.mjs`.')])}]}).notCompared.length).join()==='1,1,1');
1614
1614
1615
1615
// The claim-surface card, PR A: the qualified key, each claim's width, and the reconciliation against its pull.
/** The waiting label the dispatching seat hangs at ACCEPT (`references/contract-review.md` 〈等 L2 标记〉). */
139
139
exportconstWAITING_LABEL='needs:contract-review';
140
-
/** One full round, trigger (b): `round-open.mjs`'s `ROUND_MINUTES`, the number on `seat-lifecycle.md`'s round line — one source, never a second copy. The name is kept: importers read it. */
140
+
/** One full round, trigger (b): `round-open.mjs`'s `ROUND_MINUTES`, the number on `seat-lifecycle.md`'s round line — one source, never a second copy. The name is kept because this file reads it (the trigger (b) docblock above, `owedReviewRow`); nothing imports it. */
141
141
exportconstTRIAGE_ROUND_MINUTES=ROUND_MINUTES;
142
142
/** The seat posts' label (`seat-post-protocol.md`); `parseSeat` reads each one. */
['.claude/skills/pm-dispatch/references/lanes/objectstack.md',2540],// raised 2270 → 2540 by the ruled text (one seat per lane by default; a new `area:*` is a partition of that seat), ruling record 7030459053
139
-
['.claude/agents/os-dev.md',33500],// lowered 33504 → 33500 by the #35237 slice-10 entry-pointers PR (the file's landed size, headroom 0); before that: lowered 38986 → 33504 by the entry-file slimming PR (four one-path blocks moved verbatim to references/dev-traps.md and references/dev-ablation.md, one pointer line left for each); before that: lowered 39008 → 38848 by the re-basing PR's own edit; raised 38848 → 38986 (+138) by ruling record 7076315104 (Q13, the decision card 「定一下:五条新增规则要不要写进技能」: 「五条都写」): a card thread's first step reads the tier it is served and compares it with the order
139
+
['.claude/agents/os-dev.md',33492],// lowered 33500 → 33492 by the #35237 slice-13 PR (rule 1's probe line spells its --branch; the file's landed size, headroom 0); before that: lowered 33504 → 33500 by the #35237 slice-10 entry-pointers PR (the file's landed size, headroom 0); before that: lowered 38986 → 33504 by the entry-file slimming PR (four one-path blocks moved verbatim to references/dev-traps.md and references/dev-ablation.md, one pointer line left for each); before that: lowered 39008 → 38848 by the re-basing PR's own edit; raised 38848 → 38986 (+138) by ruling record 7076315104 (Q13, the decision card 「定一下:五条新增规则要不要写进技能」: 「五条都写」): a card thread's first step reads the tier it is served and compares it with the order
140
140
['.claude/skills/checklist-test/SKILL.md',14209],// lowered 19558 → 14209 by the entry-file slimming PR (the bodies of §5 and §6 moved verbatim to the two reference files below, one pointer line left in each section)
141
141
['.claude/skills/checklist-test/references/closure.md',4553],// new row, landed size, headroom 0
142
142
['.claude/skills/checklist-test/references/standing-regression.md',1261],// new row, landed size, headroom 0
# name=minimum, one per line. A battery below its minimum means cases stopped
451
467
# running; the roster's own length is pinned too, so a deleted row cannot take
452
468
# its floor with it.
453
-
ST_BATTERIES='the probe failure classifier=14
469
+
ST_BATTERIES='the probe failure classifier=19
454
470
a fresh worktree=13
455
471
refusals before anything is created=13
456
472
resume from a claimed sha=11
457
-
the probe=20
473
+
the probe=21
458
474
re-run, scratchpad and install=14
459
475
what the script never spells=4'
460
476
ST_BATTERY_FLOOR=7
@@ -626,6 +642,16 @@ SHIM
626
642
"$(classify_push_failure 'error: RPC failed; HTTP 401 curl 22 The requested URL returned error: 401')|$(classify_push_failure 'error: RPC failed; HTTP/2 404')"'other|other'
627
643
st_case 'OpenSSL'\''s "Connection was reset" and an HTTP/2 stream or framing error are network errors, retried like a reset by peer' \
628
644
"$(classify_push_failure 'fatal: unable to access: OpenSSL SSL_read: Connection was reset, errno 10054')|$(classify_push_failure "fatal: unable to access 'https://github.com/o/r/': HTTP/2 stream 1 was not closed cleanly: PROTOCOL_ERROR (err 1)")|$(classify_push_failure "fatal: unable to access 'https://github.com/o/r/': Error in the HTTP2 framing layer")"'network|network|network'
645
+
st_case '408 is the path failing, not the push judged: a request timeout is a network error in either spelling, retried on the schedule' \
646
+
"$(classify_push_failure 'error: RPC failed; HTTP 408 curl 22 The requested URL returned error: 408')|$(classify_push_failure "fatal: unable to access 'https://github.com/o/r/': The requested URL returned error: 408")"'network|network'
647
+
st_case '429 is the path throttled for now: a network error, whose remedy is the wait the schedule already is' \
648
+
"$(classify_push_failure 'error: RPC failed; HTTP 429 curl 22 The requested URL returned error: 429')|$(classify_push_failure 'error: RPC failed; HTTP/2 429')"'network|network'
649
+
st_case '421 is a connection that cannot answer for this host: a network error, which a new connection on the retry can clear' \
650
+
"$(classify_push_failure 'error: RPC failed; HTTP/2 421')|$(classify_push_failure "fatal: unable to access 'https://github.com/o/r/': The requested URL returned error: 421")"'network|network'
651
+
st_case 'a proxy that answers the CONNECT with a 5xx is a network error: the 5xx statuses are keyed as the 4xx arm keys its own' \
652
+
"$(classify_push_failure "fatal: unable to access 'https://github.com/o/r/': Received HTTP code 502 from proxy after CONNECT")" network
653
+
st_case 'a number no status word keys, or one digit too long, is not a status: a 502-byte count, `code 4290`, an OpenSSL code' \
st_case '⛔ NO FLAG, the very spelling rule 1 prints (claude/issue-<n>-<slug>): the tree is built and NOTHING is pushed — zero pushes, origin has no such branch' \
st_case '…the base is pinned all the same, and the line printed says what a self-built branch still owes' \
749
775
"$(field "$out" BASE)|$(grep -c 'run this command again with --probe'"$err")""$main_sha|1"
750
776
st_case '…and that line spells the whole second run: this run'\''s flags, plus --probe --no-install, never a bare --probe' \
751
-
"$(grep -c -- 'run this command again with --probe: bash scripts/pm/dev-worktree.sh --branch=claude/issue-30-noflag --probe --no-install\.'"$err")" 1
777
+
"$(grep -c -- 'run this command again with --probe: bash scripts/pm/dev-worktree.sh --branch=claude/issue-30-noflag --backoff=2,4 --probe --no-install\.'"$err")" 1
778
+
out="$(ORIG_ARGS=(--branch=claude/issue-31-quoted '--scratchpad=/tmp/a b' --backoff=2,4 --no-install) && rerun_with_probe)"
779
+
st_case '…a flag is printed as typed when no character of it needs quoting (`--backoff=2,4`, never `2\,4`), quoted when one does, and the line pastes back to the very words typed' \
0 commit comments