Harden protocol identity, signatures, peer auth, and snapshots - #6
Merged
Conversation
the-code-learner
changed the base branch from
chatgpt/hardening-foundation
to
main
August 18, 2026 15:23
the-code-learner
marked this pull request as ready for review
August 18, 2026 15:24
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.
Scope
Implements the protocol hardening approved in issues #2, #3, #4, and #5 on top of the foundation hardening PR.
This is intentionally a clean protocol break. There is no active Zephyr devnet or deployed chain state that requires compatibility with the pre-hardening message formats.
#2 — chain identity and signing domains
ZEPHYR_CHAIN_IDwith local-development defaultzephyr-devnet-1state.json, initialize it on first store creation, reject a reused data directory under a different chain, and reject persisted blocks whose chain does not match the configured store#3 — canonical P-256 and deterministic transaction identity
#4 — replay-safe request-bound peer authentication
/v1/internal/*endpoints even through the embedded handler#5 — committed state roots and quorum snapshot recovery
stateRootto blocks and include both in the block hashAppliedFundingIDs; tampering those IDs invalidates the snapshot commitmentAdditional hardening
docs/protocol-security.mdas the normative security model for the clean-break protocol, including persisted chain identity and funding-id commitment semanticsVerification
Permanent CI run #140 passes on final head
893d11c5df8a44450a4a9c56cb812dd643439619:gofmtcheckgo vet ./...go test ./...npm cinpm audit --audit-level=highA separate post-audit verifier also passed the full Go vet/test suite before the final cleanup commit. Temporary integration workflows, scripts, triggers, and diagnostics used during development were removed from the final diff. The PR remains stacked on
chatgpt/hardening-foundation; neither this PR nor the foundation PR is merged intomainautomatically.