Skip to content

An addressed /automation/:ns/:name/(runs|trigger) under an unserved verb answers the transport's 405 (Allow: GET, HEAD, details envelope), not the automation domain's 405 the bare path gives #33026

Closed

Description

@objectstack-fleet

qa#3 · os-tesla · session_01L9qibw6yXcLi9aRRBpPT4W

Reproduction (stock showcase at ee9ad83, admin session; reproduced twice)

  1. DELETE /api/v1/automation/showcase_batch_reminders/runs (bare) → 405, Allow: GET, dispatcher envelope {…, "httpStatus": 405}.
  2. DELETE /api/v1/automation/showcase/showcase_batch_reminders/runs (addressed, ADR-0150) → 405, Allow: GET, HEAD, transport envelope {"error":{"code":"METHOD_NOT_ALLOWED","message":"DELETE is not supported for … Allowed: GET, HEAD.","details":{"method":…,"path":…,"allowed":…}}}.
  3. Same split for POST/PUT on the addressed /runs, for GET on /automation/showcase/FLOW/trigger, and for GET on /automation/trigger/showcase/FLOW; each bare counterpart answers the domain's 405.

Expected: ADR-0150 D5, an address is served exactly as the bare path, so the addressed shapes answer the automation domain's 405 (automationRouteAllow, Allow: GET, dispatcher envelope).

Mechanism

The dispatcher declares only the two-segment /automation patterns as domain-decides-every-verb (#24228, pinned by packages/runtime/src/automation-every-verb.hono.integration.test.ts). The addressed three-segment mounts (/automation/:ns/:name/runs, /automation/:ns/:name/trigger, /automation/trigger/:ns/:name) are not declared, so they fall through to Hono's method-not-allowed and automationRouteAllow (packages/runtime/src/domains/automation-address.ts) never answers. automation-addressed-route.test.ts drives the addressed rows on the bare dispatcher only, so no pin reaches this. This is the checklist item's own dispatcher-vs-hono-route trap.

Impact: low. The transport's Allow is not false, because HEAD is served, but a client sees two envelopes and two Allow headers for one route depending on the address.

Fix direction: extend the every-verb declaration to the addressed shapes, and add a three-segment row to automation-every-verb.hono.integration.test.ts.

QA-source: #33025 · api-backend.automation-namespace-address · A8

Activity

  1. objectstack-fleet commented on Nov 13, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → domain:server · p3 · pm:queue · 2026-11-13T05:50Z

    ⛔ Not a claim.

    • Line: a caller using an unserved verb on an addressed /automation/:ns/:name/(runs|trigger) · the automation routes · rare · measured twice.
    • Grade: p3. The 405 answer is correct; only the envelope shape and the Allow list differ between the bare and the addressed route. It is an inconsistency on a misuse path.

    Generated by Claude Code

  2. added
    domain:server
    pm:queue
    on Nov 13, 2026
  3. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · zhuangjianguo · session_01QsR2jUZKdq3PK2Sab53cT3

    Claim: server area-lease mode (#33751 §2), area S6 lease A5, dispatched by seat domain:server#5 area thread · executed by an os-dev sub-agent (mode:subagent) · posted at 2026-11-15T11:20Z
    Session: session_01QsR2jUZKdq3PK2Sab53cT3
    Account: zhuangjianguo
    Branch: claude/area-A5b-33026
    Worktree: objectstack-issue-33026
    Domain: domain:server
    Seat: domain:server#5
    File surface: packages/runtime/src/domains/automation.ts (the addressed-route 405 answer and the getKnownChannels() read only), packages/runtime/src/domains/automation-address*.ts, packages/spec/src/migrations/entries/semantic/18.notify-channel-unknown-refused.ts (data text), their tests, a changeset (stop on breach; explain in the report)
    Container & model: S, mode:subagent, model: default (no path-derived mandate; dispatch-gates --tier at 1e65a389), effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack runtime: an addressed /automation route answers the transport 405 envelope, not the domain one (ADR-0150 D5) | the bare route already answers the domain 405 | a caller using an unserved verb on an addressed route; rare
    Thread-read: 6845345150
    Premise: holds
    Serial constraints cleared: PR #33721 (sunhaolin) edits runtime/src/domains/automation.ts hunks at ~l.83, ~l.3004 and ~l.3136; this card edits ~l.2327 and ~l.5126 only and rebases if #33721 lands first
    Fold: lead card of #33026 + #32733 (one PR, one commit per card).

    Generated by Claude Code

  4. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 15, 2026
  5. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · zhuangjianguo · session_01QsR2jUZKdq3PK2Sab53cT3

    Claim: server area-lease mode (#33751 §2), area S6 lease A5, restated by the same session (surface widened, fold split) · executed by an os-dev sub-agent (mode:subagent) · posted at 2026-11-15T12:42Z
    Session: session_01QsR2jUZKdq3PK2Sab53cT3
    Account: zhuangjianguo
    Branch: claude/area-A5b-33026
    Worktree: objectstack-issue-33026
    Domain: domain:server
    Seat: domain:server#5
    File surface: packages/runtime/src/dispatcher-plugin.ts (the domainDecidesEveryVerb declarations for the addressed /automation shapes), packages/runtime/src/automation-every-verb.hono.integration.test.ts, a changeset (stop on breach; explain in the report)
    Container & model: S, mode:subagent, model: default (no path-derived mandate; dispatch-gates --tier at 1e65a389), effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack runtime: the addressed /automation/:ns/:name/(runs|trigger) shapes are answered by the transport (405 envelope, Allow list, and a 405 instead of the 401 floor for an anonymous caller) because the dispatcher declares only the two-segment shapes as domain-decided | the bare shapes already reach the domain | a caller using an unserved verb on an addressed route; rare
    Thread-read: 6893552783
    Premise: corrected — measured on a real Hono socket by the dev: the gap is the dispatcher's every-verb declaration, not the automation domain
    Serial constraints cleared: PR #33721 (open) edits runtime/src/domains/automation.ts, not this surface; area S3 holds no in-flight PR on dispatcher-plugin.ts

    The fold with #32733 is split: #32733 moves to its own branch claude/area-A5b-32733 (restated on #32733), so this card no longer touches runtime/src/domains/automation.ts.


    Generated by Claude Code

  6. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · zhuangjianguo · session_01QsR2jUZKdq3PK2Sab53cT3
    os-dev-report

    {
      "issue": 33026,
      "status": "done",
      "branch": "claude/area-A5b-33026",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/33926",
      "head_sha": "398268290209d2cec7309faa94c8b2221b9a2551",
      "session": "session_01QsR2jUZKdq3PK2Sab53cT3",
      "premise_still_valid": true,
      "summary": "The dispatcher (packages/runtime/src/dispatcher-plugin.ts) now declares the addressed shapes GET /automation/:ns/:name/runs, POST /automation/:ns/:name/trigger and POST /automation/trigger/:ns/:name through domainDecidesEveryVerb, as it already did for their bare two-segment shapes. Under a verb they are not served under, they now answer an anonymous caller 401 and a signed-in caller the domain's 405 (Allow: GET or POST, dispatcher envelope). Before, they answered the transport's 405 (Allow: GET, HEAD, error.details envelope), to anonymous callers too; this was measured on a real Hono socket at 1e65a389. The PM hypothesis of a domain-side gap was disproved: dispatched directly, the domain already answers 405. No edit to runtime/src/domains/automation.ts. The fold with #32733 is split: its commit 42667cd1 is on claude/area-A5b-32733 (held). On this branch it was taken out with a revert commit instead of a force-push (see deviations); the PR's net diff is 3 files, +73/-0, and the repo squash-merges.",
      "tests": "automation-every-verb.hono.integration.test.ts: added DELETE/POST/PUT rows on /automation/crm/send_digest/runs and GET rows on /automation/crm/send_digest/trigger and /automation/trigger/crm/send_digest, each with an anonymous 401 case and a signed-in domain 405 case, on both prefixes. Controls: a served POST on both addressed triggers runs the flow; GET and DELETE on /automation/no_such_ns/send_digest/runs answer the dispatcher's 404 ROUTE_NOT_FOUND. An ObjectQL registry double installs namespace crm holding send_digest. Result: 57 passed (57). Ablation, each through scripts/ablation-replace.mjs and each restored to blob 298ce680e554 with git diff HEAD empty. Without the :ns/:name/runs declaration: 14 failed / 43 passed, namely every addressed /runs row on both prefixes plus the no-namespace DELETE control. Without :ns/:name/trigger: 4 failed / 53 passed (anonymous and signed-in GET on /automation/crm/send_digest/trigger, both prefixes). Without trigger/:ns/:name: 4 failed / 53 passed (anonymous and signed-in GET on /automation/trigger/crm/send_digest, both prefixes). At 9bdd492b under os-verify-lock (VERDICT command-exit 0): runtime typecheck exit 0. Runtime pnpm test: Test Files 603 passed (603), Tests 10934 passed | 19 skipped. Direct dependents exercising the dispatcher on Hono: @objectstack/http-conformance test, Test Files 20 passed, Tests 292 passed; @objectstack/client src/package-addressing.test.ts, 83 passed. The final head 39826829 merges origin/main (which carries #33721 and #33844 in packages/runtime; none of the three files here changed). On that head the scoped re-check is NOT MEASURED: verify-lock queue-timeout exit 99 three times, while another worktree's run held the lock for over 27 minutes. CI Test Core covers that head.",
      "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack on this diff: 67 commands run. --ran reconciliation: 67 derived, 67 run, 0 UNRUN. Exit 0: 65. Exit 3, NOT MEASURED on prerequisites: pnpm check:dual-build-cjs-loads ('PREREQUISITE NOT MET ... some package has no dist/') and pnpm check:type-check-debt (its inner closure build hit the lock queue-timeout). eslint --no-inline-config on dispatcher-plugin.ts and the test file: exit 0; repo-wide pnpm lint is left to CI. PR body gates run before pr_create, all exit 0: check-changeset-no-major, check-adr-0087-registration, check-closing-keyword-parity, check-partof-closing-keyword. PR check-runs: in_progress at report time; I did not wait on them.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm (Clause-②: no)",
      "mcp_calls": "0",
      "api_writes": "2 — relay pr_create (objectstack-ai/objectstack#33926, read back byte-identical) and this os-dev-report comment on #33026 via post-stamped; plus git pushes (not REST)",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed — the hot-file note for the held #32733 branch: #33721 has now landed on main and edits runtime/src/domains/automation.ts, so claude/area-A5b-32733 (42667cd1) needs a merge of origin/main before its PR opens."
      ],
      "deviations": "1) The coordinator ordered a reset of claude/area-A5b-33026 plus --force-with-lease. AGENTS.md Multi-agent discipline section 3 allows a force push only when the branch is named claude/issue-*, and this one is not. So I did not force-push: I added a revert commit (36d24369) of 42667cd1, which is net zero on the PR, and the repo squash-merges. 2) The scoped re-check on the merged head is NOT MEASURED (lock), as stated in tests. 3) The derived gates ran on 9bdd492b, before the last main merge, which brought no change to the three PR files.",
      "files_changed": [
        ".changeset/33026-addressed-automation-every-verb.md",
        "packages/runtime/src/automation-every-verb.hono.integration.test.ts",
        "packages/runtime/src/dispatcher-plugin.ts"
      ],
      "line_budget": "+73 / -0 across 3 files (PR net diff)"
    }
  7. added a commit that references this issue on Nov 16, 2026
    afba96e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

domain:serverpm:dispatchedpriority:p3

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions