Skip to content

test: add external signing and lifecycle verification (#39) - #56

Merged
joeblau merged 1 commit into
mainfrom
feat/byow-testnet-e2e
Oct 18, 2026
Merged

joeblau merged 1 commit into
mainfrom
feat/byow-testnet-e2e

Conversation

@joeblau

@joeblau joeblau commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

The testnet harness now supports approvals from a caller-controlled external wallet without receiving its private key, alongside the separate CI-only disposable test signer. Production users continue to bring their own wallet and Privy app.

The fifteen-stage lifecycle checks exact exchange prices, correlated order events and replay, trading after rotation, final revocation and audit integrity. Cleanup tracks both agents before approval, verifies zero remaining orders/agents/positions and confirms runner exit before exporting journals. The nightly job preserves the self-hosted Mac runner setup and uses a fresh Linux container for wallet state. Schema 2 reports and the nightly CI summary reject missing or incomplete evidence; stale journals cannot be reused as current evidence. Relay remains an explicit zero-value mock backed by pre-funded test collateral.

Validation: build, lint, typecheck, 229 offline tests, docs checks and static docs build pass. Tests cover real EIP-712 signature recovery, actual CLI approval payload compatibility, interrupted rotation, malformed/excessive follower output, process shutdown and report verification. A clean Linux ARM64 / Node 24 container also passed install/build and produced the expected validated missing-configuration failure report with zero lifecycle stages. No live trading or production credentials were used.

Refs #39 and the bring-your-own-wallet requirement in #11. #39 remains open: the testnet environment needs dedicated QA configuration, and acceptance still requires a credentialed nightly run plus a separate coding-agent skill session with journal evidence. The deterministic harness does not claim that independent session.

@joeblau
joeblau force-pushed the feat/byow-testnet-e2e branch from dcc4675 to 5725150 Compare October 18, 2026 17:33
@joeblau joeblau mentioned this pull request Oct 18, 2026
4 tasks
@joeblau
joeblau merged commit dff0e24 into main Oct 18, 2026
8 checks passed
@joeblau
joeblau deleted the feat/byow-testnet-e2e branch October 18, 2026 17:39
cursor Bot pushed a commit that referenced this pull request Oct 18, 2026
Keep #56 testnet harness updates and the NPM_TOKEN publish path
(no OIDC trusted publishing or automatic provenance).

Co-authored-by: Joe Blau <[email protected]>
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