Skip to content

impl(id): freshness token + frontier check in id-core (per #9128 design) #13094

Open

Description

@dezren39

Parent: #9128 (social app reference model design, §6 + §9). Program #9106, epic #9107.

Implement the freshness token as pure logic in pkgs/id id-core, per the #9128 design record §6:

Acceptance: unit + property tests — frontier comparison is reflexive/transitive-consistent; a token issued at the current frontier yields nothing-new; an advanced input yields delta naming exactly the advanced inputs; an unreachable frontier yields resync. Oracle: the §6.3 check table in the design record.

Activity

  1. developing-today commented on Nov 23, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Pickup — xaltha lane taking #13094.

    Scope: §6 of the #9128 record (doc/2026-11-23_design_id9128_social_app_reference_model.md) as pure logic in id-core: FreshnessToken (view_id / frontier / issued_at / server / signature, canonical-CBOR encoding + ed25519 sign/verify seam per Part A conventions), the Frontier type (per-input list head-seq + tombstone revision, relation checkpoint; component-wise partial order), and the check as a pure function returning nothing-new | delta (per-input after positions) | resync, with a signature/view-failing token treated as no token (§6.5). Unit + property tests against the §6.3 check table. Siblings #13095/#13096 untouched; the frontier types defined here are the seam they build on.

  3. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Progress — #13094 landed as PR #13151 (#13151), branch xaltha/13094-freshness-token @ 71ec29f, says Closes #13094.

    What landed (id-core, new freshness module, pure logic — no I/O/store/clock):

    Evidence:

    • Tests: 18 unit tests walking the §6.3 table + 4 proptest properties (reflexivity, transitive consistency, the §6.3 verdict oracle, floor resync).
    • Sandbox run (completed just before the 2026-11-23 remote-only directive landed mid-task; rustup 1.99.0): freshness 22 passed / 0 failed; full id-core lib 562 passed / 0 failed / 1 ignored; clippy --all-targets clean for freshness.rs; module-reach delta zero.
    • Remote verification per the directive: cargo test --manifest-path pkgs/id/Cargo.toml -p id-core --lib dispatched on the branch, handle fp_b28e233d8fae833289d8bed22f8981f1 — still queued at placement as of this note (all tiers exhausted at submission; recorded, never dropped). Track: fleet queue session status fp_b28e233d8fae833289d8bed22f8981f1.

    Seam for the siblings: #13095/#13096 consume the Frontier/FreshnessToken types defined here; #13096 owns rendering against a pinned (before-date) frontier.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions