Repository navigation
[promotion] Promote implement/fid to main — DG-N and DG-O closeout (O02, O03, governance #527) - #529
Merged
Merged
Conversation
Retire the damaged legacy day with an ADR-0030 reassessment (fail -> invalid), then import the archive day under dt=<day>/seg=000000.000 through the ordinary S13/S14 path. The atomic A10 replacement of the first draft is recorded as considered and not adopted. Refs #515 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…dment-2 ADR-0074 Amendment 2 (proposed): retire, then import, damaged legacy BTCUSDT live days
Refs #515 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…nt-2' into governance/issue-518-dgr-register
…-0075 Amendment 1 (#518) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…dment-2 ADR-0074 Amendment 2: record the acceptance (follow-up of #516)
…ster [governance] DG-R: register ADR-0074 Amendment 2 (R01, R02) and reconcile O01 with ADR-0075 Amendment 1
…rruptions (O02, ADR-0075) Reader thread + bounded buffer, slice assembler, interruption handling with subscribe-first reconciliation, signals, continuous entry of the server (default off), PostgreSQL proof. Refs #523 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…, live buffer high-water (#523) Review of #524: - P1: the session no longer reconciles on an empty buffer. It waits for the first trade of the subscription, takes the recent-trades snapshot after it and hands it to the reconciliation, so the existing seam requires a key in both; otherwise the interval is an explicit gap. Only the anchor and the keys the reconciliation accepted are duplicates afterwards (skip_keys). - P2: pongs are counted, not appended to the tracker, so the history is the session states only. - P2: the buffer high-water is refreshed from the live reader at every publication. Tests: continuity proof, bounded history, high-water, never-acknowledged subscription, stale REST window (integration phase 6); mutation round 0 survivors. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Second review of #524: an empty topic snapshot (data=[]) is admitted by the canonical entry and returned a batch with no records, which unlocked the wait with an empty buffered set, so the reconciliation again required no WS/REST overlap. The wait now requires at least one record of the subscription; a frame with no trade is ignored until one arrives. Tests: unit (empty snapshot, then the first real trade; fails on the previous wait) and PostgreSQL phase 6 (an empty frame before the trades unlocks nothing; the stale-REST gap is still recorded). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…523) Third review of #524: the wait for the first trade held every empty frame in a local list outside the bounded buffer (400 retained with a buffer of 4). Frames with no trade are now counted as messages and dropped, never held. Test: 300 empty frames leave no held batches and unlock nothing; fails when the frames are kept. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…continuous live: O02 - one continuous WebSocket session, bounded buffer, explicit interruptions (ADR-0075 slice 9.2)
…ool (O03, ADR-0075 slice 9.3) (#525) - CLI: --mode {cycles,continuous} (default cycles, unchanged) and --slice-seconds, --slice-max-trades, --buffer-messages, valid only with continuous; empty value = default so a unit whose env file predates the options still starts; invalid values refused before any connection. - Units and env examples (BTCUSDT unit and @ template): mode and the three bounds rendered into ExecStart; defaults cycles with empty bounds. - Runbook: operating the continuous session, rollback to cycles, the one-hour real-provider proof procedure and its stop conditions. - Evidence tool (read-only): archive vs strict DataGateway read over the claimed windows, holes, ordering violations and health counters from the captured signals; stop conditions on an undeclared loss, a refused strict read, a double or out-of-order read, a payload that differs. - Tests: CLI, artifacts, runbook, evidence (unit, mutation-checked) and PostgreSQL phase 7. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…eps the requested window, orders by trade_id (#525) Review of #526: - P1: a hole between slices excused any missing trade. Now a hole is declared only by an explicit gap record under --storage-root (last durable key in the segment before it) or an unclaimed_span signal covering it; otherwise the missing trades are an undeclared loss. Unreadable gap manifests are a stop. The tool requires --storage-root. - P2: the requested window was replaced by the surviving slices. It is kept: the head and the tail are compared (stop), a slice crossing a bound is refused, and the archive days are those of the whole window. - P2: the read order was checked by exchange_ts only; it is now the canonical (exchange_ts, trade_id) key. Tests: unit for each rule, runbook, PostgreSQL phase 7 (declared holes of the real run; same slices with no gap record fail; a one-hour request around a few seconds of slices); mutation: 11 new mutants, 0 survivors. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…orded gap span (#525) Second review of #526: the loader kept only the anchor of a recorded gap, so a gap that ended at .010 excused trades lost at .012 and .015. The span of the known_gap assertion [coverage_start, coverage_end) now travels with the gap (end exclusive) and a missing trade in a hole is excused only by the span that contains it (a gap record attributed to the hole by its anchor, or an unclaimed_span signal); the others are an undeclared loss. Per hole the report gives declared and undeclared trades. Tests: unit (short gap, end exclusive, union of spans, signal span, span elsewhere) and PostgreSQL phase 7 with the real record_explicit_long_gap: a short gap excuses one trade of the hole, the superseding manifest over the whole hole excuses all; 0 survivors on 8 new mutants. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…time (#525) Third review of #526: the per-trade set(covered) made the classification quadratic (28 s for 32,000 missing ids). Each missing trade is now tested once against the few recorded spans of its hole. Test: 60,000 missing trades in one hole with a half-covering gap, bounded at 5 s; the quadratic form does not finish within the timeout. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ig-proof live: O03 - configuration, runbook and window evidence tool for the continuous session (ADR-0075 slice 9.3)
…O03 (#527) Credits the five merged atoms COMPLETE within their recorded bounds (PR #492, #494 to #502, #510, #524, #526), recomputes the inventory from the DAG rows by script (105 -> 110 of 132, 83.3%; decisions unchanged) and agrees it across the four files. The one-hour ETHUSDT real-provider run of O03 (the T02 proof) was not performed and is an explicit non-claim, by the maintainer's decision; nine reopening triggers are recorded, none authorized. SCOPE.md records DG-N and DG-O closed and DG-R open (post-version), with a Closeout result and Not claimed section. R01 and R02 are untouched. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…closeout docs(governance): close DG-N and DG-O and credit T03, T02, O01, O02, O03 (#527)
This was referenced Oct 25, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Promote implement/fid to main — DG-N and DG-O closeout (O02, O03, DG-R registration, governance #527)
Promotes the rest of the current integration wave,
implement/fid, intomain. The earlier promotion (PR #514, 2026-10-24) already brought DG-M, DG-N andO01; this one carries what was merged after it. At openingmain(9cf0b5e) is an ancestor ofimplement/fid(8acc6c2): 22 commits ahead, 0 behind; 26 files changed (+4,158 / −89). No code from FEI or live-L2 is included (separate integration lines).Included work
O02([implementation] live: O02 - one continuous WebSocket session, bounded buffer, explicit interruptions (ADR-0075 slice 9.2) #523 / PR live: O02 - one continuous WebSocket session, bounded buffer, explicit interruptions (ADR-0075 slice 9.2) #524): one continuous WebSocket session per instance, bounded buffer, the four interruptions, subscribe first and wait for the first trade of the subscription before reconciling with an overlap proof (else an explicit gap, ADR-0044), signals; independent review findings fixed.O03([implementation] live: O03 - configuration, runbook and one-hour real-provider proof (ADR-0075 slice 9.3, closes T02) #525 / PR live: O03 - configuration, runbook and window evidence tool for the continuous session (ADR-0075 slice 9.3) #526):--mode {cycles,continuous}(defaultcycles) and the three bounds in the CLI, both unit templates and both environment examples (an old environment file still starts the unit), the runbook, andtools/live_window_evidence.py(read-only evidence of a run against the Bybit archive); independent review findings fixed.R01,R02authorized asFROZEN/MISSING, post-version; nothing implemented.T03,T02,O01,O02,O03creditedCOMPLETEwithin their bounds (105 → 110 of 132, 83.3%, recomputed by script);SCOPE.mdrecords DG-N and DG-O closed within bounds and DG-R open (post-version); nine reopening triggers, none authorized.What is explicitly not claimed
ETHUSDTreal-provider run ofO03(theT02proof) was not performed. By the maintainer's decision (2026-10-25) the atoms are credited without it; the provider'sexchange_tsordering stays an assumption and the 300 s / 50,000 trades / 20,000 messages bounds are accepted, not measured.cycles; enabling the continuous mode is an operator step and making it the default is the maintainer's decision. The server keeps running the code deployed before DG-O until the operator promotes and restarts it.R01/R02are post-version); slices are not consolidated.Validation
git diff --check origin/main...origin/implement/fidpasses.tests/test_promote_main_v1has one environment-specific failure unrelated to this change; it passes on Linux).infra/promote-main.sh) is the operator's.🤖 Generated with Claude Code