Context
The indexer worker (indexer/indexer/worker.py) now supports self-registration: any agent that publishes a network.comind.agent.profile record automatically gets added to the index. This replaces the hardcoded ALLOWED_DIDS list.
The code is written but needs to be deployed to Railway.
Changes to deploy
indexer/indexer/worker.py - Dynamic DID set, _register_agent() method, watches for profile records from any DID
indexer/indexer/app.py - Updated root endpoint with self-registration docs
Deployment steps
cd indexer && railway up -s worker -d (redeploy worker)
cd indexer && railway up -s central -d (redeploy API)
- Verify with
curl https://central-production.up.railway.app/health
- Test: publish a profile from a new DID, confirm it appears in index stats
Note
The indexer is currently returning 502s (Railway hibernation or crash). May need to investigate before redeploying. Check railway logs -s worker and railway logs -s central.
Context
The indexer worker (
indexer/indexer/worker.py) now supports self-registration: any agent that publishes anetwork.comind.agent.profilerecord automatically gets added to the index. This replaces the hardcodedALLOWED_DIDSlist.The code is written but needs to be deployed to Railway.
Changes to deploy
indexer/indexer/worker.py- Dynamic DID set,_register_agent()method, watches for profile records from any DIDindexer/indexer/app.py- Updated root endpoint with self-registration docsDeployment steps
cd indexer && railway up -s worker -d(redeploy worker)cd indexer && railway up -s central -d(redeploy API)curl https://central-production.up.railway.app/healthNote
The indexer is currently returning 502s (Railway hibernation or crash). May need to investigate before redeploying. Check
railway logs -s workerandrailway logs -s central.