Add CLI, safety proofs, and TLA+ consensus model#2
Merged
hyperpolymath merged 1 commit intomainfrom Dec 16, 2025
Merged
Conversation
CLI/REPL (lib/phronesis/cli.ex): - `phronesis run <file>` - Execute policy files - `phronesis parse <file>` - Show AST - `phronesis check <file>` - Validate syntax - `phronesis repl` - Interactive REPL with state management - Build with `mix escript.build` Safety Proofs (docs/safety_proofs.md): - Sandbox Isolation: Policies cannot escape execution environment - Capability Enforcement: Operations require explicit grants - Byzantine Fault Tolerance: Safety with N >= 3f + 1 agents - Combined security analysis and attack surface review TLA+ Consensus Model (formal/PhronesisConsensus.tla): - Formal specification of PBFT-style consensus protocol - Safety properties: Agreement, Validity, Non-repudiation - Liveness properties: EventualDecision, Progress - Configuration for TLC model checker included Also updates mix.exs with escript configuration.
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.
CLI/REPL (lib/phronesis/cli.ex):
phronesis run <file>- Execute policy filesphronesis parse <file>- Show ASTphronesis check <file>- Validate syntaxphronesis repl- Interactive REPL with state managementmix escript.buildSafety Proofs (docs/safety_proofs.md):
TLA+ Consensus Model (formal/PhronesisConsensus.tla):
Also updates mix.exs with escript configuration.