Skip to content

plugin-security: the catalog reference boot report and the stale-column refusal name the two-holder case and the fix that applies #32753

Closed

Description

@objectstack-fleet

epic:#31527#1 · os-sales · session_01L6bhgXQnNkXTT1Wu7i7Y3i

Follow-up of #31698 PR 2 (PR #32742), from the dev report 6826615914's out_of_scope_findings. Parked behind the epic's release line.

Restart-when: the release that carries the epic #31527 release line is published (maintainer ruling 6824949405 on #31527).

What is owed

  1. A column-less grant of a name two packages hold is not named as ambiguous by the boot report. The catalog reference boot report lists such a grant under "grants naming a permission set the catalog does not resolve", with no candidates and a fix that says to declare the set again; os doctor says nothing. The position half of the same report already names the refusal and both candidates. TO: the permission-set half names the refusal and both candidates, and its fix names os migrate stored-references bind, as the refusal itself does. Pin both halves.
  2. The bind remedy offered with a stale-column refusal does not apply to a non-empty column. The refusal's fix text points at binding a package-less grant; a grant whose column already names a package needs the re-grant-then-delete fix the boot report gives. TO: the refusal's fix text follows the column state. Pin both.

Notes

  • Reach: operators reading the boot report or the refusal; no grant confers more or less because of either item.
  • Clause-②: no answer moves except report and refusal text.

Filing gate: ② execution of the epic seat's review of PR #32742 (seat thread record); class: b · type: Bug (diagnostics) · Grade: p2.


Generated by Claude Code

Activity

  1. added
    priority:p2
    pm:on-hold
    area:devpath
    domain:server
    on Nov 12, 2026
  2. objectstack-fleet commented on Nov 12, 2026

    @objectstack-fleet
    ContributorAuthor

    epic:#31527#1 · os-sales · session_01L6bhgXQnNkXTT1Wu7i7Y3i

    Re-graded and queued · #32753 · 2026-11-12T22:32Z. It is a small issue (a nit, docs or typing), so it is graded priority:p3 and goes to pm:queue. The maintainer (Sales) ruled that no epic card is parked: small issues are graded priority:p3 and queued behind p1 and p2, and p1 goes first. The park under 6824949405 is withdrawn for this card.


    Generated by Claude Code

  3. added
    pm:queue
    and removed
    pm:on-hold
    priority:p2
    on Nov 12, 2026
  4. objectstack-fleet commented on Nov 13, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first-touch audit (pre-labeled card) · p3 confirmed · 2026-11-13T08:24Z

    ⛔ Not a claim; the claim (if any) is unchanged.


    Generated by Claude Code

  5. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · zhuangjianguo · session_01QsR2jTEivi2wogPpeo3xd5

    Claim: server area-lease mode (#33751 §2), area S3 lease E2 (security catalog), p3 free-slot fill (no p1/p2 claimable in E2/E2b; #33628 waits on a seat ruling) · executed by an os-dev sub-agent (mode:subagent) · posted at 2026-11-15T13:05Z
    Session: session_01QsR2jTEivi2wogPpeo3xd5
    Account: zhuangjianguo
    Branch: claude/area-E2-32753
    Worktree: objectstack-issue-32753
    Domain: domain:server
    Seat: domain:server#5
    File surface: packages/plugins/plugin-security/src/catalog-reference-report.ts, the stale-column refusal's fix text (stored-permission-set-package-stamp.ts / grant-permission-set-name.ts, whichever builds it), their tests, a changeset (stop on breach; explain in the report)
    Container & model: S, mode:subagent, model: default (no path-derived mandate; dispatch-gates --tier at bd96ec9c), effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack plugin-security: the boot report and the refusal's fix text name the wrong remedy for two cases | the position half of the same report already names both candidates | operators reading the boot report or the refusal
    Thread-read: 6847913311
    Premise: holds
    Serial constraints cleared: area S1 (plugin-security A2) notified; position-renamed-holder-carry.ts and security-plugin-start-hooks.ts not edited

    Generated by Claude Code

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

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · zhuangjianguo · session_01QsR2jTEivi2wogPpeo3xd5
    os-dev-report

    {
      "issue": 32753,
      "status": "done",
      "branch": "claude/area-E2-32753",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/33930",
      "pr_number": 33930,
      "head_sha": "1a99d2ae11d6931dbbc68e9c87f39d9e2d93cfee",
      "session": "session_01QsR2jTEivi2wogPpeo3xd5",
      "premise_still_valid": true,
      "summary": "Item 1: catalog-reference-report.ts now asks the catalog's whole answer (resolveCatalogReference in the grant's own scope) for a grant whose name does not resolve; a refused name (a column-less grant of a name two packages hold: ambiguous-in-environment) stays on the grant line but carries `refusal` (column, reason, every candidate, the resolver's sentence), the line's meta gains `refusals`, and the line's fix, appended only when a refusal is listed, follows the column: `os migrate stored-references bind --table sys_user_permission_set --id ID --package PACKAGE` for a grant naming no package, re-grant naming the candidate then remove for one naming a package. A name nothing holds keeps the old line byte for byte. Both halves pinned (the position half needed no code change). Item 2: H2 falsified, the stale-column refusal carrying the bind is built in suggested-audience-bindings.ts resolveSuggestedSet (a suggestion's, not a grant's); its fix now follows permission_set_package: null keeps the bind, a non-null column names its package, says the bind (null columns only) does not apply, and gives install/enable that package again or dismiss. No refusal code, status or answer moves. os doctor does not read this report at all (no reference under packages/cli/src/commands/doctor.ts): loose end, cli not edited.",
      "tests": "At 843e83d22 under os-verify-lock: `pnpm --filter @objectstack/plugin-security typecheck` exit 0; `pnpm --filter @objectstack/plugin-security test` Test Files 267 passed (267), Tests 6686 passed | 45 skipped (6731), VERDICT command-exit 0. New pins: catalog-reference-report.test.ts describe '[ADR-0150 D3] a name two packages hold' 4/4; suggested-audience-bindings.test.ts 62/62 incl. the new non-null-column case. Ablations via scripts/ablation-replace.mjs (tests import src, no dist leg): (1) grant refusal not attached -> 2 failed | 22 passed, restored blob == HEAD e119a2352f86, git diff HEAD empty; (2) suggestion fix forced to the null-column branch (the old text) -> 1 failed | 61 passed, restored blob == HEAD 2650538d8e6b; (3) position refusal not recorded -> 1 failed | 3 passed, restored blob == HEAD. eslint --no-inline-config on the 4 touched files exit 0; control-byte grep on them: no hit. Merge of origin/main (head 1a99d2ae1) touched no file under plugin-security or core, so no rerun.",
      "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack at 843e83d22: 71 families, exit captured per command before any pipe: 68 exit 0; check:dual-build-cjs-loads exit 3 and check:i18n exit 3 (PREREQUISITE NOT MET, whole-workspace build absent) = NOT MEASURED; check:type-check-debt exit 99 (lock queue), retried and stopped at the 10-minute foreground cap = NOT MEASURED. --ran with exit codes: 71 accounted, 0 UNRUN. check-partof-closing-keyword (PR_BODY) exit 0; closing-keyword-parity, changeset-no-major, adr-0087-registration, empty-changeset ran in the sweep with GITHUB_EVENT_PATH on the PR body: exit 0. CI check-runs on PR #33930: in_progress at report time (not awaited, per contract).",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 — fleet-write relay pr_create (objectstack-ai/objectstack#33930); post-stamped issue comment on #32753 (this report). Reads via gh api GET only.",
      "line_budget": "+247 / -9 over 5 files against origin/main",
      "files_changed": [
        ".changeset/32753-refused-grant-report-fix-text.md",
        "packages/plugins/plugin-security/src/catalog-reference-report.ts",
        "packages/plugins/plugin-security/src/catalog-reference-report.test.ts",
        "packages/plugins/plugin-security/src/suggested-audience-bindings.ts",
        "packages/plugins/plugin-security/src/suggested-audience-bindings.test.ts"
      ],
      "deviations": [
        "H2 falsified: neither stored-permission-set-package-stamp.ts nor grant-permission-set-name.ts builds the stale-column refusal's fix text; suggested-audience-bindings.ts (resolveSuggestedSet) does. Edited it and its test under the order's functional surface ('the file that builds the stale-column refusal's fix text'); the claim's parenthetical named the two guesses. No other file outside that surface touched; bindCommandFor is imported, not edited.",
        "Card item 2 says 'grant'; the only refusal appending the bind for a stale column is a suggestion's, and the suggestion table is API read-only (no re-grant/delete door), so the non-null fix names install/enable the column's package again, or dismiss, rather than a literal re-grant-then-delete.",
        "dev-common asks tests of direct dependents; os-dev.md (which governs on conflict) owes only the package's own tests when public surface bytes are unchanged: suggested-audience-bindings' exports keep their shapes, catalog-reference-report is not exported from the index. git grep of dependents for the changed strings: no pin. Dependents not run.",
        "Repo-wide `pnpm lint` not run (CI-owned per os-dev.md); eslint --no-inline-config on the touched files instead.",
        "Harness attribution reminder asks a model-named Co-Authored-By; commits carry the model-free pair the pre-push hook requires."
      ],
      "open_questions": [
        {
          "question": "A suggestion whose permission_set_package names a package that no longer serves the set has no operator door to clear the column (bind writes null columns only; the table is API read-only). Is the shipped text (install/enable that package again, or dismiss) enough, or should a door exist?",
          "options": [
            "A: keep as shipped. Business need: measured reach is operators reading a refusal; no first-party writer leaves such a column except a package that later stops serving the set. Long term: text-only, contract unchanged. AI-error: names only acts that exist. Scope: zero new surface.",
            "B: widen `os migrate stored-references bind` (or the sync) to rewrite a stale non-null suggestion column after review. Business need: unmeasured, no reported case. Long term: a second write path for a readonly column. AI-error: neutral. Scope: new cli and seam behaviour, needs its own card."
          ],
          "recommendation": "A, because no measured pull exists for B and the startup-stage axis keeps capability growth tight; reopen as a card if an operator hits it."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: domain:server seat (cli lane) · loose end, behaviour-changing: `os doctor` does not read the catalog reference report (no reference to collectCatalogReferences/reportCatalogReferences or the grant tables under packages/cli/src/commands/doctor.ts at 843e83d22); surfacing the two-holder grant refusal there needs a packages/cli edit, not made · noted, not filed"
      ]
    }
  8. added a commit that references this issue on Nov 16, 2026
    4f20614
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:devpathdomain:serverpm:dispatchedpriority:p3

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions