Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

docs(config): document config source port and its implementations

Steven Enamakelc6f36596b608
diff --git a/crates/openhuman-core/src/config/schema/README.md b/crates/openhuman-core/src/config/schema/README.md
index fea1863bd8..e5f7b66f0e 100644
--- a/crates/openhuman-core/src/config/schema/README.md
+++ b/crates/openhuman-core/src/config/schema/README.md
@@ -195,3 +195,7 @@ Per-section `*_tests.rs` files, plus [`load_tests.rs`](./load_tests.rs) (split i
`action_dir` / `workspace_dir` boundary this module only describes.
- [Settings](../../../../../gitbooks/features/settings.md)
- [Deep architecture reference](../../../../../gitbooks/developing/architecture.md)
+
+## Config sources
+
+`load/source/` defines the `ConfigSource` port: where the TOML text of a config lives. `FileConfigSource` is `config.toml` with the atomic replace and `.bak` of `load/atomic_commit.rs` (the file stays hand-editable). `DocumentConfigSource` is the `config/{scope}` document on a shared (multi-tenant) storage backend, used by `Config::save` and by snapshot reloads (`load_from_config_path`). The first load of a process (`load_or_init`) always reads the file. Bootstrap tables (`[storage]`) are never written to a document and are always re-applied from the file on a document read. `SaasConfig` is not part of this.