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
reading first: travel_expense operation file_and_submit_from_text answers 500 on every attempt — no persona linked to an employee, and a thrown script error reaches the caller as a bare 500 #34998
area:aiAI-native — agent / tool / skill metadata, and the MCP surface an agent drivesdomain:serverDomain lane — seat card indexed by label:pm:seatpriority:p1High: required for production / M2
Filed by triage at the request of repo:objectstack#3 (mailbox #32588, comment 6962937578), from area o3-F's iteration-1 diagnosis of the #34958 / #34951 recordings (travel_expense, template b7ab31a7). It blocks the target of the ask-skill loop #34996, and it cannot be fixed in the skill text.
What happens
The build's script action for file_and_submit_from_text fails on every rep.
Likely cause: no seeded employee is linked to a user ("You have no employee record").
Separately: the platform returns a thrown script error to the caller as a bare 500 with no message.
The reading settles two things
Should the seed or the card link a persona to an employee, so the operation can succeed?
Should a script action's thrown error reach the caller as a 4xx carrying its message, rather than a 500?
If (2) is a platform change, split it out with its own grade.
Done when both are answered, and the matching fixes are made or filed, so the operation is measurable, as the loop's "operations 100%" needs.
Parent: #34659. Blocks: #34996.
Grade: p1 · domain:server · area:ai (reading first). Theme: MCP / 问数. It blocks the maintainer-requested loop, and a bare 500 tells an MCP agent nothing.
Claim: PM loop round 7 (reading first) · 2026-11-17T22:42Z
Session: session_01WGufzfrh8TiPJf1i2kMSoa
Account: os-support-ai
Branch: none yet. The reading writes no code. The seat routes any fix after the reading.
Worktree: objectstack-issue-34998 (read and repro only)
Domain: domain:server
Seat: repo:objectstack#3
File surface: none. The reading's output is a card comment. A local repro of template b7ab31a7 runs in scratch outside the repo tree.
Container & model: M, mode:subagent (area o3-H), model: TIER_DEFAULT, effort: high
Clause-②: no — the reading writes no code; if question 2 needs a platform contract change, that is split out with its own grade and claim.
Metadata-protocol: none
Responsibility: objectstack: the travel_expense build's script action file_and_submit_from_text answers a bare 500 INTERNAL_ERROR on every rep, so the operation cannot be measured and an MCP agent learns nothing | none | the ask-skill loop #34996 (operations 100%) and every MCP agent that runs a script action that fails
Thread-read: none
Premise: under reading. Measured so far at origin/main:
The runner seeds the employee persona's own record (employee/e02) with that persona's user id in user (packages/qa/scenarios/src/runner/orchestrate.tsseedRowBody, PERSON_USER_FIELD). The five-rep record shows no employee row refused. So "no seeded employee is linked to a user" is not yet shown.
A sandboxed action body's bare throw new Error('…') is read as a business refusal (400, message kept: packages/types/src/sandbox-business-message.tssandboxBusinessMessage). A native-named error (TypeError…) is a crash and gets a withheld 500. If the action had thrown "You have no employee record.", the door would have answered 400 with that text. So the 500 points at a crash or an uncoded host fault, which the reading names.
Lease o3-H (seat post #34584). Route: reproduce the operation on template b7ab31a7 as the employee persona through MCP run_action, and read the withheld fault from the server log. Name the throw and the line that makes it. Answer both questions with evidence, and name where each fix belongs (build or fixture, runner seed, or platform door). Bring the route to the seat before any code.
Result: the 500 is a platform stall in published 18.5.0, already fixed on main but not released. It is not the seed and not the body's "no employee record" throw. The diagnosis behind this card (iter1 item 5) is corrected below. The seat routes the fixes.
How it was measured
I replayed the five-rep recording (five-rep/skills/ask.rec.json, template b7ab31a7) with run-scenarios --driver recorded:… --packages … under os-verify-lock. A shim teed the server log. There were three runs:
Packages
file_and_submit_from_text (4 recorded run_action calls)
published 18.5.0 (what the five-rep ran)
500 INTERNAL_ERROR on all 4, matching the recording
18.5.0, template with hooks[] emptied
still 500 on all 4, same fault, so the claim_line hook is not the cause
origin/main 444301463 (workspace)
all 4 apply. The loop's own iter0 live run on workspace 99bd2203 also applied: claimant e02, audit actor employee
The fault (18.5.0 server log)
[action-audit] MCP run_action 'demotravel_file_expense_claim' … for user '<employee persona>', then the audited demotravel_expense_claim insert. So the body's me, trip, traveler and status guards all passed.
[BodyRunner] sandboxed action threw … "action 'demotravel_file_expense_claim' exceeded wall-clock ceiling of 30000ms while awaiting host calls (after 3647 pump iterations)". The source is budgetError's wall-clock arm (quickjs-runner.ts:248 on main).
Insert operation failed {"object":"demotravel_claim_line", … "Transaction query already complete"}: the first line insert inside ctx.api.transaction never settled, and it failed after the rollback.
The stall is in the platform's insert path for a master-detail child whose parent carries a roll-up (claim.total_amount) inside a body transaction. Inferred, not measured: a non-transaction connection waits on SQLite's single connection, which the body transaction holds. The fixing commit was not bisected; each probe needs a 12-minute build.
Why 500: the timeout SandboxError has no innerMessage, code or status, so actionsDoorAnswerOf takes arm 5, an unexpected fault (packages/types/src/actions-door-answer.ts:259-268), and answers faultAnswer500 'Internal server error' (:380).
Question 1: should the seed or the card link a persona to an employee?
Neither needs to. The link is there at operation time.
seedRowBody loads the persona's own record with user = that persona's user id (packages/qa/scenarios/src/runner/orchestrate.ts:1106-1133, PERSON_USER_FIELD in schema.ts:363). No employee row was refused.
The claim insert only runs after findOne({ where: { user: uid } }) returns e02, and the 18.5.0 log shows that insert.
This operation is the card's first and runs on the half's own seeded app (orchestrate.ts:1464-1473).
On main the operation still fails, for two other reasons:
The claim stays draft. The agent made one write and never called demotravel_submit_claim. That is agent or skill behaviour, not a fault. Whether submit works on this build was not measured.
The card pins the line shape: claim_linequantity 2 × 430 and quantity 3 × 115. The agent filed per-night and per-day lines at quantity 1, which is an equally faithful reading. total_amount = 1205, which matches what the card declares.
Question 2: should a thrown script error reach the caller as a 4xx with its message?
For a deliberate throw, it already does on main:throw new Error('msg') from an action body answers 400 with the body's sentence (sandboxBusinessMessage, sandbox-business-message.ts:106 → actionsDoorAnswerOf arm 7, actions-door-answer.ts:377; pinned by sandboxed-action-crash-is-a-fault.test.ts:119-137). "You have no employee record." would have reached the agent as a 400. It was never thrown.
What was hit here is a different class, a sandbox timeout, and its 500 matches the published contract: content/docs/api/error-catalog.mdx:711, "Handler crashed (TypeError, driver error, sandbox timeout) → 500". It is no defect against an existing contract. Whether a fault should name the action and its cause to the caller is a new contract question. #34273 (closed by #34719, declared refusals) does not settle it. #34884 is open (PR #34980, which gives a compile failure a caller sentence at 500) and is the nearest precedent.
Findings and proposed routes (the seat decides)
#
Finding
Where it belongs
Proposed
1
18.5.0 stalls a roll-up child insert inside ctx.api.transaction until the 30 s wall clock, answered 500
platform; fixed on main, unreleased
p2: the next release carries it. Optionally a regression-pin card, if main has no SQLite test for a body transaction inserting a roll-up child (not measured)
2
The seed posts rows through plain POST /api/v1/data (runner app.ts:291-293, orchestrate.ts:1192, restore :1383). A build's state_machineinitialStates: [draft] refuses every non-draft seed row: 114 claims, with 266 lines and 204 approval steps by cascade
scenarios runner seed
p1: 8 of 13 question turns and 3 of 6 operations on this card are NOT MEASURED, and the defect applies to every build with initialStates. Route: seed and restore as established facts through the platform's existing historical-import door (treatAsHistorical / skipStateMachine, packages/rest/src/import-prepare.ts:345,371; contract execution-context.zod.ts:650-690)
3
The card pins one line modelling
card docs/qa/scenarios/travel_expense.json
p2: check per-type amounts (hotel 860, meals 345), or accept either shape
4
An action-body fault (timeout or crash) reaches an MCP agent as a bare 500 naming neither the action nor the cause
platform door, new contract
p2, needs a maintainer decision, as a sibling of #34884. The reader recommends keeping 500 and adding a caller sentence naming the action and fault class (the #34980 shape). A coded TIMEOUT 504 would change error-catalog.mdx:711
Score note: the seed defect lowers no score, because the runner marks each affected turn NOT MEASURED. But the loop's question scores rest on 5 of 13 turns, and "operations 100%" can be judged on at most 3 of 6 operations until finding 2 is fixed.
Out of scope, noted for the seat: in an action body's ctx.api.transaction, the platform's own audit write logs Audit write FAILED on sys_audit_log (no such table) on both 18.5.0 and main, plus a deprecation warning about "inserting into sys_audit_log from an action body". The likely mechanism is that the audit write is routed to the transaction's primary connection instead of the telemetry datasource. Inferred.
Evidence is kept in the area container: server logs and records for the three runs. No code, no branch.
Closing as completed (area o3-H) · 2026-11-17T23:19Z
The reading (6963855363) is this card's deliverable. Both questions are answered and every finding has a carrier. Seat 3's routing, quoted:
(1) Yes. No code card for the stall, since the next release carries the fix and the loop runs main's packages anyway. A regression pin is worth having: triage will file it at p2 (sandbox body transaction with a child insert settles under the ceiling).
(2) is already #34897 / PR #34985. Route A loads run.seed as a data-only package's data[] under SEED_WRITE_EXECUTION_CONTEXT, which skips state_machine. o3-G is landing it now (main merge, then delta read). No new card.
(3) The card's quantity pin goes to triage as a p1 card under #34659, because it blocks #34996's "operations 100%": check per-type amounts instead of line quantity.
(4) Goes to triage as a p2 needs-user-decision card, a sibling of #34884, with your recommended C (keep 500, add a sentence). Not blocking.
"The agent never calls submit" is skill text. It goes to o3-F as an iteration item in #34996.
The audit write ("no such table sys_audit_log" inside a body transaction) goes to triage as a p2 finding.
Summary:
Q1: no change to the seed or the card. The persona's employee row is linked and is found at operation time.
The operation is measurable on main's packages today. What remains is the submit step and the quantity pin (the triage card in item 3).
Correction to the submit item, from o3-F's iteration 2 (workspace 99bd2203, recording skill-iter/iter2/ask.rec.json, key travel_expense/ask/run/file_and_submit_from_text/employee). The agent DID call demotravel_submit_claim, twice, right after a correct filing (claimant e02, total 1205). Both calls answered 400 HOOK_ABORTED: "update('demotravel_expense_claim') does not recognise option 'status' … Legal keys for update: …". The build's submit action passes status as an update option, so it is a build/fixture defect, not skill text. The seat routes it together with the card and build fix.
Addendum: the submit refusal is the fixture's alone (area o3-H) · 2026-11-17T23:20Z
The seat asked whether published 18.5.0 also refuses the build's submit call, or only main does. That would mean an unreleased narrowing. 18.5.0 refuses the same call. Nothing narrowed after the release. The defect is the fixture's alone, and it goes with the fresh build.
The build's demotravel_submit_claim body calls ctx.api.object('demotravel_expense_claim').update(claim.id, { status: 'submitted' }). That is an (id, data) call, but the sandbox verb is update(data, opts).
Published @objectstack/runtime@18.5.0, dist/index.js:6802: async update(data, opts) { return ql.update(objectName, data, withCtx(opts)); }. That is the same signature as main's packages/runtime/src/sandbox/body-runner.ts:1219.
Published @objectstack/objectql@18.5.0, dist/index.js:27667: rejectUnknownEngineOptions(object, "update", options, ENGINE_UPDATE_OPTION_KEYS), with the same sentence ("does not recognise option … The engine executes none of it …") as main's packages/objectql/src/engine-top-level.ts:700. So on 18.5.0, { status: 'submitted' } is read as an options bag and refused, exactly as o3-F recorded on main (400 HOOK_ABORTED).
The skills teach the right shape: skills/objectstack-ui/SKILL.md:253 and skills/objectstack-data/references/data-hooks.md:416 both write update({ id, …fields }). So this is a build slip, not a teaching gap.
How it was measured: a read of both published 18.5.0 tarballs (npm pack) against main. I did not do a live 18.5.0 run of the submit. The two code paths are byte-for-byte the same shape, so a run would add nothing a reading misses.
Routing: the fixture's submit action goes with the next fresh build of travel_expense (template after b7ab31a7). No platform card.
area:aiAI-native — agent / tool / skill metadata, and the MCP surface an agent drivesdomain:serverDomain lane — seat card indexed by label:pm:seatpriority:p1High: required for production / M2
Activity
objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzfrh8TiPJf1i2kMSoa
Claim: PM loop round 7 (reading first) · 2026-11-17T22:42Z
Session:
session_01WGufzfrh8TiPJf1i2kMSoaAccount:
os-support-aiBranch: none yet. The reading writes no code. The seat routes any fix after the reading.
Worktree:
objectstack-issue-34998(read and repro only)Domain:
domain:serverSeat:
repo:objectstack#3File surface: none. The reading's output is a card comment. A local repro of template
b7ab31a7runs in scratch outside the repo tree.Container & model:
M,mode:subagent(area o3-H),model: TIER_DEFAULT,effort: highClause-②: no — the reading writes no code; if question 2 needs a platform contract change, that is split out with its own grade and claim.
Metadata-protocol: none
Responsibility:
objectstack: the travel_expense build's script action file_and_submit_from_text answers a bare 500 INTERNAL_ERROR on every rep, so the operation cannot be measured and an MCP agent learns nothing | none | the ask-skill loop #34996 (operations 100%) and every MCP agent that runs a script action that failsThread-read: none
Premise: under reading. Measured so far at origin/main:
employee/e02) with that persona's user id inuser(packages/qa/scenarios/src/runner/orchestrate.tsseedRowBody,PERSON_USER_FIELD). The five-rep record shows no employee row refused. So "no seeded employee is linked to a user" is not yet shown.throw new Error('…')is read as a business refusal (400, message kept:packages/types/src/sandbox-business-message.tssandboxBusinessMessage). A native-named error (TypeError…) is a crash and gets a withheld 500. If the action had thrown "You have no employee record.", the door would have answered 400 with that text. So the 500 points at a crash or an uncoded host fault, which the reading names.expense_claimrows were refused (VALIDATION_FAILED, the build'sstate_machinewithinitialStates: [draft]refusing seed rows at their final status), and with them their lines and approval steps.Serial constraints cleared: n/a (no code)
Pre-claim lane:
domain:server+area:ai, epic Decision: open-source MCP — the client thinks locally, the server keeps a thin door (a metadata draft write entry for building; the data door for 问数), plus policy, version skew and the 问数 eval #34659. Routed to area o3-H by the seat at 22:36Z.Pre-claim deps: none. Blocks ask skill: iterate the objectstack-ask skill and the MCP tool descriptions against the travel_expense ask round until it meets a fixed target #34996.
Prior rulings read: actions: an action body has no refusal catalogue — a person-facing throw from an action stays in the author's language #34273 (refusal catalogue for person-facing throws) and An action body the runtime cannot compile (
const input = …in a script action) passes validate, build and verify, then answers every run_action with an opaque 500 INTERNAL_ERROR #34884 (an uncompilable body answering an opaque 500), both closed. The reading checks whether either already settles question 2.Lease
o3-H(seat post #34584). Route: reproduce the operation on templateb7ab31a7as theemployeepersona through MCPrun_action, and read the withheld fault from the server log. Name the throw and the line that makes it. Answer both questions with evidence, and name where each fix belongs (build or fixture, runner seed, or platform door). Bring the route to the seat before any code.objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzfrh8TiPJf1i2kMSoa
Reading (area o3-H) · 2026-11-17T23:17Z
Result: the 500 is a platform stall in published 18.5.0, already fixed on
mainbut not released. It is not the seed and not the body's "no employee record" throw. The diagnosis behind this card (iter1 item 5) is corrected below. The seat routes the fixes.How it was measured
I replayed the five-rep recording (
five-rep/skills/ask.rec.json, templateb7ab31a7) withrun-scenarios --driver recorded:… --packages …underos-verify-lock. A shim teed the server log. There were three runs:file_and_submit_from_text(4 recordedrun_actioncalls)500 INTERNAL_ERRORon all 4, matching the recordinghooks[]emptiedclaim_linehook is not the cause444301463(workspace)99bd2203also applied: claimante02, audit actoremployeeThe fault (18.5.0 server log)
[action-audit] MCP run_action 'demotravel_file_expense_claim' … for user '<employee persona>', then the auditeddemotravel_expense_claiminsert. So the body'sme, trip, traveler and status guards all passed.[BodyRunner] sandboxed action threw … "action 'demotravel_file_expense_claim' exceeded wall-clock ceiling of 30000ms while awaiting host calls (after 3647 pump iterations)". The source isbudgetError's wall-clock arm (quickjs-runner.ts:248on main).Insert operation failed {"object":"demotravel_claim_line", … "Transaction query already complete"}: the first line insert insidectx.api.transactionnever settled, and it failed after the rollback.The stall is in the platform's insert path for a master-detail child whose parent carries a roll-up (
claim.total_amount) inside a body transaction. Inferred, not measured: a non-transaction connection waits on SQLite's single connection, which the body transaction holds. The fixing commit was not bisected; each probe needs a 12-minute build.Why 500: the timeout
SandboxErrorhas noinnerMessage,codeorstatus, soactionsDoorAnswerOftakes arm 5, an unexpected fault (packages/types/src/actions-door-answer.ts:259-268), and answersfaultAnswer500 'Internal server error'(:380).Question 1: should the seed or the card link a persona to an employee?
Neither needs to. The link is there at operation time.
seedRowBodyloads the persona's own record withuser= that persona's user id (packages/qa/scenarios/src/runner/orchestrate.ts:1106-1133,PERSON_USER_FIELDinschema.ts:363). Noemployeerow was refused.findOne({ where: { user: uid } })returnse02, and the 18.5.0 log shows that insert.orchestrate.ts:1464-1473).On
mainthe operation still fails, for two other reasons:draft. The agent made one write and never calleddemotravel_submit_claim. That is agent or skill behaviour, not a fault. Whether submit works on this build was not measured.claim_linequantity 2 × 430andquantity 3 × 115. The agent filed per-night and per-day lines at quantity 1, which is an equally faithful reading.total_amount= 1205, which matches what the card declares.Question 2: should a thrown script error reach the caller as a 4xx with its message?
For a deliberate throw, it already does on main:
throw new Error('msg')from an action body answers 400 with the body's sentence (sandboxBusinessMessage,sandbox-business-message.ts:106→actionsDoorAnswerOfarm 7,actions-door-answer.ts:377; pinned bysandboxed-action-crash-is-a-fault.test.ts:119-137). "You have no employee record." would have reached the agent as a 400. It was never thrown.What was hit here is a different class, a sandbox timeout, and its 500 matches the published contract:
content/docs/api/error-catalog.mdx:711, "Handler crashed (TypeError, driver error, sandbox timeout) → 500". It is no defect against an existing contract. Whether a fault should name the action and its cause to the caller is a new contract question. #34273 (closed by #34719, declared refusals) does not settle it. #34884 is open (PR #34980, which gives a compile failure a caller sentence at 500) and is the nearest precedent.Findings and proposed routes (the seat decides)
ctx.api.transactionuntil the 30 s wall clock, answered 500POST /api/v1/data(runnerapp.ts:291-293,orchestrate.ts:1192, restore:1383). A build'sstate_machineinitialStates: [draft]refuses every non-draft seed row: 114 claims, with 266 lines and 204 approval steps by cascadeinitialStates. Route: seed and restore as established facts through the platform's existing historical-import door (treatAsHistorical/ skipStateMachine,packages/rest/src/import-prepare.ts:345,371; contractexecution-context.zod.ts:650-690)docs/qa/scenarios/travel_expense.jsonTIMEOUT504 would changeerror-catalog.mdx:711Score note: the seed defect lowers no score, because the runner marks each affected turn NOT MEASURED. But the loop's question scores rest on 5 of 13 turns, and "operations 100%" can be judged on at most 3 of 6 operations until finding 2 is fixed.
Out of scope, noted for the seat: in an action body's
ctx.api.transaction, the platform's own audit write logsAudit write FAILED on sys_audit_log (no such table)on both 18.5.0 and main, plus a deprecation warning about "inserting into sys_audit_log from an action body". The likely mechanism is that the audit write is routed to the transaction's primary connection instead of the telemetry datasource. Inferred.Evidence is kept in the area container: server logs and records for the three runs. No code, no branch.
objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzfrh8TiPJf1i2kMSoa
Closing as completed (area o3-H) · 2026-11-17T23:19Z
The reading (6963855363) is this card's deliverable. Both questions are answered and every finding has a carrier. Seat 3's routing, quoted:
Summary:
const input = …in a script action) passes validate, build and verify, then answers every run_action with an opaque 500 INTERNAL_ERROR #34884.99bd2203, recordingskill-iter/iter2/ask.rec.json, keytravel_expense/ask/run/file_and_submit_from_text/employee). The agent DID calldemotravel_submit_claim, twice, right after a correct filing (claimant e02, total 1205). Both calls answered400 HOOK_ABORTED: "update('demotravel_expense_claim') does not recognise option 'status' … Legal keys for update: …". The build's submit action passesstatusas an update option, so it is a build/fixture defect, not skill text. The seat routes it together with the card and build fix.Lease
o3-Hreleased.objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzfrh8TiPJf1i2kMSoa
Addendum: the submit refusal is the fixture's alone (area o3-H) · 2026-11-17T23:20Z
The seat asked whether published 18.5.0 also refuses the build's submit call, or only
maindoes. That would mean an unreleased narrowing. 18.5.0 refuses the same call. Nothing narrowed after the release. The defect is the fixture's alone, and it goes with the fresh build.demotravel_submit_claimbody callsctx.api.object('demotravel_expense_claim').update(claim.id, { status: 'submitted' }). That is an(id, data)call, but the sandbox verb isupdate(data, opts).@objectstack/runtime@18.5.0,dist/index.js:6802:async update(data, opts) { return ql.update(objectName, data, withCtx(opts)); }. That is the same signature as main'spackages/runtime/src/sandbox/body-runner.ts:1219.@objectstack/objectql@18.5.0,dist/index.js:27667:rejectUnknownEngineOptions(object, "update", options, ENGINE_UPDATE_OPTION_KEYS), with the same sentence ("does not recognise option … The engine executes none of it …") as main'spackages/objectql/src/engine-top-level.ts:700. So on 18.5.0,{ status: 'submitted' }is read as an options bag and refused, exactly as o3-F recorded on main (400 HOOK_ABORTED).skills/objectstack-ui/SKILL.md:253andskills/objectstack-data/references/data-hooks.md:416both writeupdate({ id, …fields }). So this is a build slip, not a teaching gap.How it was measured: a read of both published 18.5.0 tarballs (
npm pack) againstmain. I did not do a live 18.5.0 run of the submit. The two code paths are byte-for-byte the same shape, so a run would add nothing a reading misses.Routing: the fixture's submit action goes with the next fresh build of
travel_expense(template afterb7ab31a7). No platform card.