Skip to content

fix(copy): clarify which tiers qualify for public agent listing - #4447

Merged
bokelley merged 3 commits into
mainfrom
bokelley/fix-tier-copy-public-listing
May 12, 2026
Merged

bokelley merged 3 commits into
mainfrom
bokelley/fix-tier-copy-public-listing

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

Summary

  • Copy fix only (no behavior change). The publish-agent gate already accepts four API-access tiers (Professional, Builder, Member, Leader) per 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.
  • Triggered by escalation Fix allOf + additionalProperties validation and add oneOf titles #334 (Affinity Answers, Builder plan): Santhosh tried to publish an MCP agent, the dashboard failed, and Addie told him "Builder plan doesn't include public agent listing — that requires Professional tier or higher". Builder always qualified. Wrong advice based on misleading copy that's now sitting in Addie's behavior rules.
  • Replaces "Professional tier or higher" with explicit lists across error messages, dashboard tooltips, Addie's behavior rules, the save_agent MCP tool description, OpenAPI schema descriptions, and the registering-an-agent doc.

Surfaces touched

  • server/src/services/agent-visibility-gate.ts — silent-downgrade warning
  • server/src/routes/member-profiles.ts — 403 messages from applyAgentVisibility and requireApiAccessTier
  • server/src/addie/rules/behaviors.md — Addie's post-save_agent script (the rule Addie quoted to Santhosh)
  • server/src/addie/mcp/member-tools.ts — save_agent tool description + post-credential-save success message
  • server/src/schemas/member-agents-openapi.ts — published OpenAPI descriptions
  • server/public/dashboard-agents.html, server/public/member-card.js, server/public/member-profile.html — dashboard tooltips and toasts
  • docs/registry/registering-an-agent.mdx — registration doc
  • server/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_required error 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 passed
  • tsc --noEmit clean

Why 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.json revisions vs. the post-#4313 resolver — that's a Stage 2 follow-up, not a copy fix.

Test plan

  • CI green
  • Spot-check /dashboard/agents tier tooltip on an Explorer-tier dev account
  • Verify Addie's post-save_agent reply on a fresh save mentions the four tiers explicitly

🤖 Generated with Claude Code

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]>
@bokelley

Copy link
Copy Markdown
Contributor Author

Reviewed the copy change — reads cleanly in registering-an-agent.mdx (both sentences scan naturally; the explicit four-tier list is unambiguous) and the OpenAPI description stays terse enough for IDE hover.

One miss: docs/aao/addie-tools.mdx is auto-generated from server/src/addie/mcp/member-tools.ts but is stale relative to the current source — its save_agent blurb still reads "discoverable to fellow Professional-tier (or higher) members" (line 419). The PR fixed member-tools.ts but didn't regenerate the docs mirror. Run npm run build:addie-tools and commit the regenerated file so the public docs page stops carrying the misleading phrasing.

docs/aao/users.mdx lines 33 and 48 use "Professional tier and above" — different shape from "Professional+", reads correctly as additive, fine to leave.

Ship after the addie-tools regeneration.

@bokelley

Copy link
Copy Markdown
Contributor Author

Two generated artifacts weren't regenerated after their sources changed — test:openapi and test:addie-tools CI checks will fail on drift.

Blockers (CI will fail):

  • static/openapi/registry.yaml:1900 and :7271 still say "Professional tier or higher". The source server/src/schemas/member-agents-openapi.ts was updated in this PR; the YAML is generated from it (see scripts/generate-openapi.ts → static/openapi/registry.yaml). CI runs npm run test:openapi which regenerates and diffs against the committed file. Fix: npm run build:openapi and commit the result.
  • docs/aao/addie-tools.mdx:419 still says "discoverable to fellow Professional-tier (or higher) members". The source server/src/addie/mcp/member-tools.ts:1202 was updated; the MDX is generated by scripts/build-addie-tool-reference.ts. CI runs npm run test:addie-tools (--check mode) which fails on drift. Fix: npm run build:addie-tools and commit.

Verified clean:

  • API_ACCESS_TIERS in server/src/services/membership-tiers.ts unchanged — pure copy fix, no gate behavior change.
  • server/tests/unit/agent-visibility-gate.test.ts and server/tests/integration/agent-visibility-e2e.test.ts assert on the tier_required reason code, not message text — won't break.
  • shape-grader.test.ts / shape-grader-smoke.ts fixture edits preserve structural shape (heading count, bullets, ends-with-question, word-count band) so grader assertions still pass.
  • Remaining in-tree Professional+ / Professional-tier hits are inline code comments (agent-service.ts, types.ts, registry-api.ts, migration SQL, member-tools.ts:5739) — internal, not user-facing, fine to leave.
  • dist/docs/3.0.x/** hits are published historical doc snapshots — must not be edited.

bokelley and others added 2 commits May 12, 2026 05:57
`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]>
@bokelley

Copy link
Copy Markdown
Contributor Author

Addressed both review comments:

  • docs/aao/addie-tools.mdx — regenerated via npm run build:addie-tools in commit 0f1a6640f2. Picks up the save_agent description fix and some unrelated pre-existing drift that had been accumulating (folded in here since CI doesn't gate on it).
  • static/openapi/registry.yaml — surgical edits to lines 1900 and 7271 in commit 4892dd5166. The full regen output had a lot of unrelated drift (new discovery_method, resolved_url, self_redirected fields, etc.) — keeping those out of this copy-fix PR; they should land in a separate regen-only PR.

Source-of-truth files (member-tools.ts, member-agents-openapi.ts) and generated artifacts are now consistent for the tier-copy strings.

@bokelley
bokelley merged commit 168b71d into main May 12, 2026
18 checks passed
@bokelley
bokelley deleted the bokelley/fix-tier-copy-public-listing branch May 12, 2026 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant