You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
review follow-ups of PR #37707: automation skill never says a pending record can be deleted; lockRecord row lost its "from edits" bound; stale changeset wording #37713
Filing gate: ① (review follow-ups, one card per PR) · Source: fleet (Contract review records 7204561928 and 7204862503 on PR #37707, nits N4, N5 and the round-2 notes, adopted at ACCEPT)
What happens
PR #37707 (Fixes #37529) teaches the three data-model publish checks of #35143's Data model family in the objectstack-data and objectstack-automation skills. Its review left these items open; none can be fixed on that head without moving it.
A pending record can be deleted, and the skill never says so (round-2 note). skills/objectstack-automation/references/state-machines-and-approvals.md teaches the approval lock as refusing edits, but deleting a pending record is not refused: the delete lands, cancels the request and cascades its master_detail lines (bindRecordDeleteCancelHook). This is by design and untaught on main as well. Expected: one sentence beside best practice 2 or "Reading the lock".
The lockRecord row no longer states the lock's bound (N5). "from edits" was cut to pay back tokens; it was the exact reach of the record's own lock (a beforeUpdate hook). Expected: restore the bound when the file has headroom.
Redundant arm in best practice 2 (N4). "or a parent field group" never applies on its own to a lookup child: a group places a lookup only when it is already relatedList: 'primary'. Expected: drop or qualify the arm.
The changeset still carries round-1 wording (round-2 note). .changeset/37529-skills-data-model-publish-checks.md still says "drawn as a body table" and states the roll-up refusal unconditionally. Expected: reword before the changeset is consumed at release.
Category ①: skill text that leaves out or over-states shipped approval-lock behaviour.
Priority: p2 (security-touching text: it teaches what the approval lock refuses).
Business reason: an app author reading the skill believes a pending record is fully frozen, when it can be deleted and its approval cancelled.
Reader: the dev who next edits the automation skill's approvals reference.
Dedupe: searched open issues for "PR #37707": only #37529 itself.
Related: #37529, PR #37707, #35143.
Grade
area:ai · Bug · minor · reach: read (the head against main) · evidence: read → p2
Claim: PM loop round 5 · 2026-11-26T22:52Z
Area: s2-ai
Session: session_01L6bhgVUz5oS8fMgmncxU96
Account: os-sales
Branch: claude/issue-37713-approval-lock-reach-text
Worktree: objectstack-issue-37713
Domain: domain:skills
Seat: repo:objectstack#2
File surface: skills/objectstack-automation/references/state-machines-and-approvals.md (best practice 2, the lockRecord config row, "Reading the lock"), .changeset/37529-skills-data-model-publish-checks.md (wording only, if still unconsumed on main), one @objectstack/skills patch changeset (stop on breach; explain in the report)
Container & model: S, mode:subagent, model: CONTRACT_REVIEW_TIER (dispatch-gates --tier MANDATORY: skills/** — clause ①), effort: medium
Clause-②: no
Metadata-protocol: none
Responsibility: skills/objectstack-automation/references/state-machines-and-approvals.md (objectstack-ai/objectstack) teaches the approval lock as refusing edits but never says a pending record can be deleted (the delete lands and cancels the request), and its lockRecord row no longer states the edit bound | plugin-approvals lifecycle-hooks.ts (bindApprovalLockHook beforeUpdate, bindRecordDeleteCancelHook) already behave this way | every app author or agent who reads the approvals reference and assumes a pending record is fully frozen
Thread-read: none
Premise: holds on PR #37707's head 4695c42cc6 (contract review 7204862503 N4, N5 and its round-2 notes); re-checked on main once #37707 merges
Serial constraints cleared: NOT YET — PR #37707 (Fixes #37529, awaiting os-zhuang) edits the same file and the changeset this card rewords. The build branches from main after #37707 merges; nothing is pushed before then.
{
"issue": 37713,
"status": "done",
"branch": "claude/issue-37713-approval-lock-reach-text",
"pr": "#37726",
"head": "270a1050b694081c2177b1696304b4bfd29cb972",
"session": "session_01L6bhgVUz5oS8fMgmncxU96",
"container_model": "S, mode:subagent, model: CONTRACT_REVIEW_TIER (dispatch-gates --tier MANDATORY: skills/** — clause ①), effort: medium",
"premise_still_valid": true,
"summary": "All four card items done on a branch cut from main 80519b5 (PR #37707 merged, so the claim's serial constraint 'NOT YET' is cleared). state-machines-and-approvals.md best practice 2 now teaches that deleting a pending record lands, cancels the request and cascades its master_detail rows, and is refused whole (409 RECORD_LOCKED) where the cascade lacks one transaction or a row has a second cascading parent; the lockRecord row reads 'Lock the record from edits while pending'; 'or a parent field group' is dropped. The pending changeset 37529-skills-data-model-publish-checks.md (not listed in .changeset/pre.json, so unconsumed) is reworded, and one @objectstack/skills patch changeset is added. Draft PR only: skills/** is governed and the text is security-touching (Tier H). An L2 contract review is owed on this head.",
"tests": "Skill evals NOT MEASURED (no model runner); no eval fixture touched. No package source touched, so no package test or typecheck owed; no ablation (prose only). Wording verified by reading packages/plugins/plugin-approvals/src/lifecycle-hooks.ts (bindApprovalLockHook beforeUpdate, bindDetailRowLockHook cascade-leg yield and its two refusal shapes, bindRecordDeleteCancelHook afterDelete), approval-service.ts cancelForDeletedRecord (status 'cancelled') and packages/spec/src/data/related-list-body-table.ts isGroupPlaceableRelationship on main 80519b5.",
"gates": "At 270a105. node scripts/pm/dispatch-gates.mjs --ran: exit 0, '49 derived famil(ies) accounted for — 44 run, 5 NOT-MEASURED (5 DERIVED from a recorded exit 3)'. Exit 0 (43): node scripts/check-skills-token-ratchet.mjs and --self-test, pnpm check:skill-links, check:skill-identifier-liveness, check:skill-frame-sync, check:skill-compatibility, spec check:skill-refs, spec check:skill-served-sections, check:doc-authoring, check:nul-bytes, check:published-files, check-adr-0087-registration (--base origin/main and --self-test), check-changeset-no-major, and the remaining derived families. Exit 1, red by design: node scripts/check-empty-changeset.mjs --base origin/main ('This PR changes a changeset it did not add: .changeset/37529-skills-data-model-publish-checks.md'), the DELIBERATE CORRECTION class, declared in the PR body with both corrected sentences quoted. Exit 3, NOT MEASURED (PREREQUISITE NOT MET, workspace not built; the diff touches no package): lint 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: exit 0, 'VERDICT clean', one PR head read (#36158, merges cleanly). PR check-runs on 270a105 read once after the open: 17 in_progress or queued (Check Changeset, Check PR Size, Governed Surface Queue Guard, the Lint and Type Check lanes, PR-body guards, filter), 5 skipped, none concluded red or green yet.",
"line_budget": {
"skills/objectstack-automation/references/state-machines-and-approvals.md": {
"lines": "388 to 388",
"bytes": "23741 to 23744",
"tokens": "5936 to 5936",
"ceiling": 5936,
"headroom": "0 to 0"
},
"bundle": {
"ratcheted_authored_tokens": "199632 to 199632 of 204473",
"shipped_tree_tokens": "300242 to 300242",
"skill_md_lines_all": "4961 to 4961",
"skills_tree_lines": "23279 to 23279"
},
"ceilings_raised": 0
},
"deviations": [
"overlap-check names frozen draft PR #36158 as sharing the skill file; expected per the dispatch, it merges cleanly (exit 0). No other PR named.",
"The claim reads 'Serial constraints cleared: NOT YET'; PR #37707 merged as 80519b5 and this branch is cut from it, so the constraint is cleared.",
"The delete sentence follows the code beyond the card: besides 'lands, cancels the request, cascades master_detail rows' it names the two shapes where the delete is refused whole with 409 RECORD_LOCKED (no open transaction for the cascade; a child row with a second cascading relation). Stated in the PR body.",
"check-empty-changeset is red by design on this PR (a pending changeset another PR added is reworded); no skip-changeset label; the dispatching seat's record confirms it.",
"Five derived gates NOT MEASURED locally (exit 3, they read built output); no build closure is owed for a diff that touches no package; CI's.",
"Paid for in the same file by deleting wording, no rule removed: two 'Since ADR-…' lead-ins, the labels 'Notes:' and 'Three pieces:', 'a third branch label alongside approve / reject', '— there is no signal to wait on', 'you never resume the flow by hand, and', the best practice 4 illustration about an invoice, 'or a parent field group'. Each is listed in the PR acceptance notes.",
"The PR body carries the two HTML comments the dispatch ordered (attribution first line, signed last line); both read back intact, 9892 bytes sent and stored.",
"Commit trailers are the model-free pair per the dispatch and AGENTS.md, not the harness reminder's model-named form.",
"Card and review records read through single-card REST reads (gh api GET); PR check-runs not awaited."
],
"files_changed": [
"skills/objectstack-automation/references/state-machines-and-approvals.md",
".changeset/37529-skills-data-model-publish-checks.md",
".changeset/37713-skills-approval-lock-reach.md"
],
"relay_writes": "2 strokes: pr_create (POST /repos/objectstack-ai/objectstack/pulls, then POST /repos//issues/37726/assignees) and this os-dev-report comment (POST /repos//issues/37713/comments). git push twice (empty-branch probe, then 270a105).",
"mcp_calls": "0",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": []
}
Activity
objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#2 · os-sales · session_01L6bhgVUz5oS8fMgmncxU96
Claim: PM loop round 5 · 2026-11-26T22:52Z
Area: s2-ai
Session:
session_01L6bhgVUz5oS8fMgmncxU96Account:
os-salesBranch:
claude/issue-37713-approval-lock-reach-textWorktree:
objectstack-issue-37713Domain:
domain:skillsSeat:
repo:objectstack#2File surface:
skills/objectstack-automation/references/state-machines-and-approvals.md(best practice 2, thelockRecordconfig row, "Reading the lock"),.changeset/37529-skills-data-model-publish-checks.md(wording only, if still unconsumed onmain), one@objectstack/skillspatch changeset (stop on breach; explain in the report)Container & model:
S,mode:subagent,model: CONTRACT_REVIEW_TIER (dispatch-gates --tier MANDATORY: skills/** — clause ①),effort: mediumClause-②: no
Metadata-protocol: none
Responsibility:
skills/objectstack-automation/references/state-machines-and-approvals.md (objectstack-ai/objectstack) teaches the approval lock as refusing edits but never says a pending record can be deleted (the delete lands and cancels the request), and its lockRecord row no longer states the edit bound | plugin-approvals lifecycle-hooks.ts (bindApprovalLockHook beforeUpdate, bindRecordDeleteCancelHook) already behave this way | every app author or agent who reads the approvals reference and assumes a pending record is fully frozenThread-read: none
Premise: holds on PR #37707's head
4695c42cc6(contract review 7204862503 N4, N5 and its round-2 notes); re-checked onmainonce #37707 mergesSerial constraints cleared: NOT YET — PR #37707 (Fixes #37529, awaiting os-zhuang) edits the same file and the changeset this card rewords. The build branches from
mainafter #37707 merges; nothing is pushed before then.objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#2 · os-sales · session_01L6bhgVUz5oS8fMgmncxU96
os-dev-report
{
"issue": 37713,
"status": "done",
"branch": "claude/issue-37713-approval-lock-reach-text",
"pr": "#37726",
"head": "270a1050b694081c2177b1696304b4bfd29cb972",
"session": "session_01L6bhgVUz5oS8fMgmncxU96",
"container_model": "S, mode:subagent, model: CONTRACT_REVIEW_TIER (dispatch-gates --tier MANDATORY: skills/** — clause ①), effort: medium",
"premise_still_valid": true,
"summary": "All four card items done on a branch cut from main 80519b5 (PR #37707 merged, so the claim's serial constraint 'NOT YET' is cleared). state-machines-and-approvals.md best practice 2 now teaches that deleting a pending record lands, cancels the request and cascades its master_detail rows, and is refused whole (409 RECORD_LOCKED) where the cascade lacks one transaction or a row has a second cascading parent; the lockRecord row reads 'Lock the record from edits while pending'; 'or a parent field group' is dropped. The pending changeset 37529-skills-data-model-publish-checks.md (not listed in .changeset/pre.json, so unconsumed) is reworded, and one @objectstack/skills patch changeset is added. Draft PR only: skills/** is governed and the text is security-touching (Tier H). An L2 contract review is owed on this head.",
"tests": "Skill evals NOT MEASURED (no model runner); no eval fixture touched. No package source touched, so no package test or typecheck owed; no ablation (prose only). Wording verified by reading packages/plugins/plugin-approvals/src/lifecycle-hooks.ts (bindApprovalLockHook beforeUpdate, bindDetailRowLockHook cascade-leg yield and its two refusal shapes, bindRecordDeleteCancelHook afterDelete), approval-service.ts cancelForDeletedRecord (status 'cancelled') and packages/spec/src/data/related-list-body-table.ts isGroupPlaceableRelationship on main 80519b5.",
"gates": "At 270a105. node scripts/pm/dispatch-gates.mjs --ran: exit 0, '49 derived famil(ies) accounted for — 44 run, 5 NOT-MEASURED (5 DERIVED from a recorded exit 3)'. Exit 0 (43): node scripts/check-skills-token-ratchet.mjs and --self-test, pnpm check:skill-links, check:skill-identifier-liveness, check:skill-frame-sync, check:skill-compatibility, spec check:skill-refs, spec check:skill-served-sections, check:doc-authoring, check:nul-bytes, check:published-files, check-adr-0087-registration (--base origin/main and --self-test), check-changeset-no-major, and the remaining derived families. Exit 1, red by design: node scripts/check-empty-changeset.mjs --base origin/main ('This PR changes a changeset it did not add: .changeset/37529-skills-data-model-publish-checks.md'), the DELIBERATE CORRECTION class, declared in the PR body with both corrected sentences quoted. Exit 3, NOT MEASURED (PREREQUISITE NOT MET, workspace not built; the diff touches no package): lint 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: exit 0, 'VERDICT clean', one PR head read (#36158, merges cleanly). PR check-runs on 270a105 read once after the open: 17 in_progress or queued (Check Changeset, Check PR Size, Governed Surface Queue Guard, the Lint and Type Check lanes, PR-body guards, filter), 5 skipped, none concluded red or green yet.",
"line_budget": {
"skills/objectstack-automation/references/state-machines-and-approvals.md": {
"lines": "388 to 388",
"bytes": "23741 to 23744",
"tokens": "5936 to 5936",
"ceiling": 5936,
"headroom": "0 to 0"
},
"bundle": {
"ratcheted_authored_tokens": "199632 to 199632 of 204473",
"shipped_tree_tokens": "300242 to 300242",
"skill_md_lines_all": "4961 to 4961",
"skills_tree_lines": "23279 to 23279"
},
"ceilings_raised": 0
},
"deviations": [
"overlap-check names frozen draft PR #36158 as sharing the skill file; expected per the dispatch, it merges cleanly (exit 0). No other PR named.",
"The claim reads 'Serial constraints cleared: NOT YET'; PR #37707 merged as 80519b5 and this branch is cut from it, so the constraint is cleared.",
"The delete sentence follows the code beyond the card: besides 'lands, cancels the request, cascades master_detail rows' it names the two shapes where the delete is refused whole with 409 RECORD_LOCKED (no open transaction for the cascade; a child row with a second cascading relation). Stated in the PR body.",
"check-empty-changeset is red by design on this PR (a pending changeset another PR added is reworded); no skip-changeset label; the dispatching seat's record confirms it.",
"Five derived gates NOT MEASURED locally (exit 3, they read built output); no build closure is owed for a diff that touches no package; CI's.",
"Paid for in the same file by deleting wording, no rule removed: two 'Since ADR-…' lead-ins, the labels 'Notes:' and 'Three pieces:', 'a third branch label alongside approve / reject', '— there is no signal to wait on', 'you never resume the flow by hand, and', the best practice 4 illustration about an invoice, 'or a parent field group'. Each is listed in the PR acceptance notes.",
"The PR body carries the two HTML comments the dispatch ordered (attribution first line, signed last line); both read back intact, 9892 bytes sent and stored.",
"Commit trailers are the model-free pair per the dispatch and AGENTS.md, not the harness reminder's model-named form.",
"Card and review records read through single-card REST reads (gh api GET); PR check-runs not awaited."
],
"files_changed": [
"skills/objectstack-automation/references/state-machines-and-approvals.md",
".changeset/37529-skills-data-model-publish-checks.md",
".changeset/37713-skills-approval-lock-reach.md"
],
"relay_writes": "2 strokes: pr_create (POST /repos/objectstack-ai/objectstack/pulls, then POST /repos//issues/37726/assignees) and this os-dev-report comment (POST /repos//issues/37713/comments). git push twice (empty-branch probe, then 270a105).",
"mcp_calls": "0",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": []
}