docs: close first development wave with verified commit references

This commit is contained in:
Boki 2026-10-22 14:19:03 -04:00
parent 67f12b49a0
commit 6d357af983
4 changed files with 163 additions and 42 deletions

View file

@ -1,6 +1,6 @@
# First development wave: four independent assignments
**Owner authorized the planning commit and first-wave implementation on 2026-10-22.** The canonical manifest records that scope. Its four tasks may now run in isolated worktrees; this does not authorize pushes, PRs, trading operations or subsequent implementation commits.
**First wave completed and committed on 2026-10-22.** The owner authorized implementation with “make a commit and start,” then authorized the implementation and handoff commits with “do all comits.” The canonical manifest records this completed scope; later tasks, pushes, PRs and trading operations remain unauthorized. The assignments below are retained for traceability.
Choose **C01, C03, C04, W01**. They have no code/ADR prerequisites beyond global execution approval and no shared authored source files. Recommend three implementers plus one coordinator/read-only reviewer; start C01/C03/W01 and rotate C04 into the first free slot. If runtime cleanup is more urgent than the interim funding fix, start C04 before C03. This is capacity management, not a dependency.
@ -268,3 +268,35 @@ Definition of done:
Independent reviewer checks scope and exact fixtures, then the integrator runs relevant native, TS, contracts and disposable SQL checks on the combined branch. Run full `bun run check` once at integration, reporting unrelated baseline failures explicitly. No economic/provenance certification is implied by this wave; same-bar timing and canonical Rust ownership/risk remain subsequent work.
The planner records accepted evidence/commit references only when commit authority exists, updates dependencies once integrated, and then offers C02/P01/O01 plus C06 (after C04) and W02 (after W01). F01/D01 also require their ADR approvals.
## Execution record — 2026-10-22
Planning snapshot: `1148673`. C01/C03/C04/W01 were implemented in isolated worktrees, reviewed independently of their authors, integrated and validated together, then committed with owner approval. The canonical manifest records `done` and each implementation commit: C01 `74ba3b9`, C03 `a21a1b8`, C04 `3d26da0`, W01 `67f12b4`. No later task, push, PR or trading operation was started.
| Task | Verified behavior |
| --- | --- |
| C01 | Terminal liquidation costs enter the final equity mark exactly once. The one-share fixture ends at 9.92 with 0.08 fees; same-time curve samples are replaced. Existing micro-position policy is unchanged. |
| C03 | Legacy non-reducing funding checks include unpaid proposed and pending-order fees under frozen policies. The 100-share fixture rejects; 99 shares leave cash 1 after fees 99. Partial fills, cancellation and duplicates are covered. |
| C04 | Failed initialization cleans every attempted resource stage, preserves the original error and clears runtime state; cleanup failures do not prevent subsequent cleanup or retry. |
| W01 | Selection-owned polling rejects stale responses, cancellation waits for persisted state, reconnects recover, and failed/cancelled/missing results differ from successful zero-trade results. Unsupported execution controls are removed; chart playback remains intact. |
Integration verification (all passed; overlapping suites are not additive test counts):
| Command / gate | Result |
| --- | --- |
| `CARGO_BUILD_JOBS=2 bun run check` | All repository gates passed, including build, types, contracts, tooling, utilities, calculations, integration, native, lint and secret audit. |
| `CARGO_BUILD_JOBS=2 cargo test -p engine --lib --offline` | 37 passed, 0 failed. |
| Financial/lifecycle suite below | 66 passed, 0 failed, 389 assertions. |
| Exact W01 four-file command above | 68 passed, 0 failed, 406 assertions against the integrated checkout. |
| `bun run test:postgres` with disposable fixtures | 45 passed, 0 failed, 202 assertions; isolated `stock_bot_safety` database and Redis DB15, never the development trading database. |
| Scoped formatting/lint and `git diff --check` | Passed. |
Financial/lifecycle command:
```sh
bun test test/integration/fee-funding.test.ts test/integration/order-execution.test.ts test/integration/strategy-recovery.test.ts test/integration/mode-lifecycle.test.ts test/integration/native-terminal-equity.test.ts test/integration/backtest-result-mapping.test.ts test/integration/backtest-ledger.test.ts
```
The native addon was rebuilt from the integrated source; its path/hash are recorded in the manifest. Native subprocess builds/IPC and disposable database access required sandbox escalation. Existing Rust warnings and frontend build warnings remain; no unrelated cleanup was included. W01 adds pinned `happy-dom@21.0.4` for 18 React interaction tests under Bun, not a second test runner or a browser E2E claim.
Limits: this wave does not fix same-bar look-ahead execution, establish canonical Rust financial authority, change legacy short/reducing-order funding semantics, or satisfy W04's real-browser release gate. ADR-002/003/007 remain approval-gated. Worktrees are retained for handoff; temporary PostgreSQL/Redis fixture containers were removed. C06/W02 are now ready but have not been authorized or started.

View file

@ -1,8 +1,8 @@
# Revised development roadmap
Baseline `b7aeca4` · reviewed 2026-10-22 · **First-wave implementation authorized by the owner; see manifest execution_scope**
Baseline `b7aeca4` · reviewed 2026-10-22 · **First wave completed and committed; see manifest execution_scope**
Authorization update: the owner requested a planning commit and implementation start. Execute only C01/C03/C04/W01 now; later economic/timing/trust-model decisions remain gated. Historical review statements describe the planning phase, not current authorization. No push, PR, trading operation or subsequent implementation commit is authorized.
Authorization update: the owner requested a planning commit and implementation start, then authorized all pending commits. C01/C03/C04/W01 are completed, reviewed, validated and committed. Later tasks and economic/timing/trust-model decisions remain gated. Historical review statements describe the planning phase, not current authorization. No push, PR or trading operation is authorized.
## Strategy and review outcome
@ -70,7 +70,7 @@ After approval, run one financial-core owner alongside one web/product owner and
## First wave: four independent assignments
Exact copy-ready prompts, paths, commands and completion criteria: [FIRST-WAVE.md](FIRST-WAVE.md).
Completed wave; the table records its original rationale. Exact prompts, paths, commands, commit references and verification results: [FIRST-WAVE.md](FIRST-WAVE.md).
| Task | Why now | Ownership / unlock |
| --- | --- | --- |
@ -81,7 +81,7 @@ Exact copy-ready prompts, paths, commands and completion criteria: [FIRST-WAVE.m
Recommend **3 simultaneous implementers**, reserving one slot for coordination/independent review. Start C01 + C03 + W01; rotate C04 into the first freed slot, or start C04 first if runtime containment is the immediate operational need. These four have no mutual code dependencies and disjoint writable files. Four concurrent implementers are technically possible but not recommended without separate review capacity.
Next-ready work: C02, P01 and O01; F01/D01 after their ADR approvals. W02 follows W01 because they edit the same detail page, not because it requires the new engine.
Next-ready work: C02, C06, W02, P01 and O01; execution still requires owner approval. F01/D01 require their ADR approvals as well. W02 follows W01 because they edit the same detail page, not because it requires the new engine.
## Deferred and rejected

View file

@ -1,6 +1,6 @@
# Canonical development backlog
**First-wave execution is authorized; consult manifest execution_scope.** Start with [ROADMAP](../ROADMAP.md), [skeptical review](../REVIEW.md) and [first-wave prompts](../FIRST-WAVE.md). Other tasks and unresolved policies remain gated.
**First wave completed and committed; consult manifest execution_scope.** Start with [ROADMAP](../ROADMAP.md), [skeptical review](../REVIEW.md) and [first-wave handoff](../FIRST-WAVE.md). Other tasks and unresolved policies remain gated.
## One source of truth
@ -18,12 +18,12 @@ Relative size: S narrow correction, M coherent boundary, L sensitive owner-contr
| Task | Priority / status | Implementation prerequisites | Release gate | Specialist / size |
| --- | --- | --- | --- | --- |
| [C01 Correct native terminal valuation](tasks/C01.md) | P0 / ready | None | — | Rust financial correctness / S |
| [C01 Correct native terminal valuation](tasks/C01.md) | P0 / done | None | — | Rust financial correctness / S |
| [C02 Reject malformed native data and preserve milliseconds](tasks/C02.md) | P1 / ready | None | — | Rust/NAPI boundary / S |
| [C03 Close the existing TypeScript fee-funding hole](tasks/C03.md) | P0 / ready | None | — | Trading infrastructure implementation / M |
| [C04 Make partial runtime initialization recoverable](tasks/C04.md) | P1 / ready | None | — | Trading infrastructure implementation / S |
| [C03 Close the existing TypeScript fee-funding hole](tasks/C03.md) | P0 / done | None | — | Trading infrastructure implementation / M |
| [C04 Make partial runtime initialization recoverable](tasks/C04.md) | P1 / done | None | — | Trading infrastructure implementation / S |
| [C05 Create economic regression fixtures independent of implementations](tasks/C05.md) | P0 / merged → F01 | None | — | Quantitative correctness/test engineering / M |
| [C06 Contain legacy research/paper interference without a second runtime](tasks/C06.md) | P0 / blocked | C04 | — | Trading infrastructure implementation / S |
| [C06 Contain legacy research/paper interference without a second runtime](tasks/C06.md) | P0 / ready | C04 | — | Trading infrastructure implementation / S |
### E2 — Canonical Rust financial engine
@ -62,8 +62,8 @@ Relative size: S narrow correction, M coherent boundary, L sensitive owner-contr
| Task | Priority / status | Implementation prerequisites | Release gate | Specialist / size |
| --- | --- | --- | --- | --- |
| [W01 Make existing run controls and selection truthful](tasks/W01.md) | P1 / ready | None | — | Full-stack React/API / M |
| [W02 Expose result provenance and legacy correctness limitations](tasks/W02.md) | P1 / blocked | W01 | — | Full-stack research UX / M |
| [W01 Make existing run controls and selection truthful](tasks/W01.md) | P1 / done | None | — | Full-stack React/API / M |
| [W02 Expose result provenance and legacy correctness limitations](tasks/W02.md) | P1 / ready | W01 | — | Full-stack research UX / M |
| [W03 Separate save, submit and repeat-safe run creation](tasks/W03.md) | P1 / blocked | O01 | — | Full-stack durable workflow / M |
| [W04 Verify the first research vertical slice in a browser](tasks/W04.md) | P1 / blocked | W01, W02, W03, C06 | — | Full-stack test engineering / M |
@ -115,4 +115,4 @@ Relative size: S narrow correction, M coherent boundary, L sensitive owner-contr
Before any wave: unique IDs; existing task/ADR references; acyclic implementation graph; no scheduled task dependent on merged/deferred work; approvals/readiness; actual file locks; isolated native build outputs/workspace dependencies and test databases. Release gates are checked separately at activation.
First wave: **C01, C03, C04, W01**, each with a copy-ready bounded assignment in [FIRST-WAVE.md](../FIRST-WAVE.md). No task has been implemented by this planning revision.
First wave: **C01, C03, C04, W01** are implemented, independently reviewed, validated and committed with owner approval. C06 and W02 are now ready; no later task is authorized or started. Commit references, commands, results and limitations are recorded in [FIRST-WAVE.md](../FIRST-WAVE.md#execution-record--2026-10-22) and the canonical manifest.

View file

@ -1,15 +1,37 @@
{
"schema_version": 1,
"plan_revision": "2026-10-22.3",
"plan_revision": "2026-10-22.4",
"repository_base": "b7aeca4",
"plan_status": "first_wave_authorized",
"plan_status": "first_wave_complete",
"execution_authorized": true,
"execution_scope": {
"authorized_by": "User: make a commit and start (2026-10-22)",
"tasks": ["C01", "C03", "C04", "W01"],
"permissions": ["planning_snapshot_commit", "isolated_implementation", "local_tests", "local_integration_review"],
"excluded": ["push", "pull_requests", "live_or_paper_operations", "implementation_commits_without_further_approval"],
"pending_policy_decisions": ["ADR-002", "ADR-003", "ADR-007"]
"tasks": [
"C01",
"C03",
"C04",
"W01"
],
"permissions": [
"planning_snapshot_commit",
"isolated_implementation",
"local_tests",
"local_integration_review",
"first_wave_implementation_commits",
"planning_closeout_commit"
],
"excluded": [
"push",
"pull_requests",
"live_or_paper_operations",
"later_wave_implementation_without_approval"
],
"pending_policy_decisions": [
"ADR-002",
"ADR-003",
"ADR-007"
],
"commit_authorized_by": "User: do all comits (2026-10-22)"
},
"canonical_metadata": "This manifest alone owns task status, dependency edges, approvals, assignments and write locks. Task Markdown owns scope and acceptance criteria. Index/roadmap are derived views.",
"decisions": [
@ -105,7 +127,7 @@
"epic": "E1",
"priority": "P0",
"severity": "Critical",
"status": "ready",
"status": "done",
"dependencies": [],
"decision_dependencies": [],
"task_file": "backlog/tasks/C01.md",
@ -118,12 +140,17 @@
"legacy-native-finance"
],
"parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.",
"assignment": null,
"branch": null,
"assignment": "/root/wave1_c01",
"branch": "wave1/c01-terminal-equity",
"pull_request": null,
"completed_commit": null,
"completed_commit": "74ba3b97f5ff23fe940080c4492392ebd0107874",
"blocker": null,
"release_gates": []
"release_gates": [],
"worktree": "/tmp/stock-bot-wave1.edQIVs/c01",
"integration_base": "1148673",
"review_notes": "Independent source review and combined integration gates passed. Owner authorized implementation commits; completed_commit identifies the accepted change. See FIRST-WAVE.md execution record.",
"integration_state": "validated_committed",
"verification_reference": "FIRST-WAVE.md#execution-record--2026-10-22"
},
{
"id": "C02",
@ -157,7 +184,7 @@
"epic": "E1",
"priority": "P0",
"severity": "Critical",
"status": "ready",
"status": "done",
"dependencies": [],
"decision_dependencies": [],
"task_file": "backlog/tasks/C03.md",
@ -170,12 +197,17 @@
"ts-execution-model"
],
"parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.",
"assignment": null,
"branch": null,
"assignment": "/root/wave1_c03",
"branch": "wave1/c03-fee-funding",
"pull_request": null,
"completed_commit": null,
"completed_commit": "a21a1b8cb88062ac862073f9f27faa181c605165",
"blocker": null,
"release_gates": []
"release_gates": [],
"worktree": "/tmp/stock-bot-wave1.edQIVs/c03",
"integration_base": "1148673",
"review_notes": "Independent source review and combined integration gates passed. Owner authorized implementation commits; completed_commit identifies the accepted change. See FIRST-WAVE.md execution record.",
"integration_state": "validated_committed",
"verification_reference": "FIRST-WAVE.md#execution-record--2026-10-22"
},
{
"id": "C04",
@ -183,7 +215,7 @@
"epic": "E1",
"priority": "P1",
"severity": "High",
"status": "ready",
"status": "done",
"dependencies": [],
"decision_dependencies": [],
"task_file": "backlog/tasks/C04.md",
@ -196,12 +228,17 @@
"runtime-composition"
],
"parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.",
"assignment": null,
"branch": null,
"assignment": "/root/wave1_c04",
"branch": "wave1/c04-init-cleanup",
"pull_request": null,
"completed_commit": null,
"completed_commit": "3d26da07f549a9b2cde5c6811918b4404dd22bb0",
"blocker": null,
"release_gates": []
"release_gates": [],
"worktree": "/tmp/stock-bot-wave1.edQIVs/c04",
"integration_base": "1148673",
"review_notes": "Independent source review and combined integration gates passed. Owner authorized implementation commits; completed_commit identifies the accepted change. See FIRST-WAVE.md execution record.",
"integration_state": "validated_committed",
"verification_reference": "FIRST-WAVE.md#execution-record--2026-10-22"
},
{
"id": "C05",
@ -238,7 +275,7 @@
"epic": "E1",
"priority": "P0",
"severity": "Critical",
"status": "blocked",
"status": "ready",
"dependencies": [
"C04"
],
@ -834,7 +871,7 @@
"epic": "E5",
"priority": "P1",
"severity": "High",
"status": "ready",
"status": "done",
"dependencies": [],
"decision_dependencies": [],
"task_file": "backlog/tasks/W01.md",
@ -850,12 +887,17 @@
"frontend-test-dependencies"
],
"parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.",
"assignment": null,
"branch": null,
"assignment": "/root/wave1_w01",
"branch": "wave1/w01-run-controls",
"pull_request": null,
"completed_commit": null,
"completed_commit": "67f12b49a070a4ed91d83ba1518d8deb6ff75333",
"blocker": null,
"release_gates": []
"release_gates": [],
"worktree": "/tmp/stock-bot-wave1.edQIVs/w01",
"integration_base": "1148673",
"integration_state": "validated_committed",
"review_notes": "Independent source review and combined integration gates passed. Owner authorized implementation commits; completed_commit identifies the accepted change. See FIRST-WAVE.md execution record.",
"verification_reference": "FIRST-WAVE.md#execution-record--2026-10-22"
},
{
"id": "W02",
@ -863,7 +905,7 @@
"epic": "E5",
"priority": "P1",
"severity": "High",
"status": "blocked",
"status": "ready",
"dependencies": [
"W01"
],
@ -1761,5 +1803,52 @@
"release_gates": []
}
],
"review_note": "Independent skeptical revision: four superseded tasks retain stable IDs; deferred work is not a dependency of scheduled tasks. Release gates are distinct from implementation prerequisites."
"review_note": "Independent skeptical revision: four superseded tasks retain stable IDs; deferred work is not a dependency of scheduled tasks. Release gates are distinct from implementation prerequisites.",
"integration_base": "1148673",
"validation": {
"date": "2026-10-22",
"integration_base": "1148673",
"application_commit": "67f12b49a070a4ed91d83ba1518d8deb6ff75333",
"repository_check": {
"command": "CARGO_BUILD_JOBS=2 bun run check",
"status": "passed"
},
"native_tests": {
"command": "CARGO_BUILD_JOBS=2 cargo test -p engine --lib --offline",
"passed": 37,
"failed": 0
},
"financial_lifecycle_tests": {
"passed": 66,
"failed": 0,
"assertions": 389
},
"web_workflow_tests": {
"passed": 68,
"failed": 0,
"assertions": 406
},
"postgres_recovery_tests": {
"passed": 45,
"failed": 0,
"assertions": 202,
"environment": "Disposable stock_bot_safety PostgreSQL and dedicated Redis DB15; no development trading DB"
},
"native_addon": {
"path": "apps/stock/engine/dist/engine.node",
"sha256": "1ea9f519ffcc7f4153c4b0c063b4785dbabf870e2f3e2f3b5e069721fe20b361",
"build": "Rebuilt from integrated working tree"
},
"notes": [
"Native builds/IPC and disposable DB networking required sandbox escalation.",
"W01 interaction tests use Happy DOM; real-browser W04 coverage remains pending.",
"No change to same-bar execution or canonical Rust financial-policy decisions."
],
"application_commits": {
"C01": "74ba3b97f5ff23fe940080c4492392ebd0107874",
"C03": "a21a1b8cb88062ac862073f9f27faa181c605165",
"C04": "3d26da07f549a9b2cde5c6811918b4404dd22bb0",
"W01": "67f12b49a070a4ed91d83ba1518d8deb6ff75333"
}
}
}