tinyhumansai/openhuman · error

unknown team

Error message

unknown team: {team_id}

What it means

assign_task looked up the team by id in the run ledger and found nothing — the team_id does not correspond to any persisted AgentTeam. The ledger lookup returns Option; this is the ok_or_else sentinel converting None into an error. Typical fault: the team was deleted, the id is from another workspace, or it is typo'd/stale in the caller (UI or orchestrator).

Solutions

  1. List teams from the ledger to confirm valid ids and re-issue with a correct team_id
  2. If the team should exist, verify you are targeting the same workspace_dir the team was created in
  3. Recreate the team if it was deleted but still needed
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src/openhuman/agent/orchestration/agent_teams/ops.rs:140 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of tinyhumansai/openhuman@7491200858 (2026-08-17). Data as JSON: /api/errors/77311020abe173a1. Report an issue: GitHub.

Appendix: source

Thrown at src/openhuman/agent/orchestration/agent_teams/ops.rs:140

/// Validates `depends_on`: rejects self-dependency, unknown dependency ids, and
/// dependency cycles (Kahn's algorithm over the team's existing tasks plus the
/// new one). An optional `owner_member_id` must reference a real member.
#[allow(clippy::too_many_arguments)]
pub fn assign_task(
    config: &Config,
    team_id: &str,
    title: &str,
    objective: Option<&str>,
    owner_member_id: Option<&str>,
    depends_on: &[String],
) -> Result<AgentTeamTask> {
    log::debug!(
        "{LOG_PREFIX} assign_task.entry team={team_id} deps={}",
        depends_on.len()
    );

    let team = run_ledger::get_agent_team(&config.workspace_dir, team_id)?
        .ok_or_else(|| anyhow!("unknown team: {team_id}"))?;
    let _ = team;

    let existing = run_ledger::list_agent_team_tasks(&config.workspace_dir, team_id)?;
    let task_id = format!("task-{}", Uuid::new_v4().simple());

    if let Some(owner) = owner_member_id {
        let members = run_ledger::list_agent_team_members(&config.workspace_dir, team_id)?;
        if !members.iter().any(|m| m.id == owner) {
            return Err(anyhow!(TeamError::UnknownMember {
                member_id: owner.to_string(),
            }));
        }
    }

    validate_dependencies(&task_id, depends_on, &existing)?;

    let order_index = existing.len() as i64;
    let task = run_ledger::upsert_agent_team_task(

View on GitHub (pinned to 7491200858)