Repository navigation
test(workflows): prove real QuickJS Run and Thread recovery - #281
Merged
Merged
Conversation
yanpgwang
marked this pull request as ready for review
October 26, 2026 12:49
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem, rationale, and scope
The Run coordinator previously had only a scripted evaluator proof. This bounded research slice runs frozen real JavaScript through the existing QuickJS candidate, actual Temporal Run pump, PostgreSQL frontier/owned receipts, outboxes and Thread runner. It is test-only feasibility evidence, not public Workflow admission, complete Run lifecycle, a production JS engine decision or CMA parity.
What changed
Add internal fenced delivery/return decisions to the existing journal without a second agent loop or migration. A test-only adapter validates each bounded IPC quantum before proposing effects and replays only committed receipt deliveries in their original order. Cover parallel and sequential two-call programs, actual Thread failure/catch/fallback, replay mismatch and hard resource failure.
Verification
e85f6cdae723bd069e1188069c90014a0ff66710; fresh publication review requested.make verify, fullmake test-service, docs checks and focused real PG tests passed.-race -count=3passed.sha256:683be7683f7c30681f8b5d45e8305cf8121becfd9232d84e4745dde21ee6a834, linux/arm64. Explicit reproducible target:make test-workflow-quickjs-integrationwith disposable service addresses.{"total":12,"note":"beta-text","order":["B","A"],"tag":{"study":true}}.API impact and design provenance
No public API/SDK or schema changes. The opt-in adapter exists only in Go test files and no default worker enables it. QuickJS is the existing checksum-pinned study candidate. Official public CMA/SDK cookbook material informs workflow ownership, not a claim about CMA private language or engine. This proof is not the cookbook fact-check acceptance sample.
Durability and security
Delivery and return candidates use Session-first owner/epoch/lifecycle fences and existing outbox transactions. Program return remains a candidate with Run open: primary terminal delivery, Outcome resume and aggregate lifecycle barriers are still absent. Resource/IPC failures cannot admit partial effect batches. One local platform/profile was tested; strong isolation, supervisor-crash reaping and arbitrary-program qualification remain open. Disposable fixtures only; no credentials or user DB touched.
Checklist