orchestrator: Add the SvnFloor anti-rollback capability trait - #28
Open
chrysh wants to merge 3 commits into
Open
orchestrator: Add the SvnFloor anti-rollback capability trait#28chrysh wants to merge 3 commits into
chrysh wants to merge 3 commits into
Conversation
One device's durable SVN floor behind the capability seam: floor() and advance(), monotonic and idempotent so a replayed commit is harmless, durable when advance returns. Storage encoding (OTP fuse counters, protected flash) stays behind the trait; PLDM devices that commit internally simply have no eRoT-side floor. Trait only — the OTP-backed adapter and the driver's commit_svn_floor executor follow separately. Assisted-by: Claude:claude-fable-5 Signed-off-by: Christina Quast <christina.quast@9elements.com>
Per review: reading the floor does not require exclusive access. Assisted-by: Claude:claude-fable-5 Signed-off-by: Christina Quast <christina.quast@9elements.com>
The trait cannot enforce it: one-way encodings get it for free, any other storage must check itself. Assisted-by: Claude:claude-fable-5 Signed-off-by: Christina Quast <christina.quast@9elements.com>
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.
SvnFlooris the anti-rollback capability seam: one managed device's durable SVN floor.advance(to)is monotonic (at-or-below is anOkno-op) and durable on return; storage encoding (OTP fuses, protected flash, mocks) stays behind the trait.Trait only — implementations and the orchestrator commit path follow in separate PRs.
Part of #18