GeezerVison is showing github.com — id-hw-shell: ESP32-class hardware shell spike (#10929) by dezren39 · Pull Request #12942 · developing-today/code
Conversation
dezren39
commented
Nov 23, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
What
Slice 3 of the more-shells v1 design (#6296): the ESP32-class hardware shell spike, as a new workspace crate pkgs/id/crates/id-hw-shell. Closes #10929 (the capability statement is recorded on the issue).
The shell is the deliberately small end of the shells family — a wake-on-journal-head participant, not a small desktop:
- Sends only
join and form_result (Submit/Cancel actions, Choice selections, Confirm booleans). Every built frame is checked against the embedded shell contract (id::shell_contract, Opening/Joined phase) before it can be sent.
- Folds only
snapshot / event / view / form_result_status / error into compressed state: journal head, presence set, presented choice. Unknown contract-valid frames are explicitly ignored, never folded.
- Refuses whole any presented form carrying a Text/Number/Date field (
HwError::FreeTextExcluded) — a device with buttons and a knob does not fake a keyboard.
- Declares no providers — the v1 provider declaration is out-of-band (F12.4); the shell never invents an in-band offer.
- Wake posture: no live session is held open. Presence is a wake-time read (the snapshot's participant list — the host pushes no live join notifications, verified live). A head-only wake resumes with
after; a non-contiguous replay marks the shell diverged and discards folded presence (design review finding 3).
Wire facts established first-hand against the in-process host while building this: the snapshot head field is current_sequence; joins and form presentation do not advance the journal; a resume join is answered with replayed events only, no snapshot.
Verification
cargo test -p id-hw-shell — 11 unit tests + 1 live behavioral test, all passing. The live test runs against a self-hosted in-process world (iroh loopback): wake → presence from the snapshot → choice presented → confirm → host-side oracle (the program's recorded result + the form_result_status reply) → head tracking on a durable event → disconnect → bo joins while the device is off → fresh-wake presence re-read → head-only resume replay, no divergence.
cargo fmt -p id-hw-shell -- --check — clean.
cargo clippy -p id-hw-shell --all-targets — exit 0 (remaining warnings are doc-style classes the workspace carries throughout).
Oracle note: per the design review, conformance alone is not a gate — the live test's assertions are behavioral (presence contents, the program's own record of the confirmed answer, head movement), with the contract checker used as a frame gate, not as the success criterion.

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
chatgpt-codex-connector[bot] reacted with thumbs up emoji
New workspace crate pkgs/id/crates/id-hw-shell: the third shell
of the more-shells v1 design, for a constrained hardware client
(ESP32-class, #6296). It sends only join and form_result, folds
only snapshot/event/view/form_result_status/error into a
compressed state (journal head, presence, presented choice),
checks every frame against the embedded shell contract, refuses
forms carrying free-text fields whole, declares no providers,
and detects divergence on a resume wake when the replayed
journal does not continue contiguously from its recorded head.
Behavioral verification: 11 unit tests (capability statement
against the contract file, frame builders against the contract
checker, fold semantics including divergence) and one live test
against a self-hosted in-process world: wake, presence from the
snapshot, choice presentation, the confirm, the host-side result
oracle (program record + status reply), disconnect, a wake-cycle
presence re-read, and a head-only resume replay.
Warning
Review limit reached
You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.
Next included review available in 34 seconds.
Check out review usage here.
View limit details
-
Limit details: You’ve used the included review currently available.
Learn how review limits work.
Review configuration:
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
5c3a52a5-53f0-41d4-bbfd-9841b88ac147
Commits
-
Reviewing files that changed from the base of the PR and between 0f311ae and 044fbe8.
Files ignored due to path filters: 1
-
pkgs/id/Cargo.lock is excluded by !**/*.lock
Files selected for processing: 5
-
pkgs/id/Cargo.toml
pkgs/id/crates/id-hw-shell/Cargo.toml
pkgs/id/crates/id-hw-shell/README.md
pkgs/id/crates/id-hw-shell/src/lib.rs
pkgs/id/crates/id-hw-shell/tests/live_wake.rs
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
| Review |
Status |
Commit |
Review trigger |
| 📝 Code Review |
✅ Completed 2026-11-23T05:32:02.400305Z |
044fbe8 |
PR opened |
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review" or "@codex security review".
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|