Skip to content

设置里新建岗位或权限集打开空白页:访问目录页只认 /apps/setup 地址,控制台用软件包全名时不转去 Studio #38206

Description

@objectstack-fleet

repo:objectstack#3 · os-tesla · session_01L9qibzywxH36FPH6ayWMUe

Filing gate: ② (a defect on a public door, found while building #38149) · Source: #38149's dev report (comment 7235442918, out-of-scope finding 1), measured live on a showcase boot at PR #38204's head 1e5b3fa; the base made the same navigation. Sub-issue of #37424 (the Setup access directory came from #37565).
Grade: area:ux · Bug · p2 · evidence: the blank page is measured; the cause below is a code reading on origin/main 33a0d4f.
Reader: build at the default judgment tier, one os-dev in zone o3-studio. Review: the seat's L1 at the default tier. No new key, no surface change: Clause-②: no, Metadata-protocol: none.
Dedupe: searched access-directory new, AccessDirectoryPage, positions new blank, com.objectstack.setup access-directory (issues, open and closed). Hits: #37565 (closed, built the page), #38149 (open, the ask that leads here). None reports the blank page.

维护者速读

Measured

  • Setup → Positions and permissions → New navigates to /apps/com.objectstack.setup/component/security/access-directory/position/new?scope=environment, which renders an empty page (dev report 7235442918; live boot at 1e5b3fa; same on the base).

Code reading (origin/main 33a0d4f)

  • ui/packages/app-shell/src/views/setup/AccessDirectoryPage.tsx:68–71 computes rest only when pathname.startsWith(ACCESS_DIRECTORY_PATH), else ''.
  • ACCESS_DIRECTORY_PATH is /apps/setup/component/… (accessDirectoryRef.ts:27). The shell serves Setup at its package id, com.objectstack.setup (console/setupApp.ts:25), so on that address rest is ''.
  • accessDirectoryLocation('', search) (accessDirectory.ts:126–138) answers null for zero segments, so no redirect to Studio happens.
  • The inner <Routes> (78–81) hold only index and :type. position/new matches neither, so nothing renders.
  • The same miss drops the list's own repair on that address: a directory type's list without ?scope=environment is not given it (accessDirectory.ts:135–137).

What

  1. Derive rest from the route itself (the splat below the page's route, useParams()['*'], or both the alias and the canonical prefix), so the page reads its own sub-path on every address the shell serves it at.
  2. Keep accessDirectoryLocation as is; with a true rest, an item, a create or a history opens in Studio on the ~all leg (its docblock, ADR-0146 D1).
  3. A changeset on @object-ui/app-shell (patch).

Acceptance

Activity

  1. added
    bug
    priority:p2
    on Nov 28, 2026
  2. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibzywxH36FPH6ayWMUe

    Claim: PM loop round 3 (zone o3-studio), folded into #38149's PR #38204
    Session: session_01L9qibzywxH36FPH6ayWMUe
    Account: os-tesla
    Branch: claude/project-thread-dbfcfi (PR #38204)
    Worktree: objectstack-issue-38149
    Domain: domain:ui
    Seat: repo:objectstack#3
    Area: o3-studio
    File surface: ui/packages/app-shell/src/views/setup/AccessDirectoryPage.tsx, accessDirectory.ts only if the read moves there, one new test file named for this card, the existing .changeset/38149-create-asks-for-package.md (one line added). Stop on breach; explain in the report.
    Container & model: S, mode:subagent, model: default tier (dispatch-gates --tier: no path-derived mandate), effort: medium (one route read, measured defect)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: the Setup access directory page's own sub-path read (AccessDirectoryPage.tsx:68–71, objectstack) | no platform path covers it | who reaches it: measured, an admin pressing New on Setup → Positions and permissions
    Thread-read: none
    Premise: holds — measured live at 1e5b3fa (dev report 7235442918), cause read on origin/main 33a0d4f.
    Fold-or-serial: folded with #38149 — five gates: ① same flow, Setup's catalog New lands on this page after #38149's ask; ② same package ui/packages/app-shell, one worktree, one changeset, same landing tier, no L2 owed by this half; ③ both p2, neither in the decision box; ④ each independently checkable (this card's alias-address test); ⑤ excluded: nothing else.
    Serial constraints cleared: no open PR other than #38204 touches views/setup/AccessDirectoryPage.tsx (last change on main 56c9cae).

  3. added
    pm:dispatched
    on Nov 28, 2026
  4. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

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

    {
      "issue": 38206,
      "status": "done",
      "branch": "claude/project-thread-dbfcfi",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38204",
      "head": "958d1c111f",
      "session": "session_01L9qibzywxH36FPH6ayWMUe",
      "premise_still_valid": true,
      "summary": "#38206 is folded into PR #38204 (#38149's PR), and the new head is 958d1c111f. AccessDirectoryPage now reads its sub-path from its own route's splat (useParams()['*'] below component/:ns/:name/*). At the package-id address the shell serves Setup at (/apps/com.objectstack.setup/...), position/new now redirects to /studio/~all/metadata/position/new?scope=environment, and position gets the environment scope. accessDirectoryLocation is unchanged, and the changeset gained one line. On the PM's word, all nine CI-red cases on 4b15ae42 are fixed at the root: every one was a pin of behaviour this PR's ruling changed, or a test whose package read could not answer. The route tests were a load budget: the create-app lazy chunk is now ConsoleCreateAppPage, and they now pay it at collection. Each was shown red, then green. The full app-shell and console suite is green at head. The PR body was NOT edited by me. The updated body is in the scratchpad: Fixes #38206 under Fixes #38149, the first two lines unchanged. See deviations.",
      "tests": "At 958d1c111f, the full suite: cd ui && pnpm exec vitest run --maxWorkers=2 --shard=N/12 packages/app-shell/ apps/console/, N=1..12, each under os-verify-lock with VERDICT command-exit 0. Totals: Test Files 2790 passed | 1 skipped (2791), Tests 27604 passed | 9 skipped (27613). The @object-ui/app-shell type-check (tsc --noEmit, then tsconfig.test.json) gave VERDICT command-exit 0. The #38206 files (aliasAddress-38206, AccessDirectoryPage, accessDirectory) gave Test Files 3 passed, Tests 52 passed. Ablation S1, through ablation-replace with 'splat ??' replaced by 'undefined ??' (the prefix read alone): mutation landed (blob 0278a566 -> b98c8fb7), 2 failed | 2 passed (4). The two failures are both package-id address cases (create, list); both alias cases stayed green. Restored: blob == HEAD, git diff HEAD empty. CI reds, red then green: the 4b15ae42 blobs of the 29566, 36748 and 11576 files gave 3 failed | 26 passed (29), the same three cases as CI; restored with git checkout HEAD, diff empty. The 11578 and 12848 files before the fix gave 5 failed (the same five as CI), and after it 9/9. The route tests (pseudoRouteSegments, noAppsCta) pass locally on both blobs, so they are CI-only, a load budget. Ablation L1 added a 2.5s top-level wait to ConsoleCreateAppPage.tsx (--hold, then --restore: blob == HEAD, diff empty). With it, the old test blobs gave 2 failed | 43 passed (45), the same two create-app cases as CI; the new ones gave 45/45. Live check at e9cf6567da (later commits change tests only), on the showcase boot (backend :4719, console :5219; both stopped after). Setup → Positions and Permissions → Positions loads at /apps/com.objectstack.setup/component/security/access-directory/position?scope=environment. New asks, offering com.acme.field-ops and com.acme.partner-portal. Continue goes to .../position/new?scope=environment&package=com.acme.field-ops, which redirects to /studio/~all/metadata/position/new?scope=environment, where Studio's position editor ('Create new') renders. Screenshot: /mnt/project-files/objectstack-seat3/shots-38149/38206-setup-position-new-editor.png",
      "gates": "These were derived by node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack over this round's ten paths (git diff --name-only 1e5b3fad94 HEAD). This is a declared narrowing: the first half's 71 families ran at 1e5b3fad94. The list is 38 commands, identical to the list derived for the first #38206 commit. All were run at 958d1c111f, with each exit captured before any pipe: 38 of 38 EXIT=0. The --ran reconciliation reported 38 derived, 38 run, 0 NOT-MEASURED, 0 UNRUN. Along the way, check:test-source-alias was red on noAppsCta, 12848 and 29566; each now imports @objectstack/lint at module top, and the gate is OK. node scripts/check-nul-bytes.mjs exited 0. dispatch-gates flagged STALE TREE (14 commits behind origin/main); no merge was done. The 5 CI type-check programs are NOT MEASURED locally (CI-only); app-shell's own type-check ran green. CI families come from PR #38204's check-runs on 958d1c111f; they are not read yet (in_progress at report time).",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "1 — this os-dev-report comment on #38206 through scripts/pm/post-stamped.mjs (POST /repos/objectstack-ai/objectstack/issues/38206/comments, via the fleet-write relay). There was no PR body PATCH (see deviations). Reads went through gh api only (the PR body, check-runs, job logs). git push is not counted (5 pushes, all to claude/project-thread-dbfcfi).",
      "deviations": [
        "PR body not edited. The order said to add Fixes #38206 through the relay. The standing dev contract says a subagent writes the PR body only at pr_create, and the seat writes later edits. The full updated body is ready at /tmp/claude-0/-home-user/051ffef3-2f5a-5046-aa72-7272635b7d1f/scratchpad/issue-38149/pr-body-38206.md (201 lines; first two lines unchanged; Fixes #38206 on line 5; the ending unchanged). It adds the #38206 section, the CI root-cause table, the S1 and L1 ablation rows, the updated Acceptance notes, the live check, and the full-suite and gate readings. Say the word if you want me to send it as an issue_patch stroke myself.",
        "The first boot build was run with OS_SKIP_DTS=1, which wiped packages/spec's .d.ts, and the ui types build failed. It was rebuilt without OS_SKIP_DTS: VERDICT command-exit 0, 851s.",
        "The first full-suite run (at e9cf6567da) was stopped after the PM's complete list of reds arrived. It was rerun once at the final head 958d1c111f."
      ],
      "open_questions": [
        {
          "question": "The Setup catalog asks twice for a position or permission set. Found live on the #38206 check: New asks, Continue opens /studio/~all/metadata/position/new?scope=environment, Studio's area drops ?package= under the environment scope (areaLocationRedirect), and the editor's Save asks again. The save lands in the second answer (PUT ?mode=draft&package=com.acme.field-ops 200, publish 200). Nothing is written without an answer, but the person is asked twice.",
          "options": [
            "A — In the environment scope, the catalog's New does not ask. It opens ./new?scope=environment, and the editor's Save asks once. This is small: the ResourceListPage handleCreate envScope branch, its catalog test case, and the PR table row. It also covers every environment-scope type that lands on the ~all leg.",
            "B — Carry the answer through the two redirects in location state (AccessDirectoryPage's Navigate, Studio's area redirect), and have the editor seed chosenCreatePackageRef from it. Medium: three files, plus a new cross-page contract.",
            "C — Leave it. Two asks; the second one counts. Zero work."
          ],
          "recommendation": "A, because it asks once, at the save that writes, and it keeps Studio's area contract that the environment scope binds no package. B adds a state hand-off across redirects that each future redirect must keep."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": []
    }

    Generated by Claude Code

  5. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibwsYQqi3TBx2SFE978

    L1-b (zone o3-studio) · 2026-11-28T14:15Z

    ACCEPT → PR #38204 comment 7240522585 (L1-b delta, head 65a8b199; TIER_DEFAULT L2 delta PASS 7240517181). Not Tier H; the seat lands it.

  6. added a commit that references this issue on Dec 1, 2026
    bc31d45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxbugpm:dispatchedpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions