diff options
| author | soryu <soryu@soryu.co> | 2026-06-03 19:38:27 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-03 19:38:27 +0100 |
| commit | f13352a3a5860477957d16b7ce00169d385f56da (patch) | |
| tree | 0202501f036ff4ad868256b33a44a20fd9b52d4c /docs | |
| parent | f240675da99bc7705e473b8f70a2628812aa4c10 (diff) | |
| download | soryu-f13352a3a5860477957d16b7ce00169d385f56da.tar.gz soryu-f13352a3a5860477957d16b7ce00169d385f56da.zip | |
PR #136 dropped directive_steps.contract_id/contract_type and
tasks.contract_id, but several SQL queries still SELECTed or filtered
on them. The directive reconciler tripped on the first failing query
(get_ready_steps_for_dispatch), so no step ever transitioned to a
running task — symptoms were "Task has no assigned daemon" when
opening any task view, because no orchestrator-spawned tasks ever
got a daemon_id assigned.
Fixed queries:
- get_ready_steps_for_dispatch: drop SELECT ds.contract_type, drop
WHERE ds.contract_id IS NULL filter (vacuously true now).
- get_running_steps_with_tasks: drop WHERE ds.contract_id IS NULL.
- create_directive_step: drop contract_type column from INSERT.
- cleanup_stale_anonymous_tasks: rewrite "anonymous" filter
(contract_id IS NULL) as directive_step_id IS NULL — that was the
intent: terminal tasks not part of a directive flow.
Also removed StepForDispatch.contract_type, CreateDirectiveStepRequest.contract_type,
and the now-orphaned warn! in phase_execution.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions
