Repository navigation
test(system-agent): reduce suite setup overhead - #119424
Conversation
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs real behavior proof before merge. Reviewed August 4, 2026, 11:05 PM ET / August 5, 2026, 03:05 UTC. ClawSweeper reviewWhat this changesThis PR reduces system-agent test setup overhead by reusing prepared plugin metadata, isolating a lightweight runtime fixture, and deferring heavy agent-creation and TUI imports until they are needed. Merge readinessKeep open. Current main has not absorbed this PR, the protected Priority: P3 Review scores
Verification
How this fits togetherSystem-agent setup projects configuration and plugin metadata into safe agent operations and an interactive terminal setup flow. This PR reduces test-time initialization around those paths while preserving production creation and TUI execution boundaries. flowchart LR
Config[Config and environment] --> Metadata[Plugin metadata]
Metadata --> Setup[System-agent setup]
Setup --> Operations[Agent operations]
Operations --> Creation[Agent creation]
Setup --> Terminal[Interactive terminal setup]
Tests[Test fixtures] --> Setup
Before merge
Agent review detailsSecurityNone. PR surfaceSource +28, Tests +42. Total +70 across 13 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Preserve the lazy runtime boundaries and metadata rebinding, then merge through the normal exact-head maintainer review once the branch is ready. Do we have a high-confidence way to reproduce the issue? Not applicable: this is test-performance maintenance. The PR body supplies before/after benchmark and CI evidence, while the source review confirms the targeted lazy boundaries. Is this the best way to solve the issue? Yes. Reusing process-stable metadata while rebinding config fingerprints, plus narrowing imports at the actual runtime boundaries, is the maintainable way to reduce setup cost without adding production policy paths. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 22de30f99821. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
ClawSweeper's remaining real-behavior checkbox is explicitly marked not applicable for this internal test-performance PR. The applicable proof is the paired exact-group benchmark and unchanged test membership in the PR body, plus the green exact-head CI run. No user-visible media proof exists or is required for this change. |
|
Merged via squash.
|
* origin/main: (22 commits) refactor(plugins): consolidate lifecycle hook dispatch (#119429) fix(ci): stabilize TUI PTY proof ownership (#119420) test(system-agent): reduce suite setup overhead (#119424) fix(ui): keep session rail pill status from overlapping the headline (#119397) fix(discord): avoid doctor runtime loading (#119391) fix(media): decouple playback cache retention (#119417) fix(slack): infer upload filename extensions from MIME types (#119399) refactor(channels): unify configured binding resolution (#119414) refactor(google-meet): unify gateway and tool dispatch (#119413) test(state): reuse legacy database fixtures (#119423) fix(reset): preserve bootstrap guidance for dynamic models (#119179) fix(chutes): honor serving context limits (#119196) refactor(status): consolidate scan projections and lazy loaders (#119412) fix(status): status --all slows down with missing plugins (#119203) refactor(gateway): consolidate usage reporting and caches (#119409) perf(gateway): keep reload and recovery machinery off gateway cold start (#119094) fix(cli): align TaskFlow controller columns for wide text (#118801) fix: make startup migration restart guidance install-neutral (#119406) fix(ci): preserve cache warmer shard envelopes (#119403) fix(sessions): preserve compatible auth profiles on model changes (#117550) ...
* test(system-agent): reduce suite setup overhead * test(system-agent): type-check TUI call ordering --------- Co-authored-by: Peter Steinberger <[email protected]>
* test(system-agent): reduce suite setup overhead * test(system-agent): type-check TUI call ordering --------- Co-authored-by: Peter Steinberger <[email protected]>
Summary
Performance
Proof
No changelog entry: this is test-performance work plus behavior-preserving lazy imports.