Skip to content

A member whose only Setup capability is the audit log lands on 审计日志 when opening Setup (#39050) #39056

Not planned

Description

@objectstack-fleet

repo:objectstack@os-bob · os-bob · session_012dn2Ac2cy8paBGrxmoLwNQ

Source: topic #39050 · category ③ (child of the maintainer's epic). The maintainer's words on #39050: 06:03Z 「不要 沿用旧分组 id ,改掉,然后立专题卡」; 06:12Z 「分拆子卡并用 fable 评审」 (the split below was reviewed by Fable against the code before filing). Rulings D1–D4 are in the epic's ruling comment.

Grade: p2 (the epic's grade) · area:ux · type Feature · suggested domain ui (triage sets it) · size S · est. 0.5 person-days · evidence: read (objectstack main, 2026-12-02).

Blocked-by: #39053

What

A member whose only Setup capability is the audit log lands on 审计日志 when opening Setup (epic row 10).

  • ui/packages/app-shell/src/console/AppContent.tsx#resolveLandingRoute (~:1944) lands on the app's first visible navigation item. nav_users has no permission gate, so an auditor holding only view_all_audit_log lands on 用户 today. Land such a member on 审计日志.

Acceptance

  • A member holding only view_all_audit_log opening /apps/setup lands on 审计日志.
  • An administrator still lands on 概览.

Reader: the dev who takes this card after #39053 merges.


Generated by Claude Code

Activity

  1. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ

    First touch · 2026-12-02T07:07Z

    定级:area:ux · Feature · p2 · 只有审计权限的成员打开 Setup 落在审计日志(#39050)· 读码

  2. added
    domain:ui
    pm:blocked
    on Dec 2, 2026
  3. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-support-ai · os-support-ai · session_01WGufzeZMKeDN64azVSgNLF

    Claim: PM loop round 2 · 2026-12-02T10:32Z · zone osa-setup takes this card (epic #39050 on the maintainer's words in the project, 2026-12-02T06:24Z: 「开专区处理 #39050」; lease row 7337033561 on #38765). Blocked-by #39053 cleared: PR #39092 merged, cef9a80.
    Area: osa-setup
    Session: session_01WGufzeZMKeDN64azVSgNLF
    Account: os-support-ai
    Branch: claude/issue-39056-auditor-setup-landing
    Worktree: objectstack-issue-39056
    Domain: domain:ui
    Seat: repo:objectstack@os-support-ai
    File surface: ui/packages/app-shell/src/console/AppContent.tsx (resolveLandingRoute and its helpers), ui/packages/app-shell/src/console/setupFirstPageSlot.tsx, packages/platform-objects/src/apps/setup.app.ts (its landing key only), tests beside them incl. a new test file named for this card, a changeset named 39056-*.md. ⛔ Not packages/spec/**, not a new export or prop of a published package, not any navigation entry's gate or visibility (nav_users stays ungated: who sees which entry is not this card's), not setup-nav.contributions.ts (#39057 moves those items). If the only fix needs one of these, stop and report.
    Container & model: M, mode:subagent, model: default (dispatch-gates --tier: "no path-derived mandate … floor sonnet · default opus · ceiling fable"), effort: high
    Clause-②: no (app-shell is private; a landing entry in Setup's own app metadata uses the existing per-audience landing key and widens no accept set)
    Metadata-protocol: none
    Responsibility: the Setup root landing in objectstack (AppContent.tsx resolveLandingRoute lands on the first shown navigation item; nav_users has no gate, so a member holding only view_all_audit_log lands on 用户) | none | every auditor opening /apps/setup
    Thread-read: 7337814869
    Premise: holds (origin/main cef9a80: resolveLandingRoute = declared landing, else firstRouteAcross over the shown trees; AppLandingEntrySchema.item must name the app's own entry, not a contributed one, so the dev reads where 审计日志 is declared before choosing the route)
    Prior rulings read: check-prior-rulings --card 39056 → keyword sweep names ADR-0146 D11, ADR-0054 Decision §3, ADR-0057 D9, ADR-0109 Decision §1, ADR-0139 D4, ADR-0143 D5; the dev reads ADR-0146 D11 and the #28022 landing ruling (record 6545223246, letter A) before changing the landing; epic ruling 7336749035 (D1–D4) read; thread: triage first touch 7337814869; repo: objectstack-ai/objectstack.
    Serial constraints cleared: check-handover.mjs --inflight --paths=AppContent.tsx → no overlap (exit 5 only for #38415, seat bookkeeping that names no path).

  4. added
    pm:dispatched
    and removed
    pm:blocked
    on Dec 2, 2026
  5. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-support-ai · os-support-ai · session_01WGufzeZMKeDN64azVSgNLF
    os-dev-report

    {
      "issue": 39056,
      "status": "needs_decision",
      "branch": "claude/issue-39056-auditor-setup-landing",
      "pr": null,
      "session": "session_01WGufzeZMKeDN64azVSgNLF",
      "premise_still_valid": true,
      "summary": "Premise holds at origin/main cef9a803: resolveLandingRoute (ui/packages/app-shell/src/console/AppContent.tsx) returns the declared landing, else the first shown entry; nav_users is ungated, so a member holding setup.access + view_all_audit_log lands on Users. No route inside the claimed surface repairs it without breaking a declared contract, so no code was written. (1) A landing key in setup.app.ts cannot name the Audit Log entry: nav_audit_logs is contributed by @objectstack/plugin-audit (audit-plugin.ts navigationContributions), and AppLandingEntrySchema.item is documented and enforced as an id of the app's OWN navigation; measured: AppSchema.safeParse(SETUP_APP + landing [{ item: nav_audit_logs }]) fails at landing.0.item (checkAppLandingItems), control naming nav_system_overview parses. (2) A landing-logic change in app-shell contradicts the spec's own text for AppSchema.landing: \"No match, or no key: the app opens on its first navigation item by order, as before.\" Setup declares no landing, so any rule that opens it on a non-first shown entry (a Setup special case, or a generic \"gated entry outranks ungated\" rule that would move landings in every app, HotCRM's crm.app.ts among the producers of landing) changes declared metadata semantics, which is a contract change, not a private-shell change. The administrator half already holds today (nav_system_overview is first and gated on manage_platform_settings). Decision needed below; the empty claim branch stays on origin for the resume.",
      "tests": "No code change, so no test or ablation. Evidence probe (tsx against packages/spec/src at cef9a803, scratch file only): AppSchema.safeParse({...SETUP_APP, landing:[{item:\"nav_audit_logs\",visible:...}]} gives success false, issue path [\"landing\",0,\"item\"], message \"landing[0].item names nav_audit_logs, but this app declares no navigation entry with that id (its own navigation and areas[].navigation, at any depth).\"; control landing item nav_system_overview gives success true. EXIT=0.",
      "gates": "NOT MEASURED: no diff, so no derived gate family applies and no CI run exists (no PR).",
      "line_budget": "n/a: no diff",
      "files_changed": [],
      "deviations": [
        "The claim's File surface names ui/packages/app-shell/src/console/setupFirstPageSlot.tsx; it no longer exists at cef9a803 (removed by commit 1f929816, the first-run checklist change). Noted, not acted on.",
        "Empty probe push of claude/issue-39056-auditor-setup-landing (dev-worktree.sh --probe, no commits, equal to cef9a803) is on origin; kept for the resume after the decision, delete it if the card goes another way."
      ],
      "mcp_calls": "0",
      "api_writes": "1: POST /repos/objectstack-ai/objectstack/issues/39056/comments (this report, via scripts/pm/post-stamped.mjs through the relay). Plus 1 git push (empty-branch probe), which is not a REST write.",
      "classifier_refusals": [],
      "open_questions": [
        {
          "question": "How should Setup open on Audit Log for a member whose only Setup capability is view_all_audit_log, given that Setup's landing key may not name a contributed entry and the console's fallback is spec-documented as \"first navigation item by order\"?",
          "options": [
            "A. Spec: a navigation contribution may carry its own audience landing (NavigationContributionSchema gains landing: [{ item, visible }], item checked at parse against that same contribution's items, so it cannot dangle and dies with the plugin). SchemaRegistry.applyNavContributions appends contributed landing entries after the app's own, by priority; setup.app.ts declares landing [{ item: nav_system_overview, visible: manage_platform_settings held }] and plugin-audit declares [{ item: nav_audit_logs, visible: view_all_audit_log held }]. Cost: Metadata-protocol added, minor on spec, objectql merge, plugin-audit, console reads the merged landing it already reads; about 1 to 1.5 days. Axes: business need is measured (the epic's browser pass names the auditor role; landing has a real producer in hotcrm crm.app.ts); long-term it extends the declared mechanism and keeps ADR-0029 D7 ownership (the entry and its landing ship with the package that owns sys_audit_log); AI-safety stays strict (parse-time refusal against the contribution's own items, no consumer tolerance); startup axis: one new key, one producer today.",
            "B. Move the Audit Log entry into Setup's own navigation (inside group_audit_data, gated requiredPermissions view_all_audit_log plus requiresObject sys_audit_log so it hides without plugin-audit), remove it from plugin-audit's contribution, and declare landing [{ nav_system_overview for admins }, { nav_audit_logs for view_all_audit_log }] in setup.app.ts. Cost: no spec change, about 0.5 day, but it edits setup.app.ts navigation and plugin-audit (outside this claim), meets #39057's move of contributed items, and bends ADR-0029 D7 / K2.a (a plugin's menu entry moves into the shell), which owes an ADR note (governed, Tier H). Axes: business need same as A; long-term it sets a precedent of pulling plugin entries into the shell (the pinned overview is the only one today, and it is platform-objects' own); AI-safety strict (existing parse check); startup axis best: zero new surface.",
            "C. Setup special case in app-shell: AppRootLanding opens nav_audit_logs for the setup app when the member lacks manage_platform_settings and is shown that entry. Cost: about 0.25 day, inside the claim surface, but it hard-codes an app name, an entry id and a capability in the private shell, makes the spec's landing fallback sentence false for Setup, and is invisible to metadata (no third-party app can express the same). Axes: business need met; long-term a workaround (Prime Directive 5, Contract-first rule 12); AI-safety worst: behaviour no metadata declares; startup axis: smallest code, but a hidden rule."
          ],
          "recommendation": "A, because it is the only option that serves the measured need with the existing declared mechanism while keeping both the parse-time refusal (AI-safety) and ADR-0029 D7 ownership (long-term). B is the cheaper fallback if the maintainer prefers zero new spec surface (startup axis) and accepts an ADR-0029 note; C is not recommended."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
  6. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-support-ai · os-support-ai · session_01WGufzeZMKeDN64azVSgNLF

    Release: 2026-12-02T10:41Z · zone osa-setup releases its claim 7342639845 on this card, on the seat's word: the route needs a maintainer ruling (decision card with the maintainer: A a navigation contribution carries its own audience landing, B the Audit Log entry moves into setup.app.ts, C a shell special case).
    Restart-when: maintainer ruling on the landing route
    Hand-over: no code was written. The dev's analysis and the three options with the four-axis reading are in os-dev-report 7342796038 (probe: landing[0].item naming nav_audit_logs is refused by checkAppLandingItems; the no-landing fallback is spec-documented as first item by order; gating nav_users alone does not reach 审计日志, since other ungated Setup entries come first). The empty probe branch claude/issue-39056-auditor-setup-landing (tip cef9a80, no commits) is deleted; nothing to resume from. On A the seat opens a card thread (spec change); on B the seat routes it (ADR-0029 note, Tier H).

  7. added
    pm:on-hold
    and removed
    pm:dispatched
    on Dec 2, 2026
  8. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-support-ai · os-support-ai · session_01WGufzeZMKeDN64azVSgNLF

    2026-12-02T10:43Z · Correction to Release 7342848586: the empty probe branch claude/issue-39056-auditor-setup-landing (tip cef9a80, no commits) is not deleted. This container cannot delete a ref (git push --delete and the REST ref DELETE both answer 403, and the relay's only delete row is for claude/mailbox-*). It holds nothing; the maintainer may delete it by hand. The rest of the release stands.

  9. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS

    2026-12-02T11:26Z · Closed as not planned, by the maintainer's word (seat thread): 「39056 作废,不开发。」 The auditor's Setup landing on 审计日志 will not be built. The routes analysed in dev report 7342796038 (a contribution-level audience landing, moving the entry into setup.app.ts, or a shell special case) are all dropped. The empty branch claude/issue-39056-auditor-setup-landing can be deleted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:uxdomain:uipm:on-holdpriority:p2

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions