Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
8d9fb56
feat: Initialize Tzimtzum Lean 4 project
ycastorium Jan 4, 2026
a64c762
docs: Add Tzimtzum protocol documentation
ycastorium Jan 7, 2026
66eaf10
feat: Implement TzimtzumV2 formal specification
ycastorium Jan 10, 2026
43cf2b5
feat: Add verification tooling
ycastorium Jan 14, 2026
039aec7
docs: Add protocol scenario walkthroughs
ycastorium Jan 15, 2026
4825989
feat: Complete formal verification
ycastorium Jan 17, 2026
43df45b
feat: Initialize Argus Rust workspace
ycastorium Jan 20, 2026
b1b54f6
feat: Add argus-kernel types and capability model
ycastorium Jan 21, 2026
aeaf0d9
feat: Add kernel state machine and background theory
ycastorium Jan 22, 2026
3c18901
feat: Add kernel driver and transition stubs
ycastorium Jan 23, 2026
ca56787
test: Add kernel safety property tests
ycastorium Jan 24, 2026
0dfcf60
feat: Add argus-config crate
ycastorium Jan 27, 2026
20bb5ea
feat: Add argus-audit with in-memory event store
ycastorium Jan 28, 2026
803c3ec
feat: Add argus-oracle with Cedar policy engine
ycastorium Jan 30, 2026
e72b8df
feat: Add argus-registry types and TOML loader
ycastorium Feb 3, 2026
cd6ba7c
feat: Add registry sync, binding, and quarantine
ycastorium Feb 4, 2026
65d4eef
feat: Add registry persistence and trust management
ycastorium Feb 5, 2026
dd25e58
feat: Add argus-analysis sandbox and tool implementations
ycastorium Feb 7, 2026
d0d3659
feat: Add analysis orchestrator and LLM pipeline
ycastorium Feb 10, 2026
99cfd2f
feat: Add registry-analysis integration
ycastorium Feb 11, 2026
a9f773e
feat: Add argus-sandbox profiles and providers
ycastorium Feb 12, 2026
0b9fd5d
feat: Add sandbox domain matching and secret handling
ycastorium Feb 13, 2026
ece3da6
test: Add sandbox tests
ycastorium Feb 14, 2026
ad09971
feat: Add argus-sandbox-exec binary
ycastorium Feb 17, 2026
01bd6b9
feat: Add argus-gateway service and gRPC server
ycastorium Feb 18, 2026
b789216
feat: Add MCP manager and server spawning
ycastorium Feb 19, 2026
fcc51b9
feat: Add LLM proxy with provider adapters
ycastorium Feb 20, 2026
29f3eb5
test: Add gateway integration tests
ycastorium Feb 21, 2026
c185722
feat: Add argus-cli with daemon mode
ycastorium Feb 24, 2026
d5cae48
feat: Add Rocq axioms and abstract specification
ycastorium Feb 26, 2026
b416eee
feat: Add Rocq refinement proofs
ycastorium Feb 27, 2026
463bffc
feat: Add rocq-of-rust extraction and verification scripts
ycastorium Feb 28, 2026
efea0c0
docs: Add README
ycastorium Mar 3, 2026
570060a
feat: Add sentinel multi-tier oracle with formal verification
ycastorium Mar 13, 2026
36b4d2f
chore: Runned a cargo fmt
ycastorium Mar 13, 2026
5bf2f18
ci: Add GitHub Actions for Rust, Lean and Rocq
ycastorium Mar 13, 2026
d93ae05
ci: Only run on pull requests
ycastorium Mar 13, 2026
55b353b
ci: Add rustfmt and clippy components
ycastorium Mar 13, 2026
e8f055b
ci: Add protoc setup
ycastorium Mar 13, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/lean.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Lean Verification

on:
pull_request:
paths:
- 'tzimtzum/**'

jobs:
lean-verify:
name: Verify TzimtzumV2
runs-on: ubuntu-latest
defaults:
run:
working-directory: tzimtzum
steps:
- uses: actions/checkout@v4

- uses: jdx/mise-action@v2

- name: Build and verify
run: make build
28 changes: 28 additions & 0 deletions .github/workflows/rocq.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Rocq Proofs

on:
pull_request:
paths:
- 'argus/formal/**'

jobs:
rocq-proofs:
name: Verify Formal Proofs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: coq-community/docker-coq-action@v1
with:
custom_image: 'rocq/rocq-prover:9.0'
before_script: |
startGroup "Fix permissions"
sudo chown -R 1000:1000 .
endGroup
script: |
startGroup "Build proofs"
cd argus/formal
coq_makefile -f _CoqProject -o Makefile.coq
make -f Makefile.coq -j2
endGroup
uninstall: ''
38 changes: 38 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Rust CI

on:
pull_request:

jobs:
rust-ci:
name: Build, Lint & Test
runs-on: ubuntu-latest
defaults:
run:
working-directory: argus
steps:
- uses: actions/checkout@v4

- uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

- uses: jdx/mise-action@v2

- name: Install Rust components
run: rustup component add rustfmt clippy

- name: Check formatting
run: cargo fmt --check

- name: Clippy
run: cargo clippy --workspace -- -D warnings

- name: Run tests
run: cargo test --workspace

- name: Install cargo-audit
run: cargo install cargo-audit --locked

- name: Security audit
run: cargo audit
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,6 @@ Temporary Items
debug/
target/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk

Expand Down
45 changes: 45 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Einsof

> Work in progress.

Einsof is a security authorization system for LLM tool execution. It addresses the
[Lethal Trifecta](https://simonwillison.net/2025/Jun/16/the-lethal-trifecta/) -- the
combination of private data, untrusted content, and external communication that enables
data exfiltration through indirect prompt injection.

The system enforces authorization at tool boundaries so that a confused (prompt-injected)
agent cannot reach egress channels when it carries taint from private data.

## Components

### [Tzimtzum](tzimtzum/) -- Formal Specification

The TzimtzumV2 protocol, written in Lean 4 using the
[Veil](https://github.com/verse-lab/veil) verification framework. All 7 safety properties
and 12 strengthening invariants are verified automatically via push-button SMT

### [Argus](argus/) -- Rust Implementation

A tool authorization gateway implementing the TzimtzumV2 protocol. Rust workspace with
10 crates covering the core state machine, policy engine, MCP server management, LLM proxy,
gRPC API, sandboxing, and more. 512+ tests across the workspace.

### [Formal Proofs](argus/formal/) -- Rocq (Coq) Verification

Mechanized proofs connecting the Lean specification to the Rust implementation. Three layers:
axioms (data structure interfaces), abstract specification (safety properties), and refinement
proofs (simulation relations and soundness guarantees).

## Toolchain

Managed via [mise](https://mise.jdx.dev/):

| Tool | Version |
|-------|---------|
| Rust | 1.93.0 |
| Lean | 4.27.0 |
| Rocq | 9.0 |

## License

MIT
Loading
Loading