# Data Dictionary — Cyan Eclipse Witness Quant Sample

Generated from the actual record schemas in this package (field presence
counted over the sample's 1,250 records; full-store counts given where they
differ). Three sources:

| Source | Class | Records in sample | Form in this package |
|---|---|---|---|
| uk-the-gazette (UK The Gazette) | gazette | 274 | complete sealed store, 16 segments |
| canada-sema (Canada SEMA sanctions) | sanctions | 726 | tail excerpt of baseline segment (654) + one change segment (72) |
| usa-sec-edgar (US SEC EDGAR filings) | filings | 250 | tail excerpt of the store's change-event hash chain (250 of 16,194 events) |

## 1. The sealed envelope (`data/**/*.jsonl`, one JSON object per line)

These fields wrap every record in the sealed segment files. The flat tables
carry the same values as columns.

| Field | Type | Meaning |
|---|---|---|
| `seq` | integer | The record's position in its source store's global sequence. Continuous and gap-free across segments (Gazette 1–274; SEMA 5055–5780 in this sample). A gap or duplicate is a verification failure. |
| `key` | string | The store's identity key for the record. Gazette: the notice URI. SEMA: `composite:<sha256>` — a hash of the source's own identifying fields (Country, Schedule, Item, LastName, GivenName, DOB), because the source list carries no single native record ID. |
| `op` | string, sometimes absent | Present on records from change segments: `add` (record newly appeared in the source) or `change` (record's content changed at the source). Absent on baseline records. Sample counts — Gazette: 240 `add`, 4 `change`, 30 absent (baseline). SEMA: 66 `add`, 6 `change`, 654 absent (baseline excerpt). |
| `record` | object | The source record exactly as captured, fields in §2/§3. This object — and only this object — is what the receipt hashes commit to. |
| `record_hash` | string (SHA-256 hex) | **Receipt field.** SHA-256 of the canonical JSON of `record` (keys sorted, `(",", ":")` separators, UTF-8). Recompute it and compare: any altered byte in the record changes this hash. |
| `chain` | string (SHA-256 hex) | **Receipt field.** The hash-chain link after this record: SHA-256 of (previous record's `chain` bytes ‖ this record's canonical bytes), starting from the source's declared chain start (the all-zero genesis value, or an excerpt anchor). Each record therefore commits to the entire history before it — edits, insertions, deletions, or reordering anywhere upstream break this value and every link after it. |

EDGAR lines use a different wrapper: `{"segment_id", "segment_root",
"record"}` — the sealed segment the event sits in and that segment's
Merkle root (checked against `segment-manifest-chain.json`). The EDGAR
record carries its own receipt fields (`prev_change_hash` /
`change_hash`, §5) instead of the envelope fields above; there is no
`seq`, `key`, `op`, `record_hash`, or `chain` on EDGAR lines.

## 2. Segment manifests (`data/**/*.manifest.json`)

One manifest per segment, sealed with the segment.

| Field | Type | Meaning |
|---|---|---|
| `source` | string | Source id (`uk-the-gazette`, `canada-sema`). |
| `kind` | string | `baseline-segment` (a full snapshot segment), `poller-segment` (a change segment), or `sample-excerpt` (the SEMA baseline tail in this package — see its extra fields below). |
| `sealed_at` | string (ISO 8601, UTC) | **Seal time.** When Witness ingested and sealed this segment. This is the ingestion timestamp for every record in the segment — a segment property, never backfilled into individual records. |
| `records` | integer | Record count in the segment; `verify.py` checks the file against it. |
| `merkle_root` | string (SHA-256 hex) | **Receipt field.** Binary SHA-256 tree over the segment's `record_hash` leaves in file order (an odd leaf is duplicated). One value that commits to the whole segment's contents and order. For the SEMA excerpt manifest, this is the merkle root over the excerpt's leaves only (the parent segment's own sealed root is in `parent_merkle_root` and in `baseline-seg-0001.manifest.json`). |
| `chain_head` | string (SHA-256 hex) | The `chain` value after the segment's last record. `verify.py` checks recomputation lands exactly on it — this is what links one segment to the next. For the SEMA excerpt, it equals the parent baseline segment's sealed `chain_head`, because the excerpt runs to that segment's end. |
| `label` | string | Custody label: `INTERIM-LOCAL` on every segment in this sample. |
| `anchor` | string | External anchoring state: `PENDING` on every segment in this sample — the chains are complete and offline-recomputable, but not yet anchored to an external public timestamping service. |
| `diff` | object (change segments) | `seen` / `added` / `changed` / `unchanged` counts from the poll that produced the segment. |
| Excerpt-only fields | — | `excerpt_of`, `seq_start`, `seq_end`, `excerpt_anchor_chain` (the chain value the excerpt starts from — the chain after seq 5054 of the parent segment), `parent_merkle_root`, `parent_chain_head`, `merkle_note`, `chain_head_note`. |

## 3. UK Gazette record fields (`record` object; presence /274 sample records)

Source: The Gazette (thegazette.co.uk) official notices feed. The sealed
record is notice metadata only — the source manifest's `field_map` states
that person fields (name/familyName), notice codes, geo, and body content
are **not** sealed, by construction.

| Field | Type | Presence | Meaning |
|---|---|---|---|
| `id` | string (URI) | 274 | The notice's canonical source-native identifier, e.g. `https://www.thegazette.co.uk/id/notice/5248004`. Stable and unique per notice. |
| `title` | string | 274 | Notice title as published (in this feed, the notice-type title). |
| `category` | string | 274 | Notice category as published (e.g. "Deceased Estates", "Appointment of Liquidators", "Meetings of Creditors"). |
| `published` | string (ISO 8601, zone-less) | 274 | **Event time.** When The Gazette published the notice, in the source's own format (no timezone suffix, exactly as the feed publishes it). A notice is effective on publication. Sample range: 2026-11-06T12:00:14 – 2026-11-21T01:00:16. |
| `updated` | string (ISO 8601, UTC) | 274 | The source's last-update timestamp for the notice (typically one second after `published`). Distinct from `published` and from seal time. |
| `links` | array of objects | 274 | Source-provided links for the notice: objects with `rel`, `title`, `type`, `href` (any of which may be null) pointing at the notice page and its machine-readable forms (JSON-LD, Turtle, RDF/XML). In the flat table this is the `links_json` column (JSON string). |

Gazette identifiers: the only identifier is the source-native notice URI
above. The records carry no LEI, FIGI, CUSIP, ISIN, DUNS, or UEI fields.

## 4. Canada SEMA record fields (`record` object; presence /726 sample records, full-store /5,780 in brackets)

Source: Global Affairs Canada, Special Economic Measures Act (SEMA)
sanctions list (official XML). Field names are the source's bilingual
names; the flat table renames them to the English column names shown.
Person records carry name fields; entity/vessel records carry the
entity/ship fields instead. Dates of birth are as published by the source
(some are year-only).

| Source field | Table column | Type | Presence | Meaning |
|---|---|---|---|---|
| `Country-Pays` | `country` | string | 726 [5,780] | Country/regime the designation sits under, as published (bilingual string, e.g. "Belarus / Bélarus"). |
| `Item-NumeroDarticle` | `item` | string | 726 [5,780] | The source-native item number of the entry within its list part. |
| `DateOfListing-DateDinscription` | `date_of_listing` | string (date, YYYY-MM-DD) | 726 [5,780] | **Event time.** The date the designation was listed, per the publisher. Date only — the source publishes no time of day. Sample and full-store range: 2008-09-04 – 2026-11-05. |
| `Schedule-Annexe` | `schedule` | string | 522 [5,451] | Schedule/part of the SEMA regulations the entry sits under (e.g. "1, Part 1"). Absent on entries the source publishes without one. |
| `LastName-NomDeFamille` | `last_name` | string | 623 [3,419] | Family name of a listed person. |
| `GivenName-Prenom` | `given_name` | string | 623 [3,559] | Given names of a listed person. |
| `Aliases-Alias` | `aliases` | string | 388 [3,258] | Alias(es) as published (may be in non-Latin scripts). |
| `DateOfBirthOrShipBuildDate-DateDeNaissanceOuDateDeConstructionDuNavire` | `dob_or_ship_build_date` | string | 187 [2,628] | Date of birth for persons (full date or year only, as published) or build date for vessels. |
| `EntityOrShip-EntiteOuNavire` | `entity_or_ship` | string | 103 [2,220] | Name of a listed entity or vessel. |
| `TitleOrShipType-TitreOuTypeDeNavire` | `title_or_ship_type` | string | 1 [795] | Title (persons) or ship type (vessels), as published. |
| `ShipIMONumber-NumeroOMIDuNavire` | `ship_imo_number` | string | 1 [737] | IMO ship identification number for listed vessels — a source-native identifier where the source provides one. |

SEMA identifiers: the list carries no single native record ID; the store's
identity key is the composite hash described under `key` in §1, built from
the source's own fields. Beyond that: the item number above, and IMO
numbers on vessel records. The records carry no LEI, FIGI, CUSIP, ISIN,
DUNS, or UEI fields.

## 5. US SEC EDGAR change-event fields (`record` object; presence /250 sample events)

Source: U.S. Securities and Exchange Commission EDGAR filings (forms
8-K, 10-K, 10-Q, S-1 and their amendments). The EDGAR store seals
*change events* — what the differ observed when a filing first appeared
or was superseded — under the store's `supersession-diff/1` rules. Events
are filer events only; raw filing documents are sealed in the store and
never republished, so an event carries extracted public fields and
hashes, not document text. The excerpt is the tail 250 events of the
store's 16,194-event change chain: 22 `NEW_FILING` and 228
`SUPERSEDING_AMENDMENT`, spanning 239 distinct CIKs, all sealed in
segment `seg-000164` (committed 2026-11-21T12:45:08Z).

| Field | Type | Presence | Meaning |
|---|---|---|---|
| `change_id` | string (UUID) | 250 | The event's unique id in the store. |
| `source_id` | string | 250 | `usa-sec-edgar`. |
| `subject_id` | string | 250 | The filing's identity: `edgar:<CIK, 10 digits>-<accession number, no dashes>`. The CIK is source-native — it is part of the identity the store keys on, so every witnessed filing carries it. |
| `change_kind` | string | 250 | `NEW_FILING` (22) — a filing first observed; `SUPERSEDING_AMENDMENT` (228) — an amendment superseding an earlier filing in the same (CIK, form family, report period) chain. |
| `materiality` | string | 250 | The differ's classification of the change at the material-feature layer: `MATERIAL` (22, the new filings) or `FORM_ONLY` (228, the supersessions in this excerpt). `FORM_ONLY` can never be tradeable-material under the store's rules. |
| `tradeable_material` | boolean | 250 | True exactly when `materiality` is `MATERIAL`. |
| `field_path` | string | 250 | `$` (whole filing) on every event in this excerpt. |
| `from_hash` / `to_hash` | string (SHA-256 hex) | 250 | The material-feature hash of the filing before / after the change (for `NEW_FILING`, `from_hash` is the hash of the empty prior state). |
| `observed_window` | object | 250 | `first_seen` — when Witness first observed this state (2026-11-21T12:45:02Z for every event in this excerpt — they were all observed in the store's latest snapshot cycle); `last_seen_prev` — when the previous state was last seen. |
| `obs_refs` | array of strings | 250 | The observation (snapshot) ids this event derives from. |
| `source_proof` | object | 250 | `obs_id` + `raw_hash` — the SHA-256 of the raw source index bytes the observation was sealed from. |
| `diff_rule_version` | string | 250 | `supersession-diff/1`. |
| `class` | string | 250 | `PUBLIC_RECORD`. |
| `supersedes_accession` | string | 228 | On `SUPERSEDING_AMENDMENT` events: the accession number of the filing this one supersedes. |
| `filing` | object | 250 | Extracted public fields of the filing after the change — see below. |
| `prev_change_hash` | string (SHA-256 hex) | 250 | **Receipt field.** The previous event's `change_hash` — the link that chains this event to the whole history before it. The excerpt's first event carries the excerpt anchor (the sealed event before the excerpt) here. |
| `change_hash` | string (SHA-256 hex) | 250 | **Receipt field.** SHA-256 of the canonical JSON of the event with the `change_hash` field itself removed. Recompute it, follow `prev_change_hash`, and the excerpt lands exactly on the store's sealed `change_chain_head` (in `excerpt.manifest.json`, from the snapshot index). |

`filing` sub-fields (presence /250):

| Field | Type | Presence | Meaning |
|---|---|---|---|
| `company_name` | string | 250 | Registrant name as published by the SEC. |
| `form` | string | 250 | Form type: 10-K, 10-Q, 8-K, 8-K/A, S-1, S-1/A in this excerpt. |
| `report_period` | string (date) | 250 | **Event time.** The filing's report period end, as published. Excerpt range: 2026-06-30 – 2026-11-20. |
| `primary_doc` | string | 250 | Filename of the filing's primary document at the source. |
| `doc_sha256` | string (SHA-256 hex) | 250 | SHA-256 of the primary document's bytes as captured — the document itself is sealed, never republished; this hash is its receipt. |
| `figure_count` | integer | 250 | Count of extracted financial figures in the filing (the figures themselves are a separate store layer, not in this sample). |
| `items` | array of strings | 250 | 8-K item numbers reported, where the form carries them (empty for non-8-K forms). |
| `license` | string | 250 | The per-record licence/terms as sealed: SEC EDGAR filings are public domain; SEC fair-access terms govern access only. |

EDGAR identifiers: the CIK is source-native and present on 100% of
witnessed filings by construction (4,895 distinct CIKs across 9,459
sealed filing chains in the full store). Ticker/exchange and FIGI are
*not* fields in the sealed records — they are derived joins in the
resolution layer, measured there: CIK resolves to ticker + exchange for
88.8% of witnessed CIKs (4,348 of 4,895, joined on the SEC's published
files); FIGI at instrument level for 86.0% of a 50-filer measured sample.

## 6. Flat-table columns (`tables/*.json`, `tables/*.parquet`)

One row per record, 274 Gazette + 726 SEMA + 250 EDGAR = 1,250 rows.
Gazette/SEMA columns: `source`, `class` (`gazette` / `sanctions`),
`segment`, `seq`, `key`, `op`, the payload columns from §3/§4 (Gazette:
`record_id`, `title`, `category`, `published`, `updated`, `links_json`;
SEMA: `country`, `last_name`, `given_name`, `aliases`,
`dob_or_ship_build_date`, `schedule`, `item`, `date_of_listing`,
`entity_or_ship`, `ship_imo_number`, `title_or_ship_type`), then
`record_json` (the complete original `record` object as a JSON string —
nothing is dropped by the flattening), `record_hash`, `chain`,
`sealed_at`, `label`, `anchor`.

EDGAR table columns: `source`, `class` (`filings`), `segment`,
`change_id`, `subject_id`, `cik`, `change_kind`, `materiality`,
`tradeable_material`, `field_path`, `company_name`, `form`,
`report_period`, `primary_doc`, `doc_sha256`, `figure_count`,
`items_json`, `supersedes_accession`, `from_hash`, `to_hash`,
`first_seen`, then `record_json`, `prev_change_hash`, `change_hash`,
`sealed_at`, `label`, `anchor`.

## 7. Which timestamp is which (the bi-temporal shape)

| Axis | Gazette | SEMA | EDGAR |
|---|---|---|---|
| Event time (when it happened at the source) | `published` — notice publication timestamp | `date_of_listing` — designation date (date only) | `report_period` — the filing's report period end |
| Source update time | `updated` — source's own last-modified stamp | — (not published by the source) | `observed_window.last_seen_prev` — when the prior state was last seen |
| Seal time (when Witness ingested + sealed it) | segment `sealed_at` | segment `sealed_at` | containing segment's commit time (`sealed_at` in the excerpt manifest) |

Event time and seal time are captured independently and never backfilled
from each other: a designation listed in 2008 and sealed in 2026 carries
both facts, which is what makes point-in-time reconstruction possible —
you can ask what the feed showed as of any seal time, and what the source
claimed the event date was.
