docs(research): close frozen dataset read task
This commit is contained in:
parent
4b9c642817
commit
aa7201d4fa
4 changed files with 156 additions and 467 deletions
|
|
@ -491,3 +491,18 @@ Verification:
|
|||
- 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.
|
||||
|
||||
## RP28 — Frozen market data reads for research
|
||||
|
||||
Plan `04892a59`, implementation `4b9c6428`. Research credentials now permit only the existing exact GET/HEAD canonical dataset export path with a lowercase 64-character hash. This deliberately extends the shared research catalog/result read model to known frozen snapshots. Listing, provider inspection/preparation/retention, other dataset paths and all data writes remain denied. It adds no per-dataset grant model or new endpoint. The operator page describes the expanded read permission.
|
||||
|
||||
`ResearchClient.canonicalDataset(hash, signal?)` reuses `validateDatasetV2` to verify all retained content, derived policies and the requested hash, returning detached, deeply frozen bars and metadata. Callers can use a saved canonical result's `request.datasetHash`. Reads do not query providers, create runs, retry failures or substitute an editable template's current dataset. README documents predeclared training inputs and untouched holdouts; isolated candidate callbacks retain their existing prefix-only context and have no network or research credentials. No financial semantics, storage, simulation or execution policy changed.
|
||||
|
||||
Verification:
|
||||
|
||||
- Two baseline capability/permission regressions failed before implementation. Final focused client/cycle/security/export suites passed **58 tests / 716 assertions**. Cases cover immutable original bars/metadata, mismatched valid hashes, content/availability/policy tampering, invalid paths/hashes, aborts, HTTP failures and no retries or writes.
|
||||
- Full integration: **1,404 passed / 14 existing conditional skips**, 10,605 assertions. The initial sole failure was the old export test's intentional research-denial expectation; it now verifies the new read permission and continued revocation/data-write denials. Complete tooling: **161 passed / 14,435 assertions**. Focused counts overlap those suites.
|
||||
- Actual PostgreSQL AI/agent suites: **18 passed / 417 assertions**. Issued credentials retrieve exact retained snapshots and HEAD attachment headers; revoked credentials return 401. Missing/corrupt snapshots return 404/409. Reads leave dataset/experiment/run counts unchanged. After a template selects another retained snapshot, the original result and its original dataset hash reopen unchanged. The first fixture changed only the template hash and correctly failed existing bounds validation; updating its matching dates/assets/frequency fixed the fixture without relaxing application validation.
|
||||
- Application/authored-test types, contracts, strict scoped lint, formatting, secrets, web production build and diff checks passed. Authored adversarial fixtures were corrected to construct malformed wire copies without assigning to readonly typed fields. The build retains the existing nonblocking Vite chunk warning. Root reviewed exact-path permission and strict content/hash validation; no independent review, native rebuild, browser rerun or full repository `check` is claimed.
|
||||
|
||||
Logs: `/tmp/stock-bot-rp28-red.log`, `rp28-focused-final.log`, `rp28-integration-final.log`, `rp28-tooling.log`, `rp28-postgres-final.log`, `rp28-typecheck.log`, `rp28-authored-types.log`, `rp28-contracts.log`, `rp28-lint.log`, `rp28-format.log`, `rp28-secrets.log` and `rp28-web-build.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