Repository navigation
chore(cron): remove duplicate session override tests - #129736
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 25, 2026, 10:06 PM ET / August 26, 2026, 02:06 UTC. ClawSweeper reviewWhat this changesThis PR removes two duplicate cron model-selection tests after a runtime-seam refactor. Merge readinessThe two deleted assertions are already covered by retained precedence tests, while stored-session preservation remains tested at its session owner. No patch defect found; merge after exact-head CI is green. Priority: P3 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherCron resolves a session entry, then uses it with configuration, hooks, and job payload data to select a model for an isolated agent run. Session resolution owns preservation of stored override fields. flowchart LR
A[Cron job] --> B[Resolve session]
B --> C[Session entry]
D[Configuration and hook] --> E[Model selection]
C --> E
E --> F[Isolated agent run]
G[Session owner tests] --> B
H[Precedence tests] --> E
Before merge
Agent review detailsSecurityNone. PR surfaceTests -18. Total -18 across 1 file. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the stronger owner-boundary and precedence tests, remove these duplicates, and merge after the exact-head CI lanes pass. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR removes redundant coverage rather than fixing a runtime defect; retained source tests exercise both deleted outcomes. Is this the best way to solve the issue? Yes: removing only the duplicated selector assertions while retaining model-precedence and session-owner coverage is the narrowest maintainable solution. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against c841a9958abc. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
189ee65 to
2c86509
Compare
|
Land-ready verification for exact head
Production LOC: +0/-0. Tests: +0/-18. No docs, changelog, runtime, or live-behavior proof gap applies to this test-only duplicate deletion. |
|
Merged via squash.
|
What Problem This Solves
Two cron model-selection tests still claimed to cover stored-session behavior after a runtime-seam refactor had reduced them to direct calls that exactly replayed the model-precedence cases above. They added maintenance and CI work without detecting another regression.
Why This Change Was Made
Remove the obsolete
stored session overridesblock. The retained model-precedence tests pass the same provider/model session entry and the same effective empty session entry toresolveCronModelSelection.The original storage contract remains covered at its owner in
isolated-agent/session.test.ts, including preservation ofmodelOverride/providerOverridefrom an existing session and missing-override behavior. History confirms8727338372b4collapsed the formerly distinct force-new/store flows into the duplicate direct calls.User Impact
No user-visible behavior changes. Cron model-selection coverage remains intact while the suite has two fewer duplicate tests.
Production LOC: +0/-0 | Tests: +0/-18
Evidence
node scripts/run-vitest.mjs src/cron/isolated-agent.model-formatting.test.ts— 39/39 passed.node scripts/run-vitest.mjs src/cron/isolated-agent.model-formatting.test.ts src/cron/isolated-agent/session.test.ts— 59/59 remaining tests passed (37 model-selection + 22 session-owner tests).node scripts/check-changed.mjs --dry-run -- src/cron/isolated-agent.model-formatting.test.ts— classified thecoreTestslane.node scripts/check-changed.mjs -- src/cron/isolated-agent.model-formatting.test.ts— passed repository guards, format, dead-export scan, all core-test typecheck shards, and lint.git diff --check origin/main...HEAD— passed.