Skip to content

Testnet end-to-end test suite #39

Open

Description

@joeblau

Description

Scripted e2e on HL testnet: init with external wallet approvals (or a disposable CI-only test signer), fund (mocked Relay), run, order/cancel/modify, events, rotate, revoke.

Acceptance criteria

  • Runs in CI nightly with secrets
  • Covers full lifecycle
  • Artifacts: events + audit logs
  • Run a coding agent using the installed/hosted skill through the dedicated testnet flow; record agent/session ID, commit, lifecycle report and event/audit artifacts (moved from SKILL.md for Claude Code / Codex #37)

Agent skill validation (from #37)

The live coding-agent session remains unverified. It is separate from the
deterministic CI harness and offline fixture tests. #37 covers the completed
skill deliverable; this issue owns both forms of live testnet evidence.

Implementation

Implementation PR: #56

The harness supports a caller-controlled external signer over JSON stdin/stdout;
the user's master key never enters the CLI or harness. The dedicated CI signer
is a separate test-only mode. See setup and protocol.

Fifteen stages reconcile both approvals, settlement, runner readiness, exact
exchange prices, correlated open/canceled events and replay, post-rotation
trading, final revocation and audit integrity. Cleanup tracks both run-owned
agents before approvals and verifies no remaining orders, agents or positions.
Schema 2 reports and CI summaries reject incomplete evidence and preserve the
separate, unverified coding-agent session requirement.

Live acceptance is pending a configured QA wallet and Privy app; offline tests
do not check these acceptance boxes.

Dependencies

Size

L

Activity

  1. joeblau commented on Oct 16, 2026

    @joeblau
    ContributorAuthor

    Implementation merged in #50. The nightly harness now fails on missing credentials and writes an explicit failure report. It verifies both agent/builder approvals, settled mocked-Relay funding, runner RPC, resting order acceptance, reconciled modify/cancel, real event replay/follow, rotation/old revocation, final exchange revocation and audit integrity. A disposable clean test account is required; artifact exports are allowlisted and secret-checked. Stronger offline CLI/SDK/RPC lifecycle and harness regressions pass.

    Keeping live CI acceptance open. Configure the testnet environment with a company-owned disposable QA account/app, never production user credentials: BLOXWAP_TEST_MASTER_KEY, BLOXWAP_PRIVY_APP_ID and BLOXWAP_PRIVY_APP_SECRET. The account needs at least 30 test USDC and no positions/orders/agent approvals. Then run the Testnet lifecycle workflow and attach the successful lifecycle-report.json plus event/audit artifacts and run/commit IDs. Hyperliquid testnet and Privy are live; Relay remains an explicit zero-value mock backed by pre-funded test collateral.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions