GeezerVison is showing github.com — id(phase-14): shells v1 slice 3 — ESP32-class hardware shell spike (#6296) · Issue #10929 · developing-today/code
id(phase-14): shells v1 slice 3 — ESP32-class hardware shell spike (#6296) #10929DescriptionScope
Spike the hardware shell from the record: an ESP32-class device exposing the named interaction subset (presence, journal-head, confirm/act) with exclusions stated in its capability statement; iroh transport; wake-on-journal-head posture. Done = the spike runs against a self-hosted world and the capability statement (with exclusions) is recorded on this issue.
Source record: doc/2026-11-10T20-40-00Z_design_more_shells_v1/2026-11-10T20-40-00Z_design_more_shells_v1.md (merged via PR #8243), §"Follow-on slices". Parent design issue: #6296. Core topic: #6279. Plan of record: #6312.
Binding constraints from the record's review findings (2026-11-14, PR #8243): conformance alone is not a completion gate — behavioral checks for the shell's required workflow are also required; catch-up reconstructs the rendered view from the client projection and host view (the journal event suffix alone can omit entries and redact seeds); reconnect must detect a rewritten journal (history-identity check, or a fresh snapshot when continuity is unprovable); provider declaration in v1 uses the F12.4 registry/manifest out of band.
Sequencing stop rule from the record: F12.10 scheduling/quotas #1067 is still open and binds the hosted side. Every v1 shell is local-first; if an implementation slice reaches a hosted surface before #1067 lands, stop and name #1067 rather than inventing quota behavior.
Filed by queue triage task 18464 (lane any-k, 2026-11-17) completing the #6296 deliverable's breakdown half. Activitydeveloping-today commented on Nov 17, 2026 dezren39 commented on Nov 23, 2026 agent-note:v1
event: claim — lane EP (archer, Muse sandbox seat) taking the landable slice of #10929
at: 2026-11-22
Premise check (fresh, this pass): issue OPEN, no live claim in comments (last activity 2026-11-20, bot only), no native blocked_by, no hardware-shell crate on main (pkgs/id/crates has id-native-shell only). #1067 stop rule checked: this slice is local-first against a self-hosted world — no hosted surface reached, so the rule does not trigger.
Slice I am landing (one PR): a new dependency-light crate pkgs/id/crates/id-hw-shell — the ESP32-class hardware shell spike:
- sends only
join and form_result (confirm/act on a presented form choice; Submit/Cancel actions and Choice-field selections only — forms requiring free-text values are refused with a typed error naming the exclusion);
- folds only
snapshot / event / view / form_result_status / error into a compressed state: journal head (newest durable sequence) + presence set (from the journal's system joined/left events) + the currently presented choice;
- wake-on-journal-head posture: no live session held; resume joins with
after = recorded head and treats a non-contiguous replay as unprovable continuity → fresh snapshot (review finding 3);
- machine-readable capability statement in the design's terms (frames sent / server frames presented / providers declared: none / exclusions by name: rich rendering, free text entry, world hosting, provider offers), pinned by tests to the F13.1 contract file and to the crate's actual builders and fold so it cannot drift silently;
- behavioral test against a self-hosted world (in-process host, form-presenting program): join → presence + journal head observed → presented choice confirmed → the program records the result (host-side oracle), per review finding 1 (conformance alone is not the gate).
On merge I will record the capability statement on this issue as the Done requires. dezren39 commented on Nov 23, 2026
Progress — Lane EP (archer), 2026-11-22.
The spike is implemented and verified: new crate pkgs/id/crates/id-hw-shell in PR #12942 (head 044fbe8ead0).
cargo test -p id-hw-shell: 11 unit tests + 1 live behavioral test against a self-hosted in-process world, all passing; fmt check clean; clippy (repo form, --all-targets) exit 0.
- The live test is behavioral, not conformance-only (per the design review): presence folded from the snapshot, the confirm answered, and the oracle is host-side — the program's own record of the confirmed answer plus the
form_result_status reply.
Merging #12942 now; the capability statement with exclusions follows as the closing record on this issue. dezren39 commented on Nov 23, 2026
Done — Lane EP (archer), 2026-11-22. The spike runs against a self-hosted world and the capability statement is recorded below, per this issue's Done criteria.
Landed: PR #12942, merged as da1e90f110e29e2c36829cfaad97954f9a9f298d — new crate pkgs/id/crates/id-hw-shell (+1 workspace member line, +12 lock lines).
Verification (first-hand, laptop worktree, nix develop in pkgs/id):
cargo test -p id-hw-shell — exit 0: 11 unit tests + 1 live behavioral test, all passing.
- The live test (
tests/live_wake.rs) runs against a self-hosted in-process world (iroh loopback): wake → presence folded from the snapshot → choice presented by the world's program → the device confirms → oracle is host-side (the program's own recorded result — exactly one, carrying the selection "when":"now" — plus the form_result_status reply) → journal head tracked on a durable event → disconnect → a third participant joins while the device is off → fresh-wake snapshot re-reads presence → head-only resume wake replays contiguously, no divergence.
cargo fmt -p id-hw-shell -- --check clean; cargo clippy -p id-hw-shell --all-targets exit 0.
Wire facts established first-hand while building the spike (they shaped the shell's posture): the snapshot's head field is current_sequence and its participants list is the only presence a session is given — the host pushes no live join notifications; joins and form presentation do not advance the journal; a resume join (after) is answered with replayed events only, no snapshot; form results are delivered to the program without a broadcast event frame to sessions.
Capability statement (as returned by id_hw_shell::capability_statement(), asserted against the embedded contract in the unit tests):
{
"shell": "id-hw-shell",
"shell_class": "esp32-class hardware",
"contract": { "name": "shell", "version": 1 },
"frames_sent": ["join", "form_result"],
"server_frames_presented": ["snapshot", "event", "view", "form_result_status", "error"],
"providers_declared": [],
"posture": "wake-on-journal-head: no live session is held open; the device joins, folds to the journal head, acts if a choice is presented, and disconnects; a wake that needs presence takes a fresh join (the snapshot is the only presence read the contract offers), and a wake that only needs the events since its recorded head resumes with `after`, treating a non-contiguous replay as unprovable continuity",
"exclusions": [
{
"name": "rich_rendering",
"detail": "screen, scene and audio surfaces are never rendered; a view is read only for its journal head and a presented form choice"
},
{
"name": "free_text_entry",
"detail": "chat, paste and input frames are never built; a form field that requires free text (text, number or date entry) makes the form unanswerable by this shell"
},
{
"name": "world_hosting",
"detail": "the shell never hosts a world; where the device class cannot hold a full iroh node it speaks to a paired full node it owns, with the contract's frames on the wire"
},
{
"name": "provider_offers",
"detail": "no F13.7 capability providers are declared or answered; provider_request frames are ignored"
}
]
}
Named next slice (not part of this spike): a transport binding that carries these frames from real ESP32-class hardware (or its simulator) to a paired full node — the crate is deliberately transport-free, with the frame builders/fold as the seam. Sibling slices 1–2 (#10927 native shell follow-ons, #10928) proceed independently.
Closing as completed.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|