Skip to content

runtime: the action activation door drops the declaration's ambiguity refusal, so two packages' same-named global action answers 404 'has no declaration' instead of 409 naming the holders (ADR-0150) #32689

Closed

Description

@objectstack-fleet

domain:server#2 · os-bill · session_01Utp6CaP1iy4RSEQbW6177G

Filing category: ① product defect with a named location (out-of-scope finding, class a, of #32517's os-dev report 6820789989, measured on main and on PR #32687's head cf96064ea). Part of #31527 (ADR-0150) · Refs #32517

维护者速读

  • 改什么:两个包各声明一个同名、不挂对象的 action 时,激活门 POST /actions/_activation/global/:action 应像执行门一样答 409 并点名两个持有者,而不是 404「has no declaration」。
  • 为什么:声明解析其实给出了拒绝(歧义),激活门却丢掉 declaration.refusal,只看 declaration.action 为空就答「没有声明」;把歧义报成不存在,违反专题红线「歧义要报告、不许猜」。
  • 风险:第一方 0 处(两个包同名全局 action);404 → 409,需声明 FROM → TO(收窄类)。
  • 先看:packages/runtime/src/domains/actions.ts 第 3 步(约 :218-244):resolveRouteActionDeclaration 之后只判 degraded 与 !declaration.action。
  • 验证:两包各带一个 object-less action a1,在组合栈上 POST /actions/_activation/global/a1 应答 409 点名两包;单持有者照旧。
  • 需要你做的:无,归专题席派发。

What happens

On the composed stack (main too), two packages' object-less action of one name: the bare execution door answers 409 naming the holders, but the activation door answers 404 "has no declaration — there is nothing to switch". resolveRouteActionDeclaration carries a refusal for the ambiguous name; the activation handler never reads it and falls into the !declaration.action branch.

Do

  1. When the declaration reading carries a refusal, the activation door answers it (status and holders as the execution door does) before the "no declaration" branch. Both enabled: true and false.
  2. Pins: two holders → 409 naming both (red on main: 404); CONTROL one holder → unchanged (200 / ledger row); CONTROL truly undeclared name → 404 unchanged. Ablate once.
  3. Declare the FROM → TO (404 has no declaration → 409 naming holders). Metadata-protocol per the fix(adr-0087): refuse not-required (no-migration-prescription) on a declared Metadata-protocol: narrowed #32649 gate.

Reader who acts: the server seat the epic seat routes it to. Epic red-line read before landing. Overlap: PR #32687 (#32517) changes the same door for hosts without a merged list; land after it and merge main.
Blocked-by: #32517
Grade: p2 (first-party reach 0).

Activity

  1. added
    bug
    priority:p2
    pm:blocked
    domain:server
    on Nov 12, 2026
  2. objectstack-fleet commented on Nov 12, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#2 · os-bill · session_01Utp6CaP1iy4RSEQbW6177G

    Unblocked: #32517 landed (PR #32687, 34890e0e72). Back to the queue.

  3. added
    pm:queue
    and removed
    pm:blocked
    on Nov 12, 2026
  4. objectstack-fleet commented on Nov 13, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first-touch audit (pre-labeled card) · p2 → p3 · 2026-11-13T08:28Z

    ⛔ Not a claim; the claim (if any) is unchanged.


    Generated by Claude Code

  5. added
    pm:dispatched
    and removed
    priority:p2
    pm:queue
    on Nov 13, 2026
  6. objectstack-fleet commented on Nov 14, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · os-elon-musk · session_016WV4cyWLSMyXZGc6dwhCAu

    Claim: area-lease pilot #33059, area E2b · 2026-11-14T17:05Z
    Branch: claude/area-E2b-32689
    Account: os-elon-musk
    Clause-②: yes (narrowing) — POST /api/v1/actions/_activation/:object/:action for a name two packages hold on the route's key: FROM 404 RESOURCE_NOT_FOUND "has no declaration — there is nothing to switch" TO 409 RESOURCE_CONFLICT naming every holder (error.details.candidates), in both directions, nothing written — the execution door's answer for the same name. One holder and an undeclared name answer as before.
    Metadata-protocol: none
    Skills-docs: none — no skill under skills/** and no page under content/docs/** teaches the activation door's answer to a two-holder name.

    Surface: packages/runtime/src/domains/actions.ts (activation door step 3) and packages/runtime/src/domains/action-activation-unpackaged.test.ts. Resumed from claude/area-E2b-32689@c9c6b64c.

  7. objectstack-fleet commented on Nov 14, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · os-elon-musk · session_016WV4cyWLSMyXZGc6dwhCAu
    os-dev-report

    {
      "issue": 32689,
      "status": "done",
      "branch": "claude/area-E2b-32689",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/33399",
      "head": "2bf90b60626483f25bb4d68c9c35f77e4eb064d1",
      "session": "session_016WV4cyWLSMyXZGc6dwhCAu",
      "premise_still_valid": true,
      "summary": "Resumed from claude/area-E2b-32689@c9c6b64c, whose fix was checked against the card and kept: the activation door POST /actions/_activation/:object/:action now answers a declaration reading that carries a refusal (a name two packages hold on the route's key) with the shared refusedNameAnswer, 409 RESOURCE_CONFLICT with every candidate in error.details.candidates, the envelope the execution door answers the same refusal with. It sits after the degraded 503 branch and before the 'no declaration' 404 branch, in both directions, and nothing is written. Added the one-holder object-less CONTROL (200 and its row naming the package, enabled false and true) next to the existing pins: two holders object-less and on one object, each 409 naming both, on and off; undeclared name 404 'has no declaration' on and off; one holder on one object 200 and its row. Added the patch changeset with BREAKING FROM to TO and the ADR-0087 disposition, posted the claim comment, and opened draft PR #33399. action-execution.ts, objectql and metadata-protocol are untouched.",
      "clause2": "Clause-②: yes (narrowing) — POST /api/v1/actions/_activation/OBJECT/NAME for a name two packages hold on the route's key: FROM 404 RESOURCE_NOT_FOUND 'has no declaration — there is nothing to switch' TO 409 RESOURCE_CONFLICT naming every holder (error.details.candidates), enabled true and false, nothing written. Metadata-protocol: none. Skills-docs: none.",
      "tests": "At 2bf90b6062 under the verify lock, after the closure build (pnpm --filter '@objectstack/runtime^...' build, exit 0). pnpm --filter @objectstack/runtime test: exit 0, Test Files 598 passed (598), Tests 10656 passed | 19 skipped (10675). pnpm --filter @objectstack/runtime typecheck: exit 0. Pin file action-activation-unpackaged.test.ts: 23/23. eslint --no-inline-config on the two changed sources: exit 0. Control-byte scan on the three changed files: clean. ABLATION (one, covers both NARROWING pins): scripts/ablation-replace.mjs --delete of the line 'if (declaration.refusal) return refusedNameAnswer(deps, declaration.refusal);' in packages/runtime/src/domains/actions.ts. On disk the anchor went 1 to 0 and the blob 956da40f97d1 to 962849a03558. The test reaches the door through a relative src import, so no build leg. Red: Tests 2 failed | 21 passed (23). Both NARROWING pins got the BASE answer, 404 RESOURCE_NOT_FOUND 'Action shared_ping on global (and on crm_contact) has no declaration — there is nothing to switch off'. Every CONTROL stayed green. Restored with git checkout HEAD -- ABS_PATH: blob 956da40f97d1 equals the HEAD blob, git diff HEAD empty, anchor 1. Restored run 23/23. Lock VERDICT command-exit 0. main has not changed actions.ts since base d4fbb4dbb (also checked against origin/main df9fe94630), so the pins are red on main.",
      "gates": "Local: node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 66 commands at 2bf90b6062, each run with stdin from /dev/null and the exit code captured before any pipe. 65 exit 0. Four dist-reading gates (check:dts-closure, check:lean-entry-closure, check:sourcemap-no-sources-content, check:type-check-debt) exited 3 PREREQUISITE NOT MET before the closure build and 0 after it. NOT MEASURED: check:dual-build-cjs-loads, exit 3, because it needs every workspace package's dist. --ran: '66 derived, 65 run, 1 NOT-MEASURED, 0 UNRUN' (exit 0). CI on the PR head 2bf90b6062: 51 check-runs, 35 success, 16 skipped, 0 failure. Lint & Repo Gates success (it carries check:dual-build-cjs-loads), TypeScript Type Check success, Test Core success (8/8 shards), Build Core success, Governed Surface Queue Guard success, Check Changeset success, Test UI success, Live E2E UI success, Dogfood Regression Gate success. Skipped: Lint UI, Type Check UI, Build & E2E UI.",
      "dogfood_battery": "2bf90b6062 · os-verify-lock VERDICT command-exit 0 (held 2477s, after pnpm --filter '@objectstack/dogfood^...' build exit 0) · pnpm --filter @objectstack/dogfood test, no OS_TEST_SHARD, no path · Test Files 464 passed | 3 skipped (467) · Tests 3927 passed | 42 skipped (3969) · no failures",
      "mcp_calls": "0",
      "api_writes": "3 relay dispatches as objectstack-fleet[bot]: (1) post-stamped claim comment POST /repos/objectstack-ai/objectstack/issues/32689/comments (comment 6881158463, read back identical); (2) pr_create POST /repos/objectstack-ai/objectstack/pulls (#33399, draft) plus its assignee leg POST /repos/objectstack-ai/objectstack/issues/33399/assignees [os-elon-musk], read back identical (8201 bytes); (3) the os-dev-report comment POST /repos/objectstack-ai/objectstack/issues/32689/comments. Also 2 git pushes (e5bc4533a5, 2bf90b6062), which are not REST writes.",
      "deviations": [
        "The draft PR was opened after local verification, not at the first push. The shared verify lock was held for about 70 minutes by a sibling's full dependents test run (pid 31240, worktree agent-a7706109b78d23b3e), and os-dev allows the PR body only at pr_create, with no later PATCH, so the PR was opened once the readings existed.",
        "Commit trailers use AGENTS.md's model-free pair (Co-authored-by: Claude, Claude-Session) instead of the harness's model-named Co-Authored-By line, because AGENTS.md wins and the pre-push hook refuses a model identifier. The PR body ends with AGENTS.md's session-URL footer, not the order's 'Generated with' line.",
        "Dependents narrowed: CI's Test Core selection for a runtime change is about 50 packages. Locally only runtime's suite and the full dogfood battery ran; the rest is declared to CI, whose Test Core 8/8 is green on the head.",
        "No origin/main merge: main did not change any file this PR touches (addendum rule). The worktree is harness-owned and locked, so it was not removed; only its node_modules was deleted."
      ],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed — with two packages holding one action name, the activation door has no per-package address, because the ledger keys an action by name. Neither package's action can be switched there until one package holds the name. This was already true before (404, nothing switched); it is a design note in the PR's Acceptance notes, not a defect."
      ]
    }
  8. added a commit that references this issue on Nov 16, 2026
    d3ceb1d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugdomain:serverpm:dispatchedpriority:p3

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions