Skip to content

Conversation

@hyperpolymath
Copy link
Owner

No description provided.

claude and others added 4 commits December 17, 2025 19:38
- Add missing flake.nix (Nix fallback per RSR policy)
- Update guix.scm version from 0.1.0 to 0.6.0
- Update STATE.scm with current project state (294 proofs, 6 systems)
- Update SECURITY.md version and theorem count
- Update .well-known files with accurate v0.6.0 metadata
- Fix provenance.json with correct proof statistics

All versions now consistent at 0.6.0 across SCM and security files.
This commit recovers the actual Valence Shell project vision after it was
overwritten by AI with RSR compliance documentation.

What changed:
- README.adoc: Now explains what Valence Shell IS (thermodynamic shell,
  Saga pattern, reversible transactions) instead of listing proof counts
- CLAUDE.md: Focused on sacred file protection and project identity
- STATE.adoc: NEW - cross-conversation context tracking
- HANDOVER.md: NEW - complete context for AI assistants
- META.scm: Machine-readable project metadata
- ECOSYSTEM.scm: Layer structure and ecosystem position
- justfile: Elixir-focused task automation
- hooks/pre-commit: Protect sacred files from AI modification

The core insight: Valence Shell treats commands as Sagas with compensation.
Every operation has an inverse. F⁻¹(F(s)) = s.

Phase 1 (current): Hypervisor supervising /bin/sh
Phase 2: LD_PRELOAD syscall interception
Phase 3: Shell → Elixir AST transpilation
Phase 1 foundation - the Hypervisor pattern:

Core modules:
- Valence.Command - 4-callback behaviour for reversible operations
  - describe/1 → :safe | :warn | :danger
  - execute/2 → {:ok, result, compensation}
  - compensate/2 → undo the operation
  - verify/1 → detect drift (Two Generals)

- Valence.History.Zipper - O(1) undo/redo without state copying
  - push/back/forward in constant time
  - Functional, immutable structure

- Valence.Journal - Idempotency for crash recovery
  - Track pending/completed/compensated states
  - Same key = cached result (no re-execution)

- Valence.Saga - Compensating transaction coordinator
  - Multi-step operations as atomic units
  - Automatic rollback on failure

Sample commands:
- Directory.Mkdir / Directory.Rmdir
- FileOps.Touch / FileOps.Rm / FileOps.Write

Proofs:
- proofs/coq/rmr.v - Reversibility axiom F⁻¹(F(s)) = s

Tests:
- Zipper unit tests
- Property-based tests with StreamData
@hyperpolymath hyperpolymath merged commit 88f4df9 into main Dec 18, 2025
0 of 13 checks passed
@hyperpolymath hyperpolymath deleted the claude/review-scm-security-CnFLt branch December 18, 2025 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants