Repository navigation
test(agents): split subagent task-settlement test support under the line cap - #159584
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 27, 2026, 6:10 AM ET / 10:10 UTC. ClawSweeper reviewWhat this changesSplits subagent settlement test support into completion and restored-run modules and updates the registry test suite to import them. Merge readiness✅ Ready for maintainer review Keep open. Current main still has the over-limit test helper, and this coherent branch has no demonstrated replacement or introduced defect. The related state-file repair addresses a separate lint failure. Priority: P3 Review scores
Verification
How this fits togetherThe subagent registry tracks delegated agent runs, including completion and recovery after a restart. Its test support registers settlement scenarios in a Vitest suite that CI tests and lints. flowchart LR
A[Delegated run scenarios] --> B[Settlement test support]
B --> C[Registry test suite]
C --> D{Lint and test checks}
D --> E[CI results]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +18. Total +18 across 3 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Retain the behavior-preserving split under the line cap and handle the separate state-file overage through its own repair. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main has the 846-line helper under a 700-counted-line lint rule and no baseline entry. This read-only review did not execute lint. Is this the best way to solve the issue? Yes. The split keeps the existing settlement cases and registration order while bringing both support modules below the cap. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 87795936be44. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
* commit '69809d7a94277d01be964bd1cbbb7aa0ebc58c9b': (219 commits) perf(agents): serialize large model requests once (#159574) refactor(cli): share capability agent-selection test cases (#159616) fix(workers): restore installation type checks (#159629) test(channels,qa,providers): remove low-value tests (batch d065) (#159627) test(doctor): run isolated migration cases concurrently (#159609) feat(apple): show agent identities in native chat (#159528) chore(i18n): refresh native locales (#159635) fix(gateway): keep node provisioning's installation contract after overlapped preparation fix(models): keep shared catalog requests alive for remaining callers (#157191) feat: let agents query online people and device activity (#159117) perf(gateway): first cloud dispatch prepares worker artifacts one after another (#159520) refactor(android): deslop Android app third pass (#159589) test(qa-lab,openshell,slack,reef,team-reports): remove low-value tests (batch d064) (#159607) fix: align process liveness checks (#151107) thanks @ekinnee fix: sessions model default does not clear the override (#159587) fix(ios): preserve typing during reentrant SwiftUI updates fix(ci): frozen 2026.8.33 validation fails on inherited test clock (#159594) perf(gateway): avoid duplicate recipient row lookup (#159595) refactor(gateway): deslop gateway fourth pass (#158786) test(agents): split subagent task-settlement test support under the line cap (#159584) ...
* commit '69809d7a94277d01be964bd1cbbb7aa0ebc58c9b': (219 commits) perf(agents): serialize large model requests once (#159574) refactor(cli): share capability agent-selection test cases (#159616) fix(workers): restore installation type checks (#159629) test(channels,qa,providers): remove low-value tests (batch d065) (#159627) test(doctor): run isolated migration cases concurrently (#159609) feat(apple): show agent identities in native chat (#159528) chore(i18n): refresh native locales (#159635) fix(gateway): keep node provisioning's installation contract after overlapped preparation fix(models): keep shared catalog requests alive for remaining callers (#157191) feat: let agents query online people and device activity (#159117) perf(gateway): first cloud dispatch prepares worker artifacts one after another (#159520) refactor(android): deslop Android app third pass (#159589) test(qa-lab,openshell,slack,reef,team-reports): remove low-value tests (batch d064) (#159607) fix: align process liveness checks (#151107) thanks @ekinnee fix: sessions model default does not clear the override (#159587) fix(ios): preserve typing during reentrant SwiftUI updates fix(ci): frozen 2026.8.33 validation fails on inherited test clock (#159594) perf(gateway): avoid duplicate recipient row lookup (#159595) refactor(gateway): deslop gateway fourth pass (#158786) test(agents): split subagent task-settlement test support under the line cap (#159584) ...
…ine cap (openclaw#159584) Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
src/agents/subagents/registry/subagent-registry.task-settlement.test-support.tshas grown to 846 physical lines (811 counted by oxlintmax-lines, limit 700). It is not inconfig/max-lines-baseline.txt, which is a shrink-only ratchet. Whenevernode scripts/check-changed.mjsruns the full core lint lane, it fails on this file, so unrelated PRs hit a red gate caused bymain.Why This Change Was Made
The module is split along its two concerns into two concept-named test-support modules:
subagent-registry.completion-settlement.test-support.ts(351 counted lines);subagent-registry.restored-settlement.test-support.ts(481 counted lines).The only importer,
subagent-registry.test.ts, is updated. Test bodies and registration order are unchanged. No baseline entry or suppression was added, and no production code changed. All nine registration helpers are still used.The other file currently over the cap on
main,src/gateway/session-row-projection.ts, is handled by #159473 and is untouched here.User Impact
None for users. It restores the
check-changedcore lint lane for PRs.Evidence
check-changedfails only on the pre-existingsession-row-projection.tsoverage.