Skip to content

lint: action-body capability family follow-ups after #37807 (hook bodies, other capability tokens, updateById advice, ADR-0141 D1 binding list) #37815

Done

Description

@objectstack-fleet

repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK

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.

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.

Activity

  1. added
    pm:queue
    domain:devx
    on Nov 27, 2026
  2. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    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.

  3. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

    Blocked-by: #37807 (merge)

  4. added
    pm:blocked
    and removed
    pm:queue
    on Nov 27, 2026
  5. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · sunhaolin · session_017xRBcSxvUE3fDrox79CL9t

    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.

    Recorded 2026-11-29T00:18Z.

  6. added
    pm:queue
    and removed
    pm:blocked
    on Nov 29, 2026
  7. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    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_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/main 75108ea / 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.

  8. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 29, 2026
  9. 11 remaining items

  10. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-steve · session_01ADHkmSwS4mQyXWrddL4r6B

    Claim amendment · 2026-11-29T22:51Z · zone o3-B · claim 7263206599 · file surface, on the seat's route A (relayed 22:50Z, recorded here); every other claim line stands.
    File surface (added):

    • packages/lint/src/index.ts: one export line for the two new rule-id constants, which the barrel and explanation tests require.
    • One NEW semantic entry, packages/spec/src/migrations/entries/semantic/19.hook-and-action-bodies-calling-an-ungranted-gate-refused.ts, after the hook-job-body-does-not-compile-refused precedent, plus at most one pin if the registration gate requires it. Add a @objectstack/spec patch line to the changeset, and make its ADR-0087 marker registered for the new id.
    • packages/cli/src/utils/extract-hook-body.ts (CAPABILITY_PATTERNS: an api.transaction pattern) and its cli test, plus a @objectstack/cli patch line.
      Reason for the cli line: this PR makes a lowered handler that calls ctx.api.transaction refused at hooks[i].handler for the first time, and its author has no grant to add. That is a wrong refusal caused by this PR, from the same root cause.
      Condition: api.transaction must already be a grantable capability name in the spec. If it is not, so that a new public capability name would be needed, take the transaction arm out of this PR, refuse only the calls whose author can add a grant, then stop and report to the seat.
      Skills-docs: follow-up owed — skills/objectstack-ui/rules/actions.md, skills/objectstack-data/references/data-hooks.md; the seat files the skills card.
  11. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-steve · session_01ADHkmSwS4mQyXWrddL4r6B
    os-dev-report

    {
      "issue": 37815,
      "status": "blocked",
      "branch": "claude/issue-37815-body-capabilities-ab",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38650",
      "session": "session_01ADHkmSwS4mQyXWrddL4r6B",
      "premise_still_valid": true,
      "summary": "Round 2 (option A + claim amendment 7264010349) is implemented as commit dd3365285e and pushed ONLY to the backup branch claude/issue-37815-body-capabilities-ab-wip. The PR branch stays at bac75a914f, because the commit hits two stops. CONDITION verified: api.transaction is a HookBodyCapability token, so it is grantable. Done: the index.ts export of both ids, the new semantic entry 19.hook-and-action-bodies-calling-an-ungranted-gate-refused (marker `registered`), the spec and cli patch lines and the coordinator's Skills-docs line, the CAPABILITY_PATTERNS api.transaction pattern with a cli test, and the lowered-hook test case switched to a bound-handle read. STOP 1: widening the ExtractedBody.capabilities union turns packages/cli/test/published-subpath-hook-body.pin.test.ts red (conformance.ts(17,3) TS2344). That file pins the ratified published @objectstack/cli/hook-body union of six tokens, is outside the surface, and widening it is the seat's call. STOP 2: the 5th CI red is caused by the new rule. packages/cli/test/verify-delete-behaviors.test.ts CONTROL_SOURCE (line 90) reads through a bound handle (const contacts = ctx.api.object('vdb_contact'); contacts.find(...)). The extractor does not infer api.read for that shape, so the handler lowers with capabilities [], and hook-body-capability-undeclared refuses it at hooks[0].handler. Reproduced: `os verify --delete-behaviors --json` exits 1 with 'Author-time rules failed (1 issue)'. The verdict is true for a sandboxed artifact but a false positive for os verify, which runs the handler in-process. Re-sweep: under packages/*/test/** and examples/**, 50 handlers (26 lowerable) and every authored body were read; exactly ONE is refused, verify-delete-behaviors.test.ts:90. All other hits were false readings or deliberate pins: action-body-transaction-audit-split.dogfood.test.ts:99-101 is granted through TX_CAPS at :55; action-capability-refusal.dogfood.test.ts:39 and hook-capability-refusal.dogfood.test.ts:40 and :46 are deliberately ungranted runtime-refusal pins booted through bootStack (author rules there NOT MEASURED); the showcase log hooks are granted. The seat's options: fix the extractor's handle read in this PR (needs a surface widening plus the pin), grant the fixture's body explicitly, or narrow the hook arm to authored bodies.",
      "tests": "At dd3365285e: `pnpm --filter @objectstack/lint test` under the lock: Test Files 248 passed (248), Tests 10016 passed (10016), VERDICT command-exit 0. `pnpm --filter @objectstack/cli exec vitest run --maxWorkers=2 test/explain-rule-id.test.ts`: Tests 14 passed (14), VERDICT command-exit 0, the 4th red green (same root as the barrel reds: the index export). 17 cli extractor-adjacent files incl. extract-hook-body.test.ts: Test Files 1 failed | 16 passed (17), Tests 1 failed | 318 passed (319), VERDICT command-exit 1; the red is published-subpath-hook-body.pin.test.ts ('tsc exited non-zero', conformance.ts(17,3) TS2344), STOP 1. `test/verify-delete-behaviors.test.ts`: Tests 1 failed | 2 passed (3), VERDICT command-exit 1, NEGATIVE CONTROL at :176, STOP 2; reproduced out of the test with the fixture's CONTROL_SOURCE: status 1, rule hook-body-capability-undeclared, path hooks[0].handler, message 'body calls ctx.api.object(…).find(…) but its capabilities do not grant api.read'. The lint target files earlier gave 68/68. Round-1 ablations stand; no new ablation, because round 2 changed no tested lint behaviour, and the extractor change is pinned by its new test.",
      "gates": "At dd3365285e after the spec build (turbo build, VERDICT command-exit 0): `node scripts/check-adr-0087-registration.mjs --base origin/main` exit 0, '1 declared-breaking changeset(s), each carrying an ADR-0087 disposition' and '1 migration entry added, each at or above PROTOCOL_MAJOR 19'. `pnpm --filter @objectstack/spec run check:spec-changes` exit 0. `check:upgrade-guide` exit 0. `gen:upgrade-guide` (generator only) wrote 5 files under content/docs/protocol-upgrade, which are gitignored. Migration registry current (691 semantic). `check:generated`: 'All 14 generated artifacts are up to date'. `node scripts/check-nul-bytes.mjs` OK. `node scripts/pm/overlap-check.mjs --branch=HEAD`: VERDICT clean, exit 0, before the -wip push (#38651, #38643, #38605, #38594, #38550, #38497 all merge cleanly). The round-2 derived --commands subset was NOT re-run in full; round 1 was 97 run + 3 NOT MEASURED at bac75a914f. CI check-runs for dd3365285e: NOT MEASURED, reason: not pushed to the PR branch.",
      "dogfood_battery": "NOT MEASURED: the head is not final (stops 1 and 2 are open), and the shared lock was held by another session's `pnpm --filter @objectstack/dogfood test` (pid 578, held >1300s; my attempt was queue-timeout exit 99 after 540s). Owed once on the head that closes the stops.",
      "mcp_calls": "0",
      "api_writes": "1 this round: this os-dev-report comment on #37815 via post-stamped.mjs (fleet-write relay POST /repos/objectstack-ai/objectstack/dispatches). git push of the -wip backup branch, not REST. Round 1: 2.",
      "pr_body_for_seat": "file /tmp/claude-0/-home-user/920fa7bb-abcb-5448-8603-ca3d2f80b305/scratchpad/issue-37815/pr-body-r2.md (9261 bytes; same header and signed trailer; describes dd3365285e and both stops)",
      "open_questions": [
        {
          "question": "How are stops 1 and 2 closed?",
          "options": [
            "A: widen the surface to the published hook-body pin (add api.transaction to the ratified union) and to the extractor's api.read handle reading (a callsObjectWriteThroughHandle twin), so the vdb fixture lowers with api.read; then push dd3365285e plus that fix to #38650",
            "B: keep the extractor as is, and grant the vdb fixture's hook through an authored body (or exempt in-process os verify from lowered-handler judgement); widen the pin only",
            "C: drop the extractor transaction arm (revert to round-1 extractor) and narrow hook-body-capability-undeclared to authored bodies only; lowered handlers judged later once the extractor infers reads"
          ],
          "recommendation": "A. The refusal is truthful for a sandboxed artifact, and the cause is the extractor's under-inference, so fixing the producer follows the contract-first rule; B relaxes the consumer instead. The cost is one regex helper plus a test, and one pin-line widening the seat must rule on, because the subpath is ratified."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: a · reach: named producer, os build/os verify lowering in packages/cli/src/utils/extract-hook-body.ts · evidence: the api.read pattern misses a read through a bound handle; verify-delete-behaviors.test.ts CONTROL_SOURCE lowers with capabilities [] and the sandbox would refuse the find; since this PR it is refused at hooks[0].handler · carrier: seat · dedupe words: extractor api.read handle, callsObjectWriteThroughHandle read, lowered body read capability",
        "carrier: seat · noted, not filed: the skills follow-up owed for skills/objectstack-ui/rules/actions.md and skills/objectstack-data/references/data-hooks.md"
      ],
      "contract_face": "yes: the lint accept set at the save door and os validate (narrowing); cli ExtractedBody.capabilities union on the ratified @objectstack/cli/hook-body subpath (widening, unpushed, stop 1)"
    }
  12. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-steve · session_01ADHkmSwS4mQyXWrddL4r6B

    Claim amendment 2 · 2026-11-29T23:51Z · zone o3-B · claim 7263206599 · file surface and scope, on the seat's route C (relayed 23:51Z, recorded here). Amendment 7264010349 stands except for the line withdrawn below.
    File surface (withdrawn): packages/cli/src/utils/extract-hook-body.ts, its cli test and the @objectstack/cli patch line. The extractor stays as it is on origin/main.
    Scope (narrowed): the hook arm of hook-body-capability-undeclared judges authored hook bodies only. A handler lowered by os build / os verify is not judged by this PR, and the published @objectstack/cli/hook-body pin is not touched.
    Reason: under AGENTS.md a PR carries at most one Clause-② arm. Options A and B would widen the published @objectstack/cli/hook-body type (yes (widening)), and that cannot share a PR with this one's no (narrowing). The extractor's two gaps (no api.transaction inference, and no api.read inference through a bound handle) are filed as #38653 (finding, a widening, owes L2, serial after PR #38650). Once #38653 lands, the hook rule is re-read for lowered handlers. The verify-delete-behaviors.test.ts fixture, the only first-party body refused under the lowered-handler reading, is then no longer refused by this PR.

  13. objectstack-fleet commented on Nov 30, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-steve · session_01ADHkmSwS4mQyXWrddL4r6B
    os-dev-report

    {
      "issue": 37815,
      "status": "done",
      "branch": "claude/issue-37815-body-capabilities-ab",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38650",
      "session": "session_01ADHkmSwS4mQyXWrddL4r6B",
      "premise_still_valid": true,
      "summary": "Route C (claim amendment 2, comment 7264779546, read on GitHub) is on PR #38650, now draft at head c3319db255 (pushed as a fast-forward from bac75a914f). The hook arm of hook-body-capability-undeclared now judges only hook bodies the author wrote. The new exported isLoweredHandlerBody skips a hook whose string handler is in ctx.loweredHookRefs (os build / validate / lint / verify). At the runtime doors, which hand no lowered refs, it skips any hook carrying a string handler beside its body, the shape a build artifact carries. Since lowered bodies are no longer judged, the handler location and hint branch is gone. packages/cli/src/utils/extract-hook-body.ts and its test are byte-identical to origin/main, the @objectstack/cli changeset line is dropped, and the published-subpath pin is untouched. The index.ts export, the v19 semantic entry (registered) and the spec patch line stay. The entry's surface, reason and acceptance criteria, the changeset banner and FROM→TO rows, the os explain paragraph and the docs row now say authored hook bodies only. The Skills-docs line reads `Skills-docs: follow-up #38655` in the changeset and in pr_body_for_seat. The pr_body_for_seat is not applied: the PR body still holds the round-1 text, and the seat patches it. Open item for the seat: the -wip backup branch delete was refused with HTTP 403 (a policy denial, not retried), so claude/issue-37815-body-capabilities-ab-wip at dd3365285e still exists and needs deleting. Its work is superseded and nothing of it is still needed. The PR touches a contract face, the lint accept set at the save door and in os validate (narrowing), and stays draft.",
      "tests": "At c3319db255. `pnpm --filter @objectstack/lint typecheck && pnpm --filter @objectstack/lint test` under the lock gave typecheck clean, check:test-typecheck OK, Test Files 248 passed (248), Tests 10019 passed (10019), VERDICT command-exit 0. The target file has 42 tests, all passing. After a cli build (turbo, 70/70 tasks), `pnpm --filter @objectstack/cli exec vitest run --maxWorkers=2 test/verify-delete-behaviors.test.ts test/published-subpath-hook-body.pin.test.ts test/explain-rule-id.test.ts test/extract-hook-body.test.ts test/lint-hook-rules-reach-handler-hooks.test.ts` gave Test Files 5 passed (5), Tests 109 passed (109), VERDICT command-exit 0. verify-delete-behaviors and the published-subpath pin are both green. The route C pins cover both sides on one bound-handle read source. The authored body is refused at hooks[0].body.capabilities. The same body lowered is not judged through validateActionBodyCapabilities, through runAuthoringRules validate/build/lint with loweredHookRefs, or at the save door with a string handler. A string handler that was not lowered leaves the body judged. Ablation with scripts/ablation-replace.mjs (anchor `if (isLoweredHandlerBody(hook, ctx)) return;` deleted; mutation landed, blob 2917a03ac8bb -> 4e8097702c0f) gave Tests 2 failed | 40 passed (42), exactly the two not-judged pins. It was restored with blob == HEAD 2917a03ac8bb and `git diff HEAD` empty. The tests import src, so no dist preflight was needed.",
      "gates": "At c3319db255, `node scripts/check-adr-0087-registration.mjs --base origin/main` exit 0: '1 declared-breaking changeset(s), each carrying an ADR-0087 disposition'; '1 migration entry added, each at or above PROTOCOL_MAJOR 19'. `check:spec-changes` exit 0 and `check:upgrade-guide` exit 0. `gen:upgrade-guide` (generator only) wrote 5 gitignored files. After the spec build, `check:generated` exit 0: 'All 14 generated artifacts are up to date'. `check-nul-bytes` OK. The derived subset is `dispatch-gates.mjs --commands --repo objectstack-ai/objectstack`, 118 families: 116 exit 0, and 2 exit 3 PREREQUISITE NOT MET (check:skill-examples, check:dual-build-cjs-loads). The `--ran` record with exit codes reconciled as '118 derived famil(ies) accounted for — 116 run, 2 NOT-MEASURED', exit 0. `overlap-check.mjs --branch=HEAD` gave VERDICT clean, exit 0, before the push. CI check-runs on c3319db255: 72 total, 62 success and 10 skipped, none red. Among them, all success: Lint & Repo Gates, Test Core (12/12 shards), Test UI, TypeScript Type Check, Check Changeset, PR-body guards, Dogfood Regression Gate, Build Core, Spec property liveness and Governed Surface Queue Guard.",
      "dogfood_battery": "c3319db255 · os-verify-lock: VERDICT command-exit 0 (held the lock 1865s, waited 15s, after the dogfood^... closure build, which also exited 0) · Test Files 495 passed | 3 skipped (498) · Tests 4187 passed | 68 skipped (4255) · no failures",
      "mcp_calls": "0",
      "api_writes": "1 this round: the os-dev-report comment on #37815 through post-stamped.mjs (fleet-write relay POST /repos/objectstack-ai/objectstack/dispatches). Not REST: the git push fast-forward to the PR branch, and the git push delete of the -wip branch, which the proxy refused with HTTP 403. REST reads: the amendment comment, check-runs and the PR head. Earlier rounds: 3.",
      "pr_body_for_seat": "returned in the final report (9877 bytes); not posted here",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: #38653 · the lowered-handler reading and both extractor gaps (no api.transaction inference; no api.read inference through a bound handle, ?. before the leaf, or an argument holding parentheses)",
        "carrier: #38655 · the skills follow-up (actions.md, data-hooks.md, list-views.md)",
        "carrier: seat · the -wip backup branch claude/issue-37815-body-capabilities-ab-wip (dd3365285e) is not deleted, because the delete push got HTTP 403"
      ],
      "contract_face": "yes: the lint accept set at the save door and in os validate (narrowing). The published cli hook-body type is unchanged."
    }
  14. objectstack-fleet commented on Nov 30, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-steve · session_01ADHkmSwS4mQyXWrddL4r6B
    os-dev-report

    {
      "issue": 37815,
      "status": "done",
      "branch": "claude/issue-37815-body-capabilities-ab",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38650",
      "session": "session_01ADHkmSwS4mQyXWrddL4r6B",
      "premise_still_valid": true,
      "summary": "Merge round. New head a60a6de915, pushed as a fast-forward over c3319db255; the PR stays draft. It is a normal merge of origin/main at 4b57756092, which carries #38643 (merge commit 3a2111ab3f), plus one follow-up commit. There were no conflicts: git auto-merged authoring-rules.ts, index.ts, rule-explanations.ts and validate-action-body-capabilities.ts. #38643's updateById stands in the runner's WRITE list, in SANDBOX_API_WRITE_METHODS and in that file's header, and the gate table and census are unchanged. The census and gate table needed no edit: the census pin reads the runner's WRITE list and SANDBOX_API_WRITE_METHODS, and is green with updateById in both. One text edit was needed (a60a6de915, packages/lint/src/rule-explanations.ts, +3/-2). This PR's own nit sentence in the action-body-write-unknown-field explanation listed the field-carrying leaves without updateById, which became untrue once it was installed; it now reads insert, update({ id, … }) or updateById(id, { … }), upsert, updateMany. Nothing else this PR wrote lists the write leaves; the changeset, the v19 entry and the docs row say only 'the write leaves', which stays true. Merge delta from c3319db255 to 3a2111ab3f is main's side: 160 files, +3631/-3273. The branch against origin/main is now 8 files, +694/-41. One PR body line became untrue ('updateById is left for #38643'), so pr_body_for_seat is returned. The worktree was removed after the push.",
      "tests": "At a60a6de915, after a lint closure rebuild (turbo, 5/5 tasks): `pnpm --filter @objectstack/lint exec vitest run --maxWorkers=2 src/validate-action-body-capabilities.hook-and-tokens-37815.test.ts` (census pin included) gave Tests 42 passed (42), VERDICT command-exit 0. `pnpm --filter @objectstack/lint typecheck && pnpm --filter @objectstack/lint test` gave typecheck clean, check:test-typecheck OK, Test Files 248 passed (248), Tests 10031 passed (10031), VERDICT command-exit 0.",
      "gates": "At a60a6de915, each exit code captured before any pipe. `node scripts/check-adr-0087-registration.mjs --base origin/main` exit 0: '1 declared-breaking changeset(s), each carrying an ADR-0087 disposition'; '1 migration entry added, each at or above PROTOCOL_MAJOR 19'. `node scripts/check-changeset-no-major.mjs` exit 0 ('Protocol lockstep: PROTOCOL_VERSION major 19 … no pre-mode exception to judge'). `node scripts/check-nul-bytes.mjs` exit 0. `node scripts/pm/overlap-check.mjs --branch=HEAD` exit 0, VERDICT clean, before the push. CI check-runs on a60a6de915: NOT MEASURED, reason: the report is delivered at push.",
      "dogfood_battery": "n/a this round, because the order asks for no re-run. The last battery was on c3319db255: VERDICT command-exit 0, Test Files 495 passed | 3 skipped (498), Tests 4187 passed | 68 skipped (4255).",
      "mcp_calls": "0",
      "api_writes": "1: the os-dev-report delta comment on #37815 through post-stamped.mjs (fleet-write relay POST /repos/objectstack-ai/objectstack/dispatches). The git push is not REST.",
      "pr_body_for_seat": "returned in the final report; the nit bullet and the readings lines changed",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: seat · the -wip backup branch claude/issue-37815-body-capabilities-ab-wip (dd3365285e) is still undeleted, since the earlier delete push got HTTP 403"
      ]
    }
  15. objectstack-fleet commented on Nov 30, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-steve · session_01ADHkmSwS4mQyXWrddL4r6B

    Claim amendment 3 · 2026-11-30T01:34Z · zone o3-B · claim 7263206599 · route for contract review 7266230571 (FAIL @ c3319db255), on the seat's ruling (relayed 01:33Z, recorded here). Amendments 7264010349 and 7264779546 and every other claim line stand.
    M1: the action arm stops judging an action body that os build / os verify lowered from an inline target function (lowerActionCallable, packages/cli/src/utils/lower-callables.ts ~554-580), for every token other than api.write. action-body-write-capability-undeclared on a lowered body is unchanged. The test that a body was lowered follows the hook arm's isLoweredHandlerBody. In the CLI, use the lowered-action refs the build hands over, if ctx carries them. At a door that hands none, a body is lowered when its string target sits beside it, if that is the shape the build artifact carries. MEASURE both before the edit. If the lowered action carries no marker the rule can read without a packages/cli edit, STOP and report a fork; do not edit packages/cli. Pin both sides as the route C hook pins do: an authored action body is refused, and the same body lowered from a target is not judged (CLI path and door path). Add one ablation. The entry (surface / reason / replacement / acceptanceCriteria), the rule file's header (~20-30, including N2: hook is the third door) and the explanation say so, and so does the changeset FROM → TO. The lowered reading stays with #38653.
    S1: already met at a60a6de915 (updateById is in the action-body-write-unknown-field leaf list). The dev confirms it.
    N2: fix the prose in the same commit: the header door list, and the entry's acceptanceCriteria naming the inline path objects[N].actions[M].body.capabilities. N1 and N3: no change.
    File surface: unchanged; every file named here is already claimed. packages/cli/** is read only. Stop and report on any breach.

  16. objectstack-fleet commented on Nov 30, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-steve · session_01ADHkmSwS4mQyXWrddL4r6B
    os-dev-report

    {
      "issue": 37815,
      "status": "done",
      "branch": "claude/issue-37815-body-capabilities-ab",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38650",
      "session": "session_01ADHkmSwS4mQyXWrddL4r6B",
      "premise_still_valid": true,
      "summary": "Rework round for contract review 7266230571 (FAIL at c3319db255) on claim amendment 3 (7266251484), both read on GitHub in full. New head 4c07e0d708, pushed as a fast-forward: a60a6de915..29d3b0fea1..4c07e0d708, with no new merge. The PR stays draft. MEASURED before the edit: the CLI hands no lowered-action ref set (LoweringResult carries loweredHookRefs only, and AuthoringRuleContext has no action counterpart). lowerActionCallable (lower-callables.ts 554-580) leaves the registered ref as a string target beside the minted body. A JS body runs only on a script action, where target is kept for legacy functions references, and examples/app-showcase has 0 of 296 JS-body actions with a string target. So the rule can read a marker without a packages/cli edit, and there is no fork; packages/cli is untouched. M1: the new exported isLoweredTargetBody(action) is a string target beside a body, read on every door with the CLI included. validateActionBodyCapabilities skips the non-write tokens for such a body, and action-body-write-capability-undeclared still judges its writes, unchanged. One disclosed missed finding: an author who wrote a body beside a target function keeps that body, and lowering still turns the target into a string, so that body is not judged for the other tokens. Prose: the rule header now says a lowered body is judged for api.write only and names hook as the third door (N2). The action explanation, the v19 entry (surface, replacement, reason, and acceptanceCriteria naming objects[N].actions[M].body.capabilities per N2), the changeset (the arm b bullet, the authored FROM row and a lowered-target FROM→TO sentence) and the docs row all say so. #38653 is named in the changeset, the PR body and the rule-file comments only. CI red at 29d3b0fea1 (Test Core 2/12, migrate-meta-engine-guidance.test.ts:420): the entry's replacement cited #38653. 4c07e0d708 rewords it as 'a later change carries the lowered reading', and the test is green locally after a cli build. S1 is confirmed met at a60a6de915: updateById is in the action-body-write-unknown-field leaf list. N1 and N3 are unchanged. The worktree was removed after the push.",
      "tests": "At 29d3b0fea1, `pnpm --filter @objectstack/lint exec vitest run --maxWorkers=2 src/validate-action-body-capabilities.hook-and-tokens-37815.test.ts` gave Tests 46 passed (46), VERDICT command-exit 0. The M1 pins work on one source, a write inside ctx.api.transaction granted only api.write as the extractor infers. The authored body is refused at actions[0].body.capabilities and at objects[0].actions[0].body.capabilities. The lowered body (string target) is not judged through validateActionBodyCapabilities, nor through runAuthoringRules validate/build/lint at the top level and inline, nor at the action and object doors, each with an authored positive control. A lowered body without api.write is still refused under ACTION_BODY_WRITE_CAPABILITY_UNDECLARED. Ablation with scripts/ablation-replace.mjs (anchor `if (lowered) continue;` deleted; mutation landed, blob 8a2414f71d5d -> 3a9c811d1b1e) gave Tests 3 failed | 43 passed (46), exactly the three lowered-target pins. It was restored with blob == HEAD and `git diff HEAD` empty. `pnpm --filter @objectstack/lint typecheck && pnpm --filter @objectstack/lint test` gave typecheck clean, check:test-typecheck OK, Test Files 248 passed (248), Tests 10035 passed (10035), VERDICT command-exit 0. At 4c07e0d708, after a cli closure build (70/70), `pnpm --filter @objectstack/cli exec vitest run --maxWorkers=2 test/migrate-meta-engine-guidance.test.ts test/explain-rule-id.test.ts test/verify-delete-behaviors.test.ts` gave Test Files 3 passed (3), Tests 20 passed (20), VERDICT command-exit 0.",
      "gates": "At 4c07e0d708, each exit code captured before any pipe, all exit 0: `node scripts/check-adr-0087-registration.mjs --base origin/main` ('1 declared-breaking changeset(s), each carrying an ADR-0087 disposition'; '1 migration entry added'), `node scripts/check-changeset-no-major.mjs`, `pnpm --filter @objectstack/spec run check:spec-changes`, `check:upgrade-guide`, `check:generated` and `node scripts/check-nul-bytes.mjs`. At 29d3b0fea1 the same set except check:generated also exited 0. `node scripts/pm/overlap-check.mjs --branch=HEAD` gave VERDICT clean, exit 0, before each push. CI at 29d3b0fea1: Test Core (2/12) was red on migrate-meta-engine-guidance.test.ts, as relayed and fixed in 4c07e0d708. CI check-runs on 4c07e0d708: NOT MEASURED, reason: the report is delivered at push.",
      "dogfood_battery": "29d3b0fea1 · os-verify-lock: VERDICT command-exit 0 (held the lock 1814s, waited 32s; the dogfood^... closure build also exited 0) · Test Files 495 passed | 3 skipped (498) · Tests 4187 passed | 68 skipped (4255) · no failures. The final head 4c07e0d708 differs only by one sentence of the v19 entry's replacement text, and the battery was not re-run on it.",
      "mcp_calls": "0",
      "api_writes": "1: os-dev-report delta comment on #37815 through post-stamped.mjs (fleet-write relay POST /repos/objectstack-ai/objectstack/dispatches). Not REST: two git pushes. REST reads: the review, the amendment and the branch.",
      "pr_body_for_seat": "returned in the final report (full body)",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: #38653 · the lowered reading for both arms (hook handler, action target) and the extractor gaps",
        "carrier: seat · the -wip backup branch claude/issue-37815-body-capabilities-ab-wip (dd3365285e) is still undeleted, since the earlier delete push got HTTP 403"
      ]
    }
  17. objectstack-fleet commented on Nov 30, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-steve · session_01ADHkmSwS4mQyXWrddL4r6B

    DONE · 2026-11-30T03:32Z · zone o3-B · closed as completed on the seat's word (seat thread, 2026-11-30T03:04Z): all four items of this card are delivered.

  18. removed
    pm:dispatched
    on Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:builddomain:devxpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions