Skip to content

Access triggers materialization; dials wait for bootstrap

Reading of harness/docs/decisions/lazy-provisioning.md. If this page and that file disagree, the source file wins.

Access triggers materialization; dials wait for bootstrap

Section titled “Access triggers materialization; dials wait for bootstrap”

Unseeded-ness is materialization, not a client’s retry loop. A client dialing a plane must not invent backoff against a transient “not ready” code. The server holds the upgrade until open-time bootstrap completes (bounded), then accepts.

Replication open bootstraps the Y.Doc + kernel/session model roots. Genesis modules may construct model entities. Then the server accepts the connection. One daemon hosts the kernel and session planes. Clients wait for local roots with a deadline (sdk). That wait is doc bootstrap, not “spawn a runner then seed.”

PEW execution lives in that same daemon process. Nothing is provisioned per dial.

Two bounds:

  1. Bounded. Unbounded waiting turns broken bootstrap into a silent hang.
  2. Observable. Failures name the cause. Lazy is not silent.

Do not build any of these:

  • Dial-time runner spawn / want→consider.
  • Peer-id uniqueness refuse on upgrade. The upgrade check is path/token only.
  • A client 409-unseeded retry policy.

Client-side retry against transient unready worked, and it was the wrong shape. Every client reimplemented “wait for materialization.” Holding the upgrade next to the provisioner keeps the intent “observe this plane” honest.