Skip to content

docs(adr): ADR-0070 D1 complete and ADR-0084 marked for the kernel refusing package-less creates - #39397

Merged
os-zhuang merged 4 commits into
mainfrom
claude/issue-38174-adr-marks
Dec 3, 2026
Merged

os-zhuang merged 4 commits into
mainfrom
claude/issue-38174-adr-marks

Conversation

@os-bill

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

Copy link
Copy Markdown
Collaborator

Requested by Bill · project thread

Refs #38174

维护者速读

What changes

  • docs/adr/0070-package-first-authoring.md: the status line gets a dated amendment; D1 gets a dated note (the five exemptions, what stays open, the automation doors, what the close does not reach); Implementation status reads "D1 complete"; D3's Kernel bullet is marked done. Each cites feat(metadata-protocol)!: refuse a package-less create; retire POST /automation; notify-channel judge on /meta flow saves #39386.
  • docs/adr/0084-application-builder-information-architecture.md: the status line, and two dated notes under #amendment-2026-11-26-org: the Q-d correction, and the fifth exemption, quoting ruling 7380917604 「A 迁移照旧落为散落项」 and its consequence.

Verification

ADR gates green locally on the branch. No code, no changeset.


Generated by Claude Code

…f package-less creates

The ADR half of card #38174 (App Studio phase 4-3). Two records, dated
2026-12-03, text only.

ADR-0084: two dated notes under "Organization-level content"
(amendment-2026-11-26-org) amend two sentences of the 2026-11-26
amendment, and the status line gains its entry, as Prime Directive 13
asks where a recorded decision is reversed.
- Sharing rules, queues and assignment rules that an organization authors
  in Setup are the organization's data rows: they bind to no package and
  the kernel's refusal of package-less creates does not reach them
  (decision Q-d, answered A). Q-a (A) and Q-b (C) change no sentence.
- "Four writers keep a named exemption, and no other" becomes five, by the
  maintainer's ruling of 2026-12-03 (record 7380917604, option A). The
  fifth is the organization-ownership ceremony's conversions of rows
  stored before the upgrade.

ADR-0070: a dated note under D1 records the implementation status. The
kernel save refuses a create that names no package with
422 WRITABLE_PACKAGE_REQUIRED and names the writable packages; five
writers keep a named exemption (ruling records 7184753035, question 2, and
7380917604); a loose row that exists is still saved in place;
POST /api/v1/automation is retired and a flow is created with
PUT /api/v1/meta/flow/NAME?package=PKG (Q-g, answered C). The fifth
exemption is stated by a server-side provenance that only the create
judgment reads, with source unset, so every other gate still judges those
saves; the ceremony's report lists what it left loose and names the move
door. The Implementation status section marks D1 complete and D3's Kernel
bullet is marked done. The code change is named as the code PR cut from
#38174, which has no number yet.

Every existing line is kept: three lines gain text at their end (the two
status lines and D3's Kernel bullet) and the rest is inserted.

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/s documentation Improvements or additions to documentation labels Dec 3, 2026
@os-bill os-bill added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Dec 3, 2026 — with Claude
@objectstack-fleet

Copy link
Copy Markdown
Contributor

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

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 2824f8c0e988312f4ab92ac9ed6b255093ed1f94
Local-runs: none
Scope: docs/adr/0070-package-first-authoring.md, docs/adr/0084-application-builder-information-architecture.md + none in the diff; read outside it, on #39386's head c913c4a14c27570774e82ae2efbd18e959187be1: packages/metadata-protocol/src/protocol-packageless-create.ts, packages/metadata-protocol/src/protocol-save.ts, packages/metadata-protocol/src/protocol-door-requests.ts, packages/cli/src/commands/migrate/organization-ownership.ts, packages/cli/src/utils/organization-ownership-apply.ts, packages/runtime/src/domains/automation.ts, packages/runtime/src/domains/permission-set-clone.ts, ui/packages/app-shell/src/views/metadata-admin/permission-set-clone.ts, ui/packages/app-shell/src/views/metadata-admin/PermissionSetCloneDialog.tsx, packages/services/service-datasource/src/datasource-admin-plugin.ts, packages/services/service-datasource/src/datasource-admin-service.ts, packages/services/service-datasource/src/admin-routes.ts, packages/spec/src/kernel/metadata-plugin.zod.ts
Tier-note: CONTRACT_REVIEW_TIER exhausted (Fable out of quota until 2026-12-09); Opus review per maintainer 「fable 用完之后,可以用 opus 复审」 (2026-12-03T15:42Z). The face is rules (docs/adr/**), so the face's tier is CONTRACT_REVIEW_TIER; this record is served below it.
Security-touching: no
Rule-change-verified: none

Full review, round 1. The diff is two ADR files (+19 −3), no code and no changeset. Inputs read: the diff and PR body at this head; ruling records 7184753035 (#37424), 7234139193 (#37424, Q-a/Q-b/Q-d), 7380917604 (#38174) and claim amendment 7389333883 (#38174, the Console clone ruling A of 2026-12-03T19:12Z); the census the first ruling follows (#37453, 7184476778); the code each note cites, on #39386's head; and the check-runs on this head.

① Derived judgments

Ruling fidelity, term by term:

  • 7184753035, question 2 (A). The four exemptions are recorded without narrowing: W3 kernel-item overlay until the platform-pair whitelist, W4 the ruled external import (writeFace: 'external-import'), W12 binding-preserving migrations, and W13 platform registration. os meta register is recorded as closed and needing --package. In-place saves of an existing loose row stay open. The "same phase, kernel last, no flag" clause is recorded in ADR-0070's note. The sibling clause on sharing rules, queues and assignment rules is not restated as binding. It is corrected by ADR-0084's first note on 7234139193's Q-d (A). That note quotes the answer verbatim and records Q-a (A) and Q-b (C) as changing no sentence, which matches the record. Nothing is added.

  • 7380917604 (A). Each of the ruling's terms 1–4 appears in both notes:

    1. two package-less creates (the positions and permission-sets conversion, and the email-template promotion);
    2. one server-stated provenance on the writeFace precedent, which no wire body can state;
    3. only the create judgment reads it, source is unset, and every other gate still judges (ADR-0070 also gives the unknown-grant example);
    4. the report lists what was left loose and names POST /api/v1/packages/:id/move-in.

    Both notes also give the bound ("the ceremony's conversions of rows stored before the upgrade") and the self-description "four writers, and no other becoming five". The consequence line is quoted verbatim, with 「A 迁移照旧落为散落项」. Term 5 (tests) is code, not ADR. B, C and the not-taken spellings go unrecorded, which narrows nothing.

  • Ruling A of 2026-12-03T19:12Z (7389333883). The Console clone gets a landing-package choice and no new exemption. The notes do not mention the clone. Their "five, and no other" and ADR-0084's "no sixth is added" agree with "no new exemption", so nothing is contradicted (N1).

The cited code on #39386's head agrees with the notes:

  • packagelessCreateRefusal (protocol-packageless-create.ts:76-98) has exactly the skips the note lists: intent override-artifact, a named package, source, writeFace: 'external-import' and packagelessCreateProvenance: 'organization-ownership-ceremony'. A name held by a package, an existing loose row and a draft address each fall through as "What stays open" says.
  • The answer is 422 WRITABLE_PACKAGE_REQUIRED, with a capped list of writable packages (:5, :118-139). It is called once, in protocol-save.ts:2172 before any write.
  • The provenance is server-only. protocol-door-requests.ts:41 says no HTTP door forwards it, and organization-ownership.ts:923 states it only for LEFT_LOOSE targets.
  • leftLooseNote names the move-in door (organization-ownership-apply.ts:281-284). The email template is saved LEFT_LOOSE (:2233).
  • In automation.ts:4297 POST / is retired, and PUT /:name refuses a new name (:2698).
  • The three Setup types are allowRuntimeCreate: false, allowEnvironmentOverlay: false (metadata-plugin.zod.ts:1332,1342,1349), and unboundItemDraftAddress exists. Every anchor resolves.

The "D1 complete" mark is not true of #39386 as written (M1). POST /api/v1/datasources (admin-routes.ts:962, then createDatasource, then putDatasourceRecord) creates a runtime datasource (allowRuntimeCreate: true). persistDatasourceRow (datasource-admin-plugin.ts:158-183) inserts it straight into sys_metadata with no package, under the system context. That write never passes saveMetaItem, so the close does not meet it. It is none of the five exemptions: it is not W13, because the register call states no origin: 'platform'. The census of 14 writers that 7184753035 rules on did not list it, and #39386 does not touch it. ADR-0070 D1's second bullet says a null package "ceases to be a write destination for new items". The note claims "D1 is complete" and "Five writers keep a named exemption, and no other", and the Implementation-status line and D3's Kernel bullet repeat the claim. With this door open, those statements are false.

The opposite reading is that decision 12 ("a connection is configuration bound to an environment") and ruling 6660988968 ("sys_metadata … package-less, as today (D11 environment metadata)") already treat a runtime datasource as environment-bound. No ruling names it as an exemption from D1, though, so the ADR cannot settle the question by silence. Closing the door or exempting it is the maintainer's choice, not the seat's. Until then the note must record the door under "What stays open" or "Not reached" as unruled, and it must not call D1 complete.

② Semver level

None. This PR is ADR text only, with no package, changeset or published surface, so skip-changeset is correct. The behaviour change and its changeset ride #39386.

③ Boundary flags

④ Design judgment

Check-runs on this head: all completed, every one success or skipped, except one stale failure. Check Changeset failed in run 47182711326 (2026-12-03T19:14Z). That run fired before skip-changeset was applied (2026-12-03T19:20Z). The post-label run 47183930901 skipped the job, as the label intends. This is not a designed red and not a merge-base red. Re-run job 144526108903 so the head shows no failure before queueing.

  • success: Lint & Repo Gates (all six Lint jobs), TypeScript Type Check (all four), Test Core and Test UI (sharded), Build & E2E UI, Live E2E UI, Dogfood Regression Gate, Governed Surface Queue Guard, PR-body guards, Check Documentation Links, Check PR Size, Lint UI, Type Check UI.
  • skipped as path-gated or opt-in: Build Core, Build Docs, the Dogfood battery and the other opt-in jobs.

No should-fix. M1 open, N1 nit.

Implemented-by: claude/issue-38174-adr-marks
Reviewed-by: session_01Utp6CaQsbKBMQtm6Tpsamd

VERDICT: FAIL

…e open door (#38174)

Opus review 7390508171 on the ADR PR (seat decisions relayed 20:00Z).

M1: Setup's POST /api/v1/datasources inserts a package-less datasource
row outside protocol.saveMetaItem, so #39386's kernel close does not meet
it, and no ruling exempts it. The status line, Implementation status and
D3's Kernel bullet now say the kernel save is closed and D1 is complete
except for that door, tracked in #39398; "and no other" is dropped from
the exemptions bullet, and the D1 note gains a bullet for the open door.

N1: "What is refused" names the permission-set clone door and Setup's
landing-package pick (claim amendment 7389333883, ruled A, no new
exemption).

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

Copy link
Copy Markdown
Contributor

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

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 7e5c6a7aaf5b8ef598321031520a796d9dc0eac1
Local-runs: none
Scope: docs/adr/0070-package-first-authoring.md (the delta 2824f8c0..7e5c6a7a, one commit, +6 −5), docs/adr/0084-application-builder-information-architecture.md (unchanged in the delta, re-read for agreement) + none in the diff; read outside it, on #39386's head a012c0867f7f921c959099daf29ca0d8ef4e570f: packages/runtime/src/domains/permission-set-clone.ts, packages/runtime/src/domains/new-similar-target.ts, ui/packages/app-shell/src/views/metadata-admin/{permission-set-clone.ts,PermissionSetCloneDialog.tsx}, packages/services/service-datasource/src/datasource-admin-plugin.ts, packages/metadata-protocol/src/{protocol-packageless-create.ts,sys-metadata-repository.ts}; issue #39398
Tier-note: CONTRACT_REVIEW_TIER exhausted (Fable out of quota until 2026-12-09); Opus delta per maintainer 「fable 用完之后,可以用 opus 复审」 (2026-12-03T15:42Z). The face is rules (docs/adr/**), so this record is served below the face's tier, as round 1's was.
Security-touching: no
Rule-change-verified: none

Delta review, round 2. Round 1 is the record on 2824f8c0e988312f4ab92ac9ed6b255093ed1f94 (comment 7390508171: FAIL, M1 must-fix, N1 nit). The delta is one commit, 7e5c6a7a, touching ADR-0070 only. Inputs:

Between c913c4a1 (round 1's reading) and a012c086, #39386 changed only the clone door, its tests and two docblocks. Every other anchor round 1 verified is unchanged.

① Derived judgments: round 1's findings against this head

The headline of the D1 note is unchanged: "five writers keep a named exemption, and a loose row that exists is still saved in place". It no longer conflicts with any sentence below it.

② Semver level

None. This is ADR text only, with no package, changeset or published surface, and skip-changeset remains correct.

③ Boundary flags

④ Design judgment

No must-fix, no should-fix and no nit remain open.

CI at the head (read 2026-12-03T20:40Z):

  • 46 check-runs, all completed: 32 success and 14 skipped, with 0 failed, 0 cancelled and 0 in progress.
  • Check Changeset is skipped at this head (job 144560750628), as the skip-changeset label intends.
  • Round 1's stale red, job 144526108903 on 2824f8c0, was re-run. Run 47182711326 is now at attempt 2, cancelled, superseded by the push of this head. Either way it is not on this head.
  • The combined legacy status is pending with no statuses posted.
  • The head is 0 commits behind main, and mergeable_state is clean.
  • The PR is still a draft, with no auto-merge armed.
  • Landing check ②: met at this head.

Independence: implemented in the card's ADR lane (branch below). Reviewed by an isolated subagent of the seat session. It was fed the PR, round 1's record, and the seat's summary of the dev's fix list, and none of the drafter's conclusions beyond those.

Implemented-by: claude/issue-38174-adr-marks
Reviewed-by: session_01Utp6CaQsbKBMQtm6Tpsamd

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor

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

维护者速读

席位核对

ACCEPT · head 7e5c6a7aaf5b8ef598321031520a796d9dc0eac1 · repo:objectstack@os-bill

  1. Shape: 2 files, +20/−3, docs/adr/** only (ADR-0070, ADR-0084). Refs #38174; skip-changeset.
  2. Premise measured: the review read every claim in the notes against feat(metadata-protocol)!: refuse a package-less create; retire POST /automation; notify-channel judge on /meta flow saves #39386 at a012c086.
  3. Gates:
    • Check-runs at this head: 32 success, 14 skipped, 0 failed.
    • Contract review: FAIL 7390508171, then delta PASS 7391624669 at this head, on Opus under the maintainer's 2026-12-03 15:42Z word.
  4. Accepted deviations: the review's tier is Opus, per the maintainer's word above.
  5. Out of scope: none.
  6. Landing: governed, Tier H (docs/adr/**). Review is requested from os-zhuang. The seat lands it after approval, right after feat(metadata-protocol)!: refuse a package-less create; retire POST /automation; notify-channel judge on /meta flow saves #39386; if feat(metadata-protocol)!: refuse a package-less create; retire POST /automation; notify-channel judge on /meta flow saves #39386's head moves, the seat re-reads the note first.

@objectstack-fleet

Copy link
Copy Markdown
Contributor

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

Review request: 2026-12-03T20:44Z · os-zhuang, please approve at head 7e5c6a7aaf5b8ef598321031520a796d9dc0eac1. Seat ACCEPT 7391678991 above; contract review delta PASS 7391624669 at this head (Opus, per the maintainer's word on fable running out). Tier H. #39386 (code) and #39397 (ADR marks) land together after approval.

@objectstack-fleet
objectstack-fleet Bot requested a review from os-zhuang December 3, 2026 20:45
@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Dec 3, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review December 3, 2026 22:26
@os-zhuang
os-zhuang added this pull request to the merge queue Dec 3, 2026
Merged via the queue into main with commit 4eca9da Dec 3, 2026
54 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-38174-adr-marks branch December 3, 2026 23:46
@objectstack-fleet

Copy link
Copy Markdown
Contributor

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:56Z) · head 7e5c6a7

The records on #38174's two PRs (#39386 code, #39397 ADR) were served on Opus (Served-tier: TIER_DEFAULT), and the merge queue's guard refuses them as below tier although os-zhuang has approved. The maintainer chose a fable review of both before landing, through the seat repo:objectstack@os-elon-musk (project chat of seat repo:objectstack@os-bill, 2026-12-03 23:44–23:45Z: 「需要 fable 复核的话,可以交接给 elon」, then "ok" to reviewing #39386 and #39397). On a PASS at this head, the seat lands the PR; the two land together.

@objectstack-fleet

Copy link
Copy Markdown
Contributor

repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cxiJF5PkqquFk98Bh7

Contract-review-hold: session_016WV4cxiJF5PkqquFk98Bh7 · head 7e5c6a7 · this ADR half lands with PR #39386, whose contract record 7396202327 is FAIL (M1, M2 change what the close exempts, and S2 owes rewritten contract sentences) · until PR #39386 carries a new head that answers M1 and M2; then knock mailbox #39411 with both heads and this seat reviews the pair

@objectstack-fleet

Copy link
Copy Markdown
Contributor

repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cxiJF5PkqquFk98Bh7

Contract-review-claim: session_016WV4cxiJF5PkqquFk98Bh7 · head 7e5c6a7 · 2026-12-04T00:47Z
Hold released: PR #39386 delta record 7397144210 is PASS on head b83303a; this ADR text is now reviewed against that code head.

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 pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/s skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants