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
skills data-hooks.md: the api.transaction row says "commit on return, rollback on throw" unconditionally, while a nested transaction() inside a write door's unit joins it and its return commits nothing #34967
area:aiAI-native — agent / tool / skill metadata, and the MCP surface an agent drivesdocumentationImprovements or additions to documentationdomain:skillsDomain lane — seat card indexed by label:pm:seatfindingRecorded observation — held, not dispatchable until the findings triage round grades itpriority:p2Medium: important, M3
Filing gate: class b, an out-of-scope finding of the #34504 dev round (PR #34964, report 6959003049), read by that dev; not measured. ⛔ Not a claim. Grading and domain:* are triage's.
Suggested-grade: p2 · the same family as #34504 (a skills follow-up of #34412)
The row states when api.transaction joins an outer transaction (inside a write door's unit, or a caller's) and what its return and throw then mean, worded from hooks.mdx. One eval exercises it.
Seam: skills data-hooks.md (Capabilities, api.transaction) → runtime ScopedContext.transaction joining the write door's unit (packages/objectql).
Dedupe: api.transaction data-hooks (open hits listed in the seat's filing comment).
Dedupe (2026-11-17T19:49Z): api.transaction data-hooks had 1 open hit before this card: #34504, the parent this follows, which covers before* and not the api.transaction row. No duplicate.
First touch (R1203, 20:4xZ): p2 · domain:skills → pm:queue.
Theme: MCP (skills that teach authoring). The api.transaction row promises "commit on return, rollback on throw" unconditionally. An agent writing a hook from it will believe a nested transaction() inside a write door commits or rolls back on its own, which it does not. No direct customer effect, so p2, the same family as #34504.
Claim: PM loop round 1 · area ai-1 (lease:ai-1; the maintainer, verbatim, 2026-11-19 project chat: 「再开一个 ai 区」「暂时都只派 p1 p2 的卡」) · 2026-11-19T03:17Z
Session: session_01Utp6CazXu8zyYD5PC6J2u7
Account: os-bill
Branch: claude/issue-34967-transaction-row (one PR for #34967 and #35117, the same api.transaction row; it also carries the declaration half of #34546 — hook texts + ctx.text in the same file — as Part of #34546)
Worktree: objectstack-issue-34967
Domain: domain:skills
Seat: repo:objectstack#5
File surface: skills/objectstack-data/references/data-hooks.md, skills/objectstack-data/evals/hooks-security-seeds-datasources.json, generated outputs, scripts/check-skills-token-ratchet.mjs (row notes only under letter B), root .changeset/. Stop on breach and report.
Container & model: S, mode:subagent, model: default — skills/** governed: seat contract review and landing, effort: high
Clause-②: no (text-only served skill text)
Metadata-protocol: none
Responsibility: the api.transaction row says "commit on return, rollback on throw" with no condition, while a nested transaction() joins the outer unit; every agent writing a hook or action body from the data skill
Thread-read: 6960512229
Premise: holds — on origin/mainc809deb67: skills/objectstack-data/references/data-hooks.md:334 "runs the callback's ctx.api ops in one driver transaction (commit on return, rollback on throw)", no condition; content/docs/automation/hooks.mdx:374 "transaction() joins the outer unit, so its return is no commit"
Serial constraints cleared: open draft #34964 (seat 4, #34504, lease:o4-C) edits the same file and eval json — overlap-check before each push queues this PR behind it on a real conflict
Pre-claim lane: domain:skills (skills/objectstack-data/**, governed)
Pre-claim deps: PR #34503 merged
Prior rulings read: skills,data-hooks,transaction,says,commit,return,rollback,throw,unconditionally,nested,inside,write (+5 more) → 247 hits; ADR-0067 D3, ADR-0146 D11, ADR-0027 Decision §12, ADR-0061 D2, ADR-0067 D2, ADR-0119 D1, ADR-0119 D4, ADR-0146 D6; thread: none; repo: objectstack-ai/objectstack
{
"issue": 34967,
"status": "done",
"branch": "claude/issue-34967-transaction-row",
"pr": "https://github.com/objectstack-ai/objectstack/pull/35309",
"head": "f7fa38653",
"session": "session_01Utp6CazXu8zyYD5PC6J2u7",
"premise_still_valid": true,
"summary": "Draft PR #35309 (Fixes #34967, Fixes #35117, Part of #34546). In data-hooks.md the api.transaction row now says the callback is one transaction on one datasource. A write in it to an object on another datasource is refused before it runs (400 ERR_CROSS_DATASOURCE_TRANSACTION_WRITE). Inside a unit already open (the hook's write's, or a caller's) it joins that unit: its return is no commit and its throw no rollback, so a caught throw keeps the callback's writes. A compact 'Declared texts (texts)' block beside 'Declared refusals', plus a one-cell ctx.text pointer row, teaches hook texts and ctx.text. It points to objectstack-i18n for the translation key and does not restate the bundle shape. Two eval cases (ids 28 and 29) were inserted mid-array, clear of #34964's hunk and ids. Paid by cutting seven same-file restatements; the remainder raises the ratchet by measurement under letter B.",
"done_when": {
"34967": "met: the row states when api.transaction joins an outer unit (inside the unit the hook's write runs in, or a caller's) and that its return is then no commit and its throw no rollback, worded from hooks.mdx:373-374. Eval id 28 exercises it.",
"35117": "met: the same row states one datasource per body transaction and that a write to an object on another datasource inside it is refused, 400 ERR_CROSS_DATASOURCE_TRANSACTION_WRITE (PR #35102 a6cf988eb; ADR-0119 note 2026-11-18). Eval id 28 asserts the code.",
"34546_declaration_half": "met for this PR: data-hooks.md 'Declared texts (texts)' block (declared on the hook; organization's language; translated first, then filled; a missing translation never fails; an unreadable Localization setting rejects; only declared keys), with a pointer to objectstack-i18n for the key and no restated bundle shape. Eval id 29. The bundle-key half is PR #35302."
},
"readings": {
"A1": "holds: skills/objectstack-data/references/data-hooks.md:334 on c809deb67, 'runs the callback's ctx.api ops in **one driver transaction** (commit on return, rollback on throw)', no condition, nothing on datasources",
"A2": "holds: 0 hits for texts / ctx.text in data-hooks.md on c809deb67; '### Declared refusals' at :830, block to :879 (refusals also used at :609 and :742)",
"A3": "holds: hooks-security-seeds-datasources.json had 25 cases (ids 1-24 and 27). Open draft #34964 adds ids 25 and 26, so this PR uses 28 and 29"
},
"files_changed": [
"skills/objectstack-data/references/data-hooks.md (+32/-30)",
"skills/objectstack-data/evals/hooks-security-seeds-datasources.json (+20/-0)",
"scripts/check-skills-token-ratchet.mjs (+14/-1: data-hooks row note + ceiling)",
".changeset/34967-data-hooks-transaction-texts.md (+16; @objectstack/skills patch; Clause-②: no; Metadata-protocol: none)"
],
"ratchet_rows": "skills/objectstack-data/references/data-hooks.md: before 10011 (file 10001, 40004 bytes); after 10123 (file 10123, 40492 bytes). Text added 1747 bytes, seven restatement cuts removed 1259 bytes, so the raise is +112, the measured remainder only. Raise path: 「A:先削重复,余额按实测提高」 (ruling record 6513306068, letter B), quoted in the PR body with each cut and its other home. No other row moved.",
"line_budget": "data-hooks.md 890 -> 892 lines; all skills/**/SKILL.md 4835 -> 4835 lines; whole skills/** tree 22082 -> 22104 lines; bundle tokens 270968 -> 271673 (+122 authored, +583 eval fixtures, unpriced)",
"tests": "No package code changed, so no package tests are owed. The edited gate script's own suite: node scripts/check-skills-token-ratchet.mjs --self-test exit 0 ('104 cases pass'); no *.test file names the script. The gate itself exit 0: 'data-hooks.md is 10123 tokens (ceiling 10123; headroom 0)'. No ablation or reverse verification: text, config and a ratchet row only (os-dev rule). Readings taken at head f7fa38653.",
"gates": "Local subset at head f7fa38653: dispatch-gates --commands derived 65. 60 exited 0 on the first run, including pnpm check:pm-dispatch-gates (fast tier, 2249 cases, exit 0), check:skill-links ('269 relative link(s) ... 139 fragment(s) name a real heading', so the new anchors resolve), check:pm-skill-id-lint, check:doc-authoring, check:nul-bytes and spec check:skill-refs. lint check:doc-formula-expressions exited 3 (PREREQUISITE NOT MET, lint unbuilt), then exit 0 after 'turbo run build --filter=@objectstack/lint' under os-verify-lock (VERDICT command-exit 0). NOT MEASURED, exit 3 for unbuilt dist, left to CI Build Core: check:dts-closure, check:dual-build-cjs-loads, check:lean-entry-closure, check:sourcemap-no-sources-content. --ran: '65 derived famil(ies) accounted for — 61 run, 4 NOT-MEASURED (4 DERIVED from a recorded exit 3)', exit 0. overlap-check --branch=HEAD: VERDICT clean exit 0 (#34964, #35302, #35300 and #35294 all merge cleanly). CI on f7fa38653 when this was reported: every non-skipped check-run in_progress (Check Changeset, Check PR Size, Governed Surface Queue Guard, Lint lanes, Type Check lanes, PR-body guards). That is in_progress, not a pass.",
"dogfood_battery": "n/a: no '!' in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "2 relay strokes via scripts/pm/fleet-write/dispatch.mjs and post-stamped.mjs (each one POST /repos/objectstack-ai/objectstack/dispatches): (1) pr_create = POST /repos/objectstack-ai/objectstack/pulls (draft) + POST /repos/objectstack-ai/objectstack/issues/35309/assignees [os-bill]; read-back '9953 byte(s) sent, 9953 stored — identical'. (2) os-dev-report comment = POST /repos/objectstack-ai/objectstack/issues/34967/comments. git push is not counted. No labels sent (none named, and skip-changeset does not apply: @objectstack/skills publishes).",
"deviations": [
"PR body footer: the dispatch order asks the body to end with the 'Generated with' line and the session URL; os-dev / AGENTS.md ask for the rule plus session-URL footer block. The body carries both, the AGENTS block last, and reads back byte-identical.",
"pnpm check:pm-dispatch-gates ran twice: the first background run did not capture its exit code, and the second captured exit 0.",
"Commit trailer: model-free pair (Claude-Session + Co-authored-by: Claude) per AGENTS.md, not the harness's model-named Co-Authored-By."
],
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed (read only, no repro): the sandbox refuses a ctx.api.transaction nested in another in the same body ('nested ctx.api.transaction is not supported', packages/runtime/src/sandbox/quickjs-runner.ts __txBegin), and the row does not say so. In the PR's Acceptance notes.",
"carrier: none · noted, not filed (read only): the data-hooks.md Hook Context API input section shows a delete's ctx.input as { id }, while pattern 1 says a delete's ctx.input is empty. They may describe different doors (handler vs body). In the PR's Acceptance notes."
]
}
Close-out 2026-11-19T05:45Z: PR #35309 MERGED as e4bfa339ab; Fixes closed this card. Delivered: the data skill states the hook transaction bound (default datasource) and the declared-texts example (L2 delta PASS 7000185525, seat record 7000197900). Follow-up #35324. pm:dispatched off.
area:aiAI-native — agent / tool / skill metadata, and the MCP surface an agent drivesdocumentationImprovements or additions to documentationdomain:skillsDomain lane — seat card indexed by label:pm:seatfindingRecorded observation — held, not dispatchable until the findings triage round grades itpriority:p2Medium: important, M3
Activity
objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#4 · os-lizheng · session_012MmDsS4GoHCgYwA2uv3n3C
Dedupe (2026-11-17T19:49Z):
api.transaction data-hookshad 1 open hit before this card: #34504, the parent this follows, which coversbefore*and not theapi.transactionrow. No duplicate.objectstack-fleet commentedon Nov 17, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
First touch (R1203, 20:4xZ): p2 · domain:skills →
pm:queue.Theme: MCP (skills that teach authoring). The
api.transactionrow promises "commit on return, rollback on throw" unconditionally. An agent writing a hook from it will believe a nestedtransaction()inside a write door commits or rolls back on its own, which it does not. No direct customer effect, so p2, the same family as #34504.objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CazXu8zyYD5PC6J2u7
Claim: PM loop round 1 · area ai-1 (
lease:ai-1; the maintainer, verbatim, 2026-11-19 project chat: 「再开一个 ai 区」「暂时都只派 p1 p2 的卡」) · 2026-11-19T03:17ZSession:
session_01Utp6CazXu8zyYD5PC6J2u7Account:
os-billBranch:
claude/issue-34967-transaction-row(one PR for #34967 and #35117, the sameapi.transactionrow; it also carries the declaration half of #34546 — hooktexts+ctx.textin the same file — asPart of #34546)Worktree:
objectstack-issue-34967Domain:
domain:skillsSeat:
repo:objectstack#5File surface:
skills/objectstack-data/references/data-hooks.md,skills/objectstack-data/evals/hooks-security-seeds-datasources.json, generated outputs,scripts/check-skills-token-ratchet.mjs(row notes only under letter B), root.changeset/. Stop on breach and report.Container & model:
S,mode:subagent,model: default — skills/** governed: seat contract review and landing,effort: highClause-②: no (text-only served skill text)
Metadata-protocol: none
Responsibility: the
api.transactionrow says "commit on return, rollback on throw" with no condition, while a nestedtransaction()joins the outer unit; every agent writing a hook or action body from the data skillThread-read: 6960512229
Premise: holds — on
origin/mainc809deb67:skills/objectstack-data/references/data-hooks.md:334"runs the callback'sctx.apiops in one driver transaction (commit on return, rollback on throw)", no condition;content/docs/automation/hooks.mdx:374"transaction()joins the outer unit, so its return is no commit"Serial constraints cleared: open draft #34964 (seat 4, #34504,
lease:o4-C) edits the same file and eval json — overlap-check before each push queues this PR behind it on a real conflictPre-claim lane:
domain:skills(skills/objectstack-data/**, governed)Pre-claim deps: PR #34503 merged
Prior rulings read: skills,data-hooks,transaction,says,commit,return,rollback,throw,unconditionally,nested,inside,write (+5 more) → 247 hits; ADR-0067 D3, ADR-0146 D11, ADR-0027 Decision §12, ADR-0061 D2, ADR-0067 D2, ADR-0119 D1, ADR-0119 D4, ADR-0146 D6; thread: none; repo: objectstack-ai/objectstack
objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CazXu8zyYD5PC6J2u7
os-dev-report
{ "issue": 34967, "status": "done", "branch": "claude/issue-34967-transaction-row", "pr": "https://github.com/objectstack-ai/objectstack/pull/35309", "head": "f7fa38653", "session": "session_01Utp6CazXu8zyYD5PC6J2u7", "premise_still_valid": true, "summary": "Draft PR #35309 (Fixes #34967, Fixes #35117, Part of #34546). In data-hooks.md the api.transaction row now says the callback is one transaction on one datasource. A write in it to an object on another datasource is refused before it runs (400 ERR_CROSS_DATASOURCE_TRANSACTION_WRITE). Inside a unit already open (the hook's write's, or a caller's) it joins that unit: its return is no commit and its throw no rollback, so a caught throw keeps the callback's writes. A compact 'Declared texts (texts)' block beside 'Declared refusals', plus a one-cell ctx.text pointer row, teaches hook texts and ctx.text. It points to objectstack-i18n for the translation key and does not restate the bundle shape. Two eval cases (ids 28 and 29) were inserted mid-array, clear of #34964's hunk and ids. Paid by cutting seven same-file restatements; the remainder raises the ratchet by measurement under letter B.", "done_when": { "34967": "met: the row states when api.transaction joins an outer unit (inside the unit the hook's write runs in, or a caller's) and that its return is then no commit and its throw no rollback, worded from hooks.mdx:373-374. Eval id 28 exercises it.", "35117": "met: the same row states one datasource per body transaction and that a write to an object on another datasource inside it is refused, 400 ERR_CROSS_DATASOURCE_TRANSACTION_WRITE (PR #35102 a6cf988eb; ADR-0119 note 2026-11-18). Eval id 28 asserts the code.", "34546_declaration_half": "met for this PR: data-hooks.md 'Declared texts (texts)' block (declared on the hook; organization's language; translated first, then filled; a missing translation never fails; an unreadable Localization setting rejects; only declared keys), with a pointer to objectstack-i18n for the key and no restated bundle shape. Eval id 29. The bundle-key half is PR #35302." }, "readings": { "A1": "holds: skills/objectstack-data/references/data-hooks.md:334 on c809deb67, 'runs the callback's ctx.api ops in **one driver transaction** (commit on return, rollback on throw)', no condition, nothing on datasources", "A2": "holds: 0 hits for texts / ctx.text in data-hooks.md on c809deb67; '### Declared refusals' at :830, block to :879 (refusals also used at :609 and :742)", "A3": "holds: hooks-security-seeds-datasources.json had 25 cases (ids 1-24 and 27). Open draft #34964 adds ids 25 and 26, so this PR uses 28 and 29" }, "files_changed": [ "skills/objectstack-data/references/data-hooks.md (+32/-30)", "skills/objectstack-data/evals/hooks-security-seeds-datasources.json (+20/-0)", "scripts/check-skills-token-ratchet.mjs (+14/-1: data-hooks row note + ceiling)", ".changeset/34967-data-hooks-transaction-texts.md (+16; @objectstack/skills patch; Clause-②: no; Metadata-protocol: none)" ], "ratchet_rows": "skills/objectstack-data/references/data-hooks.md: before 10011 (file 10001, 40004 bytes); after 10123 (file 10123, 40492 bytes). Text added 1747 bytes, seven restatement cuts removed 1259 bytes, so the raise is +112, the measured remainder only. Raise path: 「A:先削重复,余额按实测提高」 (ruling record 6513306068, letter B), quoted in the PR body with each cut and its other home. No other row moved.", "line_budget": "data-hooks.md 890 -> 892 lines; all skills/**/SKILL.md 4835 -> 4835 lines; whole skills/** tree 22082 -> 22104 lines; bundle tokens 270968 -> 271673 (+122 authored, +583 eval fixtures, unpriced)", "tests": "No package code changed, so no package tests are owed. The edited gate script's own suite: node scripts/check-skills-token-ratchet.mjs --self-test exit 0 ('104 cases pass'); no *.test file names the script. The gate itself exit 0: 'data-hooks.md is 10123 tokens (ceiling 10123; headroom 0)'. No ablation or reverse verification: text, config and a ratchet row only (os-dev rule). Readings taken at head f7fa38653.", "gates": "Local subset at head f7fa38653: dispatch-gates --commands derived 65. 60 exited 0 on the first run, including pnpm check:pm-dispatch-gates (fast tier, 2249 cases, exit 0), check:skill-links ('269 relative link(s) ... 139 fragment(s) name a real heading', so the new anchors resolve), check:pm-skill-id-lint, check:doc-authoring, check:nul-bytes and spec check:skill-refs. lint check:doc-formula-expressions exited 3 (PREREQUISITE NOT MET, lint unbuilt), then exit 0 after 'turbo run build --filter=@objectstack/lint' under os-verify-lock (VERDICT command-exit 0). NOT MEASURED, exit 3 for unbuilt dist, left to CI Build Core: check:dts-closure, check:dual-build-cjs-loads, check:lean-entry-closure, check:sourcemap-no-sources-content. --ran: '65 derived famil(ies) accounted for — 61 run, 4 NOT-MEASURED (4 DERIVED from a recorded exit 3)', exit 0. overlap-check --branch=HEAD: VERDICT clean exit 0 (#34964, #35302, #35300 and #35294 all merge cleanly). CI on f7fa38653 when this was reported: every non-skipped check-run in_progress (Check Changeset, Check PR Size, Governed Surface Queue Guard, Lint lanes, Type Check lanes, PR-body guards). That is in_progress, not a pass.", "dogfood_battery": "n/a: no '!' in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "2 relay strokes via scripts/pm/fleet-write/dispatch.mjs and post-stamped.mjs (each one POST /repos/objectstack-ai/objectstack/dispatches): (1) pr_create = POST /repos/objectstack-ai/objectstack/pulls (draft) + POST /repos/objectstack-ai/objectstack/issues/35309/assignees [os-bill]; read-back '9953 byte(s) sent, 9953 stored — identical'. (2) os-dev-report comment = POST /repos/objectstack-ai/objectstack/issues/34967/comments. git push is not counted. No labels sent (none named, and skip-changeset does not apply: @objectstack/skills publishes).", "deviations": [ "PR body footer: the dispatch order asks the body to end with the 'Generated with' line and the session URL; os-dev / AGENTS.md ask for the rule plus session-URL footer block. The body carries both, the AGENTS block last, and reads back byte-identical.", "pnpm check:pm-dispatch-gates ran twice: the first background run did not capture its exit code, and the second captured exit 0.", "Commit trailer: model-free pair (Claude-Session + Co-authored-by: Claude) per AGENTS.md, not the harness's model-named Co-Authored-By." ], "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed (read only, no repro): the sandbox refuses a ctx.api.transaction nested in another in the same body ('nested ctx.api.transaction is not supported', packages/runtime/src/sandbox/quickjs-runner.ts __txBegin), and the row does not say so. In the PR's Acceptance notes.", "carrier: none · noted, not filed (read only): the data-hooks.md Hook Context API input section shows a delete's ctx.input as { id }, while pattern 1 says a delete's ctx.input is empty. They may describe different doors (handler vs body). In the PR's Acceptance notes." ] }objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ
ACCEPT → PR #35309 comment 7000197900 (head
84b73e214610ea6179b01f0411b3488806aef1dd, L2 delta PASS 7000185525). Tier H: awaiting a maintainer merge or approval (reviewers os-zhuang, hotlong). 2026-11-19T05:01Zobjectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ
Close-out 2026-11-19T05:45Z: PR #35309 MERGED as
e4bfa339ab;Fixesclosed this card. Delivered: the data skill states the hook transaction bound (default datasource) and the declared-texts example (L2 delta PASS 7000185525, seat record 7000197900). Follow-up #35324.pm:dispatchedoff.