Personal_AI_Infrastructure icon indicating copy to clipboard operation
Personal_AI_Infrastructure copied to clipboard

DA-to-DA delegation (DaSubsystem.md Section 7 multi-DA) has no implementation in v5.0.0

Open brycemagera opened this issue 6 months ago • 1 comments

Summary

PAI/DOCUMENTATION/Pulse/DaSubsystem.md Section 7 ("Multi-DA Support") describes a DA-to-DA delegation model where the primary DA delegates to worker DAs via the Task tool:

// Primary DA delegates research to worker DA (Devi)
Task({
  prompt: `You are Devi, a research worker. ${taskDescription}`,
  subagent_type: "general-purpose",
  model: "sonnet"
})

The doc states: "The worker's DA_IDENTITY.yaml provides the system prompt context. Results flow back to the primary DA through normal Task tool output."

I cannot find any code in the v5.0.0 release that implements this — specifically:

  1. No mechanism that translates a _registry.yaml worker entry into a callable subagent type or a Task-tool invocation pattern.
  2. No system prompt assembly that loads PAI/USER/DA/{worker}/DA_IDENTITY.yaml and injects it as the worker's context.
  3. No registry-aware heartbeat — Section 7 says heartbeat context should include other_das: Array<{ name, role, last_activity, active_tasks }>. The existing heartbeat implementation does not populate this.
  4. No autonomy enforcement — workers' must_ask lists (e.g. send_notification: must_ask for routing through primary) have no enforcement layer.

Why it matters

The single-DA case works fine without any of this — the primary DA's identity is loaded via CLAUDE.md @-import. But the moment anyone tries to instantiate a second DA per the design doc, the integration is on paper only.

Suggested resolution

This is the kind of feature where I'd rather see your production-tested implementation than guess. The doc has clear intent but the surface area (registry-aware system prompt assembly, autonomy enforcement, heartbeat extension, task tool integration) is broad enough that consistency with however you actually run multi-DA in practice is more valuable than a community guess.

If multi-DA support isn't a near-term priority for upstream, an alternative is to mark Section 7 of DaSubsystem.md as "Future work — not implemented in v5.0.0" so users know the boundary.

Context

Audited my own DA subsystem locally to confirm everything is in place before adding a worker DA. Items 1-6 of the design doc are working (single-DA path); item 7 (multi-DA) is doc-only and would need real code before it can be exercised.

brycemagera avatar May 07 '26 19:05 brycemagera

Hey @brycemagera, thank you for the PR and the work that went into it.

We're changing how LifeOS ships: from a full ~/.claude directory you run as-is, to a skill installed by an agentic installer that has your own AI integrate the pieces into your setup. That reworks the parts of the codebase this change touches, so it won't apply cleanly to where we're headed.

We're closing it for that reason, not because the idea was wrong. If the need still stands against the new model, we'd love a fresh PR once it lands. Thanks again for contributing.

danielmiessler avatar Jun 21 '26 03:06 danielmiessler