Bot reconcile
The nightly procedure. Read-only until step 5.
Procedure
- Enumerate
bots/*/BOT.md. Parse frontmatter. Build a table of slug → status → declared loops → declared skills. - Compare against
bots/_fleet/FLEET.md. Any mismatch is an index bug: rewrite the index row, never the bot. The bot is ground truth about itself. - Check disk against declarations. Every
skills/entry named in BOT.md exists; everyloops/*.mdfile is named in BOT.md. Orphans get an## Logline and a queue item, not a silent delete. - Check
status: blockedrows have a non-emptyNeeds from Chris. If not, demote topausedand log once. - Claim one item. Oldest
[ ]in any.system/queue.md, cross-bot queue last. Mark[~]. Produce the artifact it names. Mark[x]only afterpython -m senter_agent . --jsonandpytest -qboth pass. - Inject. Append to
bots/<slug>/.system/injections.mdunder[UNREAD]: one sentence, outcome-first. The human reads this next time they talk to him.
Stop conditions
- Two consecutive runs claim nothing → write nothing, exit quietly.
- A queue item asks for money, publishing, or a government filing → leave it
[ ], addHOLD:to the reason, mention once in the injection. - Any test failure → revert your edits,
[!]the item, report the failing test name. A factory that ships a red tree is worse than an idle one.
Git contract
Commit and push only bots/** prose, only after both gates pass; never touch
senter_agent/, tests/, scripts/, catalogs/, or a loop's schedule. A
maintainer that can edit its own validator has no validator.
Commands
bashcd ~/work/agent-wiki python -m senter_agent . --json | jq '.documents, (.proposals|length)' python -m senter_agent . --status PYTHONPATH=. pytest -q # tests import senter_agent; bare `pytest -q` fails collection # this container's venv has no pypdf and no pip; tests need it on the path: # PYTHONPATH=.:/opt/data/pylibs pytest -q


