docs: close all scheduled development backlog tasks

This commit is contained in:
Boki 2026-10-24 18:50:06 -04:00
parent 25b5cbf481
commit e4b31145da
8 changed files with 316 additions and 42 deletions

View file

@ -1,6 +1,6 @@
# Revised development roadmap
**Canonical default and bounded research access are validated.** R05/S06/A01 and the R07 measurement are complete: **41/45 scheduled tasks (91% by count)**. Remaining: A02 isolated candidate execution, P04 bounded concurrent trials, A04 human-reviewed paper promotion, and A03 the evidence-linked research client. Six conditional tasks remain deferred with their original evidence gates.
**All 45/45 scheduled tasks are complete (100%).** The canonical Rust engine, TypeScript research/workbench, bounded worker pool, isolated candidates, AI evidence workflow and human-reviewed paper promotion are validated. Implementation commits: `bbf0dd4`, `26b9726`, `25b5cbf` (R07 measurement `ab08db8`). Six conditional tasks remain deferred; four merged IDs remain redirects. This is scheduled-backlog completion, not live-trading activation.
Authorization update: the owner requested “commit and continue with the rest of the tasks till 100%”. Commit `0c6aec4` records the validated stored-source slice. Complete scheduled R05/R07/S06/P04/A01–A04 with independent review. Required table/concurrency measurements resume; conditional optimizations remain evidence-driven. The default cutover supports canonical single-asset research; unsupported multi-asset policy and real paper/live activation remain gated.
@ -23,7 +23,7 @@ The existing web workbench improves during engine migration. Legacy results rema
| [ADR-005](architecture/decisions/005-durable-cutover.md) | One Rust transition kernel; resident research state; private staged paper state under existing SQL transactions | Approved by owner continuation, 2026-10-23; paper activation separately gated |
| [ADR-006](architecture/decisions/006-research-product.md) | Existing API/queue/database; immutable versions, provenance and evidence retention; no laboratory framework | Approved by owner continuation, 2026-10-23 |
| [ADR-007](architecture/decisions/007-ai-boundary.md) | Isolated untrusted code, research-only permissions/budgets; human-only paper promotion; live disabled | Implementation authorized by owner completion instruction, 2026-10-24; paper activation human-only |
| [ADR-008](architecture/decisions/008-performance.md) | Measure actual paths; cursor replay and bounded trials; caching/DSL only when measured | Plan approval; later optimization go/no-go |
| [ADR-008](architecture/decisions/008-performance.md) | Measure actual paths; cursor replay and bounded trials; caching/DSL only when measured | Scheduled measurements approved by owner completion instruction, 2026-10-24; conditional optimization gates unchanged |
Long-only is the approved first canonical model, not deletion of short history or a silent change to current paper accounts. Short/margin support still needs a separate approved borrowing policy and fixtures. C01/C03/C04/W01 preserve the legacy behavior described in their task scopes.
@ -740,3 +740,28 @@ Research credentials are hash-only, project/template scoped and independently re
Evidence: 1233 integration/tooling tests, 254 PostgreSQL tests, 17 real-browser workflows, 150 active Rust tests; four existing Rust tests remain ignored. Final types/lint/format and production builds pass. Exact source archives, native hash, logs and limitations: manifest `thirty_seventh_wave_validation`. The async replay/controller extraction is tested groundwork for A02; arbitrary candidate execution is not claimed complete.
Next owners: A02 owns candidate contracts/SQL29/sandbox/worker; P04 owns pool and research composition; A04 owns SQL30, promotion/evidence and paper runtime/UI. Root owns migration registration, bootstrap merge, shared navigation/browser integration and acceptance. A04 can build components in parallel but candidate release waits for A02. A03 follows candidate admission. No agent independently changes financial policy.
## Thirty-eighth-wave progress — 2026-10-24
P04 committed as `26b9726`: a configurable 1/2/4-slot pool reuses existing durable claims, one-shot native workers, cancellation and result fencing. Default concurrency remains one. Root reviewed pool ownership, run-scoped controls/status, shutdown and the benchmark. Slot reuse cannot report a prior run's progress; shutdown drains all executions and reports actual shutdown failures without treating expected rejected reservations as infrastructure faults.
Five paired 24 × 10,000-bar batches at each limit produced 360 matching per-candidate economic hashes. Median whole-batch completion: 51.853s / 28.629s / 16.315s at 1/2/4 slots (0.463 / 0.838 / 1.471 trials/s). Four slots measured about 3.18× median throughput on this host; sampled driver plus descendants peaked at 2.50 / 2.59 / 3.24GB. Queue-inclusive p95 and complete raw phases/hashes are in the manifest-linked report. This is one single-asset workload, not a universal scaling claim. A shutdown-only correction followed measurement; final focused gates passed: 63 unit/integration tests, 323 assertions, plus 5 real PG/Redis/native tests, 53 assertions, static types/lint/format. No financial engine semantics changed.
This intermediate P04 record is superseded by the final acceptance below. Conditional optimizations and unsupported multi-asset production policy remain deferred.
## Thirty-eighth-wave final acceptance — 2026-10-24
Implementation committed as `25b5cbf`; all **45 scheduled tasks are done**. A02/A03/A04 join the previously committed pool and canonical cutover. Six conditional tasks (D04/P03/P05/P06/P08/O02) keep their existing evidence/approval gates, and four merged IDs remain redirects. The manifest remains the scheduling source of truth.
A02 runs arbitrary retained TypeScript in a pinned local Linux x64 image with an unprivileged child, restricted syscalls, no network or host/data/secret mounts, cgroup limits, bounded framing and an independent Rust guardian. Native replay publishes only available prefixes; the supervisor validates identity and target intent before the same Rust financial engine applies it. Process exit, actual stdout EOF, deadline, cancellation and supervisor death fail safely. Catalog approval never changes a candidate's isolated research path. The small packaging CLI transpiles self-contained TypeScript inside isolation without evaluating it or installing dependencies. Candidate warmup and deterministic behavior remain unverified author declarations.
A03 adds a typed client and one bounded example, using existing APIs and shared pure response decoders. It captures candidate proposals before reading performance, runs training before server-selected holdouts, compares completed cost studies afterward, retains failed candidates, and saves exact evidence-linked AI findings. A mandatory durable receipt journal supports explicit recovery; non-idempotent narrative/family writes are never blindly replayed. No model SDK, agent framework, additional simulator or automatic promotion is introduced.
A04 links sealed test evidence and complete cost studies to immutable human-reviewed paper deployments. Native engine/wrapper/runtime/dependency identity must match the supporting research; worker and paper-host bundles retain distinct identities. The host starts unbound/halted, verifies the original human credential and browser Origin, loads the exact approved factory, and preserves cash, positions and strategy state across restart. Actual candidate research→human promotion→Rust paper fills→restart is tested with disposable accounts. The browser can create and reopen the deployment without creating an account or activating trading.
Integration review also fixed the agent project-link/revision authorization conflict through additive SQL31, retained ambiguous-write keys across same-event edits/navigation, normalized captured UUIDs and bound candidate parameters to the returned preview. These are narrow corrections to existing paths. The canonical default remains single asset/single series and cash-funded long-only; ownerBudget is a sizing input, not a separate Rust allocation constraint. Real activation, existing account migration, live execution and the simultaneous multi-asset mark decision remain outside this completion.
Validation: full `bun run check` passed (1,408 Bun tests across tooling/utilities/calculations/integration; 150 Rust tests passed, four existing ignored). The 273-case PostgreSQL run initially found three obsolete fixture assumptions: two candidate diagnostic strings and a public engine handle replaced by the private pool. After correcting those tests, all 18 affected-file cases passed, and the typed paper-isolation event variant passed 2/36 assertions. Final-profile candidate/AI/paper database proofs passed **13/259**; root sandbox/contract proofs **21/88**; the complete browser suite **18/655**, with the candidate workflow repeated on the final image **1/19**. Explicit authored-test types, scoped lint, formatting, guardian compilation/rustfmt and independent reviews passed. The manifest retains exact commands/log hashes, intermediate failures and their superseding evidence; no unresolved check is represented as passing.
The retained `scripts/benchmark-candidate-isolation.ts --measure` diagnostic used one 1,000-bar asset/strategy, a first-process pair and five alternating warm pairs. All 12 full financial hashes matched. Warm median trusted/isolated totals were **138.1/945.1ms**; isolated startup/replay/cleanup were **282.5/575.7/80.2ms**. Shared dataset/package/preflight setup was reported separately at **203.1ms**. The first pair is not an OS-cold measurement, and this shared-host result is not a capacity guarantee or authorization for a DSL/cache rewrite. Raw phases, identities and hashes are retained with the manifest; P04's independent 1/2/4-worker measurements remain above.