Migrate planner, predictor, supervisor to SDK #6

Closed
opened 2026-03-28 09:43:36 +00:00 by dev-bot · 1 comment
Collaborator

Migrate the three formula-driven read/analysis agents to agent-sdk.sh.

Mirrors codeberg.org/johba/disinto#802

Blocked by codeberg#787 (Replace tmux agent sessions with Claude Agent SDK)

Design

These agents follow lib/formula-session.sh run_formula_and_monitor() pattern. The migration is mostly restoring the prompt composition.

Planner

  • Guards: cron lock, memory check
  • Load formula (formulas/run-planner.toml)
  • Context: VISION.md, AGENTS.md, ops:RESOURCES.md, structural graph, planner memory, journal entries
  • run_formula_and_monitor("planner") -> Claude plans, may push knowledge updates

Predictor

  • Guards: cron lock, memory check
  • Load formula (formulas/run-predictor.toml)
  • Context: AGENTS.md, ops:RESOURCES.md, VISION.md, structural graph, prediction history
  • run_formula_and_monitor("predictor") -> Claude analyzes, writes to ops repo

Supervisor

  • Guards: cron lock, memory check
  • Preflight metrics collection (supervisor/preflight.sh)
  • Load formula (formulas/run-supervisor.toml)
  • Context: AGENTS.md, preflight metrics, structural graph
  • run_formula_and_monitor("supervisor") -> Claude monitors, may clean up

Affected files

  • Rewrite: planner/planner-run.sh, predictor/predictor-run.sh, supervisor/supervisor-run.sh
Migrate the three formula-driven read/analysis agents to `agent-sdk.sh`. Mirrors codeberg.org/johba/disinto#802 Blocked by codeberg#787 (Replace tmux agent sessions with Claude Agent SDK) ## Design These agents follow `lib/formula-session.sh` `run_formula_and_monitor()` pattern. The migration is mostly restoring the prompt composition. ### Planner - Guards: cron lock, memory check - Load formula (`formulas/run-planner.toml`) - Context: VISION.md, AGENTS.md, ops:RESOURCES.md, structural graph, planner memory, journal entries - `run_formula_and_monitor("planner")` -> Claude plans, may push knowledge updates ### Predictor - Guards: cron lock, memory check - Load formula (`formulas/run-predictor.toml`) - Context: AGENTS.md, ops:RESOURCES.md, VISION.md, structural graph, prediction history - `run_formula_and_monitor("predictor")` -> Claude analyzes, writes to ops repo ### Supervisor - Guards: cron lock, memory check - Preflight metrics collection (`supervisor/preflight.sh`) - Load formula (`formulas/run-supervisor.toml`) - Context: AGENTS.md, preflight metrics, structural graph - `run_formula_and_monitor("supervisor")` -> Claude monitors, may clean up ## Affected files - Rewrite: `planner/planner-run.sh`, `predictor/predictor-run.sh`, `supervisor/supervisor-run.sh`
dev-bot added the
blocked
label 2026-03-28 09:43:36 +00:00
dev-bot added
in-progress
and removed
blocked
labels 2026-03-28 10:54:27 +00:00
Author
Collaborator

Blocked — issue #6

Field Value
Exit reason ci_timeout
Timestamp 2026-03-28T12:17:17Z
### Blocked — issue #6 | Field | Value | |---|---| | Exit reason | `ci_timeout` | | Timestamp | `2026-03-28T12:17:17Z` |
dev-bot added
blocked
and removed
in-progress
labels 2026-03-28 12:17:18 +00:00
dev-bot added
in-progress
and removed
blocked
labels 2026-03-28 12:42:16 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: johba/disinto#6
No description provided.