Skip to content

fix(metadata-protocol)!: refuse a write naming no package over the package-less row of a name only disabled packages hold - #37584

Draft
objectstack-fleet[bot] wants to merge 4 commits into
mainfrom
claude/project-thread-iu6ti1
Draft

objectstack-fleet[bot] wants to merge 4 commits into
mainfrom
claude/project-thread-iu6ti1

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread

Fixes #37499

Clause-②: no (narrowing)
Metadata-protocol: narrowed
Skills-docs: none — no page under skills/** or content/docs/** teaches a save, draft save, delete or draft discard naming no package over a name only disabled packages hold; the refusal's own sentence names the fix

维护者速读

  • 管理员在扩展包停用期间去修改、存草稿、撤草稿或删除该包某一项的定制,以前显示成功但谁也看不到这一项,现在会被拒绝并提示「先启用这个包」;重新启用后定制原样还在。
  • 这是「扩展包停用后其内容全部消失」这条规矩的写入一半,读取一半此前已经做完。
  • 如果判断有误,管理员会在不该被拒的地方看到「先启用包」的提示,数据不会丢,撤回本次改动即恢复原样。
  • 本次改动带一条架构决策记录的补注,需要有批准权限的维护者批准后才能合并。

What changes

A package-less sys_metadata row stored at a name a package holds is that package's customization (ADR-0150 D3/D4). Reads naming no package already hid it while every holder was disabled. The four writes naming no package still reached it. Measured on main 5dbcc02b for a dashboard, on both transports and both registration orders, before and after a restart:

Write naming no package main This branch
PUT /api/v1/meta/:type/:name 200, the hidden row edited 409 RESOURCE_CONFLICT, nothing written
PUT …?mode=draft 200, a draft stored that the draft read answers 404 NO_DRAFT for 409 RESOURCE_CONFLICT, nothing written
DELETE …?state=draft 200, the draft removed 409 RESOURCE_CONFLICT, nothing deleted
DELETE /api/v1/meta/:type/:name 200, the row removed; the next enable serves the package's item without its customization 409 RESOURCE_CONFLICT, nothing deleted

The refusal starts with the fix ("Enable the package that holds TYPE 'NAME' first, then send this save again"), points at GET /api/v1/packages and PATCH /api/v1/packages/:id/enable, and names no package. It stays under the 500 characters a door cuts a client message at. Once a holder is enabled again, the read naming no package serves the row byte-identical to what was stored, and the same writes answer as before.

Where the change is:

  • packages/metadata-protocol/src/protocol-save.ts: packagelessHolderRefusal, the one judgment all four doors ask, no longer returns early when a package-less row is stored. The enabled-ambiguity arm keeps that skip, so a package-less row beside two enabled holders is written as before. A new disabledHoldersCustomizationRefusal carries the enable remedy. The publish-mode save also asks the judgment when the served address is the package-less row beside a disabled package's own row.
  • packages/metadata-protocol/src/protocol-diff-delete-load.ts: the draft discard judges the holders over the active rows too when a package-less row or draft is stored, so it is refused when the customization is the active row and no draft exists.
  • docs/adr/0150-…md: a dated note under D3 records the ruling, the readings above and the controls.
  • packages/spec/src/migrations/entries/semantic/19.disabled-holder-package-less-row-bare-write-refused.ts: the ADR-0087 entry the narrowed declaration owes.

Not moved, each pinned as a control: a name no package holds (env_only_dash) saves, drafts, discards and deletes with 200 beside a disabled package; a package-less row at a name an enabled package holds; a name only disabled packages hold with no package-less row or draft stored, which keeps its 409 and its ?package= remedy; every read.

Decisions taken in this change, small enough not to need a card:

  • The refusal names no package, as the neighbouring refusal already does, and points at the packages list instead.
  • The neighbouring ?package= refusal is kept for a name with no package-less row stored. There the named write has one row to write and nothing hidden beside it.
  • The draft discard widens its judgment to the active rows only when a package-less row or draft is involved, so the cells without one do not move.

Lane measurements the card asked for first:

  • After a restart: every answer above is the same before and after, on main and on this branch.
  • doc and action (sealed against overlays): the save, the draft save and the delete answer 403 NOT_OVERRIDABLE with the holder enabled or disabled, the draft discard has no draft to remove, and nothing is written. Unchanged here.
  • _env: neither transport routes a PUT or a DELETE there, so there is no write door to close. The dispatcher also mounts no DELETE on a metadata item (405), so the delete and the discard are pinned through the REST route and the in-process deleteMetaItem.

Tests

  • packages/runtime/src/domains/meta-disabled-holder-served-stack.test.ts, in the [#32605] block, each across dispatcher and REST and both registration orders:
    • CONTROL: the environment's own item, of a name no package holds, saves, drafts, discards and deletes as before beside a disabled D
    • the package-unbound row of a name only the disabled D ships is hidden with it (four doors refused, every stored row byte-identical, re-enable serves the row, then the same writes succeed)
    • a package-unbound draft of a name only the disabled D ships … is hidden with it (draft beside the row, draft alone)
    • a package-unbound row beside the disabled holder's own row … is hidden with it (a code package and an authored package)
  • packages/objectql/src/disabled-holder-packageless-row-doors.test.ts (review#2 S3): the pin that read the old 200 now reads the refusal and the round trip.

Readings, each under the shared verify lock with the exit code read from its VERDICT line:

  • Red first, the new pins against the unfixed build: Tests 20 failed | 100 passed | 61 skipped (181) with -t 32605 (the five refusal pins in each of the four arms; the control passes on both builds).
  • Green, the whole file on this branch: Test Files 1 passed (1), Tests 181 passed (181).
  • Affected packages, whole suites: metadata-protocol Test Files 370 passed | 9 skipped (379), Tests 23440 passed | 45 skipped (23485); objectql 638 passed (638), 14428 passed (14428); rest 429 passed (429), 8852 passed | 351 skipped (9203); runtime 649 passed (649), 12081 passed | 25 skipped (12106); spec 899 passed (899), 28498 passed | 1 todo (28499).
  • typecheck of metadata-protocol, objectql, runtime and spec: exit 0 each.

The metadata-protocol, objectql, rest and runtime suites ran on f71b5f88a plus the objectql pin edit. The commit after it (7e6689619) adds the ADR note, the spec entry, the changeset and that pin, and no other source. The spec suite, the typechecks, the ablation and the dogfood battery ran on 7e6689619.

Acceptance notes

  • "Each of the four write doors refuses in cell 1 through both transports and both registration orders": the tests above. The old CONTROL pin is split as the card says: env_only_dash stays 200, d_unbound_dash flips to 409.
  • "An ablation pin": see Verification.
  • "A disable, write attempt, re-enable round trip serves the original row byte-identical": asserted by everyRowBytes in the second and fourth tests above.
  • "ADR-0150 D3 carries a dated note": the note dated 2026-11-26.
  • "docs: state in ADR-0150 and the package-disable API page that a disabled package holds no name and hides its names' environment customizations #34260 and 专题:停用包之后处处都看不到它(报表、统计、视图、我的应用、翻译、搜索、草稿读取一致) #36229 completion criteria gain 'no write lands on a hidden item'": those are card bodies, left to the seat. Nothing in this diff writes them.
  • File surface beyond the claim: the spec migration entry (the narrowed declaration requires one) and the objectql test whose pin the change flips.
  • docs/adr/** is a governed path and the note sits under the ADR's Decision heading, so this pull request needs an authorized approval. Moving the note to its own pull request is possible if the seat prefers.
  • The branch is claude/project-thread-iu6ti1, the name the platform assigned to this thread.
  • Not folded: the draft read at _env for such a name answers 409 where the other reads answer 404. It lives in other files and has its own card.

First read, by risk:

  1. packages/metadata-protocol/src/protocol-save.ts, the tail of packagelessHolderRefusal: the removed early return, and the !address.unbound guard that keeps the two-enabled-holders cell unmoved.
  2. packages/metadata-protocol/src/protocol-diff-delete-load.ts, the active lookup for the draft discard: it must stay inside the unbound condition or the cells without a package-less row would move.
  3. packages/runtime/src/domains/meta-disabled-holder-served-stack.test.ts, the four tests named above.

Two-minute check: pnpm --filter @objectstack/metadata-protocol build, then pnpm --filter @objectstack/runtime exec vitest run --project local --maxWorkers=2 src/domains/meta-disabled-holder-served-stack.test.ts. Expect Tests 181 passed.

Verification

Summary: the ablation turns 21 tests red and the restore turns them green; all 101 derived gate families answer exit 0, three of them on a rerun once their prerequisite existed; the full dogfood battery on the head is green.

Ablation: re-allow the package-less skip in the judgment

On 7e6689619, scripts/ablation-replace.mjs --hold put if (address.unbound && 'ABLATION_37499_UNBOUND_SKIP'.length > 0) return undefined; back at the head of the judgment in protocol-save.ts. Then the package was rebuilt and scripts/ablation-dist-preflight.mjs found the marker in dist/index.cjs and dist/index.js.

  • Ablated: meta-disabled-holder-served-stack.test.ts Tests 20 failed | 161 passed (181), lock VERDICT command-exit 1; disabled-holder-packageless-row-doors.test.ts Tests 1 failed | 4 passed (5), VERDICT command-exit 1.
  • Restored (--restore, git diff HEAD empty, rebuilt, preflight --absent passes over all 24 built files): Tests 181 passed (181) and Tests 5 passed (5), VERDICT command-exit 0 each.

A first attempt was a no-op and is void: the replacement text still contained the anchor, the tool refused it and restored the file, and the preflight reported the marker absent from dist/. The readings above are from the second attempt.

Derived local gates: 101 families

node scripts/pm/dispatch-gates.mjs --commands derived 101 commands from the seven changed paths. Each ran with its exit code recorded before any pipe, and --ran reconciled the record.

  • 98 answered exit 0 on the first run.
  • node scripts/check-plugin-teardown-shape.mjs --self-test: exit 3 at first (its fixture commit was outside the shallow clone); exit 0 after fetching that commit, 48 cases pass.
  • pnpm --filter @objectstack/cli exec vitest run test/migrate-meta-engine-guidance.test.ts: exit 1 at first (a dependency of the CLI had no build yet); exit 0 after the build, Tests 3 passed (3).
  • pnpm check:dual-build-cjs-loads: exit 3 at first (it reads built output and some packages had no dist/); exit 0 after the dogfood closure build, 126 published require entry point(s) across 74 package(s) load.

The record with those three reruns reconciles to 101 derived, 101 run, 0 NOT-MEASURED, 0 UNRUN.

Among them: check-adr-0087-registration --base origin/main, check:upgrade-guide, check:spec-changes, check:api-surface, check:error-status-conformance, check:dispatcher-error-vocabulary, check:adr-anchors, check:adr-index, check:issue-citations, check:doc-authoring, check:nul-bytes, check:pm-governed-merges, each exit 0. scripts/pm/overlap-check.mjs answered VERDICT clean before the first push, and origin/main at c385d3bd16 merges cleanly and touches none of the changed files.

Not run locally, left to CI: the repo vitest project, the workspace type-check lanes and the build job.

Dogfood battery on the head

On 7e6689619 with a clean tree, as CI spells it: pnpm --filter '@objectstack/dogfood^...' build (lock VERDICT command-exit 0), then pnpm --filter @objectstack/dogfood test with no shard and no path.

  • Test Files 487 passed | 3 skipped (490)
  • Tests 4129 passed | 68 skipped (4197)
  • lock VERDICT command-exit 0, held 1900s
  • no failure; the head and the tree were the same after the run

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic.
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran.
  • 4. One issue, one branch, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: the migration registry is generated at build and is not tracked; check:generated reads no stale artifact.
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English, apart from the maintainer summary the fleet rules ask for in Chinese.

Generated by Claude Code

… row of a name only disabled packages hold

WIP: the holder refusal reads past the package-unbound row for the
disabled-holders judgment (ADR-0150 D3), with the enable as the remedy;
pins for the four write doors on both transports and registration orders.

Claude-Session: https://claude.ai/code/session_01L6bhgWSCg5Qjw8A76bTFD6
Co-authored-by: Claude <noreply@anthropic.com>
… active rows where a package-unbound row is stored; the refusal fits the client message cap

Claude-Session: https://claude.ai/code/session_01L6bhgWSCg5Qjw8A76bTFD6
Co-authored-by: Claude <noreply@anthropic.com>
…ration entry, changeset and the objectql pin

The ADR-0150 D3 note dated 2026-11-26 records the ruling of #37499: while
every holder of a name is disabled, the four writes naming no package are
refused with the enable remedy, and enabling the holder again serves the
package-less row untouched. The semantic migration entry and the changeset
carry the same fix; the objectql door pin that read the old 200 now reads
the refusal and the round trip.

Claude-Session: https://claude.ai/code/session_01L6bhgWSCg5Qjw8A76bTFD6
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 26, 2026
@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 2 package(s): @objectstack/metadata-protocol, @objectstack/spec, touching 10 documentable anchor(s).

29 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: node scripts/docs-audit/affected-docs.mjs --json 0f6a1e518f3c4639b03f86a8c07d9d08d91bddb6.

⛔ 12 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails.

What this run could not see
  • 3 name(s) were too generic to anchor anything (single lowercase words)
  • 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 — 178 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 0f6a1e518f3c4639b03f86a8c07d9d08d91bddb6 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 9bc9b93c51cecb7fad64422348da771359444275 — the merge of head 450813bf0bd2789c250675c48d53db8c20084f66 into base 0f6a1e518f3c4639b03f86a8c07d9d08d91bddb6, 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 9bc9b93c51cecb7fad64422348da771359444275 && git checkout 9bc9b93c51cecb7fad64422348da771359444275
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 0f6a1e518f3c4639b03f86a8c07d9d08d91bddb6 450813bf0bd2789c250675c48d53db8c20084f66 && git checkout -B drift-repro 0f6a1e518f3c4639b03f86a8c07d9d08d91bddb6 && git merge --no-ff 450813bf0bd2789c250675c48d53db8c20084f66

node scripts/docs-audit/affected-docs.mjs --json 0f6a1e518f3c4639b03f86a8c07d9d08d91bddb6

⚠️ 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 0f6a1e518f3c4639b03f86a8c07d9d08d91bddb6 → 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#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 7e668961961a0bcce141139047ec56b199faa053
Local-runs: none
Scope: packages/spec/src/migrations/entries/semantic/19.disabled-holder-package-less-row-bare-write-refused.ts, docs/adr/0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md + packages/metadata-protocol/src/protocol-save.ts, packages/metadata-protocol/src/protocol-diff-delete-load.ts, packages/runtime/src/domains/meta-disabled-holder-served-stack.test.ts, packages/objectql/src/disabled-holder-packageless-row-doors.test.ts
Security-touching: no

Isolated review, read at 2026-11-26T14:59Z. Inputs: card #37499 (body, claim 7191684203, dev report 7194444492), this PR's body and file list, the net diff against main (merge base 5dbcc02b84, main at 0f6a1e518f), and the 70 check-runs on the head: 59 success, 11 skipped, none failed. Nothing was checked out, built or run; every claim below about code outside the diff is a reading of the tree at this head, and says so where it was not measured.

① Derived judgments

Every answer the diff moves is for a caller naming no package, a type the registry reads by package, and a name whose every holder is disabled.

  1. PUT /api/v1/meta/TYPE/NAME (publish mode) over a stored package-less row: 200 to 409 RESOURCE_CONFLICT, enable remedy. Right: the card's ruling, and the removed early return in packagelessHolderRefusal is the premise the claim named.
  2. The same save where the package-less row sits beside a disabled package's own row (the served address answers the package-less row): 200 to 409. Right: the new call under served.packageId === null; it can only refuse when every holder is disabled, so the cell with an enabled holder is unmoved.
  3. PUT …?mode=draft over a stored package-less row or draft: 200 to 409. Right: the call site was already there and already passed active.unbound || drafts.unbound; only the judgment moved.
  4. DELETE /api/v1/meta/TYPE/NAME over a stored package-less row: 200 to 409, nothing deleted. Right, and the cell the card grades p1.
  5. DELETE …?state=draft: over a package-less draft 200 to 409; with a package-less active row and no draft, the ?package= refusal or the no-op receipt to the enable refusal. Right: the customized field carries the active row into the disabled-holders judgment without switching off the two-enabled-holders check that unbound gates.
  6. The same through in-process saveMetaItem / deleteMetaItem with packageId absent or null. Right: both transports end in these two facets; neither forwards a caller-stated source.
  7. Refusal shape: 409 RESOURCE_CONFLICT, an Error carrying code and status, no new code, no package named: the same family and shape as disabledHoldersOnlyRefusal. Right. The fixed text is 386 characters, so the type and the name share 114 before the 500-character cut, and the fix leads.
  8. Not moved, each read in the code (the sealed types from the dev's measurement; their refusal answers above this block): a name no package holds (every.length === 0); a package-less row at a name an enabled package holds, the two-enabled-holders cell included (the !address.unbound guard keeps the resolveItem skip); a name only disabled packages hold with no package-less row or draft (ruling A's sentence); every write naming a package (each call site is inside request.packageId == null); a type the registry does not read by package; the sealed types; the server-stated rewrites (source set, package-duplicate). Right.
  9. @objectstack/spec: one semantic entry joins step 19's list (upgrade guide and spec-changes projections). No key, def or export moves; disabledHoldersCustomizationRefusal and the widened address parameter are not re-exported from the package entry, so no API surface moves.
  10. NOT derived, though the ADR note reads as if it were: the per-item publish and the per-item rollback naming no package. See S1.

② Semver level

Clause-②: no (narrowing) and Metadata-protocol: narrowed stand on the claim, the PR body and the changeset, and they are right: no published schema or accept-set moves, and a write an author could send is now refused. narrowed takes at least minor on each package the diff moves: @objectstack/metadata-protocol minor and @objectstack/spec minor, as the changeset has them. The changeset carries the BREAKING banner, every moved answer before and after, the one-line fix, and exactly one ADR-0087 marker naming the registered id; Check Changeset and every lint leg are green on the head, and the dev's derived gates list check:adr-0087-registration, check:spec-changes and check:upgrade-guide at exit 0. objectql and runtime change tests only and owe no changeset.

③ Boundary flags

④ Design judgment

No must-fix. One should-fix, owing a delta review.

S1 (should-fix) — the ADR note says every write naming no package is refused; two write doors naming no package are not asked the judgment at this head. The note reads "it hides with its holder, on the reads and on the writes alike", "Every write naming no package is refused … : the publish-mode save, the draft save, the delete and the draft discard", and "Re-enable serves the row untouched". Read in the tree, not run:

  • The per-item publish. POST /api/v1/meta/TYPE/NAME/publish with no ?package= reaches publishMetaItem and promoteDraftForPublish (packages/metadata-protocol/src/protocol-history-and-publish.ts). It resolves its draft through packagelessDraftAddress and never asks packagelessHolderRefusal; the file holds no disabled-holder judgment, and neither does the REST route. In the cell this PR's own third pin stores (a package-less draft of a name only the disabled D ships, alone or beside the package-less row) the address is the package-less draft, so the promotion writes the package-less active row: the hidden row is edited unseen, and the row the next enable serves is not the one stored before the disable.
  • The per-item rollback. rollbackMetaItem (packages/metadata-protocol/src/protocol-package-commits.ts) with no package named takes the binding of the stored row at the read address, which is the package-less row when that is the row stored, and restores onto it. No disabled-holder judgment is asked there or in protocol-history-slots.ts.

Neither door is among the card's four, so the card's Done-when is met by this diff, and this is not graded as a failure of the fix. The finding is on the note: it records a universal the tree does not hold, and it is the text a maintainer approves as the contract. Fix, either way: (a) measure both doors in cell 1 first, then word the note as the four doors it closes, name the per-item publish and the rollback as not judged yet, and cite their card; or (b) close both here through the same judgment and pin them. One clause should also say that the server-stated rewrites (source set, package-duplicate) are not asked, by design.

Per file, against the code and the scenario it is accepted against:

  • 19.disabled-holder-package-less-row-bare-write-refused.ts: holds. The major is right at 19. The file name takes the protocol major (entries/README.md); PROTOCOL_VERSION reads 19.0.0 on main since feat(spec)!: PROTOCOL_VERSION 18 → 19, and every current-protocol handshake reads '^19' #37314; registry.ts.template carries step 19 and says later v19-line entries are added as files; Changesets is in pre mode with a pending spec major (.changeset/37223-v19-line-opens.md), so a minor landing now publishes in the 19 prerelease line; 19.data-table-staged-edit-retired.ts (feat(ui): retire the grid's staged edit model with its host interface #37437) is the precedent. build-schemas.ts on main still derives CURRENT_MAJOR from package.json (18.6.0, so 18), but it prescribes a major only for retired-key and retired-def files, and this PR retires neither. The id matches the file name and the changeset marker. Surface, replacement, reason and acceptance criteria name the four doors and the three unmoved cells as the code has them, and claim nothing about the two doors of S1. No tombstone and no conversion is owed: no key or stored shape moves.
  • ADR-0150, the D3 note, sentence by sentence. The D4 quotation is verbatim. The maintainer's words are the card's. The writes bullet, the draft bullet and the re-enable bullet agree with the four call sites and with everyRowBytes in the pins, subject to S1. The "what this replaces" paragraph is the card's measurement and the removed line. Controls 1 to 3 agree with the code and have pins. The _env control agrees with the tree: the qualified route is a GET only. Code: and Pins: name symbols and test titles that exist at this head.
  • protocol-save.ts: agrees with the contract. Removing the early return alone would have moved the two-enabled-holders cell; the !address.unbound guard on the resolveItem arm keeps it. The environment's own item still returns first. The new refusal is chosen only after the every-holder-disabled test passes. The publish-mode call under a null served address cannot fire while an enabled package holds the name. Tried and not broken: a save naming a package, packageId: null spelled out, a row bound to a disabled holder's customization pair beside the package-less row, a registry without the holder reads.
  • protocol-diff-delete-load.ts: agrees. The active delete passes its own rows; the discard passes the merged address only when a package-less row or draft exists, so no cell without one moves. Tried and not broken: the discard with an enabled holder and a package-less active row (the two-enabled check still runs, as before), the discard of a name no package holds.
  • The two test files: the pins assert status, code, the leading words, the absence of every package id, the stored bytes of every row, and the re-enable round trip, on both transports and both registration orders; the control is split as the card asks. See N7 for what they do not hold.

Nits (none moves the head by itself; fix on the next push of the note, or leave as accepted deviations or follow-up cards):

  • N1 (nit, ADR prose): the reads bullet is silent on the draft reads. At this head the draft read at _env still answers 409 (the PR body's "Not folded", metadata-protocol: the draft and layered _env reads (?state=draft, ?preview=draft, ?layers=true) still refuse 409 for a name only disabled packages hold, where the plain _env read answers 404 #34261) and the bare draft read answers 404 NO_DRAFT. Name both, with the card.
  • N2 (nit, ADR prose): "Unchanged, and pinned as controls" heads five bullets, and the sealed-type and _env bullets are measurements with no pin in this diff. Say measured there.
  • N3 (nit, ADR prose): the first sentence states D4's customization rule without D4's 2026-11-24 exception (the platform's own record). A parenthesis would keep the two notes from reading as a contradiction.
  • N4 (nit, entry prose): surface reads "every installed package holding it has disabled"; "is disabled" is meant.
  • N5 (nit, refusal text): "Enable the package that holds …" is singular and definite where several disabled packages may hold the name, and the packages list it points at shows which are disabled, not which holds the name. The changeset and the entry say "a package". Accepted with the no-package-named rule.
  • N6 (nit, door symmetry): two cells still answer another refusal's sentence. With only a package-less draft stored, the publish-mode save and the active delete answer ruling A's ?package= sentence while a hidden draft sits beside the row it would write. With two disabled packages' own rows and a package-less row, the delete answers the two-binding refusal, naming both packages, before the holder judgment is reached, where the save answers the enable sentence. Both refuse and write nothing.
  • N7 (nit, tests): the new runtime pins lay their rows straight into the store, so they hold the state in which the registry has not read the row. The door-written state is pinned only by the objectql test, for the save and the delete of a code-shipped holder; the restart reading is the dev's measurement and has no pin. For the authored-holder arm the registry-read state is not shown either way: a package overlay slot adds no composite holder, so getEnvironmentScopedItem may answer the package-less row there and the judgment would return before the holders are counted. A reboot arm on these four pins would settle it.

Out of the diff, read and not reviewed:

Implemented-by: claude/project-thread-iu6ti1
Reviewed-by: session_01L6bhgV6i8jfWwSXjpWJrjA

VERDICT: PASS

…wo doors not judged yet

The note said every write naming no package is refused. Two doors are not
asked the judgment at this head: the per-item publish and the per-item
rollback. The note now states the four writes this change closes, names
those two as not judged yet with their card, says the server-stated
rewrites are not asked by design, names the draft reads, marks which
controls are pinned and which are measured, and points at D4's exception
for the platform's own record. The migration entry's surface reads
"packages that are disabled".

Claude-Session: https://claude.ai/code/session_01L6bhgWSCg5Qjw8A76bTFD6
Co-authored-by: Claude <noreply@anthropic.com>

This branch has not been deployed

No deployments
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