Repository navigation
feat(metadata-protocol)!: refuse a package-less create; retire POST /automation; notify-channel judge on /meta flow saves - #39386
Conversation
…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
…annel rule tests (#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
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
) 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
📓 Docs Drift CheckThis PR changes 7 package(s): 47 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 19 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 197 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 2c60c158ca78c983ef9b3ba888be48e253b7ee73 && git checkout 2c60c158ca78c983ef9b3ba888be48e253b7ee73
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin c9ea363d71087bd9d16e0a8ee6de0c5f76331e0c bb318a34255887ff0a70cee1dd41a077c1c3a54b && git checkout -B drift-repro c9ea363d71087bd9d16e0a8ee6de0c5f76331e0c && git merge --no-ff bb318a34255887ff0a70cee1dd41a077c1c3a54b
node scripts/docs-audit/affected-docs.mjs --json c9ea363d71087bd9d16e0a8ee6de0c5f76331e0c
|
|
repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd Contract reviewServed-tier: Reviewed at 2026-12-03T16:14Z. PR #39386 (draft), card #38174, base ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentThe narrowing against the published spec on
Accepted as designed: retiring 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 Independence: implemented in the card thread ( Implemented-by: 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
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
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CasbvyQnz4st6s79P9
|
repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd Contract-review-handoff: repo:objectstack@os-elon-musk — CONTRACT_REVIEW_TIER unavailable (429 quota, 2026-12-03T23:55Z) · head 60124b4 The records on #38174's two PRs (#39386 code, #39397 ADR) were served on Opus ( |
|
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cxiJF5PkqquFk98Bh7 Contract reviewServed-tier: PR #39386, card #38174, base ① Derived judgments
② Semver level
The Two things the changeset says are not what the tree publishes: its "Not reached" list calls a package-less save of a name a package holds "as an item or as a draft" a save bound into that package, which is false in publish mode (M1) and false for the action case (M2); and it is silent on judgment 8 and on the reach of judgment 9 (S1). ③ Boundary flags
④ Design judgmentThe narrowing against the published spec on M1 (must-fix) — the close is bypassed by two requests on any type. M2 (must-fix) — an environment's own action is still created with no package. For an S1 (should-fix) — the changeset and the semantic entry understate what the tree publishes. (a) Judgment 8, the clone door accepting a named S2 (should-fix) — the judgment's contract sentences disagree with its code where M1 and M2 sit, and they are what the next reader trusts: the module docblock's bullets "no package holds the name ... customizes that holder" and "no draft row of it is bound to a package (the draft address binds the save into that package ...)", the same claim in the N1 (nit) — amendment 7389333883 says "defaulting to one when there is exactly one"; the dialog pre-selects nothing and shows one button. The seat recorded this reading as accepted in an earlier round; it stays a recorded deviation from the amendment's words. N2 (nit) — N3 (nit) — 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. N4 (nit) — Independence: implemented in the card thread on the branch below; reviewed by an isolated reader of this seat that was given the card, the PR and the check-runs, and none of the dispatching seat's conclusions. Earlier records on the PR thread were read as history; M1 and M2 appear in none of them. Implemented-by: VERDICT: FAIL |
…mode draft (#38174) Fable contract review 7396202327 on this PR. M1: a publish-mode save reads active rows only, so a package's draft of a new name no longer holds it; the package-less save is refused 422 and the draft stays. Only a draft-mode save binds into the draft (#23657). M2: an action is keyed (package, objectName, name) (ADR-0150 D4); an action whose active holders all bind other objects is the environment's new item, so its package-less save is a create and is refused (actionHeldOnlyOnOtherObjects). S1/S2: changeset and semantic entry text name the action key, the publish-mode draft, the kernel clone source widening from 409, and the notify rule on the runtime publish gate. Tests: new M1 and M2 pins with ablations; the action describe in mp and the #33904 runtime and dogfood action tests lay the environment's loose row before its package-less save. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CasbvyQnz4st6s79P9
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CasbvyQnz4st6s79P9
|
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cxiJF5PkqquFk98Bh7 Contract reviewServed-tier: Delta review. The previous record is the FAIL on ① Derived judgments
② Semver levelNo bump moves. The changeset and the semantic entry now state the action key, the publish-mode draft cell, the clone door's widening for a kernel source (FROM ③ Boundary flags
④ Design judgmentM1: closed Checked against the code each fix cites. M1: the judgment's order is loose row (in place), action key, holder's active row, then the bound draft in draft mode only; the publish-mode cell falls through to the refusal, and No must-fix, no should-fix. N5 (nit) — three added test comments cite the previous review by the reviewing model's name rather than by its record id alone ( N6 (nit) — N1 to N4 of the previous record stand as recorded. Implemented-by: VERDICT: PASS |
|
Fable review 7396202327 fixed at b83303a (typecheck nit at b7ad57b). Forks for M1 and M2: both refuse, no sixth exemption, confirmed by the seat per ruling 7184753035 Q2 A and Bill's 19:12Z ruling A (binding a publish-mode save into a draft's package would be a new binding route; a named action exemption would be a sixth exemption). Generated by Claude Code |
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CasbvyQnz4st6s79P9
|
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cxiJF5PkqquFk98Bh7 Contract reviewServed-tier: Delta review. The previous record is the FAIL on ① Derived judgments
② Semver levelNo bump moves. The changeset and the semantic entry now state the action key, the publish-mode draft cell, the clone door's widening for a kernel source (FROM ③ Boundary flags
④ Design judgmentM1: closed Checked against the code each fix cites. M1: the judgment's order is loose row (in place), action key, holder's active row, then the bound draft in draft mode only; the publish-mode cell falls through to the refusal, and No must-fix, no should-fix. N5 (nit) — three added test comments cite the previous review by the reviewing model's name rather than by its record id alone ( N6 (nit) — N1 to N4 of the previous record stand as recorded. Implemented-by: VERDICT: PASS |
|
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cxiJF5PkqquFk98Bh7 Contract reviewServed-tier: Second delta review. The previous record is the delta PASS on ① Derived judgmentsThis delta is a prose-only and dead-binding move inside test files. It changes no accept-set, no public surface and no assertion.
No source file, changeset, migration entry or generated baseline is in the delta. ② Semver levelNothing moves: the changeset and the semantic entry are byte-identical to the previous head, and ③ Boundary flags
④ Design judgmentM1: closed Nothing in the delta reopens a finding: No must-fix, no should-fix. N6 and N1 to N4 stand as recorded. Implemented-by: VERDICT: PASS |
|
The single allowed re-run is used. The seat decides whether to re-run again or land. Generated by Claude Code |
|
repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd Battery re-start · 2026-12-04T01:54Z · head |
|
repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd Landing · 2026-12-04T02:24Z · head
State: |
Requested by Bill · project thread
Closes #38174
Clause-②: no (narrowing)
Metadata-protocol: narrowed
Skills-docs: updated here — content/docs/permissions/permission-sets.mdx (a clone with no package to land in is refused, and the Console's "New similar" offers the writable packages; skills/** teach no package-less create,
POST /api/v1/automationorclient.automation.create)维护者速读
422 WRITABLE_PACKAGE_REQUIRED,列出可写包,不落库(ADR-0070 D1,裁定 7184753035)。source迁移、平台启动注册、组织归属仪式的旧行转换(裁定 7380917604 A)。POST /api/v1/automation与client.automation.create退役(Q-g C,裁定 7234518908);/meta保存 flow 时也拒绝未注册的 notify 渠道,两扇门共用一个判定。What changes (non-mechanical — review these)
Kernel
packages/metadata-protocol/src/protocol-packageless-create.ts(new):packagelessCreateRefusal— the create judgment and the 422 sentence; asked once in the save path after the address resolves.protocol-door-requests.ts: server-statedpackagelessCreateProvenance?: 'organization-ownership-ceremony'(W5). Neither wire door reaches it: an unknown body key answers 422INVALID_METADATA, an unknown query param 400VALIDATION_ERROR(pinned).(package, objectName, name)(ADR-0150 D4): an action whose active holders all bind other objects is the environment's new item, so a package-less save of it is a create and is refused (M2, viaactionHeldOnlyOnOtherObjects). An environment-own action is created only from an existing loose row.Doors
packages/runtime/src/domains/automation.ts+ route ledger:POST /automationunmounted;PUT /automation/{name}for a new name answers 422 namingPUT /meta/flow/:name?package=.packages/runtime/src/domains/permission-set-clone.ts: the clone door's own sentence (names the body'spackage) instead of the kernel's.ui/packages/app-shell, F1 per ruling A, claim amendment 7389333883):clonePermissionSetrejects the 422WRITABLE_PACKAGE_REQUIREDasPermissionSetLandingRequired;PermissionSetCloneDialogshows the server's sentence with one button per writable package and re-sends the same source with the chosen bodypackage. No new exemption.content/docs/permissions/permission-sets.mdxupdated.packages/lint/src/validate-flow-notify-channels.ts+authoring-rules.ts: ruleflow-notify-channel-unregisteredon the/metaruntime publish gate, once boot has settled;unregisteredNotifyChannelsis the one predicate both flow doors ask.packages/cli/src/utils/organization-ownership-apply.ts+commands/migrate/organization-ownership.ts: the ceremony passesLEFT_LOOSE; its report lists the loose conversions and names the move door.Spec / client
CreateFlowRequestSchema,CreateFlowResponseSchema,AutomationApiContracts.createFlow,client.automation.createremoved; 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:
protocol-batch-object-registrationsetup useswriteFace: 'external-import'(an exemption used as a bypass).protocol.runtime-authoring-gate.test.ts: blanketpackageId: TEST_PKGon 94 saves.package=….package-duplicate-adopt-org-scope,sys-metadata-repository.package-writability, dogfoodpermission-set-clone-door.NS-NAME.Tests
meta-packageless-create-refused.test.ts(19, incl. the M1 publish-over-draft pin: named pins for W3, W4, W12 and W5; W13 never reaches the kernel save and is pinned inpackages/metadata/src/metadata-manager-cluster.test.ts), lintvalidate-flow-notify-channels.test.ts(8), runtimepermission-set-clone.test.ts(+3), cliregister-package.test.ts(refusal +--packagecontrol), dogfoodpackageless-create-refused.dogfood.test.ts(7), app-shellPermissionSetCloneDialog.landing-38174.test.tsx(4).external-importline 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; Console landing branch off → 2 RED / 2 GREEN; publish/draft mode clause + action-key branch off → mp 2 RED (M2 pin,[#33904]version test), runtime 1 RED (M1 pin).protocol.packageless-save-address.test.ts: the ACTION describe seeds a loose env row before env-creating saves (21 tests); new M2 pin (publish, draft and object-less refused, nothing written) and its control (a save on the holder's object stays P's customization). 109/109.meta-environment-action-other-object-33904.test.tsand dogfoodaction-save-packageless-other-object/action-list-packageless-other-objectnow lay the environment's loose action row before its package-less save, in both orders.Verification
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: fixed at c913c4a per Bill's ruling A: the clone dialog gains a landing-package choice (writable packages), no new exemption. F2–F5, F7 and F8 are fixed at 90c84ed; F6 and F9 are nits, not taken.
contract review 7396202327 FAIL: M1, M2, S1, S2 fixed (changeset + semantic entry text: action key, publish-mode draft, kernel clone source widening from 409, the notify rule on the runtime publish gate).
ADR-0070 / ADR-0084 marks: docs(adr): ADR-0070 D1 complete and ADR-0084 marked for the kernel refusing package-less creates #39397 merged; the M1/M2 ADR-0070 text follow-up is docs(adr-0070): package-less create — action key and publish-mode draft (#38174) #39443 (Tier H).
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