Skip to content

Add preflight, observability and demo controls to the CLI#31

Merged
heijiLee merged 3 commits into
feature/clifrom
feature/cli-v2
Jul 7, 2026
Merged

Add preflight, observability and demo controls to the CLI#31
heijiLee merged 3 commits into
feature/clifrom
feature/cli-v2

Conversation

@heijiLee

@heijiLee heijiLee commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Stacked on #30 (CLI-002). Seven additions that expose what the stack already supports:

  • check <buyer> — per-element preflight matrix + engine verdict WITHOUT trading (dynamic recipe/element enumeration; asset-side elements labeled; rejected → exit 1)
  • sell — AMM sell direction (context shape verified field-by-field against the integration sell test)
  • balances, faucet — portfolio view + demo-only quote minting
  • watch [--from N] — live decoded event tail (Executed, RFQFilled, manifest lifecycle, SurveillanceFlag …)
  • snapshot/restore — Anvil state checkpoints for demo resets
  • quote-inspect — RFQ quote validation (signer recovery via the shared EIP-712 lib, expiry/nonce/approval state)

No src/ or script/ changes. Smoke green (incl. tampered-signature FAIL path); verified against a live node: fresh-account check 4×FAIL → setup → all-PASS → snapshot/damage/restore round-trip → watch replay. Suite 238/238.

@heijiLee

heijiLee commented Jul 7, 2026

Copy link
Copy Markdown
Contributor Author

Folding into #30 per review preference.

@heijiLee heijiLee merged commit b623695 into feature/cli Jul 7, 2026
1 check passed
@heijiLee heijiLee deleted the feature/cli-v2 branch July 7, 2026 13:16
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