Skip to content

Kind resolution at the Pending to Active transition #618

Closed

Description

@David-Noble-at-work

Phase 2 of any-entry-claims.md.

An unasserted claim is a promise to observe; activation is where the model first consults the disk, so activation is where the kind resolves.

  1. A seam shaped like op.RootBinder: a resource that can resolve its own kind implements it (file.AnyEntry does; nothing else needs to).
  2. ResourceCatalog.VerifyExistence drives it — the catalog owns transitions, so the catalog owns the resolution. On Pending → Active, the entry is replaced in the ledger via rebindEntry with the variant the disk shows, and the transition marks the resolved object Active. The Gone branch resolves nothing — nothing was observed, so the entry stays AnyEntry, an honest record of an unmet unasserted claim.
  3. Idempotence is free: VerifyExistence early-returns on an already-Active entry, so resolution happens exactly once, at the consuming scope's starting line.
  4. Identity is untouched throughout: the catalog key strips the URI fragment for location addressing, so the Go type riding the URI is metadata, not identity.

Pins: both directions of the transition, and the ledger holding one entry throughout.

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions