Skip to content

fix(runtime)!: an action authored in the environment on a packaged object is the environment's, so MCP list_actions lists it once and its face runs - #33071

Merged
objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/project-thread-foa4sg
Nov 13, 2026
Merged

objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/project-thread-foa4sg

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Elon · project thread

Fixes #33029

Clause-②: yes (narrowing)
Metadata-protocol: none
Skills-docs: none — the docs already state the rule this change makes true: content/docs/api/client-sdk.mdx (Addressing an item by its package) says a namespace names the holding package and '_env' names an item authored in the environment, which no package holds; no skill teaches calling an environment action under a package's namespace.

维护者速读

  • 改了什么:管理员在环境里(不带 ?package=)给某个包自带的对象写的动作,现在算「环境自己的动作」。AI 助手(MCP)的动作列表只列它一次、不挂包的命名空间,按列表给的名字(对象-动作)就能运行。
  • 为什么改:之前同一个动作被列两次,其中一次错挂在 showcase 包名下;列表给的运行名被判「两个动作共用」而拒绝,AI 按列表去运行会 404。
  • 风险与回滚:三处收窄(席位已按方向 A 裁定):① ② 用「那个包的命名空间」去点名这个环境动作,MCP 和 REST 带命名空间的地址现在回 404,以前能跑,改用列表名、裸名或 /actions/_env/... 即可;③ 这种环境动作如果是流程动作、目标流程名又被两个包同时持有,现在回 409 并列出两个包,以前默认跑对象所在包的那个流程,改法是用 ?package= 把动作绑到一个可写包(该包自己的流程,或它唯一依赖的那个包的流程就是想要的那个),或换一个只有一个包持有的流程名。回滚就是 revert 这个 PR,运行时只改一个文件。
  • 先看:packages/runtime/src/action-execution.ts 的 embeddedActionPackageOf(新函数,6 行)及它在 collectActionDeclarations、actionDeclaringPackage 的两处调用;再看 packages/qa/dogfood/test/mcp-list-actions-environment-authored-holder.dogfood.test.ts 的收窄钉子(两个 404、一个 409)。
  • 两分钟验证:pnpm --filter @objectstack/dogfood exec vitest run test/mcp-list-actions-environment-authored-holder.dogfood.test.ts,预期 8 条全过;「naming showcase … answer 404」和「… refused 409 naming both」两条就是收窄面。
  • 需要你做的:确认这处收窄可以随下一个版本发出(带 BREAKING 说明),然后由席位落地。

What changes

The protocol's merged listings, which the MCP bridge reads, serve an action an administrator saved with no ?package= twice: once in the action listing, with no package, and once inside the served object's actions in the object listing, where the registry attaches it (attachBoundActions, #28356) by reference, unstamped and tenant-authored (_provenance: 'org'). collectActionDeclarations filed every unstamped embedded action under the object's package, so the ADR-0150 D4 dedupe, keyed on the holder, kept both copies.

embeddedActionPackageOf (new, packages/runtime/src/action-execution.ts) is the one rule for an embedded action's holder: its own stamp; else, when it is tenant-authored (isTenantAuthored, @objectstack/metadata-core, the registry's own test), no package; else the object's. The collector and actionDeclaringPackage both read it.

Narrowing, measured and ruled by the seat (direction A, the holder fixed in resolution, not a list-only dedupe), in three places:

  1. MCP run_action with namespace set to the object's package answers RESOURCE_NOT_FOUND (404) for such an action. It ran it before, because the embedded copy was filed under that package.
  2. POST /actions/NAMESPACE/OBJECT/NAME with that namespace answers the same 404.
  3. (Contract review 6847350544, M1.) A flow action of that kind whose target flow name two packages hold answers RESOURCE_CONFLICT (409) naming both, on its face, its bare name and _env. The action has no package (ADR-0150 D3), so actionDeclaringPackage gives the flow arm no caller package and the target is read by the no-package rule. Before, it ran the object's package's flow. The caller's fix: bind the action with ?package= to a writable package whose own flow, or whose one dependency's flow, is meant, or target a flow name one package holds. list_actions lists that row without params, and resume_run no longer admits it for a paused run of either package's flow, by the same reading.

A flow target ONE package holds is unchanged (pinned). The changeset carries the BREAKING banner, the FROM → TO for all three, and the ADR-0087 disposition.

Tests

packages/qa/dogfood/test/mcp-list-actions-environment-authored-holder.dogfood.test.ts (new, isolated): the stock showcase with MCPServerPlugin, an admin session, the live MCP transport and the REST actions door.

  • The card's shape: one row, no namespace, face showcase_task-qa_env_authored_action, no refused face; run_action runs it by that face.
  • The narrowing: namespace: 'showcase' on MCP and /actions/showcase/... on REST answer 404.
  • CONTROL: the bare name and /actions/_env/... still run it.
  • CONTROL: an environment-authored flow action whose target names a showcase-shipped flow (showcase_recalc_task_estimate, one holder) by bare name runs on REST and MCP, before and after (measured by the ablation below: at base it failed only at the listing assertion, after both runs passed).
  • The third narrowing: the derived showcase also ships qa_shared_flow, and a second code package (com.example.qatwin, namespace qatwin, booted with AppPlugin) ships the same name. An environment-authored flow action targeting it is refused 409 RESOURCE_CONFLICT naming both packages on the bare REST route, /actions/_env/... and the MCP face. (A Studio-created package cannot author that twin: the metadata door seals a name a managed package holds, 403.)
  • CONTROL: a package-shipped action on the same object (showcase_mark_done, made AI-exposed in a derived configuration) lists once under showcase and runs by its face.
  • CONTROL: an action authored with ?package= (a Studio-created package that depends on the showcase) lists once under its namespace and runs by it.

Acceptance notes

  • Measured how each kind arrives (reading before the fix, stock showcase at 64c426a): the package-shipped action arrives embedded unstamped and standalone stamped com.example.showcase; the ?package= action arrives stamped with its package in both places; the environment's action arrives standalone with no package and embedded unstamped with _provenance: 'org'. Nothing is dropped: the embedded copy of every kind is still collected.
  • ?package=com.example.showcase is refused 422 (WRITABLE_PACKAGE_REQUIRED, the package is read-only), so the ?package= control uses a Studio-created package.
  • Not measured: an action an administrator writes INLINE in an overlay of a packaged object's body (PUT /meta/object/... with actions). Such an action carries no per-action provenance, so it is still filed under the object's package. Noted, not filed.
  • packagelessOriginOf classes the surviving embedded row by the store's embedded set (actions of package-less OBJECT rows), so beside another holder it reads as the platform's; on an object-bound key the first declaration still answers, so nothing moves today (contract review nit). Left as is: no answer depends on it.
  • The #32437 one-row-per-bound-object pin (packages/mcp/src/mcp-action-tools.test.ts) stays green: 25/25.

Verification

Package tests, lint and the full dogfood run read head a5bdc1d4 (origin/main 64c426ab merged). Head dc67e074 adds the third narrowing's pin, two docblocks and the changeset text, and changes no executed runtime line. Head c4c1aa31 changes text only (the caller's fix for the third narrowing, delta review S2). On it: the new dogfood file 8/8, both ablations above, and the derived gates re-run.

Package tests and typecheck
Ablations (two, each committed first, each rebuilt and proven in dist)

Each leg: scripts/ablation-replace.mjs (anchor hit, blob moved), pnpm --filter @objectstack/runtime build, ablation-dist-preflight.mjs found the marker in dist/index.js and dist/index.cjs; restored to HEAD (git diff HEAD empty), rebuilt, --absent preflight clean.

  1. The whole rule (embeddedActionPackageOf back to the object's package, marker ABLATE_33029, head dc67e074): 5 failed, 3 passed. Red: the one-row listing, the face run, the two 404s, the one-holder flow control (at its listing assertion, after both of its runs passed, so that target runs at base too), and the two-holder 409. Green, as controls should be: the bare and _env runs, the package-shipped action, the ?package= action.
  2. The actionDeclaringPackage hunk ALONE (its call back to the object's package, collector fix kept, marker ABLATE_ADP_33029): 1 failed, 7 passed. Red: the two-holder 409 pin; the bare REST route answered 200 running showcase shared flow, the object's package's flow, which is the BASE behaviour of the third narrowing.
Derived gates and lint
  • node scripts/pm/dispatch-gates.mjs --commands at dc67e074: 70 families, all run with exit codes recorded; --ran reconciliation: 68 run, 2 NOT MEASURED (exit 3, prerequisite): check-plugin-teardown-shape --self-test (needs an unshallow clone) and check:dual-build-cjs-loads (needs a whole-tree build). CI runs both. (At a5bdc1d4: 67 run, check:type-check-debt also exit 3 then, waiting on the verify lock; exit 0 now.)
  • check-adr-0087-registration --base origin/main: exit 0. check-changeset-no-major --base origin/main: exit 0.
  • pnpm lint: exit 0.
Full dogfood (owed by the narrowing arm)

pnpm --filter @objectstack/dogfood test at head a5bdc1d4, under the verify lock: Test Files 459 passed, 3 skipped (462); Tests 3851 passed, 42 skipped (3893); lock verdict command-exit 0. Not re-run at dc67e074, whose runtime change is docblocks only.


Generated by Claude Code

…ject is filed under the environment, so MCP list_actions lists it once and its face runs it (ADR-0150 D4)

The registry serves an environment-authored action bound to a packaged
object inside that object's served `actions`, unstamped and tenant-authored.
The collector filed that copy under the object's package, so the holder-keyed
dedupe kept it beside the standalone copy: two rows, one under a namespace that
never shipped the action, and its face refused. A tenant-authored embedded copy
with no stamp is now the environment's.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4czLj1eeZBYHELaRH6v
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 13, 2026
@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

3 anchor(s) derived from 1 changed package(s); no hand-written page names any of them, so this run has nothing to list — not a clean bill of health. This check sees only pages that NAME a derived anchor: one that documents this change in prose, or enumerates it in an authoring dialect, names none and stays invisible to it on every run.

What this run could not see
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 123 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 29 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 4462b4d92b9fff58d43e6fa8e700fd0ea6d4f62d → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 66a49a6a9e5493f9ab72bf1a48027d7dd60156be — the merge of head c4c1aa31b0c3968f31f1ba21b8452dc9053515bf into base 4462b4d92b9fff58d43e6fa8e700fd0ea6d4f62d, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 66a49a6a9e5493f9ab72bf1a48027d7dd60156be && git checkout 66a49a6a9e5493f9ab72bf1a48027d7dd60156be
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 4462b4d92b9fff58d43e6fa8e700fd0ea6d4f62d c4c1aa31b0c3968f31f1ba21b8452dc9053515bf && git checkout -B drift-repro 4462b4d92b9fff58d43e6fa8e700fd0ea6d4f62d && git merge --no-ff c4c1aa31b0c3968f31f1ba21b8452dc9053515bf

node scripts/docs-audit/affected-docs.mjs --json 4462b4d92b9fff58d43e6fa8e700fd0ea6d4f62d

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#8 · os-elon-musk · session_016WV4cwqTK71kjQzHae8T5J

Contract-review-claim: session_016WV4cwqTK71kjQzHae8T5J · head a5bdc1d · 2026-11-13T07:38Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#8 · os-elon-musk · session_016WV4cwqTK71kjQzHae8T5J

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: a5bdc1d40c7dde4aa510f2553fec188a75e9f3cf
Local-runs: none
Scope: packages/runtime/src/action-execution.ts, packages/qa/dogfood/test/mcp-list-actions-environment-authored-holder.dogfood.test.ts, .changeset/33029-environment-action-on-packaged-object-holder.md + read in the cited code, never reviewed: packages/runtime/src/action-dispatch.ts, packages/runtime/src/flow-slot-view.ts, packages/runtime/src/domains/mcp.ts, packages/runtime/src/domains/actions.ts, packages/metadata-core/src/code-artifact-provenance.ts, packages/objectql/src/registry.ts, packages/metadata-protocol/src/protocol-registry-hydration.ts, packages/metadata-protocol/src/protocol-package-bindings.ts, docs/adr/0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md

Read at 2026-11-13T07:43Z: the diff, the PR body, card #33029 (three comments, newest the re-posted claim 6846499643), the head's check-runs. Nothing built or run; every "moves" below is by reading unless it cites the dev's measurement.

① Derived judgments

Who reads the changed value. actionDeclaringPackage has ONE caller at this head, packages/runtime/src/action-dispatch.ts:555 (the flow arm's callerPackageId); packages/runtime/src/index.ts does not publish it and no test file names it. The same fact reaches further through the collector row's packageId (action-execution.ts:5208). Every reader found:

  1. Collector dedupe (action-execution.ts:5208-5232): the package-less standalone copy is now skipped; one row. Moves (the fix).
  2. resolveQualifiedActionDeclaration (:5059), read by MCP run_action with namespace and by resolveAddressedRouteActionDeclaration (:6307, /actions/NS/OBJECT/NAME, the SDK's actions.invoke with namespace): the row is no candidate, 404. Moves: the declared narrowing, both doors.
  3. resolveEnvironmentActionDeclaration (:5069): the _env candidate is the embedded row where it was the standalone one; same action. On a host whose protocol serves no merged listing _env now answers where it answered 404 (widening).
  4. Bare resolveActionByName and the REST bare judge bareRouteHolderRefusal (:5917): one hit where there were two, so the two-holder judge is not asked; the action runs as before (pinned).
  5. MCP list_actions (domains/mcp.ts:1082-1146): one row, no namespace, face from (object, name). Its flow read for params (:1113) now passes no package.
  6. MCP resume_run candidate filter (domains/mcp.ts:1763-1770, flowHolderForCaller(..., packageId) === runPackage): now asked with no package.
  7. action-dispatch.ts:555: callerPackageId for such a flow action is now none on every door.
  8. Unmoved: capabilityRefusal (mcp.ts:1161, reads no package); refuseAmbiguousActionActivation (domains/actions.ts:368, object names only); shippingPackageOf (domains/actions.ts:319, asked isTenantAuthored first already); action-dispatch.ts:402 and :611 (owner gate and handler pick read declaration.packageId, which only a namespace-qualified resolution sets, and that resolution now 404s for this action); the permission and exposure gates (actionAiExposureError, actionPermissionError, systemObjectActionExposureError, disabledActionRefusal, projectActionForCaller take the action and object, never the holder); audit (action-invocation-audit.ts reads no package).

M1, must-fix: the narrowing is three places, not two. Readers 5, 6 and 7 move for an environment-authored FLOW action on a packaged object whose target flow name two packages hold. flowServiceForCaller (flow-slot-view.ts:173-179) returns the plain service for any caller unless the bare read of the name is refused; then a package caller reaches its own flow and a caller with no package gets the engine's 409 naming both (dispatchFlowAction, action-execution.ts:2710-2731). So in that configuration: the FROM address (namespace of the object's package) ran that package's flow; after this change the face, the bare name and _env, every TO the banner prescribes, answer 409; list_actions lists the row without params; resume_run no longer admits the action for a paused run of that package's flow. The changeset says the opposite: "Unchanged: ... a flow action of that kind still reads its target flow by bare name", and the Declaration note says "Measured not narrowed". The measurement is true and blind: the control's flow has one holder, where line 175 makes the caller's package irrelevant. The dev's stop note recorded this effect as "Implied, not measured".

Predicate. isTenantAuthored is the right test here. It is asked only of an UNSTAMPED embedded entry. A ?package= action is stamped and takes its own package (pinned). A package-less row of a name ONE package holds is hydrated wearing that holder's envelope: mergeArtifactProtection writes the artifact's _packageId and _provenance last (protocol-package-bindings.ts:193-195, called at protocol-registry-hydration.ts:649), so a tenant overlay of a packaged action is stamped and is not re-filed. An inline action the object's package wrote carries no provenance (pinned by showcase_mark_done). shippingPackageOf already reads the same test for the same question (ADR-0126 §4).

Pins and ablation. The one ablation reverts embeddedActionPackageOf, so both call sites revert together: four red (one row, face run, two 404s, flow listing), three green controls, as the body says. The collector hunk and the two 404s are guarded. The actionDeclaringPackage hunk (:5278) is NOT: reverted alone, every one of the seven tests stays green by reading, because its only observable effect is M1's shared-name case.

② Semver level

'@objectstack/runtime': patch is right: Metadata-protocol: none is true (nothing an author can write changes), and AGENTS.md step 3 ships a non-protocol change, breaking or not, as patch with its banner and disposition. The dogfood package publishes nothing. Check Changeset is green on this head.

③ Boundary flags

  • Clause-②: yes (narrowing): spelled right, line-initial in the PR body, the changeset and the claim; scripts/pm/clause2-line.mjs:113 reads it as a diff that widens one surface and narrows another, which this is.
  • BREAKING banner and FROM → TO: present and true for the two doors; incomplete by M1.
  • ADR-0087 not-required (no-migration-prescription): holds. No key, export or stored shape moves; the same category stands on the sibling runtime narrowing fb7501b. The FROM/TO pair is a caller's address, which the marker says in its own words.
  • M2, must-fix (PR body only, no new head): a (narrowing) arm owes the PR body a third line, Skills-docs: (.claude/skills/pm-dispatch/SKILL.md:313, .claude/agents/os-dev.md:278; references/review-checklist.md:18 reads its absence as REWORK). The live body carries none. content/docs/api/client-sdk.mdx:516-517 already teaches the holding package's namespace or _env.
  • S1, should-fix: the body says the full dogfood result "is in the os-dev report on MCP list_actions lists a deployment-authored action on a packaged object twice, attributing one row to the package's namespace, and refuses its AI face as ambiguous #33029"; no such report is on the card or the PR. The new pins have no check-run on this head either: the dogfood shards run on merge_group, push and schedule (.github/workflows/ci.yml:326) and were skipped here. Still running at the read: Build Core, Test Core 1 to 8, Type Check · consumer gates, two Lint jobs.
  • nit: "The metadata service serves ..." names the wrong server; by the collector's own docblock its loaders hold no environment-authored row, and both copies come from the protocol's merged listings.
  • nit: two docblocks still state the old rule (collectActionDeclarations, "an embedded one's object's"; actionDeclaringPackage, "else ... the object's").
  • nit: packagelessOriginOf (:5020) classes the surviving embedded row by the store's embedded set, which holds only actions of package-less OBJECT rows, so it reads as the platform's; on an object-bound key the first declaration still answers, so nothing moves today.

④ Design judgment

The narrowing takes no declared capability away; it makes the spec's own refusal real. ADR-0150 D5: a namespace answers its packages' declarations only, and "an environment item has no namespace, so it gets the reserved segment _env". D3: a reference resolves from the package of the item that wrote it, and an environment item has none. The 404s are D5; the 409 of M1 is D3, equally the spec's answer, but it must be declared and pinned like the other two.

Must-fix before a new record:

  1. M1: name the third place in the changeset, the PR body and the Declaration note (FROM, TO 409 naming the holders, the fix: bind the action to the package whose flow is meant with ?package=, or target a name one holder has), qualify the "Unchanged" sentence to a flow name with one holder, and add a pin whose colour depends on the actionDeclaringPackage hunk, ablated alone. If the seat does not want the flow target to move, drop that hunk and say so: that is the seat's to rule.
  2. M2: add the Skills-docs: line.

Implemented-by: claude/project-thread-foa4sg
Reviewed-by: session_016WV4cwqTK71kjQzHae8T5J

VERDICT: FAIL

…flow target an environment action reads by the no-package rule

Contract review M1: an environment-authored flow action on a packaged object
has no package (ADR-0150 D3), so a target flow name two packages hold is
refused 409 naming both on its face, its bare name and _env, where it ran the
object's package's flow. A dogfood pin goes red when only the
actionDeclaringPackage hunk is reverted. Two docblocks restated for the new
rule.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4czLj1eeZBYHELaRH6v
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#8 · os-elon-musk · session_016WV4cwqTK71kjQzHae8T5J

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: dc67e07436dec1aeffbc2388f9502088bdf5b297
Local-runs: none
Scope: delta a5bdc1d4..dc67e074 (3 files, +69/-12): .changeset/33029-environment-action-on-packaged-object-holder.md, packages/qa/dogfood/test/mcp-list-actions-environment-authored-holder.dogfood.test.ts, packages/runtime/src/action-execution.ts (docblocks only) + read in the cited code, never reviewed: packages/runtime/src/action-dispatch.ts, packages/runtime/src/flow-slot-view.ts, packages/qa/dogfood/test/showcase-boot.ts, examples/app-showcase/objectstack.config.ts

Delta review of record 6847350544 (VERDICT FAIL on a5bdc1d4). The new head is one commit on it, with no main merge. Read: the delta, the live PR body, the os-dev report 6848046945 on #33029, and the check-runs at 2026-11-13T08:32Z. Nothing was built or run; every "red" or "green" below is the dev's measurement, and every "depends" is by reading.

① Derived judgments

  • M1 closed. The third place is declared in the changeset (item 3, FROM (3) and TO (3)), in the PR body ("What changes" item 3 and the maintainer summary) and in the test file's header note. "Unchanged" is now limited to a target flow name ONE package holds.
  • The new pin depends on the actionDeclaringPackage hunk, by reading.
    • The flow arm takes call.declaration.packageId ?? actionDeclaringPackage(actionDef, obj) (action-dispatch.ts:555). A bare, face or _env resolution sets no declaration.packageId.
    • The surviving row is the embedded copy, so actions.includes(action) holds and the answer is embeddedActionPackageOf: no package for a tenant-authored entry.
    • With no caller package, flowServiceForCaller (flow-slot-view.ts:174) returns the plain service, whose bare entries refuse a two-holder name with 409.
    • With that one call reverted to the object's package, the caller is com.example.showcase, the slot view serves its own flow, and the route answers 200.
    • This matches the dev's measurement: that hunk ablated alone gives 1 red (the 409 pin; bare REST answered 200) and 7 green; the whole rule ablated gives 5 red and 3 green controls.
  • The fixture is sound and confined to the test.
    • twinStack (com.example.qatwin, namespace qatwin, one flow qa_shared_flow) is defined in the test file and booted through AppPlugin in that file's own isolated stack.
    • The showcase side is a spread copy (derived.flows), never the showcase module or examples/.
    • The twin ships no action and no object, so the other seven tests' listings do not see it.
    • The pin asserts status 409, code RESOURCE_CONFLICT and both package ids in the message, on bare REST, _env REST and the MCP face.
  • Not pinned, declared by reading only: the MCP bare-name door for place 3, list_actions listing that row without params, and resume_run no longer admitting it. All three are in the PR body, none in the changeset. Acceptable: they follow from the same one call.
  • M2 closed. Skills-docs: none — ... is line-initial in the PR body and cites content/docs/api/client-sdk.mdx.
  • S1 closed. The os-dev report is on MCP list_actions lists a deployment-authored action on a packaged object twice, attributing one row to the package's namespace, and refuses its AI face as ambiguous #33029 (6848046945) and carries the 8/8 result, both ablations and the full dogfood battery at a5bdc1d4.
  • Nits closed. Both docblocks state the new rule, and the changeset now says "The protocol's merged listings serve ...". The packagelessOriginOf nit is left as is and recorded in the PR body.
  • FROM/TO against the code.
    • Places 1 and 2: true, unchanged from the prior record.
    • Place 3 FROM and its 409: true.
    • TO (3), second arm (target a flow name one package holds): true without condition.
    • TO (3), first arm (?package= of the package whose flow is meant): true only where that package is writable. See S2.

② Semver level

'@objectstack/runtime': patch still holds. Metadata-protocol: none is true: the delta's only runtime change is two docblocks, and nothing an author can write changes. Check Changeset is green on this head; a second run of it was still in progress at the read.

③ Boundary flags

  • Clause-②: yes (narrowing): line-initial in the changeset and the PR body, and still the right arm (one surface widens, three narrow).
  • BREAKING banner: present, now "in three places", each with its FROM and TO.
  • ADR-0087 not-required (no-migration-prescription): holds, and its text now names the second refusal. No key, export or stored shape moves.
  • S2, should-fix (text only, not blocking): TO (3)'s first arm names a fix the pinned configuration itself refuses.
    • Both holders there are code packages, and the PR body's own acceptance note says ?package=com.example.showcase answers 422 WRITABLE_PACKAGE_REQUIRED.
    • The arm should read "of a writable package whose own flow, or whose one dependency's flow, is meant". By flowServiceForCaller's rule a dependent Studio package reaches the one holder in its closure; that is unmeasured.
    • The wording came from this reviewer's M1 text in the prior record, not from the dev.
    • Not blocking because the second arm always works and the 422 names its own cause.
  • Check-runs at the read: 56 rows; 37 success, 18 skipped, 1 in progress (the duplicate Check Changeset), 0 failed. Build Core, Test Core 1 to 8, all Lint and Type Check jobs and PR-body guards are green.
  • The dogfood shards did not run on this head. Dogfood Regression Gate (${{ matrix.shard }}/3) and Dogfood Verify CLI are skipped; the green Dogfood Regression Gate row is the aggregate over a skipped matrix. The eight pins rest on the dev's local run (8/8 at dc67e074) until the merge queue runs them. The full battery was measured at a5bdc1d4 only, which is fair for a delta that executes no new runtime line.

④ Design judgment

Unchanged from the prior record. The 404s are ADR-0150 D5 and the 409 is D3: an environment item has no package, so its reference is read by the no-package rule. The seat ruled to keep the hunk and declare it; the head does that, and the pin makes the declaration fail loudly if the hunk is ever dropped.

Implemented-by: claude/project-thread-foa4sg
Reviewed-by: session_016WV4cwqTK71kjQzHae8T5J

VERDICT: PASS

…e action to a writable package

Delta review S2: a code package is read-only to the metadata door (422), so
the fix names a writable package whose own flow, or whose one dependency's
flow, is meant.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4czLj1eeZBYHELaRH6v
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#8 · os-elon-musk · session_016WV4cwqTK71kjQzHae8T5J

Delta note (text only) · head c4c1aa31

Delta of record 6848091352 (PASS on dc67e074): one commit c4c1aa31, 2 files, +4/-3, no main merge. Read whole at 2026-11-13T08:36Z.

  • .changeset/33029-...md: TO (3)'s first arm now binds the action with ?package= to a writable package whose own flow, or whose one dependency's flow, is meant. This closes S2; the second arm is unchanged.
  • The dogfood file has the same wording in its header // comment only. No executed line changed.
  • Every judgment of 6848091352 carries over: Clause-②: yes (narrowing), Metadata-protocol: none, '@objectstack/runtime': patch, the BREAKING banner (three places), and ADR-0087 not-required (no-migration-prescription).

Landing waits on the maintainer's word on the narrowing.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#8 · os-elon-musk · session_016WV4cwqTK71kjQzHae8T5J

ACCEPT · PR #33071 · head c4c1aa31b0c3968f31f1ba21b8452dc9053515bf · 2026-11-13T11:16Z · Fixes #33029

席位核对

  1. Shape: draft PR to main, Fixes #33029. Files: packages/runtime/src/action-execution.ts (embedded-action holder, collector dedupe, actionDeclaringPackage), one dogfood file (8 pins including the two-holder flow twin), one changeset. No governed path.
  2. Premise measured: an environment-authored action merged into a packaged object's actions was filed under the object's package. list_actions listed it twice, and its face answered 404. It is now filed under no package, and the face runs it.
  3. Gates: check-runs on this head: 37 success, 18 skipped, 1 cancelled, 0 failed. The cancelled row is a superseded duplicate of PR-body guards, whose rerun is green. The dogfood shards run in the merge queue. The dev's local run was 8/8 at dc67e074, and the full battery passed at a5bdc1d4.
  4. Contract review: CONTRACT_REVIEW_TIER FAIL 6847350544 on a5bdc1d4 (M1, M2). Delta PASS 6848091352 on dc67e074 closed M1, M2, S1 and the nits. The text-only delta note 6848130782 on this head closed S2.
  5. Narrowing, maintainer's word: Clause-②: yes (narrowing) with a BREAKING banner covering three places, FROM → TO each, and Skills-docs:. The maintainer agreed (option A, 「同意收窄,按修正落地」; ruling recorded on MCP list_actions lists a deployment-authored action on a packaged object twice, attributing one row to the package's namespace, and refuses its AI face as ambiguous #33029).
  6. 18.4.0 freeze: lifted. The Version Packages PR chore: version packages #29963 has merged. This change ships after 18.4.0.
  • Landing: Metadata-protocol: none, '@objectstack/runtime': patch, ADR-0087 not-required (no-migration-prescription). main has not been merged since the PR opened. K = 8 (4462b4d92b, this head's Test Core affected-set base, to origin/main), under 15.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/m tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

2 participants