Personal_AI_Infrastructure icon indicating copy to clipboard operation
Personal_AI_Infrastructure copied to clipboard

PAI_CONFIG.yaml references /setup, but /setup is not a slash command (PULSE/setup.ts is worker-only)

Open brycemagera opened this issue 6 months ago • 1 comments

Summary

Releases/v5.0.0/.claude/PAI/USER/Config/PAI_CONFIG.yaml (line 3) instructs new users:

# Bootstrap default. Run /interview or /setup to fill in your real values.

/interview is a real skill at skills/Interview/. /setup is not a slash command anywhere in the system — no entry in skills/, no entry in commands/, no plugin registration.

There is a related script at Releases/v5.0.0/.claude/PAI/PULSE/setup.ts whose docstring reads:

/**
 * PAI Pulse Worker — Provisioning Script
 *
 * Sets up a new PAI Worker from scratch.
 * Reads DA_IDENTITY.md for worker identity.
 * Generates PULSE.toml, .env, and installs launchd service.
 *
 * Usage: bun run setup.ts
 * Goal: under 30 minutes from bare machine to working worker.
 */

So the file exists, but it's a worker-provisioning script (for adding a remote PAI worker, not for initial install on the user's primary machine). It's:

  • Not wired to any slash command
  • Not the right thing for a new user filling in PAI_CONFIG.yaml
  • Confusingly named (a new user reading the docstring would assume setup.ts is for them)

Why it matters

A user reading PAI_CONFIG.yaml's onboarding comment has three options based on the text:

  1. Run /interview — works
  2. Run /setup — silently does nothing (no such command)
  3. Find setup.ts and run it — runs the wrong workflow (worker provisioning) and may install an unwanted launchd service

Option 2 is dead text. Option 3 is actively harmful for a primary-install user.

Reproduction

$ rg -l '/setup\b' Releases/v5.0.0/.claude/skills/ Releases/v5.0.0/.claude/commands/
# (no results)

$ ls Releases/v5.0.0/.claude/skills/Setup 2>&1
ls: ...: No such file or directory

$ head -10 Releases/v5.0.0/.claude/PAI/PULSE/setup.ts
# (worker-provisioning, not user-initial-install)

Suggested fix

Pick one:

  1. Remove /setup from the docstring — smallest fix. PAI_CONFIG.yaml line 3 becomes:

    # Bootstrap default. Run /interview to fill in your real values.
    
  2. Build the missing /setup skill — if the original intent was a separate setup-distinct-from-interview flow (e.g. for non-DA config: paths, services, voice). Probably overkill if /interview already covers what users need.

  3. Wire PULSE/setup.ts to a renamed slash command — e.g. /worker-provision, with a clearer docstring noting it is not for the primary install. Then add it to the docs as a separate workflow.

I'd recommend option 1 plus a brief sentence somewhere that mentions setup.ts is for adding workers to an existing PAI install, so users who find it know what it is.

Context

Found while explaining to a teammate why /setup didn't exist. The PAI_CONFIG.yaml comment was the only place either of us had seen it referenced. Filed alongside #1202 / #1203 / #1204 / #1207 — all DA-subsystem and onboarding completeness gaps surfaced during a single audit.

brycemagera avatar May 07 '26 19:05 brycemagera

Hey — Kai here.

Thanks for the careful trace. The file itself was retired in the 5.1.0 era — PAI/USER/Config/PAI_CONFIG.yaml no longer ships in the upstream tree. Bootstrap runs entirely through /interview now (DA name, principal identity, TELOS scaffold), so the dead /setup text doesn't exist anywhere to confuse new users.

For users still on v5.0.0 hitting this today, the minimal patch against the frozen snapshot is a one-line edit:

--- a/Releases/v5.0.0/.claude/PAI/USER/Config/PAI_CONFIG.yaml
+++ b/Releases/v5.0.0/.claude/PAI/USER/Config/PAI_CONFIG.yaml
@@ -1,4 +1,4 @@
 # PAI_CONFIG.yaml — User credentials and per-system configuration
 #
-# Bootstrap default. Run /interview or /setup to fill in your real values.
+# Bootstrap default. Run /interview to fill in your real values.
 # The DA reads this at session start. Keys live in this file; secrets stay

The worker-provisioning setup.ts script you flagged is still at PAI/PULSE/setup.ts — it's the one used when standing up a remote PAI worker on a separate machine, not the primary-install path. Worth a separate docs cleanup so a primary-install user doesn't stumble onto it, but the dead /setup slash-command reference is gone.

Closing — original confusion vector removed in next release; v5.0.0 patch above for current users.

— Kai

danielmiessler avatar May 14 '26 18:05 danielmiessler