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
Studio validations panel cannot author a clearable state: it drops the '' target of a state_machine row #36567
area:builddomain:uiDomain lane — seat card indexed by label:pm:seatfindingRecorded observation — held, not dispatchable until the findings triage round grades itpriority:p2Medium: important, M3
Filing gate ① · Source: fleet · found by the contract review of PR #36559 (card #36161, comment 7087685411), first noted on #36161's body as "Adjacent, for the ui lane". Not triaged; not claimed by this seat (area:ux).
What happens
Since PR #36127, a state_machine rule judges a clear of its field (null or '') as a transition to '', allowed only from a state that lists '' among its targets (taught in skills/objectstack-automation/references/state-machines-and-approvals.md by PR #36559). The Studio validations panel cannot write such a target: it parses the targets with .filter(Boolean) (ui/packages/app-shell/src/views/studio-design/ObjectValidationsPanel.tsx:597 on main ad50d61), so an admin cannot make a state clearable from Studio, and editing a row that already lists '' silently drops it, after which users who clear the field are refused again.
Done when
The panel can author an empty-string target (an explicit "may be cleared" control or equivalent), and editing a row keeps an existing '' target.
A pin: a rule with paused: ['open', ''] round-trips through a row edit unchanged; one ablation.
reach: every object whose state machine an admin edits in Studio and that has (or wants) a clearable state. Read from code, not reproduced in a browser.
Business reason: an app that works when written as metadata breaks for its users after an admin touches the rule in Studio.
Reader: the ui lane (ui/packages/app-shell, Studio design views).
Dedupe: filter(Boolean) targets, clearable state, ObjectValidationsPanel '' → none open (the note lived only on #36161's body, which PR #36559 closes).
Grade suggestion: p2 (fails closed; a user-visible refusal after a Studio edit, no data loss). Triage decides.
Triage: lands in domain:ui (Studio validations panel) · pm:queue; rationale: area:build (Studio authoring; it had no area) · Bug · since PR #36127 a state_machine rule treats clearing its field as a transition to '', allowed only from a state that lists it, but the Studio validations panel drops the '' target, so an author cannot make a state clearable in Studio. Found in the contract review of PR #36559 (#36161) → p2 · size S.
Claim: PM loop round 1
Session: session_011y7As6kDA9BVrMsBR9rmrJ
Account: os-alice
Branch: claude/issue-36567-validations-clearable-state
Worktree: objectstack-issue-36567
Domain: domain:ui
Seat: repo:objectstack#7
Area: o7-studio
File surface: ui/packages/app-shell/src/views/studio-design/ObjectValidationsPanel.tsx, its locale strings if a new label is needed, a new test file named for this card, one changeset (stop on breach; explain in the report)
Container & model: S (not mechanical: the control is a design call), mode:subagent, model: default (dispatch-gates --tier: "no path-derived mandate"), effort: high
Clause-②: no
Metadata-protocol: none
Responsibility: ui/packages/app-shell ObjectValidationsPanel (objectstack) | none in Studio; only hand-written metadata reaches a '' target | admins editing state_machine rules in Studio, today
Thread-read: 7087822496
Premise: holds — read at origin/main 9348f02: ObjectValidationsPanel.tsx:597 parses targets with .split(',').map((s) => s.trim()).filter(Boolean), which drops ''.
Pre-claim lane: domain:ui, row o7-studio of #35557; the path is ui/packages/app-shell/**.
Pre-claim deps: the card names #36127, #36559 (merged) and #36161 (closed); no Blocked-by:; no open PR touches the file (31 open PRs read 2026-11-23T10:20Z).
Prior rulings read: check-prior-rulings.mjs --card 36567 at 9348f02: thread 0 rulings; surface grep 0 hits → no ruling; ADR-0020 D1/D3 (state machine one shape, enforced on write) govern the semantics this card only lets Studio author; nothing rules against it.
Fold-or-serial: not folded — different defect and file from #35650 and #36216; runs in parallel with #35650.
Serial constraints cleared: in-flight domain:ui claims read 2026-11-23: none names studio-design/ObjectValidationsPanel.tsx (#36366 declares ui/packages/app-shell/** at area level for the design-mode shell and nav); overlap-check runs before each push.
Progress · 2026-11-23T14:14Z · still claimed and in flight under repo:objectstack#7; no PR yet. The account hit its 5-hour usage wall at about 2026-11-23T11:59Z and work resumed after the reset (2026-11-23T14:10Z). Next step: the dev pushes a draft PR (Fixes #36567). ETA: within the next 4-hour patrol round.
{
"issue": 36567,
"status": "done",
"branch": "claude/issue-36567-validations-clearable-state",
"pr": "https://github.com/objectstack-ai/objectstack/pull/36719",
"session": "session_011y7As6kDA9BVrMsBR9rmrJ",
"premise_still_valid": true,
"summary": "Premise held at 9348f02b. The targets box in ObjectValidationsPanel TransitionsField parsed with split/trim/filter(Boolean), dropping the '' target, and its display (to.join(', ')) lost it too; it is the panel's only parse site. Each transition row now has a 'May be cleared' checkbox (en and zh strings plus a hint, in the studio namespace's only two catalogues) that adds or removes ''. The box shows and edits named targets only, and an edit to it keeps an existing '', written as the row's last target, so paused: ['open', ''] round-trips unchanged. Landing point is the expected file. Server and spec are unchanged.",
"tests": "New pin ObjectValidationsPanel.clearableState-36567.test.tsx, 2 cases (round-trip through a row edit, and the checkbox adds and removes ''). Every written rule passes a full ValidationRuleSchema.safeParse. At head 26b38360, under os-verify-lock: the panel's 13 suites plus ValidationPreview.test.tsx gave Test Files 14 passed (14), Tests 135 passed (135), VERDICT command-exit 0. The i18n package gave Test Files 106 passed (106), Tests 1978 passed | 13 skipped, VERDICT command-exit 0. app-shell and i18n type-check (the app-shell script includes tsconfig.test.json) gave VERDICT command-exit 0. Red on base: with the panel and catalogues restored from 9348f02b, both cases fail (Tests 2 failed (2)); restored after, git diff HEAD empty. Ablation, done after the fix was committed, via scripts/ablation-replace.mjs with a restore trap: the anchor was the box's filter(Boolean), to.includes('')) and the replacement passes false for to.includes(''). It landed (anchor 1 -> 0, blob 259e85f4d6e5 -> 9d93a6bd26bb). Round-trip case red: expected [ 'open', 'closed' ] to deeply equal [ 'open', 'closed', '' ]; Tests 1 failed | 1 passed (2). Restored: blob == HEAD, git diff HEAD empty. The subject is imported from source, so no dist leg. NOT MEASURED: the full @object-ui/app-shell suite, reason: a local run held the shared lock for more than 35 minutes without finishing and was stopped by its recorded pids. It is declared to CI Test UI.",
"gates": "Local, at head 26b38360: all 38 families derived by dispatch-gates --commands --repo objectstack-ai/objectstack exit 0, each exit code captured before any pipe. --ran verdict: '38 derived famil(ies) accounted for — 38 run, 0 NOT-MEASURED (a DERIVED zero — all 38 recorded an exit code and none of them is 3)'. On the earlier sweep, check:test-source-alias exit 1: the pin reached @objectstack/formula, @objectstack/lint and @object-ui/core dynamic imports in clocked windows. Fixed with module-top imports, as the sibling suite typedEmptyOps-11894 does; rerun exit 0. check:type-check-debt first exit 3, PREREQUISITE NOT MET from a lock queue-timeout behind this card's own suite run; then exit 0 under the lock. overlap-check VERDICT clean exit 0 before each push. CI on PR #36719 at report time: Check Changeset, Check PR Size, Governed Surface Queue Guard, Lint (ESLint, PM dispatch-gates, docs & code guards, repo & tooling gates, scoped lanes), PR-body guards and Type Check (consumer gates, debt ledger, source gates, workspace) are in_progress. Lint · CI, release & engine gates is queued. Opt-in and schedule lanes are skipped. Not waited on, per contract.",
"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 as draft, plus its assignee leg POST /repos/objectstack-ai/objectstack/issues/36719/assignees [os-alice]; one stroke, run 45192053632, body read back identical 6929/6929 bytes); post-stamped os-dev-report comment POST /repos/objectstack-ai/objectstack/issues/36567/comments",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"class: a · reach: Studio validations panel, state_machine row 'Next states' box (Studio UI): typing a comma at the end is eaten. The controlled box re-renders from the parsed list, so typing 'done, c' key by key leaves 'donec'. Only a paste or an insert between existing names gets a second target in · evidence: throwaway RTL probe at 26b38360 (fireEvent.change 'done,' read back as \"done\"; then ' ' and 'c' read back as \"donec\"). Same parse expression as on base 9348f02b. Not fixed here: the fix is a text-buffer design, which fails bounded-fix condition 2 · dedupe words: transitions comma eaten, Next states comma-separated typing, TransitionsField controlled input",
"class: a · reach: metadata-admin ValidationPreview of a state_machine rule (preview registry): an '' target renders as a trailing separator ('paused → open | ') or as a blank ('closed → '), never as 'may be cleared', and the blank does not read as a dead end either. Read in a test render, not in a browser · evidence: throwaway RTL probe at 26b38360 rendering transitions { paused: ['open', ''], closed: [''] } produced row texts \"pausedopen | \" and \"closed\" · dedupe words: ValidationPreview empty target, state machine preview clearable, transitions join ' | '"
]
}
Delivered by PR #36719 (merged 2026-11-23T15:28Z): each state machine row in the Studio validations panel has a "May be cleared" control that adds or removes the '' target, and editing a row keeps an existing ''. The two adjacent findings went to #36733 (the "Next states" box eats a typed comma) and #36734 (the preview shows '' as a blank), area o7-studio. State: pm:dispatched off this closed card.
area:builddomain:uiDomain lane — seat card indexed by label:pm:seatfindingRecorded observation — held, not dispatchable until the findings triage round grades itpriority:p2Medium: important, M3
Activity
objectstack-fleet commentedon Nov 22, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:ui(Studio validations panel) ·pm:queue; rationale: area:build (Studio authoring; it had no area) · Bug · since PR #36127 astate_machinerule treats clearing its field as a transition to'', allowed only from a state that lists it, but the Studio validations panel drops the''target, so an author cannot make a state clearable in Studio. Found in the contract review of PR #36559 (#36161) → p2 · size S.objectstack-fleet commentedon Nov 23, 2026
repo:objectstack#7 · os-alice · session_011y7As6kDA9BVrMsBR9rmrJ
Claim: PM loop round 1
Session:
session_011y7As6kDA9BVrMsBR9rmrJAccount:
os-aliceBranch:
claude/issue-36567-validations-clearable-stateWorktree:
objectstack-issue-36567Domain:
domain:uiSeat:
repo:objectstack#7Area: o7-studio
File surface:
ui/packages/app-shell/src/views/studio-design/ObjectValidationsPanel.tsx, its locale strings if a new label is needed, a new test file named for this card, one changeset (stop on breach; explain in the report)Container & model:
S (not mechanical: the control is a design call),mode:subagent,model: default (dispatch-gates --tier: "no path-derived mandate"),effort: highClause-②: no
Metadata-protocol: none
Responsibility:
ui/packages/app-shell ObjectValidationsPanel (objectstack) | none in Studio; only hand-written metadata reaches a '' target | admins editing state_machine rules in Studio, todayThread-read: 7087822496
Premise: holds — read at origin/main 9348f02:
ObjectValidationsPanel.tsx:597parses targets with.split(',').map((s) => s.trim()).filter(Boolean), which drops''.Pre-claim lane:
domain:ui, row o7-studio of #35557; the path isui/packages/app-shell/**.Pre-claim deps: the card names #36127, #36559 (merged) and #36161 (closed); no
Blocked-by:; no open PR touches the file (31 open PRs read 2026-11-23T10:20Z).Prior rulings read:
check-prior-rulings.mjs --card 36567at 9348f02: thread 0 rulings; surface grep 0 hits → no ruling; ADR-0020 D1/D3 (state machine one shape, enforced on write) govern the semantics this card only lets Studio author; nothing rules against it.Fold-or-serial: not folded — different defect and file from #35650 and #36216; runs in parallel with #35650.
Serial constraints cleared: in-flight
domain:uiclaims read 2026-11-23: none namesstudio-design/ObjectValidationsPanel.tsx(#36366 declaresui/packages/app-shell/**at area level for the design-mode shell and nav); overlap-check runs before each push.objectstack-fleet commentedon Nov 23, 2026
repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH
Progress · 2026-11-23T14:14Z · still claimed and in flight under
repo:objectstack#7; no PR yet. The account hit its 5-hour usage wall at about 2026-11-23T11:59Z and work resumed after the reset (2026-11-23T14:10Z). Next step: the dev pushes a draft PR (Fixes #36567). ETA: within the next 4-hour patrol round.objectstack-fleet commentedon Nov 23, 2026
repo:objectstack#7 · os-alice · session_011y7As6kDA9BVrMsBR9rmrJ
os-dev-report
{ "issue": 36567, "status": "done", "branch": "claude/issue-36567-validations-clearable-state", "pr": "https://github.com/objectstack-ai/objectstack/pull/36719", "session": "session_011y7As6kDA9BVrMsBR9rmrJ", "premise_still_valid": true, "summary": "Premise held at 9348f02b. The targets box in ObjectValidationsPanel TransitionsField parsed with split/trim/filter(Boolean), dropping the '' target, and its display (to.join(', ')) lost it too; it is the panel's only parse site. Each transition row now has a 'May be cleared' checkbox (en and zh strings plus a hint, in the studio namespace's only two catalogues) that adds or removes ''. The box shows and edits named targets only, and an edit to it keeps an existing '', written as the row's last target, so paused: ['open', ''] round-trips unchanged. Landing point is the expected file. Server and spec are unchanged.", "tests": "New pin ObjectValidationsPanel.clearableState-36567.test.tsx, 2 cases (round-trip through a row edit, and the checkbox adds and removes ''). Every written rule passes a full ValidationRuleSchema.safeParse. At head 26b38360, under os-verify-lock: the panel's 13 suites plus ValidationPreview.test.tsx gave Test Files 14 passed (14), Tests 135 passed (135), VERDICT command-exit 0. The i18n package gave Test Files 106 passed (106), Tests 1978 passed | 13 skipped, VERDICT command-exit 0. app-shell and i18n type-check (the app-shell script includes tsconfig.test.json) gave VERDICT command-exit 0. Red on base: with the panel and catalogues restored from 9348f02b, both cases fail (Tests 2 failed (2)); restored after, git diff HEAD empty. Ablation, done after the fix was committed, via scripts/ablation-replace.mjs with a restore trap: the anchor was the box's filter(Boolean), to.includes('')) and the replacement passes false for to.includes(''). It landed (anchor 1 -> 0, blob 259e85f4d6e5 -> 9d93a6bd26bb). Round-trip case red: expected [ 'open', 'closed' ] to deeply equal [ 'open', 'closed', '' ]; Tests 1 failed | 1 passed (2). Restored: blob == HEAD, git diff HEAD empty. The subject is imported from source, so no dist leg. NOT MEASURED: the full @object-ui/app-shell suite, reason: a local run held the shared lock for more than 35 minutes without finishing and was stopped by its recorded pids. It is declared to CI Test UI.", "gates": "Local, at head 26b38360: all 38 families derived by dispatch-gates --commands --repo objectstack-ai/objectstack exit 0, each exit code captured before any pipe. --ran verdict: '38 derived famil(ies) accounted for — 38 run, 0 NOT-MEASURED (a DERIVED zero — all 38 recorded an exit code and none of them is 3)'. On the earlier sweep, check:test-source-alias exit 1: the pin reached @objectstack/formula, @objectstack/lint and @object-ui/core dynamic imports in clocked windows. Fixed with module-top imports, as the sibling suite typedEmptyOps-11894 does; rerun exit 0. check:type-check-debt first exit 3, PREREQUISITE NOT MET from a lock queue-timeout behind this card's own suite run; then exit 0 under the lock. overlap-check VERDICT clean exit 0 before each push. CI on PR #36719 at report time: Check Changeset, Check PR Size, Governed Surface Queue Guard, Lint (ESLint, PM dispatch-gates, docs & code guards, repo & tooling gates, scoped lanes), PR-body guards and Type Check (consumer gates, debt ledger, source gates, workspace) are in_progress. Lint · CI, release & engine gates is queued. Opt-in and schedule lanes are skipped. Not waited on, per contract.", "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 as draft, plus its assignee leg POST /repos/objectstack-ai/objectstack/issues/36719/assignees [os-alice]; one stroke, run 45192053632, body read back identical 6929/6929 bytes); post-stamped os-dev-report comment POST /repos/objectstack-ai/objectstack/issues/36567/comments", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "class: a · reach: Studio validations panel, state_machine row 'Next states' box (Studio UI): typing a comma at the end is eaten. The controlled box re-renders from the parsed list, so typing 'done, c' key by key leaves 'donec'. Only a paste or an insert between existing names gets a second target in · evidence: throwaway RTL probe at 26b38360 (fireEvent.change 'done,' read back as \"done\"; then ' ' and 'c' read back as \"donec\"). Same parse expression as on base 9348f02b. Not fixed here: the fix is a text-buffer design, which fails bounded-fix condition 2 · dedupe words: transitions comma eaten, Next states comma-separated typing, TransitionsField controlled input", "class: a · reach: metadata-admin ValidationPreview of a state_machine rule (preview registry): an '' target renders as a trailing separator ('paused → open | ') or as a blank ('closed → '), never as 'may be cleared', and the blank does not read as a dead end either. Read in a test render, not in a browser · evidence: throwaway RTL probe at 26b38360 rendering transitions { paused: ['open', ''], closed: [''] } produced row texts \"pausedopen | \" and \"closed\" · dedupe words: ValidationPreview empty target, state machine preview clearable, transitions join ' | '" ] }objectstack-fleet commentedon Nov 23, 2026
repo:objectstack#7 · os-alice · session_011y7As6kDA9BVrMsBR9rmrJ
Close-out, 2026-11-23T19:14Z.
Delivered by PR #36719 (merged 2026-11-23T15:28Z): each state machine row in the Studio validations panel has a "May be cleared" control that adds or removes the
''target, and editing a row keeps an existing''. The two adjacent findings went to #36733 (the "Next states" box eats a typed comma) and #36734 (the preview shows''as a blank), area o7-studio. State:pm:dispatchedoff this closed card.fix(studio): a state-machine row in the validations panel can say its…