docs(research): close client recovery and publication stories

This commit is contained in:
Boki 2026-10-27 17:12:18 -04:00
parent cc49f0389c
commit f5eeb807b6
6 changed files with 38 additions and 12 deletions

View file

@ -11,3 +11,5 @@ Ownership: agent owns `scripts/examples/research-cycle.ts`, `scripts/test/resear
Acceptance/tests: run the actual executable with deterministic no-network fetch and journal faults after server acceptance; assert exact recovery event in stderr, empty success output, exit 1, original intent retained and no later mutation. Cover write/sync failure and a simultaneous close failure; ordinary pre-admission errors must not invent receipts or reveal the credential. Existing callable receipt/cancellation and successful workflow tests remain green.
Gates: research-cycle/client tooling suites, subprocess recovery regressions, authored types, scoped lint/formatting, root repository check. No browser suite required for a CLI-only change. Existing untrusted-candidate isolation and research authorization stay unchanged.
Accepted October 27, 2026; implementation `e3d6512b`. Independent review accepted 26 client/cycle tests / 164 assertions, including seven executable no-network regressions. Exact accepted/stopped events survive write/sync and close failure; no automatic retries or invented acceptance. Root full check, authored types, scoped lint/formatting passed; see real-data-research.md.

View file

@ -11,3 +11,5 @@ Ownership: agent owns `scripts/research-client.ts` and `scripts/test/research-cl
Acceptance/tests: first publication accepts null lineage; later default/null publication accepts the actual earlier version ID. Explicit parent mismatch still fails. Wrong family/origin/hash/invalid parent shape still fails. A repeated exact receipt recovers the same version even after a later publication becomes latest; it sends identical body/key, creates no duplicate and never executes candidate code. Verify these normal paths through real authorized routes and PostgreSQL with the existing fixture.
Gates: focused client/cycle tooling tests, authored types, scoped lint/formatting, root repository check, real PostgreSQL AI workflow tests. No browser change or browser suite needed. Preserve backend lineage and all existing authorization rules.
Accepted October 27, 2026; implementation `cc49f038`. Independent review accepted 22 client/cycle tests / 138 assertions. Real authenticated PostgreSQL workflow suite passed 3 tests / 148 assertions, including automatic/null/explicit lineage and exact receipt replay after later publications, four versions and zero runs. Root full check, authored types, scoped lint/formatting passed; see real-data-research.md.