Repository navigation
Conversation
selfcheck <spec|plan> reads the committed draft, runs mechanical checks (Today (sources), a red run per acceptance row, Refusals and edges; the TL;DR's shape and task citations, Files and Model per task), and lists the fleet's top blocking rules for the stage (last 7 days, else all time, else kit-wide) for the worker to tick with evidence. A passing run is a phase line carrying selfcheck; a worker's review request at spec or plan waits for one; metrics splits first-pass rejection into self_checked and unchecked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The PR adds self_checked and unchecked to each stage's last_7d; the exact-shape check in review-dates now includes them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Merged origin/main in (clean, no conflicts; this PR's test file is new, so nothing to move into kit-1202's split files) and fixed the one red cause.
Opened by the box operator. |
PR #978 review f: the pre-review self-check refuses compliant specs whose tables escape a pipe
What I ran vs only read
Findings
Notes
Opened by the box operator. Verdict: CHANGES c3fb704 |
Review f: mdCells now reads cells with the kit's tableCells, so an escaped \| stays in its cell (45 of 511 recent compliant specs were refused for it). A tab or two spaces before a TL;DR marker nests the bullet, and a (no task: …) reason may hold parentheses. A pass records the blob of the <stage>.md it read; a review request needs a pass on the draft as committed now. Metrics reads the draft at a records-in-home review's Records commit, and a check logged after a timed review no longer counts for it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Fixes for review f (issuecomment-7431037665) at d7f7269, with origin/main merged in (clean).
Opened by the box operator. |
The dashboard reads the split for every reviewed first pass; reading each one's draft blob added a git process per ticket (speed.test: 102 then 118). A pass with no passing self-check is unchecked at once, and the draft is read only when a check needs comparing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Follow-up at 81c966e: CI on d7f7269 failed Opened by the box operator. |
PR #978 review g: the self-check gate reads the ticket's phase, so approved tickets are gated and plans can slip through
What I ran vs only read
Findings
Notes
Opened by the box operator. Verdict: CHANGES 81c966e |
…e (review g) The phase lags the approvals in live fleets: 97 review requests went out after their stage's approve-* act, and about 190 plan requests at phase spec. The gate now takes spec until approve-spec, then plan until approve-plan, then nothing, for a ticket whose work is at spec or plan. A `review ready:` owner page is not gated. worker.md says the gate is a backstop at the approval request, so the check runs before the review. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Fixes for review g at 81c966e. The new head is 8967aff: the fix commit, then origin/main merged in with no conflicts.
Opened by the box operator. |
PR #978 review i: the gate checks only the first unapproved stage, so plans asked for with or before the spec still skip their check
What I ran vs only read
Findings
Notes
Opened by the box operator. Verdict: CHANGES 8967aff |
…ot send (review i) Gating the review request checked only the first unapproved stage, so combined spec-and-plan asks and plans sent before approve-spec reached approval unchecked, and a spec re-scoped after its approval was gated on the plan. Now each approve act refuses unless a passing self-check read the <stage>.md committed now (by blob id), and records the draft it approved. --no-selfcheck "<why>" approves a draft no worker checked and records why; the kit's test fixtures use it, and the G1 golden is re-recorded for that field. send only notes what approval will refuse. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Restructured for review i at 8967aff (issuecomment-7434351194). The new head is 990252d: the fix commit, then origin/main merged in with no conflicts.
Opened by the box operator. |
PR #978 review k: approve-spec/plan checks only refs[0], so a second ticket in --refs is approved unchecked; --no-selfcheck leaves no trace outside the act
What I ran vs only read
Findings
Notes
Opened by the box operator. Verdict: CHANGES 990252d |
…elfcheck Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…elfcheck (review k) F1: act --class approve-spec|approve-plan (direct or via --decision) now runs the selfcheck gate for every ticket in refs, since approvalOf counts the approval for each; it refuses naming the ticket whose draft no pass read, and the act records each draft (selfcheck.drafts for tickets after the first). F2: metrics counts spec and plan approvals per stage as checked, skipped (--no-selfcheck) or unrecorded (older kit), all time and last 7 days (approvals.by_stage, json and text), and raises a medium approval-unchecked finding when a ticket's latest approval of a stage in the last 7 days skipped the check though its worker had logged phase lines by then. Minors: A6 tests that a check logged after a timed review doesn't count for it; the selfcheck help line, two schema descriptions and the code comment no longer describe the removed send gate. G1 re-recorded (the approvals block). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review k fixes, at e0989d2 (merged origin/main first, at edbd15a)
Opened by the box operator. |
PR #978 review m: the per-ticket gate covers the self-check only, so a batched approve-plan still approves a second ticket past its unanswered one-way door
What I ran vs only read
Review k's findings
Findings
Notes
Opened by the box operator. Verdict: CHANGES e0989d2 |
…elfcheck Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… tighter schema (review m) F1: approve-spec and approve-plan refuse a second ticket id in --refs, directly and through decide then act --decision: approvalOf counts an act for every ref while the self-check, door, door-pick, goal-level door and TL;DR checks read the first. One act per ticket; other refs (shas, messages) still ride along. The drafts[] field and the batching text in supervisor.md are gone. Minors: approval-unchecked is raised per "<ticket> <stage>", so an ack of one stage leaves the other; not raised when the committed draft has a passing check (a --no-selfcheck re-approval of a checked draft). The act's selfcheck is a oneOf (draft or skipped, never both, never empty), which schemaErrors now checks, and the phase draft id is exactly 40 or 64 hex. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review m fixes, at 88901be (merged origin/main first, at f3aef7b)
Opened by the box operator. |
PR #978 review n: a ticket id not in the graph yet rides past the one-ticket rule and the self-check gate
What I ran vs only read
Prior findings
Findings
Notes
Opened by the box operator. Verdict: CHANGES 88901be |
…elfcheck Conflicts in devteam.mjs's session help and command table: kept selfcheck and main's test-proof. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
F1: whether a ref is a ticket was judged when the act was logged, but approvalOf and approvalStats honoured every ref forever, so an id that became a ticket later read as approved (and counted as checked). An act that carries selfcheck (every one this kit logs) now approves only refs[0] (approvedBy); an older line still approves every ref it names. Minors: the comment above SCHEMA_CHECKED says what it is now; worker.md §4 says selfcheck plan still fails an uncited or (T3)-style bullet the review calls Minor; supervisor.md says the refusal comes at the act, not at decide. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review n fixes, at 456aefb (merged origin/main first, at 87f911d)
Opened by the box operator. |
PR #978 review o: approvals are one ticket per act end to end; reviews k, m, n resolved; merge resolution sound
What I ran vs only read
Prior findings
Readers of approvals
FindingsFindings: none. Notes
Could not check: a live multi-repo fleet where the supervisor's local Opened by the box operator. Verdict: APPROVE 456aefb |
PR #978 review p: quality.md §6 still says uncited TL;DR bullets never block and pre-rule plans aren't marked down; approve-plan now refuses both
What I ran vs only readRead: the PR body, Ran (scratch clone, hub env pointed away, through
Findings
NotesMinor
Checked and fine: no kit flow logs an approve act except Earlier reviews: I agree each Important is resolved at this head:
Review o's M1–M5 still stand as Minor/Suggestion. M4 is confirmed above. Not checked: the full suites the PR lists (components, split-dist-docs, kit.validate, world-contract). CI at this head is green on them. Opened by the box operator. Verdict: CHANGES 456aefb |
…elfcheck Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…review p) P1: quality.md §6, beside the tldrGap refusal, now says approve-plan also waits for a passing selfcheck plan, which fails an uncited or (T3)-style top-level bullet, a citation of a missing task, and a task with no Files: or Model: line. The "drafted before this rule" clause now holds for the review only; at the approval a pre-check plan is reshaped or approved with a logged --no-selfcheck. A7 pins both; spec-sections follows the reworded clause. Minors: supervisor.md step 8 names approval-unchecked's 7-day window, says how to treat drafts reviewed before the self-check shipped, and reads "approve-plan also refuses" for "the latter"; WORK_PHASES/workStageOf removed (dead); A2 covers a task with no Files: line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review p fixes, at 8e91cac (merged origin/main first, at d63013b, no conflicts)
Opened by the box operator. |
Why. Over the last 7 days, first spec and plan reviews were rejected at about the same rate in all five fleets on this box:
The top blocking rules are the same everywhere:
Lessons didn't fix this. devteam-dev's retro measured two first-pass lessons that left spec/plan at 0.81, retired them, and concluded the fix belongs in "the review prompt or the spec/plan template, not another lesson". #901 (TL;DR bullets cite their task) may have helped: pooled 73% vs 79%, not proven. This PR builds on #901. It doesn't repeat it, and no open PR covers this.
What changes.
devteam.mjs selfcheck <spec|plan>, run by the worker. It reads the draft committed onticket/<id>(in the records repo), so it checks exactly what the reviewer will read. No model runs.## Today (sources)table with at least one row;red seencolumn, where every row has afails whenand either a red run (command → line) ordeferred: plan task N. Cells are read with the kit'stableCells, so an escaped\|stays inside its cell;## Refusals and edgessection.tldrGap(the TL;DR exists and has seven bullets or fewer);(Task N…)or(no task: …)(the reason may hold parentheses), and every cited task exists as a### Task Nheading. A tab or two spaces before the marker nests a bullet, and nested bullets need no citation;Files:line and aModel: fast|strongline.reviews.by_stage.<stage>.top_blocking_rules(last 7 days, else all time, else kit-wide: specworker.md §4; planworker.md §4,quality.md §6), each with a hint on what to read for. The worker ticks each one with evidence:--tick "1: <what you checked, where>", at least 20 characters.selfcheck {stage, ok, draft, rules, failed, ticks}at the sha it checked.draftis git's blob id of the<stage>.mdit read. The phase stays as it was. The new field is inlog.schema.json, as is the approve act'sselfcheck: exactly one ofdraftorskipped(aoneOf, which the kit'sschemaErrorsnow checks). Draft ids are exactly 40 or 64 hex.act --class approve-specandact --class approve-planrefuse unless a passingselfcheck <stage>read the<stage>.mdcommitted onticket/<id>now, matched by git's blob id. The refusal names the command to send back. The approve act records the draft it approved (selfcheck: {draft}).approvalOfcounts an approve act for each ticket in its refs, while the act's checks (the self-check, one-way doors, door picks, the goal-level door, the TL;DR) read the first. So approve-spec and approve-plan refuse a second ticket id in--refs, directly or throughdecidethenact --decision. Other refs (shas, messages) still ride along. An act that carriesselfcheck(every one this kit logs) approves only its first ref inapprovalOfandmetrics, so an id that becomes a ticket after the act is never approved by it; an older line still approves every ref it names.buildbeforeapprove-planis still checked.approve-specrefuses until a new check passes on it.check-ticketstill asks only that the acts exist.act, by hand or throughdecidethenact --decision, and the gate covers both. For a draft no worker checked (one the owner wrote, say),act … --no-selfcheck "<why>"(20 characters or more) approves it, and the act recordsselfcheck: {skipped: <why>}. The kit's own test fixtures, which approve placeholder drafts, use it with "a test fixture: no worker draft to check". That changes the G1 golden by that field and theapprovalsmetrics block (re-recorded).send --kind review-requestis not gated. A worker's request for a stage not yet approved, whose committed draft has no passing check, printsnote: approve-<stage> will refuse: …on stderr, so the worker hears it before the supervisor does.review ready:exemption.metricsreviews.by_stage.<stage>and itslast_7dgainself_checkedandunchecked(first_passes,rejected,rejection_rate). A first pass counts as self-checked when a passing self-check read the same<stage>.mdcontent as the reviewed commit holds. For a records-in-home ticket, that's the review's- Records:commit, not the code sha in its Verdict. A check without a draft (none exist yet) falls back to the reviewed sha or an ancestor of it. A check logged after a review with a time doesn't count for it. A review dated to the day only can't order a check made that same day.metricscounts spec and plan approvals per stage aschecked,skipped(--no-selfcheck) orunrecorded(an older kit's act), all time and last 7 days (approvals.by_stage, and anapprovals (checked / --no-selfcheck / before the check)line in text). When a ticket's latest approval of a stage in the last 7 days skipped the check, its worker had logged phase lines by then, and no passing check read the draft committed now,metricsraises a mediumapproval-uncheckedfinding on<ticket> <stage>(one per stage, so an ack of one leaves the other). A later checked approval clears it, and an owner-written draft can be acked with its reason.approvalscounts andapproval-unchecked(its 7-day window), and supervisor.md says how to treat a draft reviewed before the self-check shipped (reshape it, or--no-selfcheck "reviewed before the self-check"). quality.md §6 (governance, needs the owner's yes): beside thetldrGaprefusal it now saysapprove-planalso waits for a passingselfcheck plan, which fails an uncited or(T3)-style top-level bullet, a citation of a missing task, and a task with noFiles:orModel:line; its "a plan drafted before this rule isn't marked down" clause now holds for the review, and at the approval such a plan is reshaped or approved with a logged--no-selfcheck.The measure to watch. 7-day first-pass rejection per stage (
reviews.by_stage.{spec,plan}.last_7d.rejection_rate), and within itself_checkedvsunchecked. Expected effect: the mechanical half (missing red runs, uncited or wrong TL;DR bullets, tasks without Files or Model) is caught before review. I expect plan first-pass rejection to fall from about 75% pooled to under 50% for self-checked drafts within two weeks of adoption, with spec moving less, since more of its rejections are judgement calls. Ifself_checkeddoesn't beatuncheckedby 15 points or more after 20 self-checked first passes per stage, the checklist half isn't working: move the rules into the review prompt instead.Tests. New
test/pre-review-selfcheck.test.mjspasses (9/9, about 3 minutes under box load):Files:line); A3 the rules source (kit-wide, then the fleet's own last 7 days);log-checkaccepts the line);--no-selfcheckwith a reason recorded, a bare or short one refused, and refused on other classes; a ticket approved by an older kit untouched; the review request's note; a second ticket in--refsrefused, checked or not, directly and through a decision naming both; a door ticket second behind an approvable plan refused; a non-ticket ref (a sha) accepted; an id named second before it was a ticket isn't approved once it is one, instatusor inmetrics;log-checkpasses).approval-uncheckedraised for a worker's skipped draft, not for an owner's nor for a checked draft re-approved with--no-selfcheck; one finding per stage, an ack of the spec's leaving the plan's; cleared by a checked re-approval;log-checkrefuses an actselfcheckthat is empty or carries bothdraftandskipped, and a 50-character draft id;Each of these mutants turns its test red:
send-gate: the refusal disabled → A5.red-seen: the red-run test removed → A1.cite: uncited bullets allowed → A2.rules: last-7-days rules ignored → A3.evidence: the length floor removed → A4.split: never counted as self-checked → A6.Each of these mutants from review f's fixes turns its test red:
cells: the cells split on every|→ A1.tab: a tab-indented bullet read as top level → A2.paren: a reason with parentheses not read as a citation → A2.draft: the gate ignores the draft → A5.records: the Records commit ignored → A6.Each of these mutants from review i's restructure turns A5 red:
no-gate: the approve-* gate removed.any-check: any passing check counts, not the one bound to the draft (the re-scoped spec).first-stage: the gate checks the spec's check for approve-plan.skip-free:--no-selfcheckwith no reason accepted.Each of these mutants from review k's fixes turns its test red (source restored and checked with cmp):
first-ref: the gate checks only refs[0] → A5 (superseded by review m's one-ticket rule).late-check: a check logged after the review counts for it → A6.no-finding:approval-uncheckednever raised → A8.any-skip: raised with no worker phase lines → A8.all-checked: skipped approvals counted as checked → A8.Each of these mutants from review m's fixes turns its test red:
many-tickets: the one-ticket refusal removed → A5.decision-many: the refusal skipped for an act through--decision→ A5 ("a decision naming two tickets is refused at its act").checked-now: the finding raised on a draft a passing check read → A8.ticket-subject: the finding's subject the ticket alone → A8.no-oneof: the actselfcheck'soneOfremoved → A9.mid-length: the phase draft pattern back to{40,64}→ A9.Each of these mutants from review p's fixes turns its test red:
quality-old: quality.md as on main → A7.no-files: theFiles:check removed → A2.Each of these mutants from review n's fix turns A5 red:
every-ref:approvalOfhonours every ref of a checked act ("the ticket added later reads as not approved").stats-every-ref: onlyapprovalStatsdoes ("and metrics counts no approval for it").Review m's
later-ref-count(approvalStats counting only refs[0]) is now equivalent on every act the kit can log. Only an older act could name two tickets, so it is not tested.Existing suites run here:
spec-sections,devteam-mjs-regionsandmodel-tierspass; after reviews k and m,components(G1 against the re-recorded golden),split-dist-docs,kit.validateandworld-contract(which runsschemaErrors) pass; after review n,componentsandspec-sectionspass; after review p,pre-review-selfcheck,spec-sections,split-dist-docsandcomponentspass.validate-partstimed out locally at 900 s with no test finished, under box load. Left to CI.Not done / risks.
Files:line, or### T1.headings. The check stays strict. Each refusal names the command to run, and the worker reshapes the draft and sends again. The supervisor's nextapprove-specorapprove-planon a ticket mid-flight when the kit updates is refused until its worker runs the check. Approvals already logged are never re-checked. Measure the extra round trips alongside the rejection rate.log-checkrefuses the newselfcheckfield on a mirrored phase line (as with any schema addition), so update the kit in every checkout.### Task N/**Files:**shape failtasks-buildableuntil they adopt that shape. worker.md §4 already asks for it.Release note: the pre-review self-check (
selfcheck <spec|plan>) gatesapprove-specandapprove-plan: each approves only the committed draft a passing check read (--no-selfcheck "<why>"for a draft no worker wrote). Expect a burst of refused first requests after release while drafts reshape to worker.md §4. Approvals already logged aren't affected.Opened by the box operator.
🤖 Generated with Claude Code