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
docs + skills: state the bounds of a hook transaction (nested transaction() refused in the sandbox, unit not ambient, ledger carve-out, PostgreSQL abort) #35324
area:aiAI-native — agent / tool / skill metadata, and the MCP surface an agent drivesdomain:serverDomain lane — seat card indexed by label:pm:seatfindingRecorded observation — held, not dispatchable until the findings triage round grades itpm:queueReady for the PM dispatch looppriority:p3
Filing gate: ② out-of-scope finding from the contract review of PR #35309 (record 6999973886, out-of-scope note 1 plus nits N2 and N3), named for a card there. ⛔ Not a claim. p3: the failure is loud, so this card is not dispatched alone; it rides a same-file p2 PR.
What happens (read from code by the review, not run)
A unit a sandboxed body opened itself is never ambient. The trio does not publish into the store (packages/objectql/src/engine.ts:6681-6693; the one publisher is engine-transactions-section.ts:177), and the write door opens none under a threaded handle (engine-hooks-and-functions.ts:538-539). So a hook's ctx.api.transaction, fired by a write inside an action body's transaction, opens a second driver transaction instead of joining.
Not stated anywhere a hook author reads: a lifecycle-classed ledger (audit, telemetry, event) on another datasource is written outside the transaction, not refused (engine-execute-transactions.ts:318, transaction-errors.ts:144-147); on PostgreSQL a failed statement aborts the whole unit even when the body catches the throw (hooks.mdx:347-354); a driver with no transactions degrades silently.
Do
Add a test that pins the nested refusal (quickjs-runner.ts:806-807).
area:aiAI-native — agent / tool / skill metadata, and the MCP surface an agent drivesdomain:serverDomain lane — seat card indexed by label:pm:seatfindingRecorded observation — held, not dispatchable until the findings triage round grades itpm:queueReady for the PM dispatch looppriority:p3
Activity