refactor(engine): share strict native financial views (CL18)

This commit is contained in:
Boki 2026-10-26 20:30:01 -04:00
parent 580a6de75c
commit 03518c8ae4
9 changed files with 252 additions and 99 deletions

View file

@ -1,8 +1,8 @@
{
"schema_version": 1,
"plan_revision": "2026-10-26.81",
"plan_revision": "2026-10-26.82",
"repository_base": "b7aeca4",
"plan_status": "orchestrator_engine_cleanup_first_wave_complete",
"plan_status": "orchestrator_engine_cleanup_remaining_wave",
"execution_authorized": true,
"execution_scope": {
"authorized_by": "Owner: commit and continue with the rest of the tasks till 100%",
@ -2854,7 +2854,7 @@
"epic": "E11",
"priority": "P2",
"severity": "Medium",
"status": "ready",
"status": "in_progress",
"dependencies": [
"CL14"
],
@ -2875,13 +2875,13 @@
"apps/stock/web-api/src/services/stored-dataset-preparation.ts",
"test/integration/intraday-storage.test.ts"
],
"assignment": null,
"branch": null,
"assignment": "/root/implement_cl17",
"branch": "cleanup/cl17-historical-reader",
"completed_commit": null,
"blocker": null,
"release_gates": [],
"integration_state": "not_started",
"integration_base": "700ee09c",
"integration_state": "implementing",
"integration_base": "580a6de7",
"completion_evidence": "orchestrator-engine-cleanup.md"
},
{
@ -2890,7 +2890,7 @@
"epic": "E11",
"priority": "P2",
"severity": "Medium",
"status": "ready",
"status": "done",
"dependencies": [
"CL15"
],
@ -2912,14 +2912,20 @@
"apps/stock/engine/src/financial/mod.rs",
"scripts/test/native-bindings.test.ts"
],
"assignment": null,
"branch": null,
"assignment": "/root/implement_cl18",
"branch": "cleanup/cl18-native-helpers",
"completed_commit": null,
"blocker": null,
"release_gates": [],
"integration_state": "not_started",
"integration_base": "700ee09c",
"completion_evidence": "orchestrator-engine-cleanup.md"
"integration_state": "validated_pending_commit",
"integration_base": "580a6de7",
"completion_evidence": "orchestrator-engine-cleanup.md",
"reviewer": "/root/review_cl18",
"validation": {
"rust": "150 passed, 4 existing ignored",
"native": "28 passed, 227 assertions; rebuilt integrated addon",
"review": "Accepted by /root/review_cl18; root integration checks passed"
}
},
{
"id": "CL19",
@ -2927,7 +2933,7 @@
"epic": "E11",
"priority": "P2",
"severity": "Medium",
"status": "ready",
"status": "in_progress",
"dependencies": [],
"decision_dependencies": [],
"task_file": "backlog/tasks/CL19.md",
@ -2949,13 +2955,13 @@
"apps/stock/orchestrator/src/execution/strategy-recovery.ts",
"apps/stock/orchestrator/src/paper/feed.ts"
],
"assignment": null,
"branch": null,
"assignment": "/root/implement_cl19",
"branch": "cleanup/cl19-strategy-bookkeeping",
"completed_commit": null,
"blocker": null,
"release_gates": [],
"integration_state": "not_started",
"integration_base": "700ee09c",
"integration_state": "implementing",
"integration_base": "580a6de7",
"completion_evidence": "orchestrator-engine-cleanup.md"
},
{
@ -2964,7 +2970,7 @@
"epic": "E11",
"priority": "P2",
"severity": "Medium",
"status": "ready",
"status": "in_progress",
"dependencies": [
"CL14"
],
@ -2986,13 +2992,13 @@
"apps/stock/orchestrator/src/backtest/native-worker-protocol.ts",
"test/integration/retained-strategy-worker.test.ts"
],
"assignment": null,
"branch": null,
"assignment": "/root/implement_cl20",
"branch": "cleanup/cl20-typed-worker",
"completed_commit": null,
"blocker": null,
"release_gates": [],
"integration_state": "not_started",
"integration_base": "700ee09c",
"integration_state": "implementing",
"integration_base": "580a6de7",
"completion_evidence": "orchestrator-engine-cleanup.md"
},
{

View file

@ -50,3 +50,10 @@ Combined `CARGO_BUILD_JOBS=2 bun run check` passed on CL14+CL15+CL16: 132 toolin
CL14 implementation commit: `21666242`. First wave completes CL14, CL15 and CL16; CL17–CL20 are the next ready tasks and CL21 remains conditional. Prior 68 task records retain their pre-wave state.
CL16 implementation commit: `8546fce4`. Disposable test containers were stopped/removed after validation. Main checkout is the integrated source; isolated worktrees and logs are retained for inspection.
### CL18 — accepted
Replay and paper hosts now share private strict parsing and financial-view helpers. Host identities/errors stay separate; required nullable fields, reservation ordering, and paper intermediate versus final admission revisions are preserved. No financial kernel, wire version or economic policy changed.
Implemented by `/root/implement_cl18`, independently accepted by `/root/review_cl18`, integrated by `/root`. Local and root Rust gates: 150 passed, 4 existing ignored. Root rebuilt the integrated addon and ran native-bindings/native-replay/native-replay-report: 28 passed, 227 assertions. Added replay-to-paper checkpoint/view parity at each fixture boundary and nested/missing/null negatives. Explicit authored-test types, lint, format and diff checks passed. Sandbox-blocked child-worker test was stopped; the authorized rerun passed. Logs: `/tmp/stock-bot-engine-cleanup-20261026/cl18-root-{build,tests-accepted,cargo}.log`. Combined repository gate follows integration of the remaining independent stories.