Skip to content

feat: MIT reference Execute server with self-signed local receipts - #442

Merged
abrichr merged 4 commits into
mainfrom
feat/serve-execute-ref-2026-08-30
Sep 2, 2026
Merged

feat: MIT reference Execute server with self-signed local receipts#442
abrichr merged 4 commits into
mainfrom
feat/serve-execute-ref-2026-08-30

Conversation

@abrichr

@abrichr abrichr commented Aug 30, 2026

Copy link
Copy Markdown
Member

openadapt-flow serve-execute hosts the public Execute v1 contract on loopback. Same request schema as the documented POST /v1/executions path. The runner is this process.

Receipts are self-signed with an Ed25519 key under ~/.openadapt/execute-ref/. Issuer is self_signed and production_seal is false. Meter is $0. GET /seals/{id} is the local verify page. Counterparties that need an OpenAdapt Seal still go through Cloud.

Admitted bundles live as digest-pinned JSON in that data dir. --seed-mockmed writes the synthetic MockMed ok and banner-lie admissions used by the tests.

What to check:

  • tests/test_execute_ref.py covers a verified receipt, the banner-lie halt, idempotency, extra-key refusal, no screenshot fields, and no tenant/billing modules.
  • openadapt_flow/execute/ is MIT engine code. Don't copy Cloud control-plane modules into it.

Run:

pip install 'openadapt-flow[execute]'
openadapt-flow serve-execute --port 8787 --seed-mockmed

Opened by an agent session, not the founder.

@abrichr
abrichr force-pushed the feat/serve-execute-ref-2026-08-30 branch from 171b808 to 9e88ca8 Compare September 1, 2026 23:00
Host the public Execute v1 HTTP+MCP contract in-process so one operator
can submit the same request schema on this machine. Receipts are
self-signed with a local Ed25519 key and are not OpenAdapt production
Seals.
The execute extra still required openadapt-types 0.10.x. Core, console,
and interop extras require 0.13.x, so `uv lock --locked` could not
resolve. Pin the extra to the same range and refresh uv.lock.
ExecuteEvidenceReceiptV1 now requires workflow_version, qualification_id,
environment_id, runner_id, nonce, and oracle_tier. Pass them from the
request and derive oracle_tier from observed effect strength.
@abrichr
abrichr force-pushed the feat/serve-execute-ref-2026-08-30 branch from 833bb60 to a34e9b8 Compare September 1, 2026 23:28
@abrichr
abrichr merged commit 60f455d into main Sep 2, 2026
19 checks passed
@abrichr
abrichr deleted the feat/serve-execute-ref-2026-08-30 branch September 2, 2026 00:43
@abrichr

abrichr commented Sep 2, 2026

Copy link
Copy Markdown
Member Author

Merged by an agent session, not the founder.

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