Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
1ba1c92
docs(adr): propose bounded legacy live-day reconstruction (#515)
NeoNix-Lab Oct 24, 2026
d6c45b4
docs(adr): reduce ADR-0074 Amendment 2 to retire-then-import (#515)
NeoNix-Lab Oct 24, 2026
636a072
Merge pull request #516 from NeoNix-Lab/agent/issue-515-adr-0074-amen…
NeoNix-Lab Oct 24, 2026
d927fd8
docs(adr): record the acceptance of ADR-0074 Amendment 2 (#515)
NeoNix-Lab Oct 24, 2026
426b48e
Merge remote-tracking branch 'origin/main' into governance/issue-518-…
NeoNix-Lab Oct 24, 2026
1c56ba3
Merge remote-tracking branch 'origin/agent/issue-515-adr-0074-amendme…
NeoNix-Lab Oct 24, 2026
5144adc
docs(governance): DG-R - register R01 and R02, reconcile O01 with ADR…
NeoNix-Lab Oct 24, 2026
2d6ebb9
Merge pull request #521 from NeoNix-Lab/agent/issue-515-adr-0074-amen…
NeoNix-Lab Oct 24, 2026
496e678
Merge branch 'implement/fid' into governance/issue-518-dgr-register
NeoNix-Lab Oct 24, 2026
17f41ac
Merge pull request #522 from NeoNix-Lab/governance/issue-518-dgr-regi…
NeoNix-Lab Oct 24, 2026
e0a04b8
live: one continuous WebSocket session, bounded buffer, explicit inte…
NeoNix-Lab Oct 24, 2026
1cda445
fix(data): O02 continuity needs an overlap, bounded heartbeat history…
NeoNix-Lab Oct 24, 2026
3666dd4
fix(data): O02 reconciliation waits for a trade, not for a frame (#523)
NeoNix-Lab Oct 25, 2026
cace902
fix(data): O02 drops empty frames while waiting for the first trade (…
NeoNix-Lab Oct 25, 2026
11469b4
Merge pull request #524 from NeoNix-Lab/agent/issue-523-live-o02-one-…
NeoNix-Lab Oct 25, 2026
30491fe
live: continuous-session configuration, runbook and window evidence t…
NeoNix-Lab Oct 25, 2026
d349bb0
fix(data): O03 evidence declares a hole only by recorded evidence, ke…
NeoNix-Lab Oct 25, 2026
320aee5
fix(data): O03 evidence classifies each missing trade against the rec…
NeoNix-Lab Oct 25, 2026
3385f89
fix(data): O03 evidence classifies a hole's missing trades in linear …
NeoNix-Lab Oct 25, 2026
43701c5
Merge pull request #526 from NeoNix-Lab/agent/issue-525-live-o03-conf…
NeoNix-Lab Oct 25, 2026
8e11c91
docs(governance): close DG-N and DG-O and credit T03, T02, O01, O02, …
NeoNix-Lab Oct 25, 2026
8acc6c2
Merge pull request #528 from NeoNix-Lab/governance/issue-527-dgn-dgo-…
NeoNix-Lab Oct 25, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/integrity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,44 @@ jobs:
DATA_GATEWAY_TEST_DSN: postgresql://postgres:ci-postgres-password@127.0.0.1:5432/market_catalog_live_slices
run: python tests/integration_live_slices_postgres.py

live-session-postgres:
name: Disposable PostgreSQL 17 live ingest continuous session test
runs-on: ubuntu-latest
services:
postgres:
image: postgres:17
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ci-postgres-password
POSTGRES_DB: market_catalog_live_session
ports:
- 5432:5432
options: >-
--health-cmd "pg_isready -U postgres -d market_catalog_live_session"
--health-interval 5s
--health-timeout 5s
--health-retries 20
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install live session test dependencies
run: python -m pip install --disable-pip-version-check -r tests/requirements.txt
- name: Initialize catalog schema
env:
POSTGRES_USER: postgres
POSTGRES_DB: market_catalog_live_session
PGPASSWORD: ci-postgres-password
PGHOST: 127.0.0.1
PGPORT: '5432'
run: |
docker run --rm --network host -v "$GITHUB_WORKSPACE:/workspace:ro" -e POSTGRES_USER -e POSTGRES_DB -e PGPASSWORD -e PGHOST -e PGPORT postgres:17 psql -U "$POSTGRES_USER" -d "$POSTGRES_DB" -v ON_ERROR_STOP=1 -f /workspace/db/init/001_catalog.sql
- name: Run live ingest continuous session PostgreSQL integration
env:
DATA_GATEWAY_TEST_DSN: postgresql://postgres:ci-postgres-password@127.0.0.1:5432/market_catalog_live_session
run: python tests/integration_live_session_postgres.py

adversarial-refusal-postgres:
name: Disposable PostgreSQL 17 adversarial publication refusal test
runs-on: ubuntu-latest
Expand Down
88 changes: 63 additions & 25 deletions SCOPE.md

Large diffs are not rendered by default.

55 changes: 44 additions & 11 deletions docs/architecture/OPEN_DECISIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This document records only decisions that are still live or intentionally deferred. Accepted ADRs/contracts remain semantic authority; [`../product/CAPABILITY_DAG.md`](../product/CAPABILITY_DAG.md) records which atoms each decision blocks and when a branch of a gate family is activated.

## Inventory checkpoint — DG-O registration (#507)
## Inventory checkpoint — DG-N/DG-O closeout (#527)

Recomputed from the union of the actual DAG rows and checked against expanded
Capability Map rows, preserving both parents' accepted credits. No new atom,
Expand All @@ -11,15 +11,15 @@ capability or follow-on authorization is created. DG-K/DG-K2 are already on main
The [scope verifier](../../SCOPE.md#executable-governance-verification) captures both OIDs.

```text
TOTAL_ATOMS = 130
CLASSIFIED_ATOMS = 130
TOTAL_ATOMS = 132
CLASSIFIED_ATOMS = 132
UNCLASSIFIED_GAPS = 0
SEMANTIC_FROZEN_OR_RESOLVED = 118 / 130 = 90.8%
SEMANTIC_FROZEN_OR_RESOLVED = 120 / 132 = 90.9%
OPEN_BLOCKING = 3
OPEN_DEFERABLE = 9
ROADMAP_DEFINED = 118 + 3 + 9 = 130
ROADMAP_PLANNING_COMPLETENESS = 130 / 130 = 100%
IMPLEMENTATION_COMPLETE = 105 / 130 = 80.8%
ROADMAP_DEFINED = 120 + 3 + 9 = 132
ROADMAP_PLANNING_COMPLETENESS = 132 / 132 = 100%
IMPLEMENTATION_COMPLETE = 110 / 132 = 83.3%
```

## Resolved foundation — reference only
Expand Down Expand Up @@ -944,7 +944,7 @@ linear USDT instruments (BTCUSDT, ETHUSDT, SOLUSDT, XRPUSDT, DOGEUSDT) in one co
identity with every BTCUSDT identity unchanged; one live process per instrument; ADR-0044 unchanged (explicit gaps, no repair source);
existing Parquet enters only through the producer path; a capacity rule (at least 365 days to the critical-pressure threshold) that gates
production enabling and waits for the #378 measurements; explicit fees per instrument. Implementation of `T01`, `T04`, `T03`, `T02` is
authorized (`SCOPE.md` Part B): `T01` and `T04` are `COMPLETE` (#489; PR #486, #488), `T03` and `T02` are not started. Amendment 1
authorized (`SCOPE.md` Part B): `T01` and `T04` are `COMPLETE` (#489; PR #486, #488), `T03` and `T02` are `COMPLETE` within their bounds (closeout #527; PR #492, #494 to #502, #526). Amendment 1
(#487, accepted 2026-10-20) decided the historical source: the Bybit public trade archive for every instrument, BTCUSDT included, with
versioned source profiles, certification accepting the SQLite and the archive profile, and the existing Parquet replaced through the
archive import instead of registered (their declared CSV source profile was never produced by any commit and S13 refuses it).
Expand All @@ -958,16 +958,49 @@ BTCUSDT 2024-01-15 (operator steps, with `tools/compare_archive_day.py`); L2 for

Designed by #504 (ADR-0075, PR #505), accepted on 2026-10-21 (PR #506) and registered by #507. Decided: one continuous WebSocket session per
instance decoupled from publication by a bounded buffer; slices with chained exchange-time windows (300 s or 50 000 trades, never across a UTC
midnight); each slice is revision 1 of its own partition `dt=<day>/seg=<start>` and is never superseded; checkpoint invariants unchanged
midnight); each slice is revision 1 of its own partition `dt=<day>/seg=<start>` and a valid slice is never superseded (Amendment 1, accepted 2026-10-23: a bridge slice with no trade across a
UTC midnight in a reconciliation, and the next revision only over an attempt that never became valid); checkpoint invariants unchanged
(it binds a slice partition); interruptions as ADR-0040 section 7 and ADR-0042 section 5 already decide, ADR-0044 unchanged. Implementation of
`O01`, `O02`, `O03` is authorized (`SCOPE.md` Part C) and not started; `T02` closes with `O03`.
`O01`, `O02`, `O03` was authorized (`SCOPE.md` Part C) and is `COMPLETE` within the bounds of the closeout #527 (PR #510, #524, #526); `T02` closed with `O03`.

Live follow-ups, none authorized: consolidation of a closed day's slices into one partition (a read optimization, opened only on a measured
read or admission cost); the already damaged live days (the superseded revisions and the trades never acquired before the fix), left as they
are with recovery paused, re-ingested from scratch if a gap makes the data unusable; the assumption that the provider's `exchange_ts` is
are by DG-O and rebuilt, day by day, by DG-R once it is implemented; the assumption that the provider's `exchange_ts` is
non-decreasing along the stream, measured by `O03`; the retention policy's classification of `superseded` partitions as candidates by age
(the cleanup code is the maintainer's and is untouched).

### Closeout of DG-N and DG-O (#527): reopening triggers (none authorized)

`T03`, `T02`, `O01`, `O02` and `O03` are credited within their bounds. **The one-hour `ETHUSDT` real-provider run of `O03` (the `T02` proof) was not performed; the maintainer
credited the atoms without it (2026-10-25).** Each limit has a named way to reopen:

1. **Real-provider run.** No continuous session has run against the real Bybit provider for an hour and no report of `tools/live_window_evidence.py` exists. Trigger: the operator
performs the run (procedure in `docs/engineering/LIVE_INGEST_SERVER_DEPLOYMENT.md`) on a host, catalog and root of their choice and records the report.
2. **`exchange_ts` ordering.** That the provider's stream is non-decreasing in `exchange_ts` stays an assumption (ADR-0075 "Not claimed"); a violation is an interruption by design.
Trigger: the report of trigger 1 counts the violations.
3. **The bounds.** 300 s, 50 000 trades and 20 000 messages are accepted, not measured. Trigger: evidence from trigger 1.
4. **Default mode and deployment.** The default of the CLI, the environment examples and the units is `cycles`; the server is not redeployed with `O01` to `O03`; enabling the
continuous mode on a unit is an operator step. Flipping the default is the maintainer's decision after the numbers of trigger 1.
5. **Thin instruments and gaps.** After a reconnect the session waits for the first trade of the new subscription before reconciling; on a quiet interval this delays the
reconciliation, and a REST window that does not meet the subscription is an explicit gap. How often this happens on `ETHUSDT` is unmeasured. Trigger: evidence from trigger 1.
6. **Clock of the recorded gap span.** The `known_gap` span ends at the detection instant of the local clock; the evidence tool classifies missing trades against that span, so a
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.
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)

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=<day>` 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=<day>/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.

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`.

## Explicitly deferable decisions

The following are classified and therefore not roadmap unknowns:
Expand Down
Loading
Loading