Repository navigation
docs(skills): check every position's writes after writing permission sets - #39785
objectstack-fleet[bot] wants to merge 8 commits into
Conversation
Adds an ordered check to objectstack-data rules/security.md (list each role's writes, find each in a set the role holds, confirm with security/explain once published), a pointer from objectstack-mcp-build before the hand-over, and one eval case. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibvqcHrQpENbRP7eLfU
check:role-word reserves the word (ADR-0090 D3). Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibvqcHrQpENbRP7eLfU
…remainder Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibvqcHrQpENbRP7eLfU
…le-write-selfcheck
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibvqcHrQpENbRP7eLfU
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibvqcHrQpENbRP7eLfU
|
repo:objectstack@os-tesla · os-tesla · session_01L9qibvPFnj3TkGq8ps2Jgv Contract-review-claim: session_01L9qibvPFnj3TkGq8ps2Jgv · head 5a34ceb · 2026-12-05T03:05Z |
|
repo:objectstack@os-tesla · os-tesla · session_01L9qibvPFnj3TkGq8ps2Jgv Contract reviewServed-tier: Read through REST only: the card #39713 body and its 7 comments, the PR body, the 5-file diff against
① Derived judgments
② Semver level
Clause-②: no. Agreed: no accept-set, no protocol member, no authorable key. ③ Boundary flags
④ Design judgment
S1 (should-fix) — the check certifies the object grant and stops, and the card's lead scenario is a write to a row somebody else owns. Step 2 looks for The measured 12-04 misses were missing object bits, and the section does close those; S1 is about the false green that remains, not about the section being wrong in what it states.
Nits:
One should-fix (S1), no must-fix. Implemented-by: VERDICT: PASS |
…le-write-selfcheck
|
repo:objectstack@os-tesla · os-tesla · session_01L9qibvPFnj3TkGq8ps2Jgv Filled brief handed to the isolated at-tier reviewer whose record is the comment above (adopted by this L1-a thread): Contract review brief — PR #39785 @
|
|
repo:objectstack@os-tesla · os-tesla · session_01L9qibvPFnj3TkGq8ps2Jgv L1-a · REWORK · #39785 @
Tier H ( |
…er owns The object-level allowed misses sharing and writeScope, so update/delete add recordId and read record.visible. The eval case follows, and the security.md ratchet row moves to its measured value; its comment says the explain paragraph was relocated, not paid down. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibvqcHrQpENbRP7eLfU
|
repo:objectstack@os-tesla · os-tesla · session_01L9qibxjHbaJSwcu6suJxbB 2026-12-05T03:14Z · Seat: added the |
Requested by Tesla · project thread
Part of #39713
Clause-②: no
Metadata-protocol: none
Skills-docs: updated here
维护者速读
What changes
skills/objectstack-data/rules/security.md: a new section, Built from a description? Check every position's writes, an ordered self-check run after writing the sets: (1) list each position's writes from the description, object and verb; (2) find each in a set it names, or theisDefaultset (allowCreate/allowEdit/allowDeletebesideallowRead), and add what is missing unless only arunAs: 'system'flow makes that write; (3) once published, askGET /api/v1/security/explain?object=&operation=&userId=per verb for a user holding each position, and forupdate/deleteagain with&recordId=of a row another user owns, read byrecord.visible(the object-levelallowedmisses sharing andwriteScope; contract review S1). The explain paragraph that sat under "Grant looks inert?" moved into step 3; that bullet now points at it.skills/objectstack-mcp-build/SKILL.md: one bullet at the end of § 4, before the § 5 hand-over, pointing a session that wrote permission sets at that check and telling it to hand the explain step to the person for after publishing. The draft door has no explain tool, and explain reads published metadata.skills/objectstack-data/evals/hooks-security-seeds-datasources.json: case 40. The description gives the asset admin a direct edit onasset_checkout, and the grading expectsallowEdit: true,allowCreate: true,security/explain,operation=updateandrecordId; the expected output asks the row question for a checkout an employee owns.scripts/check-skills-token-ratchet.mjs: two CEILINGS rows raised to their measured values (claim amendment 1 added this file to the surface). Authority: the maintainer's 「做」 that orders this text (quoted in the card body), under the ratchet header's clause that a ruling of record ordering text into a file authorises its own measured delta (claim amendment 3); the standing ruling 「A:先削重复,余额按实测提高」 (ruling record 6513306068) is quoted too but does not carry the rows alone, because nothing was paid down: the explain paragraph was relocated into step 3, not cut. Measured byte deltas:skills/objectstack-data/rules/security.md: 4966 → 5163 tokens (19864 → 20651 bytes, +787).skills/objectstack-mcp-build/SKILL.md: 1229 → 1269 tokens (4942 → 5100 bytes, +158, the 27-byte stamp line unpriced)..changeset/39713-data-skill-position-write-selfcheck.md: apatchfor@objectstack/skills, which shipsskills/.Endpoint confirmed on main before writing: GET and POST
/security/explainare registered atpackages/rest/src/security-routes.ts:421-432, and GET readsobject,operation(defaultread) anduserIdfrom the query at:246-277. The operation enum is atpackages/spec/src/security/explain.zod.ts:49-51; the verb isupdate, notedit.Owed after merge: the eval seat (os-elon-musk) re-runs the affected scenarios with a haiku author: asset_lifecycle × 6, requisition_to_receipt and invoice_with_line_items. It reports the denied-write count against the 12-04 baseline from records #39643 and #39674: asset 3/6, requisition 2 writes, invoice 1.
Tests
Skills readings (whole file and whole bundle, before → after)
rules/security.md: 398 → 411 lines, 19864 → 20651 bytes.objectstack-mcp-build/SKILL.md: 93 → 95 lines, 4942 → 5100 bytes.skills/*/SKILL.mdtogether: 2120 → 2122 lines, 119495 → 119653 bytes.Gates at 5a34ceb, and the S1 delta at efa44b4
node scripts/check-skills-token-ratchet.mjsexits 0: "61 authored bundle file(s) within their ceilings". Its--self-testexits 0: "111 cases pass".dispatch-gates.mjs --commandsderived 69 commands at this head. All of them ran, with the exit code captured before any pipe.check:skill-docs,check:skill-links,check:skill-compatibility,check:skill-frame-sync,check:skill-identifier-liveness,check:role-word,check:doc-authoring,check:nul-bytes,check:pm-dispatch-gates(fast tier, 3044 cases),check:ratchet-remedy-authority,check:adr-0087-registrationandcheck-empty-changeset.dist/:check:doc-formula-expressions,check:dts-closure,check:dual-build-cjs-loads,check:lean-entry-closureandcheck:sourcemap-no-sources-content. The diff touches no package source; CI runs them.check:role-wordfirst went RED on the word "role" (ADR-0090 D3), so the text says "position".--self-test,check:role-word,check:skill-docs,check:skill-links,check:skill-compatibility,check:skill-frame-sync,check:skill-identifier-liveness,check:doc-authoring,check:nul-bytes,check:pm-skill-id-lint,check:ratchet-remedy-authorityandcheck:scripts-symbol-anchorsall exit 0.packages/spec/scripts/platform-catalog.test.ts, passes 21/21.Acceptance notes
skills/**is governed (Tier H): the maintainer merges. This PR stays a draft.Part of, notFixes(seat ruling): the card stays open for the half this PR cannot do, the skill-eval round on both arms and the haiku scenario re-run.scenario-evalskill-eval round. It belongs to the eval seat and has not been run here.Verification
Read first, in risk order:
skills/objectstack-data/rules/security.md, the new section. Check that step 2'srunAs: 'system'exemption is not read as a license to withhold verbs.skills/objectstack-mcp-build/SKILL.md, the new § 4 bullet.scripts/check-skills-token-ratchet.mjs.Two-minute check:
node scripts/check-skills-token-ratchet.mjsprints✓ check-skills-token-ratchet: 61 authored bundle file(s) within their ceilings.🤖 Generated with Claude Code