Skip to content

fix: restore lint compliance in sessions-send admission tests - #187144

Merged
shakkernerd merged 1 commit into
mainfrom
sessions-send-admission-lint
Oct 29, 2026
Merged

shakkernerd merged 1 commit into
mainfrom
sessions-send-admission-lint

Conversation

@shakkernerd

@shakkernerd shakkernerd commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The core lint job rejects the sessions-send admission regression fixture because the top-level Slack case assigns its original channel through an if statement without the required braces. This prevents the fixture from satisfying the existing curly rule even though the intended assignment is unambiguous.

User Impact

This is a test-only correction with no change to session routing or user-facing behavior. The complete Slack, Telegram numeric-thread, current-source-over-fallback, and opaque self-send cases remain in place, including their original and later delivery routes and every assertion.

Why This Change Was Made

Wrapping the existing Slack assignment in a block satisfies the enforced lint rule without changing its condition, value, or execution order. The correction stays with the fixture that violates the rule; lint configuration, dependencies, production code, and test coverage are unchanged.

Evidence

The unchanged baseline fixture failed the native lint command with eslint(curly) at line 722:16, reporting zero warnings and one error. Its relevant source and lint configuration are unchanged on the base of this PR.

On the corrected tree, the native remote checks passed:

  • Changed-file formatting, including oxfmt/Bun parity, and selected core lint: zero warnings or errors.
  • The affected core-test-agents-tools type graph.
  • src/agents/tools/sessions-send-tool.admission.test.ts: all 18 tests passed, including all four admitted-route scenarios. The native test shard took 65.85 seconds, including a 63.54-second Vitest run dominated by transformation; the existing integration fixture and its test cost are unchanged.

The exact PR head also passed hosted CI and independent review. ClawSweeper rated it Platinum with no findings. After the target branch lowered its test-line ceiling, #187162 restored measured headroom; the composed result fits that accepted ceiling without changing this patch or its assertions. No UI or live-model behavior changes are claimed.

@clawsweeper

clawsweeper Bot commented Oct 29, 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 Oct 29, 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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 Oct 29, 2026
@clawsweeper

clawsweeper Bot commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR adds required braces around the Slack channel assignment in the sessions-send admission test fixture.

Example: Linting the top-level Slack regression fixture

  • Before: The unbraced conditional violates the enforced curly rule.
  • After: The assignment uses braces while preserving the same condition and value.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A minimal, behavior-preserving maintenance patch supported by source inspection and successful exact-head CI.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored, test-only syntax repair changes no shipped behavior; exact-head lint and CI results provide proportional validation.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: The existing admission regression fixture fails the repository's core lint rule.
Reason: The maintainer-authored patch restores the established lint contract with no production changes or added machinery.

Merge readiness

✅ Ready for maintainer review

This PR is a correct, minimal lint repair that current main still needs; exact-head core lint and the CI gate pass, with no actionable findings.

Priority: P3
Reviewed head: 2f7fca91f585fe0bef8d1fa111417c93c5af9ab3

Before merge

None.

Findings

None.

Agent review details

How this fits together

The admission suite exercises sessions_send routing and lifecycle behavior; this change affects only fixture syntax consumed by lint and Vitest.

flowchart LR
  A[Admission scenarios] --> B[Test fixture]
  B --> C[Sessions send tool]
  C --> D[Gateway test transport]
  D --> E[Route assertions]
  B --> F[Core lint]
Loading

Technical review

Best possible solution:

Merge the existing brace-only correction without adding tests, changing lint configuration, or altering routing behavior.

Do we have a high-confidence way to reproduce the issue?

Source inspection confirms the unbraced conditional conflicts with the enforced curly rule; no local lint or tests were run under the read-only review constraint.

Is this the best way to solve the issue?

The patch is the smallest complete repair: it satisfies the existing rule at the violating fixture and preserves every routing scenario and assertion.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against bd10ba29d338.

Provenance checked

  • Slack admission fixture assignment keeps the original intent (cb5a438: The earlier Slack routing repair added this assignment to exercise delayed top-level completions through the existing composed admission regression.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Josh Avant: Raw commit 4f53213 adds src/agents/tools/sessions-send-tool.admission.test.ts:280 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 4f53213ad359; files: src/agents/tools/sessions-send-tool.admission.test.ts)

PR surface

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

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

Labels

Label changes:

  • add P3: This is a behavior-preserving test fixture correction with no user-facing runtime impact.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool 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:

  • P3: This is a behavior-preserving test fixture correction with no user-facing runtime impact.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool 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 October 28, 2026, 9:22 PM ET / October 29, 2026, 01:22 UTC.

@shakkernerd
shakkernerd merged commit 054c4ba into main Oct 29, 2026
128 checks passed
@shakkernerd
shakkernerd deleted the sessions-send-admission-lint branch October 29, 2026 02:05
@shakkernerd

Copy link
Copy Markdown
Contributor Author

Fixed: the sessions-send admission fixture now satisfies the existing curly-brace rule while preserving its route scenarios and assertions.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 29, 2026
…aw#187144)

Restore lint compliance in the sessions-send admission fixture while preserving its route scenarios and assertions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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.

1 participant