Repository navigation
fix(copy): clarify which tiers qualify for public agent listing - #4447
Conversation
The publish-agent gate accepts four API-access tiers (Professional, Builder, Member, Leader) per server/src/services/membership-tiers.ts. User-facing copy across 11 surfaces said "Professional tier or higher", which Addie and customers read as "tiers priced above Professional" — the reverse of the actual ordering, since Builder ($3K), Member ($15K), and Leader ($50K) all cost more than Professional ($250) but qualify. Affinity Answers (escalation #334, Builder plan) was told by Addie to upgrade to Professional after failing to publish. Builder always qualified; the copy misled both the user and the agent. Replace the phrase with explicit lists ("Professional, Builder, Member, or Leader" / "paying AAO members") across error messages, dashboard tooltips, Addie's behavior rules, OpenAPI schema descriptions, and the registry-of-an-agent doc. No behavior change; tests assert on the `tier_required` error code, not the message text. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
Reviewed the copy change — reads cleanly in One miss:
Ship after the addie-tools regeneration. |
|
Two generated artifacts weren't regenerated after their sources changed — Blockers (CI will fail):
Verified clean:
|
`docs/aao/addie-tools.mdx` is auto-generated from MCP tool descriptions. The `save_agent` fix in the prior commit only updated the source file (`server/src/addie/mcp/member-tools.ts`); the published doc still carried the misleading "Professional-tier (or higher)" phrasing. This runs `npm run build:addie-tools` to reflect the updated description. The regen also picks up unrelated pre-existing drift (the `list_github_issues` description and the new `agent_conformance` tool set) that had not yet been regenerated. CI doesn't gate on this, so the drift was silently accumulating; folding the catch-up in here. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Two surgical edits in the published `static/openapi/registry.yaml` mirroring the source descriptions in `server/src/schemas/member-agents-openapi.ts`. The full regen output includes a lot of unrelated pre-existing drift (new fields like `discovery_method`, `resolved_url`, `self_redirected` hosting mode); keeping those out of this copy-fix PR — they should land in a separate regen-only PR. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
Addressed both review comments:
Source-of-truth files ( |
Summary
server/src/services/membership-tiers.ts:14-19. But 11 user-facing strings said "Professional tier or higher", which both customers and Addie kept reading as "Professional and tiers priced above it" — the reverse of the price order.save_agentMCP tool description, OpenAPI schema descriptions, and theregistering-an-agentdoc.Surfaces touched
server/src/services/agent-visibility-gate.ts— silent-downgrade warningserver/src/routes/member-profiles.ts— 403 messages fromapplyAgentVisibilityandrequireApiAccessTierserver/src/addie/rules/behaviors.md— Addie's post-save_agentscript (the rule Addie quoted to Santhosh)server/src/addie/mcp/member-tools.ts—save_agenttool description + post-credential-save success messageserver/src/schemas/member-agents-openapi.ts— published OpenAPI descriptionsserver/public/dashboard-agents.html,server/public/member-card.js,server/public/member-profile.html— dashboard tooltips and toastsdocs/registry/registering-an-agent.mdx— registration docserver/tests/unit/addie/shape-grader.test.ts,server/tests/manual/shape-grader-smoke.ts— grader fixtures (they described the rule using the old phrasing)Tests assert on the
tier_requirederror code, not message text — confirmed by reading the relevant assertions. Targeted runs:npx vitest run tests/unit/agent-visibility-gate.test.ts tests/unit/agent-visibility.test.ts tests/unit/addie/shape-grader.test.ts— 55 passedtsc --noEmitcleanWhy this matters beyond Santhosh
Addie's behavior rule was the canonical source she used to advise customers. With this fix, Addie will stop misdirecting paying Builder/Member/Leader customers to "upgrade to Professional" (which is cheaper, not higher).
Not in this PR
The actual UI failure Santhosh hit is still unconfirmed without his browser network logs. A separate issue tracks the suspected www / no-www brand-row mismatch on Affinity Answers' previous
brand.jsonrevisions vs. the post-#4313 resolver — that's a Stage 2 follow-up, not a copy fix.Test plan
/dashboard/agentstier tooltip on an Explorer-tier dev accountsave_agentreply on a fresh save mentions the four tiers explicitly🤖 Generated with Claude Code