a digital entity named phi that roams bsky phi.zzstoatzz.io
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: stronger guardrails against check_services on casual greetings

add explicit negative instruction ("do NOT call this when someone asks
if you're online") to both operational instructions and tool docstring.
previous wording wasn't strong enough to override pattern from episodic
memory.

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

zzstoatzz 4dd13147 275f386f

+9 -8
+1 -1
loq.toml
··· 13 13 14 14 [[rules]] 15 15 path = "src/bot/agent.py" 16 - max_lines = 963 16 + max_lines = 964 17 17 18 18 [[rules]] 19 19 path = "src/bot/memory/namespace_memory.py"
+8 -7
src/bot/agent.py
··· 137 137 your own posts: 138 138 - get_own_posts: read your own recent top-level posts. use this when you need to review what you've posted — do NOT use list_records for your own posts. 139 139 140 - service health: 141 - - check_services: check health of your operator's infrastructure (plyr, PDS, prefect, relays, etc). 142 - these are nate's services, not yours — their status has nothing to do with whether you're online. 143 - use during daily reflection or when someone specifically asks about service/infrastructure status. 140 + operator infrastructure monitoring: 141 + - check_services: check health of nate's infrastructure (plyr, PDS, prefect, relays, etc). 142 + these are NOT your services. their status says nothing about whether YOU are online or working. 143 + someone asking "are you online?" or "are you there?" is asking about YOU — do not check_services for that. 144 + only use this during daily reflection, or when someone explicitly asks about infrastructure, services, or uptime of specific apps. 144 145 if something is down, post about it and tag @{settings.owner_handle}. 145 146 146 147 IMPORTANT: never paginate through list_records repeatedly. if you need more data than one call returns, work with what you have. endless pagination wastes your request budget and produces no response. ··· 817 818 818 819 @self.agent.tool 819 820 async def check_services(ctx: RunContext[PhiDeps]) -> str: 820 - """Check health of your operator's infrastructure services (not your own status). 821 - Returns status, response time, and any failures for plyr, PDS, prefect, relays, etc. 822 - Use during daily reflection or when someone specifically asks about service/infrastructure health.""" 821 + """Check health of nate's infrastructure (plyr, PDS, prefect, etc) — NOT your own status. 822 + Do NOT call this when someone asks if you're online — that's about you, not infrastructure. 823 + Only use during daily reflection or when someone explicitly asks about services/infrastructure.""" 823 824 return await _check_services_impl() 824 825 825 826 logger.info("phi agent initialized with pdsx + pub-search mcp tools")