-
Notifications
You must be signed in to change notification settings - Fork 0
Watchdog
watchdog.py's WatchdogLoop closes the loop past your local working
copy: detect a live failure, repair it with the exact evidence-based
localization + agentic sampling the Repair-Loop uses, land the fix as
a canary, and promote or roll back on a real health check — no local test
suite required, since the canary's own health check is the pass/fail
oracle.
atomic-forge watch --project-dir ./out --log-file /var/log/app.log \
--deploy-cmd "python app.py {port}" --canary-percent 10-
Detect —
LogFailureDetectortails a log file for Python tracebacks, reusesrepair_agent.extract_signalsto parse them (no second parser to keep in sync), and dedupes by fingerprint so a steadily-repeating crash surfaces once, not once per poll. - Repair — the traceback is localized and patched the same way a failing local test would be, then committed.
-
Canary —
LocalProcessCanaryDeployerruns the pre-patch and post-patch code as two real subprocesses on two real ports, splits real HTTP traffic between them through a small stdlib reverse proxy, and health-checks the canary directly (not through the proxy, so a bad canary at 10% traffic still fails its own check immediately). - Promote / rollback — N consecutive healthy checks promote the canary (stable process torn down); any unhealthy check rolls back (canary torn down, the patch reverted and committed).
Both FailureDetector and DeployTarget are protocols with one real
reference implementation each. Bring your own (a real error tracker, a
real load balancer / Kubernetes) by implementing the same protocol —
nothing else about WatchdogLoop changes. This is the boundary of
"production infrastructure" forge draws deliberately: see
Environment-Bootstrap and Design-Notes.
atomic-forge — an agentic generate → test → repair loop with a machine-checked task contract, crash-safe checkpointing, and execution-selected repairs. BSL 1.1 licensed.
Start here
Workflows
Reference
Background
Requirements (R1–R16)
- Requirements-and-Roadmap
- Agent-Computer-Interface
- Critic-Verification-Gate
- Planner-Executor-Split
- Repo-Scale-Context
- Auto-Commit-Messages
- Persistent-Sandbox
- Multi-Channel-Intake
- Review-Comment-Driven-Fix
- Zero-Friction-Integration
- Self-Review-Issue-Resolution
- Enterprise-Scale-Indexing
- CLI-CI-Native
- Parallel-Execution
- Execution-Guided-Repair
- Data-Privacy-No-Training
- Environment-Bootstrap