docs(research): close RP20 and predeclare bounded signal study
This commit is contained in:
parent
7de497e9b0
commit
2949680b99
6 changed files with 132 additions and 8 deletions
|
|
@ -336,3 +336,20 @@ Root verification:
|
|||
The initial restricted full-check attempt timed out in native child-worker tests and was interrupted; the permitted rerun passed. The first browser rerun used a manual build without `NODE_ENV=production` and failed at authentication before reaching the panel. Rebuilding with explicit production mode and empty `VITE_API_BASE_URL` restored the existing same-origin fixture setup; the four scenarios then passed. A test-only missing-braces lint error was corrected before acceptance. No application workaround was added for those setup failures.
|
||||
|
||||
Logs: `/tmp/stock-bot-post-rp18-result-audit.log`, `/tmp/stock-bot-rp19-red.log`, `/tmp/stock-bot-rp19-browser-red.log`, `/tmp/stock-bot-rp19-independent-ui.log`, `/tmp/stock-bot-rp19-root-check.log`, `/tmp/stock-bot-rp19-root-check-escalated.log`, `/tmp/stock-bot-rp19-browser-green.log`, `/tmp/stock-bot-rp19-browser-final.log`, `/tmp/stock-bot-rp19-root-types.log`, `/tmp/stock-bot-rp19-root-lint.log` and `/tmp/stock-bot-rp19-root-format.log`. The manifest now has 84 done, seven deferred and four merged tasks: 95 IDs. No development research runs, paper/live activation or deferred performance work occurred in RP19.
|
||||
|
||||
## RP20 — Production research authentication
|
||||
|
||||
The bounded AI-study preflight exposed a production composition defect: normal API startup supplied security without the research resolver, bypassing `createRoutes`' working default. Operator provisioning returned 403 and research bearer authentication was unavailable. Existing test hosts installed their own resolver and missed the startup discrepancy.
|
||||
|
||||
Plan `fd90d172`; accepted implementation `7de497e9`. `createWebApiSecurity` now composes the existing resolver once for the running server's HTTP and WebSocket routes and supplies the same default for standalone routes. Explicit supplied-security capabilities remain unchanged. Configuration validation still precedes store initialization; research authentication remains asynchronous HTTP-only, without gaining browser-session, WebSocket, operator or trading privileges. Financial semantics, schemas and native code are unchanged.
|
||||
|
||||
Validation:
|
||||
|
||||
- Failing baseline captured the extracted production behavior: operator provisioning expected the existing policy-validation 400, but received the erroneous capability 403. Corrected composition passes 21 focused security tests / 175 assertions, independently rerun by `/root/review_recovery_changes`.
|
||||
- Full `CARGO_BUILD_JOBS=2 bun run check` passed: 144 tooling, 43 utility, 44 calculation, 1,382 integration and 150 Rust tests. Fourteen existing conditional integration cases were skipped and four Rust measurement tests remained ignored; these are not evidence of new isolated-candidate execution.
|
||||
- Disposable PostgreSQL `test/postgres/research-agents.test.ts`: 13 tests / 143 assertions passed. The production helper and full route factory issue a real token through the operator endpoint, retain only its hash, authenticate scoped AI writes, preserve experiment/trial agent ownership, enforce quota with 429 and no extra admission, and reject after revocation. The original broader concurrency/recovery/budget cases still pass.
|
||||
- Authored-test types, scoped ESLint, Prettier and diff checks passed. The PostgreSQL container was stopped. No development database test, actual research admission, deployed-process restart or new browser E2E run was performed; existing session/CORS/WebSocket behavior was exercised through its actual route composition.
|
||||
|
||||
Two new database assertions initially used the wrong existing contracts: admission is 202 rather than 201, and trial ownership uses `research_agent_id` while experiment submission uses `submission_principal`. Both were corrected against the route and SQL28 contracts; no application change followed. Logs: `/tmp/stock-bot-rp20-baseline.log`, `/tmp/stock-bot-rp20-independent-security.log`, `/tmp/stock-bot-rp20-check.log`, `/tmp/stock-bot-rp20-postgres.log`, `/tmp/stock-bot-rp20-postgres-final.log`, `/tmp/stock-bot-rp20-postgres-accepted.log`, `/tmp/stock-bot-rp20-root-types.log` and `/tmp/stock-bot-rp20-root-lint.log`.
|
||||
|
||||
Next, [RP21](backlog/tasks/RP21.md) predeclares a September volatility-filter comparison using the existing bundled mean-reversion candidate and at most ten runs. Only timestamps, counts and missing-volume counts were inspected for that window so far; no September price/return analysis or research submission occurred. Reusing the already-tested isolated artifact avoids new strategy code. The plan labels the earlier-than-October window as retrospective holdout research and keeps all seven conditional tasks deferred.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue