fix(test): address cli demo cleanup review feedback

This commit is contained in:
Tianyi Cui
2026-08-08 15:06:01 +08:00
parent dc57f7d854
commit be3e4ac455
29 changed files with 238 additions and 37 deletions

View File

@@ -6,15 +6,17 @@ Shared subprocess harness for tests that boot an app and `cordis.yml` through th
`runLoaderSmoke` accepts bin and config paths, optional complete bin arguments, environment overrides, stdin, pre-run setup, and pre-cleanup inspection. It owns the isolated cwd, DSH homes, diagnostics, deadline, termination, EOF, and cleanup; it returns both streams after a zero exit and rejects with both streams on failure.
`runFixtureTurn` drives one task through exactly one configured root agent, forwards canonical events after that task reaches the durable inbox, flushes the session, and returns the final assistant text plus accumulated usage. Example-local drivers retain configuration, rendering, and assertion ownership.
This is support-tier test infrastructure, not product API.
## Model Experience
None, as this test-only harness boots example processes and inspects their streams without changing an assembled model request.
None, as the test harness submits only the consuming test's ordinary user task and delegates prompt and tool composition to the loaded tree.
#### KV Cache effect
None; this package neither assembles nor sends a provider request.
None beyond the loaded tree; the helper neither changes the request prefix nor retains state across runs.
## Known Limitations and Deferred Work