Repository navigation
fix: restore lint compliance in sessions-send admission tests - #187144
Conversation
|
🦞👀 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 changesThis PR adds required braces around the Slack channel assignment in the sessions-send admission test fixture. Example: Linting the top-level Slack regression fixture
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +2. Total +2 across 1 file. Added test files: 0. View PR surface stats
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 October 28, 2026, 9:22 PM ET / October 29, 2026, 01:22 UTC. |
|
Fixed: the sessions-send admission fixture now satisfies the existing curly-brace rule while preserving its route scenarios and assertions. |
…aw#187144) Restore lint compliance in the sessions-send admission fixture while preserving its route scenarios and assertions.
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
ifstatement without the required braces. This prevents the fixture from satisfying the existingcurlyrule 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:
core-test-agents-toolstype 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.