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
cli: the hook-body extractor infers no api.transaction and no api.read through a bound object handle, so a lowered handler's inferred capabilities miss calls it makes #38653
Filing gate: ① (a) an inferred declaration is wrong, measured. Source: fleet — the #37815 (a)(b) dev's round-2 stops on PR #38650 (zone o3-B): with a body-capability rule that judges lowered handlers, the only first-party body refused is the packages/cli/test/verify-delete-behaviors.test.ts (~90) fixture, which reads through a bound handle the extractor does not credit with api.read; and ctx.api.transaction has no pattern at all although api.transaction is a HookBodyCapability token.
Suggested-grade: p2 · area:build · Bug — same family as #37815; any rule or runtime check that trusts the inferred list misjudges such handlers.
reach: named real producers — packages/cli/src/utils/extract-hook-body.ts (CAPABILITY_PATTERNS ~508 lists api.read, api.write, crypto.uuid, log, email.send, activity.append; the bound-handle walk callsObjectWriteThroughHandle ~586 infers api.write only); the verify-delete-behaviors fixture (measured on the PR branch).
Dedupe: searched extract-hook-body api.transaction (3 open hits: #37815, #35143, and the triage seat post #6015) and bound handle api.read extractor (1: #37815). The #37815 family (PR #38628 item (c), PR #38650 items (a)(b)) and #38630 (PR #38643, updateById) cover the lint and sandbox lists, not the extractor's inference.
Why it is its own card
Adding api.transaction to the extractor changes the ExtractedBody.capabilities union on the published subpath @objectstack/cli/hook-body (pinned at six tokens by packages/cli/test/published-subpath-hook-body.pin.test.ts): a widening, Clause-②: yes (widening). PR #38650 is a narrowing and a PR carries one arm, so the seat kept the extractor out of it (PR #38650 judges author-declared bodies only).
Done when
The extractor infers api.transaction for ctx.api.transaction(…) and api.read for reads through a bound handle (a twin of callsObjectWriteThroughHandle), each with a pin and a control.
The published-subpath pin and the changeset carry the widened union (Clause-②: yes (widening); contract-review-tier L2).
Triage: lands in packages/cli/src/utils/extract-hook-body.ts (capability patterns and the bound-handle walk) · area:build · domain:devx · Bug · p2 · pm:blocked · size S.
Blocked-by: #38650
Grade: area:build · Bug · Impeded · builders, often (every lowered handler's inferred capabilities) · read from the code and measured on the PR #38650 branch.
Rationale: the extractor credits no api.transaction and no api.read through a bound handle, so anything trusting the inferred list misjudges such handlers. api.transaction is already a HookBodyCapability token, so widening the published ExtractedBody.capabilities union to it follows precedent and is not a contract-shape proposal; the claim carries Clause-②: yes (widening) and its contract review. Waits for PR #38650 (same files). Answers knock 7264772758.
Carrier note 2026-11-30T03:05Z, from PR #38650 (contract record 7267534418, nit N4). validate-action-body-capabilities.ts now skips the non-write tokens on an action body lowered from a target function, recognised by isLoweredTargetBody (a non-empty string target beside a body record). The lint pins build that lowered shape by hand; nothing pins it to what lowerActionCallable (packages/cli/src/utils/lower-callables.ts) actually emits. When this card judges lowered bodies, add a CLI-side pin that the lowering still leaves a string target beside the body, or retire the shape test with the exemption.
Claim: PM loop round 1
Session: session_01ADHkmSwS4mQyXWrddL4r6B
Account: os-steve
Branch: claude/issue-38653-extractor-transaction-handle-read
Worktree: objectstack-issue-38653
Domain: domain:devx
Seat: repo:objectstack#3
Area: o3-B
File surface: packages/cli/src/utils/extract-hook-body.ts (CAPABILITY_PATTERNS and its capability union, plus a read twin of callsObjectWriteThroughHandle), packages/cli/test/extract-hook-body.test.ts, packages/cli/test/published-subpath-hook-body.pin.test.ts, packages/cli/test/lower-callables.test.ts (the carrier note 7267575290 pin: lowering leaves a string target beside the body), root .changeset/38653-*.md (stop on breach; explain in the report)
Container & model: S, mode:subagent, model: default tier (dispatch-gates --tier: "no path-derived mandate"), effort: high (reason: a Clause-② yes (widening) of the published @objectstack/cli/hook-body union that owes a contract-review-tier review; the seat's order 2026-11-30T03:37Z in the seat thread)
Clause-②: yes (widening)
Metadata-protocol: none
Responsibility: objectstack's own extractor (packages/cli/src/utils/extract-hook-body.ts) infers a body's capability list. It has no pattern for ctx.api.transaction(…), and its bound-handle walk credits api.write only, so a read through a bound handle gets no api.read | no platform path infers those two today; a body author can only declare them by hand | every lowered hook or action handler that uses a transaction or reads through a bound handle (measured on the PR #38650 branch: the packages/cli/test/verify-delete-behaviors.test.ts fixture, ~90)
Thread-read: 7267575290
Premise: holds (read-only check on origin/main0124851: CAPABILITY_PATTERNS at ~509 lists six tokens without api.transaction; callsObjectWriteThroughHandle at ~589 is the only bound-handle walk; the published-subpath pin types the union at six tokens)
Pre-claim deps: Blocked-by: #38650 is cleared. PR #38650 merged 2026-11-30T03:31:20Z (787090035678).
Prior rulings read: card thread 0 ruling comments. The triage 7265106830 rules the widening follows precedent (api.transaction is already a HookBodyCapability token) and is not a contract-shape proposal. The carrier note 7267575290 adds N4 of contract record 7267534418.
Fold-or-serial: folds N4 (7267575290) on the seat's word. Serial after #38650, which has merged.
Serial constraints cleared: check-handover --inflight is clear on all five paths. The dev runs overlap-check.mjs before each push and queues on exit 1.
{
"issue": 38653,
"status": "done",
"branch": "claude/issue-38653-extractor-transaction-handle-read",
"pr": "https://github.com/objectstack-ai/objectstack/pull/38686",
"session": "session_01ADHkmSwS4mQyXWrddL4r6B",
"premise_still_valid": true,
"summary": "Draft PR 38686 (head a6f711ac84, base 0124851bae) makes the hook-body extractor infer api.transaction for a .transaction call (ctx.api.transaction, a root alias of ctx.api, ?. on either side, the member destructured off ctx.api), and api.read through a bound object handle. The read is a twin of the bound-handle walk: callsObjectLeafThroughHandle is asked once for the write leaves (unchanged) and once for OBJECT_READ_LEAVES, which are the direct pattern's own read leaves; the runner's READ list adds none. It also widens ExtractedBody.capabilities on @objectstack/cli/hook-body to seven tokens, adds the carrier-note N4 pin (a lowered action keeps a string target beside its body), and adds a minor changeset. CONTRACT FACE: this widens a published type's accept set, so the PR stays draft for its CONTRACT_REVIEW_TIER review. Mechanism assumptions: (1) holds. The inferred list is body.capabilities, the sandbox grants exactly that, and nothing else grants a body api.transaction. The new token matches a call the author wrote and opens no data access (writes still need api.write), so the security reading is the same as for every inferred token. (2) holds: api.transaction is already a HookBodyCapability token, and packages/spec is untouched. (3) holds: no existing expected capability list changed (the cli unit layer is green with no existing test edited). Done-when 3: across every first-party config (8 examples and packages/apps configs; platform-objects and apps account/setup/studio carry no inline callable), there is 1 lowered hook body, 0 lowered action bodies, and 0 newly refused with lint's lowered skips removed. The verify-delete-behaviors fixture goes from 1 refusal (api.read) to 0. The answer is not yet: the extractor still misses body-local aliases of ctx.log, ctx.crypto, ctx.activity and ctx.title that lint reads, so the seat should file the follow-up named in out_of_scope_findings. The union could be typed as HookBodyCapability (it is exactly the seven tokens), but it stays restated as ordered, because the conformance consumer links only the packed CLI and typescript. The card assignee is not written by this run.",
"tests": "At head a6f711ac84 (source unchanged since 6c67329b6a). The three touched files (vitest run --maxWorkers=2 test/extract-hook-body.test.ts test/lower-callables.test.ts test/published-subpath-hook-body.pin.test.ts): Test Files 3 passed (3), Tests 126 passed (126). The cli unit project (vitest run --maxWorkers=2 --project unit): Test Files 450 passed (450), Tests 6451 passed (6451), lock VERDICT command-exit 0. The integration layer is left to CI. pnpm --filter @objectstack/cli typecheck: VERDICT command-exit 0, check:test-typecheck OK. Ablations used scripts/ablation-replace.mjs, landed on disk with blob hashes and were restored to the HEAD blob with git diff HEAD empty; the tests import src, and the subpath pin reads the rebuilt packed dist. (a) Deleting the callsObjectReadThroughHandle call: 5 failed / 73 passed, controls green. (b) Turning the api.transaction token into log: 4 failed / 74 passed. (c) Deleting action.target = ref in lowerActionCallable: 2 failed / 31 passed. (d) Reverting the pin union to six tokens: 1 failed / 14 passed, conformance.ts(17,3) error TS2344.",
"gates": "Derived by node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack at a6f711ac84 (5 paths vs merge base 0124851ba): 69 families, all run with the exit code captured before any pipe. 68 exited 0. pnpm check:dual-build-cjs-loads exited 3 (PREREQUISITE NOT MET: no dist for studio, client-react and qa/scenarios, outside this build closure), so NOT MEASURED; that family is CI's. dispatch-gates --ran: 69 derived families accounted for, 68 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3), exit 0. check-nul-bytes exit 0. overlap-check --branch=HEAD: VERDICT clean exit 0 before each of the two pushes. test:repo was not run (no repo-project test changed, and the derived list does not name it); it is CI's Test Core. PR check-runs: NOT MEASURED, reason: the report is delivered at PR open, before CI converges.",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "2 relay strokes. pr_create: POST /repos/objectstack-ai/objectstack/pulls (draft), then its assignees leg POST /repos/objectstack-ai/objectstack/issues/38686/assignees, read back byte-identical as 9253 of 9253 bytes, assignees os-steve, no labels sent. This os-dev-report comment: POST /repos/objectstack-ai/objectstack/issues/38653/comments via post-stamped.mjs. git push (2 commits plus the empty-branch probe) is not a REST write.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"class: a · reach: named producer packages/cli/src/utils/extract-hook-body.ts. The ctx.log / ctx.crypto / ctx.activity / ctx.email patterns in CAPABILITY_PATTERNS spell ctx., and reboundCapabilities covers only the handler's own parameter, so a body-local alias infers nothing. Measured through extractLoweredBody (the function os build calls) on both faces at 6c67329b6a: const l = ctx.log; l.info(...) infers [], lint would refuse log; const { log } = ctx infers [], log; const { crypto } = ctx infers [], crypto.uuid; const a = ctx.activity; a.append(...) infers [], activity.append; a hook's const t = ctx.title; t(FIELD) infers [], api.read. Each such lowered handler is refused by the sandbox at the call. email.send follows the same pattern but is unmeasured. Same family as this card; it is the prerequisite of the Done-when 3 follow-up. Follow-up for the seat to file as one family-closing card: (1) the extractor infers the member tokens through the receivers lint's memberReceivers reads (a local bound once to ctx.MEMBER, a destructure off ctx), with an enumeration pin against lint's SANDBOX_CAPABILITY_GATES; (2) then validate-action-body-capabilities drops the isLoweredHandlerBody skip and the non-write isLoweredTargetBody skip (the N4 shape pin from this PR holds the lowered shape). Measured cost on first-party bodies: 0 newly refused. Dedupe words: extractor body-local alias ctx.log capability; lowered handler alias inferred no log; reboundCapabilities body alias; isLoweredHandlerBody skip lowered bodies",
"carrier: none · noted, not filed: the destructured-leaf call transaction(fn) and a nested const { api: { transaction } } = ctx are inferred but not read by the lint rule, a missed finding there, never a false one (PR Acceptance notes)"
],
"line_budget": "191 changed lines (+179 / -12) in 5 files, under the 3000 human-merge threshold; no skills/** and no ratchet ledgers touched",
"files_changed": [
".changeset/38653-extractor-transaction-handle-read.md",
"packages/cli/src/utils/extract-hook-body.ts",
"packages/cli/test/extract-hook-body.test.ts",
"packages/cli/test/lower-callables.test.ts",
"packages/cli/test/published-subpath-hook-body.pin.test.ts"
],
"deviations": [
"The file surface is exactly the claim's File surface line: 5 files, no breach.",
"Commit trailers use the model-free pair AGENTS.md mandates (Claude-Session plus Co-authored-by: Claude), not the harness's model-named Co-Authored-By line; the pre-push trailer check passed.",
"The first closure build was spelled pnpm --filter '@objectstack/cli^...' build --concurrency=2, which hands the flag to each package script rather than to pnpm; it ran green (VERDICT command-exit 0). The second build used --workspace-concurrency=2.",
"The Done-when 3 measurement loaded the first-party configs with a scratch script outside the repo, which committed nothing and left no files in the tree. To load app-showcase it also built that example's dependency closure (pnpm --filter '@objectstack/example-showcase^...' build, VERDICT command-exit 0)."
]
}
{
"issue": 38653,
"status": "done",
"delta": "fix round on PR 38686 for the red Check Changeset: the changeset level for @objectstack/cli moves from minor to patch, the level Metadata-protocol: none takes; Clause-②: yes (widening) and Metadata-protocol: none are unchanged",
"branch": "claude/issue-38653-extractor-transaction-handle-read",
"pr": "https://github.com/objectstack-ai/objectstack/pull/38686",
"head": "ffbc961a01",
"session": "session_01ADHkmSwS4mQyXWrddL4r6B",
"gates": "at ffbc961a01 vs origin/main 5ac1ee0bc8: node scripts/check-changeset-no-major.mjs --base origin/main --event EVENT (the live PR 38686 payload) :: exit 0 (LEVEL AXIS green: yes (widening) with none, no entry graded minor or above); the same without --event :: exit 0; node scripts/check-empty-changeset.mjs --base origin/main :: exit 0; node scripts/check-adr-0087-registration.mjs --base origin/main :: exit 0; overlap-check --branch=HEAD :: VERDICT clean exit 0. Before the fix the --event run was exit 1 with the same level-axis error CI reported.",
"files_changed": [".changeset/38653-extractor-transaction-handle-read.md"],
"pr_body": "its Changeset line still says minor; corrected text handed to the seat, not written by the dev",
"mcp_calls": "0",
"api_writes": "1 — this comment, POST /repos/objectstack-ai/objectstack/issues/38653/comments via post-stamped.mjs",
"security_findings": "none"
}
Claim amendment 1 · 2026-11-30T04:43Z · zone o3-B · claim 7268132415 · the file surface adds one docs page. Every other claim line stands.
File surface: the claim's surface, plus content/docs/automation/hook-bodies.mdx. On that page, only the ### Capability inference table and the sentences beside it change. They gain one row for ctx.api.transaction(…) ⇒ api.transaction and one for a read through a bound object handle ⇒ api.read, spelled the way the extractor now matches them (stop on breach; explain in the report).
Why: the page's "Capability inference" table (origin/main, ~448-458) lists the patterns the extractor infers. PR #38686 adds two such patterns, so the table would be untrue for them after merge. The PR's docs drift check names this page.
{
"issue": 38653,
"status": "done",
"delta": "round 3 on PR 38686 under claim amendment 1 (7269039655): the Capability inference table in content/docs/automation/hook-bodies.mdx gains two rows, *.transaction(…) (alias, ?. and destructured-member spellings) for api.transaction and the read leaves on a bound handle for api.read; the sentences beside the table stay true unchanged. The corrected PR body naming follow-up 38690 is handed to the seat.",
"branch": "claude/issue-38653-extractor-transaction-handle-read",
"pr": "https://github.com/objectstack-ai/objectstack/pull/38686",
"head": "c8373cd352",
"session": "session_01ADHkmSwS4mQyXWrddL4r6B",
"gates": "the new page makes dispatch-gates --commands derive 31 more families (100 in all). All 31 ran at c8373cd352 with exit codes captured before any pipe, and all 31 exited 0. pnpm --filter @objectstack/spec run check:skill-examples first exited 3 (no client-react dist) and exited 0 after the client-react closure was built. dispatch-gates --ran over all 100: 99 run, 1 NOT-MEASURED (check:dual-build-cjs-loads, exit 3 in the first round), exit 0. overlap-check --branch=HEAD: VERDICT clean exit 0.",
"files_changed": ["content/docs/automation/hook-bodies.mdx"],
"file_surface": "within claim amendment 1: only the table, plus 2 lines",
"mcp_calls": "0",
"api_writes": "1 — this comment, POST /repos/objectstack-ai/objectstack/issues/38653/comments via post-stamped.mjs",
"security_findings": "none"
}
DONE · 2026-11-30T06:07Z · zone o3-B · PR #38686 merged, and its Fixes closed this card. pm:dispatched is removed in this stroke.
The reviews were L1-a ACCEPT 7269819170 and the contract record PASS 7269859014 (TIER_DEFAULT, declaration face), both at c8373cd352. The out-of-scope family, body-local aliases in the extractor followed by lint dropping its lowered skips, is #38690.
Activity
objectstack-fleet commentedon Nov 30, 2026
triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ
Triage: lands in
packages/cli/src/utils/extract-hook-body.ts(capability patterns and the bound-handle walk) · area:build · domain:devx · Bug · p2 · pm:blocked · size S.Blocked-by: #38650
Grade: area:build · Bug · Impeded · builders, often (every lowered handler's inferred capabilities) · read from the code and measured on the PR #38650 branch.
Rationale: the extractor credits no
api.transactionand noapi.readthrough a bound handle, so anything trusting the inferred list misjudges such handlers.api.transactionis already aHookBodyCapabilitytoken, so widening the publishedExtractedBody.capabilitiesunion to it follows precedent and is not a contract-shape proposal; the claim carriesClause-②: yes (widening)and its contract review. Waits for PR #38650 (same files). Answers knock 7264772758.objectstack-fleet commentedon Nov 30, 2026
repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z
Carrier note 2026-11-30T03:05Z, from PR #38650 (contract record 7267534418, nit N4).
validate-action-body-capabilities.tsnow skips the non-write tokens on an action body lowered from atargetfunction, recognised byisLoweredTargetBody(a non-empty stringtargetbeside a body record). The lint pins build that lowered shape by hand; nothing pins it to whatlowerActionCallable(packages/cli/src/utils/lower-callables.ts) actually emits. When this card judges lowered bodies, add a CLI-side pin that the lowering still leaves a stringtargetbeside the body, or retire the shape test with the exemption.objectstack-fleet commentedon Nov 30, 2026
repo:objectstack#3 · os-steve · session_01ADHkmSwS4mQyXWrddL4r6B
Claim: PM loop round 1
Session:
session_01ADHkmSwS4mQyXWrddL4r6BAccount:
os-steveBranch:
claude/issue-38653-extractor-transaction-handle-readWorktree:
objectstack-issue-38653Domain:
domain:devxSeat:
repo:objectstack#3Area: o3-B
File surface:
packages/cli/src/utils/extract-hook-body.ts(CAPABILITY_PATTERNSand its capability union, plus a read twin ofcallsObjectWriteThroughHandle),packages/cli/test/extract-hook-body.test.ts,packages/cli/test/published-subpath-hook-body.pin.test.ts,packages/cli/test/lower-callables.test.ts(the carrier note 7267575290 pin: lowering leaves a stringtargetbeside the body), root.changeset/38653-*.md(stop on breach; explain in the report)Container & model:
S,mode:subagent,model: default tier(dispatch-gates --tier: "no path-derived mandate"),effort: high(reason: aClause-② yes (widening)of the published@objectstack/cli/hook-bodyunion that owes a contract-review-tier review; the seat's order 2026-11-30T03:37Z in the seat thread)Clause-②: yes (widening)
Metadata-protocol: none
Responsibility: objectstack's own extractor (
packages/cli/src/utils/extract-hook-body.ts) infers a body's capability list. It has no pattern forctx.api.transaction(…), and its bound-handle walk creditsapi.writeonly, so a read through a bound handle gets noapi.read| no platform path infers those two today; a body author can only declare them by hand | every lowered hook or action handler that uses a transaction or reads through a bound handle (measured on the PR #38650 branch: thepackages/cli/test/verify-delete-behaviors.test.tsfixture, ~90)Thread-read: 7267575290
Premise: holds (read-only check on
origin/main0124851:CAPABILITY_PATTERNSat ~509 lists six tokens withoutapi.transaction;callsObjectWriteThroughHandleat ~589 is the only bound-handle walk; the published-subpath pin types the union at six tokens)Pre-claim deps:
Blocked-by: #38650is cleared. PR #38650 merged 2026-11-30T03:31:20Z (787090035678).Prior rulings read: card thread 0 ruling comments. The triage 7265106830 rules the widening follows precedent (
api.transactionis already aHookBodyCapabilitytoken) and is not a contract-shape proposal. The carrier note 7267575290 adds N4 of contract record 7267534418.Fold-or-serial: folds N4 (7267575290) on the seat's word. Serial after #38650, which has merged.
Serial constraints cleared:
check-handover --inflightis clear on all five paths. The dev runsoverlap-check.mjsbefore each push and queues on exit 1.objectstack-fleet commentedon Nov 30, 2026
repo:objectstack#3 · os-steve · session_01ADHkmSwS4mQyXWrddL4r6B
os-dev-report
{ "issue": 38653, "status": "done", "branch": "claude/issue-38653-extractor-transaction-handle-read", "pr": "https://github.com/objectstack-ai/objectstack/pull/38686", "session": "session_01ADHkmSwS4mQyXWrddL4r6B", "premise_still_valid": true, "summary": "Draft PR 38686 (head a6f711ac84, base 0124851bae) makes the hook-body extractor infer api.transaction for a .transaction call (ctx.api.transaction, a root alias of ctx.api, ?. on either side, the member destructured off ctx.api), and api.read through a bound object handle. The read is a twin of the bound-handle walk: callsObjectLeafThroughHandle is asked once for the write leaves (unchanged) and once for OBJECT_READ_LEAVES, which are the direct pattern's own read leaves; the runner's READ list adds none. It also widens ExtractedBody.capabilities on @objectstack/cli/hook-body to seven tokens, adds the carrier-note N4 pin (a lowered action keeps a string target beside its body), and adds a minor changeset. CONTRACT FACE: this widens a published type's accept set, so the PR stays draft for its CONTRACT_REVIEW_TIER review. Mechanism assumptions: (1) holds. The inferred list is body.capabilities, the sandbox grants exactly that, and nothing else grants a body api.transaction. The new token matches a call the author wrote and opens no data access (writes still need api.write), so the security reading is the same as for every inferred token. (2) holds: api.transaction is already a HookBodyCapability token, and packages/spec is untouched. (3) holds: no existing expected capability list changed (the cli unit layer is green with no existing test edited). Done-when 3: across every first-party config (8 examples and packages/apps configs; platform-objects and apps account/setup/studio carry no inline callable), there is 1 lowered hook body, 0 lowered action bodies, and 0 newly refused with lint's lowered skips removed. The verify-delete-behaviors fixture goes from 1 refusal (api.read) to 0. The answer is not yet: the extractor still misses body-local aliases of ctx.log, ctx.crypto, ctx.activity and ctx.title that lint reads, so the seat should file the follow-up named in out_of_scope_findings. The union could be typed as HookBodyCapability (it is exactly the seven tokens), but it stays restated as ordered, because the conformance consumer links only the packed CLI and typescript. The card assignee is not written by this run.", "tests": "At head a6f711ac84 (source unchanged since 6c67329b6a). The three touched files (vitest run --maxWorkers=2 test/extract-hook-body.test.ts test/lower-callables.test.ts test/published-subpath-hook-body.pin.test.ts): Test Files 3 passed (3), Tests 126 passed (126). The cli unit project (vitest run --maxWorkers=2 --project unit): Test Files 450 passed (450), Tests 6451 passed (6451), lock VERDICT command-exit 0. The integration layer is left to CI. pnpm --filter @objectstack/cli typecheck: VERDICT command-exit 0, check:test-typecheck OK. Ablations used scripts/ablation-replace.mjs, landed on disk with blob hashes and were restored to the HEAD blob with git diff HEAD empty; the tests import src, and the subpath pin reads the rebuilt packed dist. (a) Deleting the callsObjectReadThroughHandle call: 5 failed / 73 passed, controls green. (b) Turning the api.transaction token into log: 4 failed / 74 passed. (c) Deleting action.target = ref in lowerActionCallable: 2 failed / 31 passed. (d) Reverting the pin union to six tokens: 1 failed / 14 passed, conformance.ts(17,3) error TS2344.", "gates": "Derived by node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack at a6f711ac84 (5 paths vs merge base 0124851ba): 69 families, all run with the exit code captured before any pipe. 68 exited 0. pnpm check:dual-build-cjs-loads exited 3 (PREREQUISITE NOT MET: no dist for studio, client-react and qa/scenarios, outside this build closure), so NOT MEASURED; that family is CI's. dispatch-gates --ran: 69 derived families accounted for, 68 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3), exit 0. check-nul-bytes exit 0. overlap-check --branch=HEAD: VERDICT clean exit 0 before each of the two pushes. test:repo was not run (no repo-project test changed, and the derived list does not name it); it is CI's Test Core. PR check-runs: NOT MEASURED, reason: the report is delivered at PR open, before CI converges.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "2 relay strokes. pr_create: POST /repos/objectstack-ai/objectstack/pulls (draft), then its assignees leg POST /repos/objectstack-ai/objectstack/issues/38686/assignees, read back byte-identical as 9253 of 9253 bytes, assignees os-steve, no labels sent. This os-dev-report comment: POST /repos/objectstack-ai/objectstack/issues/38653/comments via post-stamped.mjs. git push (2 commits plus the empty-branch probe) is not a REST write.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "class: a · reach: named producer packages/cli/src/utils/extract-hook-body.ts. The ctx.log / ctx.crypto / ctx.activity / ctx.email patterns in CAPABILITY_PATTERNS spell ctx., and reboundCapabilities covers only the handler's own parameter, so a body-local alias infers nothing. Measured through extractLoweredBody (the function os build calls) on both faces at 6c67329b6a: const l = ctx.log; l.info(...) infers [], lint would refuse log; const { log } = ctx infers [], log; const { crypto } = ctx infers [], crypto.uuid; const a = ctx.activity; a.append(...) infers [], activity.append; a hook's const t = ctx.title; t(FIELD) infers [], api.read. Each such lowered handler is refused by the sandbox at the call. email.send follows the same pattern but is unmeasured. Same family as this card; it is the prerequisite of the Done-when 3 follow-up. Follow-up for the seat to file as one family-closing card: (1) the extractor infers the member tokens through the receivers lint's memberReceivers reads (a local bound once to ctx.MEMBER, a destructure off ctx), with an enumeration pin against lint's SANDBOX_CAPABILITY_GATES; (2) then validate-action-body-capabilities drops the isLoweredHandlerBody skip and the non-write isLoweredTargetBody skip (the N4 shape pin from this PR holds the lowered shape). Measured cost on first-party bodies: 0 newly refused. Dedupe words: extractor body-local alias ctx.log capability; lowered handler alias inferred no log; reboundCapabilities body alias; isLoweredHandlerBody skip lowered bodies", "carrier: none · noted, not filed: the destructured-leaf call transaction(fn) and a nested const { api: { transaction } } = ctx are inferred but not read by the lint rule, a missed finding there, never a false one (PR Acceptance notes)" ], "line_budget": "191 changed lines (+179 / -12) in 5 files, under the 3000 human-merge threshold; no skills/** and no ratchet ledgers touched", "files_changed": [ ".changeset/38653-extractor-transaction-handle-read.md", "packages/cli/src/utils/extract-hook-body.ts", "packages/cli/test/extract-hook-body.test.ts", "packages/cli/test/lower-callables.test.ts", "packages/cli/test/published-subpath-hook-body.pin.test.ts" ], "deviations": [ "The file surface is exactly the claim's File surface line: 5 files, no breach.", "Commit trailers use the model-free pair AGENTS.md mandates (Claude-Session plus Co-authored-by: Claude), not the harness's model-named Co-Authored-By line; the pre-push trailer check passed.", "The first closure build was spelled pnpm --filter '@objectstack/cli^...' build --concurrency=2, which hands the flag to each package script rather than to pnpm; it ran green (VERDICT command-exit 0). The second build used --workspace-concurrency=2.", "The Done-when 3 measurement loaded the first-party configs with a scratch script outside the repo, which committed nothing and left no files in the tree. To load app-showcase it also built that example's dependency closure (pnpm --filter '@objectstack/example-showcase^...' build, VERDICT command-exit 0)." ] }objectstack-fleet commentedon Nov 30, 2026
repo:objectstack#3 · os-steve · session_01ADHkmSwS4mQyXWrddL4r6B
os-dev-report
{ "issue": 38653, "status": "done", "delta": "fix round on PR 38686 for the red Check Changeset: the changeset level for @objectstack/cli moves from minor to patch, the level Metadata-protocol: none takes; Clause-②: yes (widening) and Metadata-protocol: none are unchanged", "branch": "claude/issue-38653-extractor-transaction-handle-read", "pr": "https://github.com/objectstack-ai/objectstack/pull/38686", "head": "ffbc961a01", "session": "session_01ADHkmSwS4mQyXWrddL4r6B", "gates": "at ffbc961a01 vs origin/main 5ac1ee0bc8: node scripts/check-changeset-no-major.mjs --base origin/main --event EVENT (the live PR 38686 payload) :: exit 0 (LEVEL AXIS green: yes (widening) with none, no entry graded minor or above); the same without --event :: exit 0; node scripts/check-empty-changeset.mjs --base origin/main :: exit 0; node scripts/check-adr-0087-registration.mjs --base origin/main :: exit 0; overlap-check --branch=HEAD :: VERDICT clean exit 0. Before the fix the --event run was exit 1 with the same level-axis error CI reported.", "files_changed": [".changeset/38653-extractor-transaction-handle-read.md"], "pr_body": "its Changeset line still says minor; corrected text handed to the seat, not written by the dev", "mcp_calls": "0", "api_writes": "1 — this comment, POST /repos/objectstack-ai/objectstack/issues/38653/comments via post-stamped.mjs", "security_findings": "none" }objectstack-fleet commentedon Nov 30, 2026
repo:objectstack#3 · os-steve · session_01ADHkmSwS4mQyXWrddL4r6B
Claim amendment 1 · 2026-11-30T04:43Z · zone o3-B · claim 7268132415 · the file surface adds one docs page. Every other claim line stands.
File surface: the claim's surface, plus
content/docs/automation/hook-bodies.mdx. On that page, only the### Capability inferencetable and the sentences beside it change. They gain one row forctx.api.transaction(…)⇒api.transactionand one for a read through a bound object handle ⇒api.read, spelled the way the extractor now matches them (stop on breach; explain in the report).Why: the page's "Capability inference" table (
origin/main, ~448-458) lists the patterns the extractor infers. PR #38686 adds two such patterns, so the table would be untrue for them after merge. The PR's docs drift check names this page.objectstack-fleet commentedon Nov 30, 2026
repo:objectstack#3 · os-steve · session_01ADHkmSwS4mQyXWrddL4r6B
os-dev-report
{ "issue": 38653, "status": "done", "delta": "round 3 on PR 38686 under claim amendment 1 (7269039655): the Capability inference table in content/docs/automation/hook-bodies.mdx gains two rows, *.transaction(…) (alias, ?. and destructured-member spellings) for api.transaction and the read leaves on a bound handle for api.read; the sentences beside the table stay true unchanged. The corrected PR body naming follow-up 38690 is handed to the seat.", "branch": "claude/issue-38653-extractor-transaction-handle-read", "pr": "https://github.com/objectstack-ai/objectstack/pull/38686", "head": "c8373cd352", "session": "session_01ADHkmSwS4mQyXWrddL4r6B", "gates": "the new page makes dispatch-gates --commands derive 31 more families (100 in all). All 31 ran at c8373cd352 with exit codes captured before any pipe, and all 31 exited 0. pnpm --filter @objectstack/spec run check:skill-examples first exited 3 (no client-react dist) and exited 0 after the client-react closure was built. dispatch-gates --ran over all 100: 99 run, 1 NOT-MEASURED (check:dual-build-cjs-loads, exit 3 in the first round), exit 0. overlap-check --branch=HEAD: VERDICT clean exit 0.", "files_changed": ["content/docs/automation/hook-bodies.mdx"], "file_surface": "within claim amendment 1: only the table, plus 2 lines", "mcp_calls": "0", "api_writes": "1 — this comment, POST /repos/objectstack-ai/objectstack/issues/38653/comments via post-stamped.mjs", "security_findings": "none" }objectstack-fleet commentedon Nov 30, 2026
repo:objectstack#3 · os-steve · session_01ADHkmSwS4mQyXWrddL4r6B
DONE · 2026-11-30T06:07Z · zone o3-B · PR #38686 merged, and its
Fixesclosed this card.pm:dispatchedis removed in this stroke.The reviews were L1-a ACCEPT 7269819170 and the contract record PASS 7269859014 (TIER_DEFAULT, declaration face), both at
c8373cd352. The out-of-scope family, body-local aliases in the extractor followed by lint dropping its lowered skips, is #38690.feat(lint)!: refuse an action or hook body that calls a sandbox gate …
feat(cli): the hook-body extractor infers api.transaction, and api.re…
feat(lint)!: judge a lowered hook or action body's capabilities like …