- README: Phase 9 status, the architecture diagram + map link, and the explicit "Teams (FR-15) is DEFERRED" statement. - docs/architecture.mmd + docs/diagrams/architecture.png (mmdc). - docs/archify/architecture.architecture.json -> docs/architecture-map.html (Archify showcase, 9/9 checks). - docs/outline/: the five AI-context documents (STE style). - docs/vikunja-tasks.json: the live Vikunja board (project 21). Co-Authored-By: Paperclip <noreply@paperclip.ing>
3.0 KiB
3.0 KiB
Compass NHS — Agent Runbook
First Checks
Run these commands before any change.
git -C /home/sam/paseo/projects/compass_teams_nhs status
git -C /home/sam/paseo/projects/compass_teams_nhs log -n 5 --oneline
curl -s http://127.0.0.1:8792/health
/health must return "ok": true. It also shows the scan state and
hub_api. A red scan state is real data, not a test failure.
Build and Test
The host .13 has no Go toolchain. Build and test inside golang:1.25-alpine
through make. Bound every Docker command.
make test # go test ./... in golang:1.25-alpine
make vet # go vet ./...
make build # build the container image
Deploy and Restart
make up # docker compose up -d --build
make ps # container state
make logs # follow the service log
make restart # restart the service only
The container is compass-teams-nhs. The image tag is
compass-teams-nhs/school:0.6.1-phase8.
Operate
make scan # fetch and parse both children
make scan SCAN_CHILD=Finn # one child
make parse CHILD=Harry RUN=latest # parse stored pages
make preview # print the briefs, send nothing
make notify # send the briefs from the last scan
make morning-brief # scan, then send (the n8n job)
make calendar CALENDAR_ARGS='push --dry-run'
make calendar CALENDAR_ARGS='status'
The send log:
docker exec compass-teams-nhs /app/school notify status
Verify
make verify-phase1 # /health, the login, the Caddy route
make verify-phase8 # /capabilities, /ask, /notify auth
make verify-phase8 ARGS=--send # also deliver one real /notify message
The n8n Schedule
make n8n-key # dry run: print the key plan
make n8n-key APPLY=1 # create the restricted key
make n8n-import # dry run: print the import plan
make n8n-import APPLY=1 # import, publish and restart n8n
docker exec n8n n8n list:workflow --active=true
The workflow runs at 06:00 in Australia/Melbourne. The trigger key has a forced
command and restrict. It can run one command only.
Documentation
# Publish the maps and diagrams to the LAN maps site.
~/.agents/skills/project-docs/scripts/publish-maps.sh \
/home/sam/paseo/projects/compass_teams_nhs
# Force one Obsidian sorter pass on .27.
ssh sam@192.168.20.27 'obsidian-sort watch --once'
Rules
- Read-only against the school. Never post, message or submit.
- Fail loudly. Never report "nothing due" when a scan failed.
- Never commit a secret. Credentials, tokens and cookies stay in
environment.d/school-service.envor a Paperclip secret. - Never write personal page content into a document.
- Use one commit and one push for a change. End the message with
Co-Authored-By: Paperclip <noreply@paperclip.ing>.