Skip to content

[promotion] Promote implement/fid to main — DG-N and DG-O closeout (O02, O03, governance #527) - #529

Merged
NeoNix-Lab merged 22 commits into
mainfrom
implement/fid
Oct 25, 2026
Merged

NeoNix-Lab merged 22 commits into
mainfrom
implement/fid

Conversation

@NeoNix-Lab

Copy link
Copy Markdown
Owner

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, into main. The earlier promotion (PR #514, 2026-10-24) already brought DG-M, DG-N and O01; this one carries what was merged after it. At opening main (9cf0b5e) is an ancestor of implement/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

What is explicitly not claimed

  • The one-hour ETHUSDT real-provider run of O03 (the T02 proof) was not performed. By the maintainer's decision (2026-10-25) the atoms are credited without it; the provider's exchange_ts ordering stays an assumption and the 300 s / 50,000 trades / 20,000 messages bounds are accepted, not measured.
  • Nothing is deployed. The default mode of the CLI, the environment examples and the units is 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.
  • No non-BTC dataset is registered on the server; no capacity measured ([evidence] Live ingest capacity measurement: disk growth, compaction, CPU, RSS (input to #377) #378); the damaged legacy days are not rebuilt (DG-R R01/R02 are post-version); slices are not consolidated.
  • This PR does not declare the first version concluded (the maintainer's declaration) and does not perform server promotion or deployment.

Validation

🤖 Generated with Claude Code

NeoNix-Lab and others added 22 commits October 24, 2026 15:27
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 branch was successfully deployed

1 active deployment
github-pages — 8acc6c25 Deployed Oct 25, 2026 by NeoNix-Lab via deploy #106
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant