Skip to content

bug: pool_recall can't read expert logs (wrong directory) #14

Description

@cameronsjo

Found during dogfooding

pool_recall(task_id="cq-gitops-engine-1775407580966305000") returned "task log not found" even though the task was completed.

Root cause

pool_recall is an expert tool registered via RegisterExpertTools. It reads from {expertDir}/logs/{task-id}.json where expertDir is the calling expert's directory — not the target expert's directory.

When the concierge calls pool_recall, it looks in {poolDir}/concierge/logs/ (the concierge's own log dir), not {poolDir}/experts/gitops-engine/logs/ where the actual log lives.

Fix

Either:

  1. Add a concierge-specific get_result tool that takes expert + task_id and resolves the correct expert dir
  2. Or make pool_recall accept an optional expert param that overrides the default expertDir

Option 1 is cleaner — pool_collect already does this correctly for dispatched tasks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions