Repository navigation
docs(skills): objectstack-data teaches rollupSourceUnreadableReason beside security-rollup-source-unreadable - #35042
Conversation
…eside security-rollup-source-unreadable The roll-up rule named two ways out of the warning (grant the child read, or mask the summary). It now names the third: a set meant to see the total but not the children keeps the column readable and gives the reason on its entry for it, and the warning becomes a note quoting the reason. The mask sentence names Modify All alone, since a set's own mask binds beside its own View All. Paid by restatement cut from the same file; the token row follows the measurement down, 4229 to 4221. One eval case added beside the mask case. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziunkXbDT7wUWqfmWz
|
repo:objectstack#3 · os-support-ai · session_01WGufzhshTXCAmv9KJXRZkB L1 review (#34742) · 2026-11-18T00:02ZL1: ACCEPT
Must-fixNone. Should-fix
The Modify All correction: in scope, keep itThe dev asked whether it is in scope. It is, and it is right. The sentence the PR rewrites taught "remove any View All / Modify All … (either overrides the mask)". That has been false for View All since the ADR-0066 D2 ⑧ note of 2026-11-15 (#33828, maintainer ruling A: "a set's own
Keeping a false sentence inside the paragraph being rewritten would leave a doc the PR touches false. Eval id 20's What I checked
Notes
|
|
repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG Contract-review-claim: session_01WGufzgh1zkZzDXL36ckWAG · head |
|
repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG Contract reviewServed-tier: Why Inputs read: card #34742 body and its 5 comments; PR #35042 body, 4-file list, net diff ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentNo must-fix, no should-fix.
Could the corrected sentence lead an author to expose data? I tried three ways and found none.
The row and its comment agree with the tree: +419 and -451 net -32 bytes, 16916 to 16884, 4221. The comment's list of cuts matches the diff, hunk for hunk. Nits (none affects correctness or the contract; none needs a head change)
Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG 席位记录 · 2026-11-18T00:10ZHead-sha: 维护者速读(终稿)
席位意见:建议批准。每句教学内容都已对照代码核实,权限那句是纠错。 席位核对
|
Requested by Yibo Wang · project thread
Fixes #34742
Clause-②: no
Metadata-protocol: none
Served-tier: CONTRACT_REVIEW_TIER
维护者速读
objectstack-data技能的汇总可见性规则多教一条出路。权限集「该看汇总、不该看明细」时,保留该列可读,并在该集的字段条目上写rollupSourceUnreadableReason说明原因;评测集加一道对应的题。skills/objectstack-data/rules/relationships.md的「Never finish with …」一段及其示例(新教学,另把「先摘掉 View All / Modify All」改为只说 Modify All);同文件被删的 6 处重复;scripts/check-skills-token-ratchet.mjs里relationships.md那一行及注释。node scripts/check-skills-token-ratchet.mjs,预期末行以✓ check-skills-token-ratchet: 58 authored bundle file(s) within their ceilings开头。check-governed-merges判为 Tier H(skills/**);席位达档合同审 6964794395 判Security-touching: yes(本 PR 讲授权限集字段遮罩与 Modify All 的覆盖关系),低风险 skills 通道不适用,需 os-zhuang 批准后由席位落地。合同审 PASS,L1 ACCEPT,无 must-fix / should-fix。What changes
skills/objectstack-data/rules/relationships.md(§ Roll-up Summaries, the "Never finish withsecurity-rollup-source-unreadablestanding" paragraph and its example). The paragraph named two ways out per permission set. It now names three, chosen from the request:rollupSourceUnreadableReasonto the set's entry for it. The warning becomes a note quoting the reason. The reason is refused blank or besidereadable: false;It ends with the card's guard: never add the reason to silence a total the request withholds; mask it. The
client_viewerexample gains the acknowledged entry as a commented alternative to the mask line:fields: { 'project.task_count': { readable: true, rollupSourceUnreadableReason: 'Clients see progress counts, not tasks' } }.The mask sentence names Modify All alone. It said to remove "any View All / Modify All it holds on the parent (either overrides the mask)". That is no longer true for View All: under the ADR-0066 D2 ⑧ note of 2026-11-15 a set's own
readable: falserow binds beside that set's own View All, and only its Modify All unbinds it. The lint rule's own hint names Modify All only. The sentence I was extending would have kept teaching an unneeded removal, so it now reads "after removing any Modify All it holds on the parent (it overrides the mask)". The same parenthetical in the existing mask eval case (id 20) is brought in line; its assertions are untouched.skills/objectstack-data/evals/hooks-security-seeds-datasources.json. The mask case (id 20) stays. One case is added after it (id 27): the request says clients should see how many tasks each project has but never read the tasks, so the answer keeps the column readable and acknowledges it with a reason. Ids 25 and 26 are left for the open PR #34964, which appends them at the end of the file; this case sits mid-file so the two do not touch the same lines.scripts/check-skills-token-ratchet.mjs: therelationships.mdrow follows the measurement down, 4229 to 4221, with the arithmetic in its comment..changeset/34742-skills-rollup-source-unreadable-reason.md:@objectstack/skillspatch.No version caveat is taught:
@objectstack/skillsis versioned and published with the other packages, so the text ships in the release that carries the key.How the file is paid for
The row had zero headroom (16916 bytes, ceiling 4229 = ceil(16916 / 4)). The teaching adds 419 bytes. Six restatements are cut from the same file, 451 bytes, each with the text that still carries it:
'grid'and'form'bullets under "Inline-edit form factor"inlineEditvalues ("editable line-item grid (fast bulk entry; thin children)", "read-only list; … opens the FULL form") and the smart-default sentence (rich or form-only fields, or more than ~8 editable fields, pickform)inlineEditis the write side, the related list … is the read side" lead-inrelatedList: 'primary'comment "read side: a body table"'primary'bullet{ fields: ['project_id', 'employee_id'], unique: 'organization' }lookup: Independent) and the example's ownaccount_idlookupsummaryfield aggregates a child collection" directly above; the first "On the CHILD object's FK field:" comment in Inline Editing, and "The relationship flags" lead-inNet: 16916 to 16884 bytes, ceil(16884 / 4) = 4221. No raise.
Size readings (
skills/**)6d2db1d7ef)df1e9b4764)rules/relationships.md, linesrules/relationships.md, bytes / tokensSKILL.mdfiles, lines (none touched).mdunderskills/outsideevals/, linesTests
All on head
df1e9b4764.Premise, re-measured on
origin/main6d2db1drelationships.md:228-234named grant or mask only.git grep -n rollupSourceUnreadableReason -- skillsanswered zero lines (control: the same word hitspackages/lint/src/validate-rollup-source-visibility.tsandpackages/spec/src/security/permission.zod.ts).Every taught clause, probed against the built lint rule and the spec schema
One throwaway script (not committed) ran
validateRollupSourceVisibilityfrom the rebuiltpackages/lint/distover aproject/taskstack with aclient_viewerset, andFieldPermissionSchema.safeParsefrom@objectstack/spec/security:So: the reason drops the finding to
info(the "note" the docs name) under the same id and quotes it; it is judged per set and per column entry (acknowledgedReasonreads the set's own entry for that column only); a blank reason and a reason besidereadable: falseare refused at parse; the set's own mask binds beside its own View All and not beside its own Modify All.Eval assertions, checked by script
No gate reads eval assertions outside
ui/, so a script checked the file: 25 cases, 25 distinct ids, everymust_containtoken is in itsexpected_output, nomust_not_containtoken is, 0 violations.The new case's tokens are layout-independent, because
packages/qa/scenarios/src/skill-evals/grade.tsmatches literal, case-sensitive substrings with no normalisation:summary,project.task_count,rollupSourceUnreadableReason. Two checks are left out on purpose, since neither can be spelled without depending on whitespace or quoting: that the entry is notreadable: false, and that the set carries notaskread grant. A wrong answer of either kind (mask, or grant the read) still fails the case, because it has no reason to carryrollupSourceUnreadableReason.No ablation: the diff changes skill prose, an eval fixture and a ratchet row, and no tested behaviour.
Acceptance notes
node scripts/pm/overlap-check.mjsagainstorigin/main65ec3c5 and the open PR heads answeredVERDICT clean exit 0(docs(skills): objectstack-ask iteration 2: trigger on every records question, ask back with no figure of its own, whole terms, hidden record kinds declined #35038, feat(skills): trigger cases for the six metadata skills; eval assertions and prompts that grade the skill #35022 and docs(skills): data-hooks teaches when a before* hook's ctx.api writes roll back with a refused save #34964 each merge cleanly with this branch).Verification
Local gates: 64 derived, 62 run, 2 NOT MEASURED
pnpm --workspace-concurrency=2 --filter '@objectstack/lint...' buildunder the verify lock:VERDICT command-exit 0.node scripts/pm/dispatch-gates.mjs --commandsthen--ran:✓ dispatch-gates --ran: 64 derived famil(ies) accounted for — 62 run, 2 NOT-MEASURED (2 DERIVED from a recorded exit 3).Every run family exited 0.check:dual-build-cjs-loads, reason: exit 3, prerequisite not met (needs a full build);check:lean-entry-closure, reason: the same. Both are left to CI.node scripts/check-skills-token-ratchet.mjs: exit 0,✓ check-skills-token-ratchet: 58 authored bundle file(s) within their ceilings; 10 generator-owned file(s) and 30 eval fixture(s) measured, not ratcheted.Its--self-test: exit 0.pnpm check:skill-links: exit 0,✓ check-skill-links: 256 relative link(s) in 72 published skill file(s) resolve; 130 fragment(s) name a real heading under GitHub's slug rule.test:repoand the repo-wide lint are CI's runs, not run locally.Generated by Claude Code