docs(research): close canonical run inspection task
This commit is contained in:
parent
66af201dad
commit
2ac1ff6b1a
4 changed files with 30 additions and 9 deletions
|
|
@ -475,3 +475,19 @@ Verification:
|
|||
- Web production build, application/authored-test types, contracts, explicit scoped lint, formatting, secret audit and diff checks passed. Initial test-style brace/format findings were corrected. The moved helper compares byte-for-byte with its original implementation; no old source import remains. Root reviewed selection/draft custody. No independent review, full repository check or full integration-suite rerun is claimed. The existing nonblocking Vite chunk warning remains.
|
||||
|
||||
Logs: `/tmp/stock-bot-rp26-red.log`, `rp26-ui.log`, `rp26-browser.log`, `rp26-typecheck.log`, `rp26-authored-types.log`, `rp26-contracts.log`, `rp26-lint.log`, `rp26-format.log` and `rp26-secrets.log`, all under `/tmp/stock-bot-`. The disposable PostgreSQL/Redis containers were stopped after verification. No real study was changed or run. All seven conditional tasks remain deferred.
|
||||
|
||||
## RP27 — Complete canonical run inspection
|
||||
|
||||
Plan `65c65948`, implementation `66af201d`. `ResearchClient.canonicalRunResult(runId, signal?)` now reads the existing authenticated result endpoint. AI callers can inspect complete retained requests, native fills/positions/risk, analytics and provenance. Legacy/malformed results and missing results remain read errors; no replacement run is created.
|
||||
|
||||
The backend's existing canonical validation is shared through `parseCanonicalRunResult` in the research library. It reuses the native report parser and existing statistical projection, checks completion/metadata, run/backtest/request identity and origin-derived execution kind, and returns the original payload with raw strings/nulls preserved. The database reader separately parses and compares its trusted SQL snapshot/backtest; the embedded request cannot replace a missing or different snapshot. Legacy backend reads and missing-canonical-result refusal remain intact. This adds no financial arithmetic, simulation path, permission or endpoint.
|
||||
|
||||
Verification:
|
||||
|
||||
- The capability regression failed at the missing method before implementation. Contract tests use actual Rust-produced SMA finances, including exact `9969.30000000` terminal equity and `0.70000000` fees. Negative cases cover foreign identities, execution kind, native policy/dataset/session, analytics and metadata. Fixture wall-time/package metadata is synthetic; real admission is covered separately below.
|
||||
- The first sandboxed focused run timed out in an existing native-worker subprocess and reported its terminated child. The permitted rerun passed **47 tests / 494 assertions**, with no application change to address the timeout.
|
||||
- Full integration: **1,403 passed / 14 existing conditional skips**, 10,592 assertions. Complete tooling: **158 passed / 14,394 assertions**. Focused cases overlap these totals.
|
||||
- Actual PostgreSQL AI/canonical/reproduction suites: **20 passed / 409 assertions**. Research credentials read actual isolated-candidate results and match retained service results. Failed/missing runs return 404; revoked credentials return 401. Run counts remain unchanged. A valid but different SQL snapshot and a null snapshot both fail result reads, alongside existing malformed snapshot/analytics cases.
|
||||
- Application/authored-test types, contracts, strict scoped lint, formatting, secret audit and diff checks passed. Authored assertions were corrected for branded decimal types and nullable result narrowing. Root reviewed embedded-versus-SQL binding and unchanged financial/statistical authority. No independent review, engine build, browser or full repository `check` rerun is claimed; no UI or Rust source changed.
|
||||
|
||||
Logs: `/tmp/stock-bot-rp27-red.log`, `rp27-focused.log`, `rp27-focused-permitted.log`, `rp27-integration.log`, `rp27-tooling.log`, `rp27-postgres.log`, `rp27-typecheck.log`, `rp27-authored-types.log`, `rp27-contracts.log`, `rp27-lint.log`, `rp27-format.log` and `rp27-secrets.log`, all under `/tmp/stock-bot-`. The disposable PostgreSQL container was stopped after verification. No real study was changed or executed. All seven conditional tasks remain deferred.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue