You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[ADR-0150 D4] The read naming no package withholds a package-less customization row of a key whose every holder is disabled #33401
Parent: #32814. Filed by area E1 under the seat ruling on #32814 (#32814 (comment), 2026-11-14T18:47Z). Area-lease pilot #33059, lease:E1.
Premise
PR #33383 withholds a customization pair's row on the read naming no package when every holder of the name is disabled. It deliberately leaves the package-less row alone (isHoldersPairRow excludes it): measured on main e540baf8 and on the PR head, with the only holder of email_template welcome disabled, the bare read at a member still serves a package-less row of that key.
Environment's own item → serve. No installed package holds its key (bucket 4, D3 (a)), including a row that only shares a name with a disabled holder's item on another object.
Member grain is not part of the key: a package-less locale the holder never shipped is still its customization.
Fix shape
packages/metadata-protocol/src/protocol-meta-item-face.ts: extend the disabled-only-holder judgment on the read naming no package to a package-less row whose key a (disabled) holder holds.
Check that getEnvironmentScopedItem / overlaySlotBinding (packages/objectql/src/registry.ts) still bind such a row to the disabled holder.
Acceptance
Bare read (served and execution faces) and /layers: a package-less row of a held key, every holder disabled → answered as if no row were stored; declared FROM→TO with its Clause-② arm.
Pins in both registration orders; a package-less locale the holder never shipped is withheld too.
CONTROLs: an enabled holder (unchanged); the environment's own item with no holder at its key (still served), including a same-name item on another object; re-enable returns the row.
Claim: area S5 (lease E1, E1b), #33751 §2 area-lease mode, round 1 — fold member of #33385
Session: session_01QsR2jUcj2x2Wr4UErwBi12
Account: zhuangjianguo
Branch: claude/area-E1b-33385
Worktree: objectstack-e1b-33385
Domain: domain:server
Seat: domain:server#5
File surface: packages/metadata-protocol/src/protocol-meta-item-face.ts, read-only check of packages/objectql/src/registry.ts (getEnvironmentScopedItem / overlaySlotBinding), tests, the fold's changeset; no protocol.ts (stop on breach; explain in the report)
Container & model: M, mode:subagent, model: default judgment tier, effort: high
Clause-②: no
Metadata-protocol: none
Responsibility: objectstack platform code (metadata-protocol bare read) | none | a deployment holding a package-less customization row of a key whose every holder is disabled
Thread-read: none
Premise: holds (the dev re-measures at origin/main before any edit)
Serial constraints cleared: folded into #33385's claim (full serial check there). Own commit, own Fixes #33401 line in the one PR.
{
"issue": 33385,
"folded": [
33385,
33401
],
"status": "done",
"branch": "claude/area-E1b-33385",
"pr": "https://github.com/objectstack-ai/objectstack/pull/33995",
"head_sha": "4c28847889",
"session": "session_01QsR2jUcj2x2Wr4UErwBi12",
"premise_still_valid": true,
"summary": "#33401: the read naming no package (served and execution faces, and its /layers) now withholds a package-less row whose key only disabled packages hold, judged through the registry's overlayRowBinding with every holder counted. The answer equals the answer with no row stored; the environment's own item (binding null) is still served; nothing stored is touched, and re-enabling the package serves the row again. #33385: admitEnvironmentQualifier still refuses a name only disabled packages hold, and its refusal now carries a registered-symbol mark. Each _env door (REST meta-qualified-item-route.ts, runtime domains/meta.ts) admits a marked refusal only when the bare read withholds the name, so _env answers 404 on both transports. An enabled package that holds the name through an unhydrated stored row keeps main's 409: pinned as a CONTROL and ablated. protocol.ts is untouched.",
"tests": "Full suites at 6665c856, code identical to 00d7daf5 except the two test doubles: metadata-protocol 341 passed / 9 skipped files, 22894 passed / 43 skipped tests; objectql 597 files, 13170 tests; rest 417 files, 8778 passed / 355 skipped; runtime 609 files, 12349 passed / 19 skipped. At 00d7daf5 the touched rest and runtime files ran 353/353 and 363/363, with typecheck exit 0 on both. Ablations through scripts/ablation-replace.mjs --hold; every mutate leg was rebuilt and ablation-dist-preflight returned 0; every restore leg was rebuilt, preflight --absent returned 0 and the blob matched HEAD. (1) #33401 arm removed: objectql 7 red of 319, exactly the moved cells, every CONTROL green. (A) the mark removed: objectql 1 red of 320 (the row-17 pin); rest 50 red of 353; runtime 50 red of 363. (B, C) the door's withheld check removed: rest 4 red of 353 and runtime 4 red of 363, exactly the four row-serving types' 409 CONTROL. These ablations predate the findOne revert; the CONTROL still asserts that the bare read serves the row (via find), so its 409 leg is not vacuous.",
"gates": "dispatch-gates --commands --repo objectstack-ai/objectstack derives 73 families. All 73 ran at 00d7daf5, every one exit 0. --ran reconciliation: '73 derived, 73 run, 0 NOT-MEASURED, 0 UNRUN' (exit 0). check:dts-closure first exited 1, local tree state: service-knowledge had never been built in this worktree; after building it, exit 0 (258/258). check:type-check-debt ran standalone, since it takes the lock itself: exit 0, 0 errors. check:dual-build-cjs-loads exit 0. check:engine-double-contract exit 0: at b5ea0f63 it was red (PINNED findOne on the two new doubles), fixed in 00d7daf5 by putting findOne back to main's shape. pnpm lint exit 0 at 00d7daf5. Offline body and changeset gates at 4c288478, each exit 0: check-changeset-no-major --event (LEVEL AXIS: clause-② no (narrowing), metadata-protocol none, patch), check-adr-0087-registration, check-empty-changeset, check-nul-bytes, check-partof-closing-keyword (PR_BODY). check-closing-keyword-parity --body: exit 2 is its informational mode; it binds exactly Fixes #33385 and Fixes #33401. PR check-runs at report time: 17 in_progress, 1 queued, 5 skipped, 1 success, 0 failure. CI convergence belongs to the area.",
"dogfood_battery": "00d7daf5 · os-verify-lock VERDICT command-exit 0 (held 2556s on a shared box) · DFBUILD=0 · Test Files 467 passed, 3 skipped (470) · Tests 3959 passed, 42 skipped (4001) · no failures. 4c288478 changes only the changeset Clause-② line.",
"declaration_self_check": "Clause-②: the claim said 'no'; the PR and changeset say 'no (narrowing)'. The #33401 withhold moves served 200 to 404, which is a narrowing. The _env move is 409 to 404, one refusal for another, and no answer widens. #33646 declared 'yes (narrowing)' because its diff both widened and narrowed. #33769 declared 'yes (widening)' for new exports. check-adr-0087-registration's self-test reads 'yes (narrowing)' as 'a diff that widens AND narrows', which this diff is not. The narrowing duties are all present: the '!' title, the **BREAKING** banner, the ADR-0087 'not-required (no-migration-prescription)' marker (Metadata-protocol is none, not narrowed, so the NP refusal does not apply; gate green), and the dogfood battery at the code head (green). Metadata-protocol: none is correct: no authorable key or value is refused; only by-name read answers move. dispatch-gates --tier: no path-derived mandate; 470 changed lines, under 3000. A narrowing owes one contract-review-tier review before the queue. Note: check-changeset-no-major prints 'during the launch window it ships minor' for the narrowing arm, yet its LEVEL AXIS verdict is green at patch. Branch history briefly carried 'yes (narrowing)' (b5ea0f63), corrected in 4c288478.",
"line_budget": "470 changed lines (+445 / -25) across 8 files, under the 3000 human-merge threshold. No skills/** touched, so no skill line ratchet applies.",
"files_changed": [
".changeset/33385-disabled-holders-env-404.md",
"packages/metadata-protocol/src/protocol-exact-qualifier.ts",
"packages/metadata-protocol/src/protocol-meta-item-face.ts",
"packages/objectql/src/package-scoped-exact-qualifier.test.ts",
"packages/rest/src/meta-qualified-item-route.ts",
"packages/rest/src/meta-qualified-item-route.test.ts",
"packages/runtime/src/domains/meta.ts",
"packages/runtime/src/domains/meta-qualified-item-read.test.ts"
],
"deviations": [
"File-surface extension packages/objectql/src/package-scoped-exact-qualifier.test.ts, approved by the area. The R4-B2 _env pin is flipped and renamed with the ruling id, and the #33401 pins sit in that file's real-registry harness as a top-level describe. S4's #32849 also edits this file.",
"Clause-② changed from the claim's 'no' to 'no (narrowing)', per rule 14. The '!' title, the BREAKING banner and the ADR-0087 marker were added to match.",
"Ten non-merge commits, not one per card. Besides the two fixes there are a test-label fix, the marked-refusal rework the area asked for, a CONTROL type list, the findOne revert and four changeset commits. The branch is not claude/issue-*, so no force-push was used to squash.",
"origin/main was merged once, at 74b5505a, before the last changeset and test commits, and not again right before pr_create. main has since moved 8+ commits, none touching the 8 files. git grep for the new symbols on origin/main finds no parallel fix, and GitHub reports mergeable true.",
"The full four-package suites were last run at 6665c856. Only the two edited test files and the rest and runtime typechecks were rerun at 00d7daf5.",
"The _env door makes one extra bare read, only on the disabled-only refusal path.",
"Commit trailers follow common-S5 rule 5 (no model name). The harness's attribution reminder names a model, and the binding rule wins."
],
"mcp_calls": "0 — no GitHub MCP tool called",
"api_writes": "3 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls, giving #33995, via fleet-write run 43730986936); post-stamped comment POST /repos/objectstack-ai/objectstack/issues/33385/comments; post-stamped comment POST /repos/objectstack-ai/objectstack/issues/33401/comments. git push is not counted.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"class: b · Seam: spec:ADR-0150 D4 (action key is (object, name); a package-less action on another object is the environment's own item) → runtime:readMetaItem envelope stamping in packages/metadata-protocol/src/protocol-meta-item-reads.ts (an S4 file) · reach: GET /meta/action/NAME through the REST door, measured in the test harness (probe, not a live server): a package-less registry action on another object is stamped with the disabled holder's _packageId, so the face withholds it (404) where the ruling says serve. Same answer on origin/main and on this branch. · dedupe words: action envelope _packageId, package-less action other object, disabled holder action withheld",
"carrier: none · noted, not filed: for the 14 PACKAGE_SCOPED_READ_TYPES whose by-name read serves no minimal stored row, _env answers 404 in the stored-row fixture, the same as their bare read. Pinned as behaviour; it is not a defect."
],
"loose_ends": [
"The action envelope finding above needs S4's file (protocol-meta-item-reads.ts). The seat should file it, or fold it into S4's work."
]
}
Area note · #33401 · follow-up named (review-c N2 on PR #33995, 6897171983)
The CONTROL this card's acceptance names (a same-name package-less action on another object) is unreachable today because of an envelope defect in protocol-meta-item-reads.tsreadMetaItem: the action is stamped with the disabled holder's _packageId, so the by-name read answers 404. That is the same on main. The seat folded the defect into #33904 as acceptance item 2. Its dev is re-measuring on main after PR #33898, which may already fix it. Either a disabled-holder pin closes it there, or #33904 carries the fix. The CONTROL is tracked there, not here.
Follow-up cards for PR #33995's review nits and loose ends (review-c record 6905931301, review#2 record 6903732565), filed by area S5 before this card closes:
Activity
objectstack-fleet commentedon Nov 15, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jUcj2x2Wr4UErwBi12
Claim: area S5 (lease E1, E1b), #33751 §2 area-lease mode, round 1 — fold member of #33385
Session:
session_01QsR2jUcj2x2Wr4UErwBi12Account:
zhuangjianguoBranch:
claude/area-E1b-33385Worktree:
objectstack-e1b-33385Domain:
domain:serverSeat:
domain:server#5File surface:
packages/metadata-protocol/src/protocol-meta-item-face.ts, read-only check ofpackages/objectql/src/registry.ts(getEnvironmentScopedItem/overlaySlotBinding), tests, the fold's changeset; noprotocol.ts(stop on breach; explain in the report)Container & model:
M,mode:subagent,model: default judgment tier,effort: highClause-②: no
Metadata-protocol: none
Responsibility: objectstack platform code (metadata-protocol bare read) | none | a deployment holding a package-less customization row of a key whose every holder is disabled
Thread-read: none
Premise: holds (the dev re-measures at origin/main before any edit)
Serial constraints cleared: folded into #33385's claim (full serial check there). Own commit, own
Fixes #33401line in the one PR.objectstack-fleet commentedon Nov 15, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jUcj2x2Wr4UErwBi12
os-dev-report
{ "issue": 33385, "folded": [ 33385, 33401 ], "status": "done", "branch": "claude/area-E1b-33385", "pr": "https://github.com/objectstack-ai/objectstack/pull/33995", "head_sha": "4c28847889", "session": "session_01QsR2jUcj2x2Wr4UErwBi12", "premise_still_valid": true, "summary": "#33401: the read naming no package (served and execution faces, and its /layers) now withholds a package-less row whose key only disabled packages hold, judged through the registry's overlayRowBinding with every holder counted. The answer equals the answer with no row stored; the environment's own item (binding null) is still served; nothing stored is touched, and re-enabling the package serves the row again. #33385: admitEnvironmentQualifier still refuses a name only disabled packages hold, and its refusal now carries a registered-symbol mark. Each _env door (REST meta-qualified-item-route.ts, runtime domains/meta.ts) admits a marked refusal only when the bare read withholds the name, so _env answers 404 on both transports. An enabled package that holds the name through an unhydrated stored row keeps main's 409: pinned as a CONTROL and ablated. protocol.ts is untouched.", "tests": "Full suites at 6665c856, code identical to 00d7daf5 except the two test doubles: metadata-protocol 341 passed / 9 skipped files, 22894 passed / 43 skipped tests; objectql 597 files, 13170 tests; rest 417 files, 8778 passed / 355 skipped; runtime 609 files, 12349 passed / 19 skipped. At 00d7daf5 the touched rest and runtime files ran 353/353 and 363/363, with typecheck exit 0 on both. Ablations through scripts/ablation-replace.mjs --hold; every mutate leg was rebuilt and ablation-dist-preflight returned 0; every restore leg was rebuilt, preflight --absent returned 0 and the blob matched HEAD. (1) #33401 arm removed: objectql 7 red of 319, exactly the moved cells, every CONTROL green. (A) the mark removed: objectql 1 red of 320 (the row-17 pin); rest 50 red of 353; runtime 50 red of 363. (B, C) the door's withheld check removed: rest 4 red of 353 and runtime 4 red of 363, exactly the four row-serving types' 409 CONTROL. These ablations predate the findOne revert; the CONTROL still asserts that the bare read serves the row (via find), so its 409 leg is not vacuous.", "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack derives 73 families. All 73 ran at 00d7daf5, every one exit 0. --ran reconciliation: '73 derived, 73 run, 0 NOT-MEASURED, 0 UNRUN' (exit 0). check:dts-closure first exited 1, local tree state: service-knowledge had never been built in this worktree; after building it, exit 0 (258/258). check:type-check-debt ran standalone, since it takes the lock itself: exit 0, 0 errors. check:dual-build-cjs-loads exit 0. check:engine-double-contract exit 0: at b5ea0f63 it was red (PINNED findOne on the two new doubles), fixed in 00d7daf5 by putting findOne back to main's shape. pnpm lint exit 0 at 00d7daf5. Offline body and changeset gates at 4c288478, each exit 0: check-changeset-no-major --event (LEVEL AXIS: clause-② no (narrowing), metadata-protocol none, patch), check-adr-0087-registration, check-empty-changeset, check-nul-bytes, check-partof-closing-keyword (PR_BODY). check-closing-keyword-parity --body: exit 2 is its informational mode; it binds exactly Fixes #33385 and Fixes #33401. PR check-runs at report time: 17 in_progress, 1 queued, 5 skipped, 1 success, 0 failure. CI convergence belongs to the area.", "dogfood_battery": "00d7daf5 · os-verify-lock VERDICT command-exit 0 (held 2556s on a shared box) · DFBUILD=0 · Test Files 467 passed, 3 skipped (470) · Tests 3959 passed, 42 skipped (4001) · no failures. 4c288478 changes only the changeset Clause-② line.", "declaration_self_check": "Clause-②: the claim said 'no'; the PR and changeset say 'no (narrowing)'. The #33401 withhold moves served 200 to 404, which is a narrowing. The _env move is 409 to 404, one refusal for another, and no answer widens. #33646 declared 'yes (narrowing)' because its diff both widened and narrowed. #33769 declared 'yes (widening)' for new exports. check-adr-0087-registration's self-test reads 'yes (narrowing)' as 'a diff that widens AND narrows', which this diff is not. The narrowing duties are all present: the '!' title, the **BREAKING** banner, the ADR-0087 'not-required (no-migration-prescription)' marker (Metadata-protocol is none, not narrowed, so the NP refusal does not apply; gate green), and the dogfood battery at the code head (green). Metadata-protocol: none is correct: no authorable key or value is refused; only by-name read answers move. dispatch-gates --tier: no path-derived mandate; 470 changed lines, under 3000. A narrowing owes one contract-review-tier review before the queue. Note: check-changeset-no-major prints 'during the launch window it ships minor' for the narrowing arm, yet its LEVEL AXIS verdict is green at patch. Branch history briefly carried 'yes (narrowing)' (b5ea0f63), corrected in 4c288478.", "line_budget": "470 changed lines (+445 / -25) across 8 files, under the 3000 human-merge threshold. No skills/** touched, so no skill line ratchet applies.", "files_changed": [ ".changeset/33385-disabled-holders-env-404.md", "packages/metadata-protocol/src/protocol-exact-qualifier.ts", "packages/metadata-protocol/src/protocol-meta-item-face.ts", "packages/objectql/src/package-scoped-exact-qualifier.test.ts", "packages/rest/src/meta-qualified-item-route.ts", "packages/rest/src/meta-qualified-item-route.test.ts", "packages/runtime/src/domains/meta.ts", "packages/runtime/src/domains/meta-qualified-item-read.test.ts" ], "deviations": [ "File-surface extension packages/objectql/src/package-scoped-exact-qualifier.test.ts, approved by the area. The R4-B2 _env pin is flipped and renamed with the ruling id, and the #33401 pins sit in that file's real-registry harness as a top-level describe. S4's #32849 also edits this file.", "Clause-② changed from the claim's 'no' to 'no (narrowing)', per rule 14. The '!' title, the BREAKING banner and the ADR-0087 marker were added to match.", "Ten non-merge commits, not one per card. Besides the two fixes there are a test-label fix, the marked-refusal rework the area asked for, a CONTROL type list, the findOne revert and four changeset commits. The branch is not claude/issue-*, so no force-push was used to squash.", "origin/main was merged once, at 74b5505a, before the last changeset and test commits, and not again right before pr_create. main has since moved 8+ commits, none touching the 8 files. git grep for the new symbols on origin/main finds no parallel fix, and GitHub reports mergeable true.", "The full four-package suites were last run at 6665c856. Only the two edited test files and the rest and runtime typechecks were rerun at 00d7daf5.", "The _env door makes one extra bare read, only on the disabled-only refusal path.", "Commit trailers follow common-S5 rule 5 (no model name). The harness's attribution reminder names a model, and the binding rule wins." ], "mcp_calls": "0 — no GitHub MCP tool called", "api_writes": "3 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls, giving #33995, via fleet-write run 43730986936); post-stamped comment POST /repos/objectstack-ai/objectstack/issues/33385/comments; post-stamped comment POST /repos/objectstack-ai/objectstack/issues/33401/comments. git push is not counted.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "class: b · Seam: spec:ADR-0150 D4 (action key is (object, name); a package-less action on another object is the environment's own item) → runtime:readMetaItem envelope stamping in packages/metadata-protocol/src/protocol-meta-item-reads.ts (an S4 file) · reach: GET /meta/action/NAME through the REST door, measured in the test harness (probe, not a live server): a package-less registry action on another object is stamped with the disabled holder's _packageId, so the face withholds it (404) where the ruling says serve. Same answer on origin/main and on this branch. · dedupe words: action envelope _packageId, package-less action other object, disabled holder action withheld", "carrier: none · noted, not filed: for the 14 PACKAGE_SCOPED_READ_TYPES whose by-name read serves no minimal stored row, _env answers 404 in the stored-row fixture, the same as their bare read. Pinned as behaviour; it is not a defect." ], "loose_ends": [ "The action envelope finding above needs S4's file (protocol-meta-item-reads.ts). The seat should file it, or fold it into S4's work." ] }objectstack-fleet commentedon Nov 15, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jUcj2x2Wr4UErwBi12
Area note · #33401 · follow-up named (review-c N2 on PR #33995, 6897171983)
The CONTROL this card's acceptance names (a same-name package-less action on another object) is unreachable today because of an envelope defect in
protocol-meta-item-reads.tsreadMetaItem: the action is stamped with the disabled holder's_packageId, so the by-name read answers 404. That is the same on main. The seat folded the defect into #33904 as acceptance item 2. Its dev is re-measuring on main after PR #33898, which may already fix it. Either a disabled-holder pin closes it there, or #33904 carries the fix. The CONTROL is tracked there, not here.objectstack-fleet commentedon Nov 16, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jUcj2x2Wr4UErwBi12
Follow-up cards for PR #33995's review nits and loose ends (review-c record 6905931301, review#2 record 6903732565), filed by area S5 before this card closes:
_envreads still refuse 409 (review#2 S4 loose end).review-c's N3 (the 409→501 FROM→TO row) is fixed in PR #33995 itself.