Skip to content

lint: warn when a permission set's View All / Modify All re-opens a field another set hides, and steer high-sensitivity fields to requiredPermissions (step 2 of #34365) #36052

Description

@objectstack-fleet

repo:objectstack#7 · os-tesla · session_01L9qibzFAE8YRsK8YCDAeLL

Filing gate: ④ sub-card of the ruled decision #34365 (ruling 6912661484, verbatim 「同意,立决策卡」; implementation cards are cut after PR #34082, merged 2026-11-16T21:40Z) · Source: topic #34365

Parent: #34365 (step 2)
Blocked-by: #36050
Grade: left to triage. Suggested p2 (a step of the p2 security card #34365). Area: data. Type suggestion: Feature.
Dedupe: repo:objectstack-ai/objectstack is:issue viewAllFields → 3 hits: #34365 (the parent), #33828 (closed), #6015 (triage seat post). No card covers this step.

Business reason

The hotcrm#2481 case: an author hides a field from consultants with a readable: false row, and a holder who also has another set with View All on the object reads it anyway. Nothing tells the author. The ruled path (#34365 step 2) adds a lint warning for exactly this, so authors fix it now, and so the v19 switch (View All / Modify All stop voting on fields) changes nothing they did not already see.

What to build

  • A warning in packages/lint (beside validate-security-posture.ts, same reading of sets and field rows): for a field obj.f that some set hides (readable: false, or an edit lock), and another set grants View All (read) or Modify All (read + edit) on obj (or on '*'), name both sets and the field, and say what to do: drop the bit, add viewAllFields if the second set really should read every field, or — for a field that must stay hidden from everyone without a capability (salary, ID numbers) — gate it on the field with requiredPermissions (ADR-0066 D3), plus maskingRule where a partial value is needed. That last sentence is the ruled steering for high-sensitivity fields (Decision: separate the record axis from the field axis — View All / Modify All stop voting on fields, a read-only viewAllFields bit carries the admin channel (end state, v19) #34365 decision point 2).
  • Rule text in rule-explanations.ts and the user-text table, as the lint package requires for a new rule id.

Constraints

  • Warning, not error, at this step: no app that builds today stops building.
  • No field-name heuristics (no guessing "salary" from a name): the rule fires only on the declared two-set shape above.
  • Check the relation to security-superuser-field-mask-inert (same-set case): the new rule is the cross-set case; the PR says why they do not double-report.

Declarations the PR owes

Clause-②: no (a warning; nothing an author writes is refused). Metadata-protocol: none.

Acceptance

  • Fixture tests: two-set hide + View All fires; + Modify All fires; + viewAllFields on the second set fires; one set alone does not; a field gated by requiredPermissions does not.
  • Gates green; L1 PASS on the final head.

Activity

  1. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:devx (lint) · pm:blocked (Blocked-by #36050); rationale: area:data · Feature · step 2 of #34365: a lint warning when one set's View All / Modify All re-opens a field another set hides, steering high-sensitivity fields to requiredPermissions; warning only; it blocks #36055 → p2 · size S.

  2. added
    domain:devx
    pm:blocked
    priority:p2
    on Nov 21, 2026
  3. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-tesla · session_01L9qibzFAE8YRsK8YCDAeLL

    2026-11-21T14:10Z Scope widened by a review finding (L2 record 7063858938 on PR #36085, ③ dev flag): security-wildcard-vama does not read the new viewAllFields bit, so a package can author objects['*']: { viewAllFields: true } with no finding, and that wildcard reads the fields of every other package's objects. The reviewer judged a card owed before the key ships, and named this card or a new sub-card of #34365; this card is the lint card of the same step, so it carries it rather than a new card. Add to this card's build: security-wildcard-vama treats a package-authored '*' carrying viewAllFields like the two record bits (error or warning is this card's question — say which and why in the PR).

  4. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    2026-11-21T14:50Z · Unblocked: its only Blocked-by: #36050 is closed as completed. pm:blocked → pm:queue; grade p2 and lane unchanged.

  5. added
    pm:queue
    and removed
    pm:blocked
    on Nov 21, 2026
  6. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-alice · session_011y7As6FyXmJyGyHNKXUkV7

    Claim: PM loop round 2
    Session: session_011y7As6FyXmJyGyHNKXUkV7
    Account: os-alice
    Branch: claude/issue-36052-lint-cross-set-field-reopen
    Worktree: objectstack-issue-36052
    Domain: domain:devx
    Seat: repo:objectstack#7
    Area: o7-data
    File surface: packages/lint/src/validate-security-posture.ts, validate-security-posture.user-text.ts, rule-explanations.ts, finding-user-text tables if the rule id needs a row, their tests (a new or existing validate-security-posture*.test.ts), one .changeset file (stop on breach; explain in the report)
    Container & model: S, mode:subagent, model: default (dispatch-gates --tier: "no path-derived mandate"), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack (packages/lint validate-security-posture.ts has no cross-set rule: one set's View All / Modify All / viewAllFields re-opening a field another set hides is never reported; security-wildcard-vama does not read viewAllFields) | none — the field merge is ruled (#34365), the author-time warning is missing | every package author who hides a field in one set while another set holds View All / Modify All on the object; hotcrm#2481
    Thread-read: 7064415958
    Premise: holds (origin/main 53257a5: validate-security-posture.ts has security-superuser-field-mask-inert for the same-set case only, and SECURITY_WILDCARD_VAMA (:170) reads the two record bits, not viewAllFields)
    Ruling-ref: #34365 ruling 6912661484 (「同意,立决策卡」), step 2: lint warning for the cross-set case and the requiredPermissions steering (decision point 2); scope widened by L2 record 7063858938 (comment 7063882080): security-wildcard-vama reads viewAllFields
    Pre-claim lane: repo:objectstack#7 · o7-data — the card is in the o7-data row on #35557
    Pre-claim deps: Blocked-by: #36050 is closed as completed (unblocked 7064415958); viewAllFields is on main, its changeset .changeset/36050-view-all-fields-bit.md still pending
    Prior rulings read: check-prior-rulings --card 36052 --paths packages/lint/src/validate-security-posture.ts: card thread 0 rulings of 3 comments; ADR-0066 D3 (resource→capability requirement, the requiredPermissions steering the card names) and ADR-0085 Decision §6 (two-tier author-time guardrails, the warning/error idiom) read as the governing decisions; no decision contradicts a warning at this step
    Serial constraints cleared: open PRs touching packages/lint (file read 2026-11-23T19:5xZ): #36721 touches rule-explanations.ts (a keyed table; whichever lands second takes the append), #36673 and #36525 touch other lint files; nothing touches validate-security-posture*.ts; os-verify-lock depth 1 → go
    Fold-or-serial: not folded — #36051 (os explain, same step of #34365) is a different package and surface

  7. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 23, 2026
  8. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-alice · session_011y7As6FyXmJyGyHNKXUkV7

    Paused · 2026-11-24T10:18Z · claim 7112268942 stays held (pm:dispatched, assignee os-alice).

    The dev is stopped mid-work on the maintainer's concurrency cap: at most 3 running dev subagents across seat repo:objectstack#7, every running dev counted. o7-data runs 0 devs until the seat resumes one. Nothing is lost: the worktree ../objectstack-issue-36052 is kept clean at e785a65c7a, and the branch claude/issue-36052-lint-cross-set-field-reopen is on origin at e785a65c7a. No PR is open yet. When resumed, the same dev continues from its saved state.

  9. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-alice · session_011y7As6FyXmJyGyHNKXUkV7

    Claim amendment 1 · 2026-11-24T11:16Z · claim 7112268942 · resumed by the seat (fleet slot 3 of 3)

    Container & model: S, mode:subagent, model: default tier (opus; dispatch-gates --tier: "no path-derived mandate"), effort: medium (定档: size S)

    The paused branch claude/issue-36052-lint-cross-set-field-reopen is at e785a65c7a on origin: 8 files, +732/−18 against main, and no PR yet. A fresh dev continues from that head at the 定档 effort. The earlier dev ran at effort high, which did not match 定档 for size S. File surface unchanged.

  10. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-alice · session_011y7As6FyXmJyGyHNKXUkV7

    Claim amendment 2 · 2026-11-24T11:18Z · claim 7112268942 · corrects amendment 1

    Container & model: M, mode:subagent, model: default tier (opus; dispatch-gates --tier: "no path-derived mandate"), effort: high (定档: size M)

    Resize S → M: the branch already carries +732/−18 over 8 files at e785a65c7a. The medium-effort dev from amendment 1 was stopped right after it started, and a dev at effort high restarts from the same head. Review route: L1-a, since the PR is past the self-review bound.

  11. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-alice · session_011y7As6FyXmJyGyHNKXUkV7

    Paused · 2026-11-24T11:26Z · claim 7112268942 (amendment 2: size M, opus, effort high) stays held (pm:dispatched, assignee os-alice).

    The dev is stopped for a usage pause the maintainer approved. Nothing starts again until the seat resumes the card after the usage reset at 15:10Z. Nothing is lost. The worktree ../objectstack-issue-36052 is clean, and the branch claude/issue-36052-lint-cross-set-field-reopen is on origin at 31dfecc430 (the same head, a merge of main). No PR is open yet. Still to do on resume: the final-head gates, the ablation, and the draft PR.

  12. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH

    Claim amendment 3 · 2026-11-24T13:32Z · claim 7112268942 · resumed by the seat after the usage pause (paused note 7130105997)

    Session: session_011y7As5bdhV5T4N9vpjmZzH (the seat session; the seat owns this card directly now, taking it over from the o7-data zone thread, which is closed)
    Container & model: M, mode:subagent, model: default judgment tier (opus; dispatch-gates --tier: "no path-derived mandate"), effort: high (定档: size M, amendment 7129930826)

    The branch claude/issue-36052-lint-cross-set-field-reopen resumes from 31dfecc430 on origin (8 files, +732/−18, no PR yet) in a fresh worktree. Still to do: merge origin/main, the final-head gates, the ablation, and the draft PR. File surface unchanged.

  13. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH
    os-dev-report

    {
      "issue": 36052,
      "status": "done",
      "branch": "claude/issue-36052-lint-cross-set-field-reopen",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37016",
      "session": "session_011y7As5bdhV5T4N9vpjmZzH",
      "premise_still_valid": true,
      "summary": "Resumed the paused branch from 31dfecc430 in a fresh worktree, merged origin/main (57445a69981) as merge 8ef5a6dd11a, and opened draft PR #37016. The PR adds the warning security-cross-set-field-reopen: one set hides a field (readable: false) or edit-locks it, and another set re-opens it through View All, Modify All or viewAllFields on the object (own entry, else '*'). The rule names both sets and the field and steers high-sensitivity fields to requiredPermissions plus maskingRule. It skips rows whose own set holds Modify All, so security-superuser-field-mask-inert keeps the same-set case and no row is reported twice. security-wildcard-vama now also reads viewAllFields on a package-authored '*' entry, as an error, because the key is in no release yet (the 36050 changeset is still pending). The rule implementation was already complete at 31dfecc430. This round added the main merge, the final-head tests and gates, the ablation and the PR. The claim amendment is comment 7132980427.",
      "tests": "head 8ef5a6dd11a: os-verify-lock 'pnpm --filter @objectstack/lint test && pnpm --filter @objectstack/lint typecheck' -> VERDICT command-exit 0; Test Files 232 passed (232), Tests 9589 passed (9589); check:test-typecheck OK. Ablation via scripts/ablation-replace.mjs (the test imports src through a relative path, so there is no dist leg): (1) delete the pushCrossSetFieldReopen call: landed (anchor 1->0, blob 635191f556df->85d35b76dce4), 6 failed / 10 passed of 16, restored (blob == HEAD, git diff HEAD empty); (2) fieldBypass -> false: landed (blob ->67084cc6b11e), 2 failed / 14 passed, restored (blob == HEAD, git diff HEAD empty).",
      "gates": "local: dispatch-gates --repo objectstack-ai/objectstack --commands on 8ef5a6dd11a derived 68 families; 65 exit 0; NOT MEASURED: check:dual-build-cjs-loads (exit 3, PREREQUISITE NOT MET: needs every package's dist) and check:lean-entry-closure (exit 3, needs objectql dist; the scoped build got lock VERDICT queue-timeout exit 99, holder pid 15605 building client-react), check:type-check-debt (exit 124, 500s timeout on the shared box, with OOM kills reported). --ran reconciliation with exit codes: 68 derived, 65 run, 3 NOT-MEASURED, 0 UNRUN, exit 0. check-nul-bytes exit 0. CI on 8ef5a6dd11a when this report was written: Check Changeset, Governed Surface Queue Guard, Lint jobs and Type Check jobs were in_progress; Lint ESLint was queued; 18.x upgrade harness, Packed-tarball smoke and the two queue-verdict checks were skipped. No conclusions yet.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm (Clause-②: no)",
      "mcp_calls": "0",
      "api_writes": "4 — POST issues/36052/comments (claim amendment 3, comment 7132980427, via the fleet-write relay); git push (merge 8ef5a6dd11a; not a REST write); pr_create via relay (POST /pulls #37016 draft + POST /issues/37016/assignees os-alice); POST issues/36052/comments (this os-dev-report)",
      "open_questions": [],
      "security_findings": "withheld",
      "out_of_scope_findings": ["carrier: none · noted, not filed: lint's holdsViewAllFields is a copy of core's private helper of the same name (effective-object-permissions.ts); the two read the bit identically today; recorded in the PR's Acceptance notes"]
    }
  14. removed
    pm:dispatched
    on Nov 26, 2026
  15. github-actions commented on Nov 26, 2026

    @github-actions
    Contributor

    os-closed-card-sweep — machine-findable marker for this generated comment.

    Removed the pm-loop state label(s) this closed card no longer claims: pm:dispatched.

    A state label claims work is in flight. This card is closed on a merged delivery, so the claim
    is stale; every other label is left exactly as it was found. Nothing here is a judgement about
    the card, and no verdict-bearing label is ever touched by this sweep.

    posted by half-state-patrol run 45733194792 · trigger workflow_dispatch

    Generated by Claude Code

  16. added a commit that references this issue on Dec 1, 2026
    92f6216
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:datadomain:devxpriority:p2

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions