Skip to content

skills: teach the three permission axes — viewAllFields for "sees every field", field rows for role-dependent fields, requiredPermissions for high-sensitivity fields (step 2 of #34365) #36053

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; the Skills-docs: follow-up the viewAllFields PR owes)
Blocked-by: #36050
Grade: left to triage. Suggested p2 (a step of the p2 security card #34365). Area: data. Type suggestion: Task.
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 ruling (#34365) is that AI-authored apps should get the permission model right by construction: View All / Modify All widen records only (in v19), "this role sees every field" is viewAllFields, role-dependent fields are field rows, and high-sensitivity fields (salary, ID numbers) are gated on the field with requiredPermissions, not hidden only by a permission-set row. If the authoring skills keep teaching View All as "see everything", every new app is written against the old model and the v19 conversion has to undo it.

What to build

Constraints

  • Governed surface (skills/**) ⇒ Tier H.
  • Teach only what main enforces when this lands: build after the viewAllFields PR merges.

Acceptance

  • The skills teach the shapes above; the evals exercise viewAllFields and a requiredPermissions-gated field.
  • Gates green; L1 + contract review 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:skills · pm:blocked (Blocked-by #36050); rationale: area:data · Task · step 2 of #34365: the skills teach the three permission axes (viewAllFields, field rows, requiredPermissions), the Skills-docs: follow-up #36050 owes → p2 (shipped skills must teach the landed key) · size S.

  2. added
    domain:skills
    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 Teaching items from the reviews of PR #36085 (#36050), carried here instead of a new card:

    • L2 N3 (record 7063858938): a viewAllFields bit on '*' also votes on the fields of private-posture objects (the field axis is posture-blind; it grants no object access). Teach it in one sentence, and add one pin on both merges (getFieldPermissions, buildEffectiveFieldPermissions) when this card lands.
    • L2 N2: in packages/spec/src/security/permission.zod.ts, "on a set that carries either bit this key changes nothing" is exact per entry, not per set; the FieldPermissionSchema docblock in the same file still names only the declaring sets and the super-user sets as voters. Fix both sentences here.
    • L1 N2 (L1 7063599142): the Studio access matrix carries the key through but cannot author it. Teach that it is authored in metadata, or say here why Studio authoring is out of scope.
  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 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-alice · session_011y7As6FyXmJyGyHNKXUkV7

    Claim: PM loop round 3
    Session: session_011y7As6FyXmJyGyHNKXUkV7
    Account: os-alice
    Branch: claude/issue-36053-skills-three-permission-axes
    Worktree: objectstack-issue-36053
    Domain: domain:skills
    Seat: repo:objectstack#7
    Area: o7-data
    File surface: skills/objectstack-data/rules/security.md, skills/objectstack-data/evals/*.json (new or extended permission cases), content/docs/permissions/field-level-security.mdx (and a sibling permissions page only where it teaches View All as "sees every field"), packages/spec/src/security/permission.zod.ts (the two docblock sentences of comment 7063888562, comments only), one pin each beside packages/core/src/security/effective-object-permissions.ts and packages/plugins/plugin-security/src/permission-evaluator.ts tests (the '*' viewAllFields posture-blind vote), changesets (stop on breach; explain in the report). ⛔ Not skills/objectstack-data/SKILL.md (open #36158 rewrites it). Governed path (skills/**): handed to the seat, never landed by the area.
    Container & model: S, mode:subagent, model: claude-fable-5-2 (dispatch-gates --tier: MANDATORY, skills/** clause ①), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack (skills/objectstack-data/rules/security.md teaches View All / Modify All and field rows but not viewAllFields, the sensitivity tiers or the v19 field-vote change) | none — #36050 landed the key, the skill did not follow (the Skills-docs follow-up #36085 owes) | every AI author using the published data skill to write permission sets
    Thread-read: 7064422756
    Premise: holds (origin/main: grep -n viewAllFields skills/ finds nothing; rules/security.md:24 and :292 teach viewAllRecords / modifyAllRecords only)
    Ruling-ref: #34365 ruling 6912661484 (「同意,立决策卡」), step 2: the skills teach the three axes, viewAllFields, the sensitivity tiers and "from v19" View All / Modify All stop voting on fields; teaching items carried in by comment 7063888562 (L2 7063858938 N2/N3, L1 7063599142 N2)
    Pre-claim lane: repo:objectstack#7 · o7-data — the card is in the o7-data row on #35557
    Pre-claim deps: Blocked-by: #36050 closed as completed (unblocked 7064422756); viewAllFields is on main
    Prior rulings read: check-prior-rulings --card 36053 --paths skills/objectstack-data/rules/security.md: card thread 0 rulings of 3 comments; ADR-0066 D3 (requiredPermissions on the field) is the governing decision for the high-sensitivity tier; ADR-0063 §2 (skills as the extension primitive) read; nothing contradicts the card
    Serial constraints cleared: open draft #36158 (seat 6, #34770, waiting on the maintainer) also edits skills/objectstack-data/rules/security.md: whichever lands second takes the merge; this PR stays out of SKILL.md. No other open PR touches the surface. #36052 (lint, same step) is a different package. os-verify-lock depth 1 → go
    Fold-or-serial: not folded — #36052 is the lint half of the same step, a different surface

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-alice · session_011y7As6FyXmJyGyHNKXUkV7

    Claim amendment 1 · 2026-11-24T00:46Z · claim 7118175085

    File surface: adds scripts/check-skills-token-ratchet.mjs, the skills/objectstack-data/rules/security.md ceiling row only.

    Reason: rules/security.md is at its ceiling (4068 / 4068 tokens, headroom 0) at origin/main bbc7e03. The ruled teaching (#34365 step 2 plus comment 7063888562) does not fit by cutting restatement alone; the dev measured about 63–225 tokens of remainder. Route: the ratchet header's standing-ruling path (record 6513306068): cut clean restatement first, then raise the row by the measured remainder only. No unique teaching is deleted from a security skill to make room. Serial: open draft #36158 moves the same row; whichever lands second recomputes it.

  9. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-alice · session_011y7As6FyXmJyGyHNKXUkV7

    Paused · 2026-11-24T10:19Z · claim 7118175085 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-36053 is kept clean at 4870688835 (local commits not yet pushed), and the branch claude/issue-36053-skills-three-permission-axes is on origin at 861382db99. No PR is open yet. When resumed, the same dev continues from its saved state.

  10. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-alice · session_011y7As6FyXmJyGyHNKXUkV7

    Claim amendment 2 · 2026-11-24T10:56Z · claim 7118175085 · resumed by the seat (slot 3 of 3 fleet-wide)

    Container & model: S, mode:subagent, model: claude-fable-5-2 (dispatch-gates --tier: MANDATORY, skills/** clause ① → CONTRACT_REVIEW_TIER), effort: medium (定档: size S)

    The paused work is pushed: branch claude/issue-36053-skills-three-permission-axes is at 4870688835 on origin (it was at 861382db99). 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 from amendment 1.

  11. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-alice · session_011y7As6FyXmJyGyHNKXUkV7

    Paused · 2026-11-24T11:26Z · claim 7118175085 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-36053 is clean, and every commit is pushed: the branch claude/issue-36053-skills-three-permission-axes is on origin at 913e81e397 (the newest commit is a merge of main). No PR is open yet. overlap-check at that head: it merges cleanly with main, but it conflicts with open #36158 in scripts/check-skills-token-ratchet.mjs. Whichever lands second takes that merge.

  12. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH

    Claim amendment 3 · 2026-11-24T13:31Z · claim 7118175085 · taken over by the seat from area o7-data

    Session: session_011y7As5bdhV5T4N9vpjmZzH
    Container & model: S, mode:subagent, model: claude-fable-5-2 (CONTRACT_REVIEW_TIER; dispatch-gates --tier: MANDATORY, skills/** clause ①), effort: medium (定档: size S)

    Takeover: the o7-data zone thread is closed, so seat repo:objectstack#7 now owns this card directly; the claim, the account (os-alice) and the branch claude/issue-36053-skills-three-permission-axes are unchanged. This follows amendment 2 (7129446767) and the paused note (7130123622). The dev resumes from 913e81e397 on origin in a fresh worktree; a merge of origin/main 57445a6998 is pushed on top as f1d2ae130c. File surface unchanged from amendment 1.

  13. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

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

    {
      "issue": 36053,
      "status": "done",
      "branch": "claude/issue-36053-skills-three-permission-axes",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37019",
      "session": "session_011y7As5bdhV5T4N9vpjmZzH",
      "premise_still_valid": true,
      "summary": "Resumed from 913e81e397 in a fresh worktree, merged origin/main 57445a6998 (clean, no file of this diff touched) and pushed head f1d2ae130c; no content edit was made in this round. The diff is the earlier dev's: rules/security.md teaches the three axes, viewAllFields and the sensitivity tiers; two evals; the permissions docs; two spec docblock sentences; two posture-blind pins; the security.md ceiling row 4068 to 4292 on the standing-ruling path of amendment 1; a changeset. Draft PR 37019 is open, assigned to os-alice, not readied, not armed. The card assignee was not written.",
      "tests": "Head f1d2ae130c. One locked command, os-verify-lock VERDICT command-exit 0: core superuser-field-vote-33828.test.ts Test Files 1 passed (1), Tests 12 passed (12); plugin-security fls-own-field-mask-33828.test.ts Test Files 1 passed (1), Tests 63 passed (63); typecheck of core and plugin-security exit 0; spec tsc --noEmit exit 0; spec check:generated 'All 14 generated artifacts are up to date'. No ablation: the two pins cover behaviour that already landed, and this diff changes no tested behaviour.",
      "gates": "dispatch-gates --commands at f1d2ae130c: 142 derived. --ran verdict: '142 derived famil(ies) accounted for — 139 run, 3 NOT-MEASURED (3 DERIVED from a recorded exit 3)'. The 139 exit 0, check-skills-token-ratchet among them (security.md 4292 / 4292, headroom 0) and check:pm-dispatch-gates. check:skill-examples exit 3 first, exit 0 after the client-react closure was built (350 prose examples type-check). NOT MEASURED: check:dual-build-cjs-loads, reason: exit 3, whole-workspace build not made; check:i18n, reason: exit 3, CLI closure not built; check:type-check-debt, reason: exit 3, its own build did not get the verify lock in time. CI check-runs on PR 37019: in_progress, not read.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "3 — relay comment on issue 36053 (claim amendment 3, comment 7132966820); relay pr_create (POST pulls, then POST issues/37019/assignees); relay comment on issue 36053 (this report). git push: 1.",
      "open_questions": [
        {
          "question": "The resume order says every body opens with the signature line; os-dev.md and the relay keep line 1 of a pull request body for the closing keyword and take the signature as the trailer on the last line.",
          "options": ["A keep the body as written (closing keyword first, signed trailer last)", "B the seat rewrites the body to open with the signature"],
          "recommendation": "A, because the relay's own header says a pull request body is signed on its last line and the platform reads the closing keyword on line 1."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": []
    }

    Deviations:

    • The branch is 10 commits behind origin/main 5727092e72 as the PR opens. Main moved while the gate sweep ran; none of the 10 commits touches a file of this diff, so no second merge was made and the sweep was not rerun.
    • The sweep was interrupted once by the usage pause and resumed at the same head; the last 14 commands and the check:skill-examples rerun ran after the pause.
    • The full pnpm test of core and plugin-security was not run: the diff adds cases to one test file in each and changes no source. test:repo is left to CI.
    • The merge commit f1d2ae130c was amended before its push to carry the model-free trailer pair. The two earlier merge commits on the branch carry no trailer; they were left as landed.
    • The PR body carries one HTML comment, the signed trailer on its last line, because the resume order asked for a signed body.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:datadomain:skillspm:dispatchedpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions