Repository navigation
docs(skills): the data skill teaches the three permission axes, viewAllFields and the sensitivity tiers - #37019
Conversation
…laim to the object entry Two docblock sentences in permission.zod.ts, comments only. The viewAllFields docblock said the key changes nothing on a SET that carries View All or Modify All; the lookup is per object entry. The FieldPermissionSchema docblock named only the declaring sets and the super-user sets as voters. Claude-Session: https://claude.ai/code/session_011y7As6FyXmJyGyHNKXUkV7 Co-authored-by: Claude <noreply@anthropic.com>
…object's fields and grants no object One pin per field merge: buildEffectiveFieldPermissions in core's shared vote file, getFieldPermissions in plugin-security's. The object axis honours the private posture (a plain '*' does not cover a private object); the field axis takes no posture, so the bit still casts its read vote there. Test only. Claude-Session: https://claude.ai/code/session_011y7As6FyXmJyGyHNKXUkV7 Co-authored-by: Claude <noreply@anthropic.com>
…sensitivity tiers in the data skill rules/security.md now teaches the ruled model (ruling of record 6912661484): object permission, record scope, fields; viewAllFields as the read-only "reads every field" bit (own readable: false row beats it, no object access, its wildcard vote on private-posture objects, authored in metadata); ordinary / role-dependent / high-sensitivity fields; from v19 View All and Modify All open no field; maskingRule beside a field's requiredPermissions. Token ratchet, the standing-ruling path of the gate's header (record 6513306068, verbatim: 「A:先削重复,余额按实测提高」): 274 bytes of restatement cut first (the "Locks, never grants" bullet, the recipe URL), then the row moves by the measured remainder, 4068 -> 4292 (16272 -> 17168 bytes), zero headroom. Claude-Session: https://claude.ai/code/session_011y7As6FyXmJyGyHNKXUkV7 Co-authored-by: Claude <noreply@anthropic.com>
…ewAllFields; evals and changeset field-level-security.mdx gains the three-axes table, the choose-by-sensitivity table and a viewAllFields section, and names viewAllFields as a voter where it described the field merge. authorization.mdx and permissions-matrix.mdx gain one pointer each where they teach View All as reading every field. Two evals exercise viewAllFields and a requiredPermissions-gated field. Claude-Session: https://claude.ai/code/session_011y7As6FyXmJyGyHNKXUkV7 Co-authored-by: Claude <noreply@anthropic.com>
…ills-three-permission-axes Claude-Session: https://claude.ai/code/session_011y7As6FyXmJyGyHNKXUkV7 Co-authored-by: Claude <noreply@anthropic.com>
…g in the ADR-0090 D3 vocabulary check:role-word refuses a new use of the reserved word in content/docs and skills. The tier the ruling calls role-dependent is spelled position-dependent, and the docs heading reads "a set that reads every field". The skill file stays at 17168 bytes (4292 tokens, ceiling 4292): the four bytes the longer word costs are paid by dropping an article in the same section. Claude-Session: https://claude.ai/code/session_011y7As6FyXmJyGyHNKXUkV7 Co-authored-by: Claude <noreply@anthropic.com>
…ills-three-permission-axes Claude-Session: https://claude.ai/code/session_011y7As6FyXmJyGyHNKXUkV7 Co-authored-by: Claude <noreply@anthropic.com>
…ills-three-permission-axes
…ills-three-permission-axes
…ills-three-permission-axes Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As5bdhV5T4N9vpjmZzH
📓 Docs Drift Check1 anchor(s) derived from 1 changed package(s); no hand-written page names any of them, so this run has nothing to list — not a clean bill of health. This check sees only pages that NAME a derived anchor: one that documents this change in prose, or enumerates it in an authoring dialect, names none and stays invisible to it on every run. What this run could not see
Coarse fallback — 175 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin f9f4a53cc4085d486d0085ecc83f3aa965090b3c && git checkout f9f4a53cc4085d486d0085ecc83f3aa965090b3c
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin a73edb3cd784e212c7b8b21757a44c0cfed9adfe f1d2ae130cb3b71ffb7273ef52e2da3f06700a51 && git checkout -B drift-repro a73edb3cd784e212c7b8b21757a44c0cfed9adfe && git merge --no-ff f1d2ae130cb3b71ffb7273ef52e2da3f06700a51
node scripts/docs-audit/affected-docs.mjs --json a73edb3cd784e212c7b8b21757a44c0cfed9adfe |
|
repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH Contract-review-claim: session_011y7As5bdhV5T4N9vpjmZzH · head f1d2ae1 · 2026-11-24T15:53Z |
|
repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH Contract reviewServed-tier: Reviewed 2026-11-24T16:24Z. Inputs: card #36053 with every comment, the parent ruling on #34365 (record 6912661484), the PR body, the net diff of the head against its merge base ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentEach taught sentence was read against the code at the head.
Implementing files: the ratchet row and its comment agree with the measured file. The two pins assert the taught sentence on both merges and on the object axis. No must-fix, no should-fix. Nits, none of which affects correctness or the contract:
Implemented-by: VERDICT: PASS |
|
repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH 席位核对 — ACCEPT · head f1d2ae1L1 review of the dev report 7136709272 on #36053, read 2026-11-24T16:25Z. No must-fix. The contract review of this head is record 7137620685 (PASS, PR form and card
Scope and changeset
Tests and gates
Deviations judged
Landing notes for the seat
|
|
repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH 维护者速读
Review request — Tier H (skills/** rules text, security-touching).
|
|
repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH Adds the |
Fixes #36053
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
skills/objectstack-data/rules/security.md: the bits bullet now names the three axes (object permission, record scope, fields) and says that from v19 View All / Modify All open no field. A new section, "Field visibility andviewAllFields", teaches the three sensitivity tiers (ordinary: write nothing; position-dependent:fieldsrows; high-sensitivity:requiredPermissionson the field) andviewAllFields: true(a read vote on every field, never an edit vote; the set's ownreadable: falserow beats it; no object access and no record; on'*'it also votes on a private-posture object's fields; authored in metadata, Studio has no control for it). TherequiredPermissionsparagraph now says it is strictest-wins over field rows,viewAllFields, View All and Modify All, and showsmaskingRulebeside it.skills/objectstack-data/evals/hooks-security-seeds-datasources.json: two cases, id 36 (a read-everything auditor set written withviewAllFields) and id 37 (salary and ID-number fields gated withrequiredPermissionsandmaskingRule).content/docs/permissions/field-level-security.mdx: new sections "The three axes", "Choosing by sensitivity" and "viewAllFields: a set that reads every field";authorization.mdxandpermissions-matrix.mdxeach gain the "from v19" sentence where they taught View All as reaching every field.packages/spec/src/security/permission.zod.ts: two docblock sentences, comments only (the review notes carried on the card): theviewAllFieldsno-op claim is scoped to the object entry, and theFieldPermissionSchemadocblock namesviewAllFieldsas a voter.packages/core/src/security/superuser-field-vote-33828.test.tsandpackages/plugins/plugin-security/src/fls-own-field-mask-33828.test.ts.scripts/check-skills-token-ratchet.mjs: therules/security.mdceiling row moves 4068 to 4292, on the ratchet header's standing-ruling path (record 6513306068, 「A:先削重复,余额按实测提高」): 274 bytes of restatement were cut first, and the row is raised by the measured remainder only, pinned at the measurement with zero headroom. The claim's amendment 1 on the card records this route.@objectstack/skillspatch,@objectstack/specpatch.Size readings (
node scripts/check-skills-token-ratchet.mjs, tokens areceil(bytes / 4); before is the merge base57445a6998, after is headf1d2ae130c):rules/security.mdlinesrules/security.mdbytesrules/security.mdtokens (ceiling 4068, then 4292)SKILL.mdlinesNo
SKILL.mdis touched.Why
The ruling behind the card is that an AI-authored app should get the permission model right by construction.
viewAllFieldsis on main, and the published data skill still taught View All / Modify All as the only wide grant, so an author granted View All to open fields. From v19 that stops working.Tests
Head
f1d2ae130c.Touched test files, typecheck, spec artifacts
pnpm --filter @objectstack/core exec vitest run --maxWorkers=2 src/security/superuser-field-vote-33828.test.ts: Test Files 1 passed (1), Tests 12 passed (12).pnpm --filter @objectstack/plugin-security exec vitest run --maxWorkers=2 src/fls-own-field-mask-33828.test.ts: Test Files 1 passed (1), Tests 63 passed (63).pnpm --filter @objectstack/core run typecheck,pnpm --filter @objectstack/plugin-security run typecheck,pnpm --filter @objectstack/spec exec tsc --noEmit: exit 0.pnpm --filter @objectstack/spec check:generated: "All 14 generated artifacts are up to date".os-verify-lock: VERDICT command-exit 0.The two pins add coverage for behaviour that already landed with
viewAllFields; no tested behaviour changes in this diff, so there is no ablation.Acceptance notes
skills/objectstack-data/SKILL.mdis not touched: an open draft rewrites it.scripts/check-skills-token-ratchet.mjs. The two conflict there; whichever lands second takes that merge and recomputes the row.viewAllFieldsis out of scope here; the skill and the docs say the key is authored in metadata.origin/main(5727092e72) as this opens. None of those commits touches a file of this diff.Verification
Read first, by risk:
skills/objectstack-data/rules/security.md, the new "Field visibility andviewAllFields" section, againstsuperuserFieldVoteinpackages/core/src/security/effective-object-permissions.ts.scripts/check-skills-token-ratchet.mjs, the one ceiling row and its comment.content/docs/permissions/field-level-security.mdx, the "From v19" callout.Two-minute check:
node scripts/check-skills-token-ratchet.mjsexits 0 and printsskills/objectstack-data/rules/security.md is 4292 tokens (ceiling 4292; headroom 0).Derived gates
node scripts/pm/dispatch-gates.mjs --commandsderives 142 commands for this diff. All 142 were run at headf1d2ae130cand reconciled with--ran:142 derived famil(ies) accounted for — 139 run, 3 NOT-MEASURED. The 139 exit 0.check:skill-examplesfirst exited 3 (prerequisite), then exit 0 after the@objectstack/client-reactclosure was built: "350 prose examples type-check across 3 surface(s)".NOT MEASURED, all exit 3 (PREREQUISITE NOT MET), left to CI:
pnpm check:dual-build-cjs-loadsandpnpm check:i18n: they read a whole-workspace build this run did not make.pnpm check:type-check-debt: its own workspace build did not get the shared verify lock in time.Human Minimum
packages/specholds no runtime logic.pnpm lintpasses. (No formatter ran;pnpm lintis left to CI.)main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed. (Comments only;check:generatedreads all up to date.)content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.Generated by Claude Code