Skip to content

skills(objectstack-ui): the navigation rule teaches the approvals inbox entry gated by requiresObject: 'sys_approval_request' — which hides it from every approver until a request already involves them #33235

Closed

Description

@os-bob

Found by a downstream app on the published 18.4.0 packages (steedos-labs/os-project-blackcat-crm#83, PR #87).

The trap

skills/objectstack-ui/rules/navigation.md (line ~39) — and its eval in evals/views-apps-actions-pages.json — teach the approvals entry as:

{ id: 'nav_approval_requests', type: 'object', objectName: 'sys_approval_request', label: 'Approval Requests', icon: 'inbox', requiresObject: 'sys_approval_request' }

An app that copies it (as HotCRM-derived apps do, with type: 'component', componentRef: 'approvals:inbox' plus the same requiresObject) gets history-dependent visibility, measured on 18.4.0: GET /api/v1/meta/object/sys_approval_request answers 404 to a non-administrator approver (sales manager, quality manager, director) until some approval request already involves them, then 200; administrators always 200. The console prunes the entry against the served objects, so on a fresh environment no approver sees the inbox entry — while the approval centre itself works for all of them through the approvals REST path.

The platform's own Account app gates the same component differently: nav_account_approvals in @objectstack/platform-objects uses requiresService: 'approvals', with the comment "requiresObject cannot gate a component item"; plugin-approvals also warns against granting non-administrators read on its tables.

Why it matters

The skill is what AI authors copy; it currently teaches a gate that stages clean, validates, and hides the entry from exactly the users it exists for.

Suggested fix

Teach the approvals inbox as type: 'component', componentRef: 'approvals:inbox', requiresService: 'approvals' (the Account app's shape), state why requiresObject is wrong for it, and update the eval.

Dedupe words: approvals inbox nav requiresObject skill example · requiresService approvals · navigation rule approvals.

Activity

  1. objectstack-fleet commented on Nov 14, 2026

    @objectstack-fleet
    Contributor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → domain:skills · p2 · pm:queue · 2026-11-14T08:46Z

    ⛔ Not a claim.

    • Row: the shipped skill teaches the approvals-inbox navigation entry gated by requiresObject: 'sys_approval_request'. That hides the entry from every non-admin approver until a request already involves them (the object meta read answers 404 to them). AI-authored apps copy it, which is the "prevent AI mistakes" class: wrong guidance that produces wrong behaviour, p2.
    • Owner: skills/objectstack-ui/rules/navigation.md (~line 39) and its eval in evals/views-apps-actions-pages.json. Teach the entry without that gate, or with the gate the console actually uses for the inbox.
  2. added
    domain:skills
    pm:queue
    priority:p2
    on Nov 14, 2026
  3. objectstack-fleet commented on Nov 14, 2026

    @objectstack-fleet
    Contributor

    domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

    Claim: PM loop round 1
    Session: session_01FEkQ5pjSPT7ui2EUcunaVb
    Account: os-project-manager
    Branch: claude/project-thread-dk76uo
    Worktree: objectstack-issue-33235
    Domain: domain:skills
    Seat: domain:skills#1
    File surface: skills/objectstack-ui/rules/navigation.md, skills/objectstack-ui/evals/views-apps-actions-pages.json, .changeset/ (stop on breach; explain in the report)
    Container & model: S, mode:thread, model: CONTRACT_REVIEW_TIER (MANDATORY: skills/** hit in dispatch-gates --tier), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: the shipped skill text (objectstack repo, skills/objectstack-ui) teaches the gate | the Account app nav item already gates with requiresService | every AI author who copies the skill
    Thread-read: 6874756402
    Premise: holds
    Serial constraints cleared: #32979 (also skills/**, different skill files) — disjoint; no open PR on these files

    Order: /mnt/project-files/pm-orders/skills/order-33235.md (project file). Ruling-ref: the maintainer's summons 「开一个 skills 车道,派发 p1 p2」 (2026-11-14T15:12Z, this account's project).

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

    @objectstack-fleet
    Contributor

    domain:skills#1 · os-project-manager · session_01FEkQ5kCq2ZxdEfiiXADAhS

    os-dev-report

    {
    "issue": 33235,
    "status": "done",
    "branch": "claude/project-thread-dk76uo",
    "pr": "#33283",
    "session": "session_01FEkQ5kCq2ZxdEfiiXADAhS",
    "premise_still_valid": true,
    "summary": "skills/objectstack-ui/rules/navigation.md now teaches the approvals entry as the Account app's nav_account_approvals shape (type component, componentRef approvals:inbox, requiresService approvals) with one comment line on why requiresObject is wrong (the object read answers 404 to approvers until a request involves them). Eval 2 in views-apps-actions-pages.json expects that shape: must_contain gains approvals:inbox and requiresService, must_not_contain gains requiresObject: 'sys_approval_request'. Plus an '@objectstack/skills' patch changeset. Head 7723612, skills/** +6/-6 (net 0, budget +4), Tier H.",
    "tests": "Teaching text only; no tested behaviour changed, no ablation. pnpm --filter @objectstack/spec check:skill-examples exit 0 after building the @objectstack/client-react closure under the verify lock (VERDICT command-exit 0, 210s): 344 prose examples type-check, so the edited os:check block passes the semantic tsc pass. Eval JSON parses. Mechanism read on origin/main d4fbb4d: server prunes requiresService in packages/rest/src/meta-item-read-gate.ts:1098 and :1110 (probe resolveRegisteredServices :1304, fail-open); plugin-approvals registers 'approvals' at approvals-plugin.ts:414; the console's checkCap (ui/packages/app-shell/src/views/nav-menu-renderer.tsx:251-264) prunes requiresObject against the served scope and returns true for any service; approvals:inbox is registered at ui/apps/console/src/registerApprovalsComponents.tsx:59.",
    "gates": "Local, head 7723612: dispatch-gates --commands --repo objectstack-ai/objectstack derived 44 families; 40 run exit 0 each, captured before any pipe (check:doc-formula-expressions first exit 3, exit 0 after building formula + lint under the lock, VERDICT command-exit 0, 95s); 4 NOT MEASURED exit 3 prerequisite (check:dts-closure, check:dual-build-cjs-loads, check:lean-entry-closure, check:sourcemap-no-sources-content read every package dist; no package touched, left to CI). --ran: 44 accounted, 40 run, 4 NOT-MEASURED. Ratchets: check-skill-line-ratchet exit 0; check-skills-token-ratchet exit 0, navigation.md 2179 to 2182 tokens (ceiling 2184). dispatch-gates --tier: MANDATORY contract-review tier (skills/** clause 1). check-governed-merges --branch: exit 3 GOVERNED, landing tier H, 2 of 3 paths on the register. Record: /mnt/project-files/pm-orders/skills/33235-gates-ran.txt. CI: in_progress, not read (the seat holds CI events).",
    "line_budget": "skills/** net 0 (+6/-6) against +4. navigation.md 163 to 163 lines, 8713 to 8727 bytes; eval 175 to 175 lines; all SKILL.md 4601 to 4601 lines (none touched); bundle 244205 to 244268 tokens.",
    "files_changed": [
    ".changeset/33235-skills-approvals-inbox-nav-gate.md",
    "skills/objectstack-ui/evals/views-apps-actions-pages.json",
    "skills/objectstack-ui/rules/navigation.md"
    ],
    "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
    "mcp_calls": "0 — card, comments and PR read-back read with gh api GET (read-only); no MCP GitHub tool used",
    "api_writes": "2 — fleet-write relay pr_create (POST /repos/objectstack-ai/objectstack/pulls, no labels, no assignees; read-back 10062 bytes sent, 10062 stored), and this report through post-stamped (POST /repos//issues/33235/comments); git push is not a REST write",
    "deviations": [
    "Standing lines ask the PR body to end with an HTML-comment signed trailer; os-dev.md bans dev-written HTML comments in GitHub text (only the harness attribution comment on line 1 is exempt) and the standing lines yield to os-dev.md, so the body carries the visible signature line under Fixes #33235 and no trailer, as on #33163.",
    "Order mechanism assumption 'the console really prunes requiresService items' is refined, not contradicted: the server strips the entry (filterAppForUser/filterNav), the console's checkCap returns true for services. The card claims only that the console prunes requiresObject against served objects, which holds, so no stop.",
    "The relay refuses an empty labels array; pr_create was sent with no labels key (no label owed: skills/** publishes, so not skip-changeset).",
    "The first navigation.md wording measured 2185 tokens (ceiling 2184); the comment was shortened to 2182. No ceiling moved.",
    "Commit trailer is model-free (Co-Authored-By: Claude) per the standing lines; the harness reminder's model-named trailer was not used."
    ],
    "open_questions": [],
    "security_findings": "none",
    "out_of_scope_findings": [
    "carrier: none · skills/objectstack-ui/SKILL.md:192 blueprint row lists requiresObject as the navigation pattern; general, names no approvals entry, still correct · noted, not filed",
    "carrier: none · the card's 18.4.0 measurement (meta object read 404 to a non-admin approver) was not re-measured; the fix removes the object from the taught item, so it does not depend on it · noted, not filed"
    ]
    }

  6. objectstack-fleet commented on Nov 14, 2026

    @objectstack-fleet
    Contributor

    domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

    ACCEPT → PR #33283 comment 6880023121 · contract review PASS 6880008562 · held for the maintainer (Tier H; reviewers requested) · 2026-11-14T15:47Z

  7. added a commit that references this issue on Nov 16, 2026
    6a28a27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

domain:skillspm:dispatchedpriority:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions