Skip to content

E11.2 — Run-to-snapshot identity, explicit snapshot reads #1229

Done

Description

@athvin

API product implementation work · part of #521 (E11) · child 2 of 6.

Probe

Paging is already snapshot-stable: read.rs cursors encode {s: snapshot, k: last_key} and a cursor-less read pins the latest snapshot (resolve_page_pin), sending x-er-snapshot. Golden-record detail takes snapshot=. What is missing is the join from a RUN to a snapshot: RunItem carries config_hash, model_version, tf_snapshot_id, but not the lake snapshot its results were committed at. So "read the results of run R" is not expressible, and a newer run can move the latest snapshot between a job.succeeded and the customer's first read.

Scope

  • Record the committed lake snapshot on the run row (entity change through entities/) and expose it on RunItem.
  • Result list reads accept an explicit snapshot= (golden-records, duplicates), validated against retention (snapshot expiry): 410 or 422 with a clear detail when it is gone, never a silent read of a different snapshot.
  • Document the consistency contract: a full read is all pages of one snapshot.

Acceptance

A test reads run R's results after a newer run R+1 has committed, and gets R's. An expired snapshot is refused loudly. Truncation cannot masquerade as completeness (an explicit next_cursor: null means done).

Activity

  1. added
    mvp
    on Nov 25, 2026
  2. changed the title [-]E11.1 — Document every public result read's payload (Arrow and JSON)[/-] [+]E11.2 — Run-to-snapshot identity, explicit snapshot reads[/+] on Nov 25, 2026
  3. self-assigned this
    on Nov 25, 2026
  4. athvin commented on Nov 25, 2026

    @athvin
    OwnerAuthor

    Claimed — working in #1236 (draft). Closing that PR releases the claim.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

mvp

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions