Skip to content

feat(spec): register PACKAGE_DISABLE_RESTRICTED_BY_VALIDATION_RULE, the package disable door's 409 when an enabled package's validation rule reads a field the package adds - #30775

Merged
objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/issue-30724-disable-refused-dependent-rule-code
Nov 6, 2026
Merged

objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/issue-30724-disable-refused-dependent-rule-code

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread

domain:spec#2 · os-sales · session_01L6bhgVugtCCwBs98FeR27P
Fixes #30724

Clause-②: yes (widening)
Metadata-protocol: none

维护者速读

What changes

  • One ERROR_CODE_LEDGER row under @objectstack/runtime, in its alphabetical place after PACKAGE_DELETE_PARTIAL: PACKAGE_DISABLE_RESTRICTED_BY_VALIDATION_RULE. The row comment says when it is answered (409, PATCH /packages/:id/disable), what the refusal names (each package · object · rule triple, one or several) and the remedy (disable or change the reading rule first, or keep the package enabled). It is registered ahead of its producer: the disable door's dependent scan stamps it and asserts the string by value.
  • Pins. error-code-ledger.test.ts gains one case: ErrorCode accepts the code, the runtime owner key lists it, REGISTERED_ERROR_CODES contains it, the synonym detector does not flag it and no waiver names it (with a control leg showing the detector still reads the RESTRICTED token). api-error-code-type.test.ts assigns the literal to ApiError['code'] (judged by tsc -p tsconfig.test.json) and parses it through ApiErrorSchema (judged by vitest).
  • Generated pages. The three reference pages that print the ErrorCode vocabulary (content/docs/references/api/error-code-ledger.mdx, contract.mdx, automation-api.mdx), regenerated by check:generated --fix, which proved only content/docs/references/** stale.
  • One changeset, @objectstack/spec: patch, carrying both declaration lines.

Verification

All readings below are at head 2efc7b56d9 (the branch's two commits plus a merge of origin/main 3214615d7a, after pnpm install --frozen-lockfile, a full pnpm build at 118/118 and removal of packages/runtime/.objectstack).

Spec build, generated artifacts, tests, typecheck, lint
pnpm build --concurrency=2 (full, under the verify lock)          :: exit 0  (118/118 tasks)
pnpm --filter @objectstack/spec check:generated                   :: exit 0  (all 14 up to date)
pnpm --filter @objectstack/spec test                              :: exit 0  (817/817 files, 25827 tests passed, 1 todo)
pnpm --filter @objectstack/spec typecheck                         :: exit 0  (check:test-typecheck OK; both pin files compiled, 0 errors in them)
eslint --no-inline-config on the three changed .ts files          :: exit 0
node scripts/check-changeset-no-major.mjs --event (this body's two declaration lines) :: exit 0
  LEVEL AXIS: clause-② yes (widening), metadata-protocol none, no entry graded minor or above: a non-protocol change at patch
dispatch-gates --commands on this diff (105 commands) and --ran reconciliation
node scripts/check-adr-0087-registration.mjs --base origin/main :: exit 0
node scripts/check-adr-0087-registration.mjs --self-test :: exit 0
node scripts/check-adr-links.mjs :: exit 0
node scripts/check-adr-links.mjs --self-test :: exit 0
node scripts/check-changeset-no-major.mjs --base origin/main :: exit 0
node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-adoption.mjs :: exit 0
node scripts/check-comment-mask-adoption.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/check-dev-prereqs.mjs --self-test :: exit 0
node scripts/check-doc-route-spelling.mjs --advisory :: exit 0
node scripts/check-doc-route-spelling.mjs --self-test :: exit 0
node scripts/check-docs-section-name.mjs :: exit 0
node scripts/check-docs-section-name.mjs --self-test :: exit 0
node scripts/check-dts-emitted.mjs --self-test :: exit 0
node scripts/check-empty-changeset.mjs --base origin/main :: exit 0
node scripts/check-empty-changeset.mjs --self-test :: exit 0
node scripts/check-issue-citations.mjs :: exit 0
node scripts/check-plugin-teardown-shape.mjs :: exit 0
node scripts/check-plugin-teardown-shape.mjs --self-test :: exit 0
node scripts/check-section-landing-index.mjs :: exit 0
node scripts/check-section-landing-index.mjs --self-test :: exit 0
node scripts/ci/assert-turbo-remote-cache.mjs --self-test :: exit 0
node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0
node scripts/ci/prune-turbo-cache.mjs --self-test :: exit 0
node scripts/docs-audit/check-affected-docs.mjs :: exit 0
node scripts/docs-audit/check-drift-comment.mjs :: exit 0
node scripts/pm/release-rehearsal-clone.mjs --self-test :: exit 0
node scripts/release-pending-publish.mjs --self-test :: exit 0
pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0
pnpm --filter @objectstack/lint run check:doc-security-posture :: exit 0
pnpm --filter @objectstack/spec run check:api-surface :: exit 0
pnpm --filter @objectstack/spec run check:authorable-surface :: exit 0
pnpm --filter @objectstack/spec run check:browser-reachable-entries :: exit 0
pnpm --filter @objectstack/spec run check:docs :: exit 0
pnpm --filter @objectstack/spec run check:dual-source-exports :: exit 0
pnpm --filter @objectstack/spec run check:duration-unit-keys :: exit 0
pnpm --filter @objectstack/spec run check:empty-state :: exit 0
pnpm --filter @objectstack/spec run check:entry-nameability :: exit 0
pnpm --filter @objectstack/spec run check:error-code-provenance :: exit 0
pnpm --filter @objectstack/spec run check:export-origins :: exit 0
pnpm --filter @objectstack/spec run check:exported-any :: exit 0
pnpm --filter @objectstack/spec run check:generated :: exit 0
pnpm --filter @objectstack/spec run check:liveness :: exit 0
pnpm --filter @objectstack/spec run check:llms-txt :: exit 0
pnpm --filter @objectstack/spec run check:skill-examples :: exit 0
pnpm --filter @objectstack/spec run check:skill-refs :: exit 0
pnpm --filter @objectstack/spec run check:strictness-ledger :: exit 0
pnpm --filter @objectstack/spec run check:variant-docs :: exit 0
pnpm --filter @objectstack/spec run check:yaml-examples :: exit 0
pnpm check:changeset-gate-self-tests :: exit 0
pnpm check:ci-filter-parity :: exit 0
pnpm check:closed-ceremony-text :: exit 0
pnpm check:corpus-claim-drift :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:dispatcher-error-vocabulary :: exit 0
pnpm check:doc-anchors :: exit 0
pnpm check:doc-authoring :: exit 0
pnpm check:doc-frontmatter :: exit 0
pnpm check:docs-audit-scope :: exit 0
pnpm check:docs-redirects :: exit 0
pnpm check:docs-single-h1 :: exit 0
pnpm check:docs-spec-enumerations :: exit 0
pnpm check:docs-transcript-drift :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:dts-closure :: exit 0
pnpm check:dual-build-cjs-loads :: exit 0
pnpm check:engine-double-contract :: exit 0
pnpm check:error-code-casing :: exit 0
pnpm check:error-status-conformance :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:issue-citations :: exit 0
pnpm check:keyed-text-bounds :: exit 0
pnpm check:lean-entry-closure :: exit 0
pnpm check:logger-receiver-detach :: exit 0
pnpm check:merge-driver :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:objectql-double-limit :: exit 0
pnpm check:org-identifier :: exit 0
pnpm check:page-declaration-shape :: exit 0
pnpm check:platform-object-tenancy-census :: exit 0
pnpm check:pm-prior-rulings :: exit 0
pnpm check:published-files :: exit 0
pnpm check:published-readme-links :: exit 0
pnpm check:query-options-erasure :: exit 0
pnpm check:react-page-adapter-contract :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:registry-log-declared :: exit 0
pnpm check:rest-log-spy-declared :: exit 0
pnpm check:role-word :: exit 0
pnpm check:skill-identifier-liveness :: exit 0
pnpm check:slot-lookup :: exit 0
pnpm check:sourcemap-no-sources-content :: exit 0
pnpm check:spec-docblock-symbol-anchors :: exit 0
pnpm check:spec-parsed-alias :: exit 0
pnpm check:system-context-census :: exit 0
pnpm check:test-source-alias :: exit 0
pnpm check:tier-file-adoption :: exit 0
pnpm check:type-check-coverage :: exit 0
pnpm check:type-check-debt :: exit 0
pnpm check:undeclared-dep-imports :: exit 0
pnpm check:vendor-version-stamps :: exit 0
pnpm check:watch-hint-literal :: exit 0
pnpm check:where-matcher :: exit 0

node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --ran ran.list: exit 0 — "105 derived famil(ies) accounted for — 105 run, 0 NOT-MEASURED (a DERIVED zero — all 105 recorded an exit code and none of them is 3)"

Local-only families: pnpm check:dev-prereqs :: exit 0 · pnpm check:skill-frame-freshness :: exit 0

Ablation (taken on the pre-merge head 48bb8d5, whose ledger file is byte-identical to this head's)

node scripts/ablation-replace.mjs --file packages/spec/src/api/error-code-ledger.zod.ts --anchor " 'PACKAGE_DISABLE_RESTRICTED_BY_VALIDATION_RULE'," --delete -- …

anchor x1 -> x0, blob 21e349e0da32 -> 2acbdf4d1b72 (mutation landed)
vitest (the two pin files)  :: exit 1 — exactly 2 failures, the two new cases:
  error-code-ledger.test.ts › accepts the package disable door's dependent-validation-rule refusal code, registered ahead of its runtime producer
  api-error-code-type.test.ts › every body the type admits parses
check:test-typecheck        :: exit 1 — src/api/api-error-code-type.test.ts: 1 type error in a file the ledger does not cover
restore: blob 21e349e0da32 == HEAD blob, git diff HEAD empty, git status clean
re-run from the committed state: 2 files, 28/28 tests pass; check:test-typecheck OK

Acceptance notes

  • The name was proposed by the dev and confirmed by the seat (the claim's Decision of record). It follows three precedents: the /packages door's PACKAGE_VERB_OUTCOME rows (PACKAGE_DELETE_PARTIAL, PACKAGE_DELETE_FAILED, PACKAGE_PUBLISH_FAILED); the standard catalog's DELETE_RESTRICTED, its own word for a lifecycle verb refused over a dependent at the same 409; and the _BY_CAUSE tail of ORGANIZATION_SLUG_LOCKED_BY_ACTIVE_ENVIRONMENTS. It names why the disable is refused and the thing the operator acts on (the rule), so it is not a *_DISABLED re-spelling, and VALIDATION_RULE keeps it apart from the ledger's sharing-rule RULE_* rows and from manifest.dependencies.
  • patch, not minor. The dispatch expected minor for a new public code. check-changeset-no-major's level axis grades by the metadata-protocol kind alone, and a declared Metadata-protocol: none must grade every entry patch; driven offline with this body's two lines, it passes at patch. The seat accepted the deviation. Clause-②: yes (widening) stays: registering a code widens the published face.
  • The triage note on this card says the code is "already served". It is not. On origin/main the disable branch of packages/runtime/src/domains/packages.ts runs no dependent scan and stamps no such code, and the spelling has no hit outside packages/spec and the generated pages. That is why the row is registered ahead of its producer.
  • Serial follower: [Decision] A package can be disabled while an enabled package's validation rule reads one of its extension fields, and then every write to that object is refused #30379 (domain:server#4). Its disable-door scan in packages/runtime/src/domains/packages.ts answers this code once this lands. Provenance is already satisfied (the stamp will sit under @objectstack/runtime, which lists the code). If that PR also publishes a 409 status for the code in content/docs/api/error-catalog.mdx, that page's guard then wants a heading for it.
  • Companion tables checked, none owes a row: STANDARD_SYNONYM_WAIVERS (not flagged), PROVENANCE_WAIVERS and check:error-code-provenance (no stamp site yet), HttpStatusErrorCodeMap / HTTP_REASON_PHRASE_STATUS (standard catalog only), retired-error-codes.ts (no collision), content/docs/api/error-catalog.mdx (its guard covers codes a doc publishes a status for), the dispatcher vocabulary's UNREGISTERED_CODE_SITES (no pending row), the disable row in packages/runtime/src/route-ledger.ts (lists no codes) and check-error-code-casing.mjs (no table).
  • No GitHub MCP call was made; the PR and the report comment went through the scripts/pm/ relay.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L6bhgVugtCCwBs98FeR27P

…r the package disable door's dependent-rule refusal

One ERROR_CODE_LEDGER row under @objectstack/runtime: the 409 the
package disable door answers when a validation rule of a package that
stays enabled reads a field the package being disabled adds through
objectExtensions. The refusal names each package, object and rule; the
remedy is to disable or change the reading rule first, or keep the
package enabled. Registered ahead of its producer: the door's dependent
scan stamps it and asserts the string by value.

Pins: the ledger admission suite and the ApiError.code type test both
name the code.

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

Generated by `pnpm --filter @objectstack/spec check:generated --fix`,
which proved only content/docs/references/** stale after the new ledger
row.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgVugtCCwBs98FeR27P
@github-actions github-actions Bot added size/s 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 6, 2026
@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/spec, touching 3 documentable anchor(s).

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

  • content/docs/api/client-sdk.mdx (via ERROR_CODE_LEDGER (symbol, a top-level const object))
  • content/docs/api/error-catalog.mdx (via ERROR_CODE_LEDGER (symbol, a top-level const object))
  • content/docs/api/error-handling-server.mdx (via ERROR_CODE_LEDGER (symbol, a top-level const object))
  • content/docs/api/metadata-api.mdx (via /packages/:id/disable (route, a path literal in a comment in ERROR_CODE_LEDGER))
  • content/docs/deployment/marketplace-handbook.mdx (via /packages/:id/disable (route, a path literal in a comment in ERROR_CODE_LEDGER))
  • content/docs/kernel/contracts/data-engine.mdx (via ERROR_CODE_LEDGER (symbol, a top-level const object))

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

  • content/docs/releases/v17/17-0.mdx (via ERROR_CODE_LEDGER (symbol, a top-level const object))
  • content/docs/releases/v17/17-1.mdx (via ERROR_CODE_LEDGER (symbol, a top-level const object))
  • content/docs/releases/v17/17-4.mdx (via ERROR_CODE_LEDGER (symbol, a top-level const object))

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

Coarse fallback — 170 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 b3098661cd3ad78634dd77a31ae68530ab9a3a83 → packageMentionDocs.

Which tree this was computed on

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

node scripts/docs-audit/affected-docs.mjs --json b3098661cd3ad78634dd77a31ae68530ab9a3a83

⚠️ 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 b3098661cd3ad78634dd77a31ae68530ab9a3a83 → 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

domain:spec#2 · os-sales · session_01L6bhgVugtCCwBs98FeR27P

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 2efc7b56d9b756146e70ba928f2d3a4b0d8d61c5
Local-runs: none
Scope: packages/spec/src/api/error-code-ledger.zod.ts + packages/runtime/src/domains/packages.ts (the disable branch on main, read as the door the row names), packages/spec/src/api/errors.zod.ts (the standard catalog and HttpStatusErrorCodeMap), packages/spec/src/api/retired-error-codes.ts, scripts/check-changeset-no-major.mjs and AGENTS.md "Add a changeset" (the level rule the changeset is graded by). The rest of the diff (two pin tests, three regenerated reference pages, one changeset) is the lane seat's ACCEPT at TIER_DEFAULT.

Inputs read: card #30724 (body; comments 6672694111, 6673430391, 6674977179), the ruling 6670643454 on #30379 and the #30379 body, PR #30775 (body, file list, net diff origin/main...2efc7b56d9, 7 files, +59/-3), the check-runs on the head.

① Derived judgments

  • Accept set widens by one literal — ERROR_CODE_LEDGER['@objectstack/runtime'] gains PACKAGE_DISABLE_RESTRICTED_BY_VALIDATION_RULE (error-code-ledger.zod.ts:515 at the head), so REGISTERED_ERROR_CODES, RegisteredErrorCode, ErrorCode, ApiErrorSchema.code, every envelope built on BaseResponseSchema, and FlowInnerRefusal.code (automation-api.zod.ts) accept it. Right: this is exactly what ruling 6670643454 item 3 orders ("409 with a new error code; the ledger entry is a domain:spec card"), and the ledger header (error-code-ledger.zod.ts:93-103) names registration a widening of the published face. No existing code moves; the generated pages' +360 more → +361 more is the same one literal.
  • Scope rule (:19-54): the owner key is @objectstack/runtime, a package published from this repo, and it is the package that owns the door (packages/runtime/src/domains/packages.ts:1950-1981). Right. No second door exists: packages/rest mounts no PATCH /packages/:id/disable (read rest-server.ts on main), so one row is the whole provenance once the stamp lands.
  • Alphabetical place: after PACKAGE_DELETE_PARTIAL (:495 on main), before PROJECT_MEMBERSHIP_REQUIRED. Right. (The runtime block is not sorted end to end — API_KEY_/ANALYTICS_/ACTION_ lead it and MIXED_ARTIFACT_COLLECTION_SHAPE closes it — and no gate asserts order; REGISTERED_ERROR_CODES is a computed sorted union, error-code-ledger.test.ts:54.)
  • Standard-synonym detector (standardSynonymOf, :1923-1936 on main): prong 1 — the code is no RFC reason phrase; prong 2 — tokens PACKAGE, DISABLE, RESTRICTED, BY, VALIDATION, RULE are not all carried by any one StandardErrorCode member (PACKAGE and DISABLE appear in none). Verdict undefined, so no STANDARD_SYNONYM_WAIVERS entry is owed. Right; the pin's control leg RESTRICTED_DELETE → DELETE_RESTRICTED is a true positive of prong 2, so the undefined is a verdict.
  • Provenance (check:error-code-provenance, header :138-148): no stamp site exists on main (git grep of the spelling on origin/main is empty), so no PROVENANCE_WAIVERS entry and no second owner row is owed. Right. The producerless row is the declared split shape (ACTION_CONFIRMATION_REQUIRED, :362-372; FLOW_INPUT_SCHEMA_INVALID, :443-451): a card number behind it ([Decision] A package can be disabled while an enabled package's validation rule reads one of its extension fields, and then every write to that object is refused #30379, named in the row), not the "registered but unemittable" retirement class (:150-180).
  • Status and guidance tables: HttpStatusErrorCodeMap (errors.zod.ts:183-197) is standard-catalog only; the status-conformance gate reconciles ledger codes only once a page publishes a status for them (check-error-status-conformance.mjs:87-95: the residual is "a subtraction, not a promise"); dispatcher-error-vocabulary.ts carries no pending-registration row for the code; check-error-code-casing.mjs has no code table. None owes a row today. Right.
  • Retired codes: retired-error-codes.ts retires only CONCURRENT_LIMIT_EXCEEDED; the spelling collides with nothing retired or live. Right.
  • Name against the ledger's practice (:56-65: SCREAMING_SNAKE, domain prefix, standard member for a generic condition): PACKAGE_ prefix beside the door's own PACKAGE_DELETE_PARTIAL / PACKAGE_DELETE_FAILED / PACKAGE_PUBLISH_FAILED (@objectstack/rest, :263-266); RESTRICTED is the standard catalog's own word for a 409 refused over a dependent (DELETE_RESTRICTED, "Cannot delete due to dependencies", errors.zod.ts:97); the _BY_CAUSE tail has a precedent (ORGANIZATION_SLUG_LOCKED_BY_ACTIVE_ENVIRONMENTS, :600). Meaning does not collide: OBJECT_PACKAGE_DISABLED says which object is withheld, WRITABLE_PACKAGE_REQUIRED refuses the same verb on a read-only package (:508-514), DEPENDENCY_MISSING reads manifest.dependencies (:733-746), and the standard DELETE_RESTRICTED names a delete, not a disable. Right.

② Semver level

  • Changeset .changeset/30724-package-disable-dependent-rule-code.md: @objectstack/spec: patch, body carries Clause-②: yes (widening) and Metadata-protocol: none; PR body carries the same two lines. patch is the repo's rule, not a deviation: AGENTS.md "Add a changeset" (lines 1026-1028) — "The level follows the kind alone: a kind takes at least minor on a package the diff moves, none takes patch; a non-protocol change, widening or breaking, ships patch" — and check-changeset-no-major.mjs's level axis (ruling A on changeset levels: minor only when the metadata protocol changes (added / narrowed / semantic), patch otherwise; release notes grouped by what the reader must do (maintainer ruling A, 2026-10-21) #25105, :899-912, verdicts none-clean / none-minor in judgeLevel) refuses a minor under none. The dispatch's minor expectation predates ruling A; the seat-accepted "deviation" in the dev report is in fact conformance.
  • Metadata-protocol: none is right: an error code is wire vocabulary a consumer branches on, not a key, value or type a metadata author writes.
  • Clause-②: yes (widening) is right: the ledger header (:101-102) names a registration a Clause-② widening, door or no door. The Check Changeset run on the head is success.
  • skip-changeset: not applicable; @objectstack/spec publishes the row.

③ Boundary flags

④ Design judgment

packages/spec/src/api/error-code-ledger.zod.ts — judged against the ruling it implements (6670643454, letter A on #30379, ADR-0141 Open item 4) and its first consumer (the disable branch of packages/runtime/src/domains/packages.ts, where #30379 will stamp it).

Check-runs on the head at review time: 42 runs — 13 success (incl. Check Changeset, Governed Surface Queue Guard, PR-body guards, Lint · PM dispatch-gates, Spec property liveness, Dogfood Regression Gate), 7 skipped, 22 in_progress (Build Core, Build Docs, Test Core 1-8, Type Check ×4, Lint ×6, Live E2E UI), 0 failure. The in-progress families are not adopted by this record; their conclusions remain the gate verdicts and the queue guard holds the PR until they land. A red among them is a delta head for this seat.

Implemented-by: claude/issue-30724-disable-refused-dependent-rule-code
Reviewed-by: session_01L6bhgVugtCCwBs98FeR27P

VERDICT: PASS


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:spec#2 · os-sales · session_01L6bhgVugtCCwBs98FeR27P

维护者速读

席位核对

ACCEPT · head 2efc7b56d9b756146e70ba928f2d3a4b0d8d61c5 · 2026-11-06T02:38Z

  1. 形态:
    • draft,base main,正文 Fixes #30724,全文只有这一个闭合关键词。
    • 7 个文件都在认领 6673430391 的文件面内:台账一行、两个 pin 文件、三张重新生成的参考页、一个 changeset。
    • packages/runtime/**、其他台账行、retired-error-codes.ts、skills/**、docs/adr/**、.claude/**、AGENTS.md 都没碰。
  2. 前提实测:认领时在 origin/main 05a30e6e 上读到台账的 PACKAGE_* 只有 DELETE_FAILED、DELETE_PARTIAL、MANIFEST_INVALID、PUBLISH_FAILED 四个(L263-266),没有停用被拒的码。复核在 main 上读了 domains/packages.ts 的停用分支(L1950-1981):没有依赖扫描,也不发 409,所以「先登记、后有发出方」属实;分诊 6672694111 说的「已经在发」不对,PR 的 Acceptance notes 写了这一条。
  3. 门禁 check-runs:
    • head 2efc7b56 共 65 条 check-run,57 success、8 skipped、0 failure,全部跑完:Test Core 8 个分片、Build Core、Type Check 各族、Check Changeset、PR-body guards、Governed Surface Queue Guard 都在其中。
    • 契约复核 6675075253 在 Served-tier: CONTRACT_REVIEW_TIER 下 PASS,覆盖 hits 的 error-code-ledger.zod.ts:作用域规则、字母序位置、同义检测(两路都不命中,不需要豁免)、来源检查、退役码表、要跟着加行的状态和指引表(都不需要),行注释对照停用门和裁决逐句属实,名字不与 OBJECT_PACKAGE_DISABLED、WRITABLE_PACKAGE_REQUIRED、DEPENDENCY_MISSING、DELETE_RESTRICTED 撞义。
    • dev 本地(head 2efc7b56,合入 origin/main 3214615d 后):全量 build 118/118;spec check:generated 0(14/14);spec 817 个文件 / 25827 条,typecheck 含 check:test-typecheck 都是 0;eslint 0;105 条派生门禁全 exit 0,--ran 105 条 0 NOT-MEASURED。
    • 消融:删掉台账那一行,恰好两条新用例和 check:test-typecheck 转红;还原后 blob 等于 HEAD。合入 main 后三个源文件逐字节不变,消融结论沿用。
  4. 席位自读(TIER_DEFAULT,hits 之外的部分):
    • 测试:error-code-ledger.test.ts 的新用例查了 ErrorCode.parse、ERROR_CODE_LEDGER['@objectstack/runtime']、REGISTERED_ERROR_CODES、standardSynonymOf 为 undefined、豁免表不含它,另有一条对照(RESTRICTED_DELETE → DELETE_RESTRICTED)证明检测器没失灵;api-error-code-type.test.ts 加了类型赋值和 ApiErrorSchema.safeParse 两半。
    • 参考页:三张页只多了这个码一行,+360 more 变成 +361 more,是生成器的输出。
    • changeset 逐句核过:@objectstack/spec patch,Clause-②: yes (widening) / Metadata-protocol: none,与认领一致;「Registration only: the disable door does not answer this code yet」属实。
  5. 接受的偏差:
    • 名字由 dev 提、席位确认(认领的 Decision of record 交给 spec 车道定)。
    • 认领写的是放宽、dispatch 时写过 minor;changeset 是 patch。复核查明这是仓库的规则(AGENTS.md L1026-1028「none takes patch」和 check-changeset-no-major 的级别轴:Metadata-protocol: none 时每条都是 patch),不算偏差。
    • PR 上的 size/s、documentation、tests、tooling 是仓库 labeler 机器人加的,不是 dev 加的;没设 assignee 和 reviewer。
  6. 范围外去向和 Skills-docs::Skills-docs: 不需要(错误码不是可编写的元数据,skills/** 不教这个码)。复核给 [Decision] A package can be disabled while an enabled package's validation rule reads one of its extension fields, and then every write to that object is refused #30379 的四条承接(在 registry.disablePackage 之前发码、error.details 形状、市场手册 L230/L304 和错误目录的标题、ADR-0141 Open item 4 那一行)已贴在 [Decision] A package can be disabled while an enabled package's validation rule reads one of its extension fields, and then every write to that object is refused #30379(6675092387)。
  7. 落地条款:check-governed-merges.mjs --pr objectstack-ai/objectstack#30775 已在本 head 读过:7 个路径 0 个命中 governed 登记,62 行(+59 / -3)≤ 3000,走普通合并队列;落地前再读一次。CI 全绿后经 relay pr_ready + automerge_enable,跟到 MERGED,同一动作里摘 pm:dispatched。

Generated by Claude Code

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/s tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

1 participant