Skip to content

A lease's size is the core's record: the lease map is a view over PlacerCore (step 1, part 1) - #6308

Open
joelteply wants to merge 1 commit into
canaryfrom
1ae08688/lease-view
Open

joelteply wants to merge 1 commit into
canaryfrom
1ae08688/lease-view

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

ONE-FRAME-ONE-MEMORY.md, step 1: the authority's one record is PlacerCore. The
ledger kept each lease's bytes a second time (Held.lease.bytes), written at the
carve and the shrink after the core had already moved them.

  • sage: Ledger::holding(id, place) and PlacerCore::holding(ask, place) answer
    a claim's committed or retired holding.
  • kernel: Held keeps LeaseMeta (id, consumer, kind, acquired, expiry, policy),
    never bytes. A lease's bytes are read from the core: held_bytes for sums (a
    lease the core holds nothing for holds nothing), snapshot/snapshots for
    callers. lease() returns an owned snapshot. The carve's and the shrink's
    separate writes are deleted: the remainder is read back from the core.
  • one expiry rule (lease::expired) for ResourceLease and LeaseMeta.

Validator: a_lease_is_what_the_core_holds_for_it_through_carve_shrink_release_
and_a_move_in_flight (Codex's ask): after a carve, a shrink, a shrink asked but
not yet given, and a release, the lease a caller reads equals the core's
holding. Every existing ledger and daemon test passes unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

…cerCore (step 1, part 1)

ONE-FRAME-ONE-MEMORY.md, step 1: the authority's one record is PlacerCore. The
ledger kept each lease's bytes a second time (Held.lease.bytes), written at the
carve and the shrink after the core had already moved them.

- sage: Ledger::holding(id, place) and PlacerCore::holding(ask, place) answer
  a claim's committed or retired holding.
- kernel: Held keeps LeaseMeta (id, consumer, kind, acquired, expiry, policy),
  never bytes. A lease's bytes are read from the core: held_bytes for sums (a
  lease the core holds nothing for holds nothing), snapshot/snapshots for
  callers. lease() returns an owned snapshot. The carve's and the shrink's
  separate writes are deleted: the remainder is read back from the core.
- one expiry rule (lease::expired) for ResourceLease and LeaseMeta.

Validator: a_lease_is_what_the_core_holds_for_it_through_carve_shrink_release_
and_a_move_in_flight (Codex's ask): after a carve, a shrink, a shrink asked but
not yet given, and a release, the lease a caller reads equals the core's
holding. Every existing ledger and daemon test passes unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant