Skip to content

fix(discovery): advertise /api/provision/login, fix /api/agent/register refs - #82

Merged
SunrisesIllNeverSee merged 3 commits into
mainfrom
fix/agent-login-discovery
Nov 25, 2026
Merged

SunrisesIllNeverSee merged 3 commits into
mainfrom
fix/agent-login-discovery

Conversation

@SunrisesIllNeverSee

@SunrisesIllNeverSee SunrisesIllNeverSee commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

agent.json (also served at /.well-known/agent.json) advertised /api/kassa/agent/login, which is not in openapi and not rate-limited. It now advertises /api/provision/login, matching openapi, skill.md and governance.json.

PLUGIN-BLUEPRINT.md and ONTOLOGY.md referenced /api/agent/register (404). They now point to the real route, POST /api/provision/signup (app/routes/provision.py, agent_signup; body field is name, not display_name).

No auth behaviour change; the kassa login route stays. Adds a test that agent.json's login path exists in openapi.json.

Crawler middleware (ai_bot_detected): distinct_id is now lowercase (crawler:amazonbot), matching other sites; bot_verified is null with bot_verification 'ua_only' because no cheap verification signal exists in the middleware. This repo emits no server-side MCP analytics events, so no $host change was needed there.

Tests: test_h1_key_revocation, test_agent_readiness, test_routes_provision (52 passed); node --test tests/ai-crawler.test.mjs (15 passed).

Not changed: kassa.html/shell.html call kassa routes for the in-page UI; ONTOLOGY.md still lists /api/agent/profile (not verified).

Cutover note: crawler distinct_id changes from mixed case (crawler:Amazonbot) to lowercase (crawler:amazonbot) from the merge date. History stays under the old ids; group by lower(bot_name) across that date.

Blueprint/ONTOLOGY profile routes also fixed: /api/agent/profile does not exist; own profile is GET /api/kassa/agent/me, update is PATCH /api/agents/{handle}. The blueprint register snippet now sends only accepted fields and reads token from the signup response.

🤖 Generated with Claude Code

agent.json (also served at /.well-known/agent.json) advertised the
undocumented, unrate-limited /api/kassa/agent/login. Point it at the
documented /api/provision/login. Replace the nonexistent
/api/agent/register in PLUGIN-BLUEPRINT.md and ONTOLOGY.md with
/api/provision/signup. Auth behaviour and the kassa route are unchanged.
Adds a test that agent.json's login path exists in openapi.json.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
agent-universe Ignored Ignored Preview Nov 25, 2026 1:20pm UTC

Request Review

…only

Matches the other sites (crawler:amazonbot). No verification signal is
available in this middleware, so claimed vs verified is explicit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…en tests

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@SunrisesIllNeverSee
SunrisesIllNeverSee merged commit 5593dc8 into main Nov 25, 2026
5 checks passed
@SunrisesIllNeverSee
SunrisesIllNeverSee deleted the fix/agent-login-discovery branch November 25, 2026 13:23
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