Skip to content

fix(rest,runtime): the draft and layered _env reads of a name only disabled packages hold answer their own 404 - #38633

Merged
objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/issue-34261-env-draft-layered-404
Nov 29, 2026
Merged

objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/issue-34261-env-draft-layered-404

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Steve · project thread

Fixes #34261

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:搭建者在环境地址下打开某个名字的草稿、草稿预览或分层视图,而这个名字只由已停用的包持有时,现在看到“不存在”,不再看到点名那个停用包的冲突提示;普通读取早已如此。
  • 为什么做:同一地址换个开关答案就不同,违背维护者“停用就该全部消失”的原则;本卡把剩下的三种读法补齐。
  • 出错会怎样:最坏情况是本该显示的草稿被答成“不存在”,或停用包重新出现在冲突提示里;不会泄露其他包的草稿(有专门测试守住),撤回这个改动即可恢复原样。
  • 要你做什么:无。

What changes

GET /meta/:type/_env/:name answered 404 for a name only disabled packages hold since #33385. For a caller mayReadPendingDrafts admits, three spellings of that read still answered 409 RESOURCE_CONFLICT naming the disabled package. Each now answers its bare by-name read's 404 and names no package, on RestServer and the runtime dispatcher alike:

read at _env before after
?state=draft (any case) 409 RESOURCE_CONFLICT naming the disabled holder 404 NO_DRAFT (the by-name draft read's answer, per the ADR-0150 2026-11-26 note)
?preview=draft 409 404 RESOURCE_NOT_FOUND
?layers=true 409 404 RESOURCE_NOT_FOUND

Mechanism (measured, and it changes the suggested route). The marked refusal (DISABLED_HOLDERS_ONLY_REFUSAL) used to be swallowed only for the plain read. If the three arms were simply judged by the plain read too, a leak opens. In the test with a draft-reading engine double, an enabled package C held a stored draft of the name and the registry did not hold it. The bare ?state=draft and ?preview=draft served C's draft to an admitted builder while the plain read withheld the name. So _env would have served C's draft. That ablation reds the new guard pin on all 20 types, on both transports. So admitEnvironmentAddress now judges the read the caller is answered:

  • the plain read must withhold the name, as before;
  • for an admitted draft switch, that same draft read (getMetaItem with state: 'draft' / previewDrafts: true, the arguments the item read sends) must withhold it as well. Its 404 NO_DRAFT counts as withheld. If it serves an item or throws anything else, the refusal stands;
  • the layered view (?layers=, when the protocol has a layered read) is judged by the plain read. Its chain (createMetaLayeredAnswer step 1b) withholds every layer whenever the plain read withholds a disabled holder's item. The pins show this with C's draft and with C's unhydrated active row.

The judge reads no draft switch of its own. It receives the switches the call site already declared with their mayReadPendingDrafts admission (isDraftRead, previewDrafts in the runtime, answeredRead on REST). So the [#20338] draft-switch census in meta-draft-read-builder-gate.test.ts still counts exactly its ledgered sites.

Landing: packages/rest/src/meta-qualified-item-route.ts and packages/runtime/src/domains/meta.ts, plus their tests and the changeset. One more file, outside the claimed surface: scripts/engine-double-contract.pinned.json gains two add-only rows. It is written by node scripts/check-engine-double-contract.mjs --write, because the two test files' findOne doubles now route through assertEngineFindOnePredicate and the gate's ledger records that pinned coverage. The producer of the mark, packages/metadata-protocol/src/protocol-exact-qualifier.ts, is untouched.

ADR text this makes stale (outside this PR's surface, docs/adr/**). In ADR-0150's 2026-11-26 note, this sentence: "Three reads at _env still answer 409 at this head (?state=draft, ?preview=draft, ?layers=true), and card #34261 carries their move to 404." Proposed replacement: "At _env, ?state=draft answers 404 NO_DRAFT and ?preview=draft and ?layers=true answer 404, each judged by the read the caller is answered; an enabled package's stored draft that the plain read does not see keeps the 409 for the draft reads (#34261)."

Tests

  • packages/rest/src/meta-qualified-item-route.test.ts and packages/runtime/src/domains/meta-qualified-item-read.test.ts: fix(metadata-protocol,rest,runtime)!: a name only disabled packages hold answers 404 at _env, and its package-less customization is withheld (ADR-0150 D3, D4) #33995's CONTROL ("an admitted draft switch or the layered view refuses 409, as on main") is replaced, per type over PACKAGE_SCOPED_READ_TYPES (20 types), by two pins:
    • the flip: _env with state=draft / DRAFT answers [404, NO_DRAFT], and preview=draft / layers=true answer [404, RESOURCE_NOT_FOUND]. This holds with no row and with a package-less draft (the holder's customization) stored, and the answer never names the holder or the draft. A caller not admitted to drafts still gets [404, RESOURCE_NOT_FOUND]. CONTROL: once re-enabled, each of the four refuses 409 naming the holder.
    • the guard: an enabled package's stored draft. The bare ?state=draft, ?preview=draft and ?package=C&state=draft serve it (named, so the 409 leg cannot pass vacuously). _env draft reads answer [409, RESOURCE_CONFLICT] and never that draft. ?layers=true answers 404 at the bare read and at _env. With C's unhydrated active row, _env?layers=true follows the plain read: 409 on the four row-served types, else 404. CONTROL: an enabled registry holder's own draft is still served at the bare read, and _env refuses it naming that holder.
  • The engine doubles' findOne now reads the stored rows, behind a per-pin opt-in (findOneReadsStoredRows, reset in beforeEach). The old CONTROL's draft row was never readable through the old findOne → null.

Acceptance notes

Verification

All readings are on objectstack-ai/objectstack. The final head is e24d418ae, and the base is 7213177e.

Package suites (final head e24d418)
  • pnpm --filter @objectstack/rest test: Test Files 441 passed (441), Tests 9073 passed, 351 skipped (9424)
  • pnpm --filter @objectstack/runtime test: Test Files 656 passed (656), Tests 12521 passed, 25 skipped (12546)
  • pnpm --filter @objectstack/rest --filter @objectstack/runtime typecheck: exit 0, and check:test-typecheck: OK on both
Ablations (each restored with git checkout HEAD)
  • Draft-arm judge removed (the plain-read-only route), final head: REST 20 failed of 437, runtime 20 failed of 443. All failures are the stored-draft guard pin, one per type, and the assertion bodies show the gamma draft served at _env.
  • Source restored to base 7213177e (test files kept): REST 40 failed of 437, runtime 40 failed of 443. Those are the flip pin (409 where 404 is pinned) and the guard pin's layered leg, 20 types each.
Local gate subset (dispatch-gates --commands, 83 families, final head)
  • 82 exit 0. check:engine-double-contract was red at the first head, because the findOne doubles did not route through the predicate. It is fixed in this PR and exits 0.
  • NOT MEASURED: node scripts/check-plugin-teardown-shape.mjs --self-test exits 3. Its pinned positive-control commit 621a4876 cannot be reached from this clone even after git fetch --deepen=1500. CI runs it.
  • dispatch-gates --ran: 83 derived, 83 run, 0 UNRUN.
  • overlap-check.mjs: VERDICT clean, merging cleanly against origin/main and against feat(objectql): a record in a closed state, and its lines, are closed to change (closedStates, ADR-0162) — trunk #38497, which shares the pinned ledger file.

Two-minute check: pnpm --filter @objectstack/rest exec vitest run --maxWorkers=2 src/meta-qualified-item-route.test.ts -t "answers its own 404" should show 20 tests passing. Then revert the withholds(switches) line in meta-qualified-item-route.ts: the "stored draft" pins should go red, with the gamma draft served in the assertion body.

Read first: packages/rest/src/meta-qualified-item-route.ts admitEnvironmentAddress (the two-step judge), packages/runtime/src/domains/meta.ts (the same judge and its call site's layeredView choice), then the guard pin in either test file.


Generated by Claude Code

🤖 Generated with Claude Code

https://claude.ai/code/session_01ADHkmRar3Kkg6SpwVgaaVE

…sabled packages hold answer their own 404 (#34261)

WIP: tests being measured.

Claude-Session: https://claude.ai/code/session_01ADHkmRar3Kkg6SpwVgaaVE
Co-authored-by: Claude <noreply@anthropic.com>
…s and re-derives none (#34261)

Claude-Session: https://claude.ai/code/session_01ADHkmRar3Kkg6SpwVgaaVE
Co-authored-by: Claude <noreply@anthropic.com>
…rtEngineFindOnePredicate (#34261)

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

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 2 package(s): @objectstack/rest, @objectstack/runtime, touching 15 documentable anchor(s).

8 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/concepts/metadata-lifecycle.mdx (via getMetaItem (symbol, a method of interface QualifiedAddressProtocol), getMetaItemLayered (symbol, a field of interface QualifiedAddressProtocol))
  • content/docs/data-modeling/analytics.mdx (via previewDrafts (symbol, a field of interface EnvironmentReadSwitches))
  • content/docs/data-modeling/drivers.mdx (via getMetaItem (symbol, a method of interface QualifiedAddressProtocol))
  • content/docs/deployment/environment-variables.mdx (via getMetaItem (symbol, a method of interface QualifiedAddressProtocol), /app/:appId/bundle (route, bridged from symbol getMetaItem — its route source's handler names it))
  • content/docs/frontend/data-objectstack.mdx (via /app/:appId/bundle (route, bridged from symbol getMetaItem — its route source's handler names it))
  • content/docs/kernel/services-checklist.mdx (via getMetaItem (symbol, a method of interface QualifiedAddressProtocol))
  • content/docs/permissions/system-context.mdx (via handleMetadataRequest (symbol, a top-level function))
  • content/docs/protocol/objectql/state-machine.mdx (via /object/:name/state/:field (route, bridged from symbol getMetaItem — its route source's handler names it))

⛔ 3 release-owned page(s) also name something this change touched. These are read-only:

  • content/docs/releases/v17/17-0.mdx (via getLegalNextStates (sdk, the bare tail of client method meta.getLegalNextStates, bound to GET /api/v1/meta/object/:name/state/:field; the bare tail of client method meta.getLegalNextStates, bound to GET /meta/object/:name/state/:field), meta.getLegalNextStates (sdk, the route ledger binds it to GET /api/v1/meta/object/:name/state/:field, selected by route anchor /object/:name/state/:field; the route ledger binds it to GET /meta/object/:name/state/:field, selected by route anchor /object/:name/state/:field))
  • content/docs/releases/v17/17-2.mdx (via getLegalNextStates (sdk, the bare tail of client method meta.getLegalNextStates, bound to GET /api/v1/meta/object/:name/state/:field; the bare tail of client method meta.getLegalNextStates, bound to GET /meta/object/:name/state/:field), meta.getLegalNextStates (sdk, the route ledger binds it to GET /api/v1/meta/object/:name/state/:field, selected by route anchor /object/:name/state/:field; the route ledger binds it to GET /meta/object/:name/state/:field, selected by route anchor /object/:name/state/:field))
  • content/docs/releases/v18/18-3.mdx (via /app/:appId/bundle (route, bridged from symbol getMetaItem — its route source's handler names it))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • the SDK route bridge reached 69 of 252 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 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 — 40 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 1d19acfecb2b89a995eb3baf242240859f2c9dce → packageMentionDocs.

Which tree this was computed on

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

node scripts/docs-audit/affected-docs.mjs --json 1d19acfecb2b89a995eb3baf242240859f2c9dce

⚠️ 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 1d19acfecb2b89a995eb3baf242240859f2c9dce → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmRar3Kkg6SpwVgaaVE

Final head for L1: e24d418aeaf6a988fd244f08db3803b875db9963 — CI green on this head by the newest run of each check (39 success, 16 expected skip, none failed), mergeable_state clean, as of 2026-11-29T17:11Z. Card #34261; Clause-②: no, Metadata-protocol: none; no contract face (no packages/spec/src/**, no governed path, no narrowing arm), so no L2 is owed.

Points for the reviewer:

  • Route deviation from the dispatch suggestion: the draft arms keep 409 when an ENABLED package holds a stored draft under the same name (leak guard: a 404 there would hide another package's draft from a reviewer who may read it); only the disabled-only holder case moves to 404.
  • Out-of-surface file: scripts/engine-double-contract.pinned.json, 2 add-only rows pinning the new double contract; no existing row changed.
  • Follow-up carrier: the ADR-0150 note near line 236 describing the 409 on these arms goes stale after merge; it rides the ADR revisions weekly card as a carrier: line (zone files it after merge), not this PR.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmQm8PTU4AkVU5kdwEv

L1-a, the seat's L1 thread · 2026-11-29T17:14Z · first review

席位核对

ACCEPT @ e24d418aeaf6a988fd244f08db3803b875db9963 (card #34261, zone o3-P). No L2 is owed: no packages/spec/src/**, no governed path, Clause-②: no (409 → 404 is refusal → refusal, as the card's Acceptance 2 says), Metadata-protocol: none. Not governed, +288/-98: the zone lands it.

Read at this head

  • Shape (l1-face.mjs --pr 38633, clean): draft, base main, first line Fixes #34261, no closing keyword next to another card, no content/docs/releases/ path, a changeset for both published packages (@objectstack/rest, @objectstack/runtime), no +0/-0 file, mergeable_state clean. Assigned to os-steve.
  • Fixes is right. Acceptance 1 decides each of the three reads by ADR-0150 D3 and flips fix(metadata-protocol,rest,runtime)!: a name only disabled packages hold answers 404 at _env, and its package-less customization is withheld (ADR-0150 D3, D4) #33995's CONTROL pins. The PR replaces that CONTROL with a flip pin and a guard pin per type over PACKAGE_SCOPED_READ_TYPES, on both transports. Acceptance 2 is met: the changeset's FROM → TO section.
  • The judge (admitEnvironmentAddress, the same on both transports):
  • The deviation from the suggested route is accepted, and it is the stronger answer. Judging the draft arms by the plain read alone would serve an enabled package's stored draft at _env. The ablation shows this: with the draft-arm judge removed, REST and runtime each go 20 red, one per type, with the gamma draft in the assertion body. With the base source restored and the new tests kept, each goes 40 red (the flip pin and the guard's layered leg).
  • Out-of-surface file accepted. scripts/engine-double-contract.pinned.json gains two add-only findOne rows, written by check-engine-double-contract.mjs --write, because the test doubles now route through assertEngineFindOnePredicate. No existing row changes.
  • Test evidence is real commands with output at e24d418ae: rest 441 files / 9073 tests, runtime 656 files / 12521 tests, typecheck and check:test-typecheck OK on both. 82 of the 83 derived gates exit 0. The one NOT MEASURED (check-plugin-teardown-shape --self-test, unreachable fixture commit) is green in CI.
  • Changeset, read sentence by sentence: true at this head.
  • Checks at this head (check-runs via pr-state): 39 success, 16 expected skip, 0 unexpected skip, 0 failed, 0 pending. Lint & Repo Gates and TypeScript Type Check are success.

Out of scope

Nit, not blocking

  • The changeset and the body say the three reads answered 409 "for a caller who may read pending drafts". That holds for the two draft switches. On main, ?layers= refused 409 for every caller (readsAsJudged returned false on wantsMetaItemLayers before any admission check), so the layered fix reaches more callers than the sentence says.

Landing note

Fixes #34261 closes the card at merge; nothing to remove by hand. The ADR carrier: line is owed after merge.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmRar3Kkg6SpwVgaaVE

Landing · 2026-11-29T17:15Z · head e24d418aeaf6a988fd244f08db3803b875db9963 · ACCEPT → PR #38633 comment 7259545125

Probe Reading
check-governed-merges.mjs --pr 38633 NOT governed; 386 changed lines ≤ 3000
landing-k.mjs --pr 38633 K = 3 < 15; no locale pack; no shared book moved

Checks: newest run of each check green (39 success, 16 expected skip). mergeable_state clean at landing. L1 nit (the changeset says ?layers answered 409 only for draft-admitted callers; on main it answered 409 for every caller) is accepted as a prose deviation, not a blocker. State: ready + auto-merge armed through the relay; Fixes #34261 closes the card on merge; the ADR-0150 carrier: line follows after merge.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 29, 2026 17:16
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 29, 2026
Merged via the queue into main with commit f3028c5 Nov 29, 2026
56 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-34261-env-draft-layered-404 branch November 29, 2026 17:40
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…s five records) (objectstack-ai#38774)

<!-- claude-projects-attribution: {"github_login":"os-support-ai"} -->
_Requested by **Yibo Wang** · [project
thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwBHuLciv5hYVYUu4pypDP48J)_

Part of objectstack-ai#38438

Clause-②: no
Metadata-protocol: none

This pull request carries seven of the card's nine rows. The two
ADR-0161 rows stay on the card; see "Rows not carried".

## 维护者速读

- 用户能看到什么变化:用户无感;只在五份设计记录里补了七条带日期的说明,写明主线现在实际怎么做,原有的决定文字一个字没动。
- 为什么做:属于「每周设计记录修订」滚动清单(11 月 29
日这一周);清单每一行指出一处「记录写的和主线不一致」或「记录留给某项工作回答、那项工作已经做完」,这次把代码已在主线的七行一并补齐。
- 出错会怎样:最坏是某条说明写得不准,照着设计记录干活的人会被带偏;纯文档、只增不删,可以直接撤回,不影响任何功能。
- 要你做什么:请审这七条说明并批准一次(设计记录须由你本人批)。

## What changes

Five ADR files gain seven notes dated 2026-11-30. Every diff line is an
addition: 62 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, and each says that the passage
it is read with is left as written.

Each row's "what is true now" was read against the code on `main` before
its note was written. Where a row's wording did not match the tree, the
note says what `main` does; the last column says so and the list under
the table gives the detail.

| ADR · section | Was (the record's words) | Now (what the note records)
| Source PR | Row on the card · result |
|:---|:---|:---|:---|:---|
| ADR-0084 · amendment of 2026-11-28, item (3) | "one landing for every
door is not ruled"; the command palette's package entries, an app's
design-in-Studio entry, the empty menu's entry and Setup's doors "still
open the object list" | One landing is ruled: ruling record 7247357556
on objectstack-ai#37958, the maintainer's 「OK」, quoted with its question. Every door
lands on the package's overview, `/studio/PACKAGE/overview`.
`/studio/PACKAGE/data` stays a working address for the object list. The
review-changes deep link still opens the Changes drawer over the object
list and is read as no door, by a seat reading and not by a ruling |
objectstack-ai#38501 | Card body row and 7252442785 · **written, corrected to the
tree** (two labels, the date) |
| ADR-0084 · the note of 2026-11-29 on the `form` row (near line 219) |
"The same change takes the type off the directory's hidden types and
brings its designer" | True of card objectstack-ai#37087, loose for the change: objectstack-ai#38484
brought the designer, and objectstack-ai#38619, which wrote the row, lists the type
(off the hidden types, a place in the menu) | objectstack-ai#38484, objectstack-ai#38619 |
7258423977 · **written as an added note** (the row says "Reword") |
| ADR-0037 · TL;DR item 2 and the "What already exists" table | "the
streaming build tree (`data-build-progress` parts)", and a table row
that marks "`data-build-progress` stream parts" shipped | The
build-progress stream frame is retired. Its reader left with the build
chat frontend, its producer with the cloud build loop, and its
declaration left `@objectstack/spec/ai`. The upgrade guidance is the
migration entry `ai-build-progress-frame-retired` | objectstack-ai#38398 (reader:
objectstack-ai#37720) | 7250363289 · **written** (one sentence beyond the row) |
| ADR-0150 · the note of 2026-11-26, bullet "Reads stay the missing
name" | "Three reads at `_env` still answer `409` at this head
(`?state=draft`, `?preview=draft`, `?layers=true`), and card objectstack-ai#34261
carries their move to `404`." | The move has landed. For a name only
disabled packages hold, each of the three answers its own `404` and
names no package, on both transports. An enabled package's stored draft
that the plain read does not see keeps the `409` for the two draft reads
| objectstack-ai#38633 | 7259890438 · **written, corrected to the tree** (codes and
callers made exact) |
| ADR-0150 · D4, the engine's flow-map row | The table keys the engine's
flow map by `(package, name)` and says nothing of the status rows read
from it | Each status row carries the `packageId` of the engine slot it
reads, so `(packageId, name)` names one row. The toggle door reads back
the row of the slot it switched, and echoes the request only where the
reading cannot name that flow | objectstack-ai#38652 | 7266385586 · **written** |
| ADR-0085 · the note of 2026-11-27 | "Neither key is in the spec yet:
`ObjectSchema` is strict and refuses both until objectstack-ai#37792 lands
`pinOverview` and objectstack-ai#37802 lands `fieldTabs`." | `pinOverview` is in the
spec, an optional boolean on `ObjectSchema`; `false` means the desktop
full record page never pins. An object extension does not carry the key.
`fieldTabs` is still refused | objectstack-ai#38679 | 7271302663 · **written**, no
`fieldTabs` line |
| ADR-0146 · the note of 2026-11-24 (near line 908) | "A `.custom`
package that is not the object's pair is not applied, and the boot log
names it." | Maintainer ruling 7268226134 on objectstack-ai#36548, item 5, arm (c),
verbatim 「保存和安装都拒绝」. A non-pair `.custom` package that writes
`fieldGroups`, `relatedLists` or `actionLayout` on an object extension
is refused at the save, the restore, the draft promotion, a package
duplicate and marketplace install. Where no door can read the installed
packages, the sentence stands | objectstack-ai#38706 | 7272564306 · **written,
corrected to the tree** (statuses; the duplicate's answer corrected in
patch round 1) |

### Rows not carried

- **ADR-0161, two rows** (Consequences, "The service keeps none of its
own"; K7 components table, "Split algorithm version"). The claim for
this pull request leaves that file out, because pull request objectstack-ai#38764 was
open on the same record when the claim was written. objectstack-ai#38764 merged at
2026-11-30T13:15:16Z, while this branch was being verified, and the
prerequisites both rows name (objectstack-ai#38307, objectstack-ai#38401, objectstack-ai#38375, objectstack-ai#38452) are
merged. Pull requests objectstack-ai#38730 and objectstack-ai#38732 (card objectstack-ai#38692) are still open and
both write ADR-0161, so that record still has other writers. By the
seat's call on the card (comment 7280598106) the two rows stay on objectstack-ai#38438
behind them, and this pull request is `Part of objectstack-ai#38438`.
- **ADR-0085, a `fieldTabs` line.** Its pull request, objectstack-ai#38742, was open
and a draft when this was opened (read at 2026-11-30, head
`59220bf331`). The card says that line follows when it merges.

Every prerequisite of the seven rows is merged on `main`: objectstack-ai#38398,
objectstack-ai#38501, objectstack-ai#38484, objectstack-ai#38619, objectstack-ai#38633, objectstack-ai#38652, objectstack-ai#38679 and objectstack-ai#38706. The newest
comment on the card when this was opened is the claim, 7279134045; a row
added after it is not in this pull request.

### Where a note differs from its row

- **ADR-0084, item (3).** The row names Setup's doors "Open in Studio"
and "Customize in Studio". The labels on `main` are "Open in App Studio"
and "Customize in App Studio", and the note uses them. The proposed text
was dated 2026-11-29; the note is dated 2026-11-30, the day it was
written into the record. The note names the three Setup doors one by one
and says of the review-changes deep link what the row says: no door, by
a seat reading, not by a ruling.
- **ADR-0084, the `form` row.** The row says "Reword". The card's rule
is that a row lands as an added dated note, so the 2026-11-29 note stays
as written and a note under it says which pull request did which half.
- **ADR-0037.** One sentence goes beyond the row: Phase 2's first
invalidation source, the `buildProgress.items` diffs, was the same
signal as the chat held it, and no code under `ui/` holds it any more.
Cut it if the note should carry the row alone. The note also names the
producer's retirement in the cloud repository and what a host does that
still streams a progress part of its own.
- **ADR-0150, the reads.** The row's proposed sentence gives `404` for
`?preview=draft` and `?layers=true`. The note gives the code the tree
answers, `404 RESOURCE_NOT_FOUND`, says that these are the answers to a
caller admitted to the switch, and that a caller who is not admitted
gets the plain read's `404`. It adds two facts from the tree: a
package-less draft is withheld while a disabled package holds the name,
and the layered view answers `404` under the leak guard.
- **ADR-0150, D4.** The note spells out the three cases where the toggle
door still echoes the request. The row's proposed sentence leaves them
out.
- **ADR-0085.** The row offers a "Built by" line in the style of an
earlier note. The note carries it and also restates what `false` does
and why an object extension does not carry the key, both from the row's
own "what is true now".
- **ADR-0146.** The row gives one code for every door. The tree answers
`VALIDATION_ERROR` with status 400 at the save, the restore and the
draft promotion, and with status 422 at marketplace install, with
nothing installed. A package duplicate saves each copied row through the
save door and lists a refused row in its own `failed[]`, with the save
door's sentence and no code, storing nothing for that row. The note says
all three, and that no error code is minted.

## Patch round 1 (head `04cc5911`)

The contract review at `947b7e64` (comment 7280965486) passed with one
should-fix: the ADR-0146 note put `VALIDATION_ERROR` / 400 on the
package duplicate. Commit `04cc5911` corrects this branch's own
2026-11-30 note to the tree (`duplicatePackage` reports the refused row
in `failed[]`) and adds one sentence from item 3 of ruling 7268226134 (a
target whose owner the door does not know is not judged by role). Only
that note moves: +9 / -3 inside it, and the branch is still +62 / -0
against `main`. Dev report: card comment 7281379369. Sections below that
name `947b7e64` record the first round.

## Tests

Docs only. No package source is touched, so no package test and no type
check is owed for the change. No tested behaviour changed, so there is
no ablation.

Checked on the committed text at `947b7e64`:

- Each phrase a note quotes from its ADR is in that file as it stands on
`main`. A script compared them. One quotation, in the ADR-0085 note,
reads as the sentence renders: the record links its two card references
and the quotation does not.
- Each verbatim maintainer quotation was compared with its record on
GitHub (7247357556 and 7268226134).
- Each path a note cites exists on the tree. The one exception is
deliberate: the ADR-0037 note names
`packages/spec/src/ai/build-progress.zod.ts` to say that the module is
gone.
- Each test title a note quotes is in the test file the note names.
- A probe on the spec source: `ObjectSchema` accepts `pinOverview:
false`, refuses `pinOverview: "no"`, and refuses `fieldTabs` as an
unrecognised key; `ObjectExtensionSchema` refuses `pinOverview` as an
unrecognised key, with its guidance.
- Upstream moved four commits while this was written. The branch merges
`main` at `f576dee5`; none of the four touches one of the five files or
a path a note cites. `overlap-check` answers `VERDICT clean exit 0`
against that `main`, and no open pull request shares a file with this
branch.

Two tests read these records from disk. Both were run on `947b7e64`
under the verify lock, after building what each needs:

-
`ui/packages/app-shell/src/views/studio-design/studioMenuPlacement.test.ts`
reads ADR-0084's type table: `Test Files 1 passed (1)`, `Tests 21 passed
(21)`.
- `packages/qa/scenarios/test/score/entry.test.ts` reads ADR-0150's D1
table: `Test Files 1 passed (1)`, `Tests 14 passed (14)`. Its first run
answered `Failed to resolve entry for package "@objectstack/types"`, a
missing build in the fresh worktree and no verdict on this change; it
passed once that package's build closure was built.

The local gate set is the `dispatch-gates --commands` derivation for
this change set, 21 commands, run on commit `947b7e64` (patch round 1
ran the same 21 on `04cc5911`, all exit 0). Each exit code was captured
before any pipe. Reconciliation: `Run reconciliation — 21 derived, 21
run, 0 NOT-MEASURED, 0 UNRUN`. The same 21 were derived and run on the
commit before the merge, with the same result.

<details><summary>ADR gates on 947b7e6 (all exit 0)</summary>

| Command | Exit | Verdict line |
|:---|:---|:---|
| `pnpm check:adr-symbol-anchors` | 0 | `check-adr-symbol-anchors: 4597
anchors across 165 records resolve`, 0 line anchors survive. On the base
commit the gate read 4570, and 4593 with this change alone; the other
four come with `main`. |
| `node scripts/check-adr-links.mjs` | 0 | `check-adr-links: 1284
relative link destination(s) under docs/adr/ resolve` |
| `node scripts/check-adr-links.mjs --self-test` | 0 | |
| `pnpm check:adr-anchors` | 0 | `check-adr-anchors: OK (135 anchored
file(s), every governing ADR still referenced` |
| `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 29015 text
file(s)`, no raw control bytes |
| `pnpm check:closed-ceremony-text` | 0 | |
| `pnpm check:pm-governed-merges` | 0 | |
| `pnpm --filter @objectstack/lint run check:doc-formula-expressions` |
0 | run after building `@objectstack/spec`, `@objectstack/formula` and
`@objectstack/lint` under the verify lock |

</details>

<details><summary>The other derived families on 947b7e6 (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-prior-rulings`, `pnpm check:refd-timer-probe`, `pnpm
check:watch-hint-literal`.

Before the last push: `node scripts/check-commit-card-trailers.mjs
--range origin/main..HEAD` exit 0, two commit messages (three after
patch round 1, also exit 0), no card relation and no model identifier in
the trailer pair.

</details>

<details><summary>A local-only reading that is red for a reason outside
this change</summary>

`pnpm check:dev-prereqs` exits 1 in this worktree: "The workspace is not
built", 105 of 110 workspace packages have no build output. It judges
the machine and not the diff, CI does not run its scan, and a fresh
worktree that builds only what a docs change needs reads this way. It is
not in the derived list.

</details>

Not run locally: the repository test project behind `test:repo`, and
every package suite. CI runs them 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/**` ships in no package.
- **Governed surface.** `docs/adr/**` lands on the maintainer's
approval. This pull request stays a draft; the seat arranges the review
at the tier this surface owes and hands it over.
- **Why "Part of".** The card says it ends when its pull request merges.
Two of its rows are not here, so merging this one must leave the card
open.
- **Seen and left alone.** These are outside the seven rows and are not
changed here.
- ADR-0037's Status line says all four phases are implemented. On this
tree the console's canvas-invalidate signal has a subscriber and no
publisher: nothing calls the bus function that emits it. It is a
candidate row for the card of this name.
- ADR-0150's D4 note of 2026-11-10 gives its own end condition, an
earlier card landing. That card ended on 2026-11-12, and the record
carries no line that says so. A possible row; not judged here.
- Comments in the chat plugin still name the retired build-progress
part, and one test fixture uses the name as an open `data-` part. Not a
record, so not a row.

## Verification

### Read first

1.
`docs/adr/0146-studio-designs-setup-administers-one-editor-per-item-paired-customize-package.md`,
the note of 2026-11-30 under the note of 2026-11-24. The highest-risk
hunk: it quotes a maintainer ruling, and it draws the line between the
doors that refuse and the places where the old sentence still stands.
Check the two statuses and the list of places with no door.
2. `docs/adr/0084-application-builder-information-architecture.md`, the
amendment of 2026-11-30 under the amendment of 2026-11-28. It quotes a
maintainer ruling and lists every door; check the list, and the sentence
on the review-changes deep link, which records a seat reading and says
so.
3.
`docs/adr/0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md`,
the first amendment note of 2026-11-30. Check the three answers, who
gets which, and the leak-guard paragraph against the tests it names.

### Two-minute check

Run `git diff --numstat origin/main...HEAD` on this branch. Expect five
rows under `docs/adr/`, each with `0` in the removed column, and 62
added lines in total (2, 4, 18, 28 and 10). Then run `pnpm
check:adr-symbol-anchors` and expect exit 0 with a line that contains
`anchors across 165 records resolve`.

---
_Generated by [Claude
Code](https://claude.ai/code/session_01WGufzhPdWmTd47Fi2bKYZS)_

<!-- signed: repo:objectstack@os-support-ai · os-support-ai ·
session_01WGufzhPdWmTd47Fi2bKYZS -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

2 participants