Repository navigation
fix(runtime): an addressed /automation/:ns/:name/(runs|trigger) under an unserved verb answers the automation domain, as its bare path does - #33926
Conversation
…not judged at the automation save doors
A getKnownChannels() list with any member that is not { id: string } is now
an unreadable registry (not judged), like a reader that throws or answers no
list; dropping such members left a roster that refused every channel. The
notify-channel-unknown-refused semantic entry now names every not-judged
case and the paths a refusal names. Data text only in packages/spec.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jUZKdq3PK2Sab53cT3
The fold is split: that fix now lives on its own branch, and this branch carries only the addressed automation route declarations. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jUZKdq3PK2Sab53cT3
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jUZKdq3PK2Sab53cT3
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jUZKdq3PK2Sab53cT3
📓 Docs Drift CheckThis PR changes 1 package(s): 5 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
⛔ 3 release-owned page(s) also name something this change touched. These are read-only:
What this run could not see
Coarse fallback — 30 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin cd4012f47443d158ccc55c6456dfa5232312f589 && git checkout cd4012f47443d158ccc55c6456dfa5232312f589
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 895783a1e864e0fe629c56b3c6315771ca87bf87 398268290209d2cec7309faa94c8b2221b9a2551 && git checkout -B drift-repro 895783a1e864e0fe629c56b3c6315771ca87bf87 && git merge --no-ff 398268290209d2cec7309faa94c8b2221b9a2551
node scripts/docs-audit/affected-docs.mjs --json 895783a1e864e0fe629c56b3c6315771ca87bf87
|
|
domain:server#5 · zhuangjianguo · session_01QsR2jUZKdq3PK2Sab53cT3 Request: review · area S6 · review-c · head Fixes #33026. Generated by Claude Code |
|
domain:server#5 · zhuangjianguo · session_01QsR2jRMKz5NhWVrE4E1U5x Review claim · head 3982682 · 2026-11-15T14:28Z (review-c, S6) |
|
domain:server#5 · zhuangjianguo · session_01QsR2jRMKz5NhWVrE4E1U5x Review — PASSHead-sha: Read at the head: the net diff against its merge base (3 files, +73/-0; the
No must-fix, no should-fix. |
|
domain:server#5 · zhuangjianguo · session_01QsR2jUZKdq3PK2Sab53cT3 席位核对ACCEPT · area S6 lands PR #33926 at head
Generated by Claude Code |
Requested by Steedos · project thread
Fixes #33026
Clause-②: no
Metadata-protocol: none
维护者速读
/automation/:ns/:name/runs、/automation/:ns/:name/trigger、/automation/trigger/:ns/:name收到不支持的方法时,改由自动化领域回答(与不带地址的同一路由一致),不再由传输层回答。Allow;匿名调用者在带地址写法上拿到 405(暴露路由形状)而不是 401。packages/runtime/src/dispatcher-plugin.ts新增的三行声明;automation-every-verb.hono.integration.test.ts的新行与命名空间假数据。pnpm --filter @objectstack/runtime exec vitest run src/automation-every-verb.hono.integration.test.ts,预期 57/57 通过。What changes
registerAutomationRoutes(packages/runtime/src/dispatcher-plugin.ts) declares three more patterns throughdomainDecidesEveryVerb(runtime(dispatcher): on the standalone server an anonymous non-POST to /api/v1/actions gets the adapter's 405 instead of the v18 401 floor — registerActionRoutes mounts POST only (the #23909 / #24024 gap, for /actions) #24228's mechanism): GET/automation/:ns/:name/runs, POST/automation/:ns/:name/trigger, POST/automation/trigger/:ns/:name. These are the addressed shapes (ADR-0150 D5) of the bare rows that were already declared. A verb the router cannot route on them now reachesdispatch(), so the anonymous floor answers401and the domain'sautomationRouteAllowanswers405withAllow: GET/Allow: POSTin the dispatcher's envelope.1e65a389:DELETE /api/v1/automation/crm/send_digest/runsanswered405,Allow: GET, HEAD, with anerror.detailsenvelope, for a signed-in and an anonymous caller alike. The bareDELETE /api/v1/automation/send_digest/runsanswered the domain's405 Allow: GET(signed in) and401(anonymous). The domain itself was never at fault: dispatched directly, the addressed shapes already answer its405(automation-addressed-route.test.ts). The gap was only the transport declaration. No edit toruntime/src/domains/automation.ts.Tests
automation-every-verb.hono.integration.test.ts(both prefixes):/automation/crm/send_digest/runs, GET on/automation/crm/send_digest/triggerand GET on/automation/trigger/crm/send_digest. Each row has an anonymous401case and a signed-in domain405case./automation/no_such_ns/send_digest/runsanswer the dispatcher's404 ROUTE_NOT_FOUND.crmis installed through an ObjectQL registry double answering the holder table the address reads.Ablation, one per declaration (scripts/ablation-replace.mjs, each restored to the HEAD blob with git diff HEAD empty)
:ns/:name/runs:Tests 14 failed | 43 passed (57). The failures are every addressed/runsrow on both prefixes, plus the no-namespace DELETE control.:ns/:name/trigger:Tests 4 failed | 53 passed (57). The failures are the anonymous and signed-in GET on/automation/crm/send_digest/trigger, on both prefixes.trigger/:ns/:name:Tests 4 failed | 53 passed (57). The failures are the anonymous and signed-in GET on/automation/trigger/crm/send_digest, on both prefixes.Acceptance notes
createHonoApphost (catch-all): it already handed every verb todispatch(). No change there.Verification
Readings at
9bdd492b, the head before the lastorigin/mainmerge. That merge brought no change to the three files here.pnpm --filter @objectstack/runtime typecheck: exit 0.pnpm --filter @objectstack/runtime test:Test Files 603 passed (603) / Tests 10934 passed | 19 skipped.@objectstack/http-conformancetest,Test Files 20 passed / Tests 292 passed.@objectstack/clientpackage-addressing.test.ts,83 passed.automation-every-verb.hono.integration.test.ts:57 passed (57)..tsfiles: exit 0.dispatch-gates --commands: 67 run, reconciled with--ran(67 derived, 67 run). 65 exit 0. Two NOT MEASURED on prerequisites:check:dual-build-cjs-loadsneeds a fullpnpm build;check:type-check-debt's inner build never got the lock.Final head
39826829(merge oforigin/main, which carries #33721 and #33844 inpackages/runtime): the scoped re-check (closure build, runtime typecheck, the every-verb, addressed-route, contract-mounts, clone-mount and route-ledger suites) is NOT MEASURED. The shared verify lock was held by another worktree's run for over 27 minutes. CI's Test Core runs the package on this head.Generated by Claude Code
🤖 Generated with Claude Code