Skip to content

refactor(ci): own the size split in one intake-triage module - #18349

Merged
kyle-sexton merged 4 commits into
mainfrom
refactor/size-split-module
Nov 23, 2026
Merged

kyle-sexton merged 4 commits into
mainfrom
refactor/size-split-module

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

No related issue: candidate 9 of an /architecture:improve deepening 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 in refine.mjs, trust projection in write-issue.mjs and check-blockers.mjs, and a re-implementation of the child rule in pr-verify/resolve-pr.test.mjs. About 23 split fixes landed across them.

Fix

  • New .github/scripts/intake-triage/size-split.mjs owns the split markers, the split record, the child-body grammar and trust, the parent judgment (isSplitParent, splitLeftOpen, splitParentClosed), splitTaskLines, and the partition checks moved from refine.mjs: 21 symbols moved unchanged. The person-check split (personChecks, splitItemsLine, carriesSplit) stays in admit.mjs.
  • It sits in intake-triage/ beside split-child.vectors.json because it reads admit.mjs's spec-trust helpers and every lane already imports from that folder. admit.mjs and size-split.mjs import each other (splitChildBody and trustedSpecTexts call each other); neither runs the other's code at load time.
  • Callers in intake, the issue lane, pr-verify and work-unblock import from the module. The vectors' trustedSplitChild run moves into size-split.test.mjs; resolve-pr.test.mjs keeps 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).
  • Trust paths: every lane checks out the full .base tree, so no sparse list changes. The module joins the hold floor as enforcement; sync-hold-floor.py regenerated its copies.

Reasons kept from deleted comments

  • A trusted split child that admission admits at Size large is not skipped as split-required (owner decision on fix\(pr-pipeline\): align every needs-human path with the owner stop rule - part 3 of 6 #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 feat(pr-pipeline): split Size Large issues into sub-issues at intake #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.

Verification

  • node --test --test-concurrency=4: the 7 core suites 1682 pass; 65 suites in the dependent folders 4313 pass. Breaking splitChildBody fails 14 tests in size-split.test.mjs.
  • Python babysit trust suites 93 OK; test_floor_paths OK; sync-hold-floor.py --check passes.

Follow-ups

Not a review advisory: 20 comments still name admit.mjs for 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 calling splitChildBody; folding that into one verdict changes logic and is left for the spec-resolve candidate.

Related

Part of the .github deepening series.

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits November 23, 2026 00:04
…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]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 23, 2026 11:37
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T11:39:39.685530Z d9a4e93 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 4ad18b3ba2429414fc70ac986e8fff3e7d9d9ae6: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Security review (incremental, blocking only): no security issues found

This review covers only what changed since d9a4e93a. That is one file, plugins/source-control/skills/babysit-prs/scripts/engine-d.test.sh, and I read its whole hunk. Because this lane already reviewed an earlier head, it reported only blocking findings this time. It found none.

What changed. The second # test-scope: header comment gains three paths: .github/scripts/lib/github-rest.mjs, .github/scripts/lib/lane-branch.mjs and .github/scripts/recurring-schedule/file-due.mjs. The header controls which test files run when those paths change. Adding paths makes this suite run on more changes and lets nothing new through. No test logic, production code, trust control, token scope, kill switch, merge hold, manifest or instruction surface changed.

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

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 4ad18b3ba2429414fc70ac986e8fff3e7d9d9ae6: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Code review: incremental since d9a4e93

This round covered one file, plugins/source-control/skills/babysit-prs/scripts/engine-d.test.sh, and I read its whole change. This lane already reviewed an earlier head, so this review was blocking only. I found nothing to block on.

What changed. The second # test-scope: line now also lists three files:

  • .github/scripts/lib/github-rest.mjs
  • .github/scripts/lib/lane-branch.mjs
  • .github/scripts/recurring-schedule/file-due.mjs

Does it match the imports? Mostly yes. This is my own Grep of the import lines at head:

  • admit.mjs imports SCHEDULE_MARKER from ../recurring-schedule/file-due.mjs (admit.mjs:154).
  • file-due.mjs imports budgetedClient from ../lib/github-rest.mjs (file-due.mjs:19).

So both files are on the path that admit and size-split load. I did not trace which import brings in lane-branch.mjs. The line only widens which files trigger this test part, so nothing is lost if it is listed but not loaded.

Not a finding. admit.mjs and size-split.mjs both import ../lib/github-client.mjs, and no test-scope line in engine-d.test.sh lists it. I didn't check whether another part's scope covers it. Leaving it out narrows nothing this push changed, so it isn't counted.

Unverified. I had no shell, so I did not run any tests.

Closing issue: none, the same as in the earlier review.

Loosened checks: none found in this change. Loosened checks would be marked: fail (default, no wrapper setting); patterns: 0. The wrapper supplied no loosened_check_decision_record: line, so I did not check whether a citation was required.

Plugin manifests: none changed in this push.

Verifier dropped 0 of 0 candidates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant