Files
t3code/docs/operations/background-verification.md
T
+36 de34391427 feat(orchestrator): introduce new orchestrator (#2829)
Co-authored-by: maria-rcks <[email protected]>
Co-authored-by: Bilal Bakr <[email protected]>
Co-authored-by: shivam <[email protected]>
Co-authored-by: Vitalii Yehorov <[email protected]>
Co-authored-by: Jake Leventhal <[email protected]>
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Co-authored-by: Alex Southwell <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Nicholas Wasmiller <[email protected]>
Co-authored-by: PB <[email protected]>
Co-authored-by: Exotic <[email protected]>
Co-authored-by: Yash Singh <[email protected]>
Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Theo Browne <[email protected]>
Co-authored-by: Gabriel De Andrade <[email protected]>
Co-authored-by: Dara Adedeji <[email protected]>
Co-authored-by: scratchyone <[email protected]>
Co-authored-by: Dominic Roy <[email protected]>
Co-authored-by: chukfinley <[email protected]>
Co-authored-by: Primož Ajdišek <[email protected]>
Co-authored-by: benthecarman <[email protected]>
Co-authored-by: NaveDanan <[email protected]>
Co-authored-by: aaditagrawal <[email protected]>
Co-authored-by: Aditya Garud <[email protected]>
Co-authored-by: Nick Anisimov <[email protected]>
Co-authored-by: MacKinley Smith <[email protected]>
Co-authored-by: Yordis Prieto <[email protected]>
Co-authored-by: t3-code[bot] <269035359+t3-code[bot]@users.noreply.github.com>
Co-authored-by: AKolenda <[email protected]>
Co-authored-by: Guillermo Casanova <[email protected]>
Co-authored-by: Otavio Salvador <[email protected]>
Co-authored-by: Shirish Pothi <[email protected]>
Co-authored-by: Ishaan Kothari <[email protected]>
Co-authored-by: Bob Fowler <[email protected]>
Co-authored-by: Anton Bezdenezhnykh <[email protected]>
Co-authored-by: ValeraZSD <[email protected]>
Co-authored-by: Ephraim <[email protected]>
Co-authored-by: Ryan Ilano <[email protected]>
Co-authored-by: Alex <[email protected]>
Co-authored-by: maco <[email protected]>
Co-authored-by: Cursor <[email protected]>
Co-authored-by: Tristan Knight <[email protected]>
Co-authored-by: PR Batch Tester <[email protected]>
Co-authored-by: oliver <[email protected]>
Co-authored-by: kamkm <[email protected]>
Signed-off-by: Yordis Prieto <[email protected]>
2026-10-02 12:22:22 -07:00

53 lines
2.8 KiB
Markdown

# Live background-work verification
Run from the repository root with Node 24 and installed dependencies. This uses
real provider CLI credentials and consumes model usage:
```sh
node apps/server/scripts/verify-background-live.ts --repeat 2
```
Each scenario starts the production server in a fresh temporary T3 home and Git
project. It connects through authenticated HTTP and the same typed WebSocket RPC
contract as clients. There are no substituted adapters, in-memory databases, or
seeded projection rows. Existing T3 environments are not modified.
The scenarios exercise delegated completion after the parent ends its turn,
delivery into an active foreground command, native background-command wake-up,
and nested delegated results. A local HTTP request holds the actual background
command until the required parent state is observed. Its random response is not
included in the parent prompt. Passing requires the agent to retrieve that result,
acknowledge it, and finish; a delivery receipt alone is insufficient.
Assertions also check task-result publication, acknowledgement state, typed
notifications rather than additional user-message items, run boundaries, and an
empty provider background roster. Successful scenarios restart the real server
and check that the acknowledgement survives and runs remain completed. This is
a clean-restart persistence check, not proof of crash recovery during delivery.
Use `--scenario idle|active|native|nested`, `--model`, `--provider`, and `--timeout`
in seconds to narrow a run. The default provider is `claudeAgent` and the default
model is `claude-sonnet-4-6`. The native scenario specifically requests Claude's
background Bash tool; do not treat it as generic provider conformance. Active
delivery expects a provider supporting active steering. Missing authentication,
unsupported capabilities, provider failures, and model instruction violations
are failures, never skipped passes. Inspect the retained trace to distinguish them.
Check the verifier's failure detection with a real failing HTTP dependency:
```sh
node apps/server/scripts/verify-background-live.ts --scenario active --fail-gate
```
That command must exit nonzero. It must not be counted as a passing product test.
Each run prints its evidence directory. It retains the SQLite database, native
provider logs, streamed events, final projection, prompt, revision and dirty-file
inventory, and machine-readable verdict. Suite reports link every attempt,
including failures; repeating a test does not erase an earlier failure. Evidence
is local and may contain provider output. Do not upload the entire T3 home.
This loop does not verify rendered folding, mobile UI, cancellation, or abrupt
process loss between provider acceptance and receipt persistence. Those require
additional scenarios before claiming complete background-lifecycle coverage.