Skip to content

Commit aacbb81

Browse files
docs(adr): ten records gain dated notes where their text had fallen out of step with main (week of 2026-11-25) (#38289)
<!-- claude-projects-attribution: {"github_login":"os-elon-musk"} --> _Requested by **Elon** · [project thread](https://claude.ai/code/project/chan_01WedDzV26nniwxv7jC88B9D?thread=cmsg_01WedDzV26nniwxv7jC88B9DDypKu7B9nwbu5WuV7AEio8)_ Fixes #37245 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:用户无感;只在十份设计记录里补了带日期的说明,写明主线现在实际怎么做,原有的决定文字一个字没动。 - 为什么做:属于「每周设计记录修订」滚动清单(11 月 25 日这一周);清单每一行指出一处「记录写的和主线不一致」,这次一并补齐,免得照着记录干活的人被过时说法带偏。 - 出错会怎样:最坏是某条补充说明写得不准,读这些设计记录的人会碰到;纯文档、只增不删,可以直接撤回,不影响任何功能。 - 要你做什么:请审这些补充说明并亲手合并(设计记录须由你本人合)。 ## What changes Ten ADR files gain notes dated 2026-11-28. Every diff line is an addition: 239 lines added, 0 removed. No original decision text is rewritten, and no decision changes. Each note follows the note convention its own record already uses. Each row's "what is true now" was read against the code on `main` before it was written. Where a row was wrong or had gone stale, the note says what `main` does, and the table and the list under it say so. | Row (comment id on the card) | ADR and section | Result | |:---|:---|:---| | Card body row (from #37238) | ADR-0146, the 2026-11-24 amendment, "32 registered types" | **Landed. Row stale.** The row asks for 33; the registry holds 35 entries on `main`. The note states no count and points at the registry and at ADR-0084's table. | | 7155511307, nit 1 | ADR-0160 D1, the door's page cap sentence | **Landed. Row stale.** The row says the door has no page cap. PR #37354 added one. The note says what `main` does: the list is cut one row under the door's cap, not at it. | | 7155511307, nit 2 | ADR-0160 D1, "only contains braces" | **Landed** as the row asks. | | 7155511307, nit 3 | ADR-0160 D3, the link-field sentence | **Landed as a note that the sentence stands.** | | 7161785832 | ADR-0158, Open items 9 and 12 | **Landed.** | | 7178404228, anchor half | ADR-0066, line 146 | **No edit.** PR #37621 already landed it (record 7198334624). | | 7178404228, end-state half, with 7201928772 | ADR-0066 D2 ⑧ | **Landed.** Its prerequisite, PR #37371, is merged. The proposed text is tightened in two places, listed below. | | 7179515770 | ADR-0158 U3, U6, L4, Open item 10 | **Landed.** | | 7184833647 | ADR-0159, Context, "One name already taken" (line 109) | **Landed as a note. The anchor line is untouched.** This is not a no-edit row: the anchor resolves, onto the opposite meaning. See below. | | 7187445064 | ADR-0158 L1, L2, Open items 6, 8, 10 and 11, and a new Open item 13 | **Landed.** | | 7195437501 | ADR-0010, the amendment note of 2026-11-24 | **Landed**, with one arm `main` has gained since the row was written. See below. | | 7212321297, first row | ADR-0067 D3 | **Landed. Row wording wrong.** The note carries the revert rule that the `form` type brought. See below. | | 7212321297, second row | ADR-0160, implementation split, row 7's bullet | **Landed.** The row places the stale path near line 425; it is near line 491. | | 7213085888 | ADR-0048 §3.5 | **Landed.** The row's ready text, dated 2026-11-28, with symbol anchors where it had line numbers. | | 7215202653, corrected by 7215223685, with 7224476684 | ADR-0150 D3, the note of 2026-11-26 | **Landed.** Item 2 of the first row said the two doors were still open. The later row supersedes it: PR #37948 merged, and both doors now refuse. | | 7217585102 | ui ADR-0057, A2 and A3 | **Landed. Row stale on one line.** The plan-marker line is written as `main` is today, after PR #37970, and not only as it was after PR #37720. | Comments that are not rows: 7186949648 (triage note), 7196224618 (a one-row claim), 7196910014 (its report), 7198334624 (its landing record) and 7237786310 (this claim). **No row is held.** Every prerequisite is merged on `main`: PRs #37219, #37240, #37268, #37354, #37366 (which carried #37422), #37371, #37389, #37423, #37449, #37640, #37720, #37818, #37931, #37948, #37970, #37065, #36138 and #37021. The card has 19 comments as of this pull request; a row added after comment 7237786310 is not in it. ### Where a note differs from its row - **ADR-0146.** The row offers two forms, "give the count" or "point to ADR-0084's table". The note takes the second. A count written today would already be the third reading (32, then 33, now 35). - **ADR-0160 D1, the page cap.** The row's premise was true when it was written and is not now. `RecordContextDoor.pageCap` exists, and both doors answer it. The note records the one-row difference between the amendment's words and the code: a list whose cut plus its probe row would pass the cap is cut one row under the cap. - **ADR-0160 D3, the link field.** The note leaves the wording alone. - **ADR-0066 D2 ⑧.** Two changes to the proposed text. The note says in words that `viewAllFieldsReadVote` replaced `superuserFieldVote`, and anchors only the function that exists. And it does not say that nothing re-opens a lock across sets: another set's `viewAllFields` still makes a hidden field readable, and another set's field row with `editable: true` still grants the edit, because field grants union without deny. - **ADR-0159, line 109.** PR #37422 was merged into PR #37366's branch, so the anchor `view.zod.ts#defineForm` resolves and the gate is green on it. It now resolves onto the `form` type's factory, while the paragraph describes the Studio helper, which is `defineMetadataForm` today. The paragraph is Context and describes the tree before the ruling was carried out, so the note leaves it as written and states both names. - **ADR-0010.** The row covers the three restore doors of PR #37423. The same rule has since gained a second refusal, from PR #37640: a restore that would write a version the platform registered into a package's row. The note has one sentence on it. That sentence goes beyond the row; cut it if the note should carry the row alone. - **ADR-0067 D3.** The row asks for a note "naming `form` as a translated metadata type". D3 is about undo granularity and has no such notion. The contract reviews of PR #37422 sent one fact to this record: a `form` item is reverted only after every `view` row its commit edited is put back, and it joins `failed[]` otherwise. The note records that. - **ADR-0048.** The row's text was dated 2026-11-24. The note is dated 2026-11-28, the day it was written into the record. - **ADR-0150.** Besides answering "Not judged yet", the note qualifies one sentence of the 2026-11-26 note that said too much: the draft discard is newly refused only over a stored package-less draft. Where it was already refused, only its sentence moved. - **ADR-0158.** Row 7179515770 points at a draft held by its seat, which this session could not read. The notes are written from the two rows and the code. Open item 13 is a new numbered item at the end of the list, carried from the display card; it is marked not built and not settled. - **ui ADR-0057.** The row asks for "what main does after #37720". `main` has moved once more: since PR #37970 the entry's marker stands for a write that waits for approval. The note says that, and that A5's "Not recorded yet" bullet held until that pull request merged. ## Tests Docs only. No package is touched, so no build closure and no package test is owed for the change. No tested behaviour changed, so there is no ablation. What was checked by hand, on the committed text: - Each phrase a note quotes from its ADR was compared with the base file. - Each verbatim maintainer quotation was compared, byte for byte, with its record on GitHub. - Each cited path and symbol exists on `main`. The one exception is deliberate: the ADR-0160 note names `packages/spec/src/ai/skill.form.ts` to say that no such file exists. - Upstream moved ten commits while this was written (`e42520c67b` to `e2a0e90025`). None touches an ADR file or a file a note cites. `overlap-check` answers `VERDICT clean exit 0` against `origin/main` at `e2a0e90025`, and no open pull request shares a file with this branch. The local gate set is the `dispatch-gates --commands` derivation for this change set, 27 commands, run on the final commit `c2c3345747`. Each exit code was captured before any pipe. Reconciliation: `Run reconciliation — 27 derived, 27 run, 0 NOT-MEASURED, 0 UNRUN`, all 27 with a recorded exit code. <details><summary>ADR gates on c2c3345 (all exit 0)</summary> | Command | Exit | Verdict line | |:---|:---|:---| | `pnpm check:adr-symbol-anchors` | 0 | `check-adr-symbol-anchors: 4525 anchors across 164 records resolve`, 0 line anchors survive. On the base commit the same gate reads 4478. | | `node scripts/check-adr-links.mjs` | 0 | `check-adr-links: 1268 relative link destination(s) under docs/adr/ resolve` | | `node scripts/check-adr-links.mjs --self-test` | 0 | | | `pnpm check:adr-anchors` | 0 | | | `pnpm check:adr-index` | 0 | `adr-index --report: OK — docs/adr/README.md is current, every record parsed` | | `pnpm check:doc-authoring` | 0 | | | `pnpm check:nul-bytes` | 0 | `check-nul-bytes: OK (scanned 28605 text file(s)`, no raw control bytes | | `pnpm check:closed-ceremony-text` | 0 | | | `pnpm --filter @objectstack/lint run check:doc-formula-expressions` | 0 | run after building `@objectstack/formula` and `@objectstack/lint` under the verify lock | | `pnpm --dir ui run check:new-line-citations` | 0 | `VERDICT new-cross-file-line-citations: 0 new citation(s)`. Not in the derived list; run because a ui ADR changed. | </details> <details><summary>The other derived families on c2c3345 (all exit 0)</summary> `node scripts/check-closing-keyword-parity.mjs` and its `--self-test`, `node scripts/check-comment-mask-corpus.mjs`, `node scripts/ci/plan-test-core-shards.mjs --self-test`, `pnpm check:ci-filter-parity`, `pnpm check:cross-package-test-inputs`, `pnpm check:driver-memory-census`, `pnpm check:gitlink-declared`, `pnpm check:pm-governed-merges`, `pnpm check:pm-prior-rulings`, `pnpm check:published-files`, `pnpm check:refd-timer-probe`, `pnpm check:registry-log-declared`, `pnpm check:rest-log-spy-declared`, `pnpm check:tier-file-adoption`, `pnpm check:undeclared-dep-imports`, `pnpm check:watch-hint-literal`. Before the push: `node scripts/check-commit-card-trailers.mjs --range origin/main..HEAD` exit 0, one commit message, no card relation and no model identifier in the trailer pair. </details> <details><summary>The ui scripts test family: one prerequisite failure, then green</summary> Derived command: `pnpm --dir ui exec vitest run scripts/`, run under the verify lock with `--maxWorkers=2`. - First run: `VERDICT command-exit 1`. `Test Files 1 failed | 171 passed | 2 skipped (174)`, `Tests 1 failed | 5144 passed | 2 skipped (5147)`. The one failure was `scripts/__tests__/unit-registry-absence-collision.test.ts`, with `Failed to resolve entry for package "@objectstack/client"`. The package had no build output in the fresh worktree. That is a missing prerequisite, not a verdict on this change. - After building the `@objectstack/client` closure under the lock, the same command on the same commit: `VERDICT command-exit 0`. `Test Files 172 passed | 2 skipped (174)`, `Tests 5145 passed | 2 skipped (5147)`. </details> Not run locally: the repository test project behind `test:repo`, which CI runs on the pull request and on the merge group. Every other family CI runs is read from this pull request's check runs, not re-run here. ## Acceptance notes - **Changeset.** None, and the pull request carries `skip-changeset`. `docs/adr/**` and `ui/docs/adr/**` ship in no package: the ui tree's root is a private workspace root and `ui/docs` is under no package directory. - **Governed surface.** `docs/adr/**` lands by the maintainer's hand. This pull request stays a draft; the seat hands it over. - **The registry count.** The card row and the amendment both carry a number. The repository rule for a volatile count is to remove it and not to sync it, so the note adds none. - **Seen and left alone.** These are outside the card and are not changed here. - ADR-0084, near line 226, says `form` is not a registered type. It is about the working names of the 2026-07-01 table, and `form` is registered now. It is a candidate row for next week's card of this name. - One internal skill playbook and ui ADR-0056 still use the Studio form helper's old name. The review of PR #37366 already recorded both. - Comments in the console's chat scope helper still describe the `app:PKG:build` dock key and the Studio copilot. ## Verification ### Read first 1. `docs/adr/0066-unified-authorization-model.md`, the note of 2026-11-28 under D2 ⑧. It is the highest-risk hunk: one long paragraph on authorization, and it supersedes parts of three earlier notes. Check the sentences on what another set can still re-open, and the sentence that stored sets are read with the new meaning and never rewritten. 2. `docs/adr/0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md`, the amendment note of 2026-11-28. Check the four cells and their remedies (enable, enable, name the package, name the package) against the ruling it quotes. 3. `docs/adr/0158-units-of-measure-standard-unit-table-org-units-quantity-unit-declaration-base-quantity.md`, the notes under Open items 6 and 10 and the new Open item 13. Both notes quote the maintainer, and item 10's records the shape of a new system object. ### Two-minute check Run `git diff --numstat origin/main...HEAD` on this branch. Expect ten rows, nine under `docs/adr/` and one under `ui/docs/adr/`, each with `0` in the removed column, and 239 added lines in total. Then run `pnpm check:adr-symbol-anchors` and expect exit 0 with a line that contains `check-adr-symbol-anchors: 4525 anchors across 164 records resolve`. --- _Generated by [Claude Code](https://claude.ai/code/session_016WV4cxRDKprCtjpEdtiPFW)_ <!-- signed: repo:objectstack#1 · os-elon-musk · session_016WV4cxRDKprCtjpEdtiPFW --> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent eb03564 commit aacbb81

10 files changed

Lines changed: 239 additions & 0 deletions

‎docs/adr/0010-metadata-protection-model.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,8 @@ Every artifact carries a `_provenance` field:
246246

247247
> **Amendment note (2026-11-24, #37013 — PR #37021).** The enum gained a fourth value, `platform`: a record the platform's own code registers at boot (a built-in skill, agent or tool). It is read at the item's own top-level `_provenance` key only. The metadata service sets it on that registration only; every other write the service and the metadata protocol make (a write without the option, the in-memory seeding, the loader save, the protocol's save door, a rollback, and the protocol's restore doors) stores the body without it; a rollback whose row is the platform's own record is refused (`409`), and an undo that puts a row back as the same operation found it (a refused batch publish's, a failed batch row write's) restores the row's own stored bytes. A served body carries the value on its top level only when the stored item does: a body served from a loader other than the stored rows' and a published snapshot are served without it. The artifact door refuses an item that carries it (`VALIDATION_ERROR` at `_provenance`). A stored row re-registered at boot keeps it only when the row held it. It is a store-slot marker only (ADR-0150 D4's note of the same date).
248248

249+
> **Amendment note (2026-11-28, #37130 — PR #37423; #37604 — PR #37640; carried by #37245).** On the note above, "a rollback whose row is the platform's own record is refused (`409`)". The refusal covers every restore door, not the metadata service's `rollback` alone. A restore whose row is the platform's own record is refused `409 RESOURCE_CONFLICT`, before anything is written, at the metadata service's `rollback` and at the metadata protocol's `rollbackMetaItem` and the restore limb of `revertCommit`. The three doors ask one rule (`packages/metadata/src/loaders/database-loader.ts#refusePlatformRecordRestore`); the protocol's two reach it through the overlay store's version restore, which they ask to refuse the platform's record. In `revertCommit` the refused item is reported in `failed[]` with that code, nothing is written for it, and the commit's other items still revert. The same rule also refuses, with the same code, a restore that would write a version the platform registered into a package's row (#37604). An undo that puts a row back as the same operation found it is not asked the rule, as the note above says of it. Pinned in `packages/metadata-protocol/src/protocol.platform-mark-rollback.test.ts` and `packages/metadata/src/loaders/database-loader.test.ts`.
250+
249251
Rules:
250252

251253
- Overlay rows targeting a `package` artifact respect L3 + L4.

‎docs/adr/0048-cross-package-metadata-collision.md‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,34 @@ as future work, not part of this decision.
346346
> seed data (the import copies none), and the hosted-cloud default namespace
347347
> (objectstack-ai/cloud#3624).
348348
349+
> **Note (2026-11-28, [#37245](https://github.com/objectstack-ai/objectstack/issues/37245); from
350+
> #36166 — PR #37065, following #35823 — PR #36138).** On the amendment's rename sentence, "a name
351+
> that lacks the package's prefix takes it in front". On the unmanaged rename path that sentence has
352+
> three bounds.
353+
>
354+
> 1. **A package that declares no `namespace`** is refused, not renamed, when no object name carries
355+
> the namespace derived from its id and two or more object names share a first segment. Each
356+
> object of each such group is refused (`400 INVALID_REQUEST`), whether every object shares
357+
> the segment (#36138) or a stray object stands beside the group (#36166); the stray is not named
358+
> and does not lift the refusal. So two-word short names the package repeats (`purchase_order`
359+
> beside `purchase_item`) are refused too, and declaring `namespace` lifts the refusal
360+
> (`packages/metadata-protocol/src/package-unmanaged-install.ts#derivedNamespaceContradiction`).
361+
> 2. **A package that declares a `namespace`** is refused for each object name the namespace-prefix
362+
> judge refuses under it
363+
> (`packages/spec/src/kernel/namespace-prefix.ts#validateObjectNamespacePrefix`, asked by
364+
> `packages/metadata-protocol/src/package-unmanaged-install.ts#declaredNamespaceContradiction`).
365+
> The rename has no declared prefix in such a name to replace, and every authoring door already
366+
> refuses that name.
367+
> 3. **Decided to stay as written:** a namespace-less package's single object, foreign prefix or not
368+
> (`demoasset_asset` alone copies as `TARGET_demoasset_asset`), because one name cannot tell a
369+
> two-word short name from a foreign prefix. Namespace-less object names that share no first
370+
> segment (`purchase_order` beside `asset_owner`, bare `asset` beside `site`) also stay as
371+
> written.
372+
>
373+
> A body that writes the id-derived namespace out as `namespace` is judged as declared, so bound 2
374+
> applies to it and the shapes in bound 3 are refused for it. Each refusal is raised before the base
375+
> exists. Pinned in `packages/metadata-protocol/src/package-unmanaged-install.test.ts`.
376+
349377
### 3.6 The package-id URL is transparent; a friendly alias is optional
350378

351379
A reverse-domain URL — `/apps/com.acme.crm/page/home` — is **self-describing**:

‎docs/adr/0066-unified-authorization-model.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ Captured for the record; **out of scope for Phases 1–4 above**. Each is anchor
144144
> **Note (2026-11-15) — a set's own `readable: false` row wins over that set's own View All vote (#33828, maintainer ruling on the card, letter A).** The ruling, as the card states it: "A, platform. An explicit `readable: false` field-permission row on a permission set must win over that same set's View All (`viewAllRecords`) field vote. This amends ADR-0066 D2 ⑧ as amended by ruling of record 6573563853." In the field-permission merge, a set that holds View All on an object (its own entry for the object if it has one, otherwise its `'*'` wildcard) and does not hold Modify All on it casts **no read vote on a field its own `fields` row declares `readable: false`**. That row is the set's whole say on the field, so a set can grant View All on an object and still hide a field of it from its holders. "Explicit" is literal: an omitted `readable` parses to `true` and is never a mask. The rest of the 2026-11-02 note stands. **Another** set's View All or Modify All on the object still makes the field readable (and, under Modify All, editable) for a caller who holds both sets, which is the platform-admin case ruling 6573563853 fixed. The same set's View All still votes on every field it does not mask itself. View All never granted an edit, so an edit lock beside it binds as before. **Modify All is unchanged, kept until the field-axis split (#34365), by the maintainer's ruling on the card of 2026-11-16 (6909362597, letter A), verbatim 「保持现状,只给警告」 (keep the current behaviour, warn only):** a set that holds `modifyAllRecords` on the object still votes `readable: true` and `editable: true` on every field of it, its own rows included, so its own `readable: false` or edit lock binds none of its holders. This note replaces, **for View All only**, the 2026-11-02 note's sentence "a set can no longer withhold a field from its own View All / Modify All holders"; for Modify All that sentence still holds, and a field is withheld from a Modify All set's holders by granting the object without that bit. One function answers the per-field vote, `superuserFieldVote` (`packages/core/src/security/effective-object-permissions.ts`), asked with the field's name by both field merges, `getFieldPermissions` and the row-blind `/auth/me/permissions` merge (`buildEffectiveFieldPermissions`), so every reader of the merge answers the same. The lint rule `security-superuser-field-mask-inert` reports only a row its own set's Modify All unbinds; a `readable: false` beside the set's own View All is no longer reported. Taking a field away from a caller whom another set serves it to remains the job of the muting/deny layer ⑦ still owes.
145145

146146
> **Note (2026-11-24) — a set may carry `viewAllFields`, a read-only vote on every field of an object ([#36050](https://github.com/objectstack-ai/objectstack/issues/36050), step 2 of the field-axis split [#34365](https://github.com/objectstack-ai/objectstack/issues/34365), ruling of record 6912661484; built by [#36085](https://github.com/objectstack-ai/objectstack/pull/36085)).** `ObjectPermissionSchema` accepts an optional `viewAllFields` beside `viewAllRecords` and `modifyAllRecords`. A set that carries it on an object (its own entry for the object if it has one, otherwise its `'*'` wildcard) casts a read vote, never an edit vote, on every field of that object. The 2026-11-15 rule holds for it: the set's own `readable: false` row on a field beats the set's own bit. The vote is cast inside the one function that calls `holdsViewAllFields` (`packages/core/src/security/effective-object-permissions.ts#holdsViewAllFields`), and both field merges call that function, so both field merges answer the same. The bit grants nothing else: no access to the object, no record (it is not part of `holdsSuperuserBypass`), no admin posture. `admin_full_access` and `organization_admin` carry it on `'*'`. That changes no answer today, because their View All and Modify All already cast the same vote. The `organization_admin` variant granted without the record bypass does not carry it. On `'*'` the bit also votes on the fields of `private`-posture objects while opening none of them; narrowing that reach would be a maintainer ruling. The notes of 2026-11-02 and 2026-11-15 stand: View All and Modify All still vote on fields. The end state of the split, where they stop voting on fields, is [#36055](https://github.com/objectstack-ai/objectstack/issues/36055) and is not built.
147+
148+
> **Note (2026-11-28) — the end state: View All and Modify All cast no field vote ([#36055](https://github.com/objectstack-ai/objectstack/issues/36055), step 3 of the field-axis split [#34365](https://github.com/objectstack-ai/objectstack/issues/34365), ruling of record 6912661484, letter A; built by [#37371](https://github.com/objectstack-ai/objectstack/pull/37371), protocol 19).** The notes of 2026-11-02, 2026-11-15 and 2026-11-24 above describe the vote before this step, and each is superseded where it has View All or Modify All vote on a field. From protocol 19 a set's `viewAllRecords` or `modifyAllRecords` on an object widens the records the set reaches and casts no vote in either field merge. The one object-wide field vote is `viewAllFields`: it votes `readable: true` on every field of the object and never `editable: true`, and a set's own explicit `readable: false` row on a field beats that set's own bit (the 2026-11-15 rule, now carried by `viewAllFields` alone). One function casts it, `packages/core/src/security/effective-object-permissions.ts#viewAllFieldsReadVote`, which replaced `superuserFieldVote`; both field merges ask it, `getFieldPermissions` and the row-blind `/auth/me/permissions` merge (`packages/core/src/security/effective-object-permissions.ts#buildEffectiveFieldPermissions`). **What follows.** A set's own field rows now bind beside its own Modify All, as they already did beside its own View All: its `readable: false` row hides the field from its holders, and a row of its own without `editable: true` locks it. That replaces the 2026-11-15 note's passage "Modify All is unchanged". Another set's View All or Modify All re-opens no field a set hides or locks. Another set's `viewAllFields` still makes a hidden field readable, and another set's field row with `editable: true` still grants the edit, because field grants still union without deny. No object-wide bit casts an edit vote any more, so the built-in admin sets read every field through `viewAllFields` on `'*'` and no longer edit a field another held set locks. **Source is converted, stored sets are not.** The ADR-0087 conversion `permission-view-all-fields-beside-record-bypass` writes `viewAllFields: true` beside either bit in a source migrated with `os migrate meta --from 18`, and nowhere else. It is off the authoring load path, and it is refused by id at the artifact door (`packages/metadata-core/src/artifact-forward-conversion.ts#DEFAULT_FLIPS_NOT_REPLAYED_HERE`) and at every stored-row seam (`packages/spec/src/conversions/stored.ts#STORED_ROWS_NOT_REWRITTEN`). So a permission set stored in `sys_metadata` is read with the protocol 19 meaning and is never rewritten (ruling of record 7177446075, letter A); where its holders should still read every field, the fix is to add `viewAllFields: true` to the entry. The conversion does not keep Modify All's edit vote, and no bit restores it. The error direction is fewer fields read or edited, never a field opened. The lint rule `security-superuser-field-mask-inert` is retired, and `security-cross-set-field-reopen` reports the `viewAllFields` re-open only. The upgrade guidance is the migration entry `permission-view-all-modify-all-cast-no-field-vote`.
147149
- **⑨ Authoring-time validation for capability references** *(recorded 2026-07 pre-launch architecture assessment)*. `systemPermissions` / `requiredPermissions` are free strings today; a typo (`mange_users`) fails closed at runtime — the safe direction — but is undiscoverable: nothing reports that the referenced capability exists nowhere. When D1 lands the `sys_permission` registry, add the authoring/publish-gate lint alongside it: referencing an unregistered capability warns at author time (consistent with ADR-0049 honesty and the contract-first Prime Directive — reject at the producer, don't tolerate at the consumer). **Landed (2026-07):** `validateCapabilityReferences` in `@objectstack/lint` warns (never errors — cross-package capabilities and the fail-closed runtime make a hard gate wrong) when a `requiredPermissions` reference resolves against neither the built-in set (`@objectstack/spec` `PLATFORM_CAPABILITY_NAMES`), nor a capability the stack grants via a permission set's `systemPermissions`, nor a `sys_capability` seed row. Wired into `os validate` and `os lint`. `systemPermissions` (the declaration side) is deliberately not flagged.
148150

149151
> **Note (2026-10-14) — ⑨'s seed-row source is gone.** With `sys_capability` retired by #15204

‎docs/adr/0067-commit-history-and-rollback-for-ai-authoring.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ All metadata writes in a turn execute inside **one `engine.transaction()`**; any
8484
- `rollbackToPackageCommit(commitId)` — revert the package's HEAD back through every commit after the target, as one transaction. This is the "一层一层回退" the founder described — **commit-granular, not per-artifact** (§Resolved-1). *(Amended 2026-11-14: not one transaction; one `revertCommit` per commit, each step's failures collected — see the Amendment of that date at the end.)*
8585
- Revert restores **metadata** deterministically. Its effect on **data** is governed by §5.
8686

87+
**Note (2026-11-28, #37245; from card #37086, PR #37366, which carried PR #37422).** One kind of item does not revert on its own. The 2026-11-14 Amendment says a revert runs per item, and that stands for every item but a `form`. `revertCommit` walks a commit's plan newest first, with every `form` item after every `view` row the commit edited (`packages/metadata-protocol/src/protocol-package-commits.ts#revertWalkOrder`), and a `form` item is taken back only once each of those rows stands again as it stood before the commit. While one of them is in `failed[]`, the `form` item is put in `failed[]` too, nothing is written for it, and the form stays as published (`packages/metadata-protocol/src/protocol-package-commits.ts#editedViewsNotPutBack`). The scope is the commit, because a plan does not record which form a row carried. The reason is [ADR-0159](./0159-forms-are-their-own-metadata-type-public-forms-are-form-items-view-is-lists-only.md) D5: a `form` publish removes or re-saves the old-shape `view` row that carried the form and records it as an edited row of the same commit, so an undo that took the form back without that row would leave the address with neither. Pinned in `packages/rest/src/public-form-two-type-withdrawal.test.ts` ("a commit revert that cannot put back … its `form` publish edited keeps the form as published and lists it in failed[]").
88+
8789
### D4 — The confirm gate, relocated
8890

8991
ADR-0045 gated *publish* (a human confirms before anything visible changes). This ADR relocates the gate to the only place revert can't save you:

‎docs/adr/0146-studio-designs-setup-administers-one-editor-per-item-paired-customize-package.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,16 @@ touched in two places, and the rest of it stands. **The amendment declares; the
338338
same day; the same record). Datasources were Setup's already; Studio's menu is to stop drawing a row for them
339339
(ADR-0084).
340340

341+
> **Note (2026-11-28, [#37245](https://github.com/objectstack-ai/objectstack/issues/37245), from
342+
> [#37238](https://github.com/objectstack-ai/objectstack/issues/37238)).** The amendment above reads "All 30 types" as
343+
> every registered type, and counts 32 at one commit. That number is a reading of that commit, and this decision keeps
344+
> no count: the registry has gained types since (`ai_context`, then `form` and `knowledge_source`) and will gain more.
345+
> "Every registered type" is each entry of
346+
> `packages/spec/src/kernel/metadata-plugin.zod.ts#DEFAULT_METADATA_TYPE_REGISTRY`, however many there are.
347+
> [ADR-0084](./0084-application-builder-information-architecture.md)'s type-to-group table lists them by group, and
348+
> the dated notes under that table say at which commit each reading was taken and which registered type has no row
349+
> yet. This note states no new count.
350+
341351
> **Note (2026-11-24, epic [#36359](https://github.com/objectstack-ai/objectstack/issues/36359)).** D1 and the amendment above
342352
> speak of Studio. The running app is an editing surface too, for a workspace administrator. The maintainer's words
343353
> on the epic (2026-11-22), quoted in part: 「我同意先做页面上的「编辑」」 · 「按这个改,重画」 · 「而且不需要 studio

0 commit comments

Comments
 (0)