Skip to content

Wow #1 demo docs + script still POST the retired sales_copilot agent #606

Description

@os-zhuang

Found while fixing #586 (dangling defaultAgent), filed separately because #586's acceptance is scoped to src/ and these live in content/docs/ and scripts/.

Problem

sales_copilot was retired in #512 (app-authored agents removed; skills-only surface per ADR-0063 §2). #586 cleared the two src/ references, but four sites outside src/ still name it as the agent in a POST /api/v1/ai/chat body:

  • scripts/wow1-live-schema.sh:82
  • content/docs/ai-copilot/live-schema.mdx:34
  • content/docs/ai-copilot/live-schema.zh-Hant.mdx:29
  • content/docs/ai-copilot/live-schema.zh-Hans.mdx:29

All four are the flagship "Wow #1 — live schema" demo: add a field, then immediately ask the Copilot to rank accounts by it.

Why it matters

This is not a stale comment — it is an executable path that fails.

loadAgent() refuses a non-platform agent name, so the chat call errors. The script runs it under curl -fsS, so the demo aborts at step 2 with a bare curl failure rather than a readable message. The docs pages ship the same body as copy-pasteable curl for readers to run.

Fix

Replace "agent": "sales_copilot" with the platform agent "ask" in all four files (or drop the key — ask is the implicit default per ADR-0063 §1). Keep the three locale docs in sync.

Worth checking at the same time whether docs-drift.test.ts can pin agent names appearing in doc code fences against the platform agent set, so this class does not come back — the same gap that let #586 sit unnoticed.

Also noticed (trivial, same family)

objectstack.config.ts:76 comment reads "the two agents + skills still validate, build into the artifact" — there are no agents any more after #512. Comment-only; fold into whichever PR takes this.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdocumentationImprovements or additions to documentationpm:dispatchedDispatched to a dev agent by /pm-dispatchpm:queueReady for the PM dispatch loop

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions