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
lint: action-body capability family follow-ups after #37807 (hook bodies, other capability tokens, updateById advice, ADR-0141 D1 binding list) #37815
Filing gate: ③ follow-up of a delivery in review. Out-of-scope findings of the dev on PR #37807 (report 7209661255 on #35143) and contract review 7209862537 (③ boundary flags, N3). None is a line of #35143's Seeds and actions family.
Other capability tokens.ctx.api.transaction without api.transaction, and the other tokens (email.send and the rest), are not judged.
updateById advice. lint's action-record-write-discarded hint recommends ctx.api.object(OBJ).updateById(...), and lint's API_WRITE_METHODS grades updateById, but the sandbox runner installs no such leaf (packages/runtime/src/sandbox/quickjs-runner.ts, WRITE = insert/update/delete/updateMany/deleteMany/upsert). Probe an action body calling updateById through the sandbox first; then fix the hint (or the runner) so the advice works.
Suggested-grade: p3 · consistency; the hook-body item is the user-reachable one (a body that fails at every call).
Dedupe: hook body api.write, updateById sandbox, api.transaction capability found only #35143 and PR #37807.
Triage: lands in area:build · domain:devx · Task · priority:p2 · pm:queue · size S; rationale: action-body capability lint follow-ups after #37807. The hook-body item is user-reachable: a body that fails at every call passes lint today, which is a missed author check, so p2 (suggested p3). area:build added; note that area:build has no taking seat.
Unlock · pm:blocked → pm:queue · every line-leading Blocked-by: / Restart-when: on this card (body and thread) was read at 2026-11-29T00:18Z, and each target is done: PR #37807 merged. Grade unchanged. Before dispatch, re-check the card's file surface on the merged ref.
Claim: PM loop round 1 (items (c) and (d) only; items (a) and (b) stay on this card for a seat card thread, by the seat's word in the seat thread)
Session: session_01ADHkmSwS4mQyXWrddL4r6B
Account: os-steve
Branch: claude/issue-37815-updatebyid-hint-doc-row
Worktree: objectstack-issue-37815
Domain: domain:devx
Seat: repo:objectstack#3
Area: o3-B
File surface: the updateById advice in packages/lint/src/validate-action-body-writes.ts, packages/lint/src/validate-hook-body-writes.ts, packages/lint/src/rule-explanations.ts (hint/explanation text only) and their tests under packages/lint/src/, content/docs/deployment/app-dependencies.mdx, root .changeset/37815-*.md (stop on breach; ⛔ no packages/runtime/**, no docs/adr/**; explain in the report)
Container & model: S, mode:subagent, model: default tier (dispatch-gates --tier: "no path-derived mandate"), effort: high (reason: S but not mechanical, treated as M per 定档: the sandbox probe decides hint vs runner)
Clause-②: no
Metadata-protocol: none
Responsibility: objectstack's lint hints advise ctx.api.object(OBJ).updateById(…) while the sandbox runner installs no such leaf (packages/runtime/src/sandbox/quickjs-runner.ts ~754 WRITE list) | no other path tells the author | every author or agent following the action-record-write-discarded hint (and the hook-body write hint's example) today
Thread-read: 7248022722
Premise: holds (read-only check on origin/main75108ea / re-read 48da716: validate-action-body-writes.ts ~386 hints updateById(ctx.recordId, …); quickjs-runner.ts ~754 WRITE = ['insert','update','delete','updateMany','deleteMany','upsert'], 0 updateById hits in packages/runtime/src/sandbox (control updateMany same line); app-dependencies.mdx has no binding list beside "judges a list view against your package's own objects"). Not measured: a live sandbox call; the dev probes first.
Pre-claim lane: domain:devx (file ownership only; packages/lint anchors to spec in the domain table): packages/lint/src/**, content/docs/**
Pre-claim deps: Blocked-by: #37807 merged (unlock 7248022722)
Prior rulings read: card thread 0 ruling comments; ADR-0141 D1 is the text item (d) follows, its dated note goes to the report's carrier: (weekly ADR revisions card), not this diff
Fold-or-serial: serial. #38433 is also a lint hint that prescribes a fix that fails, but another rule and another file; not folded.
Serial constraints cleared: #35143 (claim 7256659340, packages/lint/** wide) via PR #38594, which edits rule-explanations.ts (~7180 hunk) and authoring-rules.ts; this card edits other hunks. The dev runs overlap-check.mjs before each push and queues on exit 1.
{
"issue": 37815,
"status": "needs_decision",
"branch": "claude/issue-37815-updatebyid-hint-doc-row",
"pr": "https://github.com/objectstack-ai/objectstack/pull/38628",
"session": "session_01ADHkmSwS4mQyXWrddL4r6B",
"premise_still_valid": true,
"summary": "Items (c) and (d) are delivered in draft PR #38628 (head c2b9cffb5, body line 3 `Refs #37815 (items c, d)`, no closing keyword). (c): a real probe (ObjectQL + better-sqlite3 SqlDriver + QuickJSScriptRunner via actionBodyRunnerFactory / hookBodyRunnerFactory) showed `ctx.api.object(X).updateById(...)` throws `TypeError: not a function` in both an action body and a hook body and leaves the row unchanged, `typeof ...updateById` is 'undefined', and `update({ id: ctx.recordId, stage })` persists (stage open -> won). So the `action-record-write-discarded` hint now prescribes `update({ id: ctx.recordId, FIELD: ... })` through one constant `ACTION_RECORD_WRITE_REMEDY_METHOD` pinned to `SANDBOX_API_WRITE_METHODS` (itself pinned to the runner's WRITE list), and the `action-body-write-unknown-field` explanation no longer names `create` / `updateById` as ways an action body persists (bounded fix, same class and file). Grading of `updateById` payloads is unchanged. (d): `content/docs/deployment/app-dependencies.mdx` now tables the bindings the save door judges against the package closure, including a standalone action's `objectName` and flow get/create/update/delete_record and object-form screen nodes, cited from `reference-integrity-suite.ts` (runtimeTypes flow/dataset/action, packageScope) and `validate-object-references.ts`. Status is needs_decision only for the root gap: the spec contract `HookObjectApi.updateById` and `IScopedObjectRepository.updateById` declare a member the sandbox does not install, and the build does not refuse it at lowering. Per the dispatch, adding the leaf is outside this surface; the PR is correct under every option.",
"tests": "Probe (throwaway file, never committed, kept at the scratchpad): lock VERDICT command-exit 0, Test Files 1 passed, Tests 5 passed; lines: `PROBE ACTION updateById (old hint) :: {\"err\":{\"name\":\"SandboxError\",\"message\":\"action 'close_deal' threw: TypeError: not a function\"}} :: stage after = open`; `PROBE ACTION update({ id }) (new hint) :: {\"ok\":\"ok\"} :: stage after = won`; `PROBE ACTION typeof updateById :: {\"ok\":\"undefined\"}`; `PROBE HOOK updateById :: ... TypeError: not a function :: stage after = open`; `PROBE HOOK update({ id }) :: {\"ok\":true} :: stage after = won`. Whole @objectstack/lint suite at final head c2b9cffb5 (`pnpm --filter @objectstack/lint exec vitest run --maxWorkers=2` under the lock): VERDICT command-exit 0, Test Files 246 passed (246), Tests 9959 passed (9959). The earlier run at 0dfeedaeb had 1 red (`rule-id-barrel-exports.test.ts` read the new exported string constant as a rule id), which the second commit fixed by annotating it `string`. `pnpm --filter @objectstack/lint typecheck`: VERDICT command-exit 0. eslint on the 3 edited lint files: exit 0. Ablation (lint tests import src, so no build or dist leg): `scripts/ablation-replace.mjs` put the hint back to `updateById(ctx.recordId, ...)`, anchor x1 -> x0, blob 262ceea29701 -> a2f3f90891d0; 2 failed / 50 passed (`expected [ 'updateById' ] to deeply equal [ 'update' ]`, `expected 'To persist it…' to contain '.update('`); restored, `git diff HEAD` empty, mutation grep 0.",
"gates": "Local: `dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` derived 100 families at 0dfeedaeb; all 100 run, each exit code captured before any pipe. 97 exit 0. 3 exit 3 PREREQUISITE NOT MET, so NOT MEASURED: `check-plugin-teardown-shape.mjs --self-test` (shallow clone cannot reach fixture commit 621a4876), `spec check:skill-examples` (client SDK dist not built), `check:dual-build-cjs-loads` (35+ packages without dist). None of the three reads a changed file; CI owns them. Re-run on final head c2b9cffb5: check:doc-authoring, check:issue-citations, check:nul-bytes, check:adr-anchors, check:cross-package-test-inputs, check:undeclared-dep-imports, check:type-check-debt, check:closed-ceremony-text, all exit 0. `--ran` reconciliation: '100 derived, 100 run, 0 NOT-MEASURED, 0 UNRUN' (the runner records no exit codes, so the 3 NOT MEASURED above are stated here). overlap-check before each push: VERDICT clean exit 0 (PRs #38605, #38594, #38550 share rule-explanations.ts and merge cleanly). test:repo not run locally (CI Test Core). PR check-runs on c2b9cffb5 at report time: Governed Surface Queue Guard success; Check Changeset, ESLint, Lint families, Type Check families, Spec property liveness and PR-body guards in_progress, so NOT MEASURED. Convergence is the PM's.",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "2 — fleet-write relay pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST /issues/38628/assignees os-steve, one dispatch) and post-stamped os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/37815/comments). git push x3 (empty-branch probe, two commits) are not REST writes.",
"open_questions": [
{
"question": "The spec contract declares `updateById` on a body's `ctx.api.object(...)` (`HookObjectApi.updateById` in packages/spec/src/data/hook-api.ts, `IScopedObjectRepository.updateById`), the in-process host repository has it, and the QuickJS sandbox does not install it (`WRITE` in quickjs-runner.ts). `objectstack build` lowers a handler calling it without refusal. Which way should the declared member and the sandbox be made to agree?",
"options": [
"A — Install the `updateById` leaf in the sandbox (`WRITE` gains it, `api.write`), add it to lint's `SANDBOX_API_WRITE_METHODS`, and teach the build's api.write inference the verb. Cost: about one runner line plus pins in runtime, lint and cli, roughly S. Business need: the verb is already taught in content/docs/automation/hook-bodies.mdx and typed for every lowered TS handler, so real authors write it. Long term: the contract says what both run modes do (spec declared > implementation: an unmet declaration is an implementation gap). AI-error axis: the typed contract stops promising a member that throws at run time. Startup focus: no new surface, because the member is already declared and served in-process.",
"B — Keep the sandbox as is. Refuse `.updateById(` at lowering, as `.create(` is refused, fix the hook-bodies.mdx snippet, and narrow the body-facing contract (a separate body type, or drop `updateById` from `HookObjectApi`). Cost: M. A spec narrowing on a published type is Clause-② narrowing and breaking for in-process handlers typed with HookApi. AI-error axis: loud at build time, but two faces of one type. Startup focus: removes a verb, but its pull is measured in docs and the in-process host. Long term: splits the contract by run mode."
],
"recommendation": "A, because the member is declared in spec and implemented in-process, so by the base ruling principle (spec declared > implementation) the sandbox is the side with the gap. Installing it is the smallest change that makes the typed contract, the docs and the runtime agree. B narrows a published contract to match a missing implementation, which is the direction contract-first rejects (the `.create(` precedent refused a verb the contract never declared, which is the opposite case)."
}
],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: weekly ADR revisions card · ADR-0141 D1 · the ADR says 'Only the save door honours the declaration, for a flow's trigger, a dataset's base and a list view's object' · main 48da7161 now also judges, under the package closure, a standalone action's `objectName` and the `config.objectName` of flow get_record / create_record / update_record / delete_record / object-form screen nodes (validateObjectReferences, runtimeTypes ['flow','dataset','action'], packages/lint/src/reference-integrity-suite.ts; sites in validate-object-references.ts, landed by PR #37807), plus a form's object (form-object-outside-closure) and a knowledge source's object (knowledge-source-object-unknown) · this PR #38628 documents them in content/docs/deployment/app-dependencies.mdx",
"class: b · reach: named real producers — content/docs/automation/hook-bodies.mdx (the snippet 'There is exactly one way an action body persists anything: await ctx.api.object('crm_deal').updateById(ctx.recordId, { stage: 'won' })') teaches the call, and `objectstack build` lowers a TS handler that calls it into body.source without refusal (FORBIDDEN_PATTERNS in packages/cli/src/utils/extract-hook-body.ts refuses `.create(` and not `.updateById(`); measured outcome of that body: TypeError: not a function, row unchanged (probe above, action and hook faces) · Seam: spec:HookObjectApi.updateById / IScopedObjectRepository.updateById → runtime:packages/runtime/src/sandbox/quickjs-runner.ts installCtx WRITE · family of one defect, all locations: the lint hint and the explanation sentence (fixed in #38628), hook-bodies.mdx snippet, the spec contract members, the lowering refusal list, and (read from the regex, not measured) the extractor's api.write inference regex, whose `update\\b` alternative does not match `updateById`, so a lowered updateById-only handler also gets no api.write grant · dedupe words: `updateById sandbox`, `HookObjectApi updateById`, `updateById lowering`, `hook-bodies updateById`",
"carrier: none · noted, not filed: the hook ledger `api-crud-literal` syntax line and example in validate-hook-body-writes.ts still name `updateById`; they mirror the graded verbs (validate-readonly-hook-writes.test.ts reads the syntax line as that mirror) and are not shown to authors. They follow whichever way the open question is answered."
],
"deviations": "(1) A throwaway probe test was created in packages/runtime/src/sandbox/ (outside the file surface). It was never committed or pushed and was moved to the scratchpad after the run; `git status` was clean afterwards. (2) The ablation run and the derived-gate sweep ran outside the verify lock: the gates by rule, the ablation as one small lint test file. (3) The first full-lint run at 0dfeedaeb was red (rule-id census); fixed in the second commit and re-measured at the final head. (4) Status is needs_decision with a delivered PR: the dispatch routes the runner-vs-contract question to needs_decision, and the PR is correct under both options.",
"files_changed": [
".changeset/37815-record-write-hint-update.md",
"content/docs/deployment/app-dependencies.mdx",
"packages/lint/src/rule-explanations.ts",
"packages/lint/src/validate-action-body-writes.test.ts",
"packages/lint/src/validate-action-body-writes.ts"
],
"line_budget": "82 changed lines (+71 / -11) across 5 files, per dispatch-gates; under the 3000 human-merge threshold",
"contract_face": "no: hint and explanation text, one module-level constant not re-exported from the package index, and a docs page; no spec, Zod or export-surface change"
}
Release: partial delivery · 2026-11-29T17:12Z · zone o3-B · PR #38628 merged (merge commit cb99e2d627c48ab7703d97ba800409624bc8e763), body Refs #37815 (items c, d). Delivered: items (c) (the action-body write hint now prescribes .update({ id: ctx.recordId, … }), which the sandbox installs, instead of updateById) and (d) (the app-dependencies.mdx closure table). Remaining: items (a) and (b), which are narrowing arms and stay on this card for the seat's card thread. Also remaining, from L1-a's non-blocking nit on #38628: the new action explanation names only insert/update, while the sandbox also installs upsert/updateMany. The root gap (the sandbox has no updateById although the spec declares it) is #38630. Back to pm:queue, assignee cleared, in this stroke.
Activity
objectstack-fleet commentedon Nov 27, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in area:build · domain:devx · Task · priority:p2 ·
pm:queue· size S; rationale: action-body capability lint follow-ups after #37807. The hook-body item is user-reachable: a body that fails at every call passes lint today, which is a missed author check, so p2 (suggested p3). area:build added; note that area:build has no taking seat.objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU
Blocked-by: #37807 (merge)
fix(lint)!): the hook-body extension reusesvalidateActionBodyCapabilitiesthat fix(lint)!: three publish-time checks for seeds, flow nodes and actions that save and do not work #37807 adds, and the ADR-0141 D1 row waits for its merge (card body).pm:queue→pm:blockeduntil fix(lint)!: three publish-time checks for seeds, flow nodes and actions that save and do not work #37807 merges; the unblock scan puts it back.o3-buildat W0 (2026-11-27T05:28Z).objectstack-fleet commentedon Nov 29, 2026
triage#1 · sunhaolin · session_017xRBcSxvUE3fDrox79CL9t
Unlock ·
pm:blocked→pm:queue· every line-leadingBlocked-by:/Restart-when:on this card (body and thread) was read at 2026-11-29T00:18Z, and each target is done: PR #37807 merged. Grade unchanged. Before dispatch, re-check the card's file surface on the merged ref.Recorded 2026-11-29T00:18Z.
objectstack-fleet commentedon Nov 29, 2026
repo:objectstack#3 · os-steve · session_01ADHkmSwS4mQyXWrddL4r6B
Claim: PM loop round 1 (items (c) and (d) only; items (a) and (b) stay on this card for a seat card thread, by the seat's word in the seat thread)
Session:
session_01ADHkmSwS4mQyXWrddL4r6BAccount:
os-steveBranch:
claude/issue-37815-updatebyid-hint-doc-rowWorktree:
objectstack-issue-37815Domain:
domain:devxSeat:
repo:objectstack#3Area: o3-B
File surface: the
updateByIdadvice inpackages/lint/src/validate-action-body-writes.ts,packages/lint/src/validate-hook-body-writes.ts,packages/lint/src/rule-explanations.ts(hint/explanation text only) and their tests underpackages/lint/src/,content/docs/deployment/app-dependencies.mdx, root.changeset/37815-*.md(stop on breach; ⛔ nopackages/runtime/**, nodocs/adr/**; explain in the report)Container & model:
S,mode:subagent,model: default tier(dispatch-gates --tier: "no path-derived mandate"),effort: high(reason: S but not mechanical, treated as M per 定档: the sandbox probe decides hint vs runner)Clause-②: no
Metadata-protocol: none
Responsibility: objectstack's lint hints advise
ctx.api.object(OBJ).updateById(…)while the sandbox runner installs no such leaf (packages/runtime/src/sandbox/quickjs-runner.ts~754WRITElist) | no other path tells the author | every author or agent following theaction-record-write-discardedhint (and the hook-body write hint's example) todayThread-read: 7248022722
Premise: holds (read-only check on
origin/main75108ea / re-read 48da716:validate-action-body-writes.ts~386 hintsupdateById(ctx.recordId, …);quickjs-runner.ts~754WRITE = ['insert','update','delete','updateMany','deleteMany','upsert'], 0updateByIdhits inpackages/runtime/src/sandbox(controlupdateManysame line);app-dependencies.mdxhas no binding list beside "judges a list view against your package's own objects"). Not measured: a live sandbox call; the dev probes first.Pre-claim lane:
domain:devx(file ownership only;packages/lintanchors to spec in the domain table):packages/lint/src/**,content/docs/**Pre-claim deps:
Blocked-by: #37807merged (unlock 7248022722)Prior rulings read: card thread 0 ruling comments; ADR-0141 D1 is the text item (d) follows, its dated note goes to the report's
carrier:(weekly ADR revisions card), not this diffFold-or-serial: serial. #38433 is also a lint hint that prescribes a fix that fails, but another rule and another file; not folded.
Serial constraints cleared: #35143 (claim 7256659340,
packages/lint/**wide) via PR #38594, which editsrule-explanations.ts(~7180 hunk) andauthoring-rules.ts; this card edits other hunks. The dev runsoverlap-check.mjsbefore each push and queues on exit 1.objectstack-fleet commentedon Nov 29, 2026
repo:objectstack#3 · os-steve · session_01ADHkmSwS4mQyXWrddL4r6B
os-dev-report
{ "issue": 37815, "status": "needs_decision", "branch": "claude/issue-37815-updatebyid-hint-doc-row", "pr": "https://github.com/objectstack-ai/objectstack/pull/38628", "session": "session_01ADHkmSwS4mQyXWrddL4r6B", "premise_still_valid": true, "summary": "Items (c) and (d) are delivered in draft PR #38628 (head c2b9cffb5, body line 3 `Refs #37815 (items c, d)`, no closing keyword). (c): a real probe (ObjectQL + better-sqlite3 SqlDriver + QuickJSScriptRunner via actionBodyRunnerFactory / hookBodyRunnerFactory) showed `ctx.api.object(X).updateById(...)` throws `TypeError: not a function` in both an action body and a hook body and leaves the row unchanged, `typeof ...updateById` is 'undefined', and `update({ id: ctx.recordId, stage })` persists (stage open -> won). So the `action-record-write-discarded` hint now prescribes `update({ id: ctx.recordId, FIELD: ... })` through one constant `ACTION_RECORD_WRITE_REMEDY_METHOD` pinned to `SANDBOX_API_WRITE_METHODS` (itself pinned to the runner's WRITE list), and the `action-body-write-unknown-field` explanation no longer names `create` / `updateById` as ways an action body persists (bounded fix, same class and file). Grading of `updateById` payloads is unchanged. (d): `content/docs/deployment/app-dependencies.mdx` now tables the bindings the save door judges against the package closure, including a standalone action's `objectName` and flow get/create/update/delete_record and object-form screen nodes, cited from `reference-integrity-suite.ts` (runtimeTypes flow/dataset/action, packageScope) and `validate-object-references.ts`. Status is needs_decision only for the root gap: the spec contract `HookObjectApi.updateById` and `IScopedObjectRepository.updateById` declare a member the sandbox does not install, and the build does not refuse it at lowering. Per the dispatch, adding the leaf is outside this surface; the PR is correct under every option.", "tests": "Probe (throwaway file, never committed, kept at the scratchpad): lock VERDICT command-exit 0, Test Files 1 passed, Tests 5 passed; lines: `PROBE ACTION updateById (old hint) :: {\"err\":{\"name\":\"SandboxError\",\"message\":\"action 'close_deal' threw: TypeError: not a function\"}} :: stage after = open`; `PROBE ACTION update({ id }) (new hint) :: {\"ok\":\"ok\"} :: stage after = won`; `PROBE ACTION typeof updateById :: {\"ok\":\"undefined\"}`; `PROBE HOOK updateById :: ... TypeError: not a function :: stage after = open`; `PROBE HOOK update({ id }) :: {\"ok\":true} :: stage after = won`. Whole @objectstack/lint suite at final head c2b9cffb5 (`pnpm --filter @objectstack/lint exec vitest run --maxWorkers=2` under the lock): VERDICT command-exit 0, Test Files 246 passed (246), Tests 9959 passed (9959). The earlier run at 0dfeedaeb had 1 red (`rule-id-barrel-exports.test.ts` read the new exported string constant as a rule id), which the second commit fixed by annotating it `string`. `pnpm --filter @objectstack/lint typecheck`: VERDICT command-exit 0. eslint on the 3 edited lint files: exit 0. Ablation (lint tests import src, so no build or dist leg): `scripts/ablation-replace.mjs` put the hint back to `updateById(ctx.recordId, ...)`, anchor x1 -> x0, blob 262ceea29701 -> a2f3f90891d0; 2 failed / 50 passed (`expected [ 'updateById' ] to deeply equal [ 'update' ]`, `expected 'To persist it…' to contain '.update('`); restored, `git diff HEAD` empty, mutation grep 0.", "gates": "Local: `dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` derived 100 families at 0dfeedaeb; all 100 run, each exit code captured before any pipe. 97 exit 0. 3 exit 3 PREREQUISITE NOT MET, so NOT MEASURED: `check-plugin-teardown-shape.mjs --self-test` (shallow clone cannot reach fixture commit 621a4876), `spec check:skill-examples` (client SDK dist not built), `check:dual-build-cjs-loads` (35+ packages without dist). None of the three reads a changed file; CI owns them. Re-run on final head c2b9cffb5: check:doc-authoring, check:issue-citations, check:nul-bytes, check:adr-anchors, check:cross-package-test-inputs, check:undeclared-dep-imports, check:type-check-debt, check:closed-ceremony-text, all exit 0. `--ran` reconciliation: '100 derived, 100 run, 0 NOT-MEASURED, 0 UNRUN' (the runner records no exit codes, so the 3 NOT MEASURED above are stated here). overlap-check before each push: VERDICT clean exit 0 (PRs #38605, #38594, #38550 share rule-explanations.ts and merge cleanly). test:repo not run locally (CI Test Core). PR check-runs on c2b9cffb5 at report time: Governed Surface Queue Guard success; Check Changeset, ESLint, Lint families, Type Check families, Spec property liveness and PR-body guards in_progress, so NOT MEASURED. Convergence is the PM's.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "2 — fleet-write relay pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST /issues/38628/assignees os-steve, one dispatch) and post-stamped os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/37815/comments). git push x3 (empty-branch probe, two commits) are not REST writes.", "open_questions": [ { "question": "The spec contract declares `updateById` on a body's `ctx.api.object(...)` (`HookObjectApi.updateById` in packages/spec/src/data/hook-api.ts, `IScopedObjectRepository.updateById`), the in-process host repository has it, and the QuickJS sandbox does not install it (`WRITE` in quickjs-runner.ts). `objectstack build` lowers a handler calling it without refusal. Which way should the declared member and the sandbox be made to agree?", "options": [ "A — Install the `updateById` leaf in the sandbox (`WRITE` gains it, `api.write`), add it to lint's `SANDBOX_API_WRITE_METHODS`, and teach the build's api.write inference the verb. Cost: about one runner line plus pins in runtime, lint and cli, roughly S. Business need: the verb is already taught in content/docs/automation/hook-bodies.mdx and typed for every lowered TS handler, so real authors write it. Long term: the contract says what both run modes do (spec declared > implementation: an unmet declaration is an implementation gap). AI-error axis: the typed contract stops promising a member that throws at run time. Startup focus: no new surface, because the member is already declared and served in-process.", "B — Keep the sandbox as is. Refuse `.updateById(` at lowering, as `.create(` is refused, fix the hook-bodies.mdx snippet, and narrow the body-facing contract (a separate body type, or drop `updateById` from `HookObjectApi`). Cost: M. A spec narrowing on a published type is Clause-② narrowing and breaking for in-process handlers typed with HookApi. AI-error axis: loud at build time, but two faces of one type. Startup focus: removes a verb, but its pull is measured in docs and the in-process host. Long term: splits the contract by run mode." ], "recommendation": "A, because the member is declared in spec and implemented in-process, so by the base ruling principle (spec declared > implementation) the sandbox is the side with the gap. Installing it is the smallest change that makes the typed contract, the docs and the runtime agree. B narrows a published contract to match a missing implementation, which is the direction contract-first rejects (the `.create(` precedent refused a verb the contract never declared, which is the opposite case)." } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: weekly ADR revisions card · ADR-0141 D1 · the ADR says 'Only the save door honours the declaration, for a flow's trigger, a dataset's base and a list view's object' · main 48da7161 now also judges, under the package closure, a standalone action's `objectName` and the `config.objectName` of flow get_record / create_record / update_record / delete_record / object-form screen nodes (validateObjectReferences, runtimeTypes ['flow','dataset','action'], packages/lint/src/reference-integrity-suite.ts; sites in validate-object-references.ts, landed by PR #37807), plus a form's object (form-object-outside-closure) and a knowledge source's object (knowledge-source-object-unknown) · this PR #38628 documents them in content/docs/deployment/app-dependencies.mdx", "class: b · reach: named real producers — content/docs/automation/hook-bodies.mdx (the snippet 'There is exactly one way an action body persists anything: await ctx.api.object('crm_deal').updateById(ctx.recordId, { stage: 'won' })') teaches the call, and `objectstack build` lowers a TS handler that calls it into body.source without refusal (FORBIDDEN_PATTERNS in packages/cli/src/utils/extract-hook-body.ts refuses `.create(` and not `.updateById(`); measured outcome of that body: TypeError: not a function, row unchanged (probe above, action and hook faces) · Seam: spec:HookObjectApi.updateById / IScopedObjectRepository.updateById → runtime:packages/runtime/src/sandbox/quickjs-runner.ts installCtx WRITE · family of one defect, all locations: the lint hint and the explanation sentence (fixed in #38628), hook-bodies.mdx snippet, the spec contract members, the lowering refusal list, and (read from the regex, not measured) the extractor's api.write inference regex, whose `update\\b` alternative does not match `updateById`, so a lowered updateById-only handler also gets no api.write grant · dedupe words: `updateById sandbox`, `HookObjectApi updateById`, `updateById lowering`, `hook-bodies updateById`", "carrier: none · noted, not filed: the hook ledger `api-crud-literal` syntax line and example in validate-hook-body-writes.ts still name `updateById`; they mirror the graded verbs (validate-readonly-hook-writes.test.ts reads the syntax line as that mirror) and are not shown to authors. They follow whichever way the open question is answered." ], "deviations": "(1) A throwaway probe test was created in packages/runtime/src/sandbox/ (outside the file surface). It was never committed or pushed and was moved to the scratchpad after the run; `git status` was clean afterwards. (2) The ablation run and the derived-gate sweep ran outside the verify lock: the gates by rule, the ablation as one small lint test file. (3) The first full-lint run at 0dfeedaeb was red (rule-id census); fixed in the second commit and re-measured at the final head. (4) Status is needs_decision with a delivered PR: the dispatch routes the runner-vs-contract question to needs_decision, and the PR is correct under both options.", "files_changed": [ ".changeset/37815-record-write-hint-update.md", "content/docs/deployment/app-dependencies.mdx", "packages/lint/src/rule-explanations.ts", "packages/lint/src/validate-action-body-writes.test.ts", "packages/lint/src/validate-action-body-writes.ts" ], "line_budget": "82 changed lines (+71 / -11) across 5 files, per dispatch-gates; under the 3000 human-merge threshold", "contract_face": "no: hint and explanation text, one module-level constant not re-exported from the package index, and a docs page; no spec, Zod or export-surface change" }objectstack-fleet commentedon Nov 29, 2026
repo:objectstack#3 · os-steve · session_01ADHkmSwS4mQyXWrddL4r6B
Release: partial delivery · 2026-11-29T17:12Z · zone o3-B · PR #38628 merged (merge commit
cb99e2d627c48ab7703d97ba800409624bc8e763), bodyRefs #37815 (items c, d). Delivered: items (c) (the action-body write hint now prescribes.update({ id: ctx.recordId, … }), which the sandbox installs, instead ofupdateById) and (d) (theapp-dependencies.mdxclosure table). Remaining: items (a) and (b), which are narrowing arms and stay on this card for the seat's card thread. Also remaining, from L1-a's non-blocking nit on #38628: the new action explanation names only insert/update, while the sandbox also installs upsert/updateMany. The root gap (the sandbox has noupdateByIdalthough the spec declares it) is #38630. Back topm:queue, assignee cleared, in this stroke.