Skip to content

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

feat(profiles): add host profile support

Steven Enamakel059480f5d927
diff --git a/crates/openhuman-core/src/profiles/host.rs b/crates/openhuman-core/src/profiles/host.rs
index 8989401409..3fedf709e3 100644
--- a/crates/openhuman-core/src/profiles/host.rs
+++ b/crates/openhuman-core/src/profiles/host.rs
@@ -87,9 +87,10 @@ pub struct ProfileHost {
pub(super) operator: Arc<CoreContext>,
pub(super) node: String,
pub(super) open: Mutex<HashMap<ProfileId, Slot>>,
- /// Held across every operation that takes or gives back a lease (open,
- /// eviction, release, deprovision), so no two of them interleave and
- /// the slot count stays exact. Lookups of an open profile never wait
+ /// Held across every operation that takes, renews or gives back a lease
+ /// (open, heartbeat renewal, eviction, release, deprovision), so no two
+ /// of them interleave, a release never carries a grant a renewal just
+ /// superseded, and the slot count stays exact. Lookups of an open profile never wait
/// for it. Taken after the profile's own lifecycle lock, never before.
pub(super) gate: tokio::sync::Mutex<()>,
/// One lock per profile, held for the whole of each lifecycle operation