docs(research): plan frozen dataset reads (RP28)
This commit is contained in:
parent
2ac1ff6b1a
commit
04892a59fe
4 changed files with 57 additions and 3 deletions
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
[manifest.json](manifest.json) owns scheduling metadata: status, priorities, dependencies, ADR approvals, assignments and write locks. Task Markdown owns implementation scope/evidence/acceptance. This index and the [graph](dependencies.mmd) are derived views. Only the planning/integration owner updates scheduling state.
|
||||
|
||||
**Current total: 103 retained IDs — 92 done, 7 deferred, 4 merged.** RP18 completes the bounded October multi-session pilot; RP01–RP17 add the authorized real-data workflow and its dataset reuse, export and workflow recovery follow-ups. The earlier 68 IDs retain their state. E11 adds seven authorized cleanup tasks and one conditional replay extraction; see the manifest for current scheduling. The original backlog accounted for 55 IDs. F09/P07 added projection/profiling work; the owner deferred P08's TypeScript optimization. Merged records preserve traceability; never execute them separately. Deferred work requires its stated trigger and explicit activation.
|
||||
**Current total: 104 retained IDs — 92 done, 1 in progress, 7 deferred, 4 merged.** RP18 completes the bounded October multi-session pilot; RP01–RP17 add the authorized real-data workflow and its dataset reuse, export and workflow recovery follow-ups. The earlier 68 IDs retain their state. E11 adds seven authorized cleanup tasks and one conditional replay extraction; see the manifest for current scheduling. The original backlog accounted for 55 IDs. F09/P07 added projection/profiling work; the owner deferred P08's TypeScript optimization. Merged records preserve traceability; never execute them separately. Deferred work requires its stated trigger and explicit activation.
|
||||
|
||||
States: ready, claimed, in_progress, review, done, blocked, deferred, merged. “Ready” means no code/ADR prerequisite, not execution authority. Implementation dependencies require accepted integration. `release_gates` govern enabling an end-to-end feature, not component coding or integration; conditional gates apply only to the named capability. F05 may integrate before F06, but its replay behavior is not released until F06 proves it.
|
||||
|
||||
|
|
@ -206,3 +206,5 @@ Owner authorized planning and per-task implementation commits. [Execution plan a
|
|||
- [RP26: Saved research revision download](tasks/RP26.md) — done, `54349502`; download exact current/historical hypotheses, notes and findings with retained citations and authorship.
|
||||
|
||||
- [RP27: Complete canonical run reads](tasks/RP27.md) — done, `66af201d`; research credentials inspect full native results through shared validation while the backend preserves trusted SQL binding.
|
||||
|
||||
- [RP28: Frozen data reads for research](tasks/RP28.md) — in progress; allow exact retained exports and verify their complete content/hash in the typed client.
|
||||
|
|
|
|||
|
|
@ -347,3 +347,7 @@ flowchart TD
|
|||
A03 --> RP27
|
||||
F08 --> RP27
|
||||
RP25 --> RP27
|
||||
|
||||
A03 --> RP28
|
||||
RP07 --> RP28
|
||||
RP27 --> RP28
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"schema_version": 1,
|
||||
"plan_revision": "2026-10-27.127",
|
||||
"plan_revision": "2026-10-27.128",
|
||||
"repository_base": "b7aeca4",
|
||||
"plan_status": "canonical_run_client_read_complete",
|
||||
"plan_status": "research_frozen_dataset_reads_in_progress",
|
||||
"execution_authorized": true,
|
||||
"execution_scope": {
|
||||
"authorized_by": "Owner: commit and continue with the rest of the tasks till 100%",
|
||||
|
|
@ -3875,6 +3875,34 @@
|
|||
"reviewer": "/root",
|
||||
"planning_commit": "65c65948",
|
||||
"review_notes": "Root reviewed shared canonical-result decoder and separate trusted SQL snapshot binding. Missing client method reproduced; permitted focused 47 tests / 494 assertions. Integration 1,403 passed with 14 existing conditional skips / 10,592 assertions; tooling 158 / 14,394; actual PostgreSQL AI/canonical/reproduction 20 / 409. Raw native payload, actual agent access/revocation, failed/missing reads, divergent/null SQL snapshots and unchanged run counts verified. App/authored types, contracts, scoped lint/formatting, secrets and diff passed. Initial sandbox worker timeout passed on permitted rerun. No independent review/engine build/browser/full check claimed. Disposable store stopped; no real study changes or deferred work."
|
||||
},
|
||||
{
|
||||
"id": "RP28",
|
||||
"title": "Read hash-verified frozen market data through research credentials",
|
||||
"epic": "E12",
|
||||
"priority": "P2",
|
||||
"severity": "Medium",
|
||||
"status": "in_progress",
|
||||
"dependencies": [
|
||||
"A03",
|
||||
"RP07",
|
||||
"RP27"
|
||||
],
|
||||
"decision_dependencies": [],
|
||||
"task_file": "backlog/tasks/RP28.md",
|
||||
"complexity": "S",
|
||||
"assignment": "/root",
|
||||
"write_locks": [
|
||||
"research-frozen-dataset-reads"
|
||||
],
|
||||
"blocker": null,
|
||||
"integration_state": "in_progress",
|
||||
"review_status": "pending",
|
||||
"completed_commit": null,
|
||||
"completion_evidence": "real-data-research.md",
|
||||
"release_gates": [],
|
||||
"authorization": "Owner: commit and continue. Narrow known-hash immutable export read under existing shared research-read scope; preserve data writes, job budgets, OS isolation and trading boundaries. No real research execution or deferred work.",
|
||||
"integration_base": "2ac1ff6b"
|
||||
}
|
||||
],
|
||||
"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.",
|
||||
|
|
|
|||
20
docs/development/backlog/tasks/RP28.md
Normal file
20
docs/development/backlog/tasks/RP28.md
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# RP28 — Read hash-verified frozen market data through research credentials
|
||||
|
||||
Parent E12. Priority P2 / Medium research capability gap. Complexity S. Dependencies A03, RP07, RP27. Owner continuation authorizes implementation and commits. All seven conditional tasks remain deferred.
|
||||
|
||||
Verified baseline: the web app already downloads `GET /api/v2/datasets/canonical/:hash/export` through the strict retained-data reader. Research credentials cannot access that path, and the typed client has no dataset method. AI clients can inspect full run results after RP27 but still need a separate operator transport to inspect their source bars.
|
||||
|
||||
Selected scope: allow only the existing exact GET/HEAD canonical export path with a lowercase 64-character hash in the research read allowlist. This makes known retained snapshots readable under the existing shared research-catalog read model; it does not add per-dataset grants or an export endpoint. Dataset listing, provider inspection/preparation/retention, other dataset paths and all data writes retain their current permissions. Job budgets, strategy OS isolation and paper/live boundaries remain unchanged. Analysis clients can read historical data; candidate callbacks still receive only published prefixes and no credentials/network.
|
||||
|
||||
Add `ResearchClient.canonicalDataset(hash, signal?)`, using the existing `validateDatasetV2` content/hash validator and matching the requested hash. Return detached, frozen retained bars/metadata without interpolation or provider queries. Callers select the exact hash from the saved run request or predeclared experiment input, including phase-specific hashes. No new storage, financial calculations, caches, input truncation or automatic research execution.
|
||||
|
||||
Affected files: research credential service/allowlist; research client and tests; authenticated AI workflow fixture/tests; existing security integration tests; README usage. The dataset export/validator implementation remains authoritative and is reused unchanged.
|
||||
|
||||
Acceptance/tests:
|
||||
|
||||
- Exact known-hash GET/HEAD export authenticates a real research credential; source/data-write/catalog/admin/trading routes remain denied as before. Malformed/extra dataset paths fail closed. Revoked credentials cannot export.
|
||||
- Typed reads preserve original bars, calendar/session/availability metadata, lineage/hash and limitations. Invalid hash inputs fail before transport; tampered content, derived-policy mismatches and a different valid dataset fail as read errors without retries.
|
||||
- Actual API tests compare exports to retained PostgreSQL payloads, demonstrate existing saved-template edits do not change a prior hash, and verify no runs/experiments/datasets are created by reads. Unknown/corrupt snapshots produce the existing 404/409 read errors. Abort/deadline behavior uses the existing client transport.
|
||||
- Run client/cycle and focused credential/security suites, complete tooling/integration, actual PostgreSQL AI/agent tests, application/authored types, contracts, strict lint/formatting and secrets. No engine/web rebuild or browser change is necessary.
|
||||
|
||||
Definition of done: reproduce the missing typed/read permission capability, add the narrow existing endpoint access and typed read, review shared research-read versus privileged data-write scope, pass gates, document usage/holdout discipline, update task state and commit. This fits ADR-007 research/data isolation; no new architecture approval is required.
|
||||
Loading…
Add table
Add a link
Reference in a new issue