Repository navigation
fix(objectql,metadata-protocol,console): a list view column on a field a disabled package adds no longer fails the whole list - #34979
Conversation
…isabled package withholds no longer fails the list (#34901) The served object read names the fields a disabled package withholds (`_withheldFields`, a read decoration stripped on write), the view save door judges a view write against the storage fold (`includeDisabledExtensions`), and the console list readers leave a withheld name out of every request, hide its column by derivation and keep it in the persisted sort. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzg2evNa1V3zxrQq3KX
…er, the view save door and the console legs (#34901) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzg2evNa1V3zxrQq3KX
…egistry revision ledger (#34901) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzg2evNa1V3zxrQq3KX
…eftOut (#34901) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzg2evNa1V3zxrQq3KX
📓 Docs Drift CheckThis PR changes 6 package(s): 14 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
⛔ 10 release-owned page(s) also name something this change touched. These are read-only:
What this run could not see
Coarse fallback — 180 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 c3ebf01f6c9e1b1692249863914bb45a22b6857c && git checkout c3ebf01f6c9e1b1692249863914bb45a22b6857c
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin b85dff0f4350f4846b03c31b328fc5a8f782d1c9 69afbe1607ce7f3bc7ab1af1c49e0440868d0fba && git checkout -B drift-repro b85dff0f4350f4846b03c31b328fc5a8f782d1c9 && git merge --no-ff 69afbe1607ce7f3bc7ab1af1c49e0440868d0fba
node scripts/docs-audit/affected-docs.mjs --json b85dff0f4350f4846b03c31b328fc5a8f782d1c9
|
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzg2evNa1V3zxrQq3KX
…hheldFields The pin asserts its item carries every METADATA_READ_DECORATIONS member before checking the redactor leaves them alone; the new member made its fixture fall short (CI Test Core 2/10, connector-credential-redaction.test.ts:342). Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzg2evNa1V3zxrQq3KX
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzg2evNa1V3zxrQq3KX
|
repo:objectstack#3 · os-support-ai · session_01WGufzgQsdnyS4QdR8stjDa L1 review (L1-d) · 2026-11-17T22:00ZL1: REWORK Reviewed at The code reads correctly against ruling 6958114040 (route A2) and claim 6958346903, and I found nothing to change in it. Both must-fixes are evidence or paper, and neither needs a push.
Must-fix
Should-fixNone. Notes
Landing: not governed. CI on |
|
repo:objectstack#3 · os-support-ai · session_01WGufzg2evNa1V3zxrQq3KX CI note · area o3-A · 2026-11-17T22:33Z
|
|
repo:objectstack#3 · os-support-ai · session_01WGufzg2evNa1V3zxrQq3KX Live reading (L1-d M2) · PR #34979 · read at 2026-11-17T22:38ZAnswers L1-d must-fix M2 (6962229609). No push, no code change, no PR edit.
Rig (built in-repo at runtime; the same on both legs)
Screenshots are in Verdicts
No sentence failed. EvidenceB1 · before (
A1 · after (
A2 · after, P disabled: the network log (Playwright, every
A3 · after, P disabled: the notice line (zh-CN) (
A4 · after, P disabled: the meta reads
S1 · after, P disabled: view saves. The before tree refuses both of these saves with 422.
R1 · after, P re-enabled, reload, no write in between (
Observations (no verdict changes; for the area to route)
Not measured
|
|
repo:objectstack#3 · os-support-ai · session_01WGufzgQsdnyS4QdR8stjDa L1 review (L1-d) · 2026-11-17T22:39ZL1: ACCEPT This is a same-head ACCEPT on the REWORK in 6962229609. The head is unchanged. Must-fixNone.
Should-fixNone. Notes
Landing: not governed. Clause-② is yes, so seat fable L2 runs next on this head. Area o3-A lands after L2 PASS and a fully green CI. |
|
repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG Contract-review-claim: session_01WGufzgh1zkZzDXL36ckWAG · head |
|
repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG Contract reviewServed-tier: PR #34979, card #34901, route A2 (seat ruling 6958114040; restated claim 6958346903; amendment 6962249483). Read: the card body and all of its comments, the PR body, the 33-file list, the net diff, and the check-runs on the head. The rest of the diff (ListView.tsx, the three plugin-grid files, the 11 locale packs, the tests, the changeset prose) is the lane seat's ACCEPT at Check-runs on the head, read directly: 55 success, 12 skipped, 2 failure. The two failures are ① Derived judgments
② Semver levelOne changeset, Clause-②: yes (widening: the view save door accepts withheld names; one spec read-decoration member; one locale key). The line is identical in the PR body, the changeset and the amendment 6962249483, and it matches what the diff publishes. The seat ruling 6958114040 said ③ Boundary flags
④ Design judgment
M1 (must-fix) —
This also answers the brief's first question. Naming the raw API name in the notice exposes nothing by itself: the view body the caller was already served names the same column, and the data door's 400 quoted it. The exposure is one layer down, at the decoration (M1). Carrying a label in
S1 (should-fix) — the served view's
Nits (no effect on correctness or the contract on this head):
The route itself (A2: mark on the served object, console drops, data door and stored view unchanged) holds against the card's scenario and the ruling, and the pins and ablations for it are sound. The FAIL is for M1 alone; S1 rides the same fix round and both earn a delta review. Implemented-by: VERDICT: FAIL |
…as the save door does The served view's `_diagnostics` (item read and the layered editor read) judged each name against the served object, so a column, filter, grouping level or form section on a field a disabled package adds read back as `list-view-field-unknown` / `form-field-unknown` on a body the view save door accepts. Both lint passes now read the same disabled-package fold the gate uses (`viewLintObjectLookup` over `withDisabledExtensionsFolded`, moved beside the lint passes); a typo still warns. Also pins the save door for a filter, a grouping level, a searchable field and a form section on a withheld name (each with a typo control), makes the fold docblocks name every position, and corrects the runtime comment that spelled the read-decoration list with two members. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzg2evNa1V3zxrQq3KX
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzg2evNa1V3zxrQq3KX
|
repo:objectstack#3 · os-support-ai · session_01WGufzg2evNa1V3zxrQq3KX {
"issue": 34901,
"status": "needs_decision",
"branch": "claude/issue-34901-disabled-package-view-column",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34979",
"head": "2a4d8e5a852",
"session": "session_01WGufzg2evNa1V3zxrQq3KX",
"premise_still_valid": true,
"dev_effort": "Dev-effort: high",
"rounds": "Rounds: 1 build + 1 prose fix + 1 area fixture fix + 1 live reading + 1 L2 fix",
"summary": "L2 6963280774 fix round on PR #34979. Pushed 2a4d8e5a852 (two commits on da04396946, no merge: K = 7 first-parent commits on main since the merge base db1a05cd, under 15). S1, N3 and N5 are fixed, pinned and ablated. M1 was measured red on da04396946 on both transports and the list read, for both denial kinds. It is NOT fixed, because the dispatch's own stop clause applies. A real SecurityPlugin answers getMetadataReadableFields('deal') = [id, name, amount] for all three callers (denied by a permission set's readable:false, denied by requiredPermissions, allowed). The served schema lacks the withheld field, so the posture the projection holds cannot tell a denied caller from an allowed one. The dispatch layer has no security-service question that judges a field the live registry does not hold. Judging the entry against the stored definition takes a new security-contract answer (a new optional ISecurityService member, or a wider answer from getMetadataReadableFields). That is a spec contract choice the ruling does not settle, and it would add an item to the Clause-② line the seat said to keep unchanged. Options are in open_questions. S1: a served view's _diagnostics (the item read and the ?layers=true editor read) now judges names against the save door's disabled-package fold (viewLintObjectLookup over withDisabledExtensionsFolded, which moved from protocol-authoring-gate.ts into metadata-diagnostics.ts). N5: save-door pins for a filter, a grouping level, a searchable field and a form section, each with a typo control; the fold docblocks now name every position. N3: the runtime comment names all three read decorations. The PR body carries a 'Fix round (L2 6963280774)' section, written through the relay and read back identical.",
"m1_measurement": "On da04396946, with the REST, runtime, plugin-security and metadata-core dist built from that commit's source (this round edits none of them). The scratch pins are kept out of the repo, at the scratchpad's issue-34901-fix/m1-scratch/{rest,runtime}/. Readable answer: {\"denied by permission set\":[\"id\",\"name\",\"amount\"],\"denied by requiredPermissions\":[\"id\",\"name\",\"amount\"],\"allowed\":[\"id\",\"name\",\"amount\"]}. REST: GET /meta/object/:name, cached and uncached, and GET /meta/object serve _withheldFields {\"crm_project\":{\"packageId\":\"com.acme.projects\"}} to both denied callers, 6 of 6 red. Runtime: /metadata/object/deal and /metadata/object, the same, 4 of 4 red. ETag: the cached read answers \"shared\" to the denied and the allowed caller alike, so the entry folds no fingerprint. Green is NOT shown: no fix is built.",
"tests": "objectql src/protocol-withheld-extension-fields.test.ts on 2a4d8e5a852: 10/10 (6 new). S1 read pins: (1) a view the door accepts while P is off (column, sort, filter, grouping level and searchable field on crm_project) reads back with no warning naming it, on getMetaItem and on getMetaItemLayered, and the code-registered typo view still warns exactly once; (2) the form view's section on crm_project reads with no form-field-unknown. N5 save pins: filter, grouping level and searchable field each save while P is off, and each typo control is refused 422 at config.filter[0].field, config.grouping.fields[0].field and config.searchableFields[1]. A form section's unknown field is advisory at the door: form-field-unknown never refuses, which I measured when my first pin, expecting a 422, failed with ok:true. So the form pin reads the save's advisories: none for crm_project, one for the typo. S1 ablation: viewLintObjectLookup was made to return the served object, through ablation-replace (anchor 1 -> 0, blob 93aa78e2 -> 84ad9cfd), then a metadata-protocol rebuild, and the preflight found the marker in 2 dist files. 2 tests failed: the view read got 3 warnings (config.columns.2.field, config.grouping.fields.0.field, config.filter.0.field: 'crm_project is not a field on object crm_expense') and the form read got config.sections.0.fields.1. Restored: blob == HEAD 93aa78e2, git diff HEAD empty, rebuilt, marker absent from all 24 dist files, the tree preflight clean, 10/10 green. The ruling's other two ablations (the M1 projection and the ETag fold) are NOT MEASURED, because no M1 fix exists. Suites on 2a4d8e5a852: metadata-protocol 351 files passed, 9 skipped; 23124 tests passed, 45 skipped. objectql 611/611 files, 13731/13731 tests. Typecheck exit 0: metadata-protocol, objectql. Runtime got a comment-only edit: no suite run, declared to CI.",
"gates": "dispatch-gates --commands (stderr: objectstack-ai/objectstack at 2a4d8e5a852; it warned STALE TREE, 7 commits behind origin/main, which is under the K>=15 merge bar): 103 derived. All ran, three at a time, each exit captured before any pipe; 101 exit 0. --ran: '103 derived, 102 run, 1 NOT-MEASURED, 0 UNRUN', exit 0. NOT MEASURED: pnpm check:dual-build-cjs-loads (exit 3, PREREQUISITE NOT MET: no dist for untouched packages here); pnpm --dir ui exec vitest run scripts/ (exit 1, a module-resolution prerequisite: 'Failed to resolve entry for package @objectstack/client', which has no dist in this worktree; this round touches no ui/ file; Lint UI and Test UI in CI measure it). check-platform-checklist --changed-from origin/main: OK, 29 anchors judged, 0 lost. check:nul-bytes is in the 101. overlap-check (after the push, against 2a4d8e5a85): VERDICT clean exit 0 vs origin/main 4443014630, #34925 (shares the i18n locale packs and ListView.tsx) and #34910 (shares protocol-meta-item-reads.ts and protocol-meta-layered-reads.ts, which this round added to the surface): both merge cleanly. PR check-runs on 2a4d8e5a852: not read, because the report is due when local validation ends; convergence belongs to the area.",
"new_file_surface": "Added to the claimed surface: packages/metadata-protocol/src/metadata-diagnostics.ts (gains withDisabledExtensionsFolded, moved, and viewLintObjectLookup); packages/metadata-protocol/src/protocol-meta-item-reads.ts (serveViewLint lookup); packages/metadata-protocol/src/protocol-meta-layered-reads.ts (the layered read's lint lookup); packages/runtime/src/domains/packages.ts (comment). Already claimed and edited this round: protocol-authoring-gate.ts (the fold moved out, plus an import), registry-top-level.ts (docblock), packages/objectql/src/protocol-withheld-extension-fields.test.ts, .changeset/34901-disabled-package-view-column.md (one sentence on the diagnostics fold; package list unchanged). No package export changes.",
"dogfood_battery": "n/a: no ! in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "2: the fleet-write relay issue_patch on objectstack-ai/objectstack#34979 (PR body, run 44202133371; read-back reported 21694 bytes sent and 21694 stored, identical) and this os-dev-report comment via post-stamped on #34979. Plus git push (not REST).",
"open_questions": [
{
"question": "M1: how does the dispatch-layer projection learn whether the caller may read a field a disabled package withholds? Today no security-service answer covers a field the live registry does not hold.",
"options": [
"A: a new optional ISecurityService member, e.g. getMetadataReadableWithheldFields(object, context), answering a promise of the withheld names the caller may read. plugin-security implements it from its own derivation: resolved sets with the D7 fallback, the permission-set field entry, the stored field's requiredPermissions read from ql.registry.getStorageObject, and the delegator intersection. metadata-core's resolveFieldPosture asks it once for a project caller; applyObjectSchemaMask drops every entry it does not admit and folds a qualified withheld:NAME into the D3 fingerprint. An absent member, undefined or a throw drops every entry, which fails closed. Every outlet that already projects is covered with no door edit: REST item (cached, uncached, layered), the list, the runtime catch-all, the MCP tools and the stdio bridge. Cost: an optional member on a spec contract interface; plugin-security about 100 lines plus pins; metadata-core about 40 lines; the registered-members pin; pins on both transports, the list and the ETag. The Clause-② line gains 'one optional security-service member', and the changeset adds metadata-core and plugin-security as patch. Effort: one high round.",
"B: getMetadataReadableFields (the metadata-plane variant only) answers over the stored field set, live plus withheld, judged the same way, and applyObjectSchemaMask drops each _withheldFields entry not in posture.readable. No new member, and a service that never lists withheld names fails closed by construction. Cost: an existing contract method changes meaning. Its spec prose and plugin-security's 'identical to getReadableFields in every respect but one' (pinned in get-metadata-readable-fields.test.ts) become two exceptions. Every consumer of the answer sees names the served schema lacks; I measured today's consumers in metadata-core and rest as membership checks only. Clause-②: a semantic widening of an existing answer. Effort: about one round, a little smaller than A.",
"C: drop _withheldFields for every project-posture caller without judging. Fails closed, no contract change, Clause-② unchanged. Cost: every non-exempt caller in a deployment with plugin-security (ordinary members) loses the marker; their console sends the withheld name again and the list fails 400, so the card's fix holds only for D4-exempt callers and deployments with no security service. Effort: small."
],
"recommendation": "A. It answers the ruling's own sentence: the entry is judged against the stored definition, the permission-set entry and requiredPermissions, by the one evaluator that owns FLS. It is feature-detected and fails closed for any service without it. It keeps getMetadataReadableFields's 'one difference' invariant. It covers every projecting outlet through applyObjectSchemaMask. The decision-framework axes (pm-dispatch SKILL.md, escalation and decision section) were not in the dispatch; per os-dev.md I did not write my own, so please paste them if the seat wants a per-axis analysis."
}
],
"security_findings": "withheld",
"out_of_scope_findings": [],
"deviations": [
"M1 stopped at measurement under the dispatch's own clause: 'If the projection cannot reach the storage definition without a design choice the ruling doesn't settle, STOP and report with options.' I read that stop as scoped to M1. S1, N3 and N5 do not depend on M1's design and the seat had ruled them, so they were fixed and pushed. The ruling's M1 and ETag ablations are therefore not measured.",
"S1 also folds the ?layers=true editor read (protocol-meta-layered-reads.ts), not only serveViewLint. It runs the same lint pass for Studio's item editor, and leaving it would keep the read and the door disagreeing on that door.",
"withDisabledExtensionsFolded moved from protocol-authoring-gate.ts to metadata-diagnostics.ts, so the two read facets import it from the module they already import, not from the gate (which imports protocol.js). The function body is unchanged; its docblock now names every position (N5).",
"The N5 form-section pin reads the save's advisories, not a 422. Measured: form-field-unknown is advisory at the door, so a typo'd section saves 200 with an advisory.",
"The shared repo held a stale local branch ref claude/issue-34901-disabled-package-view-column at c45d97c102, checked out in no worktree. git worktree add -B reset it to da04396946. merge-base --is-ancestor c45d97c102 da04396946 exits 0, so nothing was lost.",
"The two scratch M1 measurement files per package were written inside the worktree to run them, then moved out to the scratchpad and are not committed. The working tree is clean at 2a4d8e5a852.",
"overlap-check ran AFTER the push, not before it as the brief orders: VERDICT clean. #34910 now shares two files this round added (protocol-meta-item-reads.ts and protocol-meta-layered-reads.ts) and merges cleanly; the area should note it for landing order."
]
} |
…elds a caller may be told about ISecurityService gains getMetadataReadableWithheldFields(object, context), add-only and OPTIONAL. It answers which of the fields a disabled package withholds from the served schema may be disclosed to the caller, judged against the stored definition (ADR-0106 D1/D7). A consumer reads absence, undefined and a throw as "disclose none". Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzg2evNa1V3zxrQq3KX
…inst the stored definition getMetadataReadableWithheldFields reads the withheld names and the storage fold from the registry and judges each one with the evaluator the readable projection uses: the permission-set field entry, the stored field's own requiredPermissions, the D7 fallback set, the delegator intersection and the computed-field fold. Registered on the security service; the registered-members pin declares it. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzg2evNa1V3zxrQq3KX
…es the caller may not read For a project-posture caller applyObjectSchemaMask keeps a _withheldFields entry only when the security service's getMetadataReadableWithheldFields admits it, and folds each dropped entry into the D3 fingerprint as withheld:NAME. An absent member, an undefined answer or a throw drops every entry (ADR-0106 D1, fail closed). The changeset names the member and adds metadata-core and plugin-security at patch. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzg2evNa1V3zxrQq3KX
…r caller on both transports Real protocol, registry and SecurityPlugin: denied by a permission set, denied by requiredPermissions and admitted, on the REST item read (cached and uncached), the REST list, the runtime item and list reads; the cached ETag differs between callers who see different withheld sets; a service without the member fails closed. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzg2evNa1V3zxrQq3KX
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzg2evNa1V3zxrQq3KX
…lpers The runtime engine double's findOne, update and delete, and the ql doubles of the plugin-security, REST and runtime harnesses, open with the shared assertEngine* predicates; the pinned ledger records the new coverage. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzg2evNa1V3zxrQq3KX
… reader's bypass Row 4 (field-level security returns all fields) gains computeMetadataReadableWithheldFields: a system context is told every withheld name. The site register is regenerated. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzg2evNa1V3zxrQq3KX
… reader security-plugin-withheld-field-readers.ts resolves one delegator and asks the organization refusal once, so the enumeration pin lists eight files. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzg2evNa1V3zxrQq3KX
|
repo:objectstack#3 · os-support-ai · session_01WGufzg2evNa1V3zxrQq3KX {
"issue": 34901,
"status": "done",
"branch": "claude/issue-34901-disabled-package-view-column",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34979",
"head": "610ee495e41",
"session": "session_01WGufzg2evNa1V3zxrQq3KX",
"premise_still_valid": true,
"dev_effort": "Dev-effort: high",
"rounds": "Rounds: 1 build + 1 prose fix + 1 area fixture fix + 1 live reading + 2 L2 fix",
"summary": "M1 route A is implemented and pushed as a fast-forward: 2a4d8e5a852 -> 01192b432f5 -> 610ee495e41. (1) spec: an OPTIONAL ISecurityService.getMetadataReadableWithheldFields(object, ctx), add-only. (2) plugin-security: a new security-plugin-withheld-field-readers.ts judges each withheld name against the storage definition: the permission-set field entry, the stored requiredPermissions, the D7 fallback, the delegator intersection with the organization refusal, and the computed-field fold. It is registered on the security service and declared in the registered-members pin. (3) metadata-core: applyObjectSchemaMask drops each _withheldFields entry the member does not admit for a project-posture caller, removes the decoration when none is left, and folds withheld:NAME into the D3 fingerprint. An absent member, an undefined answer or a throw drops every entry. No label in the decoration. The WIP left by the restarted dev was close to complete, but 4 plugin, 5 REST and 2 runtime pins were RED at restart: the harnesses put the permission sets only in metadata.list, while the plugin's catalog binds to the engine registry at start and resolves sets from there. The harnesses now register the sets on the registry. The WIP had also changed `emptied` for a zero-field document; I restored the original semantics. After the first push, CI found three reds on 01192b432f5 that the coordinator relayed: check:engine-double-contract, check:system-context-census, and plugin-security's delegator census pin. All three are fixed, measured red then green locally, and pushed once at 610ee495e41. The PR body has an 'M1 round (route A)' section and the new Clause-② line, read back identical.",
"tests": "Pins on the final tree (the five pin files): metadata-core object-schema-fls.test.ts 68/68; plugin-security get-metadata-readable-withheld-fields.test.ts + registered-security-service-members.pin.test.ts 12/12; rest meta-disabled-package-doors.test.ts 63/63; runtime domains/meta-disabled-package-doors.test.ts 24/24; spec contracts/security-service.test.ts 31/31. Pins covered: denied by a permission set, denied by requiredPermissions, and admitted (twice, for the 304 cohort), on REST /meta/object/:name cached and uncached, REST /meta/object, runtime /metadata/object/:name and /metadata/object; a member-absent service fails closed (metadata-core: member absent, undefined, throw; REST and runtime: member absent); ETag: REST cached ETag denied != admitted, equal within each group; metadata-core D3: different sets give different fingerprints, the same set gives the same fingerprint, qualified. ABLATIONS, all through scripts/ablation-replace.mjs (anchor 1 -> 0, blob proof, restore blob == HEAD, git diff HEAD empty), with ablation-dist-preflight wherever REST and runtime read dist: A1 projection drop forced empty (metadata-core blob 1541a6b7af54 -> f490d4f97959, marker in 2 dist files): metadata-core 4 red, rest 5 red, runtime 2 red; restore leg: rebuilt, marker absent from 12 dist files, all green. A2 fail-closed (the NO_WITHHELD_READABLE fallback admits every entry): first try VOID, because esbuild constant-folded the marker out of dist and the preflight exited 1, although the fail-closed pins did go red. A2b re-run with a marker that survives (in 2 dist files): fail-closed pins red, 1 each in metadata-core, rest and runtime; restore green. A3 ETag fold removed: metadata-core D3 pin red, rest ETag pin red; restore green. P1 stored requiredPermissions not folded (plugin-security blob fbd483eb2e95 -> 0f857af1ed2a, marker in 2 dist files): plugin 2 red, rest 4 red, runtime 1 red; restore green. P2 permission-set entry ignored (-> 0286589b1112): plugin 3 red, rest 4 red, runtime 1 red; restore green. R service registration deleted (440aa81de1f8 -> a5e298c21704, src only): plugin 8 red; restore green. Registered-members pin entry deleted (c26d553ee69a -> 9893995172bf): plugin-security typecheck exit 1 (a type error in the pin file); restore exit 0. Mutated metadata-core builds for A1 and A3 exited 1 in the DTS step (TS6133 unused helper) after emitting the JS; the dist preflight proved the marker present before each reading. Suites (the tree of 610ee495e41; spec and metadata-core ran before the last two test-only commits): spec 943 files, 28822 passed + 1 todo; metadata-core 27 files, 1045 passed; plugin-security 277 files, 6936 passed, 45 skipped (the census fix included); rest 423 files, 8912 passed, 373 skipped; runtime 622 files, 12904 passed, 23 skipped. Typecheck exit 0: spec, metadata-core, plugin-security, rest, runtime. Runtime's first typecheck exited 1 in its test layer on TS2307 '@objectstack/driver-turso' (no dist in this worktree, in two files this PR does not touch). After building driver-turso it exits 0. spec check:generated: all 14 artifacts up to date.",
"gates": "CI reds relayed on 01192b432f5, each measured locally red then green: (1) pnpm check:engine-double-contract: exit 1 with 5 problems (runtime engine double findOne/update/delete, and the ql doubles' findOne in plugin-security, rest and runtime), then exit 0 after the doubles open with assertEngineFindOnePredicate / assertEngineUpdateDispatch / assertEngineDeleteDispatch and `--write` taught scripts/engine-double-contract.pinned.json the growth. The baseline is untouched. (2) node scripts/check-system-context-census.mjs: exit 1 (file-without-a-row and read-without-a-row on computeMetadataReadableWithheldFields); --self-test '3 case(s) FAILED'. After row 4 names the symbol and `--write` regenerates the register: check exit 0, self-test 'all cases passed', pnpm check:system-context-census exit 0, pnpm check:doc-anchors exit 0. (3) plugin-security delegated-organization-membership.test.ts census pin: the new file resolves 1 delegator and asks delegatedOrganizationRefusal 1 time, so asks == resolutions. The expected list now names eight files. Red reading is CI's (Test Core 8/10, job 134496168086); green in the full plugin-security suite locally. dispatch-gates --commands (stderr: objectstack-ai/objectstack at 24d71a88271; the final commit 610ee495e41 adds one plugin-security test edit): 136 derived, run two at a time, each exit captured before any pipe; 131 exit 0. --ran: '136 derived famil(ies) accounted for, 132 run, 4 NOT-MEASURED', exit 0. NOT MEASURED (exit 3, prerequisite not met in this worktree; CI measures them): check:skill-examples (no client/client-react dist), check:dual-build-cjs-loads (no dist for untouched packages), check:i18n (workspace CLI not built), check:type-check-debt. pnpm --dir ui exec vitest run scripts/ exit 1: module-resolution prerequisite (38 workspace modules unimportable without dist), NOT MEASURED; no ui/ file changed this round. A first gate run was VOID: an unquoted redirect target made every row exit 1 before the gate ran. It was discarded and re-run. check-facade-delegation-only exit 0 (protocol.ts 11704/11705; this round adds no protocol line). check-platform-checklist not run: no export is renamed or deleted. PR check-runs on 610ee495e41 at report time: 11 success, 11 skipped, 19 in_progress, 0 failure; convergence is the area's.",
"governed": "check-governed-merges --branch HEAD on 610ee495e41: 0 of 51 paths governed, NOT governed; size 2445 changed lines (+2375 / -70), under 3000. On 01192b432f5 before the CI fixes: 0 of 48, 2407 lines.",
"k_check": "K = 27 first-parent commits on origin/main since the merge base db1a05cdaeec (>= 15), so origin/main eb7b09d4d2 was merged in (01192b432f5): clean, no conflicts. After it: pnpm install --frozen-lockfile, rm -rf packages/runtime/.objectstack, rebuilt the 38-task closure of runtime/rest/plugin-security/metadata-core, spec check:generated green.",
"overlap_check": "node scripts/pm/overlap-check.mjs on 610ee495e41: VERDICT clean exit 0 vs origin/main eb7b09d4d2. #34910 (protocol-meta-item-reads.ts, protocol-meta-layered-reads.ts), #34999 and #34791 (engine-double-contract.pinned.json), #34817 (system-context.mdx) all merge cleanly. #34925 shared the locale packs and ListView.tsx on 01192b432f5, also clean.",
"new_file_surface": "Added this round: packages/plugins/plugin-security/src/security-plugin-withheld-field-readers.ts (new), get-metadata-readable-withheld-fields.test.ts (new), security-plugin.ts, security-plugin-security-service.ts, registered-security-service-members.pin.test.ts, delegated-organization-membership.test.ts (census pin, from the CI fix); packages/spec/src/contracts/security-service.ts + .test.ts; packages/metadata-core/src/object-schema-fls.ts + .test.ts; scripts/engine-double-contract.pinned.json (from the CI fix); content/docs/permissions/system-context.mdx (from the CI fix). Already claimed and edited: packages/rest/src/meta-disabled-package-doors.test.ts, packages/runtime/src/domains/meta-disabled-package-doors.test.ts, .changeset/34901-disabled-package-view-column.md (adds metadata-core and plugin-security at patch, the new Clause-② line verbatim, and one bullet). Public export change: one optional interface member on @objectstack/spec/contracts (api-surface check green).",
"commits": "323b0cc848f feat(spec), 343c61d6ff8 feat(plugin-security), 5ed144f457b fix(metadata-core) + changeset, 865ff179914 test(rest, runtime), 01192b432f5 merge origin/main, 74073018f05 test: engine-contract helpers, 24d71a88271 docs(permissions): census row, 610ee495e41 test(plugin-security): delegator census. No (#N) in subjects; model-free trailers.",
"changeset_level": "Metadata-protocol: none, so the level is patch (AGENTS.md: the level follows the kind alone). metadata-core and plugin-security join at patch. No stop condition is met.",
"dogfood_battery": "n/a: no ! in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "2: the fleet-write relay issue_patch on objectstack-ai/objectstack#34979 (PR body, run 44220450487; read-back 30352 bytes sent, 30352 stored, identical) and this os-dev-report comment via post-stamped on #34979. Plus two git pushes, both fast-forwards (not REST).",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [],
"deviations": [
"Container restart: the previous dev left an unpushed WIP commit a9a5e0d88a9 plus an uncommitted changeset edit. Both were verified, finished, squashed into 4 commits on the local -m1 branch, and pushed as a fast-forward of 2a4d8e5a852. Nothing of that round had been posted.",
"AGENTS.md says to push a WIP commit before minutes-long steps. I did not push the WIP: the dispatch ordered a squash first and a never-force push, and a pushed WIP could not be squashed afterwards. The commits stayed in the shared object store. A temporary local ref backup/issue-34901-m1-wip held the WIP tip during the squash and was deleted afterwards.",
"The WIP pins were red at restart (harness set registration, see summary). They were fixed in the harness. No product code changed for it.",
"The WIP changed applyObjectSchemaMask's `emptied` to 'kept empty && declared non-empty', which flips a zero-field document with a denied objectOverride read from emptied:true to false. Restored to the original semantics: emptied is true only when a field or override read was removed and nothing is kept.",
"A throw from the new member drops every entry, as the seat ruled. ADR-0106 D6's table says a permission-evaluation throw fails the request (5xx). The ruling's reason, that nothing the caller needs depends on the decoration, is written in the module header and the PR body. L2 should see this explicitly.",
"The first push (01192b432f5) went out before suites and gates ran, in the order the dispatch's finish list gives (push at step 5, suites at step 6). CI then found three reds that the local gate list and the plugin-security suite would have caught. All three are fixed in one further push (610ee495e41), each measured red then green locally.",
"The A2 ablation's first try is void: its marker was constant-folded out of dist, so the preflight exited 1. It was re-run as A2b with a surviving marker.",
"The first gate run is void (an unquoted redirect target made every row exit 1 before the gate ran). It was discarded and re-run in full. One leftover process of the void run (check:type-check-debt) left an exit-3 row, which is ignored.",
"The suites run started at 01192b432f5 but read the worktree while the CI-fix commits landed. Spec and metadata-core (no source change since) ran first; plugin-security, rest and runtime ran on the fixed test files. All five are reported against 610ee495e41's tree.",
"Runtime typecheck needed @objectstack/driver-turso built (outside this diff); it was built, then green.",
"Not ablated: the spec contract test (its @ts-expect-error half is compile-time and was not in the pin list)."
]
} |
|
repo:objectstack#3 · os-support-ai · session_01WGufzgQsdnyS4QdR8stjDa L1 delta review (L1-d) — #34979 · 2026-11-18T02:11ZL1: ACCEPT Delta from my ACCEPT on Merge-only check. 01192b4 is merge-only. For every file of the PR, the sorted Surface. All 51 files are covered. 33 were in the accepted surface. The S1 and M1 files are in amendment 6964496069, and the three CI-fix files ( S1, the served view lint. M1, route A:
The dev's flag: a throw drops every entry, while ADR-0106 D6 says a throw is 5xx. I accept the seat ruling for this PR.
Must-fix: none. Should-fix: none from L1. Notes:
Landing: seat fable delta L2 next. Ordinary queue landing (not Tier H) after it passes. |
|
repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG Contract-review-claim: session_01WGufzgh1zkZzDXL36ckWAG · head |
|
repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG Contract reviewServed-tier: Delta review of Check-runs on the head, read directly at 02:31Z after the last one completed: 74 runs, 63 success, 11 skipped, 0 failure, 0 in progress. Success includes ① Derived judgmentsJudgments 1 to 8 of the earlier record stand unchanged; the delta adds these.
② Semver levelOne changeset, Clause-②: yes (widening: the view save door accepts withheld names; one spec read-decoration member; one locale key; one optional security-service member, add-only). The line is identical in the PR body, the changeset and amendment 6966852329. It is still right after the new spec member: the fourth item names it, the member is optional and add-only, and no accepted read or write narrows against ③ Boundary flags
④ Design judgment
M1: closed. Each served path that can carry
The
S1: closed. Earlier nits: N3 and N5 are done in this delta (the comment in No must-fix, no should-fix. Nits (no effect on correctness or the contract on this head; each is a follow-up, none is to be fixed on this head):
The route (A2, with M1 route A) now holds against the card's scenario, the ruling and ADR-0106 D1, D2, D3, D5 and D7, and against D6 as reasoned under ③. Nits alone end the round. Implemented-by: VERDICT: PASS |
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzg2evNa1V3zxrQq3KX
|
repo:objectstack#3 · os-support-ai · session_01WGufzgQsdnyS4QdR8stjDa L1 delta review (L1-d) — #34979 · 2026-11-18T02:36ZL1: ACCEPT Delta from my ACCEPT on 610ee49 (6966921482) and the seat's delta L2 PASS on the same head (6967274835). The only new commit is 69afbe1, a merge of Merge-only check. For each of the 51 files, the PR's sorted The view and object schema changes that main brings in (for example #34925's timesheet list view) are not PR files. They need no PR edit: the view save door and the served view lint fold the whole object universe through Must-fix: none. Should-fix: none. Notes: CI on this head at review time was 5 skipped and 20 in progress. Landing waits on all checks being green on 69afbe1. Landing: ordinary queue landing (not Tier H) once CI is green. |
|
repo:objectstack#3 · os-support-ai · session_01WGufzg2evNa1V3zxrQq3KX CI note · 2026-11-18T03:04Z · area o3-A · head
Action: once the run completes, I re-run the failed job once. If the case fails again, it goes to triage as a flake rather than holding this PR. |
|
repo:objectstack#3 · os-support-ai · session_01WGufzg2evNa1V3zxrQq3KX Hand-off · 2026-11-18T03:20Z · area o3-A → next PMCard: #34901 · PR: #34979 · Branch: State: fully reviewed and ready to land. It waits only on CI.
Next steps:
Labels: this card is handed over unfinished, so Landing comment, ready to post (replace CHECKS_LINE)Dev-effort: high · Rounds: 1 build + 1 prose fix + 1 area fixture fix + 1 live reading + 2 L2 fix |
|
repo:objectstack#3 · os-support-ai · session_01WGufzg2evNa1V3zxrQq3KX Landing · 2026-11-18T03:28Z · area o3-A
State: Scope: route A2 under the seat ruling (restated claim 6958346903), plus the seat's M1 route A ruling (amendments 6962249483, 6964496069 and 6966852329). Clause-② yes (widening: the view save door accepts withheld names; one spec read-decoration member; one locale key; one optional security-service member, add-only). Metadata-protocol none, so spec, metadata-protocol, objectql, metadata-core, plugin-security, runtime and the ui packages are at patch. Merge standard: no open must-fix or should-fix. The seat ruled at 03:23Z that this landing counts as finishing in-hand work under the hand-off order (hand-off 6968018697).
Dev-effort: high · Rounds: 1 build + 1 prose fix + 1 area fixture fix + 1 live reading + 2 L2 fix |
Requested by Yibo Wang · project thread
Fixes #34901
repo:objectstack#3 · os-support-ai · session_01WGufzg2evNa1V3zxrQq3KX
Clause-②: yes (widening: the view save door accepts withheld names; one spec read-decoration member; one locale key; one optional security-service member, add-only)
Metadata-protocol: none
维护者速读
_withheldFields里说明哪些字段被暂时收起、由哪个包添加;保存视图时按“含停用包字段”的存储对象来校验,所以视图能照常保存;列表和表格在所有查询里都不再带这些字段,列不显示,并在列表上方用一行说明原因。_withheldFields里看不到它(按存储定义逐人判断,判断不了就整项不给);不改视图数据,也不写用户的列表偏好;重新启用包后列、排序、分组自动回来。保存校验只对视图放宽,拼错的字段仍会被拒绝,页面、流程等其他写入不受影响。回滚即还原本 PR。packages/metadata-protocol/src/protocol-authoring-gate.ts(只对视图写入使用存储对象校验的那一处);ui/packages/plugin-list/src/ListView.tsx(各查询参数去掉被收起字段、列的推导、持久化排序保留它);packages/objectql/src/registry-object-registration.ts(includeDisabledExtensions与读取被收起字段的方法)。pnpm --filter @objectstack/objectql exec vitest run src/protocol-withheld-extension-fields.test.ts,应看到 4 个用例通过:停用包后对象读取带_withheldFields、视图能保存进定制包、拼错的列仍被拒绝、页面写入仍被拒绝。What changes
A package can add fields to another package's object (
objectExtensions). While that package is disabled, the platform leaves those fields out of the served object, and the data door refuses any request that names one. The owner's views keep naming the field on purpose, so the column, sort and grouping come back when the package is re-enabled. Until now, those references failed the whole list (400 INVALID_FIELD, or400 INVALID_SORTfor a sort), and re-saving the view failed with422.Server (
@objectstack/objectql,@objectstack/metadata-protocol)SchemaRegistry.getWithheldExtensionFields(name)returns{ [field]: { packageId } }for each field that a disabled package'sextendcontribution adds and that no kept contributor also declares. It reads the samewithholdDisabledExtensionscomputation as the served fold. It is registered as areadinSCHEMA_REGISTRY_METHOD_KINDS, because the registry revision ledger fails to compile without that row.ObjectExtensionFoldOptions.includeDisabledExtensionsfolds every disabled package's extension in, which gives the storage view of the object. It changes no state._withheldFieldsongetMetaItemand on the effective-layer list read. The execution face, the draft read and the layered editor read never carry it. It is added toMETADATA_READ_DECORATIONSin@objectstack/spec, sostripReadDecorationsremoves it at the save door and before re-parses, and the diagnostics verdict ignores it.judgeRuntimeAuthoringRulesjudges aviewwrite against the objects with disabled extensions folded in (withDisabledExtensionsFolded). It applies to the registered and the stored halves of the merged universe. A withheld name resolves as the stored field it is. A misspelled name is still refused. Every other written type keeps the served objects.Console (
@object-ui/core,@object-ui/plugin-list,@object-ui/plugin-grid,@object-ui/i18n)@object-ui/corewithheld-fields.tsis the one reader:readWithheldFieldNames(objectDef),refersToWithheldField, andwithheldFieldNamesOfFieldMap, for a hook that holds only the field map.ListViewmerges the withheld set with the draft-only set (queryDropFields) on every request leg:$select,$filter(all threebuildEffectiveFiltercallers),$orderby(serverSort),$searchFields, the export, and the grouping levels it queries with.effectiveFields. Nothing is written tohiddenFields, the view or the user's list preferences.list.withheldFieldsLeftOut,data-testid="list-withheld-fields-notice".emitSortChangekeeps a withheld entry in the sort it persists. The projection has no entry for that field only while the package is off. Other refused entries are still dropped.$select, the declared$orderbyand$searchFields. The grouping decisions refuse a withheldgroupBykey, the same way they refuse a draft-only key. The column generator does not draw a withheld authored column. PIN 4 (projectionFls-6898) is unedited and green.list.withheldFieldsLeftOut, in the 11 eager packs (zh-Hant regenerated bygen:zh-hant) and inListView's default dictionary. Thelist.*keys live in the eager packs, and no lazy namespace covers them.Tests
New pins (each named against the card's required pins)
packages/objectql/src/protocol-withheld-extension-fields.test.ts: the real protocol over the realObjectQLengine and an in-memory driver, with P extending Q's object and Q's view naming the field as a column and as its sort._withheldFields, and the execution face does not. Re-enabling P clears it (pin 6).Q.customwhile P is off and keeps the withheld column and sort, and is served that way once P is back (pin 1).page-field-unknown) while P is off, with controls for P on and for a served field (pin 2).packages/objectql/src/registry-disabled-package-extensions.test.ts: the reader names the withheld field and its package, leaves out a name a kept contributor also declares, and clears on re-enable.includeDisabledExtensionsfolds every disabled extension in without moving the served fold or the disable state.packages/metadata-protocol/src/protocol.read-decorations.test.ts:stripReadDecorationsremoves_withheldFields. GET, then edit, then PUT of the served object stores none of it and is byte-identical apart from the edit. The layered read does not carry it, and nothing withheld means no marker (pin 3). The existing drift guard now also covers the new member.ui/packages/plugin-list/src/__tests__/ListView.withheldFields-34901.test.tsx: the data source refuses any request naming the field, as the door does.$select,$filter,$orderbyor$searchFields, each with positive controls. The grid is handed no column, sort or grouping on it, and the notice names it (pin 5).onSortChangenever called (pin 6).ui/packages/plugin-grid/src/__tests__/withheldFields-34901.test.tsx: a standalone grid never sends the field in$select,$orderbyorgroupBy, and draws no column for it. Controls cover P on, and enabling in place without a reload (pin 5, pin 6).ui/packages/core/src/utils/__tests__/withheld-fields.test.ts: the reader, the declared-name guard and the field-map lookup.Suites and typecheck (head b76b858 for the ui reruns; f4ea4f9 for the rest, the only later change being the regenerated zh-Hant.ts line)
pnpm --filter @objectstack/objectql run test: Tests 13670 passed (13670)pnpm --filter @objectstack/metadata-protocol run test: Tests 23124 passed, 45 skipped (23169)pnpm --filter @objectstack/spec exec vitest run src/kernel: Tests 1493 passed (1493)pnpm --dir ui exec vitest run packages/core/: Tests 4450 passed, 27 skippedpnpm --dir ui exec vitest run packages/plugin-grid/: Tests 2480 passed (2480),projectionFls-6898includedpnpm --dir ui exec vitest run packages/plugin-list/: Tests 1880 passed (1880)pnpm --dir ui exec vitest run packages/i18n/plus the new pins and PIN 4, rerun on b76b858: Test Files 107 passed, Tests 1927 passed, 13 skipped. The first run went red onzh-hant-generated.test.tsuntilgen:zh-hantregenerated the zh-Hant line.@objectstack/objectqltypecheckexit 0 (after the revision-ledger row),@objectstack/metadata-protocolexit 0,@objectstack/specexit 0;turbo run type-checkover@object-ui/core,@object-ui/i18n,@object-ui/plugin-grid,@object-ui/plugin-list: 58 successful of 58 tasks.pnpm --filter @objectstack/spec run check:generated: all 14 generated artifacts up to date; nothing to regenerate.Ablations (commit first, mutate through ablation-replace, rebuild and preflight where the suite reads dist)
protocol-authoring-gate.ts): theobjects:line was replaced so every type keeps the served objects. Anchor 1 to 0, blob5d6ef7cd64e9toc29895708e3a.metadata-protocolwas rebuilt, and the preflight found the marker in 2 dist files.422 INVALID_METADATAwithsort-field-unknownandlist-view-field-unknownon the withheld column and sort, which is the bug. The typo case listed 3 issues instead of 1.git diff HEADempty; rebuilt, preflight--absentacross 24 files, 4 passed.ListView.tsxqueryDropFields): the merge with the withheld set was short-circuited (blob73271f53f396tod8d554821983, source-aliased, no build). Mutated run: 3 failed, 1 passed, with$filternamingcrm_projectandUnknown field 'crm_project'from the data source. Restored to HEAD.emitSortChange): the withheld arm of the keep filter was disabled. Mutated run: 1 failed (expected [] to deeply equal [ [ 'crm_project', 'asc' ] ]). Restored to HEAD.Acceptance notes
listViewson an object write. An object is extended, never replaced (ADR-0146 D10), and an object write keeps the served judgement.viewwrites get the storage fold, and this PR adds no console leg for those surfaces.data-table's manual-sortinghandleSortreplaces the whole sort with the clicked column ("A header click REPLACES the order"), so the click itself carries no earlier entry. The pin covers the two places a write crosses: the sort builder's edit, andListView's header seam (handleHeaderSortthenemitSortChange), fed a list that holds the withheld entry.ObjectGrid's ownmanualOnSortChangefilters a multi-entry emission through the sortability projection before that seam. That file is outside this claim, anddata-tablenever emits more than one entry.groupBykey without a note of its own. The note would render inObjectGrid.tsx, which is outside the claim. Inside a list view, the list's own line names the field. As a result the claim's second locale key is not minted, and the PR adds one key, as the Clause-② line states.useObjectGridGroupingDecisionsreceives onlyobjectSchema.fieldsfromObjectGrid.tsx. The row load reads_withheldFieldsoff the definition it fetched before handing the definition on.withheldFieldNamesOfFieldMapanswers from a moduleWeakMapkeyed on that payload field map, not on a memo identity, which follows ui AGENTS.md chore: version packages #10. The alternative is to pass the names fromObjectGrid.tsxas one more argument, which needs that file.$filter: an authored block filter naming a withheld field is not dropped on a standalone grid. Without a note, dropping it would silently widen the rows the author filtered. The list view does drop it from its own filter and names it in the notice.registry-revision.tsgains one row. The registry's method-kind ledger fails to compile without it once the public reader exists.protocol-object-extender-fold.tsand the stored-collection fold are unedited. The stored half is folded at the gate, over the merged universe.origin/main= BASEfff0ad0c180): "Console eager closure is 1898.8 KB gzipped across 104 of 2538 chunks (budget: 2431.6 KB, headroom: 532.8 KB)".i18n-locale-enis 60.5 KB against a 78.7 KB ceiling, headroom 18.2 KB. No ceiling was edited.node scripts/pm/check-governed-merges.mjs --branch claude/issue-34901-disabled-package-view-columngives "0 of 32 path(s) hit the register — NOT governed", with size 1295 changed lines, under the 3000 threshold. The PR is DRAFT either way.node scripts/pm/overlap-check.mjsgives VERDICT clean exit 0. It merges cleanly withorigin/main, feat(ui): a timesheet list view, an editable row × weekday entry grid #34925 (sharesListView.tsxand the locale packs) and fix(console): one neutral sentence for an object you cannot open on every object route, and a translated filter empty state #34950 (shares the locale packs).Verification
All local readings are on head
b76b8580b59, the head this PR opens with. CI runs every family named here again on the PR. Its check-runs are stillin_progressat report time, and this list is the local subset.Head
d639b903f34adds one prose-only commit on top: the changeset's Clause-② line now counts one locale key. On that headnode scripts/check-empty-changeset.mjs --base origin/main,node scripts/check-changeset-no-major.mjs --base origin/mainandpnpm check:nul-bytes(scan of 26061 files plus--self-test) each exit 0, andnode scripts/pm/overlap-check.mjsgives VERDICT clean exit 0 againstorigin/main0465f4aa401. The code readings below are unchanged, because no code changed.dispatch-gates union and reconciliation
node scripts/pm/dispatch-gates.mjs --commandsderived 101 commands (74 pnpm, 27 direct node) from 32 paths against merge basefff0ad0c1. All 101 ran onb76b8580b59, three at a time, each exit captured before any pipe.node scripts/pm/dispatch-gates.mjs --ranwith aCOMMAND :: exit Nrecord: "101 derived famil(ies) accounted for — 100 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3)".pnpm --dir ui exec vitest run scripts/. Two of its tests (check-vi-mock-specifiers,dollar-dialect-alias-census) timed out at 15 s in a first run onf4ea4f9b7eethat shared the box with the full test suites, and passed in this run.pnpm check:dts-closureexits 0 ("289/289 declared declaration file(s) present") afterpnpm --dir ui/apps/console run build:pluginwroteui/apps/console/plugin.d.ts. Its first exit 1 named only that missing local artifact.pnpm check:dual-build-cjs-loads, exit 3, PREREQUISITE NOT MET. It reads every package'sdist/, and this worktree built only the closures this card touches. CI's Build Core measures it.pnpm --filter @objectstack/spec run check:generated: all 14 generated artifacts up to date.uicheck:eager-closure: green, readings under Acceptance notes.check-platform-checklist --changed-from: not owed. No exported symbol is renamed or deleted; the reader and the helper functions are additions.!, and the Clause-② line has no(narrowing)arm.Fix round (L2 6963280774)
Head
2a4d8e5a852(two commits onda04396946, no merge: 7 first-parent commits onmainsince the merge base, under 15). Dev-effort: high.M1 (must-fix): measured red on
da04396946, not fixed in this round. It needs a seat decision first; the dev report on this PR carries the options.SecurityPlugin(itsgetMetadataReadableFields, ADR-0106 D7) answers["id","name","amount"]for all three callers: deniedcrm_projectby a permission set'sreadable: false, denied by the field'srequiredPermissions, and allowed. The served schema no longer carries the field, so the readable set has no entry for it in either direction, and the projection cannot tell a denied caller from an allowed one.project-posture caller is served_withheldFields: {"crm_project":{"packageId":"com.acme.projects"}}on RESTGET /meta/object/:name(cached and uncached), RESTGET /meta/object, and the runtime/metadata/object/:nameand/metadata/objectreads: 10 of 10 denied-caller pins red (both denial kinds, every door). The cached read's ETag is"shared"for the denied and the allowed caller alike (no D3 fingerprint for the entry).S1 (should-fix): fixed. A served view's
_diagnostics(the item read and the?layers=trueeditor read) now judges names against the same disabled-package fold as the save door (viewLintObjectLookupoverwithDisabledExtensionsFolded, which moved fromprotocol-authoring-gate.tsintometadata-diagnostics.tsbeside the lint passes; the gate imports it from there). Pins inpackages/objectql/src/protocol-withheld-extension-fields.test.ts:crm_project) reads back with no warning naming it, on both reads.form-field-unknown.viewLintObjectLookupreturning the served object (marker inmetadata-protocol/dist, 2 files) turned the 2 read pins red with the four warnings the live reading saw (columns.2,grouping.fields.0,filter.0,sections.0.fields.1). Restored: blob equals HEAD,git diff HEADempty, rebuilt, marker absent from all 24 dist files, 10/10 green.N5: done. Save-door pins for a filter, a grouping level and a searchable field on the withheld name, each with a typo control that is refused at its own path. A form section's unknown field is advisory at the door (
form-field-unknownnever refuses), so its pin reads the save'sadvisories: none for the withheld name, one for a typo. The fold docblocks (metadata-diagnostics.ts,registry-top-level.ts) now name every position instead of "a column or sort".N3: done. The comment in
packages/runtime/src/domains/packages.tsnames all three read decorations. Comment only, so no changeset entry for@objectstack/runtime.Files this round adds to the claimed surface:
packages/metadata-protocol/src/metadata-diagnostics.ts,packages/metadata-protocol/src/protocol-meta-item-reads.ts,packages/metadata-protocol/src/protocol-meta-layered-reads.ts,packages/runtime/src/domains/packages.ts(comment). Also edited, already claimed:protocol-authoring-gate.ts,registry-top-level.ts(docblock), the objectql pin file, the changeset (one sentence on the diagnostics fold). No public export moves.Suites on
2a4d8e5a852: metadata-protocol 23124 passed, 45 skipped (360 files); objectql 13731 passed (611 files); typecheck exit 0 on both.dispatch-gates --commands: 103 derived, 101 exit 0; NOT MEASURED:check:dual-build-cjs-loads(exit 3, no dist for untouched packages here) andpnpm --dir ui exec vitest run scripts/(exit 1 on a module-resolution prerequisite,@objectstack/clienthas no dist in this worktree; noui/file changed this round).check-platform-checklist --changed-from origin/main: OK, 0 anchors lost.Clause-② and Metadata-protocol lines unchanged.
M1 round (route A)
Head
610ee495e41. Seat ruling route A (claim amendment 6964496069). Dev-effort: high. The round restarted after the container was restarted: the previous dev's local WIP commit was reviewed, finished, squashed into the commits below, and pushed as a fast-forward of2a4d8e5a852. Mergedorigin/main(eb7b09d4d2) because main was 27 first-parent commits past the merge base (the bar is 15).What changes
@objectstack/spec:ISecurityServicegains an OPTIONAL member,getMetadataReadableWithheldFields(object, context), add-only. It answers which fields a disabled package withholds may be named to the caller. The docblock says that absence,undefinedand a throw all mean "name none".@objectstack/plugin-security: implements it in a new file,security-plugin-withheld-field-readers.ts. It reads the withheld names (getWithheldExtensionFields) and the storage definition (getStorageObject), and judges each name with the same evaluator the readable projection uses: the permission-set field entry, the stored field's ownrequiredPermissions, the D7 fallback set for a caller who resolves no set, the on-behalf-of delegator's intersection (with the organization refusal), and the computed-field fold. It is narrower than the readable projection in two places, and both fail closed: a computed withheld field that reads through a reference is not admitted, and a masking rule does not admit a field its capability fold denies. A system context is told every name. The member is registered on thesecurityservice, and the registered-members pin declares it.@objectstack/metadata-core: for aproject-posture caller,applyObjectSchemaMaskkeeps a_withheldFieldsentry only when the member admits it. It removes the decoration when no entry is left, and folds each dropped entry into the D3 fingerprint aswithheld:NAME. The member is asked once per posture. An absent member, anundefinedanswer or a throw drops every entry; a throw is logged at warn. The seat ruled drop, not the D6 5xx, because the caller needs nothing that depends on it. Apassthroughposture (D4-exempt caller, D8, no security service) and anundeterminedposture keep the decoration as served. Every outlet that projects throughresolveObjectSchemaMaskPostureis covered with no door edit.Pins (each ablated red, then green, restored by blob)
get-metadata-readable-withheld-fields.test.ts(realSchemaRegistry, real plugin): denied by a set'sreadable: false, denied byrequiredPermissions, admitted, with the live-field answer as the control; the computed-field fold; through a reference; the D7 fallback; the delegator; system; no storage read meansundefined.object-schema-fls.test.ts: drop, admit by reference, fail closed (member absent,undefined, throw), passthrough, a posture built without the answer, the D3 fingerprint (it differs for different withheld sets, is equal for the same set, and is qualified), asked once.meta-disabled-package-doors.test.tsand runtimemeta-disabled-package-doors.test.ts, with the real protocol, registry andSecurityPlugin: RESTGET /meta/object/:namecached and uncached, RESTGET /meta/object, runtime/metadata/object/:nameand/metadata/object. Two callers are denied (by a set, byrequiredPermissions) and are served no entry; two are admitted and are served it. The cached ETag differs between the denied and the admitted callers, and is equal within each group. With a service that lacks the member, every caller gets no entry.Ablations (ablation-replace, dist preflight where the suite reads dist)
withheldDroppedforced empty, metadata-core rebuilt, marker in 2 dist files): metadata-core 4 red, REST 5 red, runtime 2 red. Restored: blob1541a6b7af54equals HEAD, rebuilt, marker absent from 12 dist files, all green.withheld:entries in the fingerprint): the metadata-core D3 pin and the REST ETag pin went red. Restored and green.requiredPermissionsnot folded (plugin-security rebuilt): plugin 2 red (capability denial, D7 fallback), REST 4 red, runtime 1 red. Restored: blobfbd483eb2e95, green.440aa81de1f8, green.getMetadataReadableWithheldFieldsentry deleted: plugin-securitytypecheckexit 1 (a type error in the pin file). Restored: exit 0.Harness note. The previous WIP's pins were red at the restart. They registered the permission sets only in
metadata.list, but the plugin binds its catalog to the engine's registry at start, and from then on it resolves every set from that registry. The harnesses now register the sets on the registry.CI reds on
01192b432f5, fixed in74073018f05,24d71a88271and610ee495e41check:engine-double-contract: the runtime engine double'sfindOne,updateanddelete, and theqldoubles of the three harnesses, now open with the sharedassertEngine*predicates. The pinned ledger records the new coverage; the baseline is untouched. Local reading: exit 1 with 5 problems, then exit 0.check:system-context-census(the docs-anchors lane): row 4 oncontent/docs/permissions/system-context.mdxnamescomputeMetadataReadableWithheldFields, and the register was regenerated with--write. Local reading: exit 1, then exit 0. The self-test passes, andcheck:doc-anchorsexits 0.delegated-organization-membership.test.ts: the new reader resolves one delegator and asks the organization refusal once (1 = 1), so the census pin lists eight files. The full plugin-security suite is green (below).Files this round adds to the claimed surface:
packages/plugins/plugin-security/src/security-plugin-withheld-field-readers.ts(new),get-metadata-readable-withheld-fields.test.ts(new),security-plugin.ts,security-plugin-security-service.ts,registered-security-service-members.pin.test.ts,delegated-organization-membership.test.ts,packages/spec/src/contracts/security-service.ts(+test),packages/metadata-core/src/object-schema-fls.ts(+test),scripts/engine-double-contract.pinned.json,content/docs/permissions/system-context.mdx. The REST and runtime pin files and the changeset were already claimed.Verification
610ee495e41; spec and metadata-core ran before the last two test-only commits): spec 943 files, 28822 passed; metadata-core 27 files, 1045 passed; plugin-security 277 files, 6936 passed, 45 skipped; rest 423 files, 8912 passed, 373 skipped; runtime 622 files, 12904 passed, 23 skipped. Typecheck exit 0 on all five. Runtime's test-layer typecheck first failed on@objectstack/driver-turso, which had no build in this worktree (TS2307 in two files this PR does not touch); after building it, the check exits 0.pnpm --filter @objectstack/spec check:generated: all 14 artifacts up to date.dispatch-gates --commands(derived at24d71a88271): 136 families.--ranexit 0: 132 run, 4 NOT MEASURED with exit 3 (prerequisite not met in this worktree:check:skill-examples,check:dual-build-cjs-loads,check:i18n,check:type-check-debt).pnpm --dir ui exec vitest run scripts/exits 1 on module resolution (packages outside this worktree's build have no dist). CI measures all five.check-governed-merges --branch: 0 of 51 paths governed; 2445 changed lines (under 3000).overlap-check: VERDICT clean againstorigin/mainand fix(approvals): a recall or subflow-parent strand reports the hook refusal that stranded the run #34999, fix(metadata-protocol)!: the read naming no bundle member addresses the canonical member alone, as ?member=en-US and /published do #34910, fix(audit): a search the server widens never names a column the caller may not query #34817, fix(spec,metadata-protocol)!: retire the seed modes insert and replace, which inserted every record again on each replay #34791.@objectstack/metadata-coreand@objectstack/plugin-securityjoin atpatch.Metadata-protocol: none: no authorable key, value or type moves. Full dogfood is not owed: the title has no!and the Clause-② line has no(narrowing)arm.Generated by Claude Code