From Hosted LSP POC to Production Readiness
Week 16 followed a mobile payment through a proposed hosted Fiber service and back to exact CKB settlement evidence. It also stopped at an uncomfortable but necessary boundary: a coherent architecture is not the same thing as a production-safe product. Week 17 goes deeper by converting that boundary into executable acceptance criteria. The question is no longer merely “can the flow work?” It is “what evidence would justify trusting it across crashes, malicious requests, noisy tenants, key recovery, and release claims?” The answer remains deliberately conservative:Multi-tenant hosted LSP and remote-channel signing are post-v0.9.0 design/prototype work, not released Fiber behavior.
Fiber’s open hosted LSP design issue #1625 is the primary source. It records implemented branch coverage alongside incomplete full CI, standalone SDK-agent E2E, production signing policy, crash-recoverable continuations, external-signer watchtower recovery, and credential recovery. The associated hosted baseline PR #1623 is work in progress. Passing local models here cannot erase those upstream gaps.
A signature is not the end of a transition
A remote signature arrives in the middle of a channel state transition. The node still has to validate it, persist continuation material, apply the transition, queue the peer message, and send that message. Crashing between any two of those steps creates a dangerous question: should restart repeat the work or assume it already happened? The ordering must make the answer recoverable:persist request -> verify exact response -> persist continuation -> apply state -> persist outbox -> emit once
Exercise 65 journals each phase under (tenantId, channelId, requestId). It injects a crash after every durable boundary, reconstructs a new coordinator from cloned disk state, and proves that one channel transition and one peer effect result. A changed signature, changed continuation, malformed next public nonce, stale counter, or different tenant cannot borrow the receipt.
This is an executable teaching model of a stated production blocker. Its Maps, synthetic signature, and outbox are not Fiber storage or wire formats.
The wallet must approve meaning
Moving private keys to a phone does not make the host harmless. If the phone signs any well-formed digest, a compromised host may ask it to authorize a validly encoded theft. A fail-closed wallet policy therefore reconstructs the proposed state transition and checks its semantics:- tenant and channel signer scope;
- previous state root and monotonic commitment counter;
- balance conservation and bounded fees;
- exact added or removed direction-aware TLC;
- full payment hash, amount, and safe expiry;
- preimage for fulfillment or elapsed height for timeout;
- one-time secret nonce use;
- rejection of unknown transition variants.
Multi-tenancy needs failure containment, not just prefixes
Tenant-prefixed keys prevent one class of collision. They do not by themselves stop one tenant from exhausting memory, monopolizing activation, crashing a shared process, poisoning a backup, or forcing the public trampoline offline. Exercise 67 treats the public network plane, tenant runtimes, and durable tenant state as different failure domains. Admission is bounded globally and per tenant. Hydration gives queued tenants a turn. Runtime eviction removes memory only; channel state remains durable. A tenant crash does not disconnect ordinary public forwarding. Backup integrity binds both payload and tenant identity, so Tenant A’s image cannot overwrite Tenant B. The scheduler and quota numbers are local teaching choices. The stable design requirement comes from issue #1625: one public node, tenant-scoped data planes, durable state, active-runtime bounds, and global/per-tenant quotas.Release claims need an evidence gate
Week 17 uses four labels:
Exercise 68 applies that gate. The Fiber v0.9.0 release qualifies only the foundations it actually shipped. Hosted-LSP production safety remains blocked even when every local Week 17 exercise passes. Clearing local fixtures cannot manufacture an upstream tag, green full CI, standalone SDK workflow, external-signer watchtower recovery, credential recovery, or reviewed production policy.
CKB node health is a separate dependency gate. The CKB August 19 development report is useful current node evidence, and the CKB transaction model remains the consensus boundary. Neither proves an experimental hosted Fiber layer is released.
Verified behavior versus teaching model
Run the exercises
65-crash-journaled-signer-continuation.tscrashes and resumes every signer-continuation boundary without duplicate state or peer effects.66-fail-closed-wallet-policy.tschecks the semantic channel transition before producing a client signature.67-hosted-service-failure-containment.tscontains tenant load, crashes, eviction, and backup/restore without taking down public forwarding.68-production-readiness-evidence-gate.tsprints released, prototype, blocked, and unknown claims plus every open production gate.