Repository navigation
docs(skills): context-packs.md says an unserved related child is left out, and names what still refuses the call - #37475
Conversation
… out, and names what still refuses the call A related object this caller cannot read is left out with the one not_visible note (ADR-0160 D3 "Object level", as amended); the whole-call 403 stays for a related object nobody is served and for a shown lookup whose target the read guard refuses. Growth is paid for by cutting restatement in the same file; the token-ratchet row does not move. Claude-Session: https://claude.ai/code/session_01Utp6CYM2brJLG6jU6VWtsE Co-authored-by: Claude <noreply@anthropic.com>
…erence Claude-Session: https://claude.ai/code/session_01Utp6CYM2brJLG6jU6VWtsE Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract-review-claim: session_01Utp6CYtTDvfPQDzMbZnN5X · head 782a8c4 · 2026-11-26T07:57Z |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract reviewServed-tier: PR #37475 (card #37414), 2 files, +24/−12, merge base ① Derived judgments
② Semver levelClause-②: no is right: nothing an existing author wrote parses, loads or reads differently; the product behaviour landed in PR #37412 and this diff only describes it. ③ Boundary flags
④ Design judgment
The five cuts, each against what remains in the file and in
Security: the hunk teaches visibility and permission behaviour, so the line above reads No must-fix, no should-fix. The paragraph matches steps 4a and 4c on Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X 维护者速读
席位意见:ACCEPT。新段落逐句对得上 step 4a/4c 和 席位核对Head-sha:
|
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Approval requested (Tier H, |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Security label: |
Requested by Bill · project thread
Fixes #37414
维护者速读
What changes
One paragraph of
skills/objectstack-ai/references/context-packs.md, section "What the caller is not shown, and whatos validatereports", plus apatchchangeset for@objectstack/skills.relatedobject the caller cannot read at all refuses the whole call (403 PERMISSION_DENIED), so list only child objects the pack's audience can read."where/orderByfield; the list is never named andnotescarry the onenot_visiblenote. The whole-call403 PERMISSION_DENIEDstays for arelatedobject nobody is served (a system object the record tools refuse, one closed to API list reads, one in a disabled package) and for a lookup shown to the caller whose target is such a system object.The second half is nit N1 of the contract review on the pull request that added this file: the reference names what still refuses.
The file sat at zero headroom on its token-ratchet row (1454), so the growth is paid for in the same file by cutting five restatements. No ceiling moves and no ratchet row is edited.
fieldsrow: ": the record's own facts"relatedrow: ": rows of another object that hang on the record"relatedentry table says "a child object with a reference field ... that points at the root"bodyrow: "the one long text the record is about,"whereandorderByabove itDropped with the old sentence: "so list only child objects the pack's audience can read". That advice was the old behaviour's consequence. A pack now answers a narrower audience with a shorter pack.
Why
mainleaves out a related child this caller is not served (ADR-0160 D3 "Object level", as amended;packages/services/service-record-context/src/record-context-tools.ts, step 4a) and the published skill still taught the whole-call refusal. An assistant that learns context packs from the skill would tell authors to split packs per audience for a refusal that no longer happens.Tests
Documentation only: no package source changes, so no package test suite is owed. No ablation: the diff changes no tested behaviour.
Readings for a
skills/**diff, basea46efa8cagainst head782a8c45:context-packs.mdlinescontext-packs.mdbytescontext-packs.mdtokens (ceiling 1454)skills/*/SKILL.mdlines, summedThe two extra lines are re-wrapping; the byte count is unchanged.
Acceptance notes
mainand cites no behaviourmainlacks). Read againstrecord-context-tools.tsata46efa8c: step 4a refuses arelatedchild on the read guard, then on API exposure for a list read (a disabled package's refusal included), each as403 PERMISSION_DENIED; a child that passes both and that this caller is not served is added to the left-out set and sets the onenot_visiblenote. Step 4c refuses when the read guard refuses the target of a lookup that survived projection, which is a lookup the caller's served schema shows.node scripts/check-skills-token-ratchet.mjsexits 0, no ceiling raised): exit 0; the row reads 1454 of 1454.not_visiblenote. The clause is not wrong for the case it names, and the paragraph's "some material is not visible" covers both.context-packs.mdis referenced only by twoSKILL.mdpointers and its ratchet row.Verification
Two-minute check:
node scripts/check-skills-token-ratchet.mjsprintscontext-packs.md is 1454 tokens (ceiling 1454; headroom 0)and exits 0.Read first, by risk: (1) the rewritten paragraph in
context-packs.mdagainst step 4a and 4c; (2) the three key-table rows that lost their gloss; (3) the changeset body.Local gates at 782a8c4 (derived by dispatch-gates --commands)
Clause-②: no
Metadata-protocol: none
Human Minimum
packages/specholds no runtime logic. (not touched)pnpm lintpasses. (no formatter ran; the repo-wide lint is CI's run)main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed. (not touched)content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.Generated by Claude Code