Skip to content

Dangling defaultAgent: 'sales_copilot' — the agent was retired in #512 #586

Description

@os-zhuang

Found during a full business/platform-capability review of the app (2026-08-02).

Problem

src/apps/crm.app.ts:19 declares:

defaultAgent: 'sales_copilot',

sales_copilot no longer exists — HotCRM's app-authored agents were retired in #512 (skills-only surface per ADR-0063 §2). Per app.zod.ts, defaultAgent must name a platform agent (ask / build); the runtime's loadAgent() refuses non-platform records, so this binding is dead metadata.

Neither os validate nor os lint catches it: the platform's agent-authoring lint only walks stack.agents, never app.defaultAgent (reference-integrity gap on the objectstack side — worth an upstream issue, but the app-side fix should not wait for it).

A second, harmless reference sits in a comment at src/pages/account_detail.page.ts:25.

Fix

  • Point defaultAgent at 'ask' (the six shipped skills already attach to the platform ask agent via surface affinity), or drop the key entirely.
  • Clean up the stale comment in account_detail.page.ts.

Acceptance

  • No reference to sales_copilot / service_copilot remains in src/.
  • test/metadata-references.test.ts extended to pin app.defaultAgent against the platform agent set, so this class of dangling binding fails locally next time.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingmetadataDeclarative metadata — schema, security posture, UI surfacespm:dispatchedDispatched to a dev agent by /pm-dispatchprio:p0Blocking the current release goal — do first

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions