Repository navigation
test: fix dangling underscore lint in subagent expiry test - #200685
Conversation
Co-authored-by: steipete <[email protected]>
|
🦞👀 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. What this changesRenames an unused disposable warning-spy binding from Example: CI lints the subagent expiry-discard test.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness✅ Ready for maintainer review Keep open: this PR makes the smallest lint repair, preserves the expiry test’s behavior, and has passing exact-head CI; no actionable defect was found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe subagent registry test exercises expired-result notification; CI statically checks its source before allowing PRs through the gate. flowchart LR
A[Test source] --> B[Core lint]
B --> C[CI gate]
A --> D[Expiry regression test]
D --> E[Subagent registry]
Technical reviewBest possible solution: Retain this binding-only repair and preserve the existing disposal scope and expiry assertions. Do we have a high-confidence way to reproduce the issue? Current-main source and lint configuration establish the invalid binding; exact-head CI confirms the replacement passes, although no local lint command was run under the read-only review. Is this the best way to solve the issue? The single rename is the smallest complete fix: it follows an existing disposable-binding idiom without weakening lint rules or changing test behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 340610b09eec. Provenance checked
SecurityNone. EvidenceWhat I checked:
PR surfaceTests 0. Total 0 across 1 file. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 17, 2026, 11:24 AM ET / 16:24 UTC. |
|
Merged via squash.
|
…200685) Co-authored-by: steipete <[email protected]>
(cherry picked from commit 2b9b23b) Co-authored-by: RomneyDa <[email protected]>
What Problem This Solves
check-lint-core-2fails on main and on every PR merge ref since #200649 (3b61a7c3):src/agents/subagents/registry/subagent-result-owed.expiry-discard.test.ts:53declaresusing _warning = ..., whicheslint(no-underscore-dangle)rejects. That blocksopenclaw/ci-gatefor unrelated PRs (observed on #200658 and #200659).User Impact
None at runtime; test-only. Unblocks PR CI.
Why This Change Was Made
Rename the binding to
_, the existing repository idiom for an intentionally unusedusingdisposable (for examplesrc/agents/agent-roles.test.ts:27). A descriptive name would tripno-unused-vars;_satisfies both rules. The spy, its silencing behavior and the test's assertions are unchanged.Evidence
oxlint --type-aware --type-check --threads=1 --tsconfig config/tsconfig/oxlint.core.json): 0 warnings, 0 errors. The intermediate namesilencedWarningfailedno-unused-vars, which is why_is used.Work sessions
Linked for team reference; these sessions aren’t public.