Skip to content

Pulse Assistant/DA subsystem broken on every fresh v5.0.0 install (missing PULSE/Assistant/module.ts + hardcoded primary = "kai") #1334

@jearnest11

Description

@jearnest11

Summary

On a clean v5.0.0 install, the Pulse DA/Assistant subsystem never starts — the
DA card is empty and the assistant-tasks cron fails. Two separate root causes,
both in the published repo (checked against main, HEAD 2fde1bb). Reproduced
across two independent fresh installs.

Bug 1 — PULSE/Assistant/module.ts is missing from the repo

PULSE/pulse.ts imports and calls it:

  • pulse.ts:117assistantModule = await import("./Assistant/module")
  • pulse.ts:278assistantModule.assistantHealth()
  • pulse.ts:362assistantModule.startAssistant(config.da, enabledJobs)

But PULSE/Assistant/module.ts exists nowhere in the repo (not gitignored —
simply not committed). Runtime result:

warn Assistant module not available
error: Cannot find module './Assistant/module' from '.../PULSE/pulse.ts'
warn Skipping assistant-tasks: 3 consecutive failures

Likely a casualty of the recent Pulse → PULSE directory-casing migration
(#1259 / #1175 / #1273) — the Assistant/ folder appears to have been dropped
in the rename.

Fix: restore the canonical PULSE/Assistant/ (module.ts + checks/) to the repo.

Bug 2 — PULSE/PULSE.toml hardcodes the author's DA name

.claude/PAI/PULSE/PULSE.toml:41:

[da]
primary = "kai"
pulse.ts resolves the primary as config.primary || registry.primary, so this
hardcoded kai overrides the user's own USER/DA/_registry.yaml. Any user 
whose DA isn't named "kai" gets:
warn  No DA_IDENTITY.yaml for "kai"
warn  Assistant started (degraded)  primary: kai

Fix: ship PULSE.toml without a hardcoded primary (let it fall through to
registry.primary), or use a placeholder substituted at install time.

Impact

Every new v5 user with a non-"kai" DA hits an empty/degraded Pulse Assistant.
Both fixes are small; Bug 2 is a one-line change.

Environment

- Repo main @ 2fde1bb, macOS, Bun, fresh v5.0.0 install.

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