Repository navigation
docs(skills): the automation skill says a record under approval can still be deleted - #37726
Conversation
…till be deleted Best practice 2 of the approvals reference now says a delete of a pending record lands, cancels the request and cascades its master_detail rows, and where it is refused instead. The lockRecord config row states its edit bound again, and the redundant field-group arm is dropped. The pending changeset of the earlier data-model wording is reworded to match what shipped. Every added token is paid for by deletion in the same file. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgVUz5oS8fMgmncxU96
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Contract reviewServed-tier: FIRST ROUND on PR #37726 for card #37713. Read: the card and its two comments (the claim and the dev report), the PR body, its three-file list, the net diff against Findings, judged in ④:
① Derived judgments
② Semver levelOne new changeset, The new changeset repeats the skill sentence S1 is about ("a child row has a second cascading parent"). The fix for S1 carries over to it. DELIBERATE CORRECTION of a pending release note. The note is
This confirms the correction for these two sentences on this head. The fix for S1 moves the head, so the delta record restates the confirmation there; if the note's bytes do not change, by reference to this one. ③ Boundary flags
④ Design judgment
Best practice 2, the delete sentence: "Deleting the pending record still lands, cancelling the request and cascading those rows; it is refused whole (
The Best practice 2, "or a parent field group" removed: holds, no rule lost. The cuts that pay for the new text, each against
No must-fix. S1 is a should-fix and earns a delta review of its fix. N1 and N2 are nits. Implemented-by: VERDICT: PASS |
…lared cascades Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgVUz5oS8fMgmncxU96
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Contract reviewServed-tier: DELTA review from
① Derived judgments
② Semver level
DELIBERATE CORRECTION of a pending release note, restated for this head. The note is
The correction is confirmed on this head. ③ Boundary flags
④ Design judgment
Best practice 2: "Deleting the pending record still lands, cancelling the request and cascading its Everything before "or" is the text record 7207215155 judged, less "whole" and with the rows named; those judgements stand. The second case, against
The Node Config No must-fix. No should-fix. No new nit. Implemented-by: VERDICT: PASS |
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA 席位核对 — ACCEPT · head 831311e · card #37713 · area s2-ai · 2026-11-27T01:42ZL1 checklist
Tier: H. Landing: hand-off to the approver by the next stroke; ⛔ the seat does not merge. |
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Tier H hand-off · 2026-11-27T01:43Z · head 831311e · approver 维护者速读
|
Requested by Sales · project thread
Fixes #37713
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
All wording is taken from the code on
mainat80519b5991(packages/plugins/plugin-approvals/src/lifecycle-hooks.ts), not from the card's paraphrase. PR #37707 has merged, so the serial constraint the claim recorded as "NOT YET" is cleared: this branch is cut from the merge commit.skills/objectstack-automation/references/state-machines-and-approvals.md:master_detailrows; it is refused (409 RECORD_LOCKED) where the cascade lacks one transaction or the child object declares a second cascading relation." The second case is decided on the child object's declared relations (soleCascadeEdgeOfcounts everymaster_detailnot declaredrestrictplus any field declaringdeleteBehavior: 'cascade'), not on what a row holds (contract review 7207215155, S1; "whole" dropped per N1, the rows named per N2).lockRecordconfig row states its bound again: "Lock the record from edits while pending."lookupchild only when the field already declaresrelatedList: 'primary'(isGroupPlaceableRelationship), so the arm never applied on its own..changeset/37529-skills-data-model-publish-checks.md(still pending onmain:.changeset/pre.jsondoes not list it) is reworded to what PR #37707 shipped. See the DELIBERATE CORRECTION note below..changeset/37713-skills-approval-lock-reach.md: one@objectstack/skillspatch changeset for this PR.Where the code differs from the card
The card says the delete "lands, cancels the request and cascades its
master_detaillines". That is the main path (bindRecordDeleteCancelHook, anafterDeletehook, sets the request tocancelled; the detail-row lock yields to the cascade leg). The code also refuses that delete whole,409 RECORD_LOCKED, in two shapes, and the sentence says so:supports.transactionsUnsupported, a cascade split across datasources, a handle whose unit already ended);master_detailmaster, or alookupthat declaresdeleteBehavior: 'cascade'), so the lock cannot tell whose cascade the leg is.Both are pinned by
detail-row-lock.integration.test.tsonmain.DELIBERATE CORRECTION of a pending release note
This PR rewrites a changeset it did not add, on purpose.
check-empty-changesetis red by design for that class. The note is.changeset/37529-skills-data-model-publish-checks.md; two sentences change and nothing else in the file does:objectstack-datarules/relationships.md: a roll-up is refused at publish (rollup/child-without-parent-reference) when it omitsrelationshipFieldand the child object has nolookupormaster_detailfield referencing the parent, or when itsrelationshipFieldnames no field of the child." The old sentence stated the first arm unconditionally.objectstack-automationreferences/state-machines-and-approvals.md:lockRecordlocks the record and itsmaster_detailchild rows only; alookupchild shown in the record's details (relatedList: 'primary') stays editable while pending, reported as the warningapproval-detail-editable-while-pending." The old sentence said "drawn as a body table", a term the published skills never define.Token ratchet: no ceiling moved
The file sat at headroom 0; at
831311eeb2it is at headroom 9. Every added byte is paid for by deletion in the same file (node scripts/check-skills-token-ratchet.mjs, exit 0 at831311eeb2).skills/objectstack-automation/references/state-machines-and-approvals.mdWhole bundle: ratcheted (authored) 199632 tokens before and after, against a 204473 total ceiling; shipped tree 300242 tokens before and after; all
SKILL.mdfiles together 4961 lines before and after; wholeskills/tree 23279 lines before and after.Tests
831311eeb2(delta: the delete sentence, its changeset line, two glosses in the Node Config table):node scripts/check-skills-token-ratchet.mjsexit 0;pnpm check:skill-linksexit 0;pnpm check:skill-identifier-livenessexit 0;pnpm check:skill-frame-syncexit 0.Acceptance notes
lockRecordconfig row teach how far the approval lock reaches, the boundary of a write-refusal control.skills/**is a governed surface and this text is security-touching, so the PR is Tier H: it stays a draft and waits for the maintainer.approve/reject, targeting" becomes "targets" (the paragraph above already names thereviseout-edge besidereject); "The node takes no config — there is no signal to wait on." keeps only its first half.behaviorrow (delta, to pay for the S1 wording): the glosses "— M-of-N collective sign-off" afterquorumand "— one-from-each-group sign-off" afterper_groupare gone; each mode's rule (minApprovalsof N; eachgroupreachesminApprovals) is unchanged.mainstill describe this head.node scripts/pm/overlap-check.mjsreports it merges cleanly against this branch (exit 0); it is frozen and was cleared on the earlier claim. No other PR is named.Verification
Derived gates at 270a105: 49 derived, 44 run, 5 NOT MEASURED
node scripts/pm/dispatch-gates.mjs --ran: "49 derived famil(ies) accounted for — 44 run, 5 NOT-MEASURED (5 DERIVED from a recorded exit 3)", exit 0.node scripts/check-empty-changeset.mjs --base origin/main. It names.changeset/37529-skills-data-model-publish-checks.mdas "present on the merge base and CHANGED by this PR"; that is the DELIBERATE CORRECTION declared above. Its first line is green: "No empty-frontmatter changeset introduced by this diff (2 declaring changeset(s) added)."pnpm --filter @objectstack/lint run check:doc-formula-expressions,pnpm check:dts-closure,pnpm check:dual-build-cjs-loads,pnpm check:lean-entry-closure,pnpm check:sourcemap-no-sources-content.node scripts/check-skills-token-ratchet.mjsand its--self-test,pnpm check:skill-links,pnpm check:skill-identifier-liveness,pnpm check:skill-compatibility,pnpm check:skill-frame-sync,pnpm --filter @objectstack/spec run check:skill-refs,pnpm --filter @objectstack/spec run check:skill-served-sections,pnpm check:doc-authoring,pnpm check:nul-bytes,pnpm check:published-files,node scripts/check-adr-0087-registration.mjs --base origin/main,node scripts/check-changeset-no-major.mjs --base origin/main.Read first, by risk:
skills/objectstack-automation/references/state-machines-and-approvals.md, best practice 2 (the hunk under "Approval Best Practices"): the delete sentence and its two refusal shapes are the security-touching text.lockRecordrow of the Node Config table: "from edits" is back..changeset/37529-skills-data-model-publish-checks.md: two reworded sentences of a pending release note.Two-minute check: run
node scripts/check-skills-token-ratchet.mjsand read the line forstate-machines-and-approvals.md; expect "is 5927 tokens (ceiling 5936; headroom 9)" and exit 0.🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgVUz5oS8fMgmncxU96