feat(relay): authenticate registered alternate poll shims - #1
Closed
derickdsouza wants to merge 2 commits into
Closed
derickdsouza wants to merge 2 commits into
derickdsouza wants to merge 2 commits into
Conversation
An explicit binding of the current x-watch shim bytes plus exec-target identity lets a harbor-style wrapper stay armed across bootstrap, while homes without a registration keep the stock byte-static path.
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.
Summary
bin/fm-x-watch-register.shbinding so a registered alternate Relay poll shim (harbor-style wrapper) is authenticated as a first-class X-mode poll path.What Changed
bin/fm-x-watch-register.sh, the sole writer of astate/x-watch.poll-trustbinding record (mode 0600, never auto-created) that pins the current shim bytes plus the absolute path and sha256 of its exec target.fm-bootstrap.sh'sx_mode_setupnow resolve the poll exec target through the newfmx_poll_exec_target/fmx_poll_shim_registered_validhelpers: a still-matching registration is preserved across bootstrap regeneration and dispatched by the watcher, while stale or tampered bindings are rejected exactly like unregistered rewrites, with the rejection message naming the re-register command as the remedy.fmx_poll_shim_validwith the splitfmx_poll_shim_stock_valid, and document the registration path in thedocs/configuration.mdRelay section,docs/scripts.md, andAGENTS.md, with colocated tests intests/fm-x-watch-register.test.shcovering stock, registered, unregistered, and tampered-target variants.Testing
tests/fm-x-watch-register.test.sh: stock watcher, registered watcher, unregistered reject, tampered target named, bootstrap preserve, bootstrap stale→stock, register refuses stock.Pipeline
Updates from git push no-mistakes
✅ **intent** - completed
Step completed on run that validated this head.
✅ **Rebase** - completed
Step completed on run that validated this head.
✅ **Review** - completed
Step completed on run that validated this head.
✅ **Test** - completed
Step completed on run that validated this head.
✅ **Document** - completed
Step completed on run that validated this head.
✅ **Lint** - completed
Step completed on run that validated this head.
✅ **Push** - completed
Pushed to fork
derickdsouza/firstmate.