Skip to content

test: fix dangling underscore lint in subagent expiry test - #200685

Merged
vincentkoc merged 1 commit into
mainfrom
roboclaw/fix-subagent-expiry-lint
Nov 17, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
roboclaw/fix-subagent-expiry-lint

Conversation

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

What Problem This Solves

check-lint-core-2 fails on main and on every PR merge ref since #200649 (3b61a7c3): src/agents/subagents/registry/subagent-result-owed.expiry-discard.test.ts:53 declares using _warning = ..., which eslint(no-underscore-dangle) rejects. That blocks openclaw/ci-gate for 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 unused using disposable (for example src/agents/agent-roles.test.ts:27). A descriptive name would trip no-unused-vars; _ satisfies both rules. The spy, its silencing behavior and the test's assertions are unchanged.

Evidence

Work sessions

Linked for team reference; these sessions aren’t public.

@clawsweeper

clawsweeper Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: XS labels Nov 17, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 17, 2026
@clawsweeper

clawsweeper Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Renames an unused disposable warning-spy binding from _warning to _.

Example: CI lints the subagent expiry-discard test.

  • Before: using _warning violates the configured dangling-underscore rule.
  • After: using _ follows the existing repository idiom while preserving automatic spy disposal.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, behavior-preserving lint repair supported by source inspection and successful exact-head validation.
Proof confidence 🐚 platinum hermit (4/6) This test-only rename requires no shipped-entry-point demonstration; the affected lint check passes on the reviewed head.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: A test binding fails core lint and can obstruct otherwise unrelated PR validation.
Reason: The maintainer-authored repair removes the lint violation with no runtime or product-contract change.

Regression provenance

Possible 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
Reviewed head: 8127479249220d2784ad88682bd01f85c896dc8d

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Disposable warning spy in the expiry-discard regression keeps the original intent (3b61a7c: Silence the operator warning while asserting that expiry produces a requester-visible failure notice.)

Security

None.

Evidence

What I checked:

PR surface

Tests 0. Total 0 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 1 1 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 1 1 0

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P2: Repairs a concrete core-lint failure affecting development CI without changing runtime behavior.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: Repairs a concrete core-lint failure affecting development CI without changing runtime behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 17, 2026, 11:24 AM ET / 16:24 UTC.

@vincentkoc vincentkoc self-assigned this Nov 17, 2026
@vincentkoc
vincentkoc merged commit 2b9b23b into main Nov 17, 2026
121 checks passed
@vincentkoc
vincentkoc deleted the roboclaw/fix-subagent-expiry-lint branch November 17, 2026 16:29
@vincentkoc

Copy link
Copy Markdown
Member

Merged via squash.

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

Labels

agents Agent runtime and tooling P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants