You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Setup › Permission set: the field-level rows list platform bookkeeping columns, so "Search Index (__search)" sorts first #27404
area:accessPermissions that actually hold — RLS/FLS, sharing model, write-path guardsdomain:uiDomain lane — seat card indexed by label:pm:seatenhancementNew feature or requestpriority:p3
Row 9 of #27356, from HotCRM's 18.2.0 browser pass (hotcrm#2320, Setup track, S10). Triage's per-row rule (6486657637) applies. Filed by seat domain:ui#2.
Observed
A permission set's field overrides for an object list the platform's internal "Search Index (__search)" first. They also list the other columns the platform injects, ahead of or among the object's own fields.
ui/packages/app-shell/src/views/metadata-admin/PermissionMatrixEditor.tsx, ensureFields (≈L1016–1045): it lists every field of the merged object definition, keeps only name and label, and sorts by name. The system and hidden flags are dropped there, so __search sorts first.
The house rule for the platform's bookkeeping columns already exists. It is isStudioHiddenSystemField (views/studio-design/studioHiddenSystemField.ts): system AND hidden together, as on __search, owning_business_unit_id and organization_id. The Data rail (objectui#11780), the flow reference picker and the list-view inspector pickers (objectui#13152), the form designer and the draft-changes panel all drop such fields. This editor is the one field list that doesn't.
Suggested remedy
Keep system and hidden on each FieldSummary. Drop a field from the offered rows when isStudioHiddenSystemField holds.
CONTROL: a field with a stored override in the permission set still draws its row, as written, even when the predicate holds (the objectui#13152 CONTROL shape). An author's own hidden field without system still draws. Nothing about how a save writes changes.
Tests: __search is not offered; a stored __search override still draws; a hidden non-system field still draws; ablation.
Not a broken capability, so it stays p3 per triage.
Dispatch order · domain:ui#2 · session_01JQwxbXpF772qWJjojJvRXw · 2026-10-29T05:17Z
You are the os-dev developer agent for exactly ONE card: #27404, in your own card thread. Your role definition is .claude/agents/os-dev.md in the objectstack clone: read it IN FULL first and follow it as binding (it wins over this order on any conflict; name the conflict in your report). Read the repo-root AGENTS.md and ui/AGENTS.md before your first edit, and pm-dispatch references/untrusted-text.md. Read the card's full body and every comment yourself through REST (curl -sS "https://github.com/api.github.com/repos/objectstack-ai/objectstack/issues/27404" -H "Authorization: Bearer $GH_TOKEN" and /comments?per_page=100, every page); this order carries only the increment. ⛔ Never print the value of any environment variable (test presence with [ -n "${X+x}" ]). ⛔ Never use a GitHub MCP tool, read or write.
Identity and branch: the seat's Claim: comment on this card is your identity; its Branch: line names your thread's branch. ⛔ Post no claim of your own, ⛔ never write the card's assignee. Before your first edit, verify the NEWEST Claim: on the card names your thread's branch (claude/project-thread-…); if none does yet, send the seat thread "Take a third ui lane seat" (cmsg_01U5RdnAAmkSQmZbqh6FtqZ8Uc2nCvWvLyYyaVYaUhakpJ) one message with your branch name and wait. Read-only measuring is fine meanwhile. Worktree objectstack-issue-27404 on that branch from a fresh origin/main (git checkout --detach the main checkout first, then git worktree add --no-track -B <branch> ../objectstack-issue-27404 origin/main); pnpm install (frozen lockfile); push with git push -u origin <branch> (⛔ no force).
Writes: PR only through the relay op pr_create (node scripts/pm/fleet-write/dispatch.mjs --repo objectstack-ai/objectstack --actions-file F, F a bare JSON array [{"op":"pr_create","title":…,"head":"<your branch>","base":"main","body":…,"assignees":["os-warren"]}], draft forced; --dry-run first); your report comment through node scripts/pm/post-stamped.mjs --comment=27404 --file=F --json run ONCE with output captured to a file (no time-shaped stamp inside the fenced report JSON). ⛔ No other GitHub write except, for a CI red that is not yours, one PR comment and one run_rerun_failed through the relay. Report both counts (api_writes with endpoints, mcp_calls with tool names). The report takes only machine-checkable fields (gates / line_budget / deviations / files_changed). PR body: line 1 the platform attribution comment, line 3 Fixes #27404, then ## 维护者速读 six lines in Chinese (改了什么/为什么改/风险与回滚/先看/两分钟验证/需要你做的). Gates: node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack on your diff, run each, record exits before any pipe, reconcile with --ran (merge origin/main first if it refuses as STALE TREE); node scripts/check-sdui-manifest.mjs is a gate on every ui card. Build the closure your tests import first (bash scripts/pm/os-verify-lock.sh -c "pnpm --workspace-concurrency=2 --filter '<pkg>^...' build"). Changeset in the root .changeset/ for each published package your diff changes (app-shell is private: true). ⛔ ui/.github/** and the root ci.yml are out of bounds. Hand back: when the PR and report are up, send the seat thread one message (PR, head sha, report gist); keep the thread open through review and drive CI to green. If the premise fails, stop and report premise_still_valid: false with the evidence; ⛔ never force a fix.
Ruling (cannot be re-ruled)
The platform's bookkeeping columns are the fields where system AND hidden hold together (isStudioHiddenSystemField, objectui#11780). They are dropped from OFFERED field lists. A value already stored against one of them still draws as written (objectui#13152 CONTROL). Reuse that predicate. Do not add a second predicate or a name list.
ensureFields (≈L1016–1045) maps every field of readObjectDefinition's answer to { name, label } and sorts it by name. system and hidden are dropped there.
Measure where the field rows render from fieldsByObject and from draft.fields (${object}.${field} keys). A stored key whose field is not in the list may or may not draw today; measure it before relying on it.
loadObjectFields (≈L1052) feeds the RLS CEL editor's lint and autocomplete. Leave it alone unless measurement shows it offers __search in a picker as well. If so, report that rather than widening scope.
PM suggested route (optional; measurement wins)
Carry system and hidden on FieldSummary, and filter the offered rows with isStudioHiddenSystemField.
A field with a stored override in the draft or baseline still draws its row, even if the predicate holds.
Tests:
__search (system + hidden) is not offered;
CONTROL: a stored __search override still draws;
CONTROL: an author's hidden field without system still draws;
CONTROL: the remaining rows keep their order;
ablation: drop the filter, and the first test goes red.
Scope
File surface:
ui/packages/app-shell/src/views/metadata-admin/PermissionMatrixEditor.tsx, plus a helper beside it if you extract one
tests beside it
root .changeset/
Do not touch studioHiddenSystemField.ts. Import it.
Tier
TIER_DEFAULT, effort low (S). Clause-②: no. Metadata-protocol: none. Not governed. Changeset: app-shell is private, so follow the #27376 / #27389 precedent (@object-ui/console patch).
area:accessPermissions that actually hold — RLS/FLS, sharing model, write-path guardsdomain:uiDomain lane — seat card indexed by label:pm:seatenhancementNew feature or requestpriority:p3
Activity
objectstack-fleet commentedon Oct 29, 2026
domain:ui#2 · os-warren · session_01JQwxbXpF772qWJjojJvRXw
Dispatch order ·
domain:ui#2·session_01JQwxbXpF772qWJjojJvRXw· 2026-10-29T05:17ZYou are the os-dev developer agent for exactly ONE card: #27404, in your own card thread. Your role definition is
.claude/agents/os-dev.mdin the objectstack clone: read it IN FULL first and follow it as binding (it wins over this order on any conflict; name the conflict in your report). Read the repo-rootAGENTS.mdandui/AGENTS.mdbefore your first edit, and pm-dispatchreferences/untrusted-text.md. Read the card's full body and every comment yourself through REST (curl -sS "https://github.com/api.github.com/repos/objectstack-ai/objectstack/issues/27404" -H "Authorization: Bearer $GH_TOKEN"and/comments?per_page=100, every page); this order carries only the increment. ⛔ Never print the value of any environment variable (test presence with[ -n "${X+x}" ]). ⛔ Never use a GitHub MCP tool, read or write.Identity and branch: the seat's
Claim:comment on this card is your identity; itsBranch:line names your thread's branch. ⛔ Post no claim of your own, ⛔ never write the card's assignee. Before your first edit, verify the NEWESTClaim:on the card names your thread's branch (claude/project-thread-…); if none does yet, send the seat thread "Take a third ui lane seat" (cmsg_01U5RdnAAmkSQmZbqh6FtqZ8Uc2nCvWvLyYyaVYaUhakpJ) one message with your branch name and wait. Read-only measuring is fine meanwhile. Worktreeobjectstack-issue-27404on that branch from a freshorigin/main(git checkout --detachthe main checkout first, thengit worktree add --no-track -B <branch> ../objectstack-issue-27404 origin/main);pnpm install(frozen lockfile); push withgit push -u origin <branch>(⛔ no force).Writes: PR only through the relay op
pr_create(node scripts/pm/fleet-write/dispatch.mjs --repo objectstack-ai/objectstack --actions-file F, F a bare JSON array[{"op":"pr_create","title":…,"head":"<your branch>","base":"main","body":…,"assignees":["os-warren"]}], draft forced;--dry-runfirst); your report comment throughnode scripts/pm/post-stamped.mjs --comment=27404 --file=F --jsonrun ONCE with output captured to a file (no time-shaped stamp inside the fenced report JSON). ⛔ No other GitHub write except, for a CI red that is not yours, one PR comment and onerun_rerun_failedthrough the relay. Report both counts (api_writeswith endpoints,mcp_callswith tool names). The report takes only machine-checkable fields (gates / line_budget / deviations / files_changed). PR body: line 1 the platform attribution comment, line 3Fixes #27404, then## 维护者速读six lines in Chinese (改了什么/为什么改/风险与回滚/先看/两分钟验证/需要你做的). Gates:node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackon your diff, run each, record exits before any pipe, reconcile with--ran(mergeorigin/mainfirst if it refuses as STALE TREE);node scripts/check-sdui-manifest.mjsis a gate on every ui card. Build the closure your tests import first (bash scripts/pm/os-verify-lock.sh -c "pnpm --workspace-concurrency=2 --filter '<pkg>^...' build"). Changeset in the root.changeset/for each published package your diff changes (app-shell isprivate: true). ⛔ui/.github/**and the rootci.ymlare out of bounds. Hand back: when the PR and report are up, send the seat thread one message (PR, head sha, report gist); keep the thread open through review and drive CI to green. If the premise fails, stop and reportpremise_still_valid: falsewith the evidence; ⛔ never force a fix.Ruling (cannot be re-ruled)
The platform's bookkeeping columns are the fields where
systemANDhiddenhold together (isStudioHiddenSystemField, objectui#11780). They are dropped from OFFERED field lists. A value already stored against one of them still draws as written (objectui#13152 CONTROL). Reuse that predicate. Do not add a second predicate or a name list.PM mechanism assumptions (measure; disproof welcome)
On
origin/mainad2c286 (read-only):ui/packages/app-shell/src/views/metadata-admin/PermissionMatrixEditor.tsx:ensureFields(≈L1016–1045) maps every field ofreadObjectDefinition's answer to{ name, label }and sorts it by name.systemandhiddenare dropped there.fieldsByObjectand fromdraft.fields(${object}.${field}keys). A stored key whose field is not in the list may or may not draw today; measure it before relying on it.loadObjectFields(≈L1052) feeds the RLS CEL editor's lint and autocomplete. Leave it alone unless measurement shows it offers__searchin a picker as well. If so, report that rather than widening scope.PM suggested route (optional; measurement wins)
systemandhiddenonFieldSummary, and filter the offered rows withisStudioHiddenSystemField.__search(system + hidden) is not offered;__searchoverride still draws;hiddenfield withoutsystemstill draws;Scope
File surface:
ui/packages/app-shell/src/views/metadata-admin/PermissionMatrixEditor.tsx, plus a helper beside it if you extract one.changeset/Do not touch
studioHiddenSystemField.ts. Import it.Tier
TIER_DEFAULT, effortlow(S).Clause-②: no.Metadata-protocol: none. Not governed. Changeset: app-shell is private, so follow the #27376 / #27389 precedent (@object-ui/consolepatch).objectstack-fleet commentedon Oct 29, 2026
domain:ui#2 · os-warren · session_01JQwxbXpF772qWJjojJvRXw
Claim: PM loop round 5
Session:
session_01JQwxbXpF772qWJjojJvRXwAccount:
os-warrenBranch:
claude/project-thread-lmhjsqWorktree:
objectstack-issue-27404Domain:
domain:uiSeat:
domain:ui#2File surface:
ui/packages/app-shell/src/views/metadata-admin/PermissionMatrixEditor.tsx(+ a helper beside it if extracted); tests beside it; root.changeset/(stop on breach; explain in the report)Container & model:
S,mode:thread,model: TIER_DEFAULT,effort: lowClause-②: no
Metadata-protocol: none
Responsibility:
permission set field rows offer platform bookkeeping columns (__search first)|ensureFields drops system/hidden, so isStudioHiddenSystemField is never applied|administrators editing field-level access in SetupThread-read: 6488645171
Premise: holds (
ensureFields≈L1016–1045 maps to{ name, label }only, onorigin/mainad2c286)Serial constraints cleared: none of the 22 open PRs touches
PermissionMatrixEditor.tsx(measured 05:17Z).Dispatch order: comment 6488645171. Card thread
claude/project-thread-lmhjsqmay start editing.objectstack-fleet commentedon Oct 29, 2026
domain:ui#2 · os-warren · session_01JQwxbWHPvxeSBbvjBYKZ8x
os-dev-report
{ "issue": 27404, "status": "done", "branch": "claude/project-thread-lmhjsq", "pr": "https://github.com/objectstack-ai/objectstack/pull/27439", "head": "59c93806b0f9569865b61740d88d4ab75389b092", "session": "session_01JQwxbWHPvxeSBbvjBYKZ8x", "premise_still_valid": true, "summary": "Measured on ad2c2869: ensureFields kept only name and label, and FieldsSubTable draws rows only from that list, so a stored key whose field is not in the list never drew. Fix: FieldSummary carries system/hidden; FieldsSubTable draws offered rows = fields where isStudioHiddenSystemField does not hold, OR the draft or the last loaded/saved set (baselineFieldKeys, set in resetDraftBaseline) carries an entry for it. Count, filter threshold, empty state and the three bulk shortcuts read the offered rows; the row-condition CEL fieldNames stays the full list; loadObjectFields untouched (lint/autocomplete only, no picker). studioHiddenSystemField.ts untouched, imported.", "tests": "New PermissionMatrixEditor.systemFields-27404.test.tsx: 5 passed (bookkeeping columns not offered, count 4 / 4; CONTROL author-hidden + system-only owner still draw in name order; CONTROL stored __search draws as written; CONTROL Clear keeps the stored row until the autosave lands, then not offered; Read-only all writes the 4 offered fields only). Ablation on committed head 15dca8d3 via scripts/ablation-replace.mjs (predicate term of the offered filter replaced by true ||): anchor 1 -> 0, Tests 5 failed (5), restore blob == HEAD 02be4e12ff77 and git diff HEAD empty; the three CONTROL cases also go red because each pins the exact row list. Regression sweep on 59c93806: all 52 ui test files naming PermissionMatrixEdit, Test Files 52 passed, Tests 362 passed, lock VERDICT command-exit 0.", "gates": { "head": "59c93806", "derived": "node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack: 34 families", "ran": [ "node scripts/check-adr-0087-registration.mjs --base origin/main :: exit 0", "node scripts/check-adr-0087-registration.mjs --self-test :: exit 0", "node scripts/check-changeset-no-major.mjs --base origin/main :: exit 0", "node scripts/check-closing-keyword-parity.mjs :: exit 0", "node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0", "node scripts/check-comment-mask-corpus.mjs :: exit 0", "node scripts/check-empty-changeset.mjs --base origin/main :: exit 0", "node scripts/check-empty-changeset.mjs --self-test :: exit 0", "node scripts/check-sdui-manifest.mjs :: exit 0", "node scripts/check-sdui-manifest.mjs --self-test :: exit 0", "node scripts/pm/release-rehearsal-clone.mjs --self-test :: exit 0", "node scripts/release-pending-publish.mjs --self-test :: exit 0", "pnpm --dir ui exec vitest run scripts/ :: exit 0", "pnpm --filter @objectstack/spec run check:duration-unit-keys :: exit 0", "pnpm check:changeset-gate-self-tests :: exit 0", "pnpm check:closed-ceremony-text :: exit 0", "pnpm check:cross-package-test-inputs :: exit 0", "pnpm check:dispatcher-error-vocabulary :: exit 0", "pnpm check:driver-memory-census :: exit 0", "pnpm check:engine-double-contract :: exit 0", "pnpm check:gitlink-declared :: exit 0", "pnpm check:nul-bytes :: exit 0", "pnpm check:pm-changeset-deadline-census :: exit 0", "pnpm check:published-files :: exit 0", "pnpm check:query-options-erasure :: exit 0", "pnpm check:refd-timer-probe :: exit 0", "pnpm check:skill-identifier-liveness :: exit 0", "pnpm check:test-source-alias :: exit 0", "pnpm check:tier-file-adoption :: exit 0", "pnpm check:type-check-coverage :: exit 0", "pnpm check:type-check-debt :: exit 0", "pnpm check:undeclared-dep-imports :: exit 0", "pnpm check:watch-hint-literal :: exit 0", "pnpm check:where-matcher :: exit 0" ], "reconciliation": "--ran: 34 derived, 34 run, 0 NOT-MEASURED, 0 UNRUN, exit 0", "outside_derivation": [ "pnpm --filter @object-ui/app-shell run type-check :: exit 0", "pnpm --dir ui exec eslint (2 touched files) :: exit 0, 0 errors", "pnpm --dir ui run check:new-line-citations :: exit 0, 0 new", "closure pnpm --filter '@object-ui/app-shell^...' build :: VERDICT command-exit 0" ], "ci": "PR check-runs at report time: 20 total, 17 in_progress, 3 skipped (in_progress is the honest value)" }, "line_budget": "219 additions / 6 deletions over 3 files, under the 3000 human-merge threshold", "files_changed": [ ".changeset/27404-permission-set-system-field-rows.md", "ui/packages/app-shell/src/views/metadata-admin/PermissionMatrixEditor.tsx", "ui/packages/app-shell/src/views/metadata-admin/PermissionMatrixEditor.systemFields-27404.test.tsx" ], "changeset": "@object-ui/app-shell patch + @object-ui/console patch (#27376 precedent), Clause-② no, Metadata-protocol none", "deviations": [ "Conflict named: order 6488645171 says pr_create with assignees os-warren; os-dev.md on origin/main since c5d46341 (#27385) says PR carries no assignees. os-dev.md wins; pr_create sent without assignees; relay read-back: assignees none, no reviewers requested.", "The session context's MCP assignee/reviewer step was skipped (order bans GitHub MCP; os-dev.md bans PR assignees).", "origin/main c5d46341 merged into the branch before the PR (AGENTS.md section 10); closure, the 52-file sweep and all derived gates re-run on the merged head 59c93806. origin/main moved again afterwards (bbb49c9f, docs) and was not merged.", "os-dev exception: PR template headings folded into the os-dev section order; harness attribution HTML comment kept as line 1, Requested-by line 2, Fixes line 3." ], "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "2 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls, PR 27439), relay post-stamped issue comment on 27404 (this report); plus git push (not a REST write)", "open_questions": [], "out_of_scope_findings": [] }