Repository navigation
docs(skills): teach transferBehavior, the Change Owner cascade, in the data skill - #37076
Conversation
…e data skill Claude-Session: https://claude.ai/code/session_01QSeKYo86w1wqy2z2fMrryr Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr Contract review brief — PR #37076 @
|
|
repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr Contract reviewServed-tier: PR #37076, card #36713. Read: the card body and its three comments (triage 7102232941, claim 7140790532, os-dev-report 7141211804), the PR body, its four-file list, the net diff against Why the security line reads yes: the new paragraph teaches a declaration whose run-time effect is to hand child records to a new owner. In this platform the owner is the row anchor of sharing: the same bundle teaches that Check-runs on the head: 28 success, 16 skipped, none failed, none pending. The skips are the expected ones: the path-filtered UI and docs lanes (Lint UI, Type Check UI, UI Published Artifacts, Build UI Deps, Build & E2E UI, Plan Test UI shards and the Test UI matrix, Build Docs), Dogfood Verify CLI and the Dogfood Regression Gate matrix, Temporal Conformance, the two opt-in jobs (Packed-tarball smoke, 18.x upgrade harness), the Schedule gate, and Queue verdict / Borrowed queue verdict, which run in the merge group. ① Derived judgments
② Semver level
Clause-②: no That declaration is right: no accept-set or consumer contract is narrowed or widened. One wording slip in the changeset body, with no effect on the level: it counts "five comment or prose repeats" in relationships.md; the diff removes six (three comments shortened, three prose repeats). ③ Boundary flags
④ Design judgmentNo must-fix, no should-fix. Cited code, read on (a) relationships.md, the Change Owner paragraph, clause by clause
Every refusal the skill names is one the merged code makes, and the card's older list is not copied. No refusal is omitted that would lead an author to write refused metadata: the structural arms the code also refuses (a child with no field-types.md, the two rows: (b) the same-file cuts
No cut removes a rule or a hint the file does not carry elsewhere. No finding. (c) eval case 28 The expected output follows from the paragraph alone: the declaration on the child's reference field beside Assertions: both Nits (no effect on correctness or the contract; fix on this prose face or leave):
Implemented-by: VERDICT: PASS |
|
repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr 席位核对 — ACCEPT · L1 · head
|
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 维护者速读
Hand-off · 2026-11-24T19:25Z · @os-zhuang — PR #37076 (card #36713) is ready for your approval. Skills text, one eval case and a changeset only; Tier H because the contract review reads |
repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr
Fixes #36713
Clause-②: no
Metadata-protocol: none
维护者速读
84459523cd70acc86a20162638981d7e2a1a6473。What changes
skills/objectstack-data/rules/relationships.md, Delete Behaviors: one paragraph teachestransferBehavior: 'cascade'on a child'slookup/master_detail. It says what the parent's Change Owner dialog then offers (moving the child rows the parent's previous owner owns), that the default is'none', when to declare it, and the parse refusals in one sentence.skills/objectstack-data/rules/field-types.md:transferBehavioris listed in the Key Config cell of thelookupandmaster_detailrows.skills/objectstack-data/evals/objects-fields-relationships.json: one case (id 28) that asks for the declaration in place of an owner-rewriting hook, and where it is refused.@objectstack/skillspatch changeset.The refusals taught are the ones the merged code makes (read on main at 896bfc4,
packages/spec/src/data/field.zod.ts,object.zod.tsanduser-action-transfer.ts): the key on any type butlookup/master_detail(an authored'none'too);'cascade'on a reference to asys_object;'cascade'withmultiple: true;'cascade'on a field of an object that does not offer Change Owner itself (not structurally eligible, acontrolled_by_parentdetail, oruserActions.transferoff).Paid for in the same files (no ceiling row moved, the ratchet script is not edited)
required: falselines the Relationship Types table already states as the default; two code comments that repeated thename:under them; and three prose repeats in the inline-edit part.rules/relationships.mdrules/field-types.mdevals/objects-fields-relationships.jsonskills/objectstack-databundleNet lines in
skills/**: +3 (budget +10). Without the eval fixture the bundle shrinks: 3779 / 3767 lines, 175356 / 175348 bytes.Tests
No package source changes, so there is no package test to run. The gates that read these files, at 8445952:
node scripts/check-skills-token-ratchet.mjs: exit 0,60 authored bundle file(s) within their ceilings.pnpm --filter @objectstack/spec run check:skill-served-sections: exit 0, 24 served sections (the Roll-up Summaries section this file serves is untouched).node ui/scripts/check-skill-eval-tokens.mjs: exit 0,Every must_contain token is taught by its own skill bundle.pnpm check:skill-links,check:skill-identifier-liveness,check:skill-compatibility,check:skill-frame-sync,check:doc-authoring,check:nul-bytes: exit 0.Acceptance notes
evals/README.mdlists what the fixture covers and does not name the new case; it is outside this card's file surface.Verification
Read first, by risk:
skills/objectstack-data/rules/relationships.md, the new paragraph before "Roll-up Summaries": every refusal named there against the merged schema.skills/objectstack-data/rules/field-types.md, the Relational table rows.Two-minute check:
node scripts/check-skills-token-ratchet.mjsexits 0 and prints headroom 2 for both rule files.Gate readings at 8445952
node scripts/pm/dispatch-gates.mjs --ran:✓ dispatch-gates --ran: 48 derived famil(ies) accounted for — 43 run, 5 NOT-MEASURED (5 DERIVED from a recorded exit 3).dist/in this worktree; none reads a file this diff changes; CI runs them):check:doc-formula-expressions,check:dts-closure,check:dual-build-cjs-loads,check:lean-entry-closure,check:sourcemap-no-sources-content.node scripts/pm/overlap-check.mjs:VERDICT clean exit 0against origin/main, docs(skills): teach the flow step-name and related-list title translation keys #37072 and docs(skills): objectstack-data and objectstack-automation SKILL.md become routers #36158.Generated by Claude Code