Repository navigation
[2026.10.10-beta.5] fix(tooling): repair FRV tooling tests and Knip deadcode after backports - #187570
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 repairs backport-related test fixtures, narrows private exports, removes unused helpers, and registers standalone tooling with Knip. Example: The live-test wrapper probes the fixture Bun executable with --revision.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR provides useful release-branch tooling repairs, and the pinned diff contains no identified correctness defect. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherRelease validation uses script fixtures, Vitest ownership lists, and Knip's source graph to distinguish tooling failures from product regressions. flowchart LR
A[Release backports] --> B[Tooling fixtures]
A --> C[Internal modules]
B --> D[Vitest ownership and runner checks]
C --> E[Knip source graph]
D --> F[Release qualification]
E --> F
Technical reviewBest possible solution: Land the minimal release adaptation once the remaining current-head CI failures are classified and the applicable landing gates are satisfied. Do we have a high-confidence way to reproduce the issue? Release-candidate CI annotations independently confirm the fixture failures, and source inspection explains each mismatch; no target code was executed during this review. Is this the best way to solve the issue? The patch addresses the tooling owners directly, preserves production decisions, and removes unconsumed backport prerequisites instead of expanding the release's feature scope. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 241614b59cf5. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -24, Tests -65, Other +7. Total -82 across 25 files. 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 29, 2026, 6:27 AM ET / 10:27 UTC. |
The Microsoft Teams fail-closed allowlist sentinel now remains module-private while preserving its exact restrictive projection and lifecycle coverage. (cherry picked from commit 59b1ddd)
#184639 (backported as d9a91b5) intentionally changed the run-tsgo watchdog exit from 1 to 124 so CI collectors stop admitting work. Main realigned this case in run-tsgo-worktree.test.ts (9b14a38); on the release branch the same watchdog case lives in run-tsgo.test.ts and was not realigned by the backport.
The beta.5 adaptation of #178415 (23a2bcd) prepended three integration proofs to gatewayDatabaseWorkerTestFiles. Canonical project ownership compares that list against sorted discovery, so the out-of-order entries failed vitest-cli-ownership. Move them to their sorted positions; routing membership is unchanged.
Keeps Slack reconnect policy details module-private while preserving the exact invalid-auth cutoff, reset, and blocked-status behavior. (cherry picked from commit cd65901)
The release adaptation of #152052 (41aa7a6, de41770) typed its partial mocks through type-only namespace imports. Knip treats the secrets runtime namespace as the only consumer of its exports, so the full-tree scan reported prepareSecretsRuntimeSnapshotRestore and SecretResolverWarning as unused. Use main's inline typeof import() form.
The backport of #179213 (6d9852d, plus f3fb0e9 registering it as a wrapper component) took the runWithAsyncStore helper and its test without the plugin-instance-invocation consumer, leaving src/shared/async-store.ts unused in production. Remove the helper, its test and its wrapper-components entry rather than complete a perf change during beta stabilization.
Mirror main's Knip entries for files added by beta.5 backports:
- scripts/perf/{node-event-session-source-measure.mjs,
stream-dispatch-scope-measure.ts,system-prompt-report-retention.ts}
as path-invoked script roots (#183931, #183552, #183010);
- the Telegram ingress context Worker fixture loaded by URL (#178909) in
production ignoreFiles.
Also register scripts/test-security-mail-parser.mjs, the standalone
nodemailer sender-parsing regression added by #187301 (release-only).
Release adaptation of 50b532d (#183153). The backport of #182345 (51f63cb) exported isUnstampedDashboardRoot only for its unit test. Main made it private and drove the eligibility cases through repairLegacyDashboardChatTypes using a canonical-repair fixture this branch does not carry. Keep every accepted and rejected row case, now asserted through the repair boundary with the branch's session accessor.
3d13dbd to
f577f52
Compare
… after #181260 backport Backport 2f7589a (#181260) filters delivered child findings from settle wakes (needsRequesterSettleFindings), so this delivered-row case no longer reads the child transcript where it injected worker capacity and failed with 'expected findTranscriptEvent to be called'. Main realigned the same case in 411b2e6 (#178104): inject capacity at captureRequesterSessionEntryCurrent and assert the delivered result is not repeated in the resumed wake. Apply that realignment; the 'Already delivered child results' wording that main also asserts belongs to #178104's message change, which this branch does not carry. (adapted from commit 411b2e6)
Changed-test follow-up: requester-wake e2e (
checks-node-changed)src/agents/subagents/registry/subagent-registry.requester-wake.e2e.test.ts› "preserves a saved wake through worker capacity preparation (retry/cancel/replace)" fails at the release head without this PR too: 3 failed / 29 passed on f5e7a02,expected "findTranscriptEvent" to be called at least once. Changed-test selection only picked it up because this PR touches requester-settle files.2f7589ab17df(fix(agents): settle consumed yield cohorts without retry #181260) filters delivered child findings out of settle wakes (needsRequesterSettleFindings). This case's child row isdelivered, so the transcript read where it injected worker capacity no longer happens. [2026.10.10-beta.5] fix(gateway,subagents): repair backport regressions in gateway lane FRV tests #187589 realigned sibling fixtures for the same reason.411b2e63f3f8(fix(agents): avoid repeating delivered child results on settle #178104), which realigned this exact case:captureRequesterSessionEntryCurrent(requester preparation);tsgo:core:testpasses.