Repository navigation
refactor(ci): own the size split in one intake-triage module - #18349
Conversation
…nd child trust Move the size split out of admit.mjs and refine.mjs into .github/scripts/intake-triage/size-split.mjs, unchanged: the two markers, the split record (render, parse, digest), the child-body grammar and trust rule (splitChildHeader, splitChildBody, Scope line), the split-child and split-parent readers (trustedSplitChild, splitParentOf, isSplitParent, splitLeftOpen, splitParentClosed), splitTaskLines and the partition checks (partitionProblem, subsetProblem). Intake, the issue lane, work-unblock and pr-verify import it directly; admit.mjs and refine.mjs re-export nothing that moved. admit.mjs now exports the spec-trust helpers the module reads (here, names, repoOf, RECURRING, humanActor, countedRefinement, taskLinesOf). size-split.mjs joins the hold floor as enforcement, beside admit.mjs and resolve-pr.mjs, which import it; the generated floor copies and the floor pins follow. The module's tests move to size-split.test.mjs, the vectors run through trustedSplitChild included. resolve-pr.test.mjs drops its inline own-agent rule from the vectors loop: no vector carries a source label, so it was always false. Reasons kept from deleted comments: - A trusted split child that admission admits at Size large is not skipped as split-required (owner decision on #11021): check-blockers.mjs hands trustedSplitChild to resolve-config as the splitChild fact (pr-pipeline.yaml models.issue-dimensions.split-child-size). - splitChildBody (owner Q93 with the Q9 extension; parent lines per the owner decision on #9906): GitHub names only the last editor, so a listed human's edit after anyone else's vouches for ticked boxes, never for other text; a deleted, edited or superseded refinement leaves the child untrusted, whoever edited it since. - A Scope target has no comma, angle bracket, backtick, at sign, number sign or line break, so it cannot add a mention or an issue link to the child; the model names the targets and the script writes the line. splitScope reads only a body splitChildBody trusts, so an unreadable Scope line never narrows anything. - The split digest covers the refinement it copies, so a newer refinement with the same lines files no second set of sub-issues; subset groups round-trip through renderSplitRecord and splitRecord so the record's cap and its parser stay one source. - A split parent (owner Q93): a hand split counts an item as covered only when it cites a sub-issue by its whole title, since hand splitters rarely tick the parent's items; a sub-issue closed not_planned, as a duplicate or with no reason does not count; a split record already took the items of a comment last written before it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…odule size-split.mjs takes paginate from lib/github-client.mjs, where main moved it. Hold-floor files regenerated from main plus this branch's size-split row; floor pins recomputed (159 classes, enforcement 65). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed Security review (incremental, blocking only): no security issues foundThis review covers only what changed since What changed. The second The 31 files from the earlier review are unchanged since it ran, and its result (0 findings) still applies. The prior summary-only post has no line anchor and carried no finding, so there is nothing to restate. PR text. The PR text contains no instructions aimed at the review lane. critical-findings: 0 |
|
claude-review reviewed Code review: incremental since
|
…split read Co-Authored-By: Claude Opus 5.5 <[email protected]>
No related issue: candidate 9 of an
/architecture:improvedeepening pass over the CI lanes, run in a local session.Summary
Splitting a Large issue into trusted child parts was spread over six modules in three lanes: markers and the child grammar in
intake-triage/admit.mjs, partition rules inrefine.mjs, trust projection inwrite-issue.mjsandcheck-blockers.mjs, and a re-implementation of the child rule inpr-verify/resolve-pr.test.mjs. About 23 split fixes landed across them.Fix
.github/scripts/intake-triage/size-split.mjsowns the split markers, the split record, the child-body grammar and trust, the parent judgment (isSplitParent,splitLeftOpen,splitParentClosed),splitTaskLines, and the partition checks moved fromrefine.mjs: 21 symbols moved unchanged. The person-check split (personChecks,splitItemsLine,carriesSplit) stays inadmit.mjs.intake-triage/besidesplit-child.vectors.jsonbecause it readsadmit.mjs's spec-trust helpers and every lane already imports from that folder.admit.mjsandsize-split.mjsimport each other (splitChildBodyandtrustedSpecTextscall each other); neither runs the other's code at load time.trustedSplitChildrun moves intosize-split.test.mjs;resolve-pr.test.mjskeeps its per-vector loop, which is the only test of resolve-pr's own parent-read wiring, and drops only its inline ownAgent rule (always false: no vector has labels)..basetree, so no sparse list changes. The module joins the hold floor asenforcement;sync-hold-floor.pyregenerated its copies.Reasons kept from deleted comments
Verification
node --test --test-concurrency=4: the 7 core suites 1682 pass; 65 suites in the dependent folders 4313 pass. BreakingsplitChildBodyfails 14 tests insize-split.test.mjs.sync-hold-floor.py --checkpasses.Follow-ups
Not a review advisory: 20 comments still name
admit.mjsfor a moved symbol (for example refine.mjs:268, label-unblocked.mjs:305, resolve-pr.mjs:1129); editing them trips the comment lint, so they go to the comment sweep. The issue lane (write-issue.mjs:291-296) and pr-verify (resolve-pr.mjs:1055-1069) still check the child before callingsplitChildBody; folding that into one verdict changes logic and is left for the spec-resolve candidate.Related
Part of the
.githubdeepening series.🤖 Generated with Claude Code