Portfolio Smoke Walkthrough: Four-Call Settlement Validation
Portfolio deploy isn't done when DNS resolves. For Flomisma portfolio operators, go-live means proving the agent settlement flow works end-to-end — four API calls, deterministic pass criteria, and archived evidence. This walkthrough follows the agent-settlement-smoke template shipped in our repository.
Before you run smoke
- Clone
templates/agent-settlement-smoke/from the Lawenots repo - Complete the interactive checklist at /portfolio-deploy
- Confirm staging endpoints, API keys, and DNS cutover window with Lawenots ops
- Set
BASE_URLandAPI_KEYin the smoke environment file
Lawenots provisions infrastructure only — we do not sell protocol licenses. The smoke validates deploy wiring, not licensing entitlements.
The four calls
smoke.sh executes these in sequence. Any failure stops the run with a non-zero exit code:
| Step | Endpoint | Pass criteria |
|---|---|---|
| 1. Create | POST /settlement/create | 201 + contract ID returned |
| 2. Proof | POST /settlement/proof | 200 + proof payload attached |
| 3. Verify | POST /settlement/verify | 200 + verification status valid |
| 4. Settle | POST /settlement/settle | 200 + settlement confirmed |
Each step logs request/response bodies to stdout. Redirect output to a file — you'll need it for compliance archives.
Running the smoke
cd templates/agent-settlement-smoke cp .env.example .env # set BASE_URL and API_KEY chmod +x smoke.sh ./smoke.sh 2>&1 | tee smoke-$(date +%Y%m%d).log
A clean run prints SMOKE PASS and exits 0. Typical portfolio deploys complete in under 15 minutes when DNS and TLS are already provisioned — Vantage Finance's team recorded 11 minutes on their first attempt.
What to archive
- Smoke stdout — the
.logfile from above - ComplianceArchive export — if your stack emits one post-settle
- SENTINEL attestation — hash from public audit after go-live scan
- DNS/TLS verification —
digand SSL check output from the deploy checklist
These artifacts satisfy SOC 2 evidence requests for "deployment validation" without ad-hoc screenshots.
When smoke fails
Failures are reproducible by design. Common causes:
- Stale API key or wrong
BASE_URL(staging vs. production) - DNS not propagated — settlement host resolves to old IP
- TLS certificate not yet issued on new vhost
- Missing CORS or auth header on settlement routes
Re-run after fixing the specific step. Lawenots Portfolio plan includes operator support for smoke failures — see portfolio pricing.
Handoff checklist
After smoke passes:
- Archive all evidence to your compliance store
- Enable SENTINEL monitoring on production URLs
- Confirm backup retention and security headers per
docs/PROVISIONING_RUNBOOK.md - Sign off on the Lawenots handoff runbook with client ops contacts
Ready to validate a portfolio deploy?
Download the smoke template and walk through the interactive checklist.
Portfolio deploy pack