Repository navigation
test(cron): cover PR #217's target guard for a directory-less channel - #294
Merged
convyusboy merged 1 commit intoOct 15, 2026
Merged
Conversation
There was a problem hiding this comment.
cubic analysis
No issues found across 1 file
Linked issue analysis
Linked issue: ENG-21405: [Sentry][Fleet] OPENCLAW-FLEET-10E: Boon Web outbound delivery fails when targeting email without active thread_id
| Status | Acceptance criteria | Notes |
|---|---|---|
| Add a Boon Web email-targeted outbound test | The tests verify resolveDeliveryTarget rejects explicit and inherited email targets, but they do not exercise message dispatch. |
Tip: Get a Slack DM when cubic finishes reviewing your PRs. Connect Slack
View guided diff | Turn on auto-fix | Re-trigger cubic
There was a problem hiding this comment.
Code Review Summary
Verdict: Approved
- Correctness: Adds focused regression tests in
src/cron/isolated-agent/delivery-target.directory-less-channel.test.tsverifying thatresolveDeliveryTargetcorrectly rejects explicit and session-inherited email targets ([email protected]) with "Unknown target" when targeted at a directory-less channel (anychat-boon-web), while properly preserving validthread-<id>targets. - Contract & Scope: Faithfully replicates the plugin's
looksLikeId-only grammar without introducing out-of-boundary dependencies. No production runtime changes. - Verification: Local Vitest passed (3/3 tests in
src/cron/isolated-agent/delivery-target.directory-less-channel.test.ts),tsgoclean,oxfmtandoxlintclean. All 29 GitHub CI check runs green.
inassjunus
approved these changes
Oct 15, 2026
Related: ENG-21405 (Linear)
Adds an end-to-end regression test driving the real resolveDeliveryTarget
path against a faithful copy of anychat-boon-web's actual target grammar
(looksLikeId-only, no directory, no resolveTarget) with the exact email
from ENG-21405 ("[email protected]"), for both an explicit
delivery target and a session-inherited one.
Both are correctly rejected with "Unknown target" on current main. This
confirms PR #217's cron-resolver guard (ENG-18097) already covers this
shape of misconfiguration end-to-end, not just the narrow function its
own unit test exercises. Written during ENG-21405's investigation, which
root-caused the live Sentry errors (OPENCLAW-FLEET-10E/10F) to a stale
anychat-boon-web plugin install (v0.0.9-alpha, predating this guard
entirely) plus a misconfigured cron job on one customer box, not a core
code gap — this test documents that the resolver itself already behaves
correctly.
Co-Authored-By: Claude Opus 5 <[email protected]>
convyusboy
force-pushed
the
ridho/eng-21405-boon-web-directoryless-target-regression
branch
from
October 15, 2026 06:56
eabd471 to
e088862
Compare
convyusboy
deleted the
ridho/eng-21405-boon-web-directoryless-target-regression
branch
October 15, 2026 07:11
convyusboy
added a commit
that referenced
this pull request
Oct 15, 2026
Cut the fork release that ships the six commits on boon since v2026.6.34-boon.7: - #292 (ENG-21407): resolve relative media/PDF paths against the agent workspace in pdf, image_generate, video_generate, and music_generate, instead of the gateway process cwd; delete the image tool's duplicate inline resolution now that the loader owns it canonically. - #289 (ENG-21228): let image, pdf, image_generate, video_generate, and music_generate read agent-rendered files outside the default roots (e.g. /tmp crops) when the agent is permitted host reads outside its workspace, matching the outbound MEDIA: path; a blocked path now returns a denied tool result instead of a raw error that paged Sentry. - #293 (ENG-21406): raise the image tool's default vision timeout 60s -> 150s (above boon-llm-gateway's 120s fallback-chain budget), share one deadline across setup and the provider request, and return a graceful timeout status instead of letting the raw error end the turn; mirrored in the Codex dynamic-tool watchdog; sentry-monitor downgrades image timeouts to a warning. - #291: sentry-monitor no longer pages on ordinary non-zero exec exit codes; only shell lookup failures (126/127) stay exceptions, now fingerprinted per missing binary. Runtime Docker image adds unzip. - #288 (ENG-21227): memory_search no longer pauses/pages Sentry while the index is still building ("missing" identity); only a real "mismatched" embedding provider pauses it. - #294 (ENG-21405, test-only): regression coverage confirming the cron delivery-target guard already rejects a directory-less channel's unknown target end to end; root cause for the live Sentry errors was a stale anychat-boon-web plugin install, not a core gap. Bump root package.json and npm-shrinkwrap.json, all 136 plugin manifests, and the version field in every extension's npm-shrinkwrap.json via pnpm plugins:sync, hand-patched the same way as boon.7 (the npm-shrinkwrap generator still can't regenerate cleanly on this fork: pre-existing, unrelated @sentry/node nested @opentelemetry/resources / sdk-trace-base registry-resolution drift, reproduced again on this base). Verified via test/package-manager-config.test.ts (12/12) and the full release-preflight check suite (plugin versions, inventory, base config schema, bundled channel config metadata, config docs baseline, plugin SDK exports/API baseline/surface budget, root dependency ownership) -- all green except the known shrinkwrap generator drift. Add the 2026.6.34-boon.8 CHANGELOG.md section and the generated extensions/matrix/CHANGELOG.md entry. No config schema, plugin-SDK surface, or plugin source/dependency change in slack/msteams/diagnostics-prometheus; this is a gateway-only roll (bundled-plugin source changes in codex, memory-core, and sentry-monitor ship inside the gateway tarball). Targeted tests for all three touched extensions plus the codex dynamic-tool-execution suite: 1075/1075 passing. Co-authored-by: Claude Sonnet 5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: ENG-21405 (Linear)
What Problem This Solves
Adds regression coverage proving
resolveDeliveryTargetcorrectly rejects araw email-shaped delivery target for a directory-less channel (modeled
faithfully on
anychat-boon-web's realmessagingcontract:looksLikeIdonly, no directory, no
resolveTarget), both for an explicitdelivery.toand for a session-inherited one.
Why This Change Was Made
While investigating ENG-21405 (
OPENCLAW-FLEET-10E/10F: Boon Web outbounddelivery failing with
thread_id is required (contract v3)for an emailtarget), I suspected PR #217's cron-resolver guard (ENG-18097) was being
bypassed somewhere between it and the cron failure-notification lane, since
the live error kept recurring on a release that contains that fix.
This test proves that theory wrong: the real end-to-end
resolveDeliveryTargetpath — not just the narrowresolveChannelTargetForDeliveryfunction PR #217's own unit test exercises — already rejects this exact
target (
[email protected]) with "Unknown target" today, for bothresolution modes.
Live root-causing (SSM/SSH on the affected MACC host) found the real cause:
the
anychat-boon-webplugin install on that box is frozen atv0.0.9-alpha(2026-08-04), which predates the
looksLikeId/target-grammar guard entirely— core (
openclaw) advanced through many releases on that host while theplugin never updated. A misconfigured cron job's delivery target
(a raw customer email) then cascaded into 705 delivery-queue rows via
sendCrashRecoveryNoticere-sending to the same broken target. Neither ofthose is a core code gap, so this PR does not change production behavior —
it documents that the guard already holds, closing the loop on the
AC item "Add unit test for email-targeted outbound dispatch on Boon Web" at
the core/cron layer (the plugin repo's own
outbound.test.tsalready coversthe plugin-layer throw).
User Impact
None — test-only change. No production code is modified.
Evidence
Not run:
pnpm check:changed(Testbox/Crabbox) — test-only change touchingone file in an already-covered module; scope is narrow enough that the above
local proof is sufficient per this repo's validation policy.
Summary by cubic
Adds regression tests proving
resolveDeliveryTargetalready rejects email-shaped delivery targets on a directory-less channel, closing the loop on ENG-21405's Boon Web outbound delivery failures. Test-only change; no production code is modified.anychat-boon-web's real target grammar (ID-only, no directory) and confirms PR fix(cron): report unusable cron delivery targets at resolution time #217's guard (ENG-18097) holds end-to-end throughresolveDeliveryTarget, not just the narrow function its own unit test covers.thread-<id>targets (forwarded).v0.0.9-alpha) plus a misconfigured cron job on one customer host, not a core code gap.Written for commit e088862. Summary will update on new commits.