docs(research): close typed artifact read task
This commit is contained in:
parent
e39989c4d5
commit
84d2a67d74
4 changed files with 29 additions and 9 deletions
|
|
@ -446,3 +446,18 @@ Verification:
|
|||
- Web production build, application/authored-test types, contracts, strict scoped lint, formatting, secret audit and diff checks passed. Root reviewed the correction against canonical and historical response shapes. No independent agent review, full repository check or full integration-suite rerun is claimed. The build retains the existing nonblocking Vite chunk-size warning.
|
||||
|
||||
Logs: `/tmp/stock-bot-rp24-red.log`, `rp24-ui.log`, `rp24-browser.log`, `rp24-typecheck.log`, `rp24-authored-types.log`, `rp24-contracts.log`, `rp24-lint.log`, `rp24-format.log` and `rp24-secrets.log`, all under `/tmp/stock-bot-`. Browser records use disposable stores; their PostgreSQL and Redis containers were stopped after verification. No saved real study was edited or new real-data research admitted. All seven conditional tasks remain deferred.
|
||||
|
||||
## RP25 — Typed artifact and history reads
|
||||
|
||||
Plan `f9b97c30`, implementation `e39989c4`. AI callers can now reopen saved findings/notes with `ResearchClient.artifact(id, signal?)` and their immutable histories with `artifactRevisions(id, signal?)`. These use the existing authenticated GET endpoints. The original saved revision ID selects the original interpretation even after later edits; README documents checking for its presence instead of substituting latest.
|
||||
|
||||
Read decoders preserve ownership, archival state, revision IDs/ordinals, actual authorship, source, evidence units, availability and legacy qualifications. Parent identities, duplicate history IDs/ordinals, metric references and result/engine labels are checked. Human revisions and service notes can be read without weakening the existing strict AI/canonical finding-creation contract. A shared availability predicate preserves its previous behavior. No financial calculation or backend/schema change was introduced.
|
||||
|
||||
Verification:
|
||||
|
||||
- Two baseline capability tests failed before implementation. Final client/cycle suites: **40 passed / 399 assertions**. Cases include exact historical selection after a human revision, qualified legacy evidence, archived service notes, malformed/foreign responses, duplicate histories, invalid IDs, aborts and HTTP failures. Reads issue no writes or automatic retries.
|
||||
- Complete tooling: **155 passed / 14,355 assertions**, zero failures; includes the focused tests, so counts are not additive.
|
||||
- Actual authenticated PostgreSQL/isolated-native workflow: **4 passed / 236 assertions**. Existing sealed-report findings reopen exactly. The cross-study findings are read through the new client, revised by a fixture-only human service call, and both immutable revisions are recovered with identical native evidence and distinct authorship. Service notes remain readable; revoking the actual research credential returns 401 on both reads. Run counts remain unchanged. The initial 4 / 232 run preceded additional sealed-source readback assertions and is not added to the final total.
|
||||
- Application/authored-test types, contracts, explicit scoped lint, formatting, secret audit and diff checks passed. Initial authored-test checks caught fixture type widening and optional-source typing; corrected fixtures passed. Root reviewed the read/create and canonical/legacy boundaries. No independent review, build, browser or full integration-suite rerun is claimed for this client-only addition.
|
||||
|
||||
Logs: `/tmp/stock-bot-rp25-red.log`, `rp25-client-green.log`, `rp25-tooling.log`, `rp25-postgres.log`, `rp25-postgres-final.log`, `rp25-typecheck.log`, `rp25-authored-types.log`, `rp25-contracts.log`, `rp25-lint.log`, `rp25-format.log` and `rp25-secrets.log`, all under `/tmp/stock-bot-`. The disposable PostgreSQL container was stopped after verification. No real study was edited or executed, automatic cycle resume was not added, and all seven conditional tasks remain deferred.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue