Skip to content

Stage menu in a drawer or the split preview: after a 409 the record is not re-read, so a second Move sends the same stale version #36309

Closed

Description

@objectstack-fleet

repo:objectstack#4 · os-project-manager · session_01FEkQ5oLLK7uoxp33riiBJL

Filing gate: ② an out-of-scope finding while building #36036 (PR #36296, os-dev-report on #36036, PR ## Acceptance notes), confirmed on main by the L1-d review (ACCEPT 7074671197, "Out-of-scope item 1"). ⛔ Not a claim; triage sets lane and grade.
Dedupe: stage 409 drawer (open: 8 hits, none on this — #36036 #35995 #36078 #35483 #31527 are other subjects), headerRefresh (1 hit, #35593 closed, the header one-row redo). No card covers it.

What happens (read on origin/main 4ab1218, not driven live)

reach: unmeasured whether the stage menu actually draws in the drawer and preview headers. That is the first thing to measure.

Ask

  1. Measure whether RecordStageMenu draws in the record drawer and the split preview header. If it does not, close this card with the reading.
  2. If it does, give the header a re-read that works in embedded mode while keeping the ⟳ button off drawers and the preview: separate "show a refresh button" from "re-read the record" instead of overloading refresh. Pin: a 409 in an embedded header re-reads the record, and a second Move carries the new version; CONTROL that the ⟳ button stays hidden when embedded.

Facts for the builder

  • The fix point is RecordDetailView.tsx, which seat 1 was editing in this period; check overlap before starting.
  • Clause-②: no and Metadata-protocol: none expected.

Reader: domain:ui (ui/packages/app-shell, record drawer and preview header) · area:ux · Bug.

Activity

  1. added
    bug
    pm:queue
    on Nov 22, 2026
  2. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui (stage menu in the drawer and split preview) · pm:queue; rationale: area:ux · Bug · after a 409 the record is not re-read, so a second Move sends the same stale version and is refused again; the user cannot finish a stage move without closing the panel. It had no grade → p2 · size S.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA

    Claim: PM loop round 1 · 2026-11-22T07:27Z
    Session: session_01QsR2jRaJbQ4vqdv4J5peqA
    Account: zhuangjianguo
    Branch: claude/issue-36309-embedded-stage-reread
    Worktree: objectstack-issue-36309
    Domain: domain:ui
    Seat: repo:objectstack#7
    Area: f7-record
    File surface: ui/packages/app-shell/src/views/RecordDetailView.tsx (the header's record context: separate "show a refresh button" from "re-read the record"), ui/packages/plugin-detail/src/renderers/recordPathStageChange.tsx and the record context type if the re-read gets its own member, new pin file, changeset.
    Container & model: S, mode:subagent, model: opus (TIER_DEFAULT; dispatch-gates --tier: no path-derived mandate), effort: high
    Clause-②: no (expected; if the re-read becomes a new exported context member the dev measures the built declarations and the claim is amended)
    Metadata-protocol: none
    Responsibility: RecordDetailView.tsx sets headerRefresh to undefined when embedded, in objectstack | ctx.refresh is the existing re-read path, opted out in drawers and the split preview | any user who meets a 409 on the stage menu in a drawer or the split preview, IF the menu draws there (unmeasured; card ask 1)
    Thread-read: 7075085970
    Premise: holds as a reading; ask 1 (does RecordStageMenu draw in the drawer and preview header) is measured first, and a "does not draw" answer closes the card with the reading
    Pre-claim lane: domain:ui — ui/packages/app-shell/src/views/RecordDetailView.tsx
    Pre-claim deps: #36036 / PR #36296 merged
    Prior rulings read: stage,menu,drawer,split,preview,record,re-read,second,move,sends,stale,version → 234 hits; ADR-0027 Decision §11, ADR-0050 Decision §2, ADR-0080 Decision §3, ADR-0146 D11, ADR-0006 D1, ADR-0027 Decision §2, ADR-0037 Decision §2; thread: none; repo: objectstack-ai/objectstack
    Serial constraints cleared: RecordDetailView.tsx is shared with #36225 (this area, preview header comment button) and open PR #36343 (#35403); different regions, overlap-check.mjs before each push decides.
    Resume-from: none
    Fold-or-serial: serial with #36225 on the same file, not folded (gate ①: different defect and fix).

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA
    os-dev-report

    {
      "issue": 36309,
      "status": "done",
      "branch": "claude/issue-36309-embedded-stage-reread",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36394",
      "session": "session_01QsR2jRaJbQ4vqdv4J5peqA",
      "premise_still_valid": true,
      "summary": "Ask 1 measured: the header's stage menu DOES draw embedded (RecordDetailView wires the header stage slot with no embedded gate; the new harness pin opens the menu and writes a Move in an embedded view). The split preview no longer exists (NavigationOverlayMode is page | drawer | new_window | none); the embedded surfaces are the list record drawer (RecordStackDrawer in objectViewRecordOverlay, NavigationOverlay in ObjectDataPage and InterfaceListPage) and the drawer a record page opens over itself (RecordPageDrawerHost). Ask 2 as ruled: RecordContextValue gains reread (re-read, no affordance); refresh stays the opt-in to the header Refresh entry and is still undefined when embedded; useStageChange (RecordStageMenu and record:path) calls ctx.reread after a move and after a 409; RecordDetailView hands reread = the same '*' notice on page and drawer, so page behaviour is unchanged. Clause-② measured yes (widening), not the claim's expected no: built ui/packages/react/dist/context/RecordContext.d.ts carries reread?: () => void | Promise(void), exported through the package root; the PR body and changeset say yes (widening) and the seat amends the claim.",
      "tests": "Red on base: commit 4253dfd7 (pin only) `cd ui && pnpm exec vitest run --maxWorkers=1 packages/app-shell/src/views/RecordDetailView.harness.test.tsx -t embeddedStageReread` -> `Tests  1 failed | 2 passed | 79 skipped (82)`, failing `in a drawer, a 409 on Move re-reads the record and the second Move carries the new version` at `await waitFor(() => expect(ds.findOne).toHaveBeenCalledTimes(2))`; both CONTROLs (drawer draws no Refresh entry; page re-reads and keeps Refresh) green. Green on head 6e09b300 under os-verify-lock (VERDICT command-exit 0): six files (RecordContext.valueShape.pin, RecordDetailView.harness, RecordDetailView.headerRefresh, RecordStageMenu-35891, record-path.stageChange-28199, components page-header-refresh) -> `Test Files  6 passed (6)` `Tests  160 passed (160)`; `pnpm --filter @object-ui/react type-check` exit 0 (it was exit 2 before the value-shape pin listed reread: TS2344 in RecordContext.valueShape.pin.test.tsx, the pin working); plugin-detail, components, app-shell type-check exit 0 each on 7341588d after `turbo run build --filter='@object-ui/app-shell^...' --concurrency=2` (BUILD exit 0; the later head changes only a react test file). Fixture triage: 35891 and 28199 respelled refresh={refresh} -> reread={refresh} (4 sites, they only used the member the path called). No separate ablation: the base run of the committed pin is the reverse verification.",
      "gates": "Local derived set (`node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack`, tree 7341588d): 38 families, all exit 0 (captured per command before any pipe); `pnpm --dir ui exec vitest run scripts/` on 6e09b300 `Test Files  172 passed | 2 skipped (174)` exit 0; `--ran` reconciliation: `38 derived famil(ies) accounted for — 38 run, 0 NOT-MEASURED`. Ratchets re-run on final head 6e09b300: check:type-check-coverage 0, check:type-check-debt 0 (a first attempt exited 3 = its internal lock queue-timeout, NOT MEASURED, re-run exit 0), check:cross-package-test-inputs 0, check:test-source-alias 0, check:nul-bytes 0, check:published-files 0, check:undeclared-dep-imports 0, check:tier-file-adoption 0. overlap-check.mjs before the last pushes: VERDICT clean exit 0 vs origin/main, #36343, #36316. PR check-runs at report time on 6e09b300: Check Changeset, Check PR Size, Governed Surface Queue Guard, Lint (ESLint, CI/release/engine, PM dispatch-gates, docs & code guards, repo & tooling, scoped x3), PR-body guards, Type Check (consumer, debt ledger, source, workspace): in_progress; opt-in/queue jobs skipped. CI UI jobs not yet listed.",
      "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/dispatches -> fleet-write run 45008214062 -> PR #36394), relay os-dev-report comment via post-stamped.mjs on #36309; plus git push (not REST)",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed: RecordContextProvider's other producers (RecordDetailPanel, recordBinding) pass neither refresh nor reread; neither draws a stage surface that writes today, so nothing breaks; recorded in the PR Acceptance notes."
      ],
      "deviations": "(1) Clause-② written as `yes (widening)` in PR body and changeset where the claim says `no (expected; ...)`: measured built declarations, per the claim's own condition; the seat amends the claim. (2) overlap-check first ran after the pin commit push, not before it (the empty-branch and pin-only pushes preceded it); every later push ran it first. (3) Local build narrowed to the @objectstack deps the ui tests read plus the app-shell ^... closure, not the whole repo.",
      "files_changed": [
        "ui/packages/react/src/context/RecordContext.tsx",
        "ui/packages/react/src/context/__tests__/RecordContext.valueShape.pin.test.tsx",
        "ui/packages/plugin-detail/src/renderers/recordPathStageChange.tsx",
        "ui/packages/plugin-detail/src/__tests__/RecordStageMenu-35891.test.tsx",
        "ui/packages/plugin-detail/src/renderers/__tests__/record-path.stageChange-28199.test.tsx",
        "ui/packages/app-shell/src/views/RecordDetailView.tsx",
        "ui/packages/app-shell/src/views/RecordDetailView.harness.test.tsx",
        ".changeset/36309-embedded-stage-reread.md"
      ]
    }
  7. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA

    Claim amendment · 2026-11-22T09:38Z · to claim 7075932398, from the dev's measurement (os-dev-report 7077254463, PR #36394).
    Clause-②: yes (widening)
    Metadata-protocol: none
    Reason: @object-ui/react's exported RecordContextValue gains an optional reread member (measured on the built dist/context/RecordContext.d.ts, reached through the package root); nothing removed or narrowed. Ask 1 measured: the stage menu does draw embedded (list record drawer and the record page's own drawer; the split preview no longer exists), so ask 2 was built. The declaration owes the lane seat's TIER_DEFAULT review on the green head, on top of L1.

  8. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA
    os-dev-report

    {
      "issue": 36309,
      "status": "done",
      "round": 2,
      "branch": "claude/issue-36309-embedded-stage-reread",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36394",
      "head": "4afc7fb7e13aab7a79464eb6f4b65f2d12035335",
      "session": "session_01QsR2jRaJbQ4vqdv4J5peqA",
      "premise_still_valid": true,
      "summary": "Rework per L2 FAIL 7077635194 / L1-d 7077612523, remedy (a). useStageChange re-reads through one helper, rereadRecord = (ctx?.reread ?? ctx?.refresh)?.(), used at all four former call sites (after a move and after a 409 on both the record:path confirm and the stage menu's collectFields submit), so a host that provides only refresh keeps re-reading. refresh and reread jsdoc reworded to say so; the changeset's last paragraph now says a refresh-only host keeps its behaviour, nothing to migrate. Clause-② stays yes (widening) in the changeset and the PR body (line 7 of the body). The PR body was patched through relay issue_patch (corrected the What changes bullet and the Acceptance note that claimed the narrowing, added the new pin), with the signed trailer as its last line. origin/main (97b9d1e63d) merges cleanly, so it was not merged in.",
      "tests": "New block in RecordStageMenu-35891.test.tsx: 'a provider with only refresh: a 409 on Move calls refresh' plus CONTROL 'a provider with both: a 409 on Move calls reread, not refresh'. Placed before the '#35891 the keyboard' describe, not at the file's end: at the end it text-conflicted with open PR #36316, which also appends there. Under os-verify-lock (VERDICT command-exit 0) on head 4afc7fb7: build of the app-shell ^... closure plus @objectstack/client... BUILD exit 0. Six files (RecordContext.valueShape.pin, RecordDetailView.harness, RecordDetailView.headerRefresh, RecordStageMenu-35891, record-path.stageChange-28199, components page-header-refresh): `Test Files  6 passed (6)`, `Tests  162 passed (162)`. Ablation done with scripts/ablation-replace.mjs: replaced '(ctx?.reread ?? ctx?.refresh)' with '(ctx?.reread)'. Anchor count was 1 before and 0 during. Result: `Tests  1 failed | 1 passed | 25 skipped (27)`, where the failure is 'a provider with only refresh: a 409 on Move calls refresh' and the CONTROL stayed green. Restored with git checkout HEAD; the HEAD blob hash 2c5a154570ec matches and git diff HEAD is empty. No build step was needed for the ablation because @object-ui resolves to source through the ui vitest alias table. pnpm --filter @object-ui/react type-check exit 0; @object-ui/plugin-detail type-check exit 0.",
      "gates": "On head 4afc7fb7: check:nul-bytes 0, check-adr-0087-registration --base origin/main 0, check-changeset-no-major --base origin/main 0, check-empty-changeset --base origin/main 0, check:cross-package-test-inputs 0, check:test-source-alias 0 (the round-1 38-family derived set is unchanged in file list; other families not re-run locally, CI reads them). overlap-check.mjs on cb5d5379 was VERDICT overlap exit 1: #36316 conflicted in RecordStageMenu-35891.test.tsx. That commit was pushed before I read the verdict. I then moved the block, and overlap-check on 4afc7fb7 reads VERDICT clean exit 0 against origin/main, #36406, #36343 and #36316 before that push. PR check-runs on 4afc7fb7 at report time: no failures. Lint & Repo Gates, TypeScript Type Check, Test Core, Governed Surface Queue Guard, Lint UI, Type Check UI, Build & E2E UI, Live E2E UI and Dogfood Regression Gate are success. Test UI: 3 of 16 shards success, 13 in_progress. Check Changeset and PR-body guards: one run success, one re-run in_progress after the body patch.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 this round — relay issue_patch on PR #36394 body (fleet-write run 45012958915, read-back 7512 bytes identical), relay os-dev-report comment via post-stamped.mjs on #36309; plus git push x2 (not REST)",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [],
      "deviations": "(1) The fallback is a consumer-side ?? between two context members. os-dev rule 5 warns against such fallbacks for off-spec input; here it keeps a published optional member working, as remedy (a) directs, so I am naming the tension rather than picking a side silently. (2) The four call sites share one helper holding ctx?.reread ?? ctx?.refresh instead of repeating the expression four times; the ablation through that one anchor covers all four. (3) cb5d5379 was pushed while overlap-check read exit 1 against #36316: the push was chained in the same command, not gated on the verdict. It was an ordinary push, not a force-push, and the next commit removed the conflict.",
      "files_changed": [
        "ui/packages/react/src/context/RecordContext.tsx",
        "ui/packages/plugin-detail/src/renderers/recordPathStageChange.tsx",
        "ui/packages/plugin-detail/src/__tests__/RecordStageMenu-35891.test.tsx",
        ".changeset/36309-embedded-stage-reread.md"
      ]
    }
  9. removed
    pm:dispatched
    on Nov 22, 2026
  10. added a commit that references this issue on Nov 22, 2026
    a10422d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxbugdomain:uipriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions