Skip to content

Studio 菜单(M2):类型顺序和「常用 / 高级」写成一张表,用测试钉住注册表和 ADR #37200

Description

@objectstack-fleet

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Part of #36890. Ruling: #37192, comment 7151834490. Proposal: 7151777190 §3.4. The maintainer asked for this to be dispatched first.

What

  • One new file: ui/packages/app-shell/src/views/studio-design/studioMenuPlacement.ts. It holds one ordered list of { type, tier: 'common' | 'advanced' }, in the ruled order:
    • common: object · app, page, dashboard, report · flow · permission · agent, tool, skill
    • every other menu type: advanced, in the proposal's order. This includes picklist (选项列表) and email template.
    • The list holds order and tier only. The group stays the served domain.
  • Registry pin: every type in DEFAULT_METADATA_TYPE_REGISTRY that the directory can list has exactly one row, and every row names a registered type.
  • ADR pin: the order and tier columns of ADR-0084's table (the M1 card) equal the list, modelled on studioAddressTable.test.ts.
    • If M1 has not merged yet, either land this pin together with M1, or add it in a follow-up commit once M1 is in.
  • The new files are not wired into anything yet; M3 wires them.

Done when

  • The table and both pins land.
  • An ablation shows the pins go red when a row is removed, misordered, or names an unknown type.

Notes

Activity

  1. added
    priority:p2
    pm:queue
    domain:ui
    on Nov 25, 2026
  2. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H

    Claim: PM loop round 2
    Session: session_01QSeKYkkwuF6UuFtu85Yd5H
    Account: os-justin
    Branch: claude/issue-37200-studio-menu-placement
    Worktree: objectstack-issue-37200
    Domain: domain:ui
    Seat: repo:objectstack#4
    Area: a4-S
    File surface: ui/packages/app-shell/src/views/studio-design/studioMenuPlacement.ts (new), studioMenuPlacement.test.ts (new: the registry pin and, after #37199 merges, the ADR pin), and a changeset. Reads only: DEFAULT_METADATA_TYPE_REGISTRY, studioAddressTable.test.ts (the pin pattern), and ADR-0084. ⛔ No wiring into the menu (that is #37201, M3) and no edit to the ADR (that is #37199, M1) (stop on breach; explain in the report)
    Container & model: S, mode:subagent, model: default — dispatch-gates.mjs --tier: "Model tier — no path-derived mandate", effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: none
    Premise: holds (read on origin/main 3570b81): studioMenuPlacement.ts does not exist; the menu modules are studioMenuModel.ts, studioMenuData.ts and StudioMenu.tsx. No open Studio PR adds this file.
    Pre-claim lane: repo:objectstack seat 4 zone a4-S (sub-issue of epic #36890, filed by seat 4; maintainer 「相关任务立卡优先派发处理」; cap 6)
    Pre-claim deps: none for the table and the registry pin. The ADR pin needs #37199 (M1, in flight, Tier H). It is added as a follow-up commit on this branch once M1 merges, and the PR does not land before that.
    Prior rulings read: ruling on #37192, 7151834490, with the adjustments in 7151811337. Proposal 7151777190 §3.4: one placement table holding order and tier only, with the group kept as the served domain. 常用 = object · app, page, dashboard, report · flow · permission · agent, tool, skill. Everything else is 高级, in the proposal's order, including picklist and email template.
    Serial constraints cleared: the file is new and shares nothing with #37089, #37166, #37168 or #37169. #37201 (M3) wires it later.
    Size: S.

  3. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 25, 2026
  4. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H
    os-dev-report

    {
      "issue": 37200,
      "status": "done",
      "branch": "claude/issue-37200-studio-menu-placement",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37232",
      "session": "session_01QSeKYkkwuF6UuFtu85Yd5H",
      "premise_still_valid": true,
      "summary": "Added STUDIO_MENU_PLACEMENT (studioMenuPlacement.ts): 32 ordered {type, tier} rows, 10 common in the ruled order then 22 advanced in the proposal's order, ai_context advanced last in ai after merging origin/main (33 registered types, field hidden). studioMenuPlacement.test.ts holds it against DEFAULT_METADATA_TYPE_REGISTRY, against the ruled order as literals, and against ADR-0084's Order and Tier columns (merged via #37219): tier per type both ways, ADR group equals served domain, order inside each group. Not wired. Head 5568fa63a1, draft, assignee os-justin.",
      "tests": "head 5568fa63a1: vitest studioMenuPlacement.test.ts 1 file 12/12 passed. app-shell type-check exit 0, 0 errors (first run found a real TS2345 in the test, fixed in 2eae5a0f90). Ablations via ablation-replace.mjs on committed heads, each restored (HEAD blob hash equal, git diff HEAD 0 bytes): remove hook row 3 red; swap app/page 1 red; add not_a_registered_type 3 red (first attempt a no-op, refused by the tool as anchor 1->1, re-run with a vanishing anchor); remove ai_context 3 red; job retiered common 4 red; ADR picklist retiered 1 red naming picklist; ADR app Order 1->9 1 red naming group ui. No build/dist leg: the mutated file resolves by relative import from src.",
      "gates": "local on 5568fa63a1: dispatch-gates --commands derived 38 families, all 38 exit 0 (--ran: 38 run, 0 NOT-MEASURED, derived zero), incl. check:test-source-alias 0, check:cross-package-test-inputs 0, ui vitest scripts/ 0 (an earlier run on 8978038bc7 was 1 from an unbuilt dependency closure, green after the closure build). check:type-check-debt was exit 3 PREREQUISITE NOT MET after the first merge (no install), exit 0 after pnpm install. overlap-check --branch=HEAD: VERDICT clean exit 0. PR check-runs: in_progress at report time.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "3 — git push (branch); fleet-write pr_create (POST /repos/objectstack-ai/objectstack/pulls + POST /issues/37232/assignees), run 45553625449; post-stamped os-dev-report comment on #37200",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": ["carrier: seat repo:objectstack#4 · ADR-0146 still says 32 registered types at 151e8123 (docs/adr/0146, the amendment paragraph); the count on main is 33 with ai_context; governed ADR text, not edited here", "carrier: seat repo:objectstack#4 · card #37200 names studioAddressTable.test.ts as the pin model; no such file, the pin is studioAddress.test.ts; noted, not filed"],
      "deviations": "the first git push of the empty branch (before any edit) was refused by the auto-mode classifier; no re-route was attempted, and the later push after the coordinator's go succeeded. The worktree is kept until the seat's ACCEPT."
    }
  5. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H

    Finalized head for L1 · 2026-11-25T05:51Z · 5568fa63a1 · zone a4-S (#37200)

  6. removed
    pm:dispatched
    on Nov 25, 2026
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