Skip to content

feat(native): throughput soak + operator runbook - #17

Merged
KeyCode17 merged 1 commit into
mainfrom
v1.8.0/p4-soak-runbook
May 19, 2026
Merged

feat(native): throughput soak + operator runbook#17
KeyCode17 merged 1 commit into
mainfrom
v1.8.0/p4-soak-runbook

Conversation

@KeyCode17

Copy link
Copy Markdown
Owner

Summary

Closes v1.8.0/P4 — the infrastructure side. Live validation belongs to the operator (the test needs an AR proxy and live network).

  • px-native/tests/throughput_soak.rs — gated by NATIVE_SOAK=1. Spawns SensorNativeSolver::solve N times concurrently and asserts ≥40 req/min (configurable).
  • docs/runbook-native-bypass.md — end-to-end operator procedure: capture → calibrate → enable overlay → soak.

What this lets the user do

# 1. capture
CAPTURE_PX=1 PX_PROXIES=... \
  cargo test -p pxsolver-camoufox --test capture_sensor -- --ignored --nocapture

# 2. calibrate
px-cli calibrate px-research/captures/eT15wiaE/<ts>.json

# 3. (after iterating batch.rs) enable + soak
export PX_NATIVE_PROFILES="pedidosya.com.ar=px-native/profiles/eT15wiaE.toml"
NATIVE_SOAK=1 PX_PROXIES=... \
  cargo test -p pxsolver-native --test throughput_soak -- --ignored --nocapture

🤖 Generated with Claude Code

ADR-0024 v1.8.0 P4 — infrastructure for the live throughput test.

Adds `px-native/tests/throughput_soak.rs`: an ignored test that runs
`SensorNativeSolver::solve` N times concurrently against a live target
through `PX_PROXIES`. Asserts a configurable req/min target (default
40), reports success rate, p50/p95 latency.

Adds `docs/runbook-native-bypass.md` walking the operator through:
1. Capture ground truth via CAPTURE_PX=1 (P2).
2. Calibrate default_batch via `px-cli calibrate` (P3).
3. Enable `PX_NATIVE_PROFILES` in the server (P1).
4. Throughput soak via NATIVE_SOAK=1 (this commit).

Live validation is operator-driven from here — runtime needs an AR
residential proxy + a real Camoufox install + the user's network.

132 workspace tests still pass; clippy clean.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@KeyCode17
KeyCode17 merged commit 5db56bb into main May 19, 2026
6 checks passed
@KeyCode17
KeyCode17 deleted the v1.8.0/p4-soak-runbook branch May 19, 2026 20:28
@KeyCode17 KeyCode17 mentioned this pull request May 19, 2026
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