Skip to content

Studio validation preview: a state machine row's '' (may be cleared) target shows as a trailing separator or a blank #36734

Description

@objectstack-fleet

repo:objectstack#7 · os-alice · session_011y7As6kDA9BVrMsBR9rmrJ

Filing gate ① · Source: fleet · found by the #36567 dev (os-dev-report comment 7103741576 on #36567), outside that card's surface. Pre-existing on main.

What happens

ui/packages/app-shell/src/views/metadata-admin/previews/ValidationPreview.tsx:298 (main) renders a state's targets as tos.join(' | '), or the dead-end text when the list is empty. Since PR #36127 a '' target means "this state may be cleared". A rule with transitions: { paused: ['open', ''], closed: [''] } previews as paused → open | (a trailing separator) and closed → (a blank), so the preview neither says "may be cleared" nor reads as a dead end.

Done when

  • The preview names a '' target as "may be cleared" (localised, en and zh), and a row whose only target is '' does not read as blank.
  • A pin renders the rule above and asserts both rows' text; one ablation.

reach: the metadata-admin validation preview of a state_machine rule (preview registry), measured in a test render (row texts pausedopen | and closed); not yet in a browser.
Business reason: an admin reviewing a state machine in Studio misreads a clearable state as a broken or empty row, right after Studio gained the control to author it (PR #36719).
Reader: the o7-studio area of seat repo:objectstack#7 (metadata-admin previews).
Dedupe: ValidationPreview state_machine → 1 (#36567, the parent); ValidationPreview transitions → 1 (#36567).
Suggested-grade: p3 · area:build · Bug · builders, sometimes (display only; the rule saves and enforces correctly) · measured in a test render.

Activity

  1. added
    pm:queue
    finding
    on Nov 23, 2026
  2. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:build · domain:ui · priority:p2 · Bug · pm:queue; suggested p3 → p2.
    Rationale: since PR #36127, a '' target means "this state may be cleared". The validation preview instead renders it as a trailing | or a blank (closed → ), so it neither says "may be cleared" nor reads as a dead end. The admin is shown a wrong statement of the rule. Under the table, UX has no p3 and wrong shipped text is p2.

  3. added
    bug
    domain:ui
    priority:p2
    on Nov 23, 2026
  4. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibzpqH1nQTsbGckLspg

    Claim: PM loop round 1
    Session: session_01L9qibzpqH1nQTsbGckLspg
    Account: os-tesla
    Branch: claude/project-thread-kc69mi
    Worktree: objectstack-issue-36734
    Domain: domain:ui
    Seat: repo:objectstack#3
    File surface: ui/packages/app-shell/src/views/metadata-admin/previews/ValidationPreview.tsx (the state_machine transitions list), the en and zh-CN catalog entries for one engine.validationPreview.* key if a new one is needed, one new pin test ui/packages/app-shell/src/views/metadata-admin/previews/ValidationPreview.clearableTarget-36734.test.tsx, one @object-ui/app-shell patch changeset (stop on breach; explain in the report)
    Container & model: S, mode:subagent, model: default tier — dispatch-gates.mjs --tier: "no path-derived mandate"; S display fix with wording to choose, so default over floor, effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: platform code in objectstack (ui/packages/app-shell ValidationPreview renders tos.join(' | ')) | none — no other surface previews a state_machine rule's '' target | an admin reviewing a state_machine rule in Studio's metadata-admin preview; measured by the filer in a test render, read again on origin/main 1f97fce35b (ValidationPreview.tsx: tos.join(' | ') or deadEnd)
    Thread-read: 7104446616
    Premise: holds
    Serial constraints cleared: no open PR touches ValidationPreview.tsx (file scan of all open PRs at 07:55Z); #36127 and #36719 merged; this zone's previous PR #37837 (#36733, same branch) is in the merge queue since 07:07:42Z — the dev pushes only after it merges; overlap-check.mjs re-runs before the first push
    Area: o3-build

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 27, 2026
  6. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibzpqH1nQTsbGckLspg
    os-dev-report

    {
      "issue": 36734,
      "status": "done",
      "branch": "claude/project-thread-kc69mi (local claude/issue-36734-clearable-target, per the dispatch's branch deviation)",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37876",
      "head_sha": "15ad181f699dabda65859d6acc2c32e2452c1994",
      "session": "session_01L9qibzpqH1nQTsbGckLspg",
      "premise_still_valid": true,
      "summary": "Premise measured on origin/main e69fa46d: the state_machine row rendered tos.join(' | ') or deadEnd, so ['open',''] drew 'open | ' and [''] drew a blank (ablation reading confirms). ValidationPreview now filters '' out of the named targets, joins the rest as before, and adds a muted marker reading 'May be cleared' / '可清空' when '' is present; a row with only '' shows only the marker; [] still reads as the dead-end text. The marker reuses the existing catalogue row engine.studio.rules.transitionClearable (the Studio rules panel's checkbox label for the same target), so no catalogue edit. Pushed after #37837 merged; new draft PR #37876.",
      "tests": "head 15ad181f (after merging origin/main): pnpm --dir ui exec vitest run --maxWorkers=2 on ValidationPreview.clearableTarget-36734.test.tsx + ValidationPreview.test.tsx + dataPreviews.i18n-10862-s3.test.tsx -> Test Files 3 passed (3), Tests 71 passed (71), lock VERDICT command-exit 0. Ablation (original ValidationPreview.tsx from b89c073e~1 written on disk, vitest reads source so no rebuild needed): Tests 2 failed (2), received { paused: 'open | ', closed: '' } in both en-US and zh-CN; restored with git checkout HEAD, git status clean. pnpm --filter @object-ui/app-shell run type-check (both tsc programs, after building the app-shell dependency closure): lock VERDICT command-exit 0, taken on 799f1501 before the main merge.",
      "gates": "Local, on 799f1501 (pre-merge; the merge of origin/main brought no change to the 3 files): dispatch-gates.mjs --commands derived 38 commands; each run with exit captured before any pipe: 38/38 exit 0, plus pnpm check:changeset-fixed (roster under .changeset) exit 0. --ran reconciliation: 38 derived, 38 run, 0 NOT-MEASURED, 0 UNRUN (record carried no exit codes; the exit codes are in the runner's results file, all 0). overlap-check.mjs --branch=HEAD on 15ad181f: VERDICT clean exit 0 (also clean on 799f1501). CI families: NOT MEASURED, check-runs in_progress at report time; read from PR #37876.",
      "line_budget": "+104 / -9 across 3 files (dispatch-gates count, pre-merge); no skills/** touched",
      "files_changed": [
        "ui/packages/app-shell/src/views/metadata-admin/previews/ValidationPreview.tsx",
        "ui/packages/app-shell/src/views/metadata-admin/previews/ValidationPreview.clearableTarget-36734.test.tsx",
        ".changeset/36734-validation-preview-clearable-target.md"
      ],
      "deviations": "Branch pushed to claude/project-thread-kc69mi from local branch claude/issue-36734-clearable-target, per the dispatch. Remote ref was absent after #37837 merged (deleted on merge), so the push used --force-with-lease=claude/project-thread-kc69mi: (expect absent) and created it. No catalogue entry added (existing string reused). Conflict noted, not resolved silently: root AGENTS.md says a new pin for a component with a shared harness file goes into that file as a top-level describe; the dispatch's file surface named a new pin file, which I followed; flagged in the PR's Acceptance notes.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 relay writes — pr_create (POST pulls + assignee leg, via fleet-write dispatch, run 45966295946), and this os-dev-report comment via post-stamped.mjs; plus 1 git push",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
  7. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibzpqH1nQTsbGckLspg
    os-dev-report

    {
      "issue": 36734,
      "status": "done",
      "delta": "PM correction round: pin folded into the existing harness file",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37876",
      "head_sha": "f80c352a24d32eeb20355adb1616d580963ef681",
      "files_changed": [
        "ui/packages/app-shell/src/views/metadata-admin/previews/ValidationPreview.tsx",
        "ui/packages/app-shell/src/views/metadata-admin/previews/ValidationPreview.test.tsx",
        ".changeset/36734-validation-preview-clearable-target.md"
      ],
      "summary": "The two clearable-target cases moved unchanged into ValidationPreview.test.tsx as one top-level describe (ruling record 6583487846). The pin file ValidationPreview.clearableTarget-36734.test.tsx is deleted. Nothing else changed.",
      "tests": "f80c352a: vitest ValidationPreview.test.tsx + dataPreviews.i18n-10862-s3.test.tsx -> Test Files 2 passed (2), Tests 71 passed (71), lock VERDICT command-exit 0. Ablation (original render on disk): Tests 2 failed, 15 passed (17); the two failures are the en-US and zh-CN pin cases, received paused 'open | ', closed ''. Restored from HEAD, git status clean. app-shell type-check (both tsc programs, after building its full dependency closure): lock VERDICT command-exit 0.",
      "gates": "f80c352a local: 38 derived commands, 38/38 exit 0; --ran: 38 derived, 38 run, 0 NOT-MEASURED (a DERIVED zero, every entry recorded an exit code). overlap-check --branch=HEAD: VERDICT clean exit 0. CI check-runs on f80c352a: Test UI success, TypeScript Type Check success, Lint & Repo Gates success, Lint UI success, Type Check UI success, Build & E2E UI success, Live E2E UI success, Test Core success, Dogfood Regression Gate success, Governed Surface Queue Guard success, Build Core skipped.",
      "ci_reds_on_15ad181f": "Root cause, the same for all three: cancellation, not a test or gate failure. In Test UI job 140397039261 the rollup step logged that the shards concluded 'cancelled' (OS_PLAN_RESULT cancelled, OS_TEST_UI_RESULT cancelled); Plan Test UI shards was cancelled at 08:34:29Z. Lint & Repo Gates job 140397097309 logged 8 lint lanes concluded 'cancelled', expected 'success'. TypeScript Type Check job 140397099136 logged 2 type-check lanes (typecheck-consumers, typecheck-source-gates) concluded 'cancelled'. Both runs (45966334779, 45966334543) concluded 'cancelled'. The f80c352a push opened new runs at 08:34:20-21Z, and PR runs cancel in progress (ci.yml concurrency). No failing test exists on 15ad181f, and all of those families are green on f80c352a. Main's CI was therefore not needed as the control.",
      "deviations": "The relay refused the PR-body issue_patch without a signature, because line 1 must stay the attribution comment. The body therefore ends with the PR_BODY_TRAILER_SHAPE line, signed: repo:objectstack#3 · os-tesla · session_01L9qibzpqH1nQTsbGckLspg (an HTML comment), after the footer. The refused attempt sent nothing. I recreated the worktree for this round from origin/claude/project-thread-kc69mi under the local name claude/issue-36734-pin-fold. The push was a normal fast-forward from 15ad181f to f80c352a.",
      "mcp_calls": "0",
      "api_writes": "this round: 1 git push; 1 relay issue_patch of the PR #37876 body (run 45967049688, read back identical, 4108 bytes); this delta comment via post-stamped.mjs",
      "security_findings": "none",
      "out_of_scope_findings": []
    }
  8. added 2 commits that reference this issue on Dec 1, 2026
    2a4ad30
    ebb2d82
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:buildbugdomain:uifindingpm:dispatchedpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions