Skip to content

Latest commit

 

History

History
589 lines (509 loc) · 37.6 KB

transcript-operations.md

File metadata and controls

589 lines (509 loc) · 37.6 KB

Transcript pilot operations

This is a dedicated PeerLink deployment. It does not change a production attestor, reuse its signing key, or inherit its approval. The deployment may expose public campaign/status/attestation metadata. Mercury is first-contributor source validation; its positive live API acquisition is pending. The other listed banks use open-recipe campaigns and Wise tests are internal validation only. Infrastructure creation, a signed EIF and a synthetic job do not establish actual bank acquisition or guarantee admission.

Internal Wise validation; Mercury source-validation campaign

Mercury first-contributor source validation: $10 USDC for one accepted organization. Its first positive live API acquisition is pending and would come from the contributor; this is not a completed Peer integration. The other listed banks are open-recipe campaigns in the current release, sharing its funded budget. Wise is an existing integration/reference and is excluded from rewards; its paid tests are internal validation only. Independently verify the approved release and obtain a funded reservation before keys or inference. Static copy cannot guarantee capacity.

The internal validation service was https://9lb70whku9.execute-api.us-east-1.amazonaws.com, with measured source 629b8798fe4181a1d8e7d52fb3ad0c85d1339c7e. Fresh Nitro verification, authenticated Wise reads, ordinary NEAR grading, an automatic confirmed $5 payout and paid-job recovery after an enclave restart passed. Recovery preserved the signed receipt without another reservation, submission or model call. See the separately scoped durable evidence for verified scope and remaining limitations.

The v3 design encrypts canonical SQLite state snapshots under AES-GCM, with an immutable AWS Lambda/DynamoDB compare-and-swap authority. Descriptor v3 binds ledgerPersistence: aws_dynamodb_encrypted_snapshot, stateNamespace, stateAuthorityArn and stateWrappingKeyId alongside the payout fields. KMS Recipient decryption checks the approved PCR0/host-role PCR3 bindings; AWS HTTPS terminates inside the enclave. Atomic revision/writer-generation checks fence stale workers. Accepted grade/artifact metadata commits atomically, and exact signed transaction bytes/nonce persist before broadcast.

Restore preserves the same epoch and encrypted durable receipt-signing key only for the exact policy digest, campaigns, wallet, namespace and immutable authority. It starts paused until signed operator resume and chain reconciliation; changed policy cannot silently restore or initialize previously funded state. Interrupted submitted or verifying work fails as interrupted_execution without rerunning bank or model calls. A reserved job retains its expiry and needs a fresh challenge, explicit owner consent and new secrets before any submission.

Bank sessions, inference keys, raw reads and submission envelopes never enter the snapshot. Ingress RSA private keys are fresh per boot and never persisted; only the separate receipt signer is encrypted in durable state. Later snapshot recovery cannot recover old bank-upload decryption keys. KMS administrators remain trusted for encrypted metadata/deduplication secrecy, and cloud availability remains a trust boundary; missing, mismatched or unavailable state must stop admission. Hardware and paid-job/restart verification passed for the internal Wise test. Public incentives need a separately verified non-Wise source and release approval; confidential inference remains unavailable.

The Wise incentive epoch was subsequently retired because Wise is already integrated. Admission is permanently closed, all obligations are complete, and the remaining 5 USDC was refunded to the fixed deployer in transaction 0x814d4207d3982a1b1744bae14e74a0faa4149c05b000f54310dd25b3ccbce39d. The canonical successful transfer, recipient balance increase and zero remaining USDC were independently verified; signed retirement reconciliation recorded refunded using the same transaction identity. This proves the new durable retirement refund only. The original enclave-only 50 USDC remains unrecovered. Do not resume, refill or reuse this retired Wise incentive epoch. Keep its internal validation receipts, historical pins and existing integration reference.

Publish the independent approval manifest

After the exact image and durable paid-job/restart scope pass, publish transcripts/release.json separately from the EIF: status: approved, the exact HTTPS service URL, measured policy digest, actual PCR0/1/2/8 and a bounded future expiresAt. The manifest is excluded from the measured build inputs; publishing it cannot require rebuilding an image to embed its own PCR approval. Keep /v1/release discovery-only and point to the canonical manifest. Agents resolve and review a full Git commit independently; do not embed the publication commit's own unknown SHA in that same commit or trust an issue-supplied approval file. Record the measured source and scoped evidence separately. Recheck measured input hashes after the manifest/docs commit. The client release identity excludes only expiresAt: an expiry renewal preserves every other field, including limitations. A changed endpoint, policy, measurement or other field needs explicit review.

Static discovery and the initial budget do not establish current funded capacity. Future public admission requires a separately approved source and a fresh successful reservation. Wise is excluded from reward recruitment. Publish no “one slot left” promise.

Architecture and limits

transcripts/infra/pilot.cfn.json provisions one c6i.xlarge (4 vCPU, 8 GiB), with 2 enclave vCPU and 2048 MiB reserved by the Nitro allocator. The parent retains 2 vCPU and approximately 6 GiB. Its 32 GiB gp3 root is encrypted and deleted on instance termination. VPC and public subnet are explicit parameters; an existing dedicated verification network can be reused after live route/ownership checks.

The generated API Gateway HTTPS endpoint requires no external domain. It proxies to the dedicated host's stable Elastic IP on TCP 8080. The host API translates bounded public HTTP commands into length-prefixed JSON RPC on enclave CID 16, vsock 5100. Credentials and private job data must already be application-encrypted to the freshly attested enclave key. API Gateway, host HTTP and operators never receive bank-session or inference plaintext. Never put a key in an HTTP header, query string, URL, SSM command, Docker layer or log. Public receipt/status data must also follow the transcript API's redaction contract.

TCP 8080 is publicly reachable because API Gateway's public HTTP integration has no exclusive source security group. Gateway rate limits (2 requests/second, burst 5) can be bypassed through that address; server/enclave admission, body sizes, timeouts and concurrency bounds remain mandatory. This route protects confidentiality through the application encryption protocol, not through host-side TLS. Do not advertise a host HTTP URL as the contributor endpoint. A future private VPC link and load balancer can narrow network exposure at additional fixed cost.

Egress uses enclave-to-parent vsock CID 3, port 5101. The enclave sends a bounded newline-terminated JSON connection request {"host":"approved.example","port":443}. The parent checks enclave CID, the hostname, public resolved IP and port, replies exactly OK\n, then forwards opaque bytes. With "egressPolicy": "public_https" in the measured policy, which the open-recipe release sets, the parent accepts any lower-case DNS name whose every resolved address is global, because contributors choose the bank host under a campaign domain and the inference endpoint; without it, only names in egressHosts are accepted. IP literals, single-label names and ports other than 443 are always refused. Bank/provider TLS, certificate verification, origin pinning, HTTP paths/methods and credential routing live inside the enclave. The parent cannot substitute a TLS certificate or read cookies/model content.

The revised host IAM role allows SSM transport and explicitly scoped kms:GetPublicKey/kms:Sign for the one policy-bound payout key. It may also s3:PutObject to two prefixes of the private transcript archive bucket, write-only, so signed records are mirrored off the host; see transcript archive. It may also create a stream and put events in one CloudWatch log group, write-only, for payload-free service logs that a forwarder outside the host sends to Axiom; see transcript logs. Production secrets, other S3 access, other KMS keys, role assumption and Parameter Store remain outside that role. Native KMS signing is not restricted to enclave PCRs; authorized host and operator IAM are part of the custody trust boundary. There is no SSH key or port 22. Operators transfer reviewed source/EIF files through SSM or a short-lived presigned URL; the URL is access-bearing and must stay out of public docs and durable command-output captures.

Open-recipe campaigns in the measured policy

A campaign with an openSource block (kind: open-json-read-v1, maxReads) takes its reads from the contributor's recipe. Its sources[].origin is the bank's registrable domain written as https://domain; any https host equal to or under that domain is accepted, with paths: ["/"] and methods of ["GET"] or ["GET","POST"]. Its inferenceRoutes may list "*" as the model and may include the openai_compatible provider. rubricVersion is transcript-mapping-v1, safeSchemaFields is empty, and evidenceRequirements.requiredFields names the required roles. The policy also carries openPromptDigest, which the runtime checks against the built-in prefix and output contract at boot, and egressPolicy. Adding a bank, changing a reward or slot count, or changing a domain edits the measured policy and so needs a new signed image, a new state namespace and a newly published release manifest. GET /v1/campaigns additionally returns availability: remaining slots per campaign and remaining epoch budget.

Rolling a release epoch

The October 16 Canada release uses open-ca-v1: RBC, TD, Scotiabank, BMO and CIBC, 81 open-recipe campaigns plus Mercury, and the same 610 USDC, which the open-vn-v1 epoch returned in this confirmed refund and was funded again in one transfer. The host build of 391a370 matched both CI builders (PCR0 968d19d7…, PCR2 2edc9f43…, PCR1 and the PCR8 signer unchanged); fresh attestation, unfunded operator preflight and activation passed for the signed image. The previous image is kept on the host as releases/open-vn-v1-before-ca.

On October 15 open-vn-v1 took a code-only release (#248 follow-ups: settings words in the enclave's POST write guard, numeric currency and boolean status roles, bank_http_rate_limited, unsafe_notes_response_value). The policy was unchanged, so the epoch, ledger and 610 USDC budget were kept. The host build of c9de454 matched both CI builders (PCR0 1062e17b…, PCR2 7a04f686…, PCR1 and the PCR8 signer unchanged). Signed pause, new PCR0 approved on the open-vn-v1 state key, install, paused restore of the same epoch, fresh attestation against the new pins, install_continuous.sh, then signed resume. The previous image is kept on the host as releases/open-vn-v1-before-248; rolling back means approving PCR0 49ec5e98… again and reinstalling it.

The October 14 Vietnam release uses open-vn-v1: seven more Vietnamese banks, 76 open-recipe campaigns plus Mercury, and the same 610 USDC, which the open-p2p-v1 epoch returned in this confirmed refund and was funded again in one transfer. The host build of 1c79a1c matched both CI builders; fresh attestation, unfunded operator preflight and activation passed for the signed image.

Earlier on October 14, open-p2p-v1 opened 69 open-recipe campaigns plus Mercury with a 610 USDC budget: the 110 USDC the HDFC epoch returned in this confirmed refund plus 500 new, funded in one transfer. The host build of ab9ba19 matched both CI builders; fresh attestation, unfunded operator preflight and activation passed for the signed image.

The October 13 HDFC release used open-hdfc-v1, 35 open-recipe campaigns plus Mercury and the same 120 USDC budget. The old epoch's runtime returned 120 USDC in this confirmed refund and finalized as refunded before replacement. Fresh attestation, unfunded signing, zero-balance restore and later paid-receipt restore passed for the exact image; one HDFC contribution was paid automatically. See HDFC release evidence.

The open-recipe release of 2026-10-09 (open-public-v1), its two validation epochs and the grants release of 2026-10-11 (open-public-v2: 35 campaigns, $10 per contributor, up to five per bank, $120 funded) were rolled on the existing host in this order. Each step gates the next.

  1. Close the running epoch first: signed pause, confirm no obligations, return any unspent USDC through operator custody, then signed retire. Retirement reports refunded with amount 0 when the wallet holds no USDC. The runtime checks a pending refund for about a minute; if it is still refund_pending after the refund transaction confirms, send retire again, which only re-runs that reconcile.
  2. Create a new state stack for the new namespace and add its authority version and state key to the host role with an additive change set. A namespace holds one epoch: genesis is refused when the namespace already has a head.
  3. Set stateAuthority (function ARN, namespace, wrapping key) and initialWalletNonce (the payout wallet's current on-chain nonce) in the measured policy, and pilotBudgetMinor to the amount that will actually be funded. Commit, and let CI build the image on its two independent builders.
  4. Build the same commit on the host from a git archive extracted under umask 022; a stricter umask changes file modes inside the image and so PCR0 and PCR2. Proceed only when the host measurements equal both CI builders.
  5. Approve that PCR0 on the new state key, install the signed image, and verify with the contributor client's preflight against the release manifest.
  6. Signed operator preflight (only valid while unfunded), then install_continuous.sh while paused, then fund exactly the budget, then signed activate.
  7. Publish transcripts/release.json on main. Until it merges, contributors on main are pinned to the retired release and cannot contribute.

The payout wallet is the same KMS wallet in every release, but the budget is fixed by the measured policy: activation requires the wallet to hold exactly pilotBudgetMinor, and USDC sent to it during an epoch does not raise that epoch's budget. To add funds, roll a new release with a larger budget; the next operator preflight needs the wallet empty, so move any USDC out through operator custody first, as step 1 does.

A code fix that leaves the measured policy unchanged does not need a new namespace. Pause, build and approve the new PCR0 on the same state key, install, and the enclave restores the same epoch, ledger and budget from durable state; operator preflight is refused for a funded epoch, so go straight to signed resume. This was exercised on the second validation epoch.

Run the Python tests under 3.11, the enclave's runtime, as well as the local default. Validate any change to the acceptance path against a real account on a validation epoch before the public roll: synthetic rows are shorter than a real bank's, and one defect in the release candidate was visible only with real rows.

Provision

Use the actual verified account, region and network in the commands below. Shell variables contain coordinates only; never put application secrets in them. Check STS account ID and subnet VPC, explicit default route through an Internet Gateway, current stack ownership, expected AMI architecture and Nitro instance support. Do not overwrite an existing unrelated stack or change the reused network.

aws sts get-caller-identity --profile "$profile" --region "$region"
aws ec2 describe-subnets --profile "$profile" --region "$region" --subnet-ids "$subnet"
aws ec2 describe-instance-types --profile "$profile" --region "$region" --instance-types c6i.xlarge
python3 transcripts/infra/template.py > transcripts/infra/pilot.cfn.json
aws cloudformation validate-template --profile "$profile" --region "$region" \
  --template-body file://transcripts/infra/pilot.cfn.json
aws cloudformation create-stack --profile "$profile" --region "$region" \
  --stack-name "$stack" --template-body file://transcripts/infra/pilot.cfn.json \
  --capabilities CAPABILITY_IAM \
  --parameters ParameterKey=VpcId,ParameterValue="$vpc" \
    ParameterKey=SubnetId,ParameterValue="$subnet" \
    ParameterKey=LifetimeHours,ParameterValue=24

Supply AlarmTopicArn only for an existing SNS topic with a confirmed, tested subscription. With its default empty value, alarms exist but send no notifications; the pilot requires active operator supervision. Bootstrap installs Nitro CLI 1.5.0, Docker and Python 3.11, starts SSM/allocator, and deliberately starts no application. Check CloudFormation events and SSM online status before transferring source. Through SSM, verify cloud-init status, the package version, allocator YAML, Docker, and nitro-cli describe-enclaves (empty before first launch).

Build and measured candidate

Create a private source archive of the exact reviewed tree. Record both Git commit and archive SHA-256, including uncommitted implementation content if the pilot precedes its final commit. Normalize extraction permissions (umask 022, tar --no-same-permissions --no-same-owner) before builds. Verify the archive digest on the host before extraction. No sessions, secrets, wallet keys or ignored .local/ content enter the archive. Inspect the actual file list.

On a disposable Linux amd64 build host:

bash transcripts/infra/build_candidate.sh /opt/peer-link-transcripts/build

This uses the immutable Python base and exact-version, hash-pinned verification and transcript dependency locks, installing binary wheels only with required hash verification. The Dockerfile has an explicit runtime-file allowlist; the published release manifest, host tools, tests and caches are outside the measured image. It produces an unsigned candidate, measurements and a complete image SHA-384. Compare independent rebuild PCR0/1/2; record complete EIF hashes separately. Volatile metadata can change whole-file hashes. The existing verification/infra/normalize_eif.py may normalize an unsigned v4 candidate before signing, after its payload-preservation checks and identical PCRs are verified. Never normalize a signed image.

Sign with a dedicated transcript release certificate/key; do not reuse production attestor or wallet keys. Keep release signing keys outside the parent host/source/CI artifacts. A supervised candidate test may generate a separate short-lived ECDSA P-384 signing key on the dedicated build host with directory mode 0700 and file mode 0600. Never export/upload that key, treat it as a production release authority, or retain it after the candidate's test lifecycle. Its certificate/PCR8 is public. Nitro CLI supports sign-eif --eif-path <candidate> --signing-certificate <certificate> --private-key <protected-path-or-supported-KMS-ARN>. Capture describe-eif after signing: valid CRC/signature, real PCR0/1/2/8 and complete signed EIF SHA-384. The operator-owned measurement manifest has exactly eifSha384 and measurements containing string keys 0, 1, 2, 8; all are lowercase SHA-384 hex, nonzero. It is a comparison input, not a release approval flag.

Install on the dedicated SSM host:

# Durable state policy: reviewed NEW target is required as the fourth argument.
host_instance_id='<reviewed-new-host-instance-id>'
bash transcripts/infra/install_release.sh "$source_root" "$signed_eif" "$measurement_manifest" "$host_instance_id"

Policies with stateAuthority require the fourth reviewed instance ID (i- plus 17 lowercase hexadecimal characters). The installer rejects a missing or malformed ID before provisioning files, a virtualenv, the current symlink or services. Only a policy without durable state may use the legacy three-argument invocation. Resolve and independently verify the exact dedicated target before SSM dispatch.

The installer refuses an active release/enclave, verifies the signed file and all four PCRs against the manifest, installs pinned dependencies, and starts fixed CID 16 without debug. Services use Restart=no and are deliberately not enabled at boot until the separately reviewed continuous-service hardware gate. RAM-only policies require a new explicitly checked epoch after loss. Durable policies restore the encrypted ledger and receipt key with a fresh ingress key and fenced writer generation; admissions stay paused until a signed operator resume. There is no automatic reactivation or wallet refill. KMS custody survives enclave loss; wallet continuity and obligations must still pass the durable chain/state checks. Operational logs discard application stdout/stderr; diagnose only fixed status/reason codes and credential-free probes.

The enclave invokes transcripts.runtime --vsock-port 5100 --egress-port 5101; the parent invokes transcripts.server --port 8080 --enclave-cid 16 --vsock-port 5100 --egress-port 5101. Changing policy, image contents or the boot command requires new measurements and review.

Attestation and smoke gates

Resolve the public ApiUrl from stack outputs. Probe /health, /v1/campaigns and /v1/release. The latter is discovery-only and names the canonical release source; it is not an approved PCR manifest or trust anchor. Publish final signed image measurements and the approved manifest separately after the build, then pin that manifest independently in the contributor client. Embedding the image's own final PCRs into itself would be circular. Inspect the pinned manifest's expiry and actual service/campaign capabilities. From an independent client, obtain a fresh challenge/quote, verify AWS's Nitro trust chain/signature, nonce, timestamp, exact PCR0/1/2/8, public-key and policy bindings against independently reviewed measurements. Reject debug/zero PCRs, wrong nonce/key/policy/measurement, unsigned/unreleased image and stale quote. Never trust a server verified boolean.

Exercise a synthetic encrypted job and the real enclave TLS tunnel before sending owner-authorized bank credentials: malformed/oversized frames, replayed submission, expired reservation, wrong CID, hostname/IP/port mismatch, TLS rejection, unapproved provider/model, consent mismatch and capacity/budget rejection must fail closed. The host must not log or receive decrypted submission values. Public gateway health does not prove the bank or inference tool loop works.

Use only an owner's explicitly authorized read-only bank flow for a live check. Inference uses that contributor's approved provider credential; no Peer fallback key/billing route exists. Record provider/model, consent mode, billed usage and fixed limits; delayed provider-side quota enforcement is not an exact dollar cap. Verify confidential-provider attestation separately from ordinary provider-visible inference. Do not advertise unavailable modes.

Verified candidate checkpoint

On October 9, KMS candidate c2bc4b02e533bc82cfaf349a771d2b616f9981ee passed 165 credential-free tests and CI 37874831981. Two independent builds matched measured inputs, PCR0/1/2 and normalized unsigned EIF hashes. Fresh live Nitro certificate/COSE, nonce/key/policy/epoch, PCR and KMS descriptor/wallet bindings verified. Paid ordinary NEAR strict-JSON verification succeeded with 2048 output tokens and low reasoning effort; merchant credit was verified. These are scoped candidate/provider checks, not public release approval. A separate $1 external operator recovery confirmed the exact fixed-deployer USDC return and zero remaining balance while the relay was stopped. That confirms operator KMS custody recovery, not enclave retirement. A supervised Wise job then completed authenticated enclave acquisition, redacted NEAR grading and a confirmed $5 reward after one signed operator reconciliation from payout_pending. A fresh client restored the same signed receipt without new reservations/submissions. The one-slot test allocation has no remaining capacity; it does not approve the separate durable release. See evidence.

Wallet and state gates

The revised pilot uses a non-exportable AWS KMS payout key. Authorized operator IAM and the host broker can request signatures outside the enclave and recover funds. No exclusive-enclave or PCR-restricted key access is claimed. Verify the immutable key ARN, derived wallet and measured payoutAuthority against exact v2 epoch metadata before approval. Do not send bank or inference credentials to KMS or the signing broker. Keep the changed release paused until independent image, policy, custody and live signing checks pass.

Before allocating any funds, use the signed operator preflight action while paused with zero USDC. It must exercise real Base RPC balances/nonce and KMS signing of a one-minor-unit USDC refund. Code does not broadcast; the public operator response omits raw signatures/transaction bytes. The host broker sees the signature/digest and can reconstruct the fixed refund, so no signature secrecy from an authorized host/operator is claimed. Preserve that scoped result before funding; a synthetic signer or an old image's quote cannot establish the new route's availability. Real funding and confirmed transfers remain separate evidence gates.

The in-memory anchor only prevents replay within its live epoch. Host snapshots, database rows, signed archives and a surviving KMS key do not restore trusted ledger/nonce/dedup authority. After restart, stop admissions and require operator review of old obligations, transactions and balances before any wallet reuse.

After the paused signing preflight, complete a separately authorized $1 KMS recovery test and confirm its return before allocating the new candidate's measured $5 budget. The architecture maximum is $1,000; it is not the current funding amount. The paused The completed internal one-slot Wise pilot had capacity one. For any future campaign, require descriptor budgetMinor to match measured pilotBudgetMinor exactly. Fund only an independently attested epoch address and once within that exact budget plus bounded gas. Record address, epoch, funding transaction and chain receipt in the task's private spend ledger; public records contain no secrets. There is no automatic refill. The durable Wise release restores its exact encrypted state identity and starts paused until signed resume and chain reconciliation. Missing or mismatched state must stop admission. KMS permits operator fund recovery after enclave loss, but not safe continuation with a blank ledger. The prior enclave-only wallet already holds $50 USDC that remains unrecovered at this checkpoint. Leave that old live enclave intact while reconciling it; installing the KMS release cannot recover its old key. Mercury's experimental source-validation campaign requires its own reviewed source, funding, hardware and release approval; other banks remain planned. Positive live Mercury acquisition is pending contributor evidence.

Before a planned stop, use the implemented signed operator retire action. It irreversibly closes admission and cancels unused reservations, while submitted, verifying and payment obligations must finish. Reconcile existing payouts and archive every pending redacted signed record before retirement finalizes. The runtime refunds remaining bounded USDC only to the fixed deployer address, using one immutable refund transaction identity. It accepts no arbitrary destination, performs no ETH sweep or ledger restore. Operator KMS recovery is a separate path outside measured runtime payout rules. The flow has synthetic coverage; do not call its live refund verified until a real receipt and destination-balance check are recorded.

Independently confirm terminal job/archive state, retirement state, the exact USDC refund receipt and recipient before stopping a funded enclave. Refund confirmation is not permission to assume remaining ETH was swept. If retirement is blocked or uncertain, keep the funded epoch under supervision and reconcile the same operation; do not discard its process to update code. KMS recovery does not reconstruct its ledger; a new image or restored EBS volume cannot recover the old enclave-only key. Plan this before the infrastructure lifetime deadline.

Operator KMS recovery

This recovery CLI is for the new policy-bound KMS wallet only. It cannot recover the old enclave-only wallet. Quiesce every signer for that KMS wallet, including the enclave and operators on other machines, before planning or executing recovery; the CLI's local file lock does not coordinate their nonces.

.local/transcript-venv/bin/python -m transcripts.operator_recovery \
  --policy transcripts/policy.json --state .local/revamp/operator-recovery.json

The default is plan-only: read the KMS public key and Base balances, fees and nonce. It uses AWS profile peer, region us-east-1, and checks the exact policy-bound ARN/wallet, Base chain 8453, native USDC and fixed deployer refund recipient. Review the destination, balance and proposed bounded transfer before adding --execute under the task's fund-transfer authority. The maximum is $1,000 USDC (the architecture ceiling) and residual ETH is not swept.

Execution signs and fsyncs the raw transaction/hash to the ignored local state before broadcasting. Re-run the same command and state path to reconcile the same identity and confirm a two-block receipt. Never delete, replace or regenerate pending state, start another signer, or publish that file. Recovery can return funds but does not restore jobs, deduplication or payment ledger authority. Its live outcome requires actual chain evidence; implemented tooling alone is not a successful recovery.

confirmed_but_balance_nonzero means the saved refund confirmed but the wallet still has USDC. Preserve the confirmed record; choose a new state path only after independently verifying that receipt and quiescing every signer. For recovery_nonce_conflict or unknown_pending_nonce, inspect latest/pending nonces and identify the competing pending or mined transaction. Preserve the saved raw bytes/hash and reconcile its receipt or verified replacement/failure. Do not delete state or re-sign blindly; establish that the original cannot later settle before starting a new operation.

Monitoring, lifetime and rollback

CloudWatch alarms monitor EC2 status-check failures, API 5xx, expiry Lambda errors and a missing expiry heartbeat. The external expiry Lambda executes every five minutes and can stop only instances tagged with this CloudFormation stack ID after LifetimeHours (24 by default) since launch. It has no production stop or secret authority. Restart is manual; restarting the host resets EC2 launch-time age and needs an explicit new cost/epoch check. Stop preserves the encrypted root but destroys enclave memory. The guard is a cost bound, not fund recovery.

Reconcile the funded epoch before its lifetime deadline. Do not fund close to expiry or rely on the five-minute polling gap. The operator must plan the shutdown or explicitly extend the authorized supervised test through a reviewed stack update before risking authoritative job state or the old enclave-only key. No schedule alone guarantees complete cleanup or spend. The earlier enclave-only host has a bounded shutdown deadline of 2026-10-10 17:11:57 UTC; reconcile its unrecovered $50 before that deadline or explicitly authorize a reviewed supervised extension.

Rollback first stops admission/relay while keeping any funded enclave alive long enough for reviewed reconciliation. systemctl stop peer-link-transcript-relay removes network ingress without restarting the enclave. Once safe to discard its ephemeral ledger state, stop peer-link-transcript-enclave; its stop helper targets only the recorded enclave ID. Do not use nitro-cli terminate-enclave --all on shared hosts.

Delete only the named owning stack after verifying current account, tags and wallet disposition and a separate authorized KMS retention/recovery plan. Do not infer permission to delete or disable the payout key from permission to remove compute. Confirm stack deletion, EC2 termination, encrypted root deletion, Elastic IP release, API/roles/schedule/alarm removal, and no remaining artifact copies with credentials. The reused VPC/subnet remain outside this stack. Stopping the host alone leaves EBS, Elastic IP, API and alarm charges. Preserve redacted hardware evidence, source/image hashes and actual cost accounting.

Cost assumptions

Checked October 9, 2026 for Linux/shared/on-demand c6i.xlarge in us-east-1 using AWS Pricing API: $0.17/hour (SKU JPN4K2NQVRWGTQGS, price effective October 1). At that rate the host costs $4.08/24h or $124.10/730h. One public IPv4 costs $0.005/hour ($0.12/day, $3.65/730h). At $0.08/GB-month gp3, 32 GiB costs about $2.56/month. Combined base infrastructure is approximately $4.29/day or $130.31 per 730-hour month, before four CloudWatch alarms, detailed API metrics, API requests, Lambda/EventBridge, S3 artifacts and transfer. HTTP API pricing is usage based; check the current regional request tier. No NAT gateway/load balancer/custom domain is required. Do not assume AWS credits/free tier or quote a final reconciled bill. Rewards, gas and contributor-funded inference are separate ledger entries.

AWS reference: HTTP proxy integrations, Nitro supported instance families, enclave allocator.

The completed owner-authorized KMS pilot retired with zero USDC and zero obligations. The runtime reported refunded with amount zero and no refund transaction; this checks empty-epoch closure, not a nonzero runtime refund. Operator KMS recovery was separately verified with the $1 transfer. The dedicated NEAR test key was disabled after the job and its local in-memory credential process was stopped.

Settlement retries after the live pilot

The follow-up runtime starts at most 60 settlement attempts within a 120-second monotonic window, with existing per-call transport timeouts. It retries explicit transient RPC, relay, KMS and archive failures using the accepted job and saved payment identity. It never repeats bank acquisition or inference. Pause and permanent validation failures stop the loop; exhausted obligations remain for signed operator reconciliation. Final archival retries cannot mutate an already published signed receipt. Credential-free regressions cover these cases; the live evidence above continues to describe the earlier c2bc4b0 image and its assisted reconciliation.

Bank credentials, the inference key, submitted payload and raw read references are released before settlement. Only the broker's exact version-1 kms_unavailable response is normalized for retry; malformed responses and signature/key-integrity failures remain permanent.

Supervised recovery limits of the internally validated Wise image

The approved 629b8798 image has two deferred recovery automation limitations. If a bank/provider failure coincides with an unavailable state authority while the runtime tries to record rejection, the job can remain submitted or verifying. Signed operator reconciliation alone does not reject that job. After state access returns, the next ordinary reservation at or after the original 600-second expiry expires/prunes the stranded job and releases its capacity. An operator-reviewed restart of the same measured image also records interrupted_execution, then requires signed resume before admission. Neither path repeats bank reads or model inference; contributors should query their saved job rather than replay submission.

After restart, an already-paid record awaiting its final receipt or host archival can remain in the worklist until signed operator reconcile, including while admissions are paused. The final signed paid receipt may be unavailable, or the saved receipt may still report the older non-paid state, until reconciliation. The persisted payment identity survives. Reconciliation may sign the final receipt, then archive it, without signing or broadcasting another payment. An already-saved paid receipt is reused unchanged. These are supervised procedures, not automatic recovery guarantees. A different image/PCR requires new approval and an explicit client-pin continuity plan; do not rewrite old recovery handles or refill the wallet to work around these limitations.