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
record page: an Edit disabled by userActions.edit.disabledWhen gives no reason, unlike the state and approval locks #35135
Filing category: out-of-scope finding from the dev of objectstack#35099 (draft PR #35133, Acceptance notes), filed by the seat. ⛔ Not a claim.
What is missing
When an object's userActions.edit.disabledWhen holds, the record page shows Edit as off (aria-disabled="true") and says nothing about why, on desktop and on the phone alike. The other two disable reasons do say why: the state lock draws its record-state-lock badge ("Not editable in its current state"), and the approval lock has its band.
Cause: userActions.edit declares enabled / visibleWhen / disabledWhen and no reason key, so the console has no text to show.
What it would take
A readable reason needs a new authorable key beside disabledWhen (e.g. a localized reason string), so Metadata-protocol: added and a contract review. The key's name and shape, and whether a generic fallback text is enough instead, are open; decide them when the card is picked up (key names are PM discretion unless they diverge from an existing pattern).
Done when
A disabledWhen-disabled Edit shows a reason a reader can see on desktop and on the phone (tooltip or inline, matching the state-lock badge), or the card records why a generic text is enough.
First touch: p2 kept (seat grade). Grading principle of 2026-11-18, item 5: a new authorable reason key beside userActions.edit.disabledWhen is a new capability (Metadata-protocol: added, contract review). The other two locks already explain themselves.
Route B: when userActions.edit.disabledWhen disables the record page's Edit, the UI shows a generic reason, reusing the existing actions.notAvailableForRecord sentence (11 locales). No protocol change, no new authorable key, Clause-②: no. Precedent: B′ on #24034 (generic reason first; re-file for an authored reason on a measured second consumer). Suggested rider, same PR if same file: the header overflow's delete.disabledWhen has the same silence.
Goes to area ux-2 of seat repo:objectstack#5 (lease:ux-2).
Claim: PM loop round 2 · area ux-2 (lease:ux-2; ruling 6996106574, the maintainer's 「B 界面给通用原因」) · 2026-11-19T01:24Z
Session: session_01Utp6CZrgaiMgTJCnswR6jQ
Account: os-bill
Branch: claude/issue-35135-edit-disabled-reason
Worktree: objectstack-issue-35135
Domain: domain:ui
Seat: repo:objectstack#5
File surface: ui/packages/app-shell/src/views/RecordDetailView.tsx (the Edit / overflow Delete affordances it hands the header and the phone bar), ui/packages/components/src/renderers/layout/containers.tsx (disabledReasonFor) only if the reason must travel through it, the phone record action bar if it draws Edit itself, their tests, root .changeset/. ⛔ No packages/spec/**, no new i18n key (reuse actions.notAvailableForRecord). Stop on breach and report.
Container & model: M, mode:subagent, model: default — no path-derived mandate, effort: high
Clause-②: no
Metadata-protocol: none
Responsibility: ui app-shell RecordDetailView in objectstack folds editDisabledByPredicate into one disabled boolean (RecordDetailView.tsx:4723) and the header's disabledReasonFor (containers.tsx:2637) answers no reason for host Edit/Delete; no platform path says why; every reader of a record whose object declares userActions.edit.disabledWhen (today: the showcase invoice)
Thread-read: 6996106574
Premise: holds — on origin/main: RecordDetailView.tsx:4723editOff = approvalLocked || editDisabledByPredicate || editLockedByState; containers.tsx:2637-2640 returns undefined for any key outside authoredHeaderActionKeys
Serial constraints cleared: none — no open PR touches these files (live read of all 47 open PRs' files at claim time); #33996 (same area, same RecordDetailView.tsx) is held until this PR lands
Pre-claim lane: domain:ui (ui/packages/app-shell/**, ui/packages/components/**)
Pre-claim deps: none named; overlap with open PRs: none
Prior rulings read: disabledReason, disabledWhen, userActions, notAvailableForRecord → ADR-0137 (disabledWhen fail-soft, unchanged), ADR-0049 (applies to option A only); thread: ruling 6996106574 (route B), #24034 B′ (6228318638), #26619 A (6442737825); none conflicts with route B
{
"issue": 35135,
"status": "done",
"branch": "claude/issue-35135-edit-disabled-reason",
"pr": "https://github.com/objectstack-ai/objectstack/pull/35288",
"head": "f599fad6b1abd9a52096a7ccf296d33a596eec61",
"session": "session_01Utp6CZrgaiMgTJCnswR6jQ",
"premise_still_valid": true,
"summary": "Route B (ruling 6996106574): RecordDetailView hands its header Edit a disabledReason (the existing actions.notAvailableForRecord sentence, no new key) only when userActions.edit.disabledWhen is what turned Edit off; the approval band and the state-lock badge keep explaining their own locks, so never two reasons. The overflow Delete under delete.disabledWhen carries the same sentence (rider, same lines). page:header disabledReasonFor now draws a disabledReason a host hands with its own header action when its declared disabled holds and the record is not pending; host actions still never get the generic fallback. The reason reaches desktop as tooltip + aria-describedby and the phone bar's ... entry (and the desktop ... Delete) as a visible second line + item description.",
"readings": {
"A1": "holds at origin/main f4dbcc21: RecordDetailView.tsx 'const editOff = approvalLocked || editDisabledByPredicate || editLockedByState;' inside the synthSystemActions IIFE, handed as 'disabled: editOff'; predicate evaluated by useRowPredicate('builtin:edit:disabledWhen'), then 'editDisabledByPredicate = editPredicates?.disabledWhen != null && editDisabledPred'. Line numbers as the dispatch gave them (4723; 2767-2779) matched.",
"A2": "holds: containers.tsx disabledReasonFor returned undefined when '!authoredHeaderActionKeys.has(key)', with the comment saying the host's Edit / Delete carry a host-computed boolean. Changed: a host action now shows only the disabledReason the host hands with it; the generic fallback stays authored-only.",
"A3": "holds: overflow Delete spread '...(deleteDisabledByPredicate ? { disabled: true } : null)' with no reason; now '{ disabled: true, disabledReason }' in the same spread."
},
"tests": "At 19e21b03 + the userActionPredicates fix: pnpm --dir ui exec vitest run on the 39 ui test files mentioning disabledWhen/headerSystemActions/sys_edit/sys_delete -> 'Test Files 39 passed (39) / Tests 736 passed (736)', lock 'VERDICT command-exit 0'. f599fad6 only adds one module-top import to page-header-disabledReason-11811.test.tsx, re-run alone -> 'Tests 11 passed (11)'. New pins: components page-header-disabledReason-11811 (host Edit inline reason + tooltip, host Delete overflow reason, controls pending record / action on) and app-shell RecordDetailView.phoneFace-27058 (desktop Edit, phone bar ... Edit, desktop ... Delete; controls predicate-not-holding, state lock + predicate -> badge only, approval lock + predicate -> band only). Two existing pins switched from textContent to accessible-name lookup (the entry now carries a second line). type-check components + app-shell: both Done, VERDICT command-exit 0. Ablation via scripts/ablation-replace.mjs on disabledReasonFor host branch -> return undefined (anchor 1->0, blob 8bad2dd7->90c2811e): 'Tests 5 failed | 32 passed (37)', the five positive pins red, all controls green; restored with git checkout HEAD -- path, blob 8bad2dd7 == HEAD blob, git diff HEAD empty. No dist step: ui vitest aliases @object-ui/components to src.",
"gates": "dispatch-gates --commands --repo objectstack-ai/objectstack (tree 19e21b03, same list re-derived at f599fad6): 39 families, all exit 0 (codes captured per command before any pipe). check:test-source-alias first exit 1 (dynamic @object-ui/react-runtime reach from the edited header test) -> prescribed module-top import added -> exit 0. 'pnpm --dir ui exec vitest run scripts/' first exit 99 (lock budget, holder a sibling pnpm build) -> re-run same slot exit 0, 'Test Files 171 passed | 2 skipped (173)'. --ran reconciliation: '39 derived, 39 run, 0 NOT-MEASURED, 0 UNRUN'. pnpm check:new-line-citations: '0 new citation(s)'. PR check-runs: NOT MEASURED, reason: report delivered at PR open, CI in_progress (PM owns convergence).",
"line_budget": "n/a - no skills/** touched; diff +218/-21 across 6 files (under the 3000-line human-merge threshold)",
"files_changed": [
".changeset/35135-disabledwhen-edit-reason.md",
"ui/packages/app-shell/src/views/RecordDetailView.tsx",
"ui/packages/app-shell/src/views/RecordDetailView.phoneFace-27058.test.tsx",
"ui/packages/app-shell/src/views/RecordDetailView.userActionPredicates.test.tsx",
"ui/packages/components/src/renderers/layout/containers.tsx",
"ui/packages/components/src/__tests__/page-header-disabledReason-11811.test.tsx"
],
"deviations": [
"No exported prop/type added: disabledReason is the existing ActionSchema key; the host's ActionDefs stay 'as any'. page:header now reads it on host actions too (behaviour, patch changeset for @object-ui/components and @object-ui/app-shell).",
"RecordDetailView.userActionPredicates.test.tsx is a RecordDetailView test outside the two harness files named; touched only to read the Delete entry by accessible name (claim surface: 'their tests').",
"Commit trailers use the model-free pair (Co-authored-by: Claude + Claude-Session), per AGENTS.md and the dispatch, not the harness reminder's model-named Co-Authored-By line.",
"PR body carries the AGENTS.md session-URL footer block and then the dispatch's required closing lines."
],
"dogfood_battery": "n/a - no ! in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "2 relay strokes - pr_create (POST /repos/objectstack-ai/objectstack/pulls draft, POST /issues/35288/assignees os-bill) via one repository_dispatch; os-dev-report comment POST /repos/objectstack-ai/objectstack/issues/35135/comments via post-stamped.mjs",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none - the list row buttons (data-table.tsx built-in row Edit / Delete under disabledWhen) grey with the same silence; named by the dispatch as out of scope, noted in Acceptance notes, not filed",
"carrier: none - the host reason passes through localizeActionTexts, so a bundle key objects.OBJECT._actions.sys_edit.disabledReason would override it, as _actions.sys_edit.label already does for the label; noted, not filed"
]
}
MERGED through the merge queue as 1b2cd80608 (Fixes #35135; this card closed completed)
contract record
none owed (Clause-②: no, confirmed in L1-a ACCEPT 6998025008); route B per ruling 6996106574
Delivered: when userActions.edit.disabledWhen (or delete.disabledWhen in the overflow) greys the record page's Edit/Delete, the existing actions.notAvailableForRecord sentence shows as tooltip + accessible description on desktop and as a second line in the phone/overflow ⋯ entry; the state-lock badge and the approval band keep their own explanation (never two reasons).
Follow-up: #35293 (the list row's built-in Edit/Delete has the same silence; p2, nested under this card).
State: pm:dispatched removed; card closed.
Activity
objectstack-fleet commentedon Nov 18, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
First touch: p2 kept (seat grade). Grading principle of 2026-11-18, item 5: a new authorable reason key beside
userActions.edit.disabledWhenis a new capability (Metadata-protocol: added, contract review). The other two locks already explain themselves.objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ
Ruling-ref: maintainer 2026-11-19T00:45Z, decision card in seat repo:objectstack#5's project session, option chosen verbatim: 「B 界面给通用原因」.
Route B: when
userActions.edit.disabledWhendisables the record page's Edit, the UI shows a generic reason, reusing the existingactions.notAvailableForRecordsentence (11 locales). No protocol change, no new authorable key,Clause-②: no. Precedent: B′ on #24034 (generic reason first; re-file for an authored reason on a measured second consumer). Suggested rider, same PR if same file: the header overflow'sdelete.disabledWhenhas the same silence.Goes to area ux-2 of seat repo:objectstack#5 (
lease:ux-2).objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ
Claim: PM loop round 2 · area ux-2 (
lease:ux-2; ruling 6996106574, the maintainer's 「B 界面给通用原因」) · 2026-11-19T01:24ZSession:
session_01Utp6CZrgaiMgTJCnswR6jQAccount:
os-billBranch:
claude/issue-35135-edit-disabled-reasonWorktree:
objectstack-issue-35135Domain:
domain:uiSeat:
repo:objectstack#5File surface:
ui/packages/app-shell/src/views/RecordDetailView.tsx(the Edit / overflow Delete affordances it hands the header and the phone bar),ui/packages/components/src/renderers/layout/containers.tsx(disabledReasonFor) only if the reason must travel through it, the phone record action bar if it draws Edit itself, their tests, root.changeset/. ⛔ Nopackages/spec/**, no new i18n key (reuseactions.notAvailableForRecord). Stop on breach and report.Container & model:
M,mode:subagent,model: default — no path-derived mandate,effort: highClause-②: no
Metadata-protocol: none
Responsibility: ui app-shell
RecordDetailViewin objectstack foldseditDisabledByPredicateinto onedisabledboolean (RecordDetailView.tsx:4723) and the header'sdisabledReasonFor(containers.tsx:2637) answers no reason for host Edit/Delete; no platform path says why; every reader of a record whose object declaresuserActions.edit.disabledWhen(today: the showcase invoice)Thread-read: 6996106574
Premise: holds — on
origin/main:RecordDetailView.tsx:4723editOff = approvalLocked || editDisabledByPredicate || editLockedByState;containers.tsx:2637-2640returnsundefinedfor any key outsideauthoredHeaderActionKeysSerial constraints cleared: none — no open PR touches these files (live read of all 47 open PRs' files at claim time); #33996 (same area, same
RecordDetailView.tsx) is held until this PR landsPre-claim lane:
domain:ui(ui/packages/app-shell/**,ui/packages/components/**)Pre-claim deps: none named; overlap with open PRs: none
Prior rulings read: disabledReason, disabledWhen, userActions, notAvailableForRecord → ADR-0137 (disabledWhen fail-soft, unchanged), ADR-0049 (applies to option A only); thread: ruling 6996106574 (route B), #24034 B′ (6228318638), #26619 A (6442737825); none conflicts with route B
objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ
os-dev-report
{ "issue": 35135, "status": "done", "branch": "claude/issue-35135-edit-disabled-reason", "pr": "https://github.com/objectstack-ai/objectstack/pull/35288", "head": "f599fad6b1abd9a52096a7ccf296d33a596eec61", "session": "session_01Utp6CZrgaiMgTJCnswR6jQ", "premise_still_valid": true, "summary": "Route B (ruling 6996106574): RecordDetailView hands its header Edit a disabledReason (the existing actions.notAvailableForRecord sentence, no new key) only when userActions.edit.disabledWhen is what turned Edit off; the approval band and the state-lock badge keep explaining their own locks, so never two reasons. The overflow Delete under delete.disabledWhen carries the same sentence (rider, same lines). page:header disabledReasonFor now draws a disabledReason a host hands with its own header action when its declared disabled holds and the record is not pending; host actions still never get the generic fallback. The reason reaches desktop as tooltip + aria-describedby and the phone bar's ... entry (and the desktop ... Delete) as a visible second line + item description.", "readings": { "A1": "holds at origin/main f4dbcc21: RecordDetailView.tsx 'const editOff = approvalLocked || editDisabledByPredicate || editLockedByState;' inside the synthSystemActions IIFE, handed as 'disabled: editOff'; predicate evaluated by useRowPredicate('builtin:edit:disabledWhen'), then 'editDisabledByPredicate = editPredicates?.disabledWhen != null && editDisabledPred'. Line numbers as the dispatch gave them (4723; 2767-2779) matched.", "A2": "holds: containers.tsx disabledReasonFor returned undefined when '!authoredHeaderActionKeys.has(key)', with the comment saying the host's Edit / Delete carry a host-computed boolean. Changed: a host action now shows only the disabledReason the host hands with it; the generic fallback stays authored-only.", "A3": "holds: overflow Delete spread '...(deleteDisabledByPredicate ? { disabled: true } : null)' with no reason; now '{ disabled: true, disabledReason }' in the same spread." }, "tests": "At 19e21b03 + the userActionPredicates fix: pnpm --dir ui exec vitest run on the 39 ui test files mentioning disabledWhen/headerSystemActions/sys_edit/sys_delete -> 'Test Files 39 passed (39) / Tests 736 passed (736)', lock 'VERDICT command-exit 0'. f599fad6 only adds one module-top import to page-header-disabledReason-11811.test.tsx, re-run alone -> 'Tests 11 passed (11)'. New pins: components page-header-disabledReason-11811 (host Edit inline reason + tooltip, host Delete overflow reason, controls pending record / action on) and app-shell RecordDetailView.phoneFace-27058 (desktop Edit, phone bar ... Edit, desktop ... Delete; controls predicate-not-holding, state lock + predicate -> badge only, approval lock + predicate -> band only). Two existing pins switched from textContent to accessible-name lookup (the entry now carries a second line). type-check components + app-shell: both Done, VERDICT command-exit 0. Ablation via scripts/ablation-replace.mjs on disabledReasonFor host branch -> return undefined (anchor 1->0, blob 8bad2dd7->90c2811e): 'Tests 5 failed | 32 passed (37)', the five positive pins red, all controls green; restored with git checkout HEAD -- path, blob 8bad2dd7 == HEAD blob, git diff HEAD empty. No dist step: ui vitest aliases @object-ui/components to src.", "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack (tree 19e21b03, same list re-derived at f599fad6): 39 families, all exit 0 (codes captured per command before any pipe). check:test-source-alias first exit 1 (dynamic @object-ui/react-runtime reach from the edited header test) -> prescribed module-top import added -> exit 0. 'pnpm --dir ui exec vitest run scripts/' first exit 99 (lock budget, holder a sibling pnpm build) -> re-run same slot exit 0, 'Test Files 171 passed | 2 skipped (173)'. --ran reconciliation: '39 derived, 39 run, 0 NOT-MEASURED, 0 UNRUN'. pnpm check:new-line-citations: '0 new citation(s)'. PR check-runs: NOT MEASURED, reason: report delivered at PR open, CI in_progress (PM owns convergence).", "line_budget": "n/a - no skills/** touched; diff +218/-21 across 6 files (under the 3000-line human-merge threshold)", "files_changed": [ ".changeset/35135-disabledwhen-edit-reason.md", "ui/packages/app-shell/src/views/RecordDetailView.tsx", "ui/packages/app-shell/src/views/RecordDetailView.phoneFace-27058.test.tsx", "ui/packages/app-shell/src/views/RecordDetailView.userActionPredicates.test.tsx", "ui/packages/components/src/renderers/layout/containers.tsx", "ui/packages/components/src/__tests__/page-header-disabledReason-11811.test.tsx" ], "deviations": [ "No exported prop/type added: disabledReason is the existing ActionSchema key; the host's ActionDefs stay 'as any'. page:header now reads it on host actions too (behaviour, patch changeset for @object-ui/components and @object-ui/app-shell).", "RecordDetailView.userActionPredicates.test.tsx is a RecordDetailView test outside the two harness files named; touched only to read the Delete entry by accessible name (claim surface: 'their tests').", "Commit trailers use the model-free pair (Co-authored-by: Claude + Claude-Session), per AGENTS.md and the dispatch, not the harness reminder's model-named Co-Authored-By line.", "PR body carries the AGENTS.md session-URL footer block and then the dispatch's required closing lines." ], "dogfood_battery": "n/a - no ! in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "2 relay strokes - pr_create (POST /repos/objectstack-ai/objectstack/pulls draft, POST /issues/35288/assignees os-bill) via one repository_dispatch; os-dev-report comment POST /repos/objectstack-ai/objectstack/issues/35135/comments via post-stamped.mjs", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none - the list row buttons (data-table.tsx built-in row Edit / Delete under disabledWhen) grey with the same silence; named by the dispatch as out of scope, noted in Acceptance notes, not filed", "carrier: none - the host reason passes through localizeActionTexts, so a bundle key objects.OBJECT._actions.sys_edit.disabledReason would override it, as _actions.sys_edit.label already does for the label; noted, not filed" ] }objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ
Closed-out · area ux-2 · 2026-11-19T03:02Z
1b2cd80608(Fixes #35135; this card closed completed)Clause-②: no, confirmed in L1-a ACCEPT 6998025008); route B per ruling 6996106574Delivered: when
userActions.edit.disabledWhen(ordelete.disabledWhenin the overflow) greys the record page's Edit/Delete, the existingactions.notAvailableForRecordsentence shows as tooltip + accessible description on desktop and as a second line in the phone/overflow⋯entry; the state-lock badge and the approval band keep their own explanation (never two reasons).Follow-up: #35293 (the list row's built-in Edit/Delete has the same silence; p2, nested under this card).
State:
pm:dispatchedremoved; card closed.