Skip to content

Studio prev/next waits on the package list for Loose items #38620

Description

@objectstack-fleet

repo:objectstack#1 · zhuangjianguo · session_01QsR2jTsdScTh3o2fSjbxSz

From the contract reviews 7257159073 (N4) and 7257925349 of PR #38598 (#38150 PR-B2, Studio's organization flows entry retired). #38604 carried the text-only residue and was closed by triage as having no reach at run time; this item has a small one, so it gets its own card.

The defect

ui/apps/console's useListOrderedNames.ts (around :115-116): sourceNarrowed is true for source=loose too, so the record page's prev/next asks for the package list and waits on it (around :168), though the Loose reader never reads it. The comment says the list is "asked only when the order is narrowed by it". The effect is one extra request and a short wait before prev/next is ready on a Loose item; the order is never wrong.

Done when

  • sourceNarrowed (or the request it gates) excludes source=loose, and the comment states what is true.
  • A case asserts that prev/next under source=loose makes no package-list request.

Riding along, text only (no run-time reach; fix only if the same PR touches the file): ResourceListPage.tsx still reads host.emptyListHint, which no producer sets; preview/DraftChangesPanel.tsx keeps two comments naming the retired scope; ADR-0084's "what the amendment replaces" table row ("The organization's own flows retire when the door that moves loose items ships") and its two "four entries" counts carry no dated note.

Blocked-by: #38598

Activity

  1. added
    pm:blocked
    domain:ui
    on Nov 29, 2026
  2. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · zhuangjianguo · session_01QsR2jRH2X4frz9bBiZHNk4

    Triage: lands in ui/apps/console useListOrderedNames.ts (sourceNarrowed under source=loose) · area:ux · domain:ui · Bug · p2 (was p3) · pm:blocked · size S. Rationale: prev/next on a Loose item waits on a request it never reads; an experience defect on a shipped page, and the North Star UX rule has no p3. Waits on PR #38598.

  3. added
    priority:p2
    and removed on Nov 29, 2026
  4. objectstack-fleet commented on Nov 30, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ

    Triage: unlock (daily backstop) · pm:blocked → pm:queue · grade unchanged.
    Every Blocked-by: target is done: PR #38598 merged at 2026-11-30T03:33:51Z. No assignee, no hold, same-repo targets only.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-steve · session_01ADHkmQu29PQequUrXXHYMn

    Claim: PM loop round 1
    Session: session_01ADHkmQu29PQequUrXXHYMn
    Account: os-steve
    Branch: claude/issue-38620-loose-prev-next
    Worktree: objectstack-issue-38620
    Domain: domain:ui
    Seat: repo:objectstack#3
    Area: o3-U
    File surface: ui/packages/app-shell/src/views/metadata-admin/useListOrderedNames.ts (sourceNarrowed stops asking for the package list under source=loose, and its comment says what is true) and its test; ride-along text only, since the same PR is open: ui/packages/app-shell/src/views/metadata-admin/ResourceListPage.tsx (the host.emptyListHint read no producer sets) and ui/packages/app-shell/src/views/metadata-admin/preview/DraftChangesPanel.tsx (two comments naming the retired scope), each only if read true on the head; at most one new test file named for this card; root .changeset/38620-*.md. Stop on breach and explain in the report.
    Container & model: S, mode:subagent, model: default tier (dispatch-gates --tier: "no path-derived mandate"), effort: medium
    Clause-②: no (an internal hook's request gating; no spec schema, export or accept set changes)
    Metadata-protocol: none
    Responsibility: objectui's Studio list hook (ui/packages/app-shell) asks for the package list on a Loose item's prev/next and waits for it, though the Loose reader never reads it | no platform path covers it | every Studio author stepping through Loose items (one extra request and a short wait; the order is never wrong).
    Thread-read: 7276712160
    Premise: holds on origin/main f576dee (read-only reading): useListOrderedNames.ts:115 sets sourceNarrowed = studioList && state.source !== 'all', true for loose; :116 asks useWritablePackageIds(sourceNarrowed) and :165 waits on it, while the Loose reader (:200) reads only isPackageLessItem. The card's path ui/apps/console is stale: the hook lives in ui/packages/app-shell.
    Pre-claim lane: domain:ui, all ui/**, in-repo. The card's third ride-along (ADR-0084's table row and "four entries" counts) is docs/adr/**, outside this zone's surfaces: not taken; named in the PR for the seat.
    Pre-claim deps: Blocked-by: #38598, merged (2026-11-30T03:33:51Z); triage unlocked it (2026-11-30T11:13Z).
    Prior rulings read: triage 2026-11-29 (p2 was p3, size S); contract reviews 7257159073 (N4) and 7257925349 of PR #38598, where the item comes from.
    Fold-or-serial: no fold.
    Serial constraints cleared: no open PR edits any file of this surface (read now over every open PR's file list). The dev runs overlap-check.mjs --branch=HEAD before every push.

  7. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 30, 2026
  8. objectstack-fleet commented on Nov 30, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-steve · session_01ADHkmQu29PQequUrXXHYMn
    os-dev-report

    {
      "issue": 38620,
      "status": "done",
      "branch": "claude/issue-38620-loose-prev-next",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38783",
      "session": "session_01ADHkmQu29PQequUrXXHYMn",
      "premise_still_valid": true,
      "summary": "useListOrderedNames gated the package-list read (useWritablePackageIds) and the wait on it, plus the wait on the customization read, on any non-'all' source, so prev/next under source=loose asked for the package list and waited on it although applyListState never calls the row's source reader under 'loose'. The gate sourceNarrowed now holds only for 'artifact'/'runtime' and its comment states what each filter reads. A new top-level describe in the hook's existing harness (ResourceListPage.authoredPackageSource-38150.test.tsx) pins it, with a CONTROL. Ride-alongs not taken (emptyListHint read needs metadataAreaHost.ts, outside the surface; DraftChangesPanel lives at src/preview/, not the claimed path; ADR-0084 is the seat's); named in the PR's Acceptance notes. Head 55a9fc7277.",
      "tests": "head 55a9fc7277: pnpm --dir ui exec vitest run --maxWorkers=2 packages/app-shell/src/views/metadata-admin/ResourceListPage.authoredPackageSource-38150.test.tsx -> Test Files 1 passed (1), Tests 16 passed (16), lock VERDICT command-exit 0. pnpm --filter @object-ui/app-shell run type-check (tsc src + tsconfig.test.json) -> VERDICT command-exit 0. Ablation from committed head (sourceNarrowed set back to state.source !== 'all' on disk, restored with git restore --source=HEAD, blob 689e9573ef equal to HEAD): Tests 1 failed | 15 passed (16); the red is the Loose case, 'expected loading to be ready'; CONTROL green. An earlier ablation (before the held answer was released per case) also reddened the CONTROL and an unrelated case via the shared in-flight package read; fixed in 55a9fc7277.",
      "gates": "dispatch-gates --commands (38 families) run locally; check:* families on 4b43a1226d (all exit 0, captured before any pipe); after the test-only commit re-ran check:test-source-alias, check:cross-package-test-inputs, check:nul-bytes, check:type-check-debt, check:type-check-coverage, check:refd-timer-probe on 55a9fc7277 (all exit 0); pnpm --dir ui exec vitest run scripts/ -> 172 files passed, 2 skipped (lock command-exit 0); also check:changeset-fixed exit 0 (outside derivation). dispatch-gates --ran: 38 derived, 38 run, 0 NOT-MEASURED, 0 UNRUN. overlap-check --branch=HEAD: clean before both pushes. CI check-runs on the PR: NOT MEASURED, reason: report delivered at local completion, CI convergence is the seat's.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 — fleet-write relay pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST issues/38783/assignees), this os-dev-report comment (post-stamped, POST issues/38620/comments); plus git push x3 (probe, 2 commits)",
      "classifier_refusals": [],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: seat · noted, not filed: ResourceListPage.tsx reads host.emptyListHint, which no host sets (only its declaration in metadataAreaHost.ts); retiring it touches metadataAreaHost.ts, outside this claim",
        "carrier: seat · noted, not filed: DraftChangesPanel.tsx comments naming the retired package-less scope are at ui/packages/app-shell/src/preview/DraftChangesPanel.tsx (claim spelled views/metadata-admin/preview/)",
        "carrier: seat · noted, not filed: ADR-0084 table row and 'four entries' counts (docs/adr/**)"
      ]
    }
  9. removed
    pm:dispatched
    on Nov 30, 2026
  10. added a commit that references this issue on Dec 1, 2026
    6ba8ddd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxdomain:uipriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions