Skip to content

RFC program S1: back catalog scan and throughput - #2289

Merged
neuromechanist merged 7 commits into
feature/rfc-programfrom
feature/rfc-S1-catalog-scan
Nov 21, 2026
Merged

neuromechanist merged 7 commits into
feature/rfc-programfrom
feature/rfc-S1-catalog-scan

Conversation

@neuromechanist

@neuromechanist neuromechanist commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Card S1 of the RFC program: read-only measurement of the version 2 stores that come from sources which can be discontinuous, and of conversion throughput, for RFC-0001. References #2243. The report is .context/rfc-program/evidence/s1-catalog.md and the scripts and compact outputs are in .context/rfc-program/evidence/s1/. Headlines: 102 EDF+D files in one dataset (nm000456) have real gaps, the other 1,626 EDF+D files are contiguous; 909 BrainVision recordings in 29 datasets and 254 FIF files in 7 datasets also have measured gaps or skips; in total 997 of 231,259 stores come from a source with a measured gap. Conversion ran at a 30-day mean of 4,209.6 stores per day (median on days with any conversion 954), which projects 54.9 days to re-convert everything at the mean. Every Range read, no write, no aws call, no live dataset touched; the cache is not committed. Only .context/rfc-program/evidence/ changed. Gates: Command and Raw output line counts are 10 and 11, every raw file is non-empty, evidence/s1 is 2.8 MB, and no file outside evidence changed.

r1 fixes

One outcome per finding, all on this branch in three commits (derive steps and code, derived outputs and logs, the revised report); no network scan was rerun, every new number comes from the cache directory or the evidence.

  • A1 (Critical) fixed: the nm000456 headline now reads "Yes, two; the index duration suggests the gap was dropped (inferred, store bytes not read)", and the sampled and unmeasured list repeats the caveat.
  • A2 fixed: the BrainVision row is split into 873 positive-total and 36 negative-total (overlap or out of order) recordings; the real-discontinuity figures are given both ways (1,265 recordings, 37 datasets, 997 stores, and 1,229, 36, 978); 42 positive totals are at most 0.1 s (78 with the negatives, 61 with an absolute total under 0.1 s); the net sum is 168,448.0 s and the absolute sum over the first 50 gaps is 170,389.7 s; 48 recordings have a negative gap; second-resolution check: 59 of 68 sub-second recordings have gaps that are not multiples of the sampling interval, 9 cannot be told (new bv-gap-stats.json).
  • A3 fixed: footnotes state the composition of the "can be discontinuous" row (1,626 gapless EDF+D, 86 epoched, 3 dated-contiguous, and why the 528 undated are included), and a second row without the known non-gaps is given (1,794 recordings, 56 datasets, 1,525 stores).
  • A4 fixed: "two months to a year" and "a day or two" are replaced by 54.9 to 242.4 days (about 2 to 8 months) for the catalog and a few days to about a week for the affected stores (3.37 days at the busy-day median).
  • A5 fixed: the stores-per-day definition sits above the table, says it is neither a floor nor a ceiling and mixes first conversions with re-conversions, states that version 3 re-conversion was not measured, and the 30-day filter now selects by calendar date (numbers unchanged: the fetch day is partial and holds no conversions); 2026-08-04 is called the earliest recorded last conversion (B4).
  • A6 fixed: the 3 RuntimeError failures and 49 MemoryError failures are taken from zarr-join.json; the GiB range and the "download time-outs" are dropped; the FIF failure cause claim is dropped (not examined).
  • A7 fixed: the rule of three is stated as assuming an independent sample and not holding under dataset clustering; the 50 came from 17 of 60 datasets, none of the 7 with measured skips, and the sample covers the no-directory population only (B1).
  • A8 fixed: "version 2 stores" is defined once and the format_version 3 and engine 3 in the zarrcheck output are explained as the serving index document's version (shared/contract/zarr-index.ts line 249).
  • A9 fixed: projection days for all stores of the affected datasets (4,286 and 6,929) are added in a subset table and in union.json.
  • B1 fixed: every union row is labeled "measured only", and union.json has a not_measured block (11,175 FIF unmeasured, 37 unreadable, 148 and 47 BrainVision, .fif.gz).
  • B2 fixed: a .fif.gz row (1,136 files, 9 datasets, not measured) is in the class table and the notes.
  • A10 fixed: FIF is described as the Neuromag and Elekta MEG format; EDF+C, EDF+D, TAL, GDF, MEF3, XDF and EEGLAB are defined at first use.
  • A11 fixed: a new derive step writes bv-gap-stats.json with the percentile method (linear interpolation, p90 446.8 s replacing 448.9 s) behind the median, p90, 826, 583 and 36.
  • A12 fixed: the header-run logs are now committed (scan-logs/*.log.txt, they were git-ignored), and the 141,671 versus 141,747 difference of 76 is marked relayed and unexplained.
  • A13 fixed: "every listed, readable .vmrk".
  • A14 fixed: 11,225 is split into 11,224 with a -1 pointer and 1 beyond the end, and the unmeasured count is 11,175.
  • A15 fixed: the span is 109 days inclusive (2026-08-04 to 2026-11-20), the mean 2,121.6 per day.
  • A16 fixed: the largest gapped file is named by its real sourcedata path (and its raw-tree twin), 18,803.449218 s.
  • A17 fixed: the no-writes, no-aws and concurrency statements are labeled method statements, not measurements.
  • B3 fixed: derived from the cached listing (extras.json): no .vmrk in any letter case for the 148, 1 has another in its directory, MarkerFile= was not read; why 82 are in on003944 is stated as not investigated.
  • B5 fixed: see A2 (net versus absolute, and the sub-second check).
  • B6 fixed: walk_capped is its own row (0 in this data) in the FIF table and fif-coverage.json, and in the code's summary.
  • B7 fixed as code-only: positive skip values only, and an unreadable skip value is recorded and warned; no effect on the committed data (fif-coverage.json: 0 files with a non-positive or unreadable value); the committed FIF outputs predate this edit.

Gates after r1: Command lines 13, Raw output lines 21, every Raw output file non-empty, evidence/s1 2,824 KB, nothing changed outside .context/rfc-program/evidence/.

r2 fixes

  • Section 3: the absolute gap sum now says it is over the real gaps (above one sampling interval and 1 ms).
  • Added one sentence that fif-coverage.json and extras.json are derived from fif.jsonl and files-index.json in the uncommitted cache directory and cannot be regenerated from the committed files alone.
  • Section 2: added a note that the gap-implied offsets for the two nm000456 stores (about 34.4 s and 358.7 s) differ from the recorded gaps (33.9 s and 358.1 s) by 0.5 to 0.6 s, not reconciled; a nonzero first onset would be consistent (0.543 s and 0.578 s in deep-edfd-files.json).
  • Gates rerun: Command lines 13, Raw output lines 21 (14 with the colon form), every Raw output file non-empty, evidence/s1 2,824 KB, nothing outside .context/rfc-program/evidence/.

@neuromechanist
neuromechanist merged commit c48405f into feature/rfc-program Nov 21, 2026
@neuromechanist
neuromechanist deleted the feature/rfc-S1-catalog-scan branch November 21, 2026 18:27
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