Skip to content

finding(governance): ui/scripts/check-governed-queue-guard.mjs carries a second GOVERNED_APPROVERS that no CODEOWNERS row covers and no workflow enforces #34680

Closed as not planned

Description

@objectstack-fleet

repo:objectstack#2 · os-steve · session_01ADHkmSXPDB46NVRepWVrL3

Found while reviewing PR #34671 (card #34626): L1 record 6940438711, D3. Not fixed there; that PR only aligns the copy's value.

Suggested-grade: p2 (an unguarded copy of the governed approver set; no live enforcement reads it today)
Suggested-domain: domain:devx (ui/scripts/**, .github/CODEOWNERS)

What is there (origin/main 62d9d0d and later)

  • ui/scripts/check-governed-queue-guard.mjs:349 declares its own export const GOVERNED_APPROVERS, with a self-test pin at :1480. It is the nested ui/ workspace's copy of the root guard scripts/pm/check-governed-queue-guard.mjs.
  • .github/CODEOWNERS covers the root guard (/scripts/pm/check-governed-queue-guard.mjs) but has no row for ui/scripts/check-governed-queue-guard.mjs; its ui/ block (lines 56–63) lists ui/docs/adr/, ui/.claude/, ui/AGENTS.md, ui/CLAUDE.md and ui/.github/workflows/ only.
  • No workflow runs the copy: .github/workflows/governed-surface-guard.yml runs the root script; the copy is reached only through ui/package.json scripts check:governed-queue-guard (--self-test) and governed (--test).

So the approver set lives in two files, one of them editable without an approver's review and enforced by nothing. PR #34671 sets both to ['os-zhuang'] and pins each, but nothing keeps them equal after that.

Fix direction (one of)

  1. Retire the copy: point the two ui/package.json scripts at the root guard (or drop them) and delete ui/scripts/check-governed-queue-guard.mjs, if no reader needs a ui/-local copy.
  2. Keep it, import GOVERNED_APPROVERS from the root guard instead of declaring it, and add a CODEOWNERS row for the file.

Acceptance

  • Exactly one declaration of the approver set in the repo, or a pin test that fails when the two differ.
  • Any file that declares or reads the approver set is under a governed CODEOWNERS row.

Activity

  1. added
    tooling
    finding
    on Nov 17, 2026
  2. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → p2 · domain:ui · pm:queue · 2026-11-17T06:20Z

    ⛔ Not a claim.

  3. added
    domain:ui
    pm:queue
    priority:p2
    on Nov 17, 2026
  4. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Lane correction (22:4xZ): domain:ui → domain:devx. This card is about ui/scripts/check-governed-queue-guard.mjs and .github/CODEOWNERS, which is governance tooling, not console UI. Its own filing suggested devx. p2 is unchanged.

  5. added
    domain:devx
    and removed
    domain:ui
    on Nov 17, 2026
  6. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Regraded p2 → p3 by the maintainer's grading principle of 2026-11-18, accepted in triage's session (「刚才你建议的分级调整,我全部接受」).

    The principle, in order:

    1. What a new user or a prospect meets first (looks and the main flow), the cloud core (Turso, hosted sign-up and onboarding, hosted install and upgrade, plans) and a developer's first contact come first.
    2. Data loss or a permission breach in normal use stays first.
    3. Details and rare configurations are improved over time.
    4. Internal items are frozen.

    Why this card: internal: a duplicate governance list with no user effect (frozen).

  7. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Ruled: not planned · maintainer 2026-11-20T01:2xZ, verbatim: 「以上都关」 (on triage's list of ten no-user-effect p3 cards, under his standard: close what users cannot feel).

    2026-11-20T01:09Z · Closed as not planned. The second copy of the governed approver set is read by nothing today, as the card itself states; no enforcement depends on it.

  8. removed
    pm:queue
    on Nov 20, 2026
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:fleetdomain:devxfindingpriority:p3tooling

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions