Skip to content

test(workflows): validate real JS fact-check pipeline and lifecycle limits - #282

Merged
yanpgwang merged 4 commits into
mainfrom
codex/workflow-factcheck-acceptance
Oct 26, 2026
Merged

yanpgwang merged 4 commits into
mainfrom
codex/workflow-factcheck-acceptance

Conversation

@yanpgwang

@yanpgwang yanpgwang commented Oct 26, 2026 •

Copy link
Copy Markdown
Owner

Problem, rationale, and scope

A two-Agent QuickJS proof does not establish that the dynamic-workflow cookbook's computational pattern works. This research slice exercises independently authored frozen JS for extract → per-item verify → conditional skeptic → final report through actual QuickJS, Run pump, PG frontier/receipts, outboxes and Thread runner. It explicitly demonstrates that the full public user loop remains unavailable; it does not claim CMA parity or a live/upstream notebook run.

What changed

  • Add an independent synthetic ten-claim fixture: reverse extraction order, ten real verifier Threads, confirmed-only skeptics, upheld/overturned results and a final report receiving exactly ten sorted merged rows.
  • Assert actual PG overlap: skeptic 2 starts while verifier 1 remains active. Hold the last item chain and require no report admission. A zero-confirmed branch creates no skeptics.
  • Inject PG delivery commit/ACK loss and replace the actual Run SDK worker on its distinct task queue while owned Thread work continues. Exercise Continue-As-New, stale-epoch rejection and stable business identities.
  • Independently inject retryable returned-provider-response loss before the CallModel Activity result; distinguish transport retries from business admissions and durably known usage.
  • Record missing lifecycle explicitly: candidate remains open, no primary report/ordinary child-report bypass, and primary end_turn/idle can coexist with open, second and paused Runs. Do not synthesize terminal events.
  • Require explicit disposable DB/Temporal endpoints centrally. Extend the existing explicit research target; no default executor or public admission is enabled.

Verification

  • Independent exact-head review PASS: 7397538af3b69a43cd356299c15d52bf8344ac4a, diff SHA-256 72a73fc9b9df09b762751b5a85fd44d092a068d9df7102410f1fd430769cd103.
  • Corrected real QuickJS/PG/Temporal computational cases and lifecycle probes passed twice under -race (102.684s), with 16/16/12 business invocations and 33/33/25 journal decisions.
  • Full make test-service-core passed: PG107.593s, Temporal74.184s; NATS/S3/core packages passed.
  • make verify passed: zero lint issues, unit/race tests and vet.
  • make docs-check passed: 70 pages with links, anchors, assets, search and Markdown exports.
  • The documented make test-workflow-quickjs-integration target passed in full (58.770s): all seven original real-JS cases, three fact-check schedules and lifecycle probes.
  • No real model smoke or hosted CMA run: paid provider calls are outside this scope.

API impact and design provenance

No public API/SDK/schema changes. Read actual pinned/current SDK08 and CMA security notebook source and saved outputs (pins and saved-script hash recorded in docs/design/workflow-dynamic-acceptance.md). The SDK saved script uses per-item pipeline concurrency, not a global verification barrier. The security application's 17/20 → three missing repairs → three inconsistent rechecks is a different business workflow and was not executed. Pure local JS pipeline and explicit JSON parsing are stated deviations from the SDK helpers/schema option; phase UI, file tools, metadata and model routing are absent. No external SDK/client is executed or added as a dependency.

Durability and security

Existing real coordination components are reused, with no second journal or agent loop. Default worker/application still enable no JS evaluator. Run terminal result, durable primary notification/final answer and aggregate lifecycle barrier remain missing. The tested QuickJS profile is one study candidate, not a production engine decision or strong-isolation qualification. Separate Run-worker replacement is not a Thread-worker hard-crash or actual server ACK-frame-loss experiment. Known response usage is counted once; lost provider work may have unobserved billed cost. Fixtures own isolated schemas/workflows/containers, and user DBs, credentials, settings and deployments are untouched.

Checklist

  • The problem, acceptance criteria, and non-goals are recorded here or in a linked design document/Issue.
  • Tests cover the changed behavior.
  • Public behavior is documented (unexposed; missing capabilities explicit).
  • Material external design influences and Mango-owned decisions are recorded.
  • No credentials, generated build output, or local databases are included.

@yanpgwang
yanpgwang marked this pull request as ready for review October 26, 2026 13:10
@yanpgwang
yanpgwang merged commit 55fa765 into main Oct 26, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant