pub(crate) fn copy_definition(
mstore: &Store,
id_store: &Store,
identity_store: &Store,
source_id: &str,
branch_label: &str,
as_fork: bool,
) -> Result<AgentDefinition, String>Expand description
A new agent built from source_id’s definition, as fork_definition
builds one, but not a fork (as_fork: false): no lineage, so it isn’t among
the source’s forks, a slug of its own name (required), and no account
link, which the caller makes. The Agents spawn action’s workers
(app_api/agent_spawn.rs): a worker is a new agent, not a fork. It gets
the leader’s definition and a brief, never the leader’s conversation
(“Fork, spawn and worker” in mod.rs).