Purpose of this page: inventory everything that outlives the process,
and who is allowed to touch each piece.
Layer 9 ⌂
External resources
Everything that exists after the process dies: the home directory, its SQLite file, the git binary, secret material, and model-provider APIs.
Resources
home/kanthord.db
One SQLite file holds all state. Migrations 0001–0008 bring it to the current schema.
home/
Git worktrees, the git operation journal, run/ scratch space, and keys.
git binary
Spawned by BinaryGit. Probed at startup before the daemon accepts work.
config file · master key
ConvictConfig reads the config; AesGcmCrypto encrypts credentials under the master key.
model-provider APIs (pi-ai)
Network calls made by PiAiModelCatalog on behalf of agent capabilities.
Inbound edges
| From | Meaning |
|---|---|
| SQLite family | reads and writes the database file |
| BinaryGit | spawns the git binary · manages home/ |
| adapters | read secrets · call model APIs |
Rules
- No layer above Layer 8 touches a resource directly. Every access goes through an interface.
- A test never shares a home. It creates its own mktemp directory and removes it.
- The home lock makes one daemon per home at a time.