Documentation
¶
Index ¶
- Constants
- Variables
- func AddComment(ctx context.Context, conn state.SQLiteConn, taskID, author, body string) (int64, error)
- func AddNotifySub(ctx context.Context, conn state.SQLiteConn, o NotifySubOptions) error
- func AdmissionAnswerBudget() float64
- func AdoptWorkerPid(ctx context.Context, conn state.SQLiteConn, taskID string, runID int64, ...) (bool, error)
- func AdvanceNotifyCursor(ctx context.Context, conn state.SQLiteConn, taskID, platform, chatID string, ...) error
- func AppendEvent(ctx context.Context, conn state.SQLiteConn, taskID, kind string, body any, ...) error
- func AppendTaskEvent(ctx context.Context, conn state.SQLiteConn, taskID, kind string, body any, ...) error
- func ArchiveTask(ctx context.Context, conn state.SQLiteConn, taskID string, signalFn SignalFunc) (bool, error)
- func AssertNotDelegatedChildMutation(ctx context.Context, path string) error
- func AssignTask(ctx context.Context, conn state.SQLiteConn, taskID string, profile *string) (bool, error)
- func AttachmentsRoot(ctx context.Context, board *string) (string, error)
- func BlockTask(ctx context.Context, conn state.SQLiteConn, taskID, reason string, ...) error
- func BlockTaskWithKind(ctx context.Context, conn state.SQLiteConn, taskID string, ...) (bool, error)
- func BoardArg(slug string) *string
- func BoardDir(board *string) (string, error)
- func BoardExists(board *string) bool
- func BoardMetadataPath(board *string) (string, error)
- func BoardStats(ctx context.Context, conn state.SQLiteConn) (*pyjson.Object, error)
- func BoardsRoot() string
- func BuildRecoveryNudge(result any, attempt, maxAttempts int, taskID *string) string
- func BuildWorkerContext(ctx context.Context, conn state.SQLiteConn, taskID string) (string, error)
- func CheckDispatcherPresence(ctx context.Context, icebathHome string) (running bool, message string)
- func CheckRespawnGuard(ctx context.Context, conn state.SQLiteConn, taskID, lane string) (*string, error)
- func ChildIDs(ctx context.Context, conn state.SQLiteConn, taskID string) ([]string, error)
- func ClearCurrentBoard(ctx context.Context) error
- func CompleteTask(ctx context.Context, conn state.SQLiteConn, taskID string, ...) (bool, error)
- func ConfigFromKanbanConfig(kanbanCfg map[string]any) (map[string]any, error)
- func ConfigFromRuntimeConfig(rawConfig any) (map[string]any, error)
- func ConfiguredMaxInProgress(ctx context.Context) *int
- func Connect(ctx context.Context, dbPath string, board *string) (state.SQLiteConn, error)
- func ConnectClosing(ctx context.Context, dbPath string, board *string, ...) error
- func CountNotifySubs(ctx context.Context, dbPath string, board *string, scope NotifyOwnerScope, ...) (int64, error)
- func CountRunningTasks(ctx context.Context, conn state.SQLiteConn) int
- func CountRunningTasksOtherBoards(ctx context.Context, board *string) int
- func CreateBoard(ctx context.Context, slug string, o BoardCreateOptions) (*pyjson.Object, error)
- func CreateTask(ctx context.Context, conn state.SQLiteConn, o CreateTaskOptions) (string, error)
- func CredentialFailureFlags(err error) (rateLimited, terminal, found bool)
- func CurrentBoardPath() string
- func DecomposeListTriageIDs(ctx context.Context, tenant *string) ([]string, error)
- func DecomposeTriageTask(ctx context.Context, conn state.SQLiteConn, taskID string, ...) ([]string, error)
- func DeleteArchivedTask(ctx context.Context, conn state.SQLiteConn, taskID string) (bool, error)
- func DeriveDefaultMaxInProgress(sample *pyjson.Object) *int
- func DescribeSuppression(results []*DispatchResult) string
- func DetectStaleRunning(ctx context.Context, conn state.SQLiteConn, staleTimeoutSeconds int64, ...) ([]string, error)
- func DiagnosticsDefaultConfig() map[string]any
- func DispatchProfileAllowlistSummary(ctx context.Context) string
- func EditTask(ctx context.Context, conn state.SQLiteConn, taskID string, o EditTaskOptions) (bool, error)
- func EnforceMaxRuntime(ctx context.Context, conn state.SQLiteConn, signalFn SignalFunc) ([]string, error)
- func ExportBoard(ctx context.Context, board *string, outputPath string, ...) (*pyjson.Object, error)
- func GCEvents(ctx context.Context, conn state.SQLiteConn, olderThanSeconds int64) (int64, error)
- func GCWorkerLogs(ctx context.Context, olderThanSeconds int64, board *string) (int, error)
- func GetCurrentBoard(ctx context.Context) string
- func GoalRunStatus(ctx context.Context, conn state.SQLiteConn, taskID string, ...) (*string, error)
- func HasSpawnableReady(ctx context.Context, conn state.SQLiteConn) (bool, error)
- func HasSpawnableReview(ctx context.Context, conn state.SQLiteConn) (bool, error)
- func HeartbeatClaim(ctx context.Context, conn state.SQLiteConn, taskID string, ttlSeconds *int64, ...) (bool, error)
- func HeartbeatCurrentWorkerFromEnv(ctx context.Context) (beat bool)
- func HeartbeatWorker(ctx context.Context, conn state.SQLiteConn, taskID string, note *string, ...) (bool, error)
- func HeartbeatWorkerNote(ctx context.Context, conn state.SQLiteConn, taskID string, note any, ...) (bool, error)
- func ImportBoard(ctx context.Context, archivePath string, slug *string, activate bool) (*pyjson.Object, error)
- func InitDB(ctx context.Context, dbPath string, board *string) (string, error)
- func InjectNewCommentsFromEnv(ctx context.Context, agent any) (injected bool)
- func KanbanCommand(ctx context.Context, ns map[string]any, w, errw io.Writer) (int, error)
- func KanbanDBPath(ctx context.Context, board *string) (string, error)
- func KanbanHome() string
- func KanbanTaskID() string
- func KanbanTurnRecoveryEnabled(taskID *string) bool
- func KnownAssignees(ctx context.Context, conn state.SQLiteConn) ([]*pyjson.Object, error)
- func LatestBlackboard(ctx context.Context, conn state.SQLiteConn, rootID string) (*pyjson.Object, error)
- func LatestSummary(ctx context.Context, conn state.SQLiteConn, taskID string) (*string, error)
- func LinkTasks(ctx context.Context, conn state.SQLiteConn, parentID, childID string, ...) (bool, error)
- func ListBoards(includeArchived bool) ([]*pyjson.Object, error)
- func ListNotifySubs(ctx context.Context, conn state.SQLiteConn, taskID *string, ...) ([]*pyjson.Object, error)
- func ListProfilesOnDisk() []string
- func LossyText(value any) any
- func MaxRecoveryAttempts() int
- func NormalizeBoardSlug(slug *string) (string, error)
- func NormalizeReasoningEffort(effort *string) (*string, error)
- func NotifyTaskUpdated(ctx context.Context, conn state.SQLiteConn, taskID string, ...)
- func ParentIDs(ctx context.Context, conn state.SQLiteConn, taskID string) ([]string, error)
- func PinFirstBoardResolution(ctx context.Context) context.Context
- func PostBlackboardUpdate(ctx context.Context, conn state.SQLiteConn, rootID, author, key string, ...) (int64, error)
- func ProcessFingerprint(pid int) *string
- func PromoteTask(ctx context.Context, conn state.SQLiteConn, taskID, actor string, ...) (bool, string, error)
- func PurgeStaleDoneNotifySubs(ctx context.Context, conn state.SQLiteConn, maxAgeDays int64) (int64, error)
- func ReadBoardMetadata(board *string) (*pyjson.Object, error)
- func ReadWorkerLog(ctx context.Context, taskID string, tailBytes *int64, board *string) (*string, error)
- func ReapTerminalWorkers(ctx context.Context, conn state.SQLiteConn, signalFn SignalFunc) ([]string, error)
- func ReapWorkerZombies() []int
- func ReassignTask(ctx context.Context, conn state.SQLiteConn, taskID string, profile *string, ...) (bool, error)
- func ReclaimTask(ctx context.Context, conn state.SQLiteConn, taskID string, reason *string, ...) (bool, error)
- func RecomputeReady(ctx context.Context, conn state.SQLiteConn, failureLimit *int64) (int, error)
- func ReconcileOrphanedRunning(ctx context.Context, conn state.SQLiteConn) ([]string, error)
- func RecordBudgetExhausted(ctx context.Context, kanbanTask string, apiCallCount, maxIterations int) error
- func RecordNotifyPing(ctx context.Context, conn state.SQLiteConn, taskID, platform, chatID string, ...) error
- func RecoverFailedKanbanTurns(ctx context.Context, runTurn func(nudge string), ...) (int, error)
- func RecoverFailedKanbanTurnsWith(ctx context.Context, turnFn func(nudge string), getResult func() any, ...) (int, error)
- func RecoveryDelaySeconds(attempt int) float64
- func RegisterCurrentWorkerFromEnv(ctx context.Context) (registered bool)
- func ReleaseStaleClaims(ctx context.Context, conn state.SQLiteConn, signalFn SignalFunc, ...) (int, error)
- func RemoveBoard(ctx context.Context, slug string, archive bool) (*pyjson.Object, error)
- func RemoveNotifySub(ctx context.Context, conn state.SQLiteConn, taskID, platform, chatID string, ...) (bool, error)
- func ReopenReviewTask(ctx context.Context, conn state.SQLiteConn, taskID string) (bool, error)
- func ReopenTask(ctx context.Context, conn state.SQLiteConn, taskID, author string) (bool, error)
- func RequestChanges(ctx context.Context, conn state.SQLiteConn, taskID, reason string, ...) (bool, string, error)
- func RequestReview(ctx context.Context, conn state.SQLiteConn, taskID string, ...) (bool, string, error)
- func RequireSlug(slug string) (string, error)
- func ResolveMaxInProgress(configured *int) *int
- func ResolveWorkspace(ctx context.Context, task *Task, board *string) (string, error)
- func RetryStatusForRun(ctx context.Context, conn state.SQLiteConn, taskID string, runID *int64) (string, error)
- func ReviewDispatchEnabled(ctx context.Context) bool
- func RewindNotifyCursor(ctx context.Context, conn state.SQLiteConn, taskID, platform, chatID string, ...) (bool, error)
- func RotateWorkerLog(logPath string, maxBytes, backupCount int64)
- func RunDaemon(ctx context.Context, o DaemonOptions)
- func RunSlash(ctx context.Context, rest string) (string, error)
- func ScheduleTask(ctx context.Context, conn state.SQLiteConn, taskID string, reason *string, ...) (bool, error)
- func ScopedCurrentBoard(ctx context.Context, slug string) context.Context
- func SetBranchName(ctx context.Context, conn state.SQLiteConn, taskID, branchName string) error
- func SetCurrentBoard(ctx context.Context, slug string) (string, error)
- func SetModelOverride(ctx context.Context, conn state.SQLiteConn, taskID string, ...) (bool, error)
- func SetWorkspacePath(ctx context.Context, conn state.SQLiteConn, taskID, path string) error
- func ShouldRecoverTurn(result any, attempt int, taskID *string) bool
- func SpecifyListTriageIDs(ctx context.Context, tenant *string) ([]string, error)
- func SpecifyTriageTask(ctx context.Context, conn state.SQLiteConn, taskID string, ...) (bool, error)
- func StoreAttachmentBytes(ctx context.Context, conn state.SQLiteConn, taskID, filename string, ...) (int64, error)
- func TaskAttachmentsDir(ctx context.Context, taskID string, board *string) (string, error)
- func TaskGoalMaxTurns(task *Task) *int64
- func TaskGraphContext(ctx context.Context, conn state.SQLiteConn, taskID string) (*pyjson.Object, error)
- func TaskGraphContexts(ctx context.Context, conn state.SQLiteConn, taskIDs []string) (*pyjson.Object, error)
- func TriageAuxStatus(config any) any
- func UnblockTask(ctx context.Context, conn state.SQLiteConn, taskID string) (bool, error)
- func UnlinkTasks(ctx context.Context, conn state.SQLiteConn, parentID, childID string) (bool, error)
- func WorkerAlive(pid, startedAt any) bool
- func WorkerClaimIsLive(ctx context.Context, proof ClaimProof) (bool, error)
- func WorkerLogPath(ctx context.Context, taskID string, board *string) (string, error)
- func WorkerLogRotationConfig(ctx context.Context, kanbanCfg any) (int64, int64, error)
- func WorkerLogsDir(ctx context.Context, board *string) (string, error)
- func WorkerTerminalTimeoutEnv(maxRuntimeSeconds *int64, currentTimeout *string) *string
- func WorkspacesRoot(ctx context.Context, board *string) (string, error)
- func WriteBoardMetadata(ctx context.Context, board *string, u BoardMetadataUpdate) (*pyjson.Object, error)
- func WriteTxn(ctx context.Context, conn state.SQLiteConn, allowNested bool, ...) (err error)
- type ArtifactPreservationError
- type Attachment
- func AttachmentFromRow(r *Row) *Attachment
- func DeleteAttachment(ctx context.Context, conn state.SQLiteConn, attachmentID int64) (*Attachment, error)
- func GetAttachment(ctx context.Context, conn state.SQLiteConn, attachmentID int64) (*Attachment, error)
- func ListAttachments(ctx context.Context, conn state.SQLiteConn, taskID string) ([]*Attachment, error)
- type AttachmentTooLarge
- type BoardCreateOptions
- type BoardMetadataUpdate
- type CappedTask
- type ClaimProof
- type Column
- type Comment
- type CompleteTaskOptions
- type CrashSweepOutcome
- type CreateTaskOptions
- type DaemonOptions
- type DecomposeOutcome
- type Diagnostic
- type DiagnosticAction
- type DispatchOptions
- type DispatchResult
- type EditTaskOptions
- type EmptyCompletionError
- type Event
- func ClaimUnseenEventsForSub(ctx context.Context, conn state.SQLiteConn, taskID, platform, chatID string, ...) (int64, int64, []*Event, error)
- func EventFromRow(row *Row) (*Event, error)
- func ListEvents(ctx context.Context, conn state.SQLiteConn, taskID string) ([]*Event, error)
- func UnseenEventsForSub(ctx context.Context, conn state.SQLiteConn, taskID, platform, chatID string, ...) (int64, []*Event, error)
- type FileNotFoundError
- type GatewayDispatchProbeSet
- type GatewayStatusProbeSet
- type GuardedTask
- type HallucinatedCardsError
- type InvalidationResult
- type KanbanDBCorruptError
- type ListTasksOptions
- type LiveClaimError
- type ManualMoves
- type ManualRow
- type NotifyOwnerScope
- type NotifySubOptions
- type ParentStatus
- type PermissionError
- type PreparedAcceptance
- type RecordFailureOptions
- type RecoveryOptions
- type RepairResult
- type RequestReviewOptions
- type Row
- type Run
- type RuntimeError
- type SignalFunc
- type SlashParse
- type SpawnFunc
- type SpawnedTask
- type SpecifyOutcome
- type StoreAttachmentOptions
- type SwarmCreated
- type SwarmOptions
- type SwarmWorkerSpec
- type Task
- func ClaimReviewTask(ctx context.Context, conn state.SQLiteConn, taskID string, ttlSeconds *int64, ...) (*Task, error)
- func ClaimTask(ctx context.Context, conn state.SQLiteConn, taskID string, ttlSeconds *int64, ...) (*Task, error)
- func GetTask(ctx context.Context, conn state.SQLiteConn, taskID string) (*Task, error)
- func ListTasks(ctx context.Context, conn state.SQLiteConn, o ListTasksOptions) ([]*Task, error)
- func TaskFromRow(row *Row) (*Task, error)
- type TypeError
- type ValueError
- type WorkerTermination
- type Workflow
Constants ¶
const ( DefaultClaimTTLSeconds = 15 * 60 DefaultClaimHeartbeatMaxStaleSeconds = 60 * 60 ReclaimDeferGraceSeconds = 120 DefaultCrashGraceSeconds = 30 KanbanRateLimitExitCode = tools.KanbanRateLimitExitCode KanbanTerminalProviderExitCode = tools.KanbanTerminalProviderExitCode )
const ( MemoryGuardMBPerWorker = 512 DerivedMaxInProgressFloor = 2 DerivedMaxInProgressCeiling = 8 )
const ( DefaultFailureLimit = 2 DefaultRateLimitCooldownSeconds = 300 UnverifiedWorkerFingerprint = "unverified" )
const ( KanbanListDefaultLimit = 50 KanbanListMaxLimit = 200 )
const ( ArchiveFormat = "icebath-kanban-board" ArchiveFormatVersion = 1 )
const ( DefaultLogRotateBytes = 2 * 1024 * 1024 DefaultLogBackupCount = 1 )
const AdmissionAnswerMarginSeconds = 60.0
AdmissionAnswerMarginSeconds covers the owner's session setup and receipt around its admission write
const Archived = "archived"
Status outside every workflow, a filter toggle and never a board column
const BlackboardPrefix = "[swarm:blackboard] "
BlackboardPrefix opens every structured blackboard comment on a swarm root
const BlockRecurrenceLimit = 2
Unblock loop count after which a recurring block escalates
const DefaultBoard = "default"
Board whose database stays at the legacy root kanban.db
const DefaultBusyTimeoutMS = 120_000
Busy timeout kanban connections use unless ICEBATH_KANBAN_BUSY_TIMEOUT_MS overrides it
const DefaultMaxRecoveryAttempts = 3
Recovery attempts made when ICEBATH_KANBAN_TURN_RECOVERY is unset
const KanbanAttachmentMaxBytes = 25 * 1024 * 1024
Attachment size cap shared by the tools and CLI
const KanbanTerminalTimeoutGraceSeconds = 30
const KanbanWorkerClientEntry = "__icebath_kanban_worker_client__"
KanbanWorkerClientEntry is the argv word that runs this binary as the kanban worker client
const SchemaSQL = `
CREATE TABLE IF NOT EXISTS tasks (
id TEXT PRIMARY KEY,
title TEXT NOT NULL,
body TEXT,
assignee TEXT,
status TEXT NOT NULL,
priority INTEGER DEFAULT 0,
created_by TEXT,
created_at INTEGER NOT NULL,
started_at INTEGER,
completed_at INTEGER,
workspace_kind TEXT NOT NULL DEFAULT 'scratch',
workspace_path TEXT,
branch_name TEXT,
-- Optional link to a first-class Project (projects.db of the profile). When set,
-- the task's worktree is anchored under the project's primary repo with a
-- deterministic branch name instead of a random wt/<task-id> fallback.
project_id TEXT,
claim_lock TEXT,
claim_expires INTEGER,
tenant TEXT,
result TEXT,
idempotency_key TEXT,
-- Unified consecutive-failure counter. Incremented on spawn
-- failure, timeout, or crash; reset only on successful completion.
-- The circuit breaker in _record_task_failure trips when this
-- exceeds DEFAULT_FAILURE_LIMIT consecutive non-successes.
consecutive_failures INTEGER NOT NULL DEFAULT 0,
worker_pid INTEGER,
-- Restart-stable fingerprint of worker_pid ("<boot/instantiation epoch>|<start time>",
-- kanban_db_dispatch._process_fingerprint) recorded at spawn: liveness and kills require pid
-- AND fingerprint to agree, so a PID recycled after a reboot is never read as our worker or
-- signalled. NULL = legacy row (pre-fingerprint spawn); 'unverified' = capture failed at
-- spawn (held while live, never signalled). Column keeps its INTEGER affinity for the
-- start-time-only integer values older rows carry.
worker_started_at INTEGER,
-- Short excerpt of the most recent failure's error text.
last_failure_error TEXT,
max_runtime_seconds INTEGER,
last_heartbeat_at INTEGER,
-- Pointer into task_runs for the currently-active run (NULL if no
-- run is in-flight). Denormalised for cheap reads.
current_run_id INTEGER,
-- Forward-compat for v2 workflow routing. In v1 the kernel writes
-- these when the task is opted into a template but otherwise ignores
-- them; the dispatcher doesn't consult them for routing yet.
workflow_template_id TEXT,
current_step_key TEXT,
-- Force-loaded skills for the worker on this task, stored as JSON.
-- Passed to the worker via ` + "`" + `--skills` + "`" + `. NULL or empty array = no extras.
skills TEXT,
-- Per-task model override. When set, the dispatcher passes -m <model>
-- to the worker, overriding the profile's default model. NULL = use
-- the profile default.
model_override TEXT,
-- Provider the model override belongs to. When set (alongside
-- model_override), the dispatcher passes --provider <name> so the
-- worker resolves the model against the right backend instead of the
-- profile's configured provider. NULL = profile provider.
provider_override TEXT,
-- Per-task reasoning effort for the worker (minimal|low|medium|high|
-- xhigh|max|ultra, or 'none' for thinking off). When set, the dispatcher
-- passes --reasoning <level> so the worker runs at that depth regardless
-- of the profile's agent.reasoning_effort. NULL = profile setting.
reasoning_effort TEXT,
-- Per-task override for the consecutive-failure circuit breaker.
-- The value is the failure count at which the breaker trips — e.g.
-- ` + "`" + `` + "`" + `max_retries=1` + "`" + `` + "`" + ` blocks on the first failure. NULL (the common
-- case) falls through to the dispatcher-level ` + "`" + `` + "`" + `kanban.failure_limit` + "`" + `` + "`" + `
-- config and then ` + "`" + `` + "`" + `DEFAULT_FAILURE_LIMIT` + "`" + `` + "`" + `.
max_retries INTEGER,
-- When 1, the dispatched worker runs in a Ralph-style goal loop: an
-- auxiliary judge re-evaluates the worker's response against the
-- card title/body after each turn and feeds a continuation prompt
-- back into the SAME session until the judge agrees the work is done
-- or ` + "`" + `` + "`" + `goal_max_turns` + "`" + `` + "`" + ` is exhausted. NULL/0 = classic single-shot
-- worker (the default).
goal_mode INTEGER NOT NULL DEFAULT 0,
-- Goal-loop turn budget for ` + "`" + `` + "`" + `goal_mode` + "`" + `` + "`" + ` workers. NULL = use the
-- goals-engine default.
goal_max_turns INTEGER,
-- Originating chat/agent session id when the task was created from
-- inside an agent loop that propagated ` + "`" + `` + "`" + `ICEBATH_SESSION_ID` + "`" + `` + "`" + `. NULL
-- for tasks created from the CLI or any path that doesn't
-- set the env var, and for an id with no ` + "`" + `` + "`" + `sessions` + "`" + `` + "`" + ` row in this
-- profile's state.db (kanban_create verifies before stamping). Indexed
-- so per-session list queries stay cheap on larger boards.
session_id TEXT,
-- Typed block reason set by ` + "`" + `` + "`" + `block_task` + "`" + `` + "`" + ` (one of VALID_BLOCK_KINDS, or
-- NULL for legacy/un-typed blocks). Drives routing: ` + "`" + `` + "`" + `dependency` + "`" + `` + "`" + ` never
-- sits in ` + "`" + `` + "`" + `blocked` + "`" + `` + "`" + ` (goes to ` + "`" + `` + "`" + `todo` + "`" + `` + "`" + ` for parent-gating); the others go
-- to ` + "`" + `` + "`" + `blocked` + "`" + `` + "`" + ` for a human. Preserved across unblock so a re-block for
-- the SAME kind can be recognised as a loop.
block_kind TEXT,
-- Unblock-loop counter. Incremented each time a task is re-blocked for the
-- same truly-blocked reason after having been unblocked. When it reaches
-- BLOCK_RECURRENCE_LIMIT the task is routed to ` + "`" + `` + "`" + `triage` + "`" + `` + "`" + ` instead of
-- ` + "`" + `` + "`" + `blocked` + "`" + `` + "`" + ` so a cron can't spin it forever. Reset to 0 only on a
-- successful completion — NOT on unblock (resetting on unblock is exactly
-- the amnesia that let the loop run unbounded).
block_recurrences INTEGER NOT NULL DEFAULT 0
);
CREATE TABLE IF NOT EXISTS task_links (
parent_id TEXT NOT NULL,
child_id TEXT NOT NULL,
PRIMARY KEY (parent_id, child_id)
);
CREATE TABLE IF NOT EXISTS task_comments (
id INTEGER PRIMARY KEY AUTOINCREMENT,
task_id TEXT NOT NULL,
author TEXT NOT NULL,
body TEXT NOT NULL,
created_at INTEGER NOT NULL
);
CREATE TABLE IF NOT EXISTS task_events (
id INTEGER PRIMARY KEY AUTOINCREMENT,
task_id TEXT NOT NULL,
run_id INTEGER,
kind TEXT NOT NULL,
payload TEXT,
created_at INTEGER NOT NULL
);
-- Historical attempt record. Each time the dispatcher claims a task, a
-- new row is created here; claim state, PID, heartbeat, runtime cap,
-- and structured summary all live on the run, not the task. Multiple
-- rows per task id when the task was retried after crash/timeout/block.
-- v2 of the kanban schema will use ` + "`" + `` + "`" + `step_key` + "`" + `` + "`" + ` to drive per-stage
-- workflow routing; in v1 the column is nullable and unused (kernel
-- ignores it).
CREATE TABLE IF NOT EXISTS task_runs (
id INTEGER PRIMARY KEY AUTOINCREMENT,
task_id TEXT NOT NULL,
profile TEXT,
step_key TEXT,
status TEXT NOT NULL,
-- status: running | done | blocked | crashed | timed_out | failed | released
claim_lock TEXT,
claim_expires INTEGER,
worker_pid INTEGER,
-- Spawn-time start fingerprint of worker_pid (see tasks.worker_started_at). Retained with
-- worker_pid after the run ends so a worker that outlives its terminal transition can
-- still be found and reaped; NULL = legacy row, never signalled.
worker_started_at INTEGER,
max_runtime_seconds INTEGER,
last_heartbeat_at INTEGER,
started_at INTEGER NOT NULL,
ended_at INTEGER,
outcome TEXT,
-- outcome: completed | blocked | crashed | timed_out | spawn_failed |
-- gave_up | reclaimed | (null while still running)
summary TEXT,
metadata TEXT,
error TEXT
);
-- Files attached to a task (PDFs, images, source documents). The blob
-- lives on disk under ` + "`" + `` + "`" + `attachments_root(board)/<task_id>/<stored_name>` + "`" + `` + "`" + `;
-- this row carries metadata + the absolute ` + "`" + `` + "`" + `stored_path` + "`" + `` + "`" + ` so
-- ` + "`" + `` + "`" + `build_worker_context` + "`" + `` + "`" + ` can surface
-- the absolute path to the worker (which has full file-tool access). See
-- #35338.
CREATE TABLE IF NOT EXISTS task_attachments (
id INTEGER PRIMARY KEY AUTOINCREMENT,
task_id TEXT NOT NULL,
filename TEXT NOT NULL,
stored_path TEXT NOT NULL,
content_type TEXT,
size INTEGER NOT NULL DEFAULT 0,
uploaded_by TEXT,
created_at INTEGER NOT NULL
);
-- Subscription from a gateway source (platform + chat + thread) to a
-- task. The gateway's kanban-notifier watcher tails task_events and
-- pushes ` + "`" + `` + "`" + `completed` + "`" + `` + "`" + ` / ` + "`" + `` + "`" + `blocked` + "`" + `` + "`" + ` / ` + "`" + `` + "`" + `spawn_auto_blocked` + "`" + `` + "`" + ` events to
-- the original requester so human-in-the-loop workflows close the loop.
CREATE TABLE IF NOT EXISTS kanban_notify_subs (
task_id TEXT NOT NULL,
platform TEXT NOT NULL,
chat_id TEXT NOT NULL,
thread_id TEXT NOT NULL DEFAULT '',
user_id TEXT,
user_id_alt TEXT,
chat_type TEXT,
notifier_profile TEXT,
delivery_mode TEXT NOT NULL DEFAULT 'notify',
delivery_metadata TEXT,
created_at INTEGER NOT NULL,
last_event_id INTEGER NOT NULL DEFAULT 0,
last_ping_event_id INTEGER NOT NULL DEFAULT 0,
PRIMARY KEY (task_id, platform, chat_id, thread_id)
);
CREATE INDEX IF NOT EXISTS idx_tasks_status ON tasks(status);
CREATE INDEX IF NOT EXISTS idx_links_child ON task_links(child_id);
CREATE INDEX IF NOT EXISTS idx_links_parent ON task_links(parent_id);
CREATE INDEX IF NOT EXISTS idx_comments_task ON task_comments(task_id, created_at);
CREATE INDEX IF NOT EXISTS idx_events_task ON task_events(task_id, created_at);
CREATE INDEX IF NOT EXISTS idx_runs_task ON task_runs(task_id, started_at);
CREATE INDEX IF NOT EXISTS idx_runs_status ON task_runs(status);
CREATE INDEX IF NOT EXISTS idx_attachments_task ON task_attachments(task_id, created_at);
CREATE INDEX IF NOT EXISTS idx_notify_task ON kanban_notify_subs(task_id);
`
Kanban schema every connection applies on first use, idempotent through IF NOT EXISTS
const SlashKanbanHelp = "**/kanban** — manage the shared task board.\n" +
"\n" +
"Common subcommands:\n" +
" `list` (alias `ls`) List tasks on the current board\n" +
" `show <id>` Task details + comments + events\n" +
" `stats` Per-status / per-assignee counts\n" +
" `create <title>…` Create a task (auto-subscribes you to events)\n" +
" `comment <id> <msg>` Append a comment\n" +
" `attach <id> <path>` Attach a local file; `attachments <id>` to list\n" +
" `complete <id>…` Mark task(s) done\n" +
" `request-review <id>` Enter first-class review; `request-changes <id> <reason>` returns an active review to its implementer\n" +
" `block <id> [reason]` Mark blocked; `schedule <id> [reason]` parks time-delay work; `unblock <id>` to revive\n" +
" `assign <id> <profile>` Reassign\n" +
" `boards list` Show all boards\n" +
" `assignees` Known profiles + counts\n" +
" `context <id>` Full worker-context dump\n" +
" `runs <id>` Attempt history\n" +
" `log <id>` Worker log\n" +
"\n" +
"Run `/kanban <subcommand> -h` for arguments. " +
"Read-only commands are safe while an agent is running."
Curated short help a bare or help slash invocation shows instead of the full parser usage
const (
TerminalWorkerReapGraceSeconds = 120
)
const WorkerExitTrailer = "[kanban-worker-exit] rc="
WorkerExitTrailer prefixes the exit code line a worker CLI appends to its own log
const (
WorkerOutputSep = " Worker's last output: "
)
Variables ¶
var DefaultStatuses = func() map[string]bool { if err := DefaultWorkflow.Validate(); err != nil { panic(err) } out := map[string]bool{Archived: true} for _, k := range DefaultWorkflow.Keys() { out[k] = true } return out }()
Every value tasks.status can hold under the default workflow
var DefaultWorkflow = Workflow{ Columns: []Column{ {"triage", "Triage", "◇", true}, {"todo", "Todo", "◻", true}, {"scheduled", "Scheduled", "⏱", false}, {"ready", "Ready", "▶", true}, {"running", "Running", "●", false}, {"blocked", "Blocked", "⊘", true}, {"review", "Review", "◎", false}, {"done", "Done", "✓", true}, }, Manual: FrozenManual( ManualRow{"triage", []string{"todo", "ready"}}, ManualRow{"todo", []string{"triage", "scheduled", "ready"}}, ManualRow{"scheduled", []string{"triage", "todo", "ready"}}, ManualRow{"ready", []string{"triage", "todo", "scheduled", "blocked", "review", "done"}}, ManualRow{"running", []string{"triage", "todo", "scheduled", "ready", "blocked", "review", "done"}}, ManualRow{"blocked", []string{"triage", "todo", "scheduled", "ready", "done"}}, ManualRow{"review", []string{"triage", "todo", "ready", "done"}}, ManualRow{"done", []string{"triage", "todo", "ready"}}, ManualRow{Archived, []string{"triage", "todo", "ready"}}, ), }
Today's board in column order with its locked columns and its manual move matrix
var KanbanSpecifyMaxTokens = max(1500, utilsEnvInt("ICEBATH_KANBAN_SPECIFY_MAX_TOKENS", 6000))
KanbanSpecifyMaxTokens is the specifier reply budget, at least 1500
var ParseSlash func(tokens []string) SlashParse
Parses slash tokens with the kanban CLI parser shown as /kanban, assigned in cmd/icebath wiring
var RecoveryDelaysSeconds = []float64{15.0, 45.0, 90.0}
Backoff seconds before each recovery attempt, the last entry repeating
var SeverityOrder = []string{"warning", "error", "critical"}
SeverityOrder lists diagnostic severities from least to most urgent
var ValidBlockKinds = map[string]bool{"dependency": true, "needs_input": true, "capability": true, "transient": true}
Reasons a task can be blocked
var ValidInitialStatuses = map[string]bool{"running": true, "blocked": true}
Statuses a task may be created in besides the computed default
var ValidSortOrders = map[string]string{
"created": "created_at ASC, id ASC",
"created-desc": "created_at DESC, id DESC",
"priority": "priority DESC, created_at ASC",
"priority-desc": "priority ASC, created_at ASC",
"status": "status ASC, created_at ASC",
"assignee": "assignee ASC, created_at ASC",
"title": "title ASC, id ASC",
"updated": "started_at DESC NULLS LAST, created_at DESC",
"completed-desc": "completed_at DESC NULLS LAST, id DESC",
}
Sort keys accepted by list_tasks mapped to their ORDER BY clauses
var ValidStatuses = DefaultStatuses
Every value tasks.status can hold
var ValidWorkspaceKinds = map[string]bool{"scratch": true, "worktree": true, "dir": true}
Workspace kinds a task may carry
Functions ¶
func AddComment ¶
func AddComment(ctx context.Context, conn state.SQLiteConn, taskID, author, body string) (int64, error)
Adds a stripped comment with a commented event and returns its id
func AddNotifySub ¶
func AddNotifySub(ctx context.Context, conn state.SQLiteConn, o NotifySubOptions) error
Registers a gateway source wanting terminal state notifications, idempotent on task, platform, chat and thread
func AdmissionAnswerBudget ¶
func AdmissionAnswerBudget() float64
Seconds a worker client waits for the owner's kanban.run answer, the longest board lock wait plus the margin
func AdoptWorkerPid ¶
func AdoptWorkerPid(ctx context.Context, conn state.SQLiteConn, taskID string, runID int64, pid int) (bool, error)
Worker side pid registration before the first model call, false when the run is no longer live
func AdvanceNotifyCursor ¶
func AdvanceNotifyCursor(ctx context.Context, conn state.SQLiteConn, taskID, platform, chatID string, threadID *string, newCursor int64) error
Sets the subscription cursor after delivery
func AppendEvent ¶
func AppendEvent(ctx context.Context, conn state.SQLiteConn, taskID, kind string, body any, runID *int64) error
Appends one task event with its JSON payload, bound to the run when given
func AppendTaskEvent ¶
func AppendTaskEvent(ctx context.Context, conn state.SQLiteConn, taskID, kind string, body any, runID *int64) error
Inserts an event row inside the caller transaction, a nil run id marking it task scoped
func ArchiveTask ¶
func ArchiveTask(ctx context.Context, conn state.SQLiteConn, taskID string, signalFn SignalFunc) (bool, error)
Archives a task, a running task having its host local worker terminated after the commit
func AssertNotDelegatedChildMutation ¶
PermissionError when a delegate_task child context would mutate the kanban database at path
func AssignTask ¶
func AssignTask(ctx context.Context, conn state.SQLiteConn, taskID string, profile *string) (bool, error)
Assigns or reassigns a task, refusing one running under a claim, and fires the updated observer after commit
func AttachmentsRoot ¶
Per board attachments root, ICEBATH_KANBAN_ATTACHMENTS_ROOT winning
func BlockTask ¶
func BlockTask(ctx context.Context, conn state.SQLiteConn, taskID, reason string, expectedRunID *int64) error
Blocks a running or ready task with the worker reason under the run it owns
func BlockTaskWithKind ¶
func BlockTaskWithKind(ctx context.Context, conn state.SQLiteConn, taskID string, reason, kind *string, expectedRunID *int64) (bool, error)
Moves running or ready to blocked, todo or triage by kind, classifying an untyped breaker block in place
func BoardDir ¶
Board directory under boards root, metadata only for default whose database stays at the root
func BoardExists ¶
Reports whether the board has a board.json on disk, default always existing
func BoardMetadataPath ¶
board.json path holding display metadata, the directory slug being the identity
func BoardStats ¶
Per status and per assignee counts with the oldest ready age
func BoardsRoot ¶
func BoardsRoot() string
Parent of the additional named boards under the kanban root
func BuildRecoveryNudge ¶
Synthetic user turn telling the worker to continue the same session and end with a terminal kanban call
func BuildWorkerContext ¶
Everything a worker reads about its task as capped markdown sections
func CheckDispatcherPresence ¶
func CheckDispatcherPresence(ctx context.Context, icebathHome string) (running bool, message string)
Whether a gateway will dispatch ready work for the home, with guidance when none will, failing open
func CheckRespawnGuard ¶
func CheckRespawnGuard(ctx context.Context, conn state.SQLiteConn, taskID, lane string) (*string, error)
Reason a ready or review task must not be respawned now, nil when it may be
func ClearCurrentBoard ¶
Removes the current file so the active board reverts to default
func CompleteTask ¶
func CompleteTask(ctx context.Context, conn state.SQLiteConn, taskID string, o CompleteTaskOptions) (bool, error)
Moves a task to done with its result, refusing a live claim without proof of ownership and gating evidence first
func ConfigFromKanbanConfig ¶
Diagnostics config from the kanban section, the threshold following kanban.failure_limit unless overridden
func ConfigFromRuntimeConfig ¶
Diagnostics config from the full runtime config, carrying kanban, auxiliary and model for the triage rules
func ConfiguredMaxInProgress ¶
Positive kanban.max_in_progress from config, nil when unset or invalid
func Connect ¶
Opens and on first use per path initializes the kanban database, read only for a fenced descendant
func ConnectClosing ¶
func ConnectClosing(ctx context.Context, dbPath string, board *string, fn func(conn state.SQLiteConn) error) error
Runs fn on a fresh connection that is always closed afterwards
func CountNotifySubs ¶
func CountNotifySubs(ctx context.Context, dbPath string, board *string, scope NotifyOwnerScope, platform, chatID, threadID *string) (int64, error)
Counts subscription rows over a read only connection, a missing file or table counting as zero
func CountRunningTasks ¶
func CountRunningTasks(ctx context.Context, conn state.SQLiteConn) int
Number of running tasks, zero on any error
func CountRunningTasksOtherBoards ¶
Running tasks across every board except the given one, matched by resolved database path
func CreateBoard ¶
Creates board dir, database and metadata, an existing board returning its metadata and losing any archive tombstone
func CreateTask ¶
func CreateTask(ctx context.Context, conn state.SQLiteConn, o CreateTaskOptions) (string, error)
Creates a task under its parents inside one write transaction and returns its id, or the live task holding the idempotency key
func CredentialFailureFlags ¶
CredentialFailureFlags reads the exit code credential flags from an error raised before any turn ran
func DecomposeListTriageIDs ¶
Task ids in the triage column, narrowed by tenant, at most a thousand
func DecomposeTriageTask ¶
func DecomposeTriageTask(ctx context.Context, conn state.SQLiteConn, taskID string, rootAssignee *string, children []any, author *string, autoPromote bool) ([]string, error)
Fans a triage task out into children and parks the root in todo until every child is done, nil when it cannot decompose
func DeleteArchivedTask ¶
Hard deletes an archived task with its related rows, anything else refused
func DeriveDefaultMaxInProgress ¶
Memory derived default for kanban.max_in_progress, nil when total memory is unknown
func DescribeSuppression ¶
func DescribeSuppression(results []*DispatchResult) string
One line naming why the ticks held ready work back, empty when nothing was held
func DetectStaleRunning ¶
func DetectStaleRunning(ctx context.Context, conn state.SQLiteConn, staleTimeoutSeconds int64, signalFn SignalFunc) ([]string, error)
Reclaims running tasks with no heartbeat progress past the timeout, zero disabling the check
func DiagnosticsDefaultConfig ¶
DiagnosticsDefaultConfig is the rule configuration every computation starts from
func DispatchProfileAllowlistSummary ¶
Human readable kanban.dispatch_profiles resolution of this home for diagnostics
func EditTask ¶
func EditTask(ctx context.Context, conn state.SQLiteConn, taskID string, o EditTaskOptions) (bool, error)
Edits task fields, a result backfill allowed only on a done task, and notifies the changed fields
func EnforceMaxRuntime ¶
func EnforceMaxRuntime(ctx context.Context, conn state.SQLiteConn, signalFn SignalFunc) ([]string, error)
Terminates host local workers past their per task max runtime and books each as timed_out
func ExportBoard ¶
func ExportBoard(ctx context.Context, board *string, outputPath string, includeAttachments, includeLogs bool) (*pyjson.Object, error)
Exports a board to a tar.gz with a scrubbed database snapshot, optional attachments and logs, returning a summary
func GCEvents ¶
Prunes old events of done and archived tasks, decomposition identity kept, returning the count deleted
func GCWorkerLogs ¶
Deletes worker log files older than the window on one board, returning the count
func GetCurrentBoard ¶
Active slug from the context override, ICEBATH_KANBAN_BOARD, the current file while that board exists, else default
func GoalRunStatus ¶
func GoalRunStatus(ctx context.Context, conn state.SQLiteConn, taskID string, expectedRunID *int64) (*string, error)
Lifecycle status as one run sees it, superseded once another run owns the task
func HasSpawnableReady ¶
True when a ready assigned unclaimed task maps to a real profile
func HasSpawnableReview ¶
True when a review assigned unclaimed task maps to a real profile
func HeartbeatClaim ¶
func HeartbeatClaim(ctx context.Context, conn state.SQLiteConn, taskID string, ttlSeconds *int64, claimer *string) (bool, error)
Extends a running claim the caller still owns, mirroring the expiry onto its run
func HeartbeatCurrentWorkerFromEnv ¶
Extends the claim and heartbeat of the current worker at most once a minute, true when both writes land
func HeartbeatWorker ¶
func HeartbeatWorker(ctx context.Context, conn state.SQLiteConn, taskID string, note *string, expectedRunID *int64) (bool, error)
Records a heartbeat event and touches last_heartbeat_at, false when the task is not running under that run
func HeartbeatWorkerNote ¶
func HeartbeatWorkerNote(ctx context.Context, conn state.SQLiteConn, taskID string, note any, expectedRunID *int64) (bool, error)
Heartbeat whose note is any JSON value, stored on the event only when truthy
func ImportBoard ¶
func ImportBoard(ctx context.Context, archivePath string, slug *string, activate bool) (*pyjson.Object, error)
Imports an archive as a new board, the slug suffixed when taken, returning a summary
func InitDB ¶
Creates the schema if missing and always reruns the migration pass, returning the path used
func InjectNewCommentsFromEnv ¶
Steers operator comments added since the last poll into the running agent, true when a note was injected
func KanbanCommand ¶
Entry point of icebath kanban, returning a shell style exit code
func KanbanDBPath ¶
kanban.db path pinned by ICEBATH_KANBAN_DB, the root kanban.db for default, else the board dir
func KanbanHome ¶
func KanbanHome() string
ICEBATH_KANBAN_HOME else the default root, shared across profiles so dispatcher and workers meet
func KanbanTaskID ¶
func KanbanTaskID() string
Dispatcher set worker task id stripped once, empty when this process is not a worker run
func KanbanTurnRecoveryEnabled ¶
True when a worker task id is carried and the attempt budget is above zero
func KnownAssignees ¶
Every on disk profile or task assignee with its presence and status counts
func LatestBlackboard ¶
func LatestBlackboard(ctx context.Context, conn state.SQLiteConn, rootID string) (*pyjson.Object, error)
Merged structured blackboard comments of a root, later keys winning and _authors naming each winner
func LatestSummary ¶
Newest non empty run summary of a task, nil when none
func LinkTasks ¶
func LinkTasks(ctx context.Context, conn state.SQLiteConn, parentID, childID string, expectedChildRunID *int64) (bool, error)
Links parent to child, reporting whether the edge gated a ready child back to todo
func ListBoards ¶
Metadata for every board, default first then board dirs holding board.json sorted case insensitively
func ListNotifySubs ¶
func ListNotifySubs(ctx context.Context, conn state.SQLiteConn, taskID *string, scope NotifyOwnerScope) ([]*pyjson.Object, error)
Subscriptions as ordered row objects, optionally of one task and restricted to owner profiles
func ListProfilesOnDisk ¶
func ListProfilesOnDisk() []string
Profiles with a config.yaml plus the implicit default, sorted
func LossyText ¶
Bytes decoded as UTF-8 with U+FFFD for undecodable sequences, anything else passed through
func MaxRecoveryAttempts ¶
func MaxRecoveryAttempts() int
Attempt budget from ICEBATH_KANBAN_TURN_RECOVERY clamped to zero through ten, the default when unset or unparseable
func NormalizeBoardSlug ¶
NormalizeBoardSlug exports normalizeBoardSlug
func NormalizeReasoningEffort ¶
Valid reasoning effort or none case insensitively, nil for empty, a ValueError for anything else
func NotifyTaskUpdated ¶
func NotifyTaskUpdated(ctx context.Context, conn state.SQLiteConn, taskID string, changedFields []string, board string)
Fires on_kanban_task_updated after a non lifecycle mutation commits, naming the changed fields only
func PinFirstBoardResolution ¶
Context resolving board paths env pin first, for machine flows that enumerate every board
func PostBlackboardUpdate ¶
func PostBlackboardUpdate(ctx context.Context, conn state.SQLiteConn, rootID, author, key string, value any) (int64, error)
Appends one structured key and value update to a swarm root blackboard
func ProcessFingerprint ¶
Start fingerprint of a live pid, nil when it cannot be read
func PromoteTask ¶
func PromoteTask(ctx context.Context, conn state.SQLiteConn, taskID, actor string, reason *string, dryRun bool) (bool, string, error)
Operator promotion of todo or blocked to ready with an audit event, refused while a parent is unfinished
func PurgeStaleDoneNotifySubs ¶
func PurgeStaleDoneNotifySubs(ctx context.Context, conn state.SQLiteConn, maxAgeDays int64) (int64, error)
Deletes subscriptions of tasks settled in done or blocked for longer than the window, zero or less disabling the sweep
func ReadBoardMetadata ¶
board.json merged over defaults plus slug and db_path, a missing or malformed file yielding the synthesized entry
func ReadWorkerLog ¶
func ReadWorkerLog(ctx context.Context, taskID string, tailBytes *int64, board *string) (*string, error)
Worker log text or its last tailBytes, nil when the file is missing or unreadable
func ReapTerminalWorkers ¶
func ReapTerminalWorkers(ctx context.Context, conn state.SQLiteConn, signalFn SignalFunc) ([]string, error)
Ends host local workers that outlived their closed run, returning the task ids whose worker was terminated
func ReapWorkerZombies ¶
func ReapWorkerZombies() []int
Records every spawned worker that has exited since the last call and returns their pids
func ReassignTask ¶
func ReassignTask(ctx context.Context, conn state.SQLiteConn, taskID string, profile *string, reclaimFirst bool, reason *string) (bool, error)
Reassigns a task, releasing a running claim first when asked, false when the task stays claimed
func ReclaimTask ¶
func ReclaimTask(ctx context.Context, conn state.SQLiteConn, taskID string, reason *string, signalFn SignalFunc) (bool, error)
Operator reclaim regardless of TTL restoring the source phase and resetting the failure counter, false when not running
func RecomputeReady ¶
Promotes todo and non sticky blocked tasks whose parents are all done or archived and returns the count
func ReconcileOrphanedRunning ¶
Requeues running cards with broken claim bookkeeping and no live local worker, returning their ids
func RecordBudgetExhausted ¶
func RecordBudgetExhausted(ctx context.Context, kanbanTask string, apiCallCount, maxIterations int) error
Records the timed out outcome of a kanban worker whose iteration budget ran out
func RecordNotifyPing ¶
func RecordNotifyPing(ctx context.Context, conn state.SQLiteConn, taskID, platform, chatID string, threadID *string, eventID int64) error
Checkpoints a sent ping independently of the retryable wake cursor
func RecoverFailedKanbanTurns ¶
func RecoverFailedKanbanTurns(ctx context.Context, runTurn func(nudge string), lastResult func() map[string]any, emit func(string)) (int, error)
Retries a failed worker turn in place under the environment pinned carrier, returning attempts made
func RecoverFailedKanbanTurnsWith ¶
func RecoverFailedKanbanTurnsWith(ctx context.Context, turnFn func(nudge string), getResult func() any, o RecoveryOptions) (int, error)
Retries an authorised worker turn in place with proof before and after each backoff, returning attempts made
func RecoveryDelaySeconds ¶
Backoff seconds before the one based recovery attempt
func RegisterCurrentWorkerFromEnv ¶
Records this worker's pid on its run, false only when the board says the run was already reclaimed
func ReleaseStaleClaims ¶
func ReleaseStaleClaims(ctx context.Context, conn state.SQLiteConn, signalFn SignalFunc, failureLimit *int64) (int, error)
Reclaims running tasks whose claim expired, extending live host local workers and booking every release as a failure
func RemoveBoard ¶
Archives a board under boards/_archived with a tombstone at its slug, or deletes it, default never removable
func RemoveNotifySub ¶
func RemoveNotifySub(ctx context.Context, conn state.SQLiteConn, taskID, platform, chatID string, threadID *string) (bool, error)
Deletes one subscription row, true when a row existed
func ReopenReviewTask ¶
Moves review back to ready or todo restoring the implementer from the review request
func ReopenTask ¶
Takes a done or archived task back to ready, or todo while a parent is still open, with its status event; every descendant that went on from the finished work returns to todo and the workers running them are stopped once the change is committed
func RequestChanges ¶
func RequestChanges(ctx context.Context, conn state.SQLiteConn, taskID, reason string, expectedRunID *int64) (bool, string, error)
Closes an active reviewer run and hands the task back to the implementer of the latest review request
func RequestReview ¶
func RequestReview(ctx context.Context, conn state.SQLiteConn, taskID string, o RequestReviewOptions) (bool, string, error)
Moves running or ready to review with implementer and reviewer provenance, staged artifacts rolled back on failure
func RequireSlug ¶
Normalized board slug, a ValueError for an empty or invalid one
func ResolveMaxInProgress ¶
Effective global concurrency cap, the configured value else the memory derived default
func ResolveWorkspace ¶
Resolves and creates the workspace directory of a task by its kind
func RetryStatusForRun ¶
func RetryStatusForRun(ctx context.Context, conn state.SQLiteConn, taskID string, runID *int64) (string, error)
Retry status the dispatcher reads for a run, review for a reviewer attempt
func ReviewDispatchEnabled ¶
Whether review tasks dispatch automatically, true unless kanban.review_dispatch is falsy
func RewindNotifyCursor ¶
func RewindNotifyCursor(ctx context.Context, conn state.SQLiteConn, taskID, platform, chatID string, threadID *string, claimedCursor, oldCursor int64) (bool, error)
Undoes a claim after a delivery failure unless a later notifier already advanced the row
func RotateWorkerLog ¶
Rotates a worker log past max bytes into numbered generations up to the backup count, ignoring OS errors
func RunDaemon ¶
func RunDaemon(ctx context.Context, o DaemonOptions)
Dispatcher loop ticking every interval until the stop channel closes or SIGINT or SIGTERM arrives
func RunSlash ¶
Runs the text after /kanban through the kanban CLI and returns its captured output, shared by the CLI and the gateway
func ScheduleTask ¶
func ScheduleTask(ctx context.Context, conn state.SQLiteConn, taskID string, reason *string, expectedRunID *int64) (bool, error)
Parks a task in scheduled until an unblock re gates it
func ScopedCurrentBoard ¶
Context pinning the active board for calls made with it only
func SetBranchName ¶
Persists the worktree branch name of a task
func SetCurrentBoard ¶
Persists slug as the active board and returns the file written, leaving existence checks to callers
func SetModelOverride ¶
func SetModelOverride(ctx context.Context, conn state.SQLiteConn, taskID string, model, provider *string) (bool, error)
Sets the per task model and provider override, an empty model clearing both
func SetWorkspacePath ¶
Persists the resolved workspace path of a task
func ShouldRecoverTurn ¶
True when a settled worker turn is a retryable failure inside the budget with no wall, cancel or settlement
func SpecifyListTriageIDs ¶
Task ids in the triage column, narrowed by tenant
func SpecifyTriageTask ¶
func SpecifyTriageTask(ctx context.Context, conn state.SQLiteConn, taskID string, title, body, assignee, author *string) (bool, error)
Updates title, body and assignee when given and moves triage to todo in one transaction
func StoreAttachmentBytes ¶
func StoreAttachmentBytes(ctx context.Context, conn state.SQLiteConn, taskID, filename string, data []byte, o StoreAttachmentOptions) (int64, error)
Writes an attachment blob under the task attachments directory and records its row, removing the blob when the row fails
func TaskAttachmentsDir ¶
Per task attachment directory under the attachments root
func TaskGoalMaxTurns ¶
Goal turn budget stored on the task, nil when unset
func TaskGraphContext ¶
func TaskGraphContext(ctx context.Context, conn state.SQLiteConn, taskID string) (*pyjson.Object, error)
Direct parents and children with title and status for one task
func TaskGraphContexts ¶
func TaskGraphContexts(ctx context.Context, conn state.SQLiteConn, taskIDs []string) (*pyjson.Object, error)
Direct parents and children with title and status for each requested task in request order
func TriageAuxStatus ¶
Whether the triage aux paths look configured, nil when no config context is present
func UnblockTask ¶
Moves blocked or scheduled back to its resumable phase after re gating on parents, closing any leaked run first
func UnlinkTasks ¶
func UnlinkTasks(ctx context.Context, conn state.SQLiteConn, parentID, childID string) (bool, error)
Removes a parent to child edge and promotes children it no longer gates
func WorkerAlive ¶
True when the pid is live and still the worker fingerprinted at spawn
func WorkerClaimIsLive ¶
func WorkerClaimIsLive(ctx context.Context, proof ClaimProof) (bool, error)
True when this process still owns the pinned live run with an unexpired task and run lease
func WorkerLogPath ¶
Worker log path of a task on a board, which may not exist yet
func WorkerLogRotationConfig ¶
Rotation size and backup count for worker logs from the kanban config, defaults when unset
func WorkerLogsDir ¶
Per board worker log directory
func WorkerTerminalTimeoutEnv ¶
Terminal timeout a bound worker exports for its run budget, nil when the current one stands
func WorkspacesRoot ¶
Per board scratch workspace root, ICEBATH_KANBAN_WORKSPACES_ROOT winning
func WriteBoardMetadata ¶
func WriteBoardMetadata(ctx context.Context, board *string, u BoardMetadataUpdate) (*pyjson.Object, error)
Creates or updates board.json preserving unmentioned fields, created_at set on first write
Types ¶
type ArtifactPreservationError ¶
type ArtifactPreservationError struct{ Msg string }
Declared scratch deliverable that could not be preserved, unwrapping to RuntimeError
func (*ArtifactPreservationError) Error ¶
func (e *ArtifactPreservationError) Error() string
func (*ArtifactPreservationError) Unwrap ¶
func (e *ArtifactPreservationError) Unwrap() error
type Attachment ¶
type Attachment struct {
ID int64
TaskID string
Filename string
StoredPath string
ContentType *string
Size int64
UploadedBy *string
CreatedAt int64
}
One stored task attachment
func AttachmentFromRow ¶
func AttachmentFromRow(r *Row) *Attachment
Attachment from a task_attachments row
func DeleteAttachment ¶
func DeleteAttachment(ctx context.Context, conn state.SQLiteConn, attachmentID int64) (*Attachment, error)
Deletes the attachment row and its blob once no other row references it, nil when no row matched
func GetAttachment ¶
func GetAttachment(ctx context.Context, conn state.SQLiteConn, attachmentID int64) (*Attachment, error)
Attachment by id, nil when no row matches
func ListAttachments ¶
func ListAttachments(ctx context.Context, conn state.SQLiteConn, taskID string) ([]*Attachment, error)
Attachments of a task oldest first
type AttachmentTooLarge ¶
type AttachmentTooLarge struct{ Msg string }
Attachment over the size cap, unwrapping to ValueError so generic handlers still catch it
func (*AttachmentTooLarge) Error ¶
func (e *AttachmentTooLarge) Error() string
func (*AttachmentTooLarge) Unwrap ¶
func (e *AttachmentTooLarge) Unwrap() error
type BoardCreateOptions ¶
type BoardCreateOptions struct {
Name *string
Description *string
Icon *string
Color *string
DefaultWorkdir *string
ProjectID *string
}
Board fields a new board starts with
type BoardMetadataUpdate ¶
type BoardMetadataUpdate struct {
Name *string
Description *string
Icon *string
Color *string
Archived *bool
DefaultWorkdir *string
ProjectID *string
}
Optional board.json fields a write updates, nil leaving a field unchanged
type CappedTask ¶
CappedTask is one task deferred because its assignee was at the per profile running cap
type ClaimProof ¶
type ClaimProof struct {
TaskID *string
DBPath *string
RunID *string
ClaimLock *string
SkipPid bool
}
Explicit carrier a managed worker passes in place of the environment pins
type Column ¶
One board column, the stable key stored in tasks.status with its display label, CLI glyph and drag flag
type Comment ¶
One task comment
func ListComments ¶
Comments of a task oldest first
func ListCommentsAfter ¶
func ListCommentsAfter(ctx context.Context, conn state.SQLiteConn, taskID string, afterID int64) ([]*Comment, error)
Comments with a rowid above the cursor in rowid order so a same second burst is never skipped
type CompleteTaskOptions ¶
type CompleteTaskOptions struct {
Result *string
Summary *string
Metadata *pyjson.Object
CreatedCards []string
ExpectedRunID *int64
SkipLifecycleHook bool
Force bool
// contains filtered or unexported fields
}
CompleteTaskOptions holds the keyword arguments of a completion
type CrashSweepOutcome ¶
CrashSweepOutcome is what one crash sweep reclaimed, auto blocked and requeued after a quota wall
type CreateTaskOptions ¶
type CreateTaskOptions struct {
Title string
Body *string
Assignee *string
CreatedBy *string
WorkspaceKind *string
WorkspacePath *string
BranchName *string
Tenant *string
Priority int64
Parents []string
Triage bool
IdempotencyKey *string
MaxRuntimeSeconds *int64
Skills []string
MaxRetries *int64
ModelOverride *string
ProviderOverride *string
ReasoningEffort *string
GoalMode bool
GoalMaxTurns *int64
InitialStatus string
SessionID *string
Board *string
ProjectID *string
ProjectSourceTaskID *string
CreatorTaskID *string
CompletionContract *string
// contains filtered or unexported fields
}
Keyword arguments of task creation, nil pointers and nil slices standing for None
type DaemonOptions ¶
type DaemonOptions struct {
Interval float64
MaxSpawn *int
FailureLimit int64
Stop <-chan struct{}
OnTick func(*DispatchResult)
Stderr io.Writer
}
DaemonOptions are the keyword arguments of the long lived dispatcher loop
type DecomposeOutcome ¶
type DecomposeOutcome struct {
TaskID string
OK bool
Reason string
Fanout bool
ChildIDs []string
NewTitle *string
}
DecomposeOutcome is the result of decomposing one triage task
func DecomposeTask ¶
func DecomposeTask(ctx context.Context, taskID string, author *string, timeout *int64) (*DecomposeOutcome, error)
Decomposes a triage task into a routed child graph, expected failures as not ok
type Diagnostic ¶
type Diagnostic struct {
Kind string
Severity string
Title string
Detail string
Actions []*DiagnosticAction
FirstSeenAt int64
LastSeenAt int64
Count int64
RunID *int64
Data *pyjson.Object
}
Diagnostic is one active distress signal on a task
func ComputeTaskDiagnostics ¶
func ComputeTaskDiagnostics(task any, events, runs []any, now *int64, config map[string]any, graph any) []*Diagnostic
Every rule for one task ordered critical first, ties broken by the most recent last seen
func (*Diagnostic) ToDict ¶
func (d *Diagnostic) ToDict() *pyjson.Object
Ordered mapping of the diagnostic fields with every action expanded
type DiagnosticAction ¶
DiagnosticAction is one recovery action the CLI renders as a hint
func (*DiagnosticAction) ToDict ¶
func (a *DiagnosticAction) ToDict() *pyjson.Object
Ordered mapping of the action fields
type DispatchOptions ¶
type DispatchOptions struct {
SpawnFn SpawnFunc
TTLSeconds *int64
DryRun bool
MaxSpawn *int
MaxInProgress *int
FailureLimit int64
StaleTimeoutSeconds int64
Board *string
DefaultAssignee *string
MaxInProgressPerProfile *int
ReconcileOrphans bool
}
DispatchOptions are the keyword arguments of one dispatcher tick
func DefaultDispatchOptions ¶
func DefaultDispatchOptions() DispatchOptions
Dispatch options at the dispatch_once defaults
type DispatchResult ¶
type DispatchResult struct {
Reclaimed int
Promoted int
ReconciledOrphans []string
ReapedTerminalWorkers []string
Spawned []SpawnedTask
SkippedUnassigned []string
AutoAssignedDefault []string
SkippedNonspawnable []string
SkippedPerProfileCapped []CappedTask
Crashed []string
AutoBlocked []string
TimedOut []string
Stale []string
RespawnGuarded []GuardedTask
RateLimited []string
SkippedLocked bool
MemoryPressure *string
}
DispatchResult is the outcome of a single dispatch pass
func DispatchOnce ¶
func DispatchOnce(ctx context.Context, conn state.SQLiteConn, o DispatchOptions) (*DispatchResult, error)
One dispatcher tick under the board single writer lock, the loser returning a skipped locked result
func (*DispatchResult) Activity ¶
func (r *DispatchResult) Activity(field string) bool
Python truthiness of the result field with that dataclass name, false for an unknown name
type EditTaskOptions ¶
type EditTaskOptions struct {
Title *string
Body *string
Priority *int64
Result *string
Summary *string
Metadata *pyjson.Object
Board *string
}
EditTaskOptions holds the keyword arguments of a task edit
type EmptyCompletionError ¶
type EmptyCompletionError struct{ TaskID string }
Completion refused for a task with no result or summary evidence, unwrapping to ValueError
func (*EmptyCompletionError) Error ¶
func (e *EmptyCompletionError) Error() string
func (*EmptyCompletionError) Unwrap ¶
func (e *EmptyCompletionError) Unwrap() error
type Event ¶
One task event
func ClaimUnseenEventsForSub ¶
func ClaimUnseenEventsForSub(ctx context.Context, conn state.SQLiteConn, taskID, platform, chatID string, threadID *string, kinds []string) (int64, int64, []*Event, error)
Atomically claims unseen events for one subscription, advancing its cursor under the writer lock
func EventFromRow ¶
Event from a task_events row, run_id tolerated absent
func ListEvents ¶
Events of a task oldest first
type FileNotFoundError ¶
type FileNotFoundError struct{ Msg string }
FileNotFoundError is the Python FileNotFoundError a missing board database or archive raises
func (*FileNotFoundError) Error ¶
func (e *FileNotFoundError) Error() string
type GatewayDispatchProbeSet ¶
type GatewayDispatchProbeSet struct {
SampleMemory func() *pyjson.Object
ClassifyPressure func(availableKiB, totalKiB any) string
Liveness func(ctx context.Context, profileDir string) (pid any, probeError bool)
}
GatewayDispatchProbeSet is the gateway memory sampling and pressure classification the dispatcher reads
var GatewayDispatchProbes GatewayDispatchProbeSet
Gateway memory and liveness probes, installed by pkg/gateway at init
type GatewayStatusProbeSet ¶
type GatewayStatusProbeSet struct {
PidExists func(pid int) bool
ProcessStartTime func(pid int) any
StartTimesAgree func(current any, recorded ...any) (bool, error)
InstantiationEpoch func() string
}
GatewayStatusProbeSet holds the gateway status process facts worker identity checks consult
var GatewayStatusProbes GatewayStatusProbeSet
Gateway status process facts, installed by pkg/gateway at init
type GuardedTask ¶
type GuardedTask struct{ TaskID, Reason string }
GuardedTask is one task id the respawn guard skipped with its reason
type HallucinatedCardsError ¶
Completion refused for created cards that do not exist or this worker did not create, unwrapping to ValueError
func (*HallucinatedCardsError) Error ¶
func (e *HallucinatedCardsError) Error() string
func (*HallucinatedCardsError) Unwrap ¶
func (e *HallucinatedCardsError) Unwrap() error
type InvalidationResult ¶
type InvalidationResult struct {
Invalidated []*pyjson.Object
Terminations []WorkerTermination
}
InvalidationResult lists every demoted descendant and the workers to terminate post commit
func InvalidateDescendantsForParentReopen ¶
func InvalidateDescendantsForParentReopen(ctx context.Context, conn state.SQLiteConn, taskID, author string) (*InvalidationResult, error)
Demotes every ready, review, running or done descendant of a reopened ancestor to todo with its audit trail
type KanbanDBCorruptError ¶
Existing kanban database that failed integrity checks, carrying the path and the backup made first
func (*KanbanDBCorruptError) Error ¶
func (e *KanbanDBCorruptError) Error() string
type ListTasksOptions ¶
type ListTasksOptions struct {
Assignee *string
Status *string
Tenant *string
SessionID *string
IncludeArchived bool
Limit int64
OrderBy *string
WorkflowTemplateID *string
CurrentStepKey *string
}
Filters of a task listing, nil meaning unfiltered and a zero limit meaning unbounded
type LiveClaimError ¶
type LiveClaimError struct{ TaskID string }
Completion refused while a live worker claim protects the run, unwrapping to ValueError
func (*LiveClaimError) Error ¶
func (e *LiveClaimError) Error() string
func (*LiveClaimError) Unwrap ¶
func (e *LiveClaimError) Unwrap() error
type ManualMoves ¶
type ManualMoves struct {
// contains filtered or unexported fields
}
Manual move allow list keyed by source column in insertion order
func FrozenManual ¶
func FrozenManual(rows ...ManualRow) ManualMoves
Frozen move table where a repeated source keeps its first position and its last destinations
type NotifyOwnerScope ¶
NotifyOwnerScope restricts subscriptions to notifier profile owners when scoped
type NotifySubOptions ¶
type NotifySubOptions struct {
TaskID string
Platform string
ChatID string
ThreadID *string
UserID *string
UserIDAlt *string
ChatType *string
NotifierProfile *string
DeliveryMode *string
DeliveryMetadata any
}
NotifySubOptions holds the keyword arguments of a notification subscription
type ParentStatus ¶
Open parent of a task with its status
func UnsatisfiedParents ¶
func UnsatisfiedParents(ctx context.Context, conn state.SQLiteConn, taskID string) ([]ParentStatus, error)
Every direct parent still gating the task with its status in id order
type PermissionError ¶
type PermissionError struct{ Msg string }
Python PermissionError raised when a fenced context touches durable kanban state
func (*PermissionError) Error ¶
func (e *PermissionError) Error() string
type PreparedAcceptance ¶
Snapshot paired with the receipt collected for it
type RecordFailureOptions ¶
type RecordFailureOptions struct {
Outcome string
FailureLimit *int64
ForceTrip bool
ReleaseClaim bool
EndRun bool
EventPayloadExtra *pyjson.Object
Infrastructure bool
}
RecordFailureOptions holds the keyword arguments of one non success outcome record
type RecoveryOptions ¶
type RecoveryOptions struct {
Sleep func(seconds float64)
Emit func(string)
ClaimCheck func() (bool, error)
TaskID *string
}
Seams and explicit carrier of the recovery loop, zero value sleeping on the wall clock with the default proof
type RepairResult ¶
type RepairResult struct {
Status string
DBPath string
Messages []string
PostRepairMessages []string
BackupPath string
Reindexed []string
}
Outcome of RepairDB with status ok, repaired, corrupt or missing
type RequestReviewOptions ¶
type RequestReviewOptions struct {
Summary *string
Metadata *pyjson.Object
Reviewer *string
ExpectedRunID *int64
Force bool
}
RequestReviewOptions holds the keyword arguments of a review handoff
type Row ¶
One result row with its column names, the sqlite3.Row a board connection yields
type Run ¶
type Run struct {
ID int64
TaskID string
Profile *string
StepKey *string
Status string
ClaimLock *string
ClaimExpires *int64
WorkerPID *int64
MaxRuntimeSeconds *int64
LastHeartbeatAt *int64
StartedAt int64
EndedAt *int64
Outcome *string
Summary *string
Metadata any
Error *string
}
One attempt at a task, opened on claim and closed on complete, block, crash, timeout or reclaim
type RuntimeError ¶
type RuntimeError struct{ Msg string }
Python RuntimeError raised by misuse of the write transaction helper
func (*RuntimeError) Error ¶
func (e *RuntimeError) Error() string
type SignalFunc ¶
SignalFunc delivers sig to pid the way os.kill does, an error standing for the OSError reclaim absorbs
type SlashParse ¶
type SlashParse struct {
Namespace map[string]any
Parsed bool
Out, Err string
ArgError string
Usage string
Failure error
}
What the CLI parser made of slash tokens, parser text renamed to /kanban whenever no action parsed
type SpawnFunc ¶
type SpawnFunc func(ctx context.Context, task *Task, workspace string, board *string) (*int64, error)
SpawnFunc starts a worker for a claimed task in its workspace and returns its pid, nil when none is known
type SpawnedTask ¶
type SpawnedTask struct{ TaskID, Assignee, WorkspacePath string }
SpawnedTask is one task id, assignee and workspace path a dispatch tick spawned
type SpecifyOutcome ¶
SpecifyOutcome is the result of specifying one triage task
func SpecifyTask ¶
func SpecifyTask(ctx context.Context, taskID string, author *string, timeout *int64) (*SpecifyOutcome, error)
Specifies one triage task through the aux model and promotes it to the backlog, expected failures as not ok
type StoreAttachmentOptions ¶
type StoreAttachmentOptions struct {
ContentType *string
UploadedBy *string
Board *string
MaxBytes *int64
// contains filtered or unexported fields
}
Options of an attachment write, a nil cap meaning the package default
type SwarmCreated ¶
type SwarmCreated struct {
RootID string
WorkerIDs []string
VerifierID string
SynthesizerID string
}
SwarmCreated holds the ids a swarm creation produced
func CreateSwarm ¶
func CreateSwarm(ctx context.Context, conn state.SQLiteConn, o SwarmOptions) (*SwarmCreated, error)
Atomically creates a dispatchable swarm graph, completing its planning root after commit
func (*SwarmCreated) AsDict ¶
func (s *SwarmCreated) AsDict() *pyjson.Object
Ordered mapping of the created ids
type SwarmOptions ¶
type SwarmOptions struct {
Goal string
Workers []SwarmWorkerSpec
VerifierAssignee string
SynthesizerAssignee string
RootTitle *string
VerifierTitle string
SynthesizerTitle string
Tenant *string
CreatedBy string
WorkspaceKind *string
WorkspacePath *string
Priority int64
IdempotencyKey *string
}
SwarmOptions are the keyword arguments of a swarm creation
func DefaultSwarmOptions ¶
func DefaultSwarmOptions() SwarmOptions
Swarm options at the create_swarm defaults
type SwarmWorkerSpec ¶
type SwarmWorkerSpec struct {
Profile string
Title string
Body string
Skills []string
Priority int64
MaxRuntimeSeconds *int64
}
SwarmWorkerSpec is one parallel worker card of a swarm
func ParseWorkerArg ¶
func ParseWorkerArg(raw string) (SwarmWorkerSpec, error)
Worker spec of a CLI --worker value naming profile, title and optional skills
type Task ¶
type Task struct {
ID string
Title string
Body *string
Assignee *string
Status string
Priority int64
CreatedBy *string
CreatedAt *int64
StartedAt *int64
CompletedAt *int64
WorkspaceKind string
WorkspacePath *string
ClaimLock *string
ClaimExpires *int64
Tenant *string
BranchName *string
ProjectID *string
Result *string
IdempotencyKey *string
ConsecutiveFailures int64
WorkerPID *int64
LastFailureError *string
MaxRuntimeSeconds *int64
LastHeartbeatAt *int64
CurrentRunID *int64
WorkflowTemplateID *string
CurrentStepKey *string
Skills []string
SkillsSet bool
ModelOverride *string
ProviderOverride *string
ReasoningEffort *string
MaxRetries *int64
GoalMode bool
GoalMaxTurns *int64
SessionID *string
BlockKind *string
BlockRecurrences int64
CompletionContract *string
}
One board task row
func ClaimReviewTask ¶
func ClaimReviewTask(ctx context.Context, conn state.SQLiteConn, taskID string, ttlSeconds *int64, claimer *string) (*Task, error)
Atomically moves a review task to running under a new reviewer run, demoting it when a parent reopened
func ClaimTask ¶
func ClaimTask(ctx context.Context, conn state.SQLiteConn, taskID string, ttlSeconds *int64, claimer *string) (*Task, error)
Atomically moves a ready task to running, demoting it to todo when a parent reopened, nil when the claim lost
func ListTasks ¶
func ListTasks(ctx context.Context, conn state.SQLiteConn, o ListTasksOptions) ([]*Task, error)
Tasks matching the filters, archived ones only when asked, highest priority first by default
func TaskFromRow ¶
Task from a row, epochs parsed from text stamps, skills decoded from JSON and absent columns defaulted
type TypeError ¶
type TypeError struct{ Msg string }
TypeError is the Python TypeError a malformed value raises
type ValueError ¶
type ValueError struct{ Msg string }
Python ValueError raised by board and task validation
func (*ValueError) Error ¶
func (e *ValueError) Error() string
type WorkerTermination ¶
WorkerTermination is the pid, claim lock and start time of a worker to signal after commit
Source Files
¶
- cli.go
- cli_boards.go
- cli_ns.go
- cli_ops.go
- cli_output.go
- db.go
- db_boardpath.go
- db_boards.go
- db_claim.go
- db_complete.go
- db_connect.go
- db_context.go
- db_dispatch.go
- db_dispatch_kill_unix.go
- db_dispatch_spawn.go
- db_dispatch_spawn_unix.go
- db_dispatch_sweep.go
- db_dispatch_sweep_export.go
- db_dispatch_tick.go
- db_dispatch_wait_unix.go
- db_dispatch_workers.go
- db_export.go
- db_graph.go
- db_ids.go
- db_lifecycle.go
- db_migrate.go
- db_notify.go
- db_review.go
- db_schema.go
- db_tasks.go
- db_txn.go
- db_types.go
- db_workspace.go
- decompose.go
- diagnostics.go
- log.go
- owner_recovery.go
- pr_acceptance.go
- session_kanban_export.go
- slash.go
- specify.go
- swarm.go
- task_event_export.go
- tools_attach.go
- tools_bridge.go
- tools_create.go
- tools_gate.go
- tools_handlers.go
- tools_register.go
- tools_schemas.go
- transfer.go
- turn_exit.go
- turn_recovery.go
- worker_client.go
- worker_context_export.go
- worker_log.go
- worker_registration.go
- workflow.go