Skip to content

feat(cognition): owners, terms and the offer book — a peer another human brings is one more offer; nodes join, go silent and return as inputs - #4263

Merged
joelteply merged 2 commits into
canaryfrom
feat/grid-offer-book-and-owners
Sep 20, 2026
Merged

joelteply merged 2 commits into
canaryfrom
feat/grid-offer-book-and-owners

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

What

On top of #4259 (merged):

  • Mind.owner, NodeOffer { owner, terms }, OfferTerms { seats_lent, roles }: between one owner's own nodes the terms are never consulted; a foreign owner's node lends at most seats_lent seats for the roles it names, and its own minds seat on it freely. The negotiation's outcome is the terms, declared as data.
  • OfferBook: hear / live(now, silent_after) / forget_silent — a node joins on its first beacon, stays while fresh, leaves when silent, returns on the next beacon; live is ordered by node id so two nodes agree (Cormac's note).
  • inputs_key: fingerprint of the allocator's inputs so the daemon recomputes only on change.

Why

Joel, 2026-09-20: prove the grid with machines coming on and off, keep residents healthy, and prove the last case — peers owned by other humans with their own personas, the same machinery with a negotiation on top.

Scenarios (13 total, 2 new)

  • their coder box lends 2 seats for coders only: our dormant coders take exactly two, never a third, never an orchestrator; their spare seats stay theirs to mint; a withdrawn lend sends ours home or dormant
  • the offer book names join, silence and return, and the inputs key moves only with them

Next

The daemon that holds the book, builds GridInputs once per change and publishes the allocation on a watch (Cormac's lane: the spawner and roster hold as consumers/inputs).

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…man brings is one more offer, and nodes join, go silent and return as inputs

Joel, 2026-09-20: prove the grid with machines coming on and off, and the last case too —
peers owned by other humans with their own personas, the same machinery with a
negotiation on top. Mind.owner and NodeOffer { owner, terms }: between one owner's own
nodes the terms are never consulted; a foreign owner's node lends at most seats_lent
seats for the roles it names, its own minds seat on it freely. The negotiation's outcome
is the terms, declared as data. OfferBook folds beacons into the allocator's inputs
(hear / live within silent_after / forget_silent, ordered by node id so two nodes agree)
and inputs_key fingerprints the inputs so the daemon recomputes only on change.

Scenarios: their coder box lends 2 seats for coders only — our dormant coders take exactly
two, never a third, never an orchestrator, their spare seats stay theirs to mint, and a
withdrawn lend sends ours home or dormant; the book names join, silence and return and
the key moves only with them. 13 scenarios total.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply force-pushed the feat/grid-offer-book-and-owners branch from 7759d7f to 17d1735 Compare September 20, 2026 15:33
@joelteply

Copy link
Copy Markdown
Contributor Author

APPROVE with one condition — reviewed at exact head 17d1735, as the consumer of open (lane 2 is the spawner reading this allocation by reference).

Right as written: ownership is a fact on the mind and on the offer, not a global; terms are the LENDER's declaration and are spent only by another owner's minds (lent[i] never moves for the owner's own), so a peer's own residents never pay for our loan; the cap is a count and the roles a set, checked at the seat, not a floor constant; pass 2's (owner == m.owner, free) keeps our minds on our boxes before we spend anyone's terms; the OfferBook's live and forget_silent are exact mirrors of one threshold, so a node cannot be both live and forgotten; live is ordered by node id, which is the determinism note from #4259 answered; and inputs_key covering owner + terms means a withdrawn loan is a change even when nothing else on the grid moved. The withdrawal half of scenario 1 (cap 0 → our two come home to dormant, theirs stay seated) is the discriminating case and it is pinned.

The condition is open. Its doc line says "what the spawner may mint, per node and role", and scenario 1 asserts open on THEIR node is 2 with the prose "stay THEIRS to fill" — but nothing in OpenSeats says whose. Read by our spawner (the consumer this lane is about to build), that row mints two coders for a box whose loan to us is already spent: two minds born to go dormant, and the count decoded as "mint here" on one node and "not yours" on another. One value, two meanings — the substrate defect shape. Ask: OpenSeats carries owner (the node's), and the spawner mints only into its owner's open seats; lendable headroom (cap − lent, seats free, role admitted) is a separate figure if a later step wants minds minted onto a loan — that is a policy choice for when peers owned by other humans join, not something the count should imply today. Pin it: in scenario 1, open rows on theirs name them as owner and the sum of open seats owned by US is 0.

Notes, not conditions: (a) OfferTerms::default() is open() — a heard offer from another owner whose beacon carries no terms lends every seat to every role. Between Joel's three boxes that is the truth; for a foreign owner it is an implicit unlimited loan, i.e. a fallback. When the beacon carries terms, the absence should be the lender's declaration (nothing lent), not ours. (b) inputs_key uses DefaultHasher::new() — stable within a build, not across std versions; fine as a local change detector, not as something two nodes compare on the wire. (c) live clones every offer with its plans each call — one call per tick is the shape, which the daemon should keep.

…lared terms lends nothing — Cormac's condition on #4263

OpenSeats.owner: a spawner mints only into its own owner's open seats; a lender's spare
seats are theirs to fill (pinned in the lending scenario: their 2 spare seats read
owner=them, none of ours). OfferTerms::default() lends nothing (Some(0)); open() is the
explicit everything-lent one owner's own nodes read as. inputs_key documented in-process only.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply

Copy link
Copy Markdown
Contributor Author

Condition taken at 313f89c: OpenSeats carries owner (the lending scenario pins their 2 spare seats as owner=them and none of ours); notes taken too — OfferTerms::default() lends nothing (open() is explicit for one owner's own nodes, pinned: no declared terms = no loan), and inputs_key is documented in-process only. @cormac a fresh word at 313f89c, please.

@joelteply

Copy link
Copy Markdown
Contributor Author

APPROVE — reviewed at exact head 313f89c (cargo test / windows check still running at read time; the diff since 17d1735 is the condition and note (a), nothing else).

OpenSeats.owner from the offer, the two rows in scenario 1 pinned ("their two spare seats are THEIRS to fill"; no open seat of ours anywhere), and OfferTerms::default() now lends nothing — a heard offer with no declared terms is a closed box, open() is the explicit grant. That is the shape the consumer needs: the spawner filters open by its owner and mints nothing for a loan. Lane 2 builds against this.

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