feat(verification): add pre-captured inputs, configurable proxy host, command timeouts, and TTY progress UI to run-live-verification
Makes the live verification script usable in more environments:
- Accept --og-capture and --plugin-capture to skip the Claude/opencode
spawn step entirely and verify against already-captured artifacts.
Useful when rerunning comparisons against known-good samples or when
running on hosts that cannot execute the CLIs.
- --proxy-host makes the proxy bind host and the HTTPS proxy host
configurable. Defaults to 127.0.0.1 as before.
- --command-timeout-ms enforces a hard kill on the OG/plugin spawn
after the specified duration. Positive-integer validated at parse.
- Default OG command template bumps to 'claude --bare --print {prompt}'
to match the fingerprint we verify against.
- TTY progress line (formatProgressLine + clearLine/cursorTo from
node:readline) shows current/total, label, and elapsed time during
long verification runs.
Source
- scripts/verification/run-live-verification.ts: ParsedArgs gains
ogCapturePath/pluginCapturePath/proxyHost/commandTimeoutMs. Capture
path substitutes the spawn. normalizeStoredCapture and
formatProgressLine added as pure helpers.
Tests
- tests/unit/verification/run-live-verification.test.ts: imports the
two new helpers and adds 8 assertions covering parseArgs flag
parsing, capture path substitution, and progress line formatting.
8/8 scoped tests pass. V
Vacbo committed
edad3c32918a2da5e235a3638e7bb74d84b29d17
Parent: 7f1d33d