Repository navigation
Description
Governance-only reconciliation
This issue is governance-only: it authorizes the mutation of SCOPE.md, docs/product/ROADMAP.md, docs/product/CAPABILITY_MAP.md, docs/product/CAPABILITY_DAG.md and docs/architecture/OPEN_DECISIONS.md, and of nothing else. Branch governance/issue-<this issue>-... from implement/dgr-closure (the integration branch cut from main); the pull request targets implement/dgr-closure, never main.
Parent: design gate #538 (ADR-0074 Amendment 3, PR #539); precedent: #518 for #515 (DG-R, atoms R01 and R02).
Start gate
- PR ADR-0074 Amendment 3: bring to the main line and record the acceptance (#538) #541 (Amendment 3 on
implement/dgr-closure, with its acceptance record in A3.13) is merged. PR docs(adr): ADR-0074 Amendment 3 (PROPOSED), close every live day from the archive, unattended, whole allow-list (#538) #539 had merged the proposal intoimplement/fid, a wave already promoted tomain; ADR-0074 Amendment 3: bring to the main line and record the acceptance (#538) #541 moves it onto the main line. Do not register anything as authorized before ADR-0074 Amendment 3: bring to the main line and record the acceptance (#538) #541 is merged. - The branch is cut from the current
implement/dgr-closure.
Why
ADR-0074 Amendment 3 decides how a closed live day made of cycles slices is verified against the Bybit archive and, when incomplete, replaced by it, and that this runs unattended for every instrument of the allow-list. It is not in the planning documents. Measured on homelab (operator-reported): in cycles mode 33.2% (2026-10-24) and 34.4% (2026-10-25) of the day lies in uncovered gaps; no archive file was on the server, so the share of trades actually lost on those days is not measured.
Required output
CAPABILITY_DAG.md: two new atoms registered directly asFROZEN/MISSINGin sectionR(gateDG-R, already registered by [governance] DG-R: register ADR-0074 Amendment 2 (R01, R02) and reconcile O01 with ADR-0075 Amendment 1 #518), plus a gate paragraph; counts recomputed by script from the tables at the time of the change (do not copy any number from this issue); no existing atom changes state:R03slice-day closure v1 (ADR-0074 A3.2 to A3.7): plan, retire every slice with theR01reassessment, importdt=<day>/seg=000000.000through S13/S14, verify in full and through theDataGateway, for closed UTC days made of slice partitions; conservation by(exchange_ts, trade_id)with full-field equality; the refusals of A3.3; and the overlap guard of A3.6 added to theR02plan (a valid partition of an adjacent day that overlaps the day). RequiresR01,R02,O01; unlocksR04.R04unattended closure run v1 (ADR-0074 A3.12): a timer-started run, hourly, taking a day from 12:00 UTC of the following day; per day verify-only / replace the whole day / mark invalid and retry; 23 attempts then the day is marked invalid and abandoned (areopenline restores it); the signals and the attempt count are lines appended to a JSON-lines log; the run is a separate process that never blocks the live service (lock timeouts, one object per transaction, pacing, CPU/memory limits, wall-clock limit). RequiresR03.
CAPABILITY_MAP.md,ROADMAP.md,OPEN_DECISIONS.md: the same registration; the open follow-ups as listed under Not decided here below.SCOPE.md: extend Part D (DG-R) with the two atoms, their start gates and acceptance, authority (ADR-0074 A3), baseline, non-claims, exit criteria, out of scope.R03andR04are post-version work and must not blockO02,O03or any other exit criterion.SCOPE.mdPart D: record the decisions already taken by the maintainer on 2026-10-27/28, so no implementation reopens them: every instrument of the allow-list; unattended; validity of a day decided only by the archive verification within 23 attempts; long-gap records do not decide validity and ADR-0044 is not amended; the retired slices of a day closed from the archive carry no retention duty and the run deletes nothing (ADR-0049 unchanged).- Baseline: record the state of
R01andR02as it is on the base branch when the branch is cut, without judging it. - Explicit non-claims: nothing of
R03orR04is implemented; no slice day has been closed from the archive; the 2026-10-26 replacement of nine legacy days is recorded as evidence and is not a precedent; the gap figures above are operator-reported and are not an audit; the share of trades lost on 2026-10-24/25 is not measured; the publication time of the archive file is not measured (it is not known whether the file of the previous day exists at 12:00 UTC); the live service remains incyclesmode and the switch to the continuous session is not part of this work; no deployment, no timer installed.
Not decided here (to register as open follow-ups, not as blockers)
- Whether the archive file of the previous day exists at 12:00 UTC (first hour of the timer).
- 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 during a closure (a required measurement of
R04, A3.11 item 5).
Verification
python tools/run_tests.py (known failures on Windows: test_promote_main_v1, the OpenSSL-dependent tests); python tools/check_markdown_links.py; git diff --check; python tools/workflow.py preflight --base implement/dgr-closure; the counts recomputed from the DAG tables by script.
Out of scope
Any code or ADR change; the implementation of R03 and R04; an amendment of ADR-0044 or ADR-0049; crediting any atom; running anything on the server; the switch of the service to continuous; promotion into main.
🤖 Generated with Claude Code
Activity