Repository navigation
Description
Ruling: the maintainer ruled E + C on #21489, batch #270 item 1, verbatim 「jobs同意」. That was after asking whether hooks run on install-local because of code or because of the protocol. The ruling record is on #21489. This card carries E's spec half. #21489 keeps the runtime binder and C's refusal, and is Blocked-by: this card. Filed by the director seat, summon #32, session_016tKoy8NJa35Yih1FdzrVmn.
Filing gate: ② a ruling's execution, filed by the seat that recorded it. Reader who acts: domain:spec.
Why: a protocol gap, not an install-local bug
- Hooks and script actions each have a body: source carried as data and run in the QuickJS sandbox.
- For hooks that is
HookSchema.body(packages/spec/src/data/hook.zod.ts:266,HookBodySchema: an L1 expression or an L2 sandboxed JS body).handleris marked DEPRECATED (:252). objectstack buildlowers inline TS handlers into it.- A JSON artifact carries a body, so every door binds it through the one binder
bindAppArtifactHandlers(packages/runtime/src/app-artifact-handlers.ts, os package install (install-local) drops an app's script action bodies: REST 404 and MCP run_action "No handler registered" while list_actions advertises the action #21321).
- For hooks that is
- Jobs have only
handler: z.string(), a key intodefineStack({ functions })(packages/spec/src/system/job.zod.ts:193).- A function is code, never a metadata row (ADR-0088), so a JSON artifact cannot carry it. The binder's own docblock says so.
- The callable lives only in the artifact's runtime module, which only
os start --artifactimports. - So install-local can never schedule a job, by contract ([Decision] install-local: a package's declared jobs are never scheduled — refuse the install, name them in the install answer, or make job handlers declarable bodies (the jobs half of #21322) #21489, measured by the dev in
5962851713).
- By the same reading, a hook written in the deprecated
handlerform cannot fire on install-local either. That is why hooks moved tobody. This card moves jobs the same way.
Scope
JobSchema.body: the sandboxed body shape hooks use, reused by reference. The claim measures which body levels a job can honour; an L1 expression probably has no meaning for a job.- When both
bodyandhandlerare present,bodywins, as for hooks. handleris marked DEPRECATED with "preferbody", as for hooks.- The relation between a body's own
timeoutMsandJobSchema.timeoutMsis stated in one place. Two spellings of one limit are the defect [security] Stored-metadata-body family: two exits #21120 did not reach. An engine-only door serves an administrator credential material in cleartext, and the data door serves a content hash computed over the withheld credentials #21207-style reviews keep finding.
- When both
objectstack buildlowers an inline job handler intobody, as it does for hooks, so authoreddefineStack({ jobs })packages become portable without hand-editing.- Describes and docs state that a job runs in the sandbox (no module scope; data only under declared capabilities) and what that means for long-running work.
Clause-②: yes (widening), with an at-tier contract review.- ⛔ Not in scope: binding and scheduling job bodies at runtime, and install-local's refusal of an enabled job that has no body. Both are [Decision] install-local: a package's declared jobs are never scheduled — refuse the install, name them in the install answer, or make job handlers declarable bodies (the jobs half of #21322) #21489's (
domain:cli), unblocked when this lands.
Pull and priority
Zero measured. The only job declared across objectstack, cloud, hotcrm and objectui is in examples/app-showcase, which boots by config (director reading, 2026-10-03). The card takes priority:p2 from #21489.
Dedupe
mcp__github__search_issues "JobSchema handler body sandboxed job body declarable scheduled job code travels with package" on objectstack: 3 hits, #17518, #14242 and #4567, all closed and none about a job body.
Generated by Claude Code
Activity
objectstack-fleet commentedon Oct 3, 2026
Claim: PM loop round 1
Session:
session_01YDt3PzwfrkuFzUBF89WPmMAccount:
os-tesla(the seat's linked user asGET /useranswers it; the card's assignee)Branch:
claude/issue-21515-job-bodyWorktree:
objectstack-issue-21515Domain:
domain:specSeat:
domain:spec#2File surface (at
88fb5e85a0), per the ruling record5964305303on #21489 (E + C, 「jobs同意」), E's spec half:packages/spec/src/system/job.zod.ts:JobSchema.body, reusing the hook body shape by reference (HookBodySchema,data/hook.zod.ts). The dev measures which body levels a job can honour before choosing; an L1 expression probably has no meaning for a job. If both are present,bodywins, as for hooks.handleris marked DEPRECATED, "preferbody", as for hooks.timeoutMsandJobSchema.timeoutMsis stated in one place, with the other place pointing to it.objectstack build:packages/cli/src/utils/lower-callables.tsand its tests. A job whose handler is an inline function, or names afunctionsentry the build lowers, gets a mintedbody, by the same extraction hooks use. The dev reads which job shapesdefineStack({ jobs })accepts today and pins each one.content/docs/**and the generated references.@objectstack/specminor(a widening), with the CLIpatchif the gates want it.domain:cli): binding or scheduling job bodies at runtime (bindAppArtifactHandlers), and install-local's refusal of an enabled job with nobody.skills/**edit. If a skill names the jobhandlerform, the dev reports it.Container & model:
M,mode:subagent,model: opus(dispatch-gates --tierat88fb5e85a0: no path-derived mandate; floor sonnet · default opus · ceilingCONTRACT_REVIEW_TIER;job.zod.tsis on the clause-② suspect surface). A widening ofpackages/spec/src/**, so the at-tier contract review runs as a separate isolated subagent after the PR opens.Clause-②: yes (widening)
Thread-read: none
The card has no comment. The ruling of record is
5964305303on #21489, read in full.Serial constraints cleared: at 2026-10-03T02:42Z, no open PR touches
system/job.zod.ts,data/hook.zod.ts,lower-callables.ts,extract-hook-body.tsor the job docs. #21489 ispm:blockedon this card and is unassigned.Seat terms: p2, under the maintainer's terms (「只处理 p0 p1 p2」, widened by
5952442849),batch 3. The PR isFixes #21515. When it lands, #21489'sBlocked-by:is met, and its own seat unblocks it.Generated by Claude Code
objectstack-fleet commentedon Oct 3, 2026
os-dev-report
{
"issue": 21515,
"status": "needs_decision",
"branch": "claude/issue-21515-job-body",
"pr": "#21538",
"session": "session_01YDt3PzwfrkuFzUBF89WPmM (subagent of the domain:spec seat 2 PM; the parent's id)",
"premise_still_valid": true,
"summary": "Spec half delivered in draft PR #21538 (
Part of #21515,Clause-②: yes (widening), head b0460f4). JobSchema.body is ScriptBodySchema by reference (L2 only; an L1 body is refused at body.language with a reason; the message is on ScriptBodySchema.language and cannot fire for hook or action bodies).handleris optional and DEPRECATED, preferbody; a job with neither key is refused via requiredOneOf (projected into the JSON Schema). body.timeoutMs is refused on a job via bannedKeys (projected too); the JobSchema.timeoutMs describe is the one statement of the time-limit relation. The liveness row job.body is drilled, planned (carrier #21489), with authorWarn on source. The docs gained a job body section, and the generated artifacts are regenerated. The card premise holds: jobs had no body. Scope item 2 (objectstack buildlowers job handlers into body) is NOT delivered, because measurement falsified it on the standard path. defineStack parsesfunctionsthrough z.function(), which replaces every callable with zod's implement wrapper, so the build never sees the author's source: the pipeline pin went red, with free identifiers func, inst, parse. The documented JobHandlerContext handler form would also mint a broken body. Every route that would make lowering work changes a public contract, so it is the open question below. The lowering plus its guard was implemented and stays in the branch history at 4893a0b / 781609d, reverted in b7cf7f7; the PR touches no packages/cli file.","tests": "At b0460f4, the merge of origin/main ad7c351 via scripts/pm/os-regen-merge.sh:
pnpm --filter @objectstack/spec buildexit 0 (check:generated: 'All 15 generated artifacts are up to date');pnpm --filter @objectstack/spec testexit 0, 'Test Files 603 passed (603) / Tests 17848 passed | 1 todo';pnpm --filter @objectstack/spec typecheckexit 0. New pins in packages/spec/src/system/job.test.ts, describe 'JobSchema.body', 10 cases: body only; handler only; both; neither located at body naming both keys; L1 refused at body.language with a reason; any other language keeps zod's message; body.timeoutMs refused; job timeoutMs 600000 accepted; misspelt body key refused; Job types handler optional. Ablations via scripts/ablation-replace.mjs, each proving anchor 1 -> 0 on disk and restored with git diff HEAD empty and blob == HEAD: (1) handler required again (job.zod.ts blob 105cfb6379 -> 49869aece8): 4 failed / 65 passed. Red: body-only, neither, timeoutMs-without-handler, Job-typed call. (2) bannedKeys(['timeoutMs']) replaced by an always-true refine: 1 failed (the body.timeoutMs pin). (3) L1 message disarmed (hook-body.zod.ts blob c5123b08bb -> 279b5324d0): 1 failed (the L1 pin), and the hook-body suite stayed green. The first attempt was refused by the tool before running (the replacement 'undefined' already occurred), then redone with a unique replacement. Restore leg: job.test.ts + hook-body.test.ts, 84 passed. The dispatch's second ablation (remove the job branch of the lowering) has no target, because the lowering is not in the PR. Measurement of the dropped lowering at 781609d:pnpm --filter @objectstack/cli exec vitest run --project uniton the four lowering suites gave 69 passed, 1 failed. The failure is the pipeline pin defineStack -> normalizeStackInput -> lowerCallables -> ObjectStackDefinitionSchema: the parse succeeded, job.body was undefined, and the recorded warning was kind free-identifiers [func, inst, parse].","gates": [
"node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --commands (no paths) -> 111 families at b0460f4, each run with its exit code recorded; --ran: exit 0, 'Run reconciliation — 111 derived, 111 run, 0 NOT-MEASURED, 0 UNRUN.'",
"Six first exited 3 (PREREQUISITE NOT MET: formula/lint/client/client-react/objectql unbuilt): lint check:doc-formula-expressions, lint check:doc-security-posture, spec check:skill-examples, check:docs-transcript-drift, check:dual-build-cjs-loads, check:lean-entry-closure. All exit 0 after
turbo run buildof that closure (34 tasks, all cache hits). check:skill-examples: '260 prose examples type-check across 3 surface(s)' (the new os:check snippet in jobs.mdx included).","pnpm --filter @objectstack/spec check:generated -> exit 0, 'All 15 generated artifacts are up to date'",
"pnpm --filter @objectstack/spec run check:api-surface -> exit 0, '@objectstack/spec public API surface + factory signatures unchanged'",
"pnpm --filter @objectstack/spec run check:export-origins -> exit 0, 'export-origins/ is current: 5337 exports across 19 entry points resolve exactly as recorded.'",
"pnpm --filter @objectstack/spec run check:liveness -> exit 0, 'every governed-type property, at every depth the ledger drills, is classified'",
"pnpm check:doc-authoring -> exit 0, 'doc authoring guard: 17309 customer-facing string(s) across 1247 spec sources clean'",
"pnpm check:nul-bytes -> exit 0, 'check-nul-bytes: OK (scanned 9876 text file(s) ...)'",
"node scripts/check-changeset-no-major.mjs --base ad7c351 --event (the PR body as pull_request.body) -> exit 0, 'This diff introduces no
majorbump.' / 'LEVEL AXIS: this PR declares clause-②yes (widening), and no package whose packages//src/ it moves is gradedpatch.'","node scripts/check-adr-0087-registration.mjs --base origin/main -> exit 0, 'this PR adds no declared-breaking changeset (1 non-breaking changeset(s) seen).'",
"node scripts/check-empty-changeset.mjs --base origin/main -> exit 0, 'No empty-frontmatter changeset introduced by this diff (1 declaring changeset(s) added).'",
"@objectstack/cli build/test/typecheck: not run, because the PR changes no packages/cli file and no typed consumer reads the changed members (grep: AppPlugin reads jobs as any; metadata-type-schemas.ts and stack.zod.ts only reference JobSchema). This is a declared narrowing; CI runs the full set.",
"CI: in_progress at report time (not awaited, per contract)."
],
"line_budget": "n/a: no skills/** edit",
"files_changed": [
".changeset/21515-job-body.md",
"content/docs/automation/jobs.mdx",
"content/docs/references/system/job.mdx (generated)",
"packages/spec/authorable-surface/system.json (generated)",
"packages/spec/liveness/job.json",
"packages/spec/liveness/state-counts/job.md (generated)",
"packages/spec/src/data/hook-body.zod.ts",
"packages/spec/src/system/job.test.ts",
"packages/spec/src/system/job.zod.ts"
],
"a1_body_levels": "The PM's premise is half right. A job DOES have a return reader: a handler may resolve { outcome: 'degraded', reason } (JobRunOutcome, contracts/job-service.ts), and the cron, interval and db adapters map it. It also has an input: IJobService.trigger(name, data) passes data. But that reader judges work, and an L1 expression does none (capabilities [], no I/O), so an L1 job could only report an outcome about nothing. Result: JobSchema.body = ScriptBodySchema by reference, and an L1 body is refused at body.language with the reason. The message sits on ScriptBodySchema.language's error, so no job-specific body schema exists.",
"a3_time_limit": "Measured. QuickJSScriptRunner.resolveTimeout: the CPU budget is min(opts.timeoutMs, body.timeoutMs) when either is set; otherwise the origin default (hook 250 ms, action 5000 ms, OS_SANDBOX_* env). Over-budget runs are interrupted. The wall ceiling is max(OS_SANDBOX_WALL_CEILING_MS default 30000, budget). hookBodyRunnerFactory passes only body.timeoutMs; the hook-level timeoutMs is raced by wrapDeclarativeHook. actionBodyRunnerFactory passes body.timeoutMs ?? action.timeoutMs. runWithPolicy races job.timeoutMs per attempt, wall-clock, abandoning rather than killing, uncapped. So the 30 s cap sits only on body.timeoutMs, which is now refused on a job. If the #21489 binder hands job.timeoutMs to the runner as opts.timeoutMs, budget and wall ceiling both rise to it, and long-running work stays expressible. No product question arises, but there is a binder requirement. The one statement lives in the JobSchema.timeoutMs describe (packages/spec/src/system/job.zod.ts); the body describe and JOB_BODY_TIMEOUT_REFUSED point to it. Docs: jobs.mdx 'Time limit and long-running work' says to declare a covering timeoutMs or page the work into bounded runs.",
"a4_job_shapes": "defineStack({ jobs }) today accepts only
handler= a string naming a functions entry. An inline function is NEVER accepted for a job, pre-build: JobSchema.handler was z.string(), and an inline fn fails the parse. Lowering that named function (the dispatch's route) was implemented with a job-context guard, measured, and reverted: (i) on the standard path the callable is zod's implement wrapper (FlowFunctionEntrySchema and FlowFunctionDeclarationSchema.handler are z.function(); defineStack is strict by default; the wrapper keeps no back-reference), so extraction can never see the author's source and refuses with zod's own identifiers. (ii) Where the source is visible, the documented form async function sweep({ jobId, ql, logger }: JobHandlerContext) extracts cleanly into a body that reads unbound names, and with body wins it would replace a working handler. (iii) Counting a job body in bodyExtracted, as A4 asked, would also letos buildskip the runtime bundle for a stack whose only callable is a job's function, while today's runtime still schedules the job through that function. No route makes existing authored jobs portable without hand-editing.","a5_consumers": "Read: runtime/src/app-plugin.ts#start (the scheduler), runtime/src/job-schedule.ts, service-job run-with-policy.ts, spec contracts/job-service.ts, runtime/src/app-artifact-handlers.ts (read only; no job branch), runtime/src/sandbox/body-runner.ts, spec kernel/metadata-type-schemas.ts, stack.zod.ts, kernel/metadata-plugin.zod.ts, core fallbacks/memory-job.ts, objectui JobPreview.tsx. There is no typed fallout: nothing reads job.handler as a required typed member. Left for #21489: (1) AppPlugin#start resolves fnMap[job.handler] only, so a body-only job is skipped at warn ('job handler not found in bundle.functions — skipping'), and with both keys present body is ignored rather than winning. (2) ScriptOrigin.kind is hook | action, so resolveTimeout has no job default. (3) job.timeoutMs must reach the runner as opts.timeoutMs (the A3 statement depends on it). (4) What a job body's ctx carries beyond api/log/crypto (jobId, data) is undeclared. (5) The metadata-plugin.zod.ts job row justifies allowRuntimeCreate:false by handler alone; a body makes a runtime-authored job runnable in principle once bound.",
"ablations": "see tests: 3 legs red as predicted (4 / 1 / 1 failures), each restored by blob, and the restore leg green (84 passed). The lowering ablation is moot.",
"semver": "@objectstack/spec minor; no CLI bump (no CLI file changed). Judged by check-changeset-no-major with the PR body as the event payload: 'LEVEL AXIS: this PR declares clause-②
yes (widening), and no package whose packages//src/ it moves is gradedpatch.' check-adr-0087-registration: 'no declared-breaking changeset'. No ADR-0087 marker demanded.","deviations": [
"PR first line is
Part of #21515, not the dispatch'sFixes #21515: scope item 2 (build lowering) is undelivered pending the decision below, so merging must not close the card.","A4 falsified: the lowering was implemented, then reverted from the PR (kept in history at 4893a0b / 781609d, revert b7cf7f7); packages/cli is byte-identical to base.",
"A4's 'count it in bodyExtracted' measured wrong (it would skip the runtime bundle the current runtime needs). Moot now.",
"L1 refusal text lives in packages/spec/src/data/hook-body.zod.ts (ScriptBodySchema.language error), outside the claim's file list. This was the only place a reason can be given without a job-specific body schema; hook and action bodies cannot reach it (discriminator routing), proven by the hook-body suite staying green under ablation 3.",
"body.timeoutMs refusal is a projectable slot refinement (bannedKeys), and the neither rule is requiredOneOf. A superRefine was tried first and was refused by the build's dropped-refinements ledger gate. The ledger did not grow.",
"Merged origin/main (ad7c351) through scripts/pm/os-regen-merge.sh before opening the PR; spec rebuilt, check:generated green after.",
"Built formula/lint/client/client-react/objectql (turbo cache hits) to satisfy six exit-3 gates.",
"Ablation 3's first attempt was refused by ablation-replace (non-unique replacement) before any command ran, then redone.",
"Commit trailers use AGENTS.md's model-free pair (Claude-Session + Co-authored-by: Claude), not the harness-supplied trailer that names a model."
],
"mcp_calls": "0",
"api_writes": "3 — all through scripts/pm over the fleet-write relay as objectstack-fleet[bot]: (1) pr_create POST /repos/objectstack-ai/objectstack/pulls -> draft #21538 (read back: 11575 bytes, identical); (2) label-write POST /repos//issues/21538/assignees [os-tesla], no labels written (none named; skip-changeset not applicable); (3) this os-dev-report POST /repos//issues/21515/comments. git push not counted. Reads: REST GET for the card, its comments, #21489 and its two cited comments, the 9 open PRs and their file lists (A8: none touch the hot files).",
"open_questions": [
{
"question": "Scope item 2 of the E ruling ('objectstack build lowers inline job handlers into body') cannot be executed as written. Jobs have no inline handler form. The named
functionscallable the build sees is zod's implement wrapper on every defineStack config (strict by default), so its source is unreadable. The documented JobHandlerContext form ({ jobId, ql, logger }) would lower into a body that throws, and because body wins it would replace a working handler. Which route, if any, should the lowering take?","options": [
"A — make the named function readable: FlowFunctionEntrySchema / FlowFunctionDeclarationSchema.handler switch z.function() to an identity-preserving function check (same accept set, no wrapper), then the build mints a job body from the named function behind the job-context guard (ready in branch history), still refusing JobHandlerContext-shaped functions. Axes: business need: zero measured pull (only examples/app-showcase declares a job, and its function uses module-scope helpers and ql, so it would still not lower). Long-term: fixes a real identity loss in the functions map, but a function in the map would then have to serve two contexts — JobHandlerContext in-process, the sandbox ctx as a body — which no single function satisfies unless #21489 gives in-process job handlers ctx.api/ctx.log. AI safety: a build-minted body an author never wrote, plus a refusal path, is more surface to misread than writing the body. Startup scope: touches the flows' function contract with no pull.",
"B — give jobs the hook mechanism literally: JobSchema.handler accepts an inline function (z.custom, DEPRECATED, as hooks), the build lowers it to body plus ref, the runtime module bundles job inline functions, and AppPlugin binds an inline function on a config boot (otherwise os dev/serve skips it). Axes: business need: zero pull. Long-term: mirrors hooks exactly ('④ 复用 hook 的体形'), but adds an authoring form to a deprecated key and a runtime binding change that overlaps #21489. AI safety: the same dual-context trap as A (the inline fn runs in-process on a config boot and as a body after the build). Startup scope: the widest of the three.",
"C — withdraw the build lowering: a job body is authored as data ({ language: 'js', source, capabilities }), the form Studio, an AI author and a JSON artifact all write; the build only validates; handler stays deprecated until #21489 binds bodies. Axes: business need: matches the measured zero pull; nothing existing needed lowering. Long-term: one authoring form, metadata-native, no dual-context functions. AI safety: the strict schema (L2 only, one time limit, requiredOneOf) is the whole contract, and refusals are loud at parse. Startup scope: adds nothing. Cost: reverses part of a recorded ruling, so it is the maintainer's word."
],
"recommendation": "C. All four axes point the same way: zero pull; A and B both create functions that must satisfy two different contexts, a structural trap the guard can only refuse, never repair; C adds no mechanism. If the maintainer keeps the lowering, A is the narrower route, and only after #21489 decides whether in-process job handlers get ctx.api/ctx.log. Until decided, #21538 lands the spec half as
Part of #21515, and the docs already tell authors to write body as data."}
],
"out_of_scope_findings": [
"carrier: #21489 seat · noted, not filed: AppPlugin#start skips a body-only job at warn and ignores body when both keys are present; ScriptOrigin has no job kind; job.timeoutMs must be handed to the sandbox runner; the job body ctx members (jobId, data) are undeclared; the metadata-plugin.zod.ts job row justifies allowRuntimeCreate:false by handler alone. All of these are runtime-half work the card assigns to #21489.",
"carrier: none · noted, not filed (inference, no producer in examples/**, only the extractor probed): extractHookBody peels the parameter list and the sandbox runs every L2 body as (async (ctx) => { … }), so a HOOK handler written async ({ input }) => … or async (context) => … lowers to a body reading an unbound name (probe: extractHookBody(async ({ input }) => { input.x = 1 }) -> source 'input.x=1', no refusal). Dedupe words: hook body destructured parameter lowering ReferenceError; extractHookBody parameter name ctx; lowered body unbound identifier.",
"carrier: none · noted, not filed: the generated reference renders Job.body's nested table from the reused shape, including a timeoutMs row that is refused on a job (the describes and the published propertyNames say so).",
"carrier: none · noted, not filed: an unknown key on a job body is reported against 'this sandboxed JS (L2) hook body', the shared shape's surface label.",
"carrier: none · noted, not filed: objectui app-shell JobPreview.tsx shows handler and nothing of body (cross-repo display gap).",
"carrier: none · noted, not filed (Tier H file, not touched): skills/objectstack-platform/SKILL.md:414 still names onEnable as where a job gets its data handle — stale since jobs take ql off JobHandlerContext. It does not name the job handler form."
]
}
objectstack-fleet commentedon Oct 3, 2026
Seat answer to the dev's open question (
5965564062)domain:specseat 2 (session_01YDt3PzwfrkuFzUBF89WPmM), holder of claim5964760101· 2026-10-03T04:38ZThe build lowering: escalated to the maintainer as decision card [Decision]
os buildcannot lower a job's handler into the newJobSchema.bodyas ruling E wrote it — withdraw the build lowering (C), or change thefunctionscontract (A) or the job handler form (B)? #21540. The question changes part of ruling E (5964305303), so it is the maintainer's word, not this seat's.functionscontract, B adds an inline job handler form. It recommends C, with A as the fallback after [Decision] install-local: a package's declared jobs are never scheduled — refuse the install, name them in the install answer, or make job handlers declarable bodies (the jobs half of #21322) #21489 settles the in-process job handler context.origin/main49161683fb.JobSchema.handlerisz.string()(job.zod.ts:193).FlowFunctionEntrySchemaandFlowFunctionDeclarationSchema.handlerarez.function(). The documented job form is({ ql, jobId, logger }: JobHandlerContext)(jobs.mdx:170). The only in-repo job is inexamples/app-showcase.handlerback to required, or shipping the reverted lowering behind a flag. Either would pre-empt the ruling the card asks for.PR spec(system): JobSchema gains a sandboxed L2
bodyand deprecateshandler; a body job has one time limit #21538 proceeds as the spec half:Part of #21515,Clause-②: yes (widening). The at-tier contract review is next. When it lands, this card closescompleted, because [Decision]os buildcannot lower a job's handler into the newJobSchema.bodyas ruling E wrote it — withdraw the build lowering (C), or change thefunctionscontract (A) or the job handler form (B)? #21540 carries the build lowering under the decision-card rule (the card names which half it carries). [Decision] install-local: a package's declared jobs are never scheduled — refuse the install, name them in the install answer, or make job handlers declarable bodies (the jobs half of #21322) #21489'sBlocked-by: #21515is then met, and this seat leaves a pointer there.The runtime-half facts go to [Decision] install-local: a package's declared jobs are never scheduled — refuse the install, name them in the install answer, or make job handlers declarable bodies (the jobs half of #21322) #21489's seat in the landing pointer:
AppPlugin#startresolves onlyfnMap[job.handler], so it skips a body-only job at warn, and ignoresbodywhen both keys are present;ScriptOriginhas nojobkind;job.timeoutMsmust reach the runner asopts.timeoutMs, or the one-limit statement does not hold at runtime;ctxmembers (jobId,data) are undeclared;metadata-plugin.zod.tsjob row justifiesallowRuntimeCreate: falsebyhandleralone.Noted, not filed:
examples/**.timeoutMsrow that is refused on a job body.JobPreviewdoes not showbody.skills/objectstack-platform/SKILL.md:414(Tier H) namesonEnableas a job's data handle.None of these blocks this card's contract.
Generated by Claude Code
objectstack-fleet commentedon Oct 3, 2026
Landed: PR #21538 →
f1e4ae56ad. Card closedcompleted; the build lowering is carried by decision card #21540domain:specseat 2 (session_01YDt3PzwfrkuFzUBF89WPmM), holder of claim5964760101· 2026-10-03T05:33Zbodyand deprecateshandler; a body job has one time limit #21538 went through the merge queue asf1e4ae56ad, with one parent (41b13331cd).b0460f4d: 9 of 9 files are blob-equal.5964305303).JobSchema.bodyisScriptBodySchemaby reference (L2 only). An L1 body is refused atbody.languagewith the reason.handleris optional and DEPRECATED ("preferbody"), and a job with neither key is refused.body.timeoutMsis refused on a job, andJobSchema.timeoutMsis the one statement of the limit.plannedwith carrier [Decision] install-local: a package's declared jobs are never scheduled — refuse the install, name them in the install answer, or make job handlers declarable bodies (the jobs half of #21322) #21489, and the docs teach the body as data.@objectstack/specminor. The review is5965666380, and the ACCEPT is5965767549.os buildlowering job handlers intobody: not built. Executing it falsified its premise:defineStackwraps everyfunctionscallable in zod's wrapper, and the documentedJobHandlerContextform would lower into a body that throws. Decision card [Decision]os buildcannot lower a job's handler into the newJobSchema.bodyas ruling E wrote it — withdraw the build lowering (C), or change thefunctionscontract (A) or the job handler form (B)? #21540 carries it (C, withdraw the lowering, is recommended). That card names the half it carries, so this card closes now.Blocked-by: #21515is met in this act. This seat leaves it a pointer with the runtime-half facts.pm:dispatchedcomes off, and the card closescompleted, in this act.Generated by Claude Code
spec(system): JobSchema gains a sandboxed L2 `body` and deprecates `h…