Skip to content

PR B: Add durable execution records for pilot workflows - #208

Merged
chenmingtang830 merged 1 commit into
mainfrom
codex/durable-execution
Sep 28, 2026
Merged

chenmingtang830 merged 1 commit into
mainfrom
codex/durable-execution

Conversation

@chenmingtang830

Copy link
Copy Markdown
Owner

Summary

Implements the focused PR B execution envelope for the existing hosted pilot workflows: evidence.submit, experiment.ingest, and claim.evaluate when the caller supplies an idempotency key.

  • Inventories existing operation idempotency and automatic Judge jobs in docs/DURABLE_EXECUTION.md before adding records for uncovered workflows.
  • Adds versioned, content-minimizing execution and attempt rows with explicit success, retryable failure, terminal failure, and interrupted states. Service startup marks interrupted calls for explicit resubmission.
  • Reuses the kernel's atomic event/idempotency transaction. A retry after a crash between the kernel write and execution bookkeeping replays the result without duplicating governed events.
  • Defines a stable, bounded external trigger key helper and rejects conflicting keys, concurrent execution, or changed execution versions.
  • Provides Owner-only /owner/api/executions inspection and failed-attempt activity rows, linking output evidence or evaluations to later claim review and admission authority.

Verification

  • Full Python suite: 388 tests passed.
  • Final targeted execution and Owner HTTP tests: 9 passed.
  • Ruff and git diff --check passed.
  • Sdist and wheel built with both new modules included.

Scope and limits

Existing unkeyed calls keep their behavior. This slice records current deterministic intake and verification operations; it does not persist customer payloads for unattended replay or add a general-purpose background queue. Judge retains its existing policy-bound job path. An execution record never grants admission.

@vercel

vercel Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
proofpress Ready Ready Preview Sep 28, 2026 5:04pm UTC

Request Review

@chenmingtang830
chenmingtang830 merged commit 47614fa into main Sep 28, 2026
11 checks passed
@chenmingtang830
chenmingtang830 deleted the codex/durable-execution branch September 28, 2026 19:09

This branch was successfully deployed

1 active deployment
Preview — 5a6be11e Deployed Sep 28, 2026 by vercel[bot]
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