Repository navigation
docs(skills): the data skill teaches that a predicate update or delete of a controlled_by_parent detail writes the rows its by-id writes do - #36389
Conversation
…rolled_by_parent detail matches its by-id writes The writeRequiresMasterRead bullet in objectstack-data's rules/relationships.md and eval 17's expected_output said the ownership floor still binds a predicate update or delete. A non-delegated predicate (multi: true) update or delete now writes the rows a by-id write of each would, all matched rows or none; on-behalf-of keeps both users' floors. Claude-Session: https://claude.ai/code/session_01ADHkmRY38EZf38Yy3zthbY Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY 席位核对L1 verdict: ACCEPT at head
Contract-review-handoff: l2-review — CONTRACT_REVIEW_TIER unavailable (maintainer quota order 2026-11-15T21:53Z; no L2 seat seated, 2026-11-22T09:34Z) · head eb547b8 |
|
l2-review#4 · os-steve · session_01ADHkmT4eA4YqtxfiPyLPih Contract-review-claim: session_01ADHkmT4eA4YqtxfiPyLPih · head eb547b8 · 2026-11-22T15:15Z |
|
l2-review#4 · os-steve · session_01ADHkmT4eA4YqtxfiPyLPih Contract reviewServed-tier: PR #36389, card #36285. Net diff against merge-base ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
Tried to break it:
No must-fix, no should-fix. N1 (nit) — "all matched rows or none" is the ADR's and the card's own phrase, where "matched" means the rows inside the write's composed scope. A row the predicate matches but an app-authored N2 (nit) — the sentence sits in the Implemented-by: VERDICT: PASS |
Requested by Steve · project thread
Fixes #36285
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
The rule taught is the maintainer's ruling 「A 批量与逐条一致」 as the runtime now implements it (the predicate-write change for
controlled_by_parentdetails, already onmain).skills/objectstack-data/rules/relationships.md, thewriteRequiresMasterRead: truebullet under "Writes undercontrolled_by_parent". Before: "The ownership floor (rows you created) still binds predicate and, for both users, on-behalf-of updates and deletes." After: "A predicate (multi: true) update or delete writes the rows a by-id write of each would, all matched rows or none. The ownership floor (rows you created) still binds, for both users, on-behalf-of updates and deletes." Only the predicate half moved; the on-behalf-of half is kept word for word (ADR-0090 D10).skills/objectstack-data/evals/objects-fields-relationships.json, eval 17: the last sentence ofexpected_outputstates the same rule. Itsassertionsare unchanged: none of the fourmust_containstrings and none of the fourmust_not_containstrings involved the old wording..changeset/36285-relationships-predicate-floor.md:@objectstack/skillspatch.Read first, by risk:
skills/objectstack-data/rules/relationships.md, the one hunk at lines 86 to 92: the sentence an agent will author from.skills/objectstack-data/evals/objects-fields-relationships.json, eval 17.Skill size readings
rules/relationships.md, linesrules/relationships.md, tokens (ceiling 4203)evals/objects-fields-relationships.json, linesevals/objects-fields-relationships.json, tokens (not ratcheted)SKILL.mdsummed, linesNo ceiling is raised. Before readings at
ed33f8aed, after readings ateb547b8f3.Tests
Head
eb547b8f3. No runtime code moves, so no package test suite is owed and no ablation applies (documentation only).Eval 17 against its own assertions, and the shipped catalog
expected_outputchecked against itsassertions:must_containmissing 0 of 4,must_not_containpresent 0 of 4. The fixture parses as JSON, 25 evals. The repository has no runner that executes eval fixtures; this is the structural check available.pnpm --filter @objectstack/skills build, exit 0: "sync-catalog self-test: 9 cases pass", "114 file(s) across 14 skill(s) copied from skills/** into dist/skills and read back byte-identical". Inpackages/skills/dist/skills/objectstack-data/, the new sentence is found once in each of the two files and the old wording "still binds predicate" zero times inrules/relationships.md(positive control:writeRequiresMasterReadis found there).Derived gates, local subset
node scripts/pm/dispatch-gates.mjs --commandsderived 48 families from the 3 changed paths. All 48 were run ateb547b8f3with each exit code captured before any pipe;--rananswers "48 derived, 48 run, 0 UNRUN".check-skills-token-ratchet("60 authored bundle file(s) within their ceilings";relationships.md4188 tokens, ceiling 4203, headroom 15),check:skill-served-sections,check:skill-links,check:skill-identifier-liveness,check:skill-compatibility,check:skill-frame-sync,check:doc-authoring,check:pm-skill-id-lint,check:nul-bytes,check:published-files,check-empty-changeset,check-changeset-no-major,check-adr-0087-registration.check:doc-formula-expressions(the formula package is not built),check:dts-closure,check:dual-build-cjs-loads,check:lean-entry-closure,check:sourcemap-no-sources-content. They are left to CI.Acceptance notes
ed33f8aed:git grep -iE 'rows you created|ownership floor' -- skills/answers the two sites corrected here and no other;git grep -i predicate -- skills/objectstack-data/has no other hit about acontrolled_by_parentwrite. No generated mirror carries the sentence:rules/relationships.mdis hand-authored, andcheck:skill-served-sectionsis green.controlled_by_parentdetail, not only one that declareswriteRequiresMasterRead. The sentence stays in the bullet where the old one stood, as the card asks for a rewrite in place with no restructuring.relationships.md(another open draft's) is not touched; the file is 400 lines on this branch.relationships.mdgrows by 1 line and 26 tokens, inside its ceiling. Nothing was deleted to pay for it.skills/**, Tier H): this pull stays draft and requests no reviewer.Verification
Two-minute check:
git diff origin/main...HEAD -- skills/shows exactly two hunks, one sentence each. Thennode scripts/check-skills-token-ratchet.mjs; expect a last line starting "✓ check-skills-token-ratchet: 60 authored bundle file(s) within their ceilings".🤖 Generated with Claude Code
https://claude.ai/code/session_01ADHkmRY38EZf38Yy3zthbY