Repository navigation
fix(metadata-protocol)!: an unmanaged rename refuses a stray-object package and a declared namespace its object names do not carry - #37065
Conversation
…a declared namespace would double-prefix A namespace-less package is refused when two or more of its object names share a first segment other than the derived namespace, a stray object beside them or not; a declared-namespace package is refused for every object its own prefix rule refuses. A single foreign-prefixed object keeps the ADR-0048 section 3.5 rename, pinned. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J8VVAjMiYmA3shv2bCSnaS
…d a declared namespace Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J8VVAjMiYmA3shv2bCSnaS
📓 Docs Drift Check3 anchor(s) derived from 1 changed package(s); no hand-written page names any of them, so this run has nothing to list — not a clean bill of health. This check sees only pages that NAME a derived anchor: one that documents this change in prose, or enumerates it in an authoring dialect, names none and stays invisible to it on every run. What this run could not see
Coarse fallback — 10 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 9c597e68d60ea6ac097773342895121d17d92f75 && git checkout 9c597e68d60ea6ac097773342895121d17d92f75
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin a386a1d883d0a0f43535ee248122593278c7cc3a c4494a60c2a194d7b4e872b39482ff00a9310b51 && git checkout -B drift-repro a386a1d883d0a0f43535ee248122593278c7cc3a && git merge --no-ff c4494a60c2a194d7b4e872b39482ff00a9310b51
node scripts/docs-audit/affected-docs.mjs --json a386a1d883d0a0f43535ee248122593278c7cc3a |
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J8VVAjMiYmA3shv2bCSnaS
|
repo:objectstack#2 · huangyiirene · session_01J8VVAkBhKxchpbbRXtA3Mf L1 review · REWORK (two items, neither moves the code)Head-sha: Clean at this head. The code holds as far as L1 reads it.
Asked:
The body edit in item 1 goes through the relay's |
|
repo:objectstack#2 · huangyiirene · session_01J8VVAkBhKxchpbbRXtA3Mf L1 review · delta read · one body line left (REWORK round 2, body only)Head-sha: Closed from 7153573004:
Left: the
Body only, through the relay's |
|
repo:objectstack#2 · huangyiirene · session_01J8VVAkBhKxchpbbRXtA3Mf 席位核对ACCEPT — PR #37065 at Head-sha:
|
|
repo:objectstack#2 · huangyiirene · session_01J8VVAjMiYmA3shv2bCSnaS Contract-review-claim: session_01J8VVAjMiYmA3shv2bCSnaS · head c171abb · 2026-11-25T06:06Z |
|
repo:objectstack#2 · huangyiirene · session_01J8VVAjMiYmA3shv2bCSnaS Contract reviewServed-tier: ① Derived judgmentsInputs read: card #36166 body and all 8 comments, PR #37065 body and file list (3 files), the net diff against Accept-set changes the diff implies, on the rename path only (
② Semver level
③ Boundary flags
④ Design judgmentpackages/metadata-protocol/src/package-unmanaged-install.ts
packages/metadata-protocol/src/package-unmanaged-install.test.ts
No must-fix. S1 and S2 are should-fix and each owes a delta review of its fix. Implemented-by: VERDICT: PASS |
…ects too; the install-modes page teaches the new refusals Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J8VVAjMiYmA3shv2bCSnaS
|
repo:objectstack#2 · huangyiirene · session_01J8VVAjMiYmA3shv2bCSnaS Contract-review-claim: session_01J8VVAjMiYmA3shv2bCSnaS · head c4494a6 · 2026-11-25T07:42Z |
|
repo:objectstack#2 · huangyiirene · session_01J8VVAjMiYmA3shv2bCSnaS Contract reviewServed-tier: Delta review of record 7154567814 (on c171abb). Read: card #36166 with every comment including dev report 7156146100, the PR body, the diff c171abb..c4494a6 (one commit, four files), the net diff against ① Derived judgmentsNo accept-set or public-surface change in the delta. The planner hunk changes only the last sentence of the derived refusal's ② Semver levelUnchanged and still the ruled copy: ③ Boundary flags
④ Design judgmentS1: closed
No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
repo:objectstack#2 · huangyiirene · session_01J8VVAkBhKxchpbbRXtA3Mf 席位核对ACCEPT — PR #37065 at Head-sha:
|
|
repo:objectstack#2 · huangyiirene · session_01J8VVAm8Y73VGNq3PkTe3dc 维护者速读
席位意见:ACCEPT(L1-a 7156247849),落地。 席位核对ACCEPT · repo:objectstack#2 · head
|
|
repo:objectstack#2 · huangyiirene · session_01J8VVAm8Y73VGNq3PkTe3dc 维护者速读
Correction to the seat record 7157071183: its "需要你做的:无" was wrong. Approval requested on head |
…ut of step with main (week of 2026-11-25) (objectstack-ai#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 objectstack-ai#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 objectstack-ai#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 objectstack-ai#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 objectstack-ai#37621 already landed it (record 7198334624). | | 7178404228, end-state half, with 7201928772 | ADR-0066 D2 ⑧ | **Landed.** Its prerequisite, PR objectstack-ai#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 objectstack-ai#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 objectstack-ai#37970, and not only as it was after PR objectstack-ai#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 objectstack-ai#37219, objectstack-ai#37240, objectstack-ai#37268, objectstack-ai#37354, objectstack-ai#37366 (which carried objectstack-ai#37422), objectstack-ai#37371, objectstack-ai#37389, objectstack-ai#37423, objectstack-ai#37449, objectstack-ai#37640, objectstack-ai#37720, objectstack-ai#37818, objectstack-ai#37931, objectstack-ai#37948, objectstack-ai#37970, objectstack-ai#37065, objectstack-ai#36138 and objectstack-ai#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 objectstack-ai#37422 was merged into PR objectstack-ai#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 objectstack-ai#37423. The same rule has since gained a second refusal, from PR objectstack-ai#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 objectstack-ai#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 objectstack-ai#37720". `main` has moved once more: since PR objectstack-ai#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 objectstack-ai#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>
Requested by Irene · project thread
Part of #36166
Clause-②: no (narrowing)
Metadata-protocol: none
Ruling-ref: #36166 comment 7146137652
Skills-docs: none — no skill under
skills/**teaches the unmanaged install'stargetNamespacerename (git grepofskills/fortargetNamespace,rename-on-installandunmanaged: zero hits at a73edb3; control:namespacehitsskills/objectstack-api/SKILL.mdsix times)Seat: repo:objectstack#2 · huangyiirene · session_01J8VVAjMiYmA3shv2bCSnaS
维护者速读
What changes
planUnmanagedImport(packages/metadata-protocol/src/package-unmanaged-install.ts), on the rename path only (atargetNamespacethat differs from the source namespace). Each of the card's three cases now has an answer, and a test pins each one:demoasset_assetalone): stays as the ADR-0048 §3.5 rename. One name carries no signal; the planner docblock already says a single name cannot tell a two-word short name from a foreign prefix. The pin keeps its assertion. Its title now states the decision:DECIDED: a single-object package keeps the ADR rename, foreign prefix or not.demoasset_asset,demoasset_site,site): refused.derivedNamespaceContradictionnow groups object names by first segment. When no object carries the derived prefix, every group of two or more is refused at its own names. The stray is in no entry and does not lift the refusal. Before this, theevery(...)early return let one stray turn the signal off.namespacethe object names do not carry (namespace: 'other',demoasset_*): refused. The newdeclaredNamespaceContradictionasks the one prefix judge,validateObjectNamespacePrefix(@objectstack/spec/kernel), the same judgedefineStack, the publish pre-flight and the save door ask. Each object it refuses is named.Both refusals use the existing
unmanagedInstallRenameRefusalenvelope (400 INVALID_REQUEST,details.targetNamespace,details.refusedwith one object entry each, itsreasonnaming the namespace in play and the prefix). They are raised before the base exists. ADR-0129 D2 and ADR-0048 §3.5 ids stay on the docblocks.Mechanism assumptions, as measured (scratch probe at a73edb3, deleted afterwards):
importUnmanagedPackagewith notargetNamespaceanswersNAMESPACE_PREFIX/422. But the same probe shows the save door also refuses the honest namespace-lesspurchase_orderwithout a rename (NAMESPACE_PREFIX/422), a name the ADR rename turns into an install that works. So "the two doors agree" does not tell the cases apart. The fact that does is the judge's own skip: a package with nonamespaceis the legacy shape whose objects are not judged, while a declared one is held to its prefix at every authoring door. Case 3 is refused on that basis, and a test pins the save-door agreement as a CONTROL.purchase_order+asset_ownershare nothing,asset+sitehave no segment, and one object carrying the derived prefix still clears it.purchase_order+purchase_item+vendoris now refused (purchase_order,purchase_itemnamed). Withoutvendorit was already refused by fix(metadata-protocol)!: an unmanaged rename refuses a package without namespace whose object names all share a prefix other than the derived one #36138.Contract-review fix round (record 7154567814 on this PR): the refusal for a group that is not the whole package now ends by asking for every other object to be named under the declared namespace too, since declaring the group's prefix alone would be refused on the next attempt (S2); a whole-package group keeps #36138's sentence.
content/docs/deployment/install-modes.mdxnow teaches the new answers: the in-front rename holds for a package that declares nonamespace, the group row no longer needs every object name, and a new row covers a declarednamespacethe object names do not carry (S1). The changeset names the bare-name case and its closing remedy is "declarenamespaceand name every object under it" (S1, S2). A test with two refused groups in one body pins the refused names in manifest order (N4), and the docblock says the stray is refused by the save door too (N1).Fixture triage, same file:
refuses an object whose copy name another object's copy claimsbuilt its collision from a bareleadunder a declaredcrm, which case 3 now refuses first. Its fixture dropsnamespace(socrmis derived fromcom.example.crm), and it still pins the collision branch, which namespace-less bodies still reach. The new declared-namespace test also pins a bare name under a declared namespace as refused.ADR note owed
Carrier: #36166 itself. It stays open under
Part ofuntil the ADR-0048 §3.5 dated note (and the case-1 decision) lands as an add-only governed docs/adr PR, which carries the closing line for #36166. (The earlier "ADR revisions" rolling card #36086 closed on 2026-11-24.)Tests
package-unmanaged-install.test.ts: four new refusal tests: the stray-object plan and the verb with zero writes; the repeated two-word short name with and without a stray, and the declared control; the declared-namespace plan, partial and bare cases, and the verb with zero writes (writes,packages,sys_metadataempty). One new CONTROL (the save door agrees without a rename). One CONTROL retitledDECIDED. The declared CONTROL keeps itsnamespace: 'demoasset'half and loses theotherhalf, now a refusal. Refusal tests assertstatus+codeand thedetails.refusednames. The only prose they check is the namespace named inreason.Test runs (first round at tree 710745f; the fix-round head c4494a6 re-ran below)
At c4494a6, after building the metadata-protocol closure under the verify lock: target file
Tests 113 passed (113);pnpm --filter @objectstack/metadata-protocol testTest Files 370 passed | 9 skipped (379),Tests 23420 passed | 45 skipped (23465);typecheck(tsc --noEmit) exit 0;VERDICT command-exit 0. The S2 change alters only the remedy sentence, which no test asserts (refusal tests assert status, code and refused names), so no ablation was owed for it.pnpm --filter @objectstack/metadata-protocol test(under the verify lock):Test Files 369 passed | 9 skipped (378),Tests 23396 passed | 45 skipped (23441);pnpm --filter @objectstack/metadata-protocol typecheck:tsc --noEmitexit 0; lockVERDICT command-exit 0.Consumer sweep (the rename's callers with real fixtures):
pnpm --filter @objectstack/objectql exec vitest run --maxWorkers=2 src/protocol-unmanaged-import-rename-battery.test.ts src/protocol-package-lifecycle.test.ts, after a rebuild of objectql's closure that includesmetadata-protocol(dist/index.jscarriesdeclaredNamespaceContradiction):Tests 22 passed (22),VERDICT command-exit 0. The cloud-connection install-local tests stub the importer. The dogfood and runtime callers useduplicatePackage, which is not touched.Ablations (committed first; `scripts/ablation-replace.mjs`, restore = HEAD blob, `git diff HEAD` empty)
Tests 3 failed | 109 passed (112), the stray-object plan, the stray-object verb and the repeated short name with a stray. Restored: blob b6525739 == HEAD,git diff HEADempty.: declaredNamespaceContradiction(sourcePackageId, declaredNamespace, namespace, objectNames);replaced with: undefined;. The mutation landed (blob b6525739 to ce8284d8). Red:Tests 3 failed | 109 passed (112), the three declared-namespace refusal tests. Restored: blob == HEAD,git diff HEADempty.Tests 112 passed (112).Acceptance notes
content/docs/deployment/install-modes.mdxis the one hand-written page that teaches this rename; it is updated in this PR (contract-review S1). No skill teaches it (seeSkills-docs:).details.derivedNamespace/details.commonPrefixkeys. Eachreasonnames them, as the fix(metadata-protocol)!: an unmanaged rename refuses a package without namespace whose object names all share a prefix other than the derived one #36138 envelope does. Adding keys would change the envelope's shape, which this card does not own.Verification
Readings at the head c4494a6
dispatch-gates.mjs --commands, 95 families;--ranwith exit codes: 95 derived, 91 run, 4 NOT MEASURED, 0 unrun): all 91 exit 0, includingcheck:doc-authoring,check-changeset-no-major --base origin/main,check-adr-0087-registration --base origin/main,check-empty-changeset --base origin/main,check:nul-bytes, the docs-section and ADR-link families the page edit adds, andcheck:liveness. NOT MEASURED (exit 3, prerequisite missing in this checkout; CI builds them):check:dual-build-cjs-loads,check:lean-entry-closure,check:skill-examples(client SDK not built) andcheck-plugin-teardown-shape --self-test(needs an unshallow clone).overlap-check: VERDICT clean exit 0 against origin/main a386a1d.(narrowing)arm):git rev-parse HEAD= c4494a6 before and after, clean tree. Dogfood closure built under the verify lock (VERDICT command-exit 0), thenpnpm --filter @objectstack/dogfood testwith no shard and no path:Test Files 487 passed | 3 skipped (490),Tests 4128 passed | 68 skipped (4196),VERDICT command-exit 0(held 2175s), no failures.Tests 4128 passed | 68 skipped (4196); 1188c47Tests 4127 passed | 68 skipped (4195).sys_*object names form a group and are refused with "declarenamespace", while the declared path's judge exemptssys_*. Left as it is; only the stray case is new in this PR.Read first: (1)
declaredNamespaceContradiction: is the prefix judge the right predicate for refusing a declared-namespace object? (2)derivedNamespaceContradiction's grouping loop: does any group of two or more refuse an honest package you care about? (3) The retitledDECIDEDsingle-object pin.Two-minute verification:
pnpm --filter @objectstack/metadata-protocol exec vitest run --maxWorkers=2 src/package-unmanaged-install.test.tsshowsTests 112 passed (112).Session: https://claude.ai/code/session_01J8VVAjMiYmA3shv2bCSnaS
🤖 Generated with Claude Code