How chiefgyk3d/scrum-around-and-find-out works
SAFO is a maintainer-facing CLI and GitHub Action for managing a GitHub Project as code, enforcing issue-linked work, and advising how to route tasks among AI agents. The main workflow is to validate board configuration, inspect the live project, then audit drift or reconcile and sync cards; status reports the result. Separate capabilities cover agent routing and usage, local hooks, profiles, and guarded Gemini research and paid calls. The graph uses README-documented capabilities and sampled source references; many mode implementations were not excerpted, so their internal call paths are not asserted.
Main entry points: cli.py SAFO CLI · reconcile.py Reconcile · audit.py Audit · sync.py Sync
Components 27
Board operations
- Board schema
src/safo/schema.py - Validate
src/safo/modes/validate.py - Bootstrap
src/safo/modes/bootstrap.py - Audit
src/safo/modes/audit.py - Reconcile
src/safo/modes/reconcile.py - Sync
src/safo/modes/sync.py - Status
src/safo/modes/status.py - Tracking checks
src/safo/coverage.py - Board apply
src/safo/apply.py
Agent workflow
- Agent configuration
src/safo/agentsfile.py - Route recommendation
src/safo/routing.py - Usage meters
src/safo/meters - Usage report
src/safo/modes/usage.py - Agent hooks
src/safo/hooks.py - Agent profiles
src/safo/profile.py
Gemini services
- Free Gemini
src/safo/gemini.py - Paid-call client
src/safo/broker/client.py - Broker service
src/safo/broker/server.py - Paid-call pipeline
src/safo/broker/pipeline.py - Call ledger
src/safo/broker/ledger.py
Shared runtime
- SAFO CLI
src/safo/cli.py - Mode context
src/safo/context.py - GitHub GraphQL
src/safo/graphql.py - Safe output
src/safo/output.py
Other components
- Maintainer
- GitHub Project
- Gemini API
Connections 35
- Maintainer → SAFO CLI: runs commands
- SAFO CLI → Validate: runs mode
- SAFO CLI → Bootstrap: runs mode
- SAFO CLI → Audit: runs mode
- SAFO CLI → Reconcile: runs mode
- SAFO CLI → Sync: runs mode
- SAFO CLI → Status: runs mode
- Validate → Board schema: validates config
- Bootstrap → GitHub Project: creates project fields
- Audit → GitHub Project: inspects project
- Audit → Tracking checks: checks tracking
src/safo/coverage.py - Reconcile → GitHub Project: reads and repairs
src/safo/modes/reconcile.py - Reconcile → Tracking checks: finds tracking gaps
src/safo/modes/reconcile.py - Reconcile → Board apply: applies changes
src/safo/modes/reconcile.py - Sync → Reconcile: uses reconciliation
src/safo/modes/sync.py - Sync → Board apply: applies changes
src/safo/modes/sync.py - Status → GitHub Project: reads project
- Mode context → GitHub GraphQL: provides client
src/safo/context.py - GitHub GraphQL → GitHub Project: sends queries
- Maintainer → Route recommendation: requests recommendation
- Route recommendation → Agent configuration: reads rules
src/safo/routing.py - Route recommendation → Usage meters: uses headroom
- Maintainer → Usage report: requests report
- Usage report → Usage meters: reads usage
- Maintainer → Agent hooks: installs hooks
- Agent hooks → Agent configuration: enforces configuration
src/safo/modes/hooks.py - Maintainer → Agent profiles: manages profiles
- Maintainer → Free Gemini: requests research
- Free Gemini → Gemini API: calls free tier
- Maintainer → Paid-call client: requests paid call
- Paid-call client → Broker service: requests broker call
src/safo/broker/client.py - Broker service → Paid-call pipeline: dispatches call
src/safo/broker/server.py - Paid-call pipeline → Call ledger: records and settles
src/safo/broker/pipeline.py - Paid-call pipeline → Gemini API: sends request
src/safo/broker/pipeline.py - Mode context → Safe output: writes safely
src/safo/context.py