Repository navigation
Conversation
…release manifest (#690) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VCgWWsrZ4EvHNNNTAe7RC1
…ut short or deeply nested (#690) Passed when written; mutation checks: dropping the one-image rule, the trailing-bytes check or the depth limit fails it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VCgWWsrZ4EvHNNNTAe7RC1
…known key or bad signature is refused (#690) The signature check is a seam (a fake here) until the owner picks the Ed25519 source. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VCgWWsrZ4EvHNNNTAe7RC1
…ytes before one are never written (#690) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VCgWWsrZ4EvHNNNTAe7RC1
…o boot (#690) The slot erases only the image's own size. The size and hash checks come next. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VCgWWsrZ4EvHNNNTAe7RC1
… and never booted (#690) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VCgWWsrZ4EvHNNNTAe7RC1
…another format, no panel image or too big is refused (#690) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VCgWWsrZ4EvHNNNTAe7RC1
…e confirms itself (#690) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VCgWWsrZ4EvHNNNTAe7RC1
…lit and answers one line a step (#690) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VCgWWsrZ4EvHNNNTAe7RC1
…, before their bytes are kept (#690) Manifest at most 32 KB, signature exactly 64 bytes, image chunk at most 4 KB, done empty. The unknown-type test passed when written (an unknown frame already fell through to a refusal); it now has its own check. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VCgWWsrZ4EvHNNNTAe7RC1
…dropped connections end with nothing switched (#690) 3 s before the manifest, so a stray connection can't hold busy; 10 s mid-image. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VCgWWsrZ4EvHNNNTAe7RC1
…ode's network) and the update server are up (#690) Never on the display feed, so updating with DeckBridge closed doesn't roll a good image back. Otherwise it rolls back after 120 s. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VCgWWsrZ4EvHNNNTAe7RC1
…mpty until the owner makes them (#690) test_release_keys.py checks the panel's list equals ReleaseKeys.swift; a mistyped key is left out (mutation check: skipping the hex check fails it). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VCgWWsrZ4EvHNNNTAe7RC1
…p's, and runs when the app's change (#690) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VCgWWsrZ4EvHNNNTAe7RC1
, for #691) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VCgWWsrZ4EvHNNNTAe7RC1
…h libsodium, against the updater's vectors (#690) RFC 8032 TEST 1 and the updater's own CryptoKit fixture, read from its file so the two can't drift. Native links the system libsodium; the board links the copy in the ESP32 libs. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VCgWWsrZ4EvHNNNTAe7RC1
…hunk as the session's hasher (#690) FIPS 180-2 B.1 and B.2 in uneven pieces, and start() beginning again. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VCgWWsrZ4EvHNNNTAe7RC1
…y, and logs its version (#690) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VCgWWsrZ4EvHNNNTAe7RC1
…sodium's checks, and the two ways it's refused (#690) A test key from a fixed seed, made in the test; never a release key. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VCgWWsrZ4EvHNNNTAe7RC1
…rsion, so a bad write can't refuse every update (#690) update_floor::raised keeps the higher of the floor and the one a confirmed image brings; update_session's version compare is shared, not copied. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VCgWWsrZ4EvHNNNTAe7RC1
… so a long erase after "ok manifest" doesn't time out (#690) The board passes one after each received(), stamped after the work. Pins existing behavior (mutation: stamping only non-empty reads fails it). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VCgWWsrZ4EvHNNNTAe7RC1
…10 on core 0, the spare slot, the floor, the rollback (#690) src/update_wifi: an lwIP-socket server task on core 0 running update_link; an esp_ota Slot adapter; libsodium's Ed25519 and SHA-256 as the session's checks; the floor in its own NVS namespace, raised only when the new image confirms itself; verifyRollbackLater() overridden so update_boot decides (confirm on network + server up within 120 s, else roll back); a still "Updating…" screen while flash is written, the loop skipping render and refresh. main.cpp gains five calls (agreed with agent2). Board code: not unit-testable; written with an Embedded Firmware Engineer agent. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VCgWWsrZ4EvHNNNTAe7RC1
# Conflicts: # .github/workflows/ci.yml
…ter (#690, #689) Red first: test_release_keys.py (app 2 keys, panel 0) and the native test, flipped from an empty list to the owner's primary and backup. Reviewed by an Embedded Firmware Engineer agent: only the Wi-Fi update's key lookup changes; updates signed by these keys now reach the rest of the checks. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VCgWWsrZ4EvHNNNTAe7RC1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #690
Summary
The deck panel takes a signed firmware update over Wi-Fi.
Protocol for the app side (#691):
docs/DECK-PANEL-UPDATE-PROTOCOL.md.Evidence
ReleaseKeys.swift(a Python test in CI).libsodium-devin CI, whose version the Deck panel job logs). The board uses the ESP32 libs'espressif__libsodium(component 1.0.22), already in the default link. The shared RFC 8032 and CryptoKit vector test is what ties them together.src/update_wifi.*, fivemain.cppcalls,wifi_link::setup_up()): can't be unit-tested. An Embedded Firmware Engineer agent wrote it. It has not been compiled locally: the board build is blocked for this session, so CI's Deck panel job is its first build, and the first proof that libsodium links on the board.Embedded Firmware Engineer notes
WiFiServer, which isn't thread-safe.ok manifest.lv_layer_top, draws it once, then skips render and refresh until the write ends.no_latch,missedandlaterise in the perf line. That is expected.deckupdate, apart from Wi-Fi's, so a hold-reset forget can't touch the floor. Keys:floor, and a pendingpend_floor/pend_slot.timeval,TCP_NODELAY,MSG_DONTWAIT; the Preferences overload; LVGL 9.1'slv_obj_remove_flag;<sodium.h>fromespressif__libsodiumlinks. The symbols are in the.a, but linking isn't proven yet;On the board (the coordinator flashes; the owner looks)
unknown-key, and nothing is written.Merge Danger
Door: two-way for the code. A floor written to NVS can't be lowered, by design (#689).
Blast Radius: deck panel. With the key list empty, no update can be taken.
main.cpp,platformio.iniandwifi_linklines agreed with agent2. This PR lands last in themain.cpporder (#666, #664, #702, #711, then this); main gets merged in before it's armed.🤖 Generated with Claude Code
https://claude.ai/code/session_01VCgWWsrZ4EvHNNNTAe7RC1