claim-lib hardening batch: comment accuracy, label paging, malformed-claim filter, rearm body assert #470
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#470
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
From the 2026-08-12 final whole-branch review (minors M-1, M-2, M-3, M-5 batched). Protected path (.sandcastle) — human/controller change. All small; one commit + tests, then #250 sync to matou-app.
claim_label_id's "LAST pipeline stage is curl itself" — it's actuallycurl | jq | head -1; the real safety is the[ -n "$id" ]empty-check. Fix the comment so the next raw-capture audit doesn't skip a function on a false premise.claim_label_idfetches labels single-page (limit=50&page=1). Past 50 labels,janitor_sweepreturns early — the janitor turns off SILENTLY. Add paging or at least a loud log line when the label resolves empty (ourcloud is at ~30 labels today)._claim_comments' jqcapture("run=(?<r>[0-9]+)")errors mid-stream on a malformed hand-posted claim body (e.g.run=abc), dropping subsequent lines with rc swallowed by the trailingsort -n— a malformed claim could blind arbitration on that issue. Harden the select totest("^swarm-claim host=\\S+ run=[0-9]+").{ref:"main"}— one-line assertion.Also fold in two doc lines the review recommended for the claim-lib.sh header: (a) this forge's issue-comments endpoint is unpaginated (probed live 2026-08-12:
?limit=1returns all comments) and arbitration depends on seeing ALL claim comments; (b) the timing invariant arbitration's safety rests on — a run is API-visible for minutes before its first claim post, while snapshot staleness is seconds — which any D6 revisit (intra-host parallelism / fast-boot) must re-check.Triage: added the missing category label. This is a batch of defect fixes in
claim-lib.sh(stale comment, silent janitor failure past 50 labels, malformed-claim body breaking arbitration, missing assertion) — labelledbug.ready-for-humanwas already correctly applied (protected.sandcastlepath); left as-is.