Skip to content

Phase 2: workspace MVP - #5

Merged
thearpankumar merged 207 commits into
masterfrom
phase/2-workspace-mvp
Dec 6, 2026
Merged

thearpankumar merged 207 commits into
masterfrom
phase/2-workspace-mvp

Conversation

@thearpankumar

Copy link
Copy Markdown
Owner

Phase 2 of the backlog: the workspace MVP. Every Phase 2 box in docs/backlog.md is ticked.

What it adds

  • crypthixd: the daemon and its local API. It runs as split processes (front, key holder, mount process, decider, root helper), each under Landlock, seccomp and no_new_privs.
  • A transparent encrypted folder (A1): a FUSE mount with a group commit and a bounded wait for closed files.
  • Program identity resolution, and a per-program policy engine (A2) with a cache of resolved callers and of decider answers.
  • First-use prompts and a deny log (A3, A4). Protected admin actions (A14) need presence: the passphrase or polkit.
  • An AI coding agent guard (U1), with cgroup registration by the installed CLI only.
  • Secrets never on disk (U2).
  • The VS Code extension v1 (A5).
  • MVP benchmarks and a scripted demo inside a throwaway VM. The VM benchmark runs on a disk image formatted in the guest.

Measured at the phase end (2026-12-06)

docs/backlog.md has the full table, each row with its value and pass or miss. Missed targets are written as missed:

  • The build on the mounted vault is 116.48 times plain disk, against a target of at most 1.25. mount_io reaches 0.29 (write) and 0.14 (read) of the engine, against 0.5.
  • One log entry adds 11.97 % to a small commit, against 5 %. A small store commit takes 62 ms, against 20 ms. Both come from fsyncs that the durability rules need; none was removed.

Met:

  • identity lookup: 27.7 µs median on the daemon's path;
  • decider cache: 17.7 µs;
  • log --verify of 100,000 entries: 1.61 s;
  • bus throughput: 2,226 jobs/s;
  • init: 90 ms without Argon2id;
  • idle memory: 54 MiB;
  • the VS Code refresh: 2.5 ms.

The demo, the VM-only tests and the slow ignored tests pass.

Checks

Each item passed the local gate before it merged: fmt, clippy, the workspace tests (2,761 passed at the tip), docs, test vectors, layers, features, vendored sources, zstd link, commit messages, typos and actionlint. long-checks.yml is left for the 1.0 gate.

🤖 Generated with Claude Code

…it order move from the command line into crypthix-vault so the daemon uses them too
… for every request, and frames carry bounded descriptors
…ts, reads, verify and rotation on the one commit order
… mode, the mode is honest and startup sets up secret memory at the required level
…older holds the keys, with unlock, put, get, verify, rotate and status
…a killed daemon, a low memory lock limit and groups of puts
…th unlock and lock, and status says which way it ran
…ped puts, malformed messages and idle memory
…hat the daemon item built and decided; slow tests wait for the phase end
…, and the big vault is built through the engine
…imit are refused, and the fuzz target covers the answer reader, the internal messages and each method's keys
…ld vault that answers nothing, and the command line and the daemon share one read and verify path
…back off, answers and holder replies are bounded and a bad answer ends only its connection
…e layer tables say what the daemon does, what it left to later items and what was measured
…he registry refuses when full and the launcher dies with its parent
…mark exits 1 on a miss and the targets are tighter
…is denied the secret and the log counts the denied programs
…commit, takes only closed files and runs on a monotonic clock
…rocess without a fixed pause, and test the descriptors
…t for the store and work folders, the vm tests share one guest and run-vm.sh is executable
… disk, the image is private, raw and not in memory, and the vm tests share one guard
…ls, and the scale bench can set the pack cache
…he cache-off scale row, the product cost of the build ratio and threat model v0.24
@thearpankumar
thearpankumar merged commit 1c8ff00 into master Dec 6, 2026
15 checks passed
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.

1 participant