From 53ade46554e683b060040c69a8ede6307325263f Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 10 Aug 2026 02:02:12 +0000 Subject: [PATCH] fix(lint): correct stale two-agent docblock over PLATFORM_AGENT_NAMES MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The comment above PLATFORM_AGENT_NAMES said "The two platform agent ids" while the set holds four entries. Per the cloud-side reading in issue #7088's thread, the kernel does ship exactly two platform agents (ask, build); data_chat and metadata_assistant are registered legacy aliases (metadata_assistant -> build, data_chat -> ask) via the cloud alias registry, not agents themselves. The four-member set is behaviorally correct as a reserved-names set — declaring an alias name shadows the platform record through the alias registry, which is exactly what this gate is meant to catch. Only the docblock was wrong; this is a prose-only fix with no behavior change. Fixes #7088 --- packages/lint/src/validate-ai-agent-authoring.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/lint/src/validate-ai-agent-authoring.ts b/packages/lint/src/validate-ai-agent-authoring.ts index 3d65fa7bf0..819ad12b0c 100644 --- a/packages/lint/src/validate-ai-agent-authoring.ts +++ b/packages/lint/src/validate-ai-agent-authoring.ts @@ -62,9 +62,12 @@ function strName(v: unknown): string | undefined { } /** - * The two platform agent ids. A stack that re-declares one of these is doing - * something different from inventing a custom persona (it is shadowing a - * platform record), so it gets its own wording. + * The two platform agent ids (`ask`, `build`) plus their two legacy aliases + * (`data_chat` → `ask`, `metadata_assistant` → `build`, registered via the + * cloud alias registry — ADR-0063 §2). A stack that re-declares any of these + * four names is doing something different from inventing a custom persona + * (it is shadowing a platform record, directly or through its alias), so it + * gets its own wording. */ const PLATFORM_AGENT_NAMES = new Set(['ask', 'build', 'data_chat', 'metadata_assistant']);