From 7a4681108e6c42a6a573bde359fd245b98f8f1df Mon Sep 17 00:00:00 2001 From: NeoNix <112125692+NeoNix-Lab@users.noreply.github.com> Date: Thu, 29 Oct 2026 20:06:29 +0100 Subject: [PATCH] docs(governance): DG-R - register R03 and R04, ADR-0074 Amendment 3 (#540) Co-Authored-By: Claude Sonnet 5.5 --- SCOPE.md | 42 ++++++++++++++++++++--------- docs/architecture/OPEN_DECISIONS.md | 17 +++++++++--- docs/product/CAPABILITY_DAG.md | 35 ++++++++++++++---------- docs/product/CAPABILITY_MAP.md | 4 ++- docs/product/ROADMAP.md | 21 ++++++++------- 5 files changed, 79 insertions(+), 40 deletions(-) diff --git a/SCOPE.md b/SCOPE.md index ba77572..a80131c 100644 --- a/SCOPE.md +++ b/SCOPE.md @@ -1,6 +1,6 @@ # Scope: DG-N — Multi-instrument Bybit linear trades v1, DG-O — Live publication v1, and DG-R — Rebuild of damaged legacy live days v1 -Status: **DG-N and DG-O CLOSED within recorded bounds (closeout #527); DG-R OPEN, post-version.** DG-N: design gate CLOSED; `T01`, `T04`, `T03` and `T02` COMPLETE (reconciliations #489, #527; PR #486, #488, #492, #494, #496, #498, #500, #502, #526). DG-O: design gate CLOSED (ADR-0075 `ACCEPTED` 2026-10-21, #504); `O01`, `O02` and `O03` COMPLETE (PR #510, #524, #526; governance #507, #527). **The one-hour `ETHUSDT` real-provider run of `O03` (the `T02` proof) was not performed and is not claimed** (the maintainer's decision, 2026-10-25): the atoms are credited within the bound of their code, configuration, runbook, evidence tool and tests. DG-R: design gate CLOSED (ADR-0074 Amendment 2 `ACCEPTED` 2026-10-24, #515); `R01` and `R02` AUTHORIZED (governance issue #518), post-version, not started. Measured on the maintainer's server on 2026-10-21: the live publication superseded each cycle with the next (a day read as under 0.4% of its published trades) and about 27% of a day's trades were never acquired; DG-O fixes both in the code, which is **not deployed** and was never run against the real provider. The integration branch is `implement/fid`, the current wave (the maintainer's choice, 2026-10-19). The operator promoted it to `main` once already (PR #514, 2026-10-24: DG-M, DG-N and `O01`); a later promotion carries the rest. The first version of the product is declared concluded by the maintainer, after this closeout. DG-R is post-version work and does not block that declaration. **Today `BTCUSDT` is the only instrument ingested live and registered on the server, and the server runs the code deployed before DG-O: its live days remain not fully readable or complete until the operator deploys and (for the old days) DG-R rebuilds them; the other four instruments are readable once their partitions are `valid`.** +Status: **DG-N and DG-O CLOSED within recorded bounds (closeout #527); DG-R OPEN, post-version.** DG-N: design gate CLOSED; `T01`, `T04`, `T03` and `T02` COMPLETE (reconciliations #489, #527; PR #486, #488, #492, #494, #496, #498, #500, #502, #526). DG-O: design gate CLOSED (ADR-0075 `ACCEPTED` 2026-10-21, #504); `O01`, `O02` and `O03` COMPLETE (PR #510, #524, #526; governance #507, #527). **The one-hour `ETHUSDT` real-provider run of `O03` (the `T02` proof) was not performed and is not claimed** (the maintainer's decision, 2026-10-25): the atoms are credited within the bound of their code, configuration, runbook, evidence tool and tests. DG-R: design gate CLOSED (ADR-0074 Amendment 2 `ACCEPTED` 2026-10-24, #515); `R01` and `R02` AUTHORIZED (governance issue #518; their code is merged, #519 and #520, and their credit is a closeout's, not given here). ADR-0074 Amendment 3 `ACCEPTED` 2026-10-29 (design gate #538, PR #539 and #541): `R03` and `R04` AUTHORIZED (governance issue #540), post-version, not started. They use the integration branch `implement/dgr-closure`, cut from `main` (the maintainer's scheme, 2026-10-29: main, then the slice's integration branch, then the issue branches). Measured on the maintainer's server on 2026-10-21: the live publication superseded each cycle with the next (a day read as under 0.4% of its published trades) and about 27% of a day's trades were never acquired; DG-O fixes both in the code, which is **not deployed** and was never run against the real provider. The integration branch is `implement/fid`, the current wave (the maintainer's choice, 2026-10-19). The operator promoted it to `main` once already (PR #514, 2026-10-24: DG-M, DG-N and `O01`); a later promotion carries the rest. The first version of the product is declared concluded by the maintainer, after this closeout. DG-R is post-version work and does not block that declaration. **Today `BTCUSDT` is the only instrument ingested live and registered on the server, and the server runs the code deployed before DG-O: its live days remain not fully readable or complete until the operator deploys and (for the old days) DG-R rebuilds them; the other four instruments are readable once their partitions are `valid`.** Scope kind: a sequencing scope for three gates: DG-N (design gate closed; Part B authorized inventory), DG-O (design gate closed; Part C authorized inventory) and DG-R (design gate closed; Part D authorized inventory, post-version). @@ -90,33 +90,47 @@ Order: strictly `O01`, `O02`, `O03`, one bounded mutation slice at a time; `T02` ## Part D — DG-R: rebuild of damaged legacy live days (authorized implementation inventory, post-version) -Registered by governance issue #518 after ADR-0074 Amendment 2 (`ACCEPTED` 2026-10-24, design gate #515, PR #516 and #521). Each atom is its own implementation issue (`[implementation]` template): `R01` is #519 and `R02` is #520, citing their rows here. Every one targets `implement/fid`, never `main`. These atoms are **post-version**: they do not block `O02`, `O03`, the closeout or the declaration that the first version is concluded. +Registered by governance issue #518 after ADR-0074 Amendment 2 (`ACCEPTED` 2026-10-24, design gate #515, PR #516 and #521), and extended by governance issue #540 after ADR-0074 Amendment 3 (`ACCEPTED` 2026-10-29, design gate #538, PR #539 and #541). Each atom is its own implementation issue (`[implementation]` template): `R01` is #519 and `R02` is #520, citing their rows here; the issues of `R03` and `R04` are opened after this reconciliation merges. `R01` and `R02` targeted `implement/fid`; `R03` and `R04` target `implement/dgr-closure`; none targets `main`. These atoms are **post-version**: they do not block `O02`, `O03`, the closeout or the declaration that the first version is concluded. Problem (operator-reported evidence, 2026-10-23/24, not an audit): the legacy live path published each cycle as a new revision of `dt=` and superseded the previous one, so a closed day reads as its last batch; 31 candidate days, 2026-09-23 to 2026-10-23; for 2026-10-20 the archive has 1,568,861 trades, the local in-day unique IDs are 1,141,530 (all in the archive; 427,331 absent) and 529 local rows fall outside the day. The ID comparison does not establish equality of every field. -| Atom | Result | Requires (besides ADR-0074 Amendment 2) | Start gate | +Amendment 3 problem (operator-reported on `homelab`, not an audit): in `cycles` mode the pause between two slices is neither covered nor reconciled; 2026-10-24 has 3,327 slices and 28,718 s (33.2%) uncovered, 2026-10-25 has 3,333 gaps and 29,681 s (34.4%); the share of trades actually lost on those days is not measured (no archive file was on the server). The maintainer's requirement (2026-10-27): every instrument of the allow-list, automatic, every day closed well, so that no day is repaired by hand again. + +| Atom | Result | Requires (besides ADR-0074 Amendments 2 and 3) | Start gate | |---|---|---|---| | `R01` | Superseding reassessment writer | `A16`, `A08`, `A09` | startable after this reconciliation merges (and the acceptance record, PR #521) | | `R02` | Legacy-day rebuild: plan, retire, import, verify | `R01`, `T04` | after `R01` is merged | +| `R03` | Slice-day closure from the archive | `R01`, `R02`, `O01` | startable after this reconciliation merges (`R01` and `R02` are merged; the acceptance record is PR #541) | +| `R04` | Unattended closure run | `R03` | after `R03` is merged | ```text -R01 ──> R02 +R01 ──> R02 ──> R03 ──> R04 ``` -Order: strictly `R01`, `R02`, one bounded mutation slice at a time. +Order: strictly `R01`, `R02`, `R03`, `R04`, one bounded mutation slice at a time. -### Acceptance per atom (from ADR-0074 Amendment 2; an implementation issue adds no semantic decision) +### Acceptance per atom (from ADR-0074 Amendments 2 and 3; an implementation issue adds no semantic decision) - **`R01`** (A2.3, issue #519). A writer, in the data plane next to `quality_lifecycle.py`, of a superseding reassessment report for the current live revision of one natural partition that is not `closed`: it copies the bound evidence of the assessment it supersedes unchanged, sets the status and a violation `legacy_publication_incomplete_day`, carries `metrics.supersedes_assessment_signature` and the producing commit; the lifecycle application then maps `fail` to `invalid` through the existing seam, and a superseding `pass` restores `valid`. Refuses a superseded, foreign or `writing` revision; idempotent; same lock order as the lifecycle application; ordinary `record_quality_report` is unchanged. Tests against a real PostgreSQL (state change both ways, supersession link, evidence copy, idempotence, refusals, a `VALID_ONLY` read excludes the retired revision, a concurrent S13 publication waits and proceeds, old bytes and reports unchanged); mutation checks. First check: who reacts to the state `invalid` (retention, eligibility, admitted inputs). - **`R02`** (A2.2, A2.4 to A2.7, issue #520). An importer variant for which the `invalid` revision of the exact key `dt=` does not occupy the day (everything else still refuses), the fixed key `dt=/seg=000000.000`; a read-only plan with a digest (incumbent revision and hashes, archive file identity, producing commit, key to create, the result of the refusals); refusals with nothing changed: day not closed in UTC (less than 24 hours), live slices, checkpoint binding or open gap record naming the day, live revision not `valid`, failed **conservation** (every record of the incumbent live revision found, field for field, in the archive file of its own day, which must be readable afterwards), a differing common field, an archive that fails strict parsing or differs from the planned hash, a stale plan; one day at a time, no lock held across days; retire, import, verify (full-field comparison and a strict `DataGateway` read: count, order, duplicates); recovery of a crash between retire and import and between import and verify; restore by a superseding `pass`. Tests against a real PostgreSQL, including the pilot shape of 2026-10-20 (a strict read returns exactly 1,568,861 archive records, in order, without duplicates, equal field by field) and byte-identical non-target days and live checkpoint; mutation checks; CLI and runbook. +- **`R03`** (A3.2 to A3.7, A3.6; issue to be opened). For closed UTC days of `canonical/trades/bybit//trade-v1` made of live slices `dt=/seg=...`: a read-only plan with a digest; retire every slice with the `R01` reassessment (`valid` -> `invalid`, nothing deleted); import the archive day as `dt=/seg=000000.000` through S13/S14 (the `R02` importer variant widened to invalid slices); verify in full and through a strict `DataGateway` read (count, order, duplicates, full-field equality; null `receive_ts` and `sequence` expected). A slice day is closed when it has ended in UTC and the live checkpoint is bound to a partition of a later day (this replaces the 24-hour margin for slice days). Conservation by `(exchange_ts, trade_id)` with full-field equality; refusals with nothing changed: day not closed, a `writing` or `closed` slice, a bridge slice without its neighbour in the plan, a gap record not contained in the day, an overlapping `valid` partition, a day with nothing to repair, an archive or manifest hash that differs, a slice already at `seg=000000.000`, a stale plan; **and the overlap guard of A3.6 added to the `R02` plan**, with its own probe. Gap records are not modified and do not decide validity. Recovery of a crash between two retirements, between retire and import, and between import and verify; restore by the `R01` path. Tests against a real PostgreSQL, byte-identical non-target days, live checkpoint and gap record files; mutation checks of the conservation and overlap rules; measured duration of the retirements. An operator dry-run and execution on `2026-10-24` first, later days only from a new reviewed plan. +- **`R04`** (A3.12, A3.4; issue to be opened). A timer-started run, every hour, over every instrument of the allow-list, in a fixed order, selecting by rule the closed slice days that no `valid` archive key closes: a day is taken from 12:00 UTC of the following day; per day it only verifies (complete and conserved), replaces the whole day (incomplete, archive fetched and conserved, nothing overlapping), or marks the day invalid by retiring its slices and is retried by the next run; a failed verification also retires the imported partition. The 23rd attempt that does not close a day marks it invalid and abandons it; a `reopen` line makes the run take it again. The attempts and the signals are lines appended to one JSON-lines log (one line per attempt, never rewritten); a lost log gives more attempts and changes no data. The run is a separate process that never blocks the live service: a short `lock_timeout` on every lock, one object per transaction and no lock across a download, parse or verification, paced retirements, CPU and memory limits and a lower priority, a wall-clock limit, a run lock without waiting; it deletes nothing. Tests over a disposable PostgreSQL and a fake archive source: days in each outcome in one run for two instruments, a refusal that does not stop the others, a rerun after a crash, a stale plan, an archive that changes between two runs, the 23rd attempt, a lost log, a crash before the append, a second run that changes nothing, no day outside the rule changing by a byte; with the real service publishing, the publication latency before, during and after a closure stays within a stated bound, a hung or killed run leaves the service publishing, and the service runs without the unit installed. + +### Decisions already taken by the maintainer (ADR-0074 Amendment 3; an implementation issue does not reopen them) + +Every instrument of the allow-list; unattended; a day not closed after 23 hourly attempts is marked invalid and abandoned; the signals are lines appended to a JSON-lines log, nothing else for now; the validity of a day is decided only by the archive verification, and the long-gap records neither decide it nor are superseded (ADR-0044 is not amended); the slices retired by an archive closure carry no retention duty, and the run deletes nothing (ADR-0049 is unchanged; an automatic deletion would need its own amendment); the slices of an invalid or abandoned day are the only copy of that day's live data and are not covered by that decision. + +### Open, none authorized (ADR-0074 A3.10) + +Whether the Bybit archive file of the previous day exists at 12:00 UTC (not measured; the hourly retry absorbs a late file); the directories moved aside on 2026-10-26 and the catalog dump (who keeps them, ADR-0049); whether a complete live day may ever be replaced (proposed never); whether the explicit-gap state of the live service caused by an open long-gap record should ever end, and a rule for a record that crosses a midnight; the share of trades actually lost on 2026-10-24 and 2026-10-25. --- ## Authority - `AGENTS.md` -- governance issues #381, #409, #453, #458, #475, #479, #483, #489, #507, #518, #527; design-gate issues #377, #487, #504, #512, #515; evidence issue #378; implementation issues #485, #487, #491, #493, #495, #497, #499, #501, #509, #523, #525, #519, #520 -- `docs/decisions/ADR-0074-multi-instrument-bybit-linear-trades-v1.md` (`ACCEPTED`, with Amendment 1 and Amendment 2 `ACCEPTED`) +- governance issues #381, #409, #453, #458, #475, #479, #483, #489, #507, #518, #527, #540; design-gate issues #377, #487, #504, #512, #515, #538; evidence issue #378; implementation issues #485, #487, #491, #493, #495, #497, #499, #501, #509, #523, #525, #519, #520 (the issues of `R03` and `R04` are opened after this reconciliation) +- `docs/decisions/ADR-0074-multi-instrument-bybit-linear-trades-v1.md` (`ACCEPTED`, with Amendments 1, 2 and 3 `ACCEPTED`) - `docs/decisions/ADR-0075-live-trades-continuous-session-and-append-only-slices-v1.md` (`ACCEPTED`, with Amendment 1 `ACCEPTED`) - `docs/decisions/ADR-0030-general-quality-lifecycle-v1.md` and `docs/decisions/ADR-0033-backfill-repair-v1.md` (unchanged; ADR-0030 is used by Part D) - `docs/product/ROADMAP.md`, `docs/product/CAPABILITY_DAG.md` (`T` atoms), `docs/architecture/OPEN_DECISIONS.md` (DG-N, DG-O, DG-R) @@ -134,7 +148,9 @@ main @ 9cf0b5e (DG-K P01-P06, DG-K2 S01-S07 and DG-C/A14 v1 COMPLETE within reco implement/fid: main + DG-M (M01, M02, M04, M05 COMPLETE, closeout #475, follow-on #477) + ADR-0074 (#481, #482) + T01 (#486) + T04 and Amendment 1 (#488) + T03 (#492) + T02 parts 1 to 5 (#494, #496, #498, #500, #502) + ADR-0075 (#505, #506) + O01 (#510) + ADR-0075 Amendment 1 (#512 / PR #513, via main) + ADR-0074 Amendment 2 (#515 / PR #516, #521) + DG-R registration (#518 / PR #522) + O02 (#524) + O03 (#526) + this closeout (#527) DG-N: T01, T04 COMPLETE (reconciliation #489); T03, T02 COMPLETE within bounds (closeout #527; the one-hour real-provider run is not claimed) DG-O: O01, O02, O03 COMPLETE within bounds (closeout #527; PR #510, #524, #526) -DG-R: R01, R02 FROZEN / MISSING (authorized by #518; post-version) +DG-R: R01, R02 FROZEN / MISSING in CAPABILITY_DAG.md (authorized by #518; post-version; their code is merged on main, #519 / a05b91d and #520 / 207e446 with its review fixes, and their credit is a closeout's, not given here) +implement/dgr-closure: main @ 691974b + ADR-0074 Amendment 3 (#538; PR #539 into implement/fid, moved onto this branch with its acceptance record by #541) + this reconciliation (#540) +DG-R Amendment 3: R03, R04 FROZEN / MISSING (authorized by #540; post-version) ``` Credit, do not reimplement or re-prove absent invalidating evidence: every atom `COMPLETE` in `CAPABILITY_DAG.md`, within the bound its row records. @@ -148,7 +164,7 @@ Credit, do not reimplement or re-prove absent invalidating evidence: every atom - No non-BTC dataset is registered in the server catalog, so none is readable there yet: the maintainer's existing ETH/SOL/XRP/DOGE Parquet are not registered (they cannot be certified, Amendment 1) and are to be replaced by the archive import, an operator step not yet done. The server-side record-by-record proof of BTCUSDT 2024-01-15 and any real-host run are operator evidence and are not claimed. - No capacity is measured (#378): the daily volume, memory and disk figures offered for other instruments are not used, and nothing beyond the bounded `ETHUSDT` proof is enabled before the measurement and the 365-day rule. - DG-O: the existing live partitions and their superseded revisions are left as they are. Slices are not consolidated into a day partition. After a reconnect the session waits for the first trade of the new subscription before reconciling (a quiet interval delays it; a REST window that does not meet the subscription is an explicit gap): how often that happens is unmeasured. The `known_gap` span ends at the local detection instant; the evidence tool classifies missing trades against it. -- DG-R: nothing is implemented and no legacy day has been rebuilt or retired. The 2026-10-20 evidence is operator-reported; the ID comparison does not establish field equality (the proof is `R02`'s). The 31 candidate dates are not an execution plan: the days come only from a reviewed plan. The atomic replacement is considered and not adopted (ADR-0074 A2.8). Nothing is deleted; retention of retired or superseded revisions is the maintainer's. Running the rebuild on the server is an operator step. +- DG-R: `R03` and `R04` are not implemented, no slice day has been closed from the archive, and no timer, no first run and no deployment exist. `R01` and `R02` are merged and not credited here. The 2026-10-26 replacement of legacy days on the server was an operator one-off recorded as evidence in ADR-0074 A3.1; it is not a precedent and not the `R02` run. The gap figures of Amendment 3 are operator-reported, not an audit; the share of trades lost on 2026-10-24 and 2026-10-25 and the publication time of the archive file against 12:00 UTC are not measured; the live service remains in `cycles` mode and the switch to the continuous session is not part of this work. The 2026-10-20 evidence is operator-reported; the ID comparison does not establish field equality (the proof is `R02`'s). The 31 candidate dates are not an execution plan: the days come only from a reviewed plan. The atomic replacement is considered and not adopted (ADR-0074 A2.8). Nothing is deleted; retention of retired or superseded revisions is the maintainer's. Running the rebuild on the server is an operator step. - No deployment, no L2 for other instruments, no second venue, no spot or inverse market, no repair or backfill of live gaps. - The generic provider `E07`, the FEI line and Omega are untouched. @@ -174,7 +190,7 @@ Recorded in full in `docs/architecture/OPEN_DECISIONS.md` ("Closeout of DG-N and ## Exit criteria for this scope -- **Met:** `T01`, `T04`, `T03`, `T02` and `O01`, `O02`, `O03` implemented and merged into `implement/fid` within the acceptance above (`T02` closed with `O03`), each with its mutation-checked tests -- **except** the real-provider run of at least one hour of `O03`, which was not performed and is not claimed (the maintainer's decision, 2026-10-25). `R01` and `R02` (Part D) are post-version: they are not a condition of the declaration below. +- **Met:** `T01`, `T04`, `T03`, `T02` and `O01`, `O02`, `O03` implemented and merged into `implement/fid` within the acceptance above (`T02` closed with `O03`), each with its mutation-checked tests -- **except** the real-provider run of at least one hour of `O03`, which was not performed and is not claimed (the maintainer's decision, 2026-10-25). `R01`, `R02`, `R03` and `R04` (Part D) are post-version: they are not a condition of the declaration below. - **Met:** a governance closeout issue (#527) credits each atom with its PR and bound and records what is not claimed. - The promotion of `implement/fid` (DG-M, DG-N and DG-O) into `main`: PR #514 promoted DG-M, DG-N and `O01` on 2026-10-24, before `O02`, `O03` and the closeout; a promotion PR opened after #527 merges carries the rest. The declaration that the first version of the product is concluded is the maintainer's, after the closeout. - The Phase A measurements (#378), the production enabling of further live instruments, the deployment and the real-provider run are recorded separately; they are not claimed by this scope. @@ -186,9 +202,9 @@ Recorded in full in `docs/architecture/OPEN_DECISIONS.md` ("Closeout of DG-N and - a second venue, spot and inverse markets, symbols outside the allow-list, L2 for other instruments; - measured capacity (#378) and enabling live ingest beyond `BTCUSDT` in production; - deployment to the server and any change to the deployment units on the host; -- repair or backfill of live gaps (ADR-0044); +- repair or backfill of live gaps through the ADR-0044 path (the archive closure of Part D, ADR-0074 Amendments 2 and 3, is not that path: it does not touch the long-gap records); - consolidation of slices into a day partition (ADR-0075 item 7); the rebuild of the already damaged live days is Part D; -- the atomic replacement of a live revision, automatic repair of live gaps (ADR-0044), and retention or deletion of retired or superseded revisions (ADR-0074 Amendment 2); +- the atomic replacement of a live revision, automatic repair of live gaps through the ADR-0044 path, and retention or deletion of retired or superseded revisions (ADR-0074 Amendments 2 and 3: the unattended run deletes nothing); - the generic provider extension `E07`, the FEI line, Omega, `J11`. --- diff --git a/docs/architecture/OPEN_DECISIONS.md b/docs/architecture/OPEN_DECISIONS.md index 03e318e..2575ba8 100644 --- a/docs/architecture/OPEN_DECISIONS.md +++ b/docs/architecture/OPEN_DECISIONS.md @@ -987,20 +987,31 @@ credited the atoms without it (2026-10-25).** Each limit has a named way to reop local clock far behind the exchange could report a trade near the end of a hole as undeclared. Trigger: a false stop observed in a real report. 7. **Capacity and further instruments.** #378 is not measured; nothing beyond the bounded `ETHUSDT` proof is enabled before the measurement and the 365-day rule (ADR-0074 section 6). No non-BTC dataset is registered in the server catalog; replacing the maintainer's Parquet by the archive import is an operator step. -8. **Damaged legacy days.** Left as they are by DG-O; their rebuild is DG-R (`R01`, `R02`, authorized, post-version) and the run on the server is the operator's. +8. **Damaged legacy days.** Left as they are by DG-O; their rebuild is DG-R (`R01`, `R02`, authorized, post-version; slice days: `R03`, `R04`) and the run on the server is the operator's. 9. **Consolidation of slices.** Outside the first version; opened only on a measured read or admission cost (ADR-0075). -## DG-R — Rebuild of damaged legacy live days v1 — RESOLVED (ADR-0074 Amendment 2 `ACCEPTED`, #515) +## DG-R — Rebuild of damaged legacy live days v1 — RESOLVED (ADR-0074 Amendments 2 and 3 `ACCEPTED`, #515, #538) Designed by #515 (ADR-0074 Amendment 2, PR #516), accepted on 2026-10-24 (PR #521) and registered by #518. Decided: for explicitly selected, closed UTC days of the legacy `dt=` publication, retire the damaged live revision with an ordinary ADR-0030 reassessment (`fail` -> `invalid`, nothing deleted), import the whole-day archive file as revision 1 of `dt=/seg=000000.000` through the ordinary S13/S14 path, verify in full. The ordinary importer keeps refusing an occupied day. -Implementation of `R01` and `R02` is authorized (`SCOPE.md` Part D) and not started; they are post-version. +Implementation of `R01` and `R02` is authorized (`SCOPE.md` Part D); they are post-version. + +Amendment 3 (design gate #538, PR #539 and #541, accepted 2026-10-29, registered by #540) extends the closure to the days made of live slices and runs it unattended for every +instrument of the allow-list. Decided: closed slice days are verified against the archive and, when incomplete, replaced by it (retire every slice, import +`dt=/seg=000000.000`, verify); an hourly run from 12:00 UTC of the day after; a day not closed after 23 attempts is marked invalid and abandoned; the signals are lines appended +to a JSON-lines log; the validity of a day is decided by the archive verification, not by the long-gap records (ADR-0044 unchanged); the slices retired by an archive closure carry no +retention duty and the run deletes nothing (ADR-0049 unchanged); the closure never blocks the live service. `R03` and `R04` are authorized (`SCOPE.md` Part D) and not started. Live follow-ups, none authorized: the atomic replacement of a live revision (ADR-0033 cutover extended to a component of adjacent days), opened only if a consumer of those days appears (A2.8); retention or deletion of retired and superseded legacy revisions (the cleanup code is the maintainer's); the days to rebuild, which come only from a reviewed plan; who reacts to the state `invalid` (retention, eligibility, admitted inputs), to be checked first by `R01`. +Open after Amendment 3, none authorized: whether the Bybit archive file of the previous day exists at 12:00 UTC (not measured; the hourly retry absorbs a late file); the directories moved +aside on 2026-10-26 and the catalog dump (who keeps them and for how long, ADR-0049); whether a complete live day may ever be replaced (proposed never); whether the explicit-gap state of the +live service caused by an open long-gap record should ever end, and a rule for a record that crosses a midnight; the measured bound on the live publication latency while a closure runs +(a required measurement of `R04`); the share of trades actually lost on 2026-10-24 and 2026-10-25 (not measured). + ## Explicitly deferable decisions The following are classified and therefore not roadmap unknowns: diff --git a/docs/product/CAPABILITY_DAG.md b/docs/product/CAPABILITY_DAG.md index 6ff3d4e..71e2c9e 100644 --- a/docs/product/CAPABILITY_DAG.md +++ b/docs/product/CAPABILITY_DAG.md @@ -9,7 +9,7 @@ supervised happy-path proof on the smallest real partition; deployability carrie ADR-0072 Amendment 1 bounds and the recorded proof findings. S08 is not authorized, J11 remains deferred, and no Wave 8 or DG-K/DG-K2 Golden proof is claimed. L2 promotion to main is a separate final wave PR; no deployment is performed here. DG-M — Canonical feature identity for deck -results v1 is CLOSED on `implement/fid` (#475). DG-N — Multi-instrument Bybit linear trades v1 is registered and authorized (#483, ADR-0074 `ACCEPTED`): `T01` and `T04` are `COMPLETE` within their row bounds (PR #486, #488; ADR-0074 Amendment 1, #489), `T03` and `T02` are `COMPLETE` within their row bounds at the DG-N/DG-O closeout (#527). DG-O — Live publication: continuous session and append-only slices v1 is registered and authorized (#507, ADR-0075 `ACCEPTED`): `O01`-`O03` are `COMPLETE` within their row bounds at the closeout (#527; PR #510, #524, #526), and `T02` additionally required `O03`. The one-hour `ETHUSDT` real-provider run is not claimed. DG-R — Rebuild of damaged legacy live days v1 is registered and authorized (#518, ADR-0074 Amendment 2 `ACCEPTED`): `R01` and `R02` are `FROZEN`/`MISSING`, nothing is implemented. DG-M detail: `M01`, `M02`, `M04` and `M05` are COMPLETE within their row bounds (PR #466, #468, +results v1 is CLOSED on `implement/fid` (#475). DG-N — Multi-instrument Bybit linear trades v1 is registered and authorized (#483, ADR-0074 `ACCEPTED`): `T01` and `T04` are `COMPLETE` within their row bounds (PR #486, #488; ADR-0074 Amendment 1, #489), `T03` and `T02` are `COMPLETE` within their row bounds at the DG-N/DG-O closeout (#527). DG-O — Live publication: continuous session and append-only slices v1 is registered and authorized (#507, ADR-0075 `ACCEPTED`): `O01`-`O03` are `COMPLETE` within their row bounds at the closeout (#527; PR #510, #524, #526), and `T02` additionally required `O03`. The one-hour `ETHUSDT` real-provider run is not claimed. DG-R — Rebuild of damaged legacy live days v1 is registered and authorized (#518, ADR-0074 Amendment 2 `ACCEPTED`): `R01` and `R02` are `FROZEN`/`MISSING` in this document (their code is merged, #519 and #520; the credit is a closeout's and is not given here). ADR-0074 Amendment 3 (`ACCEPTED` 2026-10-29, design gate #538, PR #539 and #541) adds `R03` and `R04` (#540), `FROZEN`/`MISSING`, nothing implemented. DG-M detail: `M01`, `M02`, `M04` and `M05` are COMPLETE within their row bounds (PR #466, #468, #473, #474) under ADR-0073 and its Amendment 1, `M03` is superseded; the server now seals the identities of the definitions a deck names and the deck builder must declare them. No real-host run is claimed, and promotion into `main` is the operator's separate PR.** @@ -21,19 +21,19 @@ Roadmap readiness is not the same thing as freezing every future semantic choice An atom is roadmap-defined when its observable outcome, owner, dependencies, unlocks, acceptance proposition and decision state are classified, and any unresolved decision is either assigned to an atom-specific blocking gate or has an explicit deferable evidence trigger. -Current audited inventory after the DG-N/DG-O closeout (#527), +Current audited inventory after the DG-R Amendment 3 registration (#540), recomputed mechanically from the atom tables, not by hand: ```text -TOTAL_ATOMS = 132 -CLASSIFIED_ATOMS = 132 +TOTAL_ATOMS = 134 +CLASSIFIED_ATOMS = 134 UNCLASSIFIED_GAPS = 0 -SEMANTIC_FROZEN_OR_RESOLVED = 120 / 132 = 90.9% +SEMANTIC_FROZEN_OR_RESOLVED = 122 / 134 = 91.0% OPEN_BLOCKING = 3 OPEN_DEFERABLE = 9 -ROADMAP_DEFINED = 120 + 3 + 9 = 132 -ROADMAP_PLANNING_COMPLETENESS = 132 / 132 = 100% -IMPLEMENTATION_COMPLETE = 110 / 132 = 83.3% +ROADMAP_DEFINED = 122 + 3 + 9 = 134 +ROADMAP_PLANNING_COMPLETENESS = 134 / 134 = 100% +IMPLEMENTATION_COMPLETE = 110 / 134 = 82.1% ``` Reconciliation #444 preserves all accepted DG-K/DG-K2 credits from main and @@ -43,6 +43,11 @@ invented by this merge; the seven L2 subatoms and eight S atoms were already registered on their respective lines. [SCOPE.md](../../SCOPE.md#executable-governance-verification) contains the executable two-parent verification. +DG-R Amendment 3 registration and authorization (issue #540): ADR-0074 Amendment 3 is `ACCEPTED` (#538, 2026-10-29; PR #539, moved onto the main line by #541). Two atoms `R03` and +`R04` are added directly as `FROZEN`/`MISSING` (132 -> 134 atoms; 120 -> 122 decided; semantic 90.9% -> 91.0%; implementation 83.3% -> 82.1%, because the inventory grew, not because +anything regressed); no existing atom changes state and nothing is credited. `R01` and `R02` stay `FROZEN`/`MISSING` here: their code is merged (#519, #520) and their credit belongs to a +closeout, not to this reconciliation. The counts are recomputed from these tables by script. + DG-N/DG-O closeout (issue #527): `T03`, `T02`, `O01`, `O02` and `O03` move from `MISSING` to `COMPLETE` on `implement/fid` within the bounds their rows record (105 -> 110 of 132; implementation 79.5% -> 83.3%); no new atom and no decision-state change (120 decided, 3 `OPEN_BLOCKING`, 9 `OPEN_DEFERABLE`). `R01` and `R02` stay `FROZEN`/`MISSING`. The one-hour `ETHUSDT` real-provider run of `O03` / `T02` is **not** performed and not claimed (the maintainer's decision, 2026-10-25). The counts are recomputed from these tables by script. @@ -413,12 +418,14 @@ Registered and authorized by governance issue #507 after the design gate #504 pr ### R — Rebuild of damaged legacy live days (DG-R) -Registered and authorized by governance issue #518 after the design gate #515 produced ADR-0074 Amendment 2, `ACCEPTED` on 2026-10-24 (PR #516 and #521). Operator-reported evidence (2026-10-23/24, not an audit): 31 candidate legacy days, 2026-09-23 to 2026-10-23; for 2026-10-20 the archive has 1,568,861 trades and the local in-day unique IDs are 1,141,530 (427,331 absent; 529 rows outside the day). `SCOPE.md` Part D records the start gate and the acceptance of each atom; the order is `R01`, `R02`. No atom here is implemented, and no legacy day has been rebuilt. They are post-version work: they do not block `O02` or `O03`. +Registered and authorized by governance issue #518 after the design gate #515 produced ADR-0074 Amendment 2, `ACCEPTED` on 2026-10-24 (PR #516 and #521). Operator-reported evidence (2026-10-23/24, not an audit): 31 candidate legacy days, 2026-09-23 to 2026-10-23; for 2026-10-20 the archive has 1,568,861 trades and the local in-day unique IDs are 1,141,530 (427,331 absent; 529 rows outside the day). `SCOPE.md` Part D records the start gate and the acceptance of each atom; the order is `R01`, `R02`. `R01` and `R02` are merged (#519, #520) and their credit is a closeout's, not given here; no legacy day has been rebuilt by this document's authority. ADR-0074 Amendment 3 (`ACCEPTED` 2026-10-29, design gate #538) added `R03` and `R04` by governance issue #540: the order is `R01`, `R02`, `R03`, `R04`, and neither new atom is implemented; no slice day has been closed from the archive. Operator-reported evidence for Amendment 3 (not an audit): in `cycles` mode 33.2% of 2026-10-24 and 34.4% of 2026-10-25 lay in uncovered gaps; the share of trades actually lost on those days is not measured. All of them are post-version work: they do not block `O02` or `O03`. | ID | Capability | Owner | Requires | Unlocks | Decision | Impl | Acceptance / authority | |---|---|---|---|---|---|---|---| -| R01 | Superseding reassessment writer v1 | Data Plane | A16, A08, A09 | R02 | FROZEN | MISSING | ADR-0074 Amendment 2 A2.3 (accepted; authorized by #518). A writer of a target-bound reassessment report for the current live revision of a natural partition that is not `closed` (today `record_quality_report` refuses it): it copies the bound evidence of the superseded assessment, carries `metrics.supersedes_assessment_signature`, and is applied through the existing ADR-0030 seam (`fail` -> `invalid`; a superseding `pass` restores `valid`); nothing is deleted or rewritten; idempotent; locks in the lifecycle order. | -| R02 | Legacy-day rebuild: plan, retire, import, verify v1 | Source/Application | R01, T04 | BTCUSDT live-era history readable | FROZEN | MISSING | ADR-0074 Amendment 2 A2.2, A2.4 to A2.7 (accepted; authorized by #518). For explicitly selected, closed UTC days of the damaged legacy `dt=` publication: a read-only plan with a digest, retire the live revision (`R01`), import the archive day as revision 1 of `dt=/seg=000000.000` through the ordinary S13/S14 path, verify in full and through the DataGateway; refusals (open day, slices, checkpoint binding, conservation, differing field, stale plan); the ordinary importer still refuses an occupied day. | +| R01 | Superseding reassessment writer v1 | Data Plane | A16, A08, A09 | R02, R03 | FROZEN | MISSING | ADR-0074 Amendment 2 A2.3 (accepted; authorized by #518). A writer of a target-bound reassessment report for the current live revision of a natural partition that is not `closed` (today `record_quality_report` refuses it): it copies the bound evidence of the superseded assessment, carries `metrics.supersedes_assessment_signature`, and is applied through the existing ADR-0030 seam (`fail` -> `invalid`; a superseding `pass` restores `valid`); nothing is deleted or rewritten; idempotent; locks in the lifecycle order. | +| R02 | Legacy-day rebuild: plan, retire, import, verify v1 | Source/Application | R01, T04 | R03, BTCUSDT live-era history readable | FROZEN | MISSING | ADR-0074 Amendment 2 A2.2, A2.4 to A2.7 (accepted; authorized by #518). For explicitly selected, closed UTC days of the damaged legacy `dt=` publication: a read-only plan with a digest, retire the live revision (`R01`), import the archive day as revision 1 of `dt=/seg=000000.000` through the ordinary S13/S14 path, verify in full and through the DataGateway; refusals (open day, slices, checkpoint binding, conservation, differing field, stale plan); the ordinary importer still refuses an occupied day. | +| R03 | Slice-day closure from the archive v1 | Source/Application | R01, R02, O01 | R04 | FROZEN | MISSING | ADR-0074 Amendment 3 A3.2 to A3.7 (accepted; authorized by #540). For closed UTC days of `canonical/trades/bybit//trade-v1` made of live slices `dt=/seg=...` (ADR-0075): a read-only plan with a digest; retire every slice with the `R01` reassessment (`valid` -> `invalid`, nothing deleted); import the archive day as `dt=/seg=000000.000` through the ordinary S13/S14 path (the A2.2 importer variant widened to invalid slices); verify in full and through the DataGateway. A day is closed when it has ended in UTC and the live checkpoint is bound to a partition of a later day. Conservation by `(exchange_ts, trade_id)` with full-field equality; refusals (open day, checkpoint binding, a `writing` or `closed` slice, a bridge slice without its neighbour, an uncontained gap record, an overlap, a day with nothing to repair, a differing archive or manifest hash, a slice already at `seg=000000.000`); **and the overlap guard of A3.6 added to the `R02` plan** (a valid partition of an adjacent day overlapping the day). Gap records are not modified and do not decide validity (ADR-0044 unchanged). | +| R04 | Unattended closure run v1 | Operations/Application | R03 | multi-asset live research with closed days | FROZEN | MISSING | ADR-0074 Amendment 3 A3.12, A3.4 (accepted; authorized by #540). A timer-started run, every hour, over every instrument of the allow-list: a day is taken from 12:00 UTC of the following day; per day verify only (complete and conserved), replace the whole day (incomplete, archive conserved), or mark invalid by retiring its slices and retry; the 23rd attempt that does not close a day marks it invalid and abandons it (a `reopen` line restores it); the attempts and the signals are lines appended to a JSON-lines log, and a lost log only gives more attempts. A separate process that never blocks the live service: short `lock_timeout`, one object per transaction, pacing, CPU and memory limits, a wall-clock limit, a run lock without waiting. Deletes nothing (ADR-0049 unchanged). Not claimed: the publication time of the archive file against 12:00 UTC, the live publication-latency bound (a required measurement), a deployment, a first run. | ## Dependency integrity @@ -621,10 +628,10 @@ O01 ──> O02 ──> O03 ──> T02 ### DG-R — Rebuild of damaged legacy live days v1 — CLOSED (design gate; ADR-0074 Amendment 2 `ACCEPTED`, #515) -Closed by ADR-0074 Amendment 2: for explicitly selected, closed UTC days, retire the damaged live revision with an ordinary ADR-0030 reassessment (`fail` -> `invalid`; nothing deleted), import the whole-day archive file as revision 1 of `dt=/seg=000000.000` through the ordinary S13/S14 path, verify in full. The first draft's atomic replacement (ADR-0033 cutover extended to a component of adjacent days) is considered and not adopted (A2.8). Implementation of `R01` and `R02` is authorized by #518 and not started. Not decided: the atomic replacement, until a consumer of those days appears. Out of scope: consolidation of slices, automatic repair of live gaps (ADR-0044), retention or deletion of retired or superseded revisions, any change to `trade-v1`, the ordering key, `TradeKeyV1` or the J02 wire. +Closed by ADR-0074 Amendment 2: for explicitly selected, closed UTC days, retire the damaged live revision with an ordinary ADR-0030 reassessment (`fail` -> `invalid`; nothing deleted), import the whole-day archive file as revision 1 of `dt=/seg=000000.000` through the ordinary S13/S14 path, verify in full. The first draft's atomic replacement (ADR-0033 cutover extended to a component of adjacent days) is considered and not adopted (A2.8). `R01` and `R02` are authorized by #518. ADR-0074 Amendment 3 (`ACCEPTED` 2026-10-29, design gate #538) extends the closure to the days made of live slices and runs it unattended: `R03` and `R04` are authorized by #540 and not started. Validity of a day is decided only by the archive verification within 23 attempts; long-gap records do not decide it (ADR-0044 unchanged); the slices retired by an archive closure carry no retention duty and the run deletes nothing (ADR-0049 unchanged). Not decided: the atomic replacement, until a consumer of those days appears; the publication time of the archive file against 12:00 UTC; the directories moved aside on 2026-10-26 and the catalog dump; a replacement of a complete live day (proposed never); the explicit-gap state of the live service caused by an open long-gap record. Out of scope: consolidation of slices, automatic repair of live gaps (ADR-0044), retention or deletion of retired or superseded revisions, any change to `trade-v1`, the ordering key, `TradeKeyV1` or the J02 wire. ```text -R01 ──> R02 +R01 ──> R02 ──> R03 ──> R04 ``` ## Vertical milestones @@ -771,7 +778,7 @@ DG-C/L2 L2 historical v1 (#442) COMPLETE on implement/l2 DG-M Canonical feature identity for deck results v1 COMPLETE within recorded bounds on implement/fid (closeout #475); M01,M02,M04,M05; M03 superseded; no real-host run claimed DG-N Multi-instrument Bybit linear trades v1 CLOSED within bounds on implement/fid (#483, #489, #527; ADR-0074 ACCEPTED #377 and Amendment 1); T01,T04,T03,T02 COMPLETE (the one-hour ETHUSDT run is not claimed) DG-O Live publication: continuous session and append-only slices v1 CLOSED within bounds on implement/fid (#507, #527; ADR-0075 ACCEPTED #504); O01,O02,O03 COMPLETE (no real-provider run) -DG-R Rebuild of damaged legacy live days v1 AUTHORIZED (#518; ADR-0074 Amendment 2 ACCEPTED #515); R01,R02 FROZEN/MISSING; post-version; nothing implemented +DG-R Rebuild of damaged legacy live days v1 AUTHORIZED (#518; ADR-0074 Amendment 2 ACCEPTED #515); R01,R02 FROZEN/MISSING here (code merged, credit is a closeout's); R03,R04 authorized by #540 (ADR-0074 Amendment 3 ACCEPTED #538), FROZEN/MISSING; post-version Wave 9 Reinforcement Learning I06 strategic RL, I07 execution RL Wave 10 Paper / Live product J07 then J08 after required data/execution/ops gates ``` diff --git a/docs/product/CAPABILITY_MAP.md b/docs/product/CAPABILITY_MAP.md index 99d96a9..67cebb0 100644 --- a/docs/product/CAPABILITY_MAP.md +++ b/docs/product/CAPABILITY_MAP.md @@ -140,6 +140,8 @@ Implementation-state vocabulary is exactly `COMPLETE | PARTIAL | MISSING`. | Live publication | Live slice configuration, runbook and real-provider proof v1 | FROZEN | COMPLETE | Data Plane/Operations | O03 | DG-O (#504, ADR-0075 accepted, authorized by #507). `slice_seconds`, `slice_max_trades` and the buffer bound in the unit templates and the runbook; a real-provider run of at least one hour for ETHUSDT that reports the trades captured against the Bybit archive of the same day, the trades readable through the DataGateway and the number of `exchange_ts` ordering violations. This is the one-hour proof of `T02`. Credited `COMPLETE` at the DG-N/DG-O closeout (#527), within the bound of its code, configuration, runbook and evidence tool: #525 / PR #526; `--mode {cycles,continuous}` (default `cycles`) and the three bounds in the CLI, both unit templates and both environment examples (an environment file that predates them still starts the unit), the runbook, and `tools/live_window_evidence.py` (read-only: the archive against a strict `DataGateway` read of the claimed windows, each missing trade classified against the recorded gap spans or signalled spans, stop conditions), PostgreSQL integration, mutation-checked; independent review findings fixed. **Not claimed: the real-provider run of at least one hour and its report** (the maintainer's decision of 2026-10-25: credited without it; operator evidence), the measurement of the provider's `exchange_ts` ordering, of the captured share and of the bounds, a deployment. | | Live publication | Superseding reassessment writer v1 | FROZEN | MISSING | Data Plane | R01 | DG-R (#515, ADR-0074 Amendment 2 accepted, authorized by #518). A writer of a target-bound reassessment report for the current live revision of a natural partition that is not `closed` (today `record_quality_report` refuses it): it copies the bound evidence of the superseded assessment, carries `metrics.supersedes_assessment_signature`, and is applied through the existing ADR-0030 seam (`fail` -> `invalid`; a superseding `pass` restores `valid`); nothing is deleted or rewritten; idempotent; locks in the lifecycle order. | | Live publication | Legacy-day rebuild: plan, retire, import, verify v1 | FROZEN | MISSING | Source/Application | R02 | DG-R (#515, ADR-0074 Amendment 2 accepted, authorized by #518). For explicitly selected, closed UTC days of the damaged legacy `dt=` publication: a read-only plan with a digest, retire the live revision (`R01`), import the archive day as revision 1 of `dt=/seg=000000.000` through the ordinary S13/S14 path, verify in full and through the DataGateway; refusals (open day, slices, checkpoint binding, conservation, differing field, stale plan); the ordinary importer still refuses an occupied day. | +| Live publication | Slice-day closure from the archive v1 | FROZEN | MISSING | Source/Application | R03 | DG-R (#538, ADR-0074 Amendment 3 accepted 2026-10-29, authorized by #540). For closed UTC days made of live slices `dt=/seg=...`: a read-only plan with a digest, retire every slice with the `R01` reassessment (nothing deleted), import the archive day as `dt=/seg=000000.000` through S13/S14, verify in full and through the DataGateway; conservation by `(exchange_ts, trade_id)` with full-field equality; refusals (open day, checkpoint binding, a `writing` or `closed` slice, a bridge slice without its neighbour, an uncontained gap record, an overlap, nothing to repair, a differing hash); adds the overlap guard of A3.6 to the `R02` plan. Gap records do not decide validity. | +| Live publication | Unattended closure run v1 | FROZEN | MISSING | Operations/Application | R04 | DG-R (#538, ADR-0074 Amendment 3 accepted 2026-10-29, authorized by #540). A timer-started hourly run over every instrument of the allow-list, from 12:00 UTC of the day after: verify only, replace the whole day, or mark invalid and retry; 23 attempts, then the day is invalid and abandoned; attempts and signals are lines appended to a JSON-lines log; a separate process that never blocks the live service (lock timeouts, pacing, resource limits); deletes nothing. | ## Inventory checkpoint — L2/main reconciliation (#444) @@ -203,7 +205,7 @@ IMPLEMENTATION_COMPLETE = 99 / 119 = 83.2% | `DG-M` Canonical feature identity for deck results (governance #453, #458, #475; design gate #454, #457) | COMPLETE within recorded bounds (closeout #475) | ADR-0073 `ACCEPTED` with Amendment 1 (one bar duration per admission). `M01` (bar-flow representation, PR #466), `M02` (failed-aggression feature, PR #468), `M04` (server registry and `definitions` carriage, PR #473) and `M05` (deck declaration rule and proof, PR #474) are implemented and merged into `implement/fid`; `M03` is superseded. The server seals the identities of the definitions a deck names and the deck builder must declare them; K13 is unchanged. The deck protocol client carries `definitions` (follow-on #477 / PR #478, not an atom). Not claimed: a real-host run, correctness on real data, duration in the observation identity. Promotion into `main` is the operator's separate PR. [Eight triggers, trigger 3 closed by #477, none authorized](../architecture/OPEN_DECISIONS.md#dg-m-v1-reopening-triggers-475). | | `DG-N` Multi-instrument Bybit linear trades (governance #483, #489; design gates #377, #487) | CLOSED within bounds (`T01`, `T04`, `T03`, `T02` COMPLETE; the one-hour `ETHUSDT` real-provider run is not claimed) | ADR-0074 `ACCEPTED` with Amendment 1 (the Bybit public trade archive is the historical source). `T01` (read and delivery for the allow-list, PR #486) and `T04` (historical import per instrument from the archive, PR #488) are implemented and merged into `implement/fid`; `T03` (explicit fees, PR #492) and `T02` (live ingest per instrument, PR #494 to #502, closed by `O03`, PR #526) are `COMPLETE` within their bounds at the closeout (#527). The allow-list is BTCUSDT, ETHUSDT, SOLUSDT, XRPUSDT, DOGEUSDT. Not claimed: that any non-BTC dataset is registered in the server catalog (the existing Parquet are replaced by the archive import, an operator step not yet done), the server-side record-by-record proof, a measured capacity, a deployment, L2 or a second venue. | | `DG-O` Live publication: continuous session and append-only slices (governance #507; design gate #504) | CLOSED within bounds (`O01`, `O02`, `O03` COMPLETE; no real-provider run) | ADR-0075 `ACCEPTED`. `O01` (append-only slices), `O02` (continuous session) and `O03` (configuration, runbook and a real-provider proof) are `COMPLETE` within their bounds on `implement/fid` (PR #510, #524, #526; closeout #527); `T02` closed with `O03`. Measured on 2026-10-21: the live path supersedes each cycle with the next (a day reads as under 0.4% of its published trades) and about 27% of a day's trades are never acquired. Not claimed: the real-provider run of at least one hour and its report; consolidation of slices (deferred to a measured trigger); repair of the already damaged days (paused, left as they are); the provider's `exchange_ts` ordering (still an assumption: the `O03` run is not performed); a deployment. | -| `DG-R` Rebuild of damaged legacy live days (governance #518; design gate #515) | AUTHORIZED (not started; post-version) | ADR-0074 Amendment 2 `ACCEPTED`. `R01` (superseding reassessment writer) and `R02` (plan, retire, import, verify selected closed legacy days) are `FROZEN`/`MISSING` on `implement/fid`, in that order; they do not block `O02` or `O03`. Operator-reported evidence: for 2026-10-20 the archive has 1,568,861 trades, the local in-day unique IDs are 1,141,530. Not claimed: anything implemented; any legacy day rebuilt; field-by-field equality with the archive (the proof is `R02`'s); the atomic replacement (considered, not adopted); retention or deletion of retired revisions; a production run. | +| `DG-R` Rebuild of damaged legacy live days (governance #518; design gate #515) | AUTHORIZED (not started; post-version) | ADR-0074 Amendment 2 `ACCEPTED`; Amendment 3 `ACCEPTED` 2026-10-29 (design gate #538, authorized by #540). `R01` (superseding reassessment writer) and `R02` (plan, retire, import, verify selected closed legacy days) are `FROZEN`/`MISSING` in this document (their code is merged, #519 and #520; the credit is a closeout's, not given here); `R03` (slice-day closure from the archive) and `R04` (unattended hourly closure run) are `FROZEN`/`MISSING`, in the order `R01`, `R02`, `R03`, `R04`; none blocks `O02` or `O03`. Operator-reported evidence: for 2026-10-20 the archive has 1,568,861 trades, the local in-day unique IDs are 1,141,530. Operator-reported evidence for Amendment 3 (not an audit): in `cycles` mode 33.2% of 2026-10-24 and 34.4% of 2026-10-25 lay in uncovered gaps; the share of trades actually lost is not measured. Not claimed: `R03` or `R04` implemented; any slice day closed from the archive; the publication time of the archive file against 12:00 UTC; the live publication-latency bound while a closure runs; field-by-field equality with the archive (the proof is `R02`'s and `R03`'s); the atomic replacement (considered, not adopted); retention or deletion of retired revisions (the run deletes nothing); a deployment, a timer, a first run; the switch of the live service to `continuous`. | | `DG-K` Process Topology v1 (governance #318, design gate #319, closeout #381) | COMPLETE within recorded bounds (operator closeout #381) | ADR-0068 and ADR-0069 accepted (#319); P01-P06 implemented and merged into `implement/dgk` (PR #344-#353, #355, #356, #359, #361, #366, #373, #380; amendments ADR-0064 Am.1, ADR-0066 Am.1, ADR-0068 Am.1, ADR-0069 Am.1 and Am.2). Not claimed: any executable that composes the families (`tools/api_server.py` serves J02 v1 only, without TLS/mTLS options), production K12 authority seams, K13 composition in a host, a deck-side bundle producer, credential issuance and deployment runbook, a data-local J03 handler (the registry ships empty), and an end-to-end proof on the real topology. Promotion into `main` is the operator's separate PR; no Golden proof claimed. | | `DG-C` L2 historical v1 closeout (#442, `implement/l2`) | COMPLETE within v1 bounds | `A14`, `A14a`-`A14e` COMPLETE (PR #375/#379/#401/#411/#417/#408); golden #413/#430 accepted, 11/11 at `1cdd78f`. ADR-0070 Amendments 1-2; ADR-0049 Amendment 1 (#424): one redundant copy only, never the last. #425/#426 credited as operational tool, no A14 atom or new K09 credit. `A14f`/`A14g` held; separate promotion to `main` after DG-K. [Limits and eight triggers, none authorized](../architecture/OPEN_DECISIONS.md#l2-v1-reopening-triggers-442). | | Wave 1 (`implement/wave-1`, issues #51-#77) | CONCLUDED | 2026-09-19; issue #73's Human Golden E2E closeout (1440-candle 1m D03, official `GOLDEN E2E: PASS`) is closed and credited. | diff --git a/docs/product/ROADMAP.md b/docs/product/ROADMAP.md index b259fe3..266d231 100644 --- a/docs/product/ROADMAP.md +++ b/docs/product/ROADMAP.md @@ -84,7 +84,7 @@ DG-M Canonical feature identity (implement/fid) COMPLETE within recorded bounds M03 superseded; no real-host run claimed; promotion to main is separate DG-N Multi-instrument Bybit linear trades (implement/fid) CLOSED within bounds (#483, #489, #527; ADR-0074 ACCEPTED #377, Amendment 1); T01,T04,T03,T02 COMPLETE (PR #486, #488, #492, #494-#502, #526); no real-provider run DG-O Live publication (implement/fid) CLOSED within bounds (#507, #527; ADR-0075 ACCEPTED #504); O01,O02,O03 COMPLETE (PR #510, #524, #526); T02 closed with O03; no real-provider run -DG-R Rebuild of damaged legacy live days (implement/fid) AUTHORIZED (#518; ADR-0074 Amendment 2 ACCEPTED #515); R01,R02 not started; post-version +DG-R Rebuild of damaged legacy live days (R01,R02: implement/fid; R03,R04: implement/dgr-closure) AUTHORIZED (#518; ADR-0074 Amendment 2 ACCEPTED #515; #540; Amendment 3 ACCEPTED #538); R03,R04 not started; post-version DG-C L2 historical v1 (implement/l2, #442) COMPLETE (A14,A14a-A14e; PR #375/#379/#401/#411/#417/#408; golden #413/#430, 11/11 at 1cdd78f; explicit gaps); A14f/A14g held MISSING; promotion to main is separate @@ -110,17 +110,20 @@ Completed checkpoints are credited and must not be re-proved absent a concrete i ## Roadmap vNext planning state ```text -TOTAL_ATOMS = 132 -CLASSIFIED_ATOMS = 132 +TOTAL_ATOMS = 134 +CLASSIFIED_ATOMS = 134 UNCLASSIFIED_GAPS = 0 -SEMANTIC_FROZEN_OR_RESOLVED = 120 / 132 = 90.9% +SEMANTIC_FROZEN_OR_RESOLVED = 122 / 134 = 91.0% OPEN_BLOCKING = 3 OPEN_DEFERABLE = 9 -ROADMAP_DEFINED = 120 + 3 + 9 = 132 -ROADMAP_PLANNING_COMPLETENESS = 132 / 132 = 100% -IMPLEMENTATION_COMPLETE = 110 / 132 = 83.3% +ROADMAP_DEFINED = 122 + 3 + 9 = 134 +ROADMAP_PLANNING_COMPLETENESS = 134 / 134 = 100% +IMPLEMENTATION_COMPLETE = 110 / 134 = 82.1% ``` +DG-R Amendment 3 registration (#540): ADR-0074 Amendment 3 accepted (#538, 2026-10-29); `R03` and `R04` added as `FROZEN`/`MISSING` (132 -> 134 atoms; semantic 90.9% -> 91.0%; +implementation 83.3% -> 82.1%, the inventory grew); no existing atom changes state and nothing is credited or implemented. + DG-N/DG-O closeout (#527): `T03`, `T02`, `O01`, `O02` and `O03` are credited `COMPLETE` on `implement/fid` within their bounds (PR #492, #494 to #502, #510, #524, #526; 105 -> 110 of 132; implementation 79.5% -> 83.3%); no new atom and no decision-state change. The one-hour `ETHUSDT` real-provider run is not performed and not claimed. @@ -207,7 +210,7 @@ DG-K2 Server/deck deployment composition RESOLVED / IMPLEMENTED within r DG-M Canonical feature identity for deck results RESOLVED / IMPLEMENTED within recorded bounds (ADR-0073, Amendment 1; closeout #475) DG-N Multi-instrument Bybit linear trades v1 CLOSED within bounds (ADR-0074 ACCEPTED #377 and Amendment 1; reconciliations #483, #489, #527); T01,T04,T03,T02 COMPLETE DG-O Live publication: continuous session and append-only slices v1 CLOSED within bounds (ADR-0075 ACCEPTED #504; reconciliations #507, #527); O01,O02,O03 COMPLETE; the one-hour real-provider run is not claimed -DG-R Rebuild of damaged legacy live days v1 AUTHORIZED (ADR-0074 Amendment 2 ACCEPTED #515; reconciliation #518); implementation not started +DG-R Rebuild of damaged legacy live days v1 AUTHORIZED (ADR-0074 Amendments 2 and 3 ACCEPTED #515, #538; reconciliations #518, #540); R03,R04 not started ``` Important current boundaries: @@ -229,7 +232,7 @@ Explicit deferables — second-provider resolution, exact L3/MBO semantics, Data - DG-M: registered by #453 after the DG-K2 closeout; the maintainer named feature traceability as a requirement on 2026-10-18. Its design gate #454 produced ADR-0073, accepted on 2026-10-18 (#457), #458 authorized `M01` (bar-flow representation), `M02` (failed-aggression feature), `M04` (server registry and `definitions` carriage) and `M05` (deck declaration rule and proof) on the integration branch `implement/fid`; `M03` is superseded. Closed by operator closeout #475: all four are implemented and merged (PR #466, #468, #473, #474) within the bounds recorded in `CAPABILITY_DAG.md`; no real-host run is claimed, and promotion into `main` is the operator's separate PR. Follow-on #477 / PR #478: the deck protocol client carries `definitions` (not an atom). Independent of the FEI line. Default proposed placement: after DG-K2 and before Wave 9; the order remains the maintainer's. - DG-N: the maintainer holds Parquet trades for other Bybit linear USDT instruments and wants them read, delivered and ingested live (2026-10-19). The design gate #377 produced ADR-0074 (accepted, #482) and #483 authorized `T01` (read and delivery), `T04` (historical import), `T03` (explicit fees) and `T02` (live ingest per instrument) on `implement/fid`, in the current wave; the wave is promoted to `main` at its end. Amendment 1 (#487, accepted 2026-10-20) chose the Bybit public trade archive as the only historical source, because the existing files declare a source profile no commit produced and S13 refuses; `T01` and `T04` are `COMPLETE` (#489); `T03` and `T02` are `COMPLETE` within their bounds (closeout #527). A second venue, spot, inverse and L2 for other instruments are out of scope. - DG-O: measured on the maintainer's server on 2026-10-21 (a read-only catalog query and the Bybit public archive): the live publication supersedes each cycle with the next, so a day reads as under 0.4% of its published trades, and the loop closes its WebSocket between cycles, so about 27% of a day's trades are never acquired. The design gate #504 produced ADR-0075 (accepted) and #507 authorizes `O01` (append-only slices), `O02` (continuous session) and `O03` (configuration, runbook, real-provider proof) on `implement/fid`, before the rest of the wave; `T02` closed with `O03`; all three are `COMPLETE` within their bounds (closeout #527) and the one-hour real-provider run is not performed. Consolidation of slices is outside the first version; the already damaged live days are not repaired by DG-O (see DG-R). -- DG-R: the days published by the legacy live path (31 candidate days, 2026-09-23 to 2026-10-23) read as their last batch and miss trades never acquired. ADR-0074 Amendment 2 (accepted 2026-10-24) rebuilds explicitly selected, closed days: retire the damaged revision with an ordinary reassessment, import the archive day under a free key, verify. #518 authorizes `R01` (reassessment writer) and `R02` (plan, retire, import, verify) on `implement/fid`; they are post-version and do not block `O02` or `O03`. The atomic replacement of the first draft is not adopted; the run on the server is the operator's, from a reviewed plan. +- DG-R: the days published by the legacy live path (31 candidate days, 2026-09-23 to 2026-10-23) read as their last batch and miss trades never acquired. ADR-0074 Amendment 2 (accepted 2026-10-24) rebuilds explicitly selected, closed days: retire the damaged revision with an ordinary reassessment, import the archive day under a free key, verify. #518 authorizes `R01` (reassessment writer) and `R02` (plan, retire, import, verify) on `implement/fid`; they are post-version and do not block `O02` or `O03`. The atomic replacement of the first draft is not adopted; the run on the server is the operator's, from a reviewed plan. ADR-0074 Amendment 3 (accepted 2026-10-29, design gate #538) extends the closure to days made of live slices and runs it unattended for every instrument of the allow-list: measured on the server (operator-reported, not an audit), `cycles` mode left 33.2% of 2026-10-24 and 34.4% of 2026-10-25 uncovered. #540 authorizes `R03` (slice-day closure from the archive) and `R04` (hourly unattended run; 23 attempts, then the day is invalid and abandoned; a JSON-lines log) on `implement/dgr-closure`, cut from `main`; they are post-version and do not block `O02` or `O03`. Only the continuous session (`O02`) completes a day as it happens; the system asked for is the two together, and the live service is still in `cycles` mode. ## Operational dependency direction