Skip to content

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

docs(config): document write_versioned default behavior

Steven Enamakel6ca9d03125fa
diff --git a/crates/openhuman-core/src/config/schema/load/source/mod.rs b/crates/openhuman-core/src/config/schema/load/source/mod.rs
index 05da18738d..4554fea42f 100644
--- a/crates/openhuman-core/src/config/schema/load/source/mod.rs
+++ b/crates/openhuman-core/src/config/schema/load/source/mod.rs
@@ -85,6 +85,9 @@ pub(crate) trait ConfigSource: Send + Sync {
/// still the live one, so callers may roll back in-memory state on `Err`.
async fn write(&self, toml: &str) -> Result<()>;
+ /// Persist a config snapshot against the revision it was loaded from.
+ /// Document sources use `None` for a create-only write; file sources have
+ /// no revisions and use this default implementation.
async fn write_versioned(
&self,
toml: &str,