Repository navigation
Send literal read calls as written, refuse bad values at preparation, commit run outcomes before answering - #6694
Conversation
… commit run outcomes before answering - CLI read: a call given with --request goes to the daemon exactly as written; only a call built from flags states the format and delivery the client prints (docs/interfaces.md, "Ready calls are complete requests"). The stream command handlers receive how the call arrived (CallForm). - Query preparation checks each value compared with a number, amount or duration field against that field's kind, so `cost > nonsense` is refused before the question gets an identity. The value rule (Kind::scalar and money_nusd) moves to polylogue-query; store compilation uses the same rule. - Execution records wait for the run outcome to commit before the answer returns, so a caller reading the cited run sees how it ended. The outcome was sent to the writer and never awaited, so a read right after the answer could find the run without its outcome. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01AcQETkbTfFMr1hgNJ8A3em
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins. |
|
Focused
|
What changed
--requestcall with CLI defaults. The stream command handlers now receive how the call arrived (CallForm::LiteralorCallForm::Flags). A literal call is sent unchanged; a call built from flags still states the format and delivery the client uses (docs/interfaces.md, "Ready calls are complete requests"). Fixescli::tests::literal_read_envelope_is_not_expanded_with_cli_defaults.sessions where cost > nonsenseprepared successfully and failed only at SQL compilation, so a historical saved definition with that text got a semantic identity. Preparation now checks each value compared with a catalog number, amount or duration field, using the bound query's typed operands. The value rule moved to its owner,polylogue-query(fields::Kind::scalar,time::money_nusd), and store compilation uses the same rule; the store's copy ofmoney_nusdis now a re-export. Fixescomposition::saved_relation_errors_reach_the_query_error_path.execution::recordsent the outcome to the writer and dropped the receipt without waiting, so a read right after the answer could find the run (begin is synchronous) without its outcome. The answer citesrun:<id>, so the record now waits for the outcome receipt. This adds one writer round trip per execution; begin already costs one. Fixesobject::tests::actual_no_effect_request_read_records_one_object_run_and_roundtrips_through_directory_import.Deleted: the store's own
money_nusdbody and the duplicate scalar parsing inconditions.rs.MCP timeout
mcp::tests::generated_ready_mcp_call_executes_its_exact_typed_envelopepasses alone in 0.67 s (job 300). I did not find what made it take more than 90 s under load, so that part is not fixed. The waits in that path that have no deadline areTestDaemon::wait_for(it polls until status is idle), theDeadline::Noneclient call, and the writer round trip on begin.Verification
-p polylogue -p polylogue-store -p polylogue-query --tests: job 296 passed.-p polylogue -p polylogue-store: job 305 (results in a comment).🤖 Generated with Claude Code
https://claude.ai/code/session_01AcQETkbTfFMr1hgNJ8A3em