Skip to content

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

refactor(profiles): remove unused profile module

Steven Enamakelf99488ee843e
diff --git a/crates/openhuman-core/src/profiles/mod.rs b/crates/openhuman-core/src/profiles/mod.rs
index 7bbe9610ed..e1dab54ef6 100644
--- a/crates/openhuman-core/src/profiles/mod.rs
+++ b/crates/openhuman-core/src/profiles/mod.rs
@@ -1,16 +1,20 @@
-//! Profiles: in SaaS mode, each user is served as one agent.
+//! Profiles: in SaaS mode, each user is served as one profile.
//!
-//! The gateway authenticates users; this domain turns a gateway user id into
-//! the agent that serves that user ([`ProfileId`]), lays out the agent's
-//! private state ([`layout`]), forces the config it runs with
-//! ([`layout::profile_config`]), and keeps the open agents of the process
-//! ([`ProfileHost`]). The operator plane provisions and inspects them through
-//! the `profiles.*` controllers ([`schemas`]).
+//! A profile is the tenant: one user's config, credential, workspace and
+//! sandbox, laid out like the desktop's user directory
+//! (`<root>/users/<profile-id>/`, the shared
+//! [`ProfileLayout`](crate::config::schema::ProfileLayout)). The gateway
+//! authenticates users; this domain turns a gateway user id into the
+//! profile that serves that user ([`ProfileId`], per
+//! [`ProfileIdMode`]), lays out its private state ([`layout`]), forces the
+//! config it runs with ([`layout::profile_config`]), and keeps the open
+//! profiles of the process ([`ProfileHost`]). The operator plane provisions
+//! and inspects them through the `profiles.*` controllers ([`schemas`]).
//!
-//! The isolation boundary is the agent's own [`CoreContext`]: its config,
-//! workspace and `session_agent`. Work for one user runs under that context,
-//! which is what the config loader, the session store and the per-thread
-//! caches key on.
+//! The isolation boundary is the profile's own [`CoreContext`]: its config,
+//! workspace and `session_agent` (set to the profile id). Work for one user
+//! runs under that context, which is what the config loader, the session
+//! store and the per-thread caches key on.
//!
//! [`CoreContext`]: crate::core::runtime::CoreContext
@@ -25,6 +29,7 @@ pub mod surface;
pub mod tools;
pub mod types;
-pub use host::{current, ProfileHost, Profile};
+pub use host::{current, Profile, ProfileHost};
+pub use layout::ProfileLayout;
pub use schemas::{all_profiles_controller_schemas, all_profiles_registered_controllers};
-pub use types::{ProfileId, ProfileSummary};
+pub use types::{ProfileId, ProfileIdMode, ProfileSummary};