Skip to content

[2026.10.10-beta.5] fix(tooling): repair FRV tooling tests and Knip deadcode after backports - #187570

Merged
RomneyDa merged 17 commits into
release/2026.10.10from
beta5/tooling-fixes
Oct 29, 2026
Merged

RomneyDa merged 17 commits into
release/2026.10.10from
beta5/tooling-fixes

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

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.

@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 channel: msteams Channel integration: msteams channel: slack Channel integration: slack channel: telegram Channel integration: telegram gateway Gateway runtime cli CLI command changes scripts Repository scripts commands Command implementations agents Agent runtime and tooling size: M labels Oct 29, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug 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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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-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 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.

  • Before: The fixture returns an empty revision or exits with 7, preventing the intended wrapper scenario from running.
  • After: The fixture returns the checkout's pinned revision before exercising exit propagation, signals, and watchdog cleanup.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is focused and source-supported; validation relies on reported harness runs and hosted checks, with no independently inspected shipped-entry-point capture.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored tooling repair is outside the ordinary contributor proof gate; reported focused runs exercise real script children and the Doctor repair owner, while source inspection verifies unchanged production behavior.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Release qualification reports deterministic failures because partially backported fixtures and analyzer metadata disagree with the release implementation.
Reason: The maintainer-authored direction is established, and the source verifies focused repairs without a new option, public API, or runtime policy.

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
Reviewed head: 3d13dbdcdc3f02528a30ea0f12d39f8135c7e75b

Before merge

None.

Findings

None.

Agent review details

How this fits together

Release 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
Loading

Technical review

Best 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

  • Live-wrapper Bun fixture keeps the original intent (08dd80a: CI-selected Bun requires revision verification before launching tests; the upstream fixture repair answers that probe without weakening lifecycle assertions.)
  • Compiler watchdog expectation keeps the original intent (9b14a38: Timeout exit 124 stops CI collectors from admitting additional work.)
  • Gateway database-worker test ordering keeps the original intent (23a2bcd: The meeting-transcript backport added three worker-owned tests; this PR preserves membership and restores sorted ownership comparison.)
  • Private production declarations and test access keeps the original intent (refactor: keep dashboard migration guards at repair boundary #183153: Internal declarations should stay with their existing owners while tests exercise supported repair or lifecycle boundaries.)
  • Unconsumed async-store helper changes intended behavior with a stated reason (6d9852d: The original optimization served plugin execution-frame entry, but that consumer was omitted from the release backport; the PR explicitly defers completing the optimization.)
  • Unconsumed streaming UTF-8 decoder changes intended behavior with a stated reason (8d3183d: The decoder supported broad streaming legacy import repairs intentionally excluded from the minimal backport; the surviving strict nonstreaming decoder is unchanged.)
  • Recovery mismatch fixture keeps the original intent (01430fa: The fixture represented recovery-version diagnostics, but its last release consumer was removed by the later recovery backport.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Source -24, Tests -65, Other +7. Total -82 across 25 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 10 9 33 -24
Tests 12 102 167 -65
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 3 9 2 +7
Total 25 120 202 -82

Labels

Label changes:

  • add P2: The repairs unblock release tooling validation without changing supported user-facing behavior.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp 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: The repairs unblock release tooling validation without changing supported user-facing behavior.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp 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 29, 2026, 6:27 AM ET / 10:27 UTC.

shakkernerd and others added 12 commits October 29, 2026 04:18
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)
Partial cherry-pick of the test/scripts/test-live.test.ts hunk only.
#173807 (backported as e72f868) made the CI Bun --revision probe
mandatory; the fake Bun fixture must answer it from the checkout pin.

(cherry picked from commit 08dd80a)
#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)
Telegram hunk of 09f9ec8 (#183086) only. The release-only test
called the private helper directly; its surviving-alias case is already
asserted through releaseRemovedTelegramAccountThrottler, so drop the
duplicate direct call.

(cherry picked from commit 09f9ec8, partial)
src/agents/cli-output-stream-limits.ts hunk of 28e2774 (#184686) only;
the backport of #184352 left this export without a consumer.

(cherry picked from commit 28e2774, partial)
src/plugins/management-catalog.ts hunk of 2c0c30b (#185269) only;
the backport of #184921 left this export without a consumer.

(cherry picked from commit 2c0c30b, partial)
The backport of #181260 (2f7589a) moved RequesterSettleWakeParams
into the state module, leaving RequesterSettleWakeBatchCallbacks exported
only for a test fixture. Main keeps it module-private; type the fixture
through RequesterSettleWakeParams instead.
The minimal backport of #180861 (8d3183d) added decodeUtf8Chunks as
a prerequisite, but its main consumers (streaming state-migration
importers) were intentionally not backported, so production Knip flags
it. Remove the export and its unit case; decodeUtf8Input is unchanged.
The minimal #172625 backport (e6c3639) deferred the dev-tool,
test-runtime and run-format callers that consume isCiEnvironment on main,
so the export has no consumer on the release branch.
The #185692 backport in 39f9bde removed the last consumer of
recoveryVersionMismatch from update-cli.plugin-convergence.test.ts. Main
removed the same fixture in eae9bc4 (#181717).
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.
@RomneyDa
RomneyDa force-pushed the beta5/tooling-fixes branch from 3d13dbd to f577f52 Compare October 29, 2026 11:18
… 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)
@RomneyDa
RomneyDa merged commit cac9490 into release/2026.10.10 Oct 29, 2026
150 checks passed
@RomneyDa
RomneyDa deleted the beta5/tooling-fixes branch October 29, 2026 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling channel: msteams Channel integration: msteams channel: slack Channel integration: slack channel: telegram Channel integration: telegram cli CLI command changes commands Command implementations gateway Gateway runtime P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: M 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