Expand description
The folder codec: a home folder ⇄ World. The root is the
default profile; profiles/<name>/ are the named ones; a profile folder
is a complete home (Hermes’s rule). Two flavors of the same layout:
Orchestrator— ours: the O-blocks inconfig.yamldecode strictly,AGENTS.mdis the persona,state.dbholds ourbindingstable.Hermes— a Hermes home:SOUL.mdis the persona,state.db’ssessionsrows become bindings (the multiplexed store partitioned byprofile_name), and the file’s bytes may never be reused for our folder (they may carry inline credentials).
Files we own are re-emitted byte for byte when their record is unchanged and canonically when it changed; files we do not model are never touched.
Structs§
- Jobs
Form - The form
cron/jobs.jsonwas read in, remembered for the emit. - Loaded
Home - A loaded home.
- Profile
Io - Per-profile bookkeeping: what a decompile needs to reuse bytes and to know what “unchanged” means. Never part of the world.
Enums§
- Flavor
- Which harness’s layout a folder was read as.
Constants§
- OWNED_
FILES - The files our folder owns.
Functions§
- binding_
from_ hermes_ session - A Hermes
sessionsrow is a binding when it has a surface (session_key) or is a cron fire. - carry_
unmodeled - Copy the named unmodeled files from
srcintodest, byte for byte, answering the relative paths carried. A file the source no longer holds is skipped: the list is what was seen at load, the copy is what is there now. - config_
record - The record
config.yaml’s bytes are the serialization of. - copy_
unmodeled - Copy every unmodeled file of a profile from its source dir into
dest, byte for byte. - empty_
profile - The empty profile.
- encode_
access_ file access.yaml.- encode_
config - Canonical config.yaml: O-blocks + Hermes-shaped blocks + residue.
- encode_
jobs_ file - The pin’s canonical form is
{"jobs": [...]}; a file read as a bare array keeps that form. - encode_
subscriptions_ file webhook_subscriptions.json; secrets inlined only for a Hermes export.- load_
home - Load a home folder.
- persona_
ref - A persona record for
text:AGENTS.mdat the profile root, content hash first. - save_
home - Save OUR folder. Never deletes a file it does not own; never writes a secret outside
.env. - write_
executions - The executions ledger, written fresh.