Repository navigation
feat(spec,objectql): the closed-state refusal's own sentences, in every locale (closedStates slice C, ADR-0162 D8) - #38516
Conversation
…every locale (ADR-0162 D8) Two sentence families in the Operation Message Catalog for the engine's closed-state lock (record_closed, four forms; record_closed_delete_blocked, three forms) in en, zh-CN, ja-JP and es-ES, and a closed-state sentence on the upload-link page in its eleven languages. Selection on the upload-link door stays with the one lock read. Claude-Session: https://claude.ai/code/session_01FEkQ5nGQtUA88SthJbYyRw Co-Authored-By: Claude <noreply@anthropic.com>
…e, titled as the writer is served (ADR-0162 D8) The lock's refusal now carries the Operation Message Catalog's sentence as userMessage and as its message behind the code: the record's own write names the object's label and the title the writer would be served under its own field permissions (asked of the security service, never the stored title), a predicate write and a line write take the label form (a line names its master), and a delete refused for what it would also remove names the record asked to be deleted and the label of the object in the way. The developer's sentence moves to developerMessage. A refusal that could not judge the write keeps its developer message. Claude-Session: https://claude.ai/code/session_01FEkQ5nGQtUA88SthJbYyRw Co-Authored-By: Claude <noreply@anthropic.com>
…on the wire (ADR-0162 D8, D10) Claude-Session: https://claude.ai/code/session_01FEkQ5nGQtUA88SthJbYyRw Co-Authored-By: Claude <noreply@anthropic.com>
… a closed record (ADR-0162 D5, D7) Claude-Session: https://claude.ai/code/session_01FEkQ5nGQtUA88SthJbYyRw Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5nGQtUA88SthJbYyRw Co-Authored-By: Claude <noreply@anthropic.com>
…0162 D8) Claude-Session: https://claude.ai/code/session_01FEkQ5nGQtUA88SthJbYyRw Co-Authored-By: Claude <noreply@anthropic.com>
…th is reported (ADR-0162 D8) Claude-Session: https://claude.ai/code/session_01FEkQ5nGQtUA88SthJbYyRw Co-Authored-By: Claude <noreply@anthropic.com>
📓 Docs Drift CheckThis PR changes 3 package(s): 22 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 8 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 185 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 d8ec52a849c3e4a83e34cba81f787a1fbb78b4e1 && git checkout d8ec52a849c3e4a83e34cba81f787a1fbb78b4e1
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 97f9f1f236d67647b8521f0bdd500d430afbe063 8b1644b9ba4fa934bdfaff0288150cfdfff5e9aa && git checkout -B drift-repro 97f9f1f236d67647b8521f0bdd500d430afbe063 && git merge --no-ff 8b1644b9ba4fa934bdfaff0288150cfdfff5e9aa
node scripts/docs-audit/affected-docs.mjs --json 97f9f1f236d67647b8521f0bdd500d430afbe063
|
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5nGQtUA88SthJbYyRw Contract-tier review (isolated sub-agent of this card thread) of slice C at this head; the record follows on this PR. |
…ate slice C (ADR-0162 D8) Claude-Session: https://claude.ai/code/session_01FEkQ5nGQtUA88SthJbYyRw Co-Authored-By: Claude <noreply@anthropic.com>
…he opening check now requires (ADR-0162 item 7) Claude-Session: https://claude.ai/code/session_01FEkQ5nGQtUA88SthJbYyRw Co-Authored-By: Claude <noreply@anthropic.com>
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5nGQtUA88SthJbYyRw Contract reviewServed-tier: Reviewed: PR #38516 (slice C of card #37768, ADR-0162 D8), the net diff of Check-runs on this head, as last read (69 runs). The suite did not finish: the branch moved to
So the full Test Core and the workspace type check have no verdict on ① Derived judgments
② Semver level
Clause-②: One sentence of the changeset body does not hold as written (N2). The changeset is a prose face and can be amended without moving what this record covers. ③ Boundary flags
④ Design judgment
S1 (should-fix) — hardening rule for N1 (nit) — N2 (nit) — the upload-link page no longer shows the approval sentence for the engine's closed-state refusal. N3 (nit) — the cascade judge is given N4 (nit) — hardening rule: a title is named only from a field whose value is display text; an explicit
Implemented-by: VERDICT: PASS |
…play-text field the writer's generic read returns (ADR-0162 D8) The title field gives no title when the generic read withholds it (internal or credential), when it is a reference field, or when the object's closedStates names it. A security-service source that throws names no title. The cascade's title form reads the ids the delete named. The upload-link copy and the changeset state what the page shows. Claude-Session: https://claude.ai/code/session_01FEkQ5nGQtUA88SthJbYyRw Co-Authored-By: Claude <noreply@anthropic.com>
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5nGQtUA88SthJbYyRw Delta contract-tier review of round-1 record 7252370003 (S1, N1–N4) at this head; isolated sub-agent of this card thread. |
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5nGQtUA88SthJbYyRw Contract reviewServed-tier: Delta round of record 7252370003 (head Check-runs on this head, as read at 2026-11-29T08:17Z (70 runs). The suite has not finished.
So Test Core (which carries the spec, objectql and service-storage suites) and the workspace type check have no verdict on ① Derived judgmentsRound-1 findings, each judged on the new head:
The delta's own judgments:
② Semver levelUnchanged: The changeset body was amended in the delta. Each amended sentence was read against the head and holds: the title rule (display text, returned by the generic read, served under the writer's field permissions), the cascade rule ("the title only when the delete names exactly one record by id"), and the upload-link paragraph, which closes round 1's N2. The clause "and so it does when the security service cannot be asked" is true of the head, and stays true if S2 is fixed. ③ Boundary flags
④ Design judgment
S2 (should-fix) — rule for N5 (nit) — the new N6 (nit) — the N7 (nit) — the catalog docblock lists when
No must-fix. One should-fix (S2), three nits (N5, N6, N7). Implemented-by: VERDICT: PASS |
…refusal names its title (ADR-0162 D8) The title rule asks a probe, beside the security source, whether a `security` service is registered at all, read without building one. When the source throws and the probe answers that nothing is registered, there is no field-level security and the refusal names the title D8 gives; the rules on which field a title is read from still apply first. A service that is registered and cannot be resolved still names no title. Only the title rule reads the probe: every other reader of the source answers as before. Docblocks: the upload-link sentence is worded in the link user's resolved context; the title-field rule cites the generic read (internal fields omitted, credentials masked); the catalog's `_untitled` when-lists name the new cases. Claude-Session: https://claude.ai/code/session_01FEkQ5nGQtUA88SthJbYyRw Co-Authored-By: Claude <noreply@anthropic.com>
…urity service is registered (ADR-0162 D8) Claude-Session: https://claude.ai/code/session_01FEkQ5nGQtUA88SthJbYyRw Co-Authored-By: Claude <noreply@anthropic.com>
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5nGQtUA88SthJbYyRw Second delta contract-tier review (of record 7253027593, S2 and N5–N7) at this head; isolated sub-agent of this card thread. |
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5nGQtUA88SthJbYyRw Contract reviewServed-tier: Second delta round, of record 7253027593 (head Check-runs on this head, as read at 2026-11-29T09:29Z (70 runs). The suite has not finished.
So Test Core (the spec, objectql, service-storage and core suites) and the workspace type check have no verdict on ① Derived judgmentsDelta-1 findings, each judged on the new head:
The delta's own judgments:
② Semver levelUnchanged: The one changeset sentence amended in the delta was read against the head and holds: the label form "when a registered security service cannot be resolved", and "with no security service registered there is no field-level security, and the title is named". ③ Boundary flags
④ Design judgment
N8 (nit) — rule: the registration probe answers for the source that sits in the slot beside it. At the head this holds because N9 (nit) — the probe's arm for a host with no async accessor has no test: both files that pin the titled form boot N10 (nit) — the dev's observation in report 7253705270 is filed as "carrier: none". A public read on the kernel or the plugin context of whether a name is registered, which builds nothing, would let the probe drop its message read. Carrier: the core lease seat, as a follow-up card. Nothing in this slice waits for it.
No must-fix and no should-fix. Three nits (N8, N9, N10). Implemented-by: VERDICT: PASS |
Claude-Session: https://claude.ai/code/session_01FEkQ5nGQtUA88SthJbYyRw Co-Authored-By: Claude <noreply@anthropic.com>
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5nGQtUA88SthJbYyRw Regen-provenance: 7253826796 · The head moved by one merge-forward and nothing else: area o5-data advanced the trunk Local re-runs on the merged tree, all exit 0: plugin-approvals 2 files / 15 tests and its typecheck; spec operation-message 112 tests; objectql 2 files / 18 tests; service-storage upload-link-copy 7 tests; the slice's dogfood files plus closed-state-lock 5 files / 108 tests; |
Claude-Session: https://claude.ai/code/session_01FEkQ5nGQtUA88SthJbYyRw Co-Authored-By: Claude <noreply@anthropic.com>
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5nGQtUA88SthJbYyRw Regen-provenance: 7253826796 · A second merge-forward, and nothing else: area o5-data advanced the trunk to Local re-runs on the merged tree, all exit 0: plugin-approvals full suite 138 files / 2142 tests and its typecheck (approval-service moved by this merge); the slice's dogfood files plus closed-state-lock 5 files / 108 tests, the approval-status-mirror system-write test among them; spec operation-message 112; objectql 2 files / 18; service-storage upload-link-copy 7; dogfood, objectql and spec typechecks; |
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5nGQtUA88SthJbYyRw Green head declared: Check-runs on this head, read at 2026-11-29T10:55Z: 61 success, 11 skipped, 0 failure. The one cancelled run is the earlier of two PR-body guards runs, superseded by the body edit; its rerun on this head is success. Contract review: PASS record 7253826796 at The trunk has since moved docs-only to |
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5kjJ6Qm1z2mRox4ZbB 席位核对 — REWORK · L1-b · area o5-data · Head-sha
|
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5kjJ6Qm1z2mRox4ZbB 席位核对 — ACCEPT · L1-b · area o5-data · Head-sha
|
|
repo:objectstack#1 · zhuangjianguo · session_01QsR2jQkLKMF81cpqpt8p1a 席位核对 — ACCEPT · seat 1 re-read after takeover · Head-sha
|
| reading | value |
|---|---|
pr-state.mjs --pr 38516 |
draft · mergeable_state clean · 63 success · 13 expected skip · 0 unexpected skip · 0 pending · 1 cancelled |
the cancelled run |
PR-body guards, started 2026-11-29T10:24:40Z; two later runs of the same guard on this head concluded success (2026-11-29T10:25:31Z and 2026-11-29T11:00:38Z). A superseded run, not a red |
check-expected-skips.mjs --pr 38516, run from a checkout of the trunk tip |
OK — 13 skipped check-run(s), every one in claude/o5-data-approvals-trunk's roster |
check-governed-merges.mjs --pr 38516 |
NOT governed, 0 of 14 paths on the register; 1847 changed lines |
dispatch-gates.mjs --tier on the 14 paths |
no path-derived mandate; clause-② suspect packages/spec/src/system/operation-message.ts |
Contract review. The face is schema (operation-message.ts), so a contract-tier record is owed. Record 7253826796 is a PASS at 37e4afad98 with no must-fix and no should-fix (S1 and S2 closed; nits N8 to N10). It reaches this head over the two Regen-provenance: hops 7253965261 and 7254439120. I re-ran the carry on the committed trees: git diff --name-only --no-renames 37e4afad98 8b1644b9ba over the slice's 14 paths is empty, the 24 paths that did move are all the trunk's, and diff <(git diff 4cc09b16f4 37e4afad98) <(git diff 978bb2b1d7 8b1644b9ba) is empty. Both hops are merges of the base branch, the carry-over arm of the rule, so the record stands on this head and no further round is owed.
Checklist, the items the face does not read.
Part of #37768is right: the card's Release-order line binds the trunk, and this slice closes nothing. No closing keyword sits beside closedStates: the object key and the engine's enforcement of it, released together (ADR-0162 item 1) #37768, Security plugin: an owner with allowDelete gets 403 record_access_denied deleting a row whose object has a field it cannot read (GET of the same row is 200) #38517, closedStates: a person-facing sentence for the refusal the lock gives when it cannot judge a write (ADR-0162 D4, D8) #38518 or core: a public, non-building way to ask whether a service is registered (follow-up of #37768 slice C) #38559. The base is the trunk by design (claim 7250989023,Branch:line).- Scope: 13 paths are on the claim's file surface, and
packages/objectql/src/plugin.tscame in with claim amendment 7253035142. Nothing else moved. - Changeset, read sentence by sentence against the head: the seven keys in en, zh-CN, ja-JP and es-ES are in
BUILTIN_OPERATION_MESSAGES;sayClosedsetsuserMessage,message(RECORD_LOCKED:plus the sentence) anddeveloperMessage, and acannot_judgerefusal goes through none of it; "the title only when the delete names exactly one record by id" isnamed.length === 1injudgeClosedStateCascadeSet, and the by-id delete is the one caller that passesnamed;recordClosedis in all 11 upload-link locales. Three packages atpatch,Clause-②: yes (widening)andMetadata-protocol: noneon both the body and the changeset. - Title rules fail towards no title:
titleFieldOf(id, internal, credential, reference, a fieldclosedStatesnames),servedTitleOf(empty, or equal to the id),titleFieldIsServed(readable and queryable, and every fault but "nothing registered" answers no). The one new store read,storedTitleRow, is a by-id read of two columns on the refusal path only, so the SQL-first check has nothing to flag. - Dogfood battery: not owed (no
!, no(narrowing)arm). The dogfood files this slice adds do not run onpull_request; their reading is the dev's local run on the merged tree (5 files, 108 tests, comment 7254439120).
Residue, one line each.
- N8 (the probe slot's docblock says nothing of a second writer of the source) and N9 (no
LiteKernelcase for the probe's no-async-accessor arm): accepted deviations, no effect on the contract. - N10: filed core: a public, non-building way to ask whether a service is registered (follow-up of #37768 slice C) #38559.
- Could-not-judge keeps the developer sentence: filed closedStates: a person-facing sentence for the refusal the lock gives when it cannot judge a write (ADR-0162 D4, D8) #38518 (in the decision inbox).
- The untitled cascade form is not reachable on the wire for a writer denied the title field: filed Security plugin: an owner with allowDelete gets 403 record_access_denied deleting a row whose object has a field it cannot read (GET of the same row is 200) #38517.
Trunk moved under the PR, read before landing. The trunk tip is 1b5824c01e now (two first-parent commits past the PR's base 978bb2b1d7: the approvals guide, and #38562). Neither touches one of the 14 paths, git merge-tree of the tip and this head is clean, and @objectstack/plugin-approvals still exports what closed-state-system-writes.test.ts imports. The trunk's own PR #38497 runs CI on the merged tree, and that PR, not this one, carries the card's size and its human merge.
Landing: ready, then auto-merge into the trunk (squash, the repository's one merge method). #37768 keeps pm:dispatched until the trunk lands.
Requested by Leehom · project thread
Part of #37768
Clause-②: yes (widening: new keys in the published Operation Message Catalog and the upload-link copy; contract-review-tier review owed)
Metadata-protocol: none
维护者速读
What changes
This slice gives the closed-state refusal (
409 RECORD_LOCKED, ADR-0162) the person-facing sentence D8 rules, in every locale each surface carries. Lands on the trunkclaude/o5-data-approvals-trunk(978bb2b: bfe2df8 plus #37766 slices C and B, the opening-refusal lead #38546 and #37767 piece 3 #38540, merged into this branch with--no-ffat 26b9eec, 470235d, 63d1e62 and 8b1644b); the trunk's own PR carries the card.New catalog keys (
packages/spec/src/system/operation-message.ts,BUILTIN_OPERATION_MESSAGES), in en, zh-CN, ja-JP and es-ES. The en sentences, for review:record_closed{{object}} '{{title}}' is closed, so it and its lines can no longer be changed or deletedrecord_closed_unlabeled'{{title}}' is closed, so it and its lines can no longer be changed or deletedrecord_closed_untitledThis {{object}} is closed, so it and its lines can no longer be changed or deletedrecord_closed_opaqueThis record is closed, so it and its lines can no longer be changed or deletedrecord_closed_delete_blocked{{object}} '{{title}}' cannot be deleted: deleting it would also remove a closed {{blockingObject}} or one of its linesrecord_closed_delete_blocked_untitledThis {{object}} cannot be deleted: deleting it would also remove a closed {{blockingObject}} or one of its linesrecord_closed_delete_blocked_opaqueThis record cannot be deleted: deleting it would also remove a closed record or one of its linesUpload-link page: a closed-state refusal reaches the page with the engine's declared catalog sentence as its
userMessage, and the page shows that sentence (storage-routes.tsrelayUploadLinkRefusal). The page'srecordLockedanswers only aRECORD_LOCKEDwith no declared sentence.upload-link-copy.tsalso gainsrecordClosedin all 11 languages, en:Nothing was attached: the record is closed, so no file can be added to it.; choosing it by the lock read's reason stays with item 2.The engine words the refusal (
packages/objectql/src/closed-state-lock.ts):internal, or a credential type:collectInternalReadFields,collectCredentialFields), a reference field (REFERENCE_VALUE_TYPES), or a field the object'sclosedStatesnames.getReadableFieldsandgetQueryableFieldsfor the writer both hold the field. The service comes from the engine's existing security-service slot (the oneObjectQLPluginfills). An empty slot, or a source that answersnullor nothing, is no field-level security, so the title is served. So it is when the source throws and nosecurityservice is registered at all:ObjectQLPluginfills a second slot beside the source (SECURITY_SERVICE_REGISTERED_SLOT, not public surface) with a probe that answers whether one is registered, read without building one, and only this title rule reads it. A source that throws for a service that is registered (a factory that throws, or one the sync accessor does not build), a service that cannot say, or a field the writer is not served or is served masked, gives the label form. The rules on which field a title is read from apply first, on every kernel.record_closed_untitledof the master)._unlabeled/_opaqueforms. Never the API name.userMessage= the sentence;message=RECORD_LOCKED:followed by the sentence (the pending lock's shape);developerMessage= the developer sentence (API names), which the REST layer does not relay. No new member on the published error body;ClosedStateRefusalWordingis module-internal (not exported from the package index).packages/objectql/src/plugin.tssets the registration probe beside the security source. The probe answersfalseonly on the kernel's branded "never registered" rejection (isServiceNotRegisteredError); a factory-registered service the sync accessor refuses ("is async") counts as registered and is not built. Every other reader of the source slot (theReadableIdsresolution, the search's queryable-field read) reads only the source and answers as before.engine-cascade-planning.ts,engine-delete-and-aggregate.tsandengine.tspassfacade,validationMessageContextandloggerinto the hosts that judge the cascade and the delete, and the by-id delete passes the id it names to the cascade.engine.tskeeps its line count (the facade ceiling).Measured answers to the four mechanism assumptions
message, with nouserMessage. RESTmapDataErrorwrites themessage(without itsCODE:head) to the body'serror, which the Console toast shows. Pinned on the wire now (closed-state-refusal-wire.dogfood.test.ts):erroranduserMessageboth carry the catalog sentence;developerMessage,reason,lockReasonandblockingObjectare not in the body.lifecycle-hooks.ts,lockedError+recordTitleOf) carries its sentence asuserMessageandRECORD_LOCKED: sentenceasmessage, and REST relays a declareduserMessage(withDeclaredUserMessage). The engine reaches the same field-permission reading through the security-service slot objectql already owns (SECURITY_SERVICE_SOURCE_SLOT), with a registration probe beside it in a second internal slot (SECURITY_SERVICE_REGISTERED_SLOT, not public surface). No dependency on plugin-approvals, no new service, no new published type or error member. So noneeds_decision.recordClosedis in all 11.pending(on opening) andapproved(on decision) both land on a record closed by another field. They are system writes, and the caller's own write is refused 409 between and after (closed-state-system-writes.test.ts). The assignment rules write no stored record: the engine evaluates them only on a row it is inserting, before the write, and an update never evaluates a rule (assignment-rules.tsdocblock, "An update never evaluates a rule"). A caller inserting a row already in its closed state has it routed, and the insert lands (an insert of the record itself is not judged). The caller's later write is refused, and the refused update ran no rule.Tests
packages/spec/src/system/operation-message.test.ts, new describe for the D8 keys. Checks: each key in every locale with placeholder parity; translations differ from en; each form differs from its pending twin and carries no approval word; noRECORD_LOCKED,closedStates,master_detail,_idor cascade wording; distinct from every other key; zh and ja render, de falls back to en; a deployment override wins.packages/services/service-storage/src/upload-link-copy.test.ts:recordClosedexists in every platform locale and differs fromrecordLocked; aRECORD_LOCKEDwith no declared sentence readsrecordLocked; the table's locales equal the platform's.packages/qa/dogfood/test/closed-state-refusal-sentence.test.ts, engine over SQLite with a field-security stand-in in the engine slot. Covers:nullgives the title;internal, credential), a reference title field, and a title fieldclosedStatesnames: the label form on the record's update, its delete, and a cascade-delete root, with a display-text control;getQueryableFieldsfalls to the label form;developerMessagekeeps the API name;userMessage;warnand the refusal stands in the label form (ablation: with the report removed from the rebuilt dist, this case goes red withexpected [] to have a length of 1);code+status, and every person-facing string is checked for the absence of every API name, record id and state value.packages/qa/dogfood/test/closed-state-refusal-wire.dogfood.test.ts,bootStackwith the realSecurityPlugin. Covers:PERMISSION_DENIED); row access refuses, so the same body with the ids normalized (control: the owner gets 409).packages/qa/dogfood/test/closed-state-system-writes.test.ts: the approval mirror and assignment-rule results above. The host runs the approvals sweeps (noteSweepClockScheduled), as Approvals: refuse an approval that cannot show itself on a closing field when it opens, and never write a closed value for an abandoned request (ADR-0162 item 7) #37766 slice B's opening check requires. It registers nosecurityservice, so the caller's refusal there names the record's title.packages/qa/dogfood/test/closed-state-refusal-security-source.test.ts, realObjectKernelwithObjectQLPlugin, by what the kernel registers undersecurity. Covers:securityservice registered: the title on update, delete and a cascade-delete root;internal, credential), a reference title field and a title fieldclosedStatesnames: the label form, on update, delete and a cascade-delete root;securityservice registered as a factory that throws: the label form;securityservice registered as a factory the sync accessor does not build: the label form, and the refusal builds nothing (the factory's call count and the other readers' answers are the same before and after);resolveReadableIdsSecurity,resolveSearchQueryableFields) give the same answer before and after a refusal, with no service registered and with a factory that throws;Suite readings (head 8b1644b, the merge of trunk 978bb2b; the slice's 14 paths are byte-identical to 37e4afa)
On the merged tree 8b1644b, closure rebuilt first: plugin-approvals full suite (138 files / 2142 passed) and
typecheck; the slice's dogfood files withclosed-state-lock.test.ts(5 files / 108 passed,closed-state-system-writes2/2) and dogfoodtypecheck; objectqlregistry-closed-state-fold.test.tsandfederated-injected-column-readers.test.ts(2 files / 18 passed) andtypecheck; specoperation-message.test.ts(112 passed) andtypecheck; service-storageupload-link-copy.test.ts(7 passed). Every run VERDICT command-exit 0.On the earlier merged tree 63d1e62 (trunk d313098), closure rebuilt first: plugin-approvals
approval-opening-refusal.test.tsandapproval-opening-check-37766.integration.test.ts(2 files / 15 passed) andtypecheck; objectqlregistry-closed-state-fold.test.tsandfederated-injected-column-readers.test.ts(2 files / 18 passed) andtypecheck; specoperation-message.test.ts(112 passed) andtypecheck; service-storageupload-link-copy.test.ts(7 passed); the slice's dogfood files withclosed-state-lock.test.ts(5 files / 108 passed). Every run VERDICT command-exit 0.The readings below were taken at 37e4afa (the 7f9538f tree plus the changeset), before the merge.
pnpm --filter @objectstack/objectql typecheckthen the full objectql vitest run: Test Files 644 passed (644) · Tests 14559 passed. VERDICT command-exit 0, at 7f9538f's tree.Dogfood:
closed-state-refusal-security-source(9),closed-state-refusal-sentence(19),closed-state-refusal-wire.dogfood(9),closed-state-system-writes(2) and the trunk'sclosed-state-lock.test.ts: 5 files / 108 tests passed, then dogfoodtypecheck. VERDICT command-exit 0. The closure (@objectstack/dogfood^...) was rebuilt from this tree first.service-storage
upload-link-copy.test.ts(7 passed) andtypecheck; specoperation-message.test.ts(112 passed) andtypecheck. VERDICT command-exit 0. This round changed only docblocks in those two packages.Earlier rounds, sources unchanged since: service-storage full test (88 files, 1745 passed, 1 skipped); spec full test (915 files, 28942 passed, 1 todo, at 67dd8de); plugin-approvals opening-check and status-mirror integration files (4 files / 112 tests).
Acceptance notes
userMessage; itsmessageis the developer sentence. This follows the pending lock's bound refusal. D8's family has no form for it; see the report's open question. Carrier for a sentence form of its own: closedStates: a person-facing sentence for the refusal the lock gives when it cannot judge a write (ADR-0162 D4, D8) #38518.securityservice registered names the title; a registered one that cannot be resolved does not. On a kernel withObjectQLPluginand nosecurityservice, the source throws and the registration probe answers that nothing is registered, so the refusal names the title D8 gives (after the title-field rules). A service registered as a factory, one that throws or one the sync accessor does not build, takes the label form, as does an engine whose source throws with no probe beside it. An engine whose slot is empty, or whose source answersnull, names the title.readable: falseis refused the delete of its own customer, in its own organization, with 403PERMISSION_DENIED(record_access_denied). The security layer refuses before the engine is reached, while the same writer's GET of that row answers 200. Reported out of scope (plugin-security lease), not worked around. Carrier: Security plugin: an owner with allowDelete gets 403 record_access_denied deleting a row whose object has a field it cannot read (GET of the same row is 200) #38517.dispatch-gates.mjswas given this slice's 14 paths explicitly, because its default change set is measured againstorigin/mainand would include slices A and B.warnthrough the engine's logger (threaded to the cascade judge's host), and the refusal stays whole in the label form (check:durability-log-level).overlap-check(baseorigin/claude/o5-data-approvals-trunk): VERDICT overlap exit 1, for the one known fix(plugin-security)!: an elevation's write is judged as it will be stored, and its option bag never widens it past its caller's organization wall #38268 conflict inengine-delete-and-aggregate.tsandengine-update.ts, which exists between the trunk tip and fix(plugin-security)!: an elevation's write is judged as it will be stored, and its option bag never widens it past its caller's organization wall #38268 already (measured withgit merge-tree). This slice adds no new conflicted file.Verification
Read first, by risk:
packages/objectql/src/closed-state-lock.ts,titleFieldOf,titleFieldIsServedandservedTitleOf, withpackages/objectql/src/plugin.tssecurityServiceRegistered: the rules that decide whether a title appears.closed-state-lock.ts,judgeClosedStateCascadeSet, andengine-cascade-planning.tscascadeDeleteRelations: thenamedids decide titled versus untitled for a cascade.packages/spec/src/system/operation-message.ts: the seven new keys in four locales.Two-minute check:
pnpm --filter @objectstack/dogfood exec vitest run --maxWorkers=2 test/closed-state-refusal-wire.dogfood.test.ts. Expect 9 passed, including "a writer whose field permissions withhold the title field is told the label form, never the stored title".Gates (run at 37e4afa; reconciled at 8b1644b)
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackwas given this slice's 14 paths (the diff against the trunk, then 4cc09b1; the same 14 paths against 978bb2b) and derived 101 commands (the 98 of last round pluscheck:init-service-contract,check:startup-registry-verdictandcheck:wildcard-fallthrough, fromplugin.ts). All 101 ran unlocked at 7f9538f, one after another, each exit code captured before any pipe: 100 exited 0, andcheck:dual-build-cjs-loadsansweredPREREQUISITE NOT MET(exit 3, three packages had no dist in this worktree). After building those three it exited 0. The 21 families the changeset path derives were re-run at 37e4afa, the changeset's own commit, and all 21 exited 0.--ranreconciliation, derived at 8b1644b against 978bb2b:✓ dispatch-gates --ran: 101 derived famil(ies) accounted for — 101 run, 0 NOT-MEASURED (a DERIVED zero — all 101 recorded an exit code and none of them is 3).origin/main(by order, the trunk is not merged with main). Families CI runs on the PR are read from the PR's check-runs, not re-run here.🤖 Generated with Claude Code
https://claude.ai/code/session_01FEkQ5nGQtUA88SthJbYyRw