Connections: Trusted Compute

Run AI work on your own trusted compute under LumenFlow's governed runtime, with policy, approvals, and proof.

Cloud governs. Your compute executes. Proof closes the loop.#

Trusted Compute is the LumenFlow pattern for routing an Ask to an enrolled connected runtime running on hardware you control — a developer machine, CI runner, private server, or edge box — and keeping the work governed by policy, approvals, and evidence in Cloud.

This is not "LumenFlow runs on anyone's machine." It is bring your own trusted compute, governed centrally.

The chain#

StepWhat happensWhere it runs
AskOperator submits intentCloud
DispatchCloud routes work to an enrolled runtimeCloud → Runtime
RulesPolicy decisions allow or deny each scopeRuntime + Cloud
Tool callsRuntime executes code edits, tests, etc.Runtime
ApprovalsRisky actions (e.g. PR creation) pause for human sign-offCloud
ProofEvidence syncs back, replay assembles the chainCloud

Run the demo#

A scripted first-cut demo exercises the full chain locally and writes a canonical evidence bundle plus a detached signature:

pnpm demo:trusted-compute --mode happy
pnpm demo:trusted-compute --mode policy-blocked

The bundle lands at evidence/demo/trusted-compute/<run-id>/ and contains the core Proof files plus a signed manifest:

FileContents
ask.jsonThe submitted Ask
node-session.jsonConnected-runtime session metadata
policy-decisions.jsonlAllow / deny decisions per scope
tool-calls.jsonlEach tool invocation with summaries
file-diff.patchCode changes produced
test-results.jsonTest outcome summary
approval.jsonApproval request and resolution record
pr-summary.mdHuman-readable PR description
replay-link.txtURL into Cloud Replay
manifest.jsonSchema version, bundle kind, run id, mode, required artifact list, artifact hashes, signer key id, and signature algorithm
manifest.sigDetached Ed25519 signature over the manifest
verifier-public-key.pemPublic key for independently checking the detached signature

Verify a bundle from the command line:

pnpm tsx scripts/demo/trusted-compute.ts --verify evidence/demo/trusted-compute/<run-id>

In happy mode, all rules allow, tool calls run, the approval gate pauses for sign-off, and the bundle captures the full transition. In policy-blocked mode, a denied rule (e.g. attempting to write a production secret) halts the run before any tool call is recorded — you will see an empty tool-calls.jsonl and a deny entry in policy-decisions.jsonl. Both modes emit a signed manifest, so a third party can verify the required files are present, the hashes match, the schema is supported, and the detached signature validates.

Scope of the first cut#

The current demo is a scripted orchestrator that exercises the same evidence and approval shapes used by the real control plane. Two pieces are deferred to follow-on work:

  • Live external runtime process — the demo simulates the runtime side; a real enrolled developer machine or connected runtime opening a network session is the next layer.
  • Real GitHub PR creation — the demo emits a pr-summary.md alongside the diff; opening an actual PR against a target repository belongs to a follow-on WU.

Naming#

The user-facing nouns follow the LumenFlow product language: Ask, Connections, Rules, Approvals, Proof. Internally these map to control-plane SDK runtimes, policy decisions, approval records, and evidence receipts. Do not introduce new product names without an accompanying ADR.