Skip to content

feat(metadata-protocol)!: refuse a package-less create; retire POST /automation; notify-channel judge on /meta flow saves - #39386

Draft
os-bill wants to merge 20 commits into
mainfrom
claude/project-thread-h0p32t
Draft

os-bill wants to merge 20 commits into
mainfrom
claude/project-thread-h0p32t

Conversation

@os-bill

@os-bill os-bill commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

Requested by Bill · project thread

Closes #38174

Clause-②: no (narrowing)
Metadata-protocol: narrowed
Skills-docs: follow-up owed — content/docs/permissions/permission-sets.mdx (the console's permission-set clone with no package; skills/** teach no package-less create, POST /api/v1/automation or client.automation.create)

维护者速读

  • 内核拒绝"无包创建":新名字、没指定包、库里也没有该名字的行 → 422 WRITABLE_PACKAGE_REQUIRED,列出可写包,不落库(ADR-0070 D1,裁定 7184753035)。
  • 原地保存已有散落项、草稿、删除不受影响;五个具名豁免:kernel-item overlay、外部数据源导入、source 迁移、平台启动注册、组织归属仪式的旧行转换(裁定 7380917604 A)。
  • POST /api/v1/automation 与 client.automation.create 退役(Q-g C,裁定 7234518908);/meta 保存 flow 时也拒绝未注册的 notify 渠道,两扇门共用一个判定。
  • 6,800 行里约 5,000 行是机械的测试迁移(给保存补包名或直接种散落行);非机械改动见下面第一节。

What changes (non-mechanical — review these)

Kernel

Doors

  • packages/runtime/src/domains/automation.ts + route ledger: POST /automation unmounted; PUT /automation/{name} for a new name answers 422 naming PUT /meta/flow/:name?package=.
  • packages/runtime/src/domains/permission-set-clone.ts: the clone door's own sentence (names the body's package) instead of the kernel's.
  • packages/lint/src/validate-flow-notify-channels.ts + authoring-rules.ts: rule flow-notify-channel-unregistered on the /meta runtime publish gate, once boot has settled; unregisteredNotifyChannels is the one predicate both flow doors ask.
  • packages/cli/src/utils/organization-ownership-apply.ts + commands/migrate/organization-ownership.ts: the ceremony passes LEFT_LOOSE; its report lists the loose conversions and names the move door.

Spec / client

  • CreateFlowRequestSchema, CreateFlowResponseSchema, AutomationApiContracts.createFlow, client.automation.create removed; retired-defs entries and generated baselines updated.

Docs

  • .changeset/38174-packageless-create-refused.md (BREAKING, FROM→TO table); docs/qa/platform-checklist/FOLLOW-UPS.md §21; CLI transcript rule count 89→90.

Mechanical test migration (175 + 75 files)

Each save that created a new item now either names an installed package, or seeds the loose row through the engine with the system context (the fixture) before the in-place save. Per package: mp (65 files), runtime (43), rest (19), objectql (42), cli (6), dogfood (75).

Worth a look while reviewing:

  • objectql protocol-batch-object-registration setup uses writeFace: 'external-import' (an exemption used as a bypass).
  • mp protocol.runtime-authoring-gate.test.ts: blanket packageId: TEST_PKG on 94 saves.
  • Several receipt and log strings in assertions now include package=….
  • Flipped to the refusal: package-duplicate-adopt-org-scope, sys-metadata-repository.package-writability, dogfood permission-set-clone-door.
  • A knowledge source in a package is served as NS-NAME.

Tests

  • New: runtime meta-packageless-create-refused.test.ts (18: named pins for W3, W4, W12 and W5; W13 never reaches the kernel save and is pinned in packages/metadata/src/metadata-manager-cluster.test.ts), lint validate-flow-notify-channels.test.ts (8), runtime permission-set-clone.test.ts (+3), cli register-package.test.ts (refusal + --package control), dogfood packageless-create-refused.dogfood.test.ts (7).
  • Ablations: W3 intent check off → W3 RED; W4 external-import line off → W4 RED; kernel throw off → 9 RED / 7 GREEN; W5 line + draft clause off → 4 RED / 12 GREEN; lint predicate → [] → 3 RED / 5 GREEN; clone sentence branch off → 2 RED.

Verification

  • objectql full suite 648/648 files; rest full suite green after the source fix; runtime and cli one full run each, then the failing files re-run green; mp per-file runs green.
  • After merging main: all 67 dispatch-gates commands green except check:dual-build-cjs-loads (prerequisite: unrelated packages unbuilt locally; CI builds them). Runtime route-ledger / automation / mcp-discovery re-run 50 files, 1158 tests green.

Open items

  • L2 7384515118 F1 (must-fix, waiting on Bill): the Console's permission-set clone of a platform set (member_default) or a loose set now answers 422, and the Console sends no package. Either the clone dialog gains a landing-package choice here, or a ruling picks another landing. F2–F5, F7 and F8 are fixed at 90c84ed; F6 and F9 are nits, not taken.

  • ADR-0070 / ADR-0084 marks go in a separate docs/adr PR (Tier H), referencing this PR.

  • Lands as Tier H (> 3,000 changed lines, narrowing): needs a GOVERNED_APPROVERS approval.

  • No second full runtime/cli run and no single full dogfood run after the last fixes; CI is the full run.


Generated by Claude Code

claude added 11 commits December 3, 2026 12:39
…ave (#38174)

ADR-0070 D1, ruling 7184753035: a save that still names no package after
its address resolved, of a name no package holds and no loose row carries,
is refused 422 WRITABLE_PACKAGE_REQUIRED naming the writable packages.
In-place saves, holder customizations, W3/W4/W12 keep their answers.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CasbvyQnz4st6s79P9
…omation (#38174)

- lint: flow-notify-channel-unregistered, the one predicate both flow
  write doors ask (unregisteredNotifyChannels); the metadata protocol
  hands the settled channel roster to the publish gate.
- runtime: POST /automation unmounted and its ledger row removed;
  PUT /automation/:name of a new name answers 422 naming the /meta door.
- client: automation.create removed; spec: createFlow contract and
  Create/FlowRequest/Response schemas retired; semantic migration entry.
- refusal texts and docs no longer prescribe a package-less save.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CasbvyQnz4st6s79P9
…ackage-less sentence, refusal pins (#38174)

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CasbvyQnz4st6s79P9
…17604); package-bound drafts hold a name (#38174)

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CasbvyQnz4st6s79P9
…e row (#38174)

Mechanical: tests that created a new item with no package as setup now name an
installed writable package; tests whose subject is a package-less row seed it
through the engine with the system context (a fixture, not an exemption); tests
that drove POST /api/v1/automation pin that it is not served or move to PUT.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CasbvyQnz4st6s79P9
…ackage-less create refusal and controls on the showcase (#38174)

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CasbvyQnz4st6s79P9
…le count 90 in CLI transcripts, route-ledger census, issue ids out of runtime strings, typed service lookup (#38174)

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CasbvyQnz4st6s79P9
@os-bill os-bill self-assigned this Dec 3, 2026
@github-actions github-actions Bot added size/xl 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 Dec 3, 2026
@github-actions

github-actions Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 7 package(s): @objectstack/cli, @objectstack/client, @objectstack/lint, @objectstack/metadata-protocol, @objectstack/plugin-sharing, @objectstack/runtime, @objectstack/spec, touching 117 documentable anchor(s). ⚠️ 8 changed file(s) yielded no anchor (packages/spec/api-surface/api.json, packages/spec/authorable-defaults/api.json, packages/spec/authorable-surface/api.json, …), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

47 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: node scripts/docs-audit/affected-docs.mjs --json f00ab66dd58099dbebb697e30f04a47ab26e34f0.

⛔ 19 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails.

What this run could not see
  • 8 changed file(s) yielded no anchor (packages/spec/api-surface/api.json, packages/spec/authorable-defaults/api.json, packages/spec/authorable-surface/api.json, …) — pages documenting those are invisible to this run
  • 2 anchor(s) matched too much of the corpus to be a work list: /api/v1/meta/{type}/{name} (route, 41 pages), /automation/:name (route, 57 pages)
  • 19 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 71 of 255 client-bound route-ledger rows — the other 184 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 184: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 60 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 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 — 197 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 f00ab66dd58099dbebb697e30f04a47ab26e34f0 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 371dd9f37d73596ef9900b8113ffe3829b90b5fe — the merge of head b42848c55b9184090d99d0c2abb9450ee5e523d8 into base f00ab66dd58099dbebb697e30f04a47ab26e34f0, 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 371dd9f37d73596ef9900b8113ffe3829b90b5fe && git checkout 371dd9f37d73596ef9900b8113ffe3829b90b5fe
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin f00ab66dd58099dbebb697e30f04a47ab26e34f0 b42848c55b9184090d99d0c2abb9450ee5e523d8 && git checkout -B drift-repro f00ab66dd58099dbebb697e30f04a47ab26e34f0 && git merge --no-ff b42848c55b9184090d99d0c2abb9450ee5e523d8

node scripts/docs-audit/affected-docs.mjs --json f00ab66dd58099dbebb697e30f04a47ab26e34f0

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

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs f00ab66dd58099dbebb697e30f04a47ab26e34f0 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor

repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 2111e52793f2767c2309dfe47be311c6f4836469
Local-runs: none
Scope: packages/spec/src/api/automation-api.zod.ts, packages/spec/src/migrations/entries/semantic/19.packageless-create-refused.ts, packages/spec/src/migrations/entries/retired-defs/19.api__CreateFlowRequest.ts, packages/spec/src/migrations/entries/retired-defs/19.api__CreateFlowResponse.ts, and (narrowing face, no remainder) every non-prose path of the diff: packages/metadata-protocol/src/{protocol-packageless-create,protocol-save,protocol-door-requests,protocol-package-scope,protocol-authoring-gate,runtime-authoring-gate,protocol}.ts, packages/lint/src/{validate-flow-notify-channels,authoring-rules,runtime-gate,rule-explanations,index}.ts and rule-explanations/publish-time-inert-refusals.ts, packages/runtime/src/{dispatcher-plugin,route-ledger}.ts and domains/{automation,permission-set-clone}.ts, packages/cli/src/commands/meta/register.ts, packages/cli/src/commands/migrate/organization-ownership.ts, packages/cli/src/utils/organization-ownership-apply.ts, packages/client/src/index.ts, packages/plugins/plugin-sharing/src/objects/sys-sharing-rule.object.ts, the generated spec baselines (packages/spec/{api-surface,authorable-defaults,authorable-surface,declaration-map,export-origins,json-schema.manifest}/api.json, dropped-refinements.baseline.json), and the 250 migrated test files under packages/{metadata-protocol,runtime,rest,objectql,cli,client,lint,services}/** and packages/qa/dogfood/test/** (spot-checked, not read line by line: see ① item 6) + read, not reviewed: packages/metadata-protocol/src/protocol-package-commits.ts, packages/services/service-datasource/src/plugin.ts, packages/services/service-automation/src/flow-credential-migration.ts, packages/rest/src/meta-item-write-routes.ts, packages/runtime/src/domains/{meta,mcp-authoring,packages}.ts, ui/packages/app-shell/src/views/metadata-admin/{permission-set-clone.ts,PermissionSetCloneDialog.tsx}, content/docs/permissions/permission-sets.mdx, skills/**
Security-touching: yes
Rule-change-verified: none

Reviewed at 2026-12-03T16:14Z. PR #39386 (draft), card #38174, base main, merge-base 42fd0fc4, 305 files, +4863 −1953. Read-only review: the diff, the card with its rulings and amendments, the premise census, and the head's check-runs. Nothing was built or run. No claim line, comment or label was written by this review; the seat posts.

① Derived judgments

  1. The refusal is loud and sits at the last point before the store. packagelessCreateRefusal is asked once in saveMetaItemUnaudited (protocol-save.ts, after the late override verdict, before the D1 named-package check and before repo.put). Nothing is written before it: the only earlier awaited host effects are the authoring gate (pure) and ensureOverlayIndex. It judges the request after the address resolved (the request rebinding at the package-less address, the draft address and the followed base), so a save those rules bind is a save into that package. It answers 422 WRITABLE_PACKAGE_REQUIRED with docs, the sentence names type and name, lists writable packages capped at 5, and carries writablePackages. Matches card What 1.
  2. Completeness: no package-less create path is left on the kernel save. Non-test callers of saveMetaItem at this head, re-read against the census (writer-census.md at 1c030f0): rest meta-item-write-routes.ts:401, runtime meta.ts:2115, mcp-authoring.ts:1074, automation.ts:2855, packages.ts:3596, permission-set-clone.ts:657, mp protocol-package-commits.ts:649/1034, protocol-package-move-in.ts:425, protocol-packageless-overlay-migration.ts:610/675, protocol-save.ts:3140, service-automation flow-credential-migration.ts:222, service-datasource plugin.ts:325, cli organization-ownership.ts:914. Each is package-naming, in place, a named exemption, or refused. No new writer since the census. source is set only as 'migrate-stored' (two server sites); writeFace is stated by each wire door itself (meta-envelope, meta-dispatch), never read from a body. The other repo.put sites (history/publish, form writes, stored-form apply, move-in) act on rows that exist.
  3. Exemptions against the rulings. W3 (intent override-artifact), W4 (writeFace: 'external-import'), W12 (source !== undefined), W13 (off this path) match ruling 7184753035 and card What 1. W5 matches ruling 7380917604 A on all five points: one server-stated provenance (packagelessCreateProvenance) read only by the create judgment; source unset; exactly the two ceremony saves pass LEFT_LOOSE (saveDefinition at apply.ts:856, the email-template promotion at :2233); the report lists what landed loose and names the move door; tests pin the conversion, the unknown-grant refusal still firing, and that neither the body nor the query can state it. One clause is outside the rulings: request.writeFace === 'package-duplicate' also returns "not a create" (protocol-packageless-create.ts:88). See finding F2.
  4. Retirement leaves no live reader. git grep at the head for automation.create, CreateFlowRequest, CreateFlowResponse, createFlow, POST /automation: no source reader remains in packages/**, ui/**, apps/**, examples/** or skills/**. Hits are the retirement comments, the pin client.test.ts:1378, unrelated local helpers named createFlow, packages/spec/authorable-surface.base.json (a baseline file, left to its gate), and docs/qa/platform-checklist/areas/automation.json:1031 (checklist drift, recorded as FOLLOW-UPS §21 as the card allows). Mount, dispatcher branch, ledger row (158 → 157), SDK method, contract entry and both schemas are gone; isFlowAuthoringWrite drops the POST / arm. Two retired-defs entries and the semantic entry exist.
  5. Notify-channel rule. unregisteredNotifyChannels is the code moved verbatim out of automation.ts into @objectstack/lint; the /automation door now calls it. The /meta gate judges only with a roster stated after the boot settles (gated on the sealed node-type vocabulary), and judges nothing when the registry is unreadable. This is the correction the seat recorded in 7378011450 and it holds against the code it cites.
  6. Mechanical test migration, spot-checked. No test file deleted; 0 added skip/todo; 38 it( lines removed, 68 added; the 37 removed titles are the POST /automation cases (replaced by PUT or /meta cases) and the flipped expectations. Only one added writeFace: 'external-import' in the whole test diff and six added source/provenance lines, all in the named pins. The five flagged items:
    • objectql protocol-batch-object-registration setup with writeFace: 'external-import': hides no regression. The describe is about the external-import face, the setup save still has to succeed, and the pinned assertion (the second save's 422, nothing stored) is unchanged. It does double as the only W4 pin by behaviour (F5).
    • mp protocol.runtime-authoring-gate.test.ts, packageId: TEST_PKG on 94 saves: hides no regression (naming a package can only remove the new refusal, and every asserted refusal is still the gate's own). It narrows coverage: the file no longer drives the gate on a package-less in-place save, a path that stays live (F6).
    • receipt/log strings now carrying package=…: follows from the saves naming a package; not a weakened pin.
    • package-duplicate-adopt-org-scope, sys-metadata-repository.package-writability: honest flips. Each now asserts the code, the status and that no row is stored.
    • dogfood permission-set-clone-door: an honest flip of the tests, but the behaviour it now pins is the must-fix below (F1).
    • knowledge source served as NS-NAME: a consequence of the fixture now living in a package; not assessed further.

② Semver level

Clause-②: no (narrowing) and Metadata-protocol: narrowed are line-initial in the PR body and in .changeset/38174-packageless-create-refused.md; the kind is right (values refused, a door and two exports removed). narrowed takes at least minor: the changeset bumps metadata-protocol, runtime, client, spec, cli, lint and plugin-sharing at minor. The BREAKING banner, the FROM → TO table, the one-line fix and exactly one ADR-0087 marker (registered packageless-create-refused) are present. No authorable spec key is removed (two wire schemas), so no retiredKey() tombstone is owed; the retired-defs entries are the right surface.

Skills-docs: none — … is not correct as written (F3): the skills half is true (no file under skills/** teaches a package-less create, POST /api/v1/automation or client.automation.create; operations.md:91 stays true), but the docs half is not: content/docs/permissions/permission-sets.mdx:496–509 still teaches the clone landing this PR refuses.

③ Boundary flags

  • Author: the PR's user.login is os-bill, not objectstack-fleet[bot] (written off-relay). Named here as the rule requires; read before landing.
  • Dev flags and open items, answered: the ADR-0070 / ADR-0084 marks go in a separate Tier H PR (correct, the card says so; this record does not cover it). Tier H landing by size and narrowing: correct. "No second full runtime/cli run, no full dogfood run after the last fixes; CI is the full run": the head's CI was still running at review time, so this is unverified (see CI below).
  • SQL push-down: the new judgment adds two packagelessAddress reads by name (active, draft) on a package-less runtime-only save only; no id materialisation and no in-app join. writablePackageIds walks the in-memory registry. No finding.
  • Wire reachability of the exemption inputs: packagelessCreateProvenance, source and writeFace are not forwarded by either wire door (each builds its request field by field); the provenance case is pinned for body and query.
  • Card acceptance not evidenced on the PR: "the five examples boot and seed with 0 refusals" and "the dogfood battery for a narrowing arm runs green" are not stated as run; CI is cited instead.
  • hotcrm follow-up (hotcrm#2841) is filed and blocked by this card; nothing owed here.

④ Design judgment

The narrowing against the published spec on main: for the /meta door, os meta register, the MCP/AI doors and the automation create door it makes ADR-0070 D1's own refusal real, as ruled (7184753035, 7234518908), and each consumer has a remedy it can follow in its own input. For one consumer it takes a declared capability away with no remedy at that consumer:

  • F1 · must-fix · the Console's permission-set clone of a platform set or a loose set now fails, and the refusal prescribes something the Console cannot send. POST /security/permission-sets/:name/clone with no package used to land the copy environment-wide for a kernel source (member_default, which the PR's own dogfood title calls "the lock-and-clone rule's commonest source") and for an environment-authored source. At this head both answer 422 WRITABLE_PACKAGE_REQUIRED with "Name one with package in the request body" (permission-set-clone.ts; pinned by the flipped dogfood cases). The Console sends exactly { name, label } and by design never names the landing package (ui/packages/app-shell/src/views/metadata-admin/permission-set-clone.ts:137, and its docblock: "The client never names the package the copy LANDS in"); PermissionSetCloneDialog.tsx has a pick only for the source's holder. So lock-and-clone on a platform set is dead in the Console after this PR, the published docs still declare it (permission-sets.mdx:496–509), and the server's environmentWide / environmentWideKernelSource notice codes are left unreachable for a new copy while permission-set-clone.test.ts:283/298 still asserts them against a mocked save. Ruling 7380917604 says in terms that this case is "Not ruled here"; the census marked it "Seat to judge"; the PR decided it by the letter and its maintainer summary does not tell him that cloning a platform permission set from the Console stops working. Fix before landing: either the Console gains a landing-package choice for these sources in the same PR (AGENTS.md Post-Task step 4's rule, in spirit), or the maintainer rules the landing (refuse, a default package, or an exemption) and the PR, docs and dead notice path follow that ruling. Evidence is read, not run.
  • F2 · should-fix · a sixth by-name skip the rulings do not grant. writeFace === 'package-duplicate' returns "not a create" in packagelessCreateRefusal, while the module docblock says the duplicate door "always names its target, so it never arrives here package-less" and the rulings say five writers "and no other". Today the clause is unreachable (protocol-package-commits.ts:649 always passes targetPackageId), so it changes no answer; but if a duplicate ever arrived package-less it would be silently exempt instead of refused. Delete the clause (the packageId test above it already passes a named target), or state why it stays and pin it.
  • F3 · should-fix · the Skills-docs: line is wrong on the docs half (see ②). Change it to follow-up owed — content/docs/permissions/permission-sets.mdx (the seat files the card) or update that passage here, in step with F1's outcome.
  • F4 · should-fix · the semantic migration entry is behind the changeset. 19.packageless-create-refused.ts reason still says "Four writers keep a named exemption" and names four; its "Verify UNAFFECTED" list omits the ceremony; and it does not mention the second narrowing this PR ships, the /meta flow save now refusing an unregistered notify channel (flow-notify-channel-unregistered, FROM stored-and-armed TO 422), nor the clone door. The changeset body has all of these; the entry is what ships as upgrade guidance. Bring the entry level with the changeset (five exemptions, the notify-channel FROM → TO). The same "W3, W4, W12" list in the protocol-save.ts comment at the call site omits W5.
  • F5 · should-fix · named pins for W3, W4 and W13 are missing. Card acceptance: each exemption "pinned by a test that names it". The new runtime test names W12 and W5 only. W4 is held only by the objectql setup line (flagged item 1) and by pre-existing datasource suites that were not written as controls for the close; W3 and platform registration likewise rest on pre-existing suites. Add the three named controls to meta-packageless-create-refused.test.ts, each with its ablation, or list in the PR the existing tests that serve.
  • F6 · nit · blanket TEST_PKG in protocol.runtime-authoring-gate.test.ts. Keep one or two cases on the package-less in-place path (seed the loose row with the fixture, then save with no package) so the gate's package-less scope resolution stays driven from this file.
  • F7 · nit · @objectstack/plugin-sharing takes minor for a comment-only hunk. Nothing it publishes changes; patch or no entry would say so.
  • F8 · nit · the two flow doors share the predicate but not the judging mode. The /automation door refuses every write of a flow naming an unregistered channel; the /meta publish gate is handed "the same value in every pass, so it moves no baseline", so an in-place save of a flow that already carries the finding may pass there. Also, a runtime package install (packages.ts:3596) now meets the rule for a packaged flow naming a channel of a plugin the deployment lacks. Neither is wrong against ruling 6810493176 B; say which is intended in the rule's docblock.
  • F9 · nit · refusal order. The create judgment runs after the body gates, so a package-less create with an invalid body is refused for the body first and for the package on the next attempt. Loud both times; an earlier cheap check would save the author a round.

Accepted as designed: retiring POST /automation with no 410 branch (matches the #19543 precedent and Q-g C); PUT /automation/NEW relaying the /meta route rather than inventing ?package= on the automation door; the draft clause (a package-less save of a name whose only draft is package-bound is not a create, #23657); the ceremony riding this PR (amendment 7381028557: landing them apart would break the ceremony in between).

CI at the head (read 2026-12-03T16:14Z): 52 check-runs: 14 success, 11 skipped, 27 in progress (Build Core, Build Docs, Build UI Deps, all Lint groups, Live E2E UI, Test Core 1–12 of 12, the four Type Check groups, v18 → v19 source upgrade), 0 failed so far. Combined status: pending. The head is 5 commits behind main (5788b13). Landing check ② (every PR check green) is not met yet and must be re-read on the final head.

Independence: implemented in the card thread (session_01Utp6CasbvyQnz4st6s79P9, branch below); reviewed by an isolated subagent of the seat session, which was fed the PR, the card and the premise files and none of the drafter's conclusions beyond the PR body.

Implemented-by: claude/project-thread-h0p32t
Reviewed-by: session_01Utp6CaQsbKBMQtm6Tpsamd

VERDICT: FAIL

One must-fix (F1) and four should-fix (F2–F5) are open; the original reviewer reads the delta on the next substantive head. No auto-merge was armed on this draft, so nothing is owed a disarm.

… the package-duplicate skip (F2); W5 named at the call site

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CasbvyQnz4st6s79P9
…l-site comment name the fifth exemption and the notify-channel narrowing; named W3/W4 pins; notify rule states its judging mode; plugin-sharing patch

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CasbvyQnz4st6s79P9
…, as the door does

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CasbvyQnz4st6s79P9
…r header totals, package-naming saves in http-conformance, plugin-audit and the live Studio page specs, a seed helper's body type

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CasbvyQnz4st6s79P9
… name a package or seed the loose row

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

This branch has not been deployed

No deployments
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/xl 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