Repository navigation
Fix X4 Full refresh crashes and persistent boot retries - #183
Open
Fledgewing wants to merge 3 commits into
Open
Fledgewing wants to merge 3 commits into
Fledgewing wants to merge 3 commits into
Conversation
Use an internal task stack for synchronous resolver NVS writes. Bound unfinished worker and early-boot retries with durable SD markers, preserving books, settings and catalog generations. Exercise the missing flash-stack constraint, large catalogs and cold-boot recovery in the simulator, and document recovery for installed firmware. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BLYjLJzEkmBRpMx6vsJ4xw
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BLYjLJzEkmBRpMx6vsJ4xw
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BLYjLJzEkmBRpMx6vsJ4xw
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.
Full refresh's worker put its stack in PSRAM, but the catalog transport can synchronously write Tailnet peer state to NVS. Flash/cache-disabled operations require an internal task stack. The durable
mirror.requestthen retried the same work at every boot. There is no device log, so this identifies a proven unsafe call path consistent with the report, rather than claiming the exact panic instruction.Use an internal worker stack while retaining PSRAM catalog allocations. Durable guards stop a third unfinished worker attempt and stop early-boot restoration after two incomplete setups, preserving books/settings and published generation bytes. Explicit Full refresh retries. The simulator now models the missing flash-stack constraint and tests large catalogs and crash recovery across separate processes.
Recovery for the installed firmware: remove only
/.crosspoint/orbify/mirror.requestfrom the SD card, reinsert and restart; avoid Full refresh until a tested fix is installed. OTA is usable after recovery for a later published fix. Test artifacts need SD firmware update or maintainer-operated USB sideload. Down + Power alone does not cancel the old worker. Full evidence and recovery details:docs/design/full-refresh-crash-recovery.md.Validation: host tests and fresh overlay application passed. Baseline 3,000-book simulator catalog completed; restoring the external stack fails the modeled flash constraint. Fixed 10,300-book run completed with 394,152 bytes peak catalog PSRAM. CI includes all Xteink firmware builds and the full emulated release suite. No device access, release or tag.