diff options
Diffstat (limited to 'todo.org')
| -rw-r--r-- | todo.org | 42 |
1 files changed, 35 insertions, 7 deletions
@@ -39,14 +39,42 @@ Tags are assigned and refreshed by =task-audit=; =task-review= keeps them honest * Rulesets Open Work -** TODO [#B] Sentry workflow — build from spec :feature: +** DOING [#B] Sentry workflow — build from spec :feature: +:PROPERTIES: +:SPEC_ID: f6c51f27-d7a2-4b63-9ff9-5ba005a66dfb +:END: Build the sentry supervisor workflow from the READY-gated spec: -[[file:docs/specs/2026-07-14-sentry-workflow-spec.org][sentry workflow spec]] (DRAFT as of 2026-07-14; needs spec-review first). -Four phases: agent-lock helper + bats, sentry.org engine, companion -reconciliations (knowledge-base.md, roam-sync.sh header, inbox.org, -triage-intake.org), live trial night on rulesets. Origin: work project's -proposal, [[file:docs/design/2026-07-14-sentry-workflow-proposal.org][docs/design/2026-07-14-sentry-workflow-proposal.org]]. All nine -design decisions resolved with Craig 2026-07-14 (recorded in the spec). +[[file:docs/specs/2026-07-14-sentry-workflow-spec.org][sentry workflow spec]] (READY 2026-07-19, Craig approved after his deep read). +Origin: work project's proposal, +[[file:docs/design/2026-07-14-sentry-workflow-proposal.org][docs/design/2026-07-14-sentry-workflow-proposal.org]]. Decomposed into the four +implementation phases below; building in no-approvals + auto-flush mode. +*** TODO Phase 1 — agent-lock helper + bats +=.ai/scripts/agent-lock= (canonical =claude-templates/.ai/scripts/=): mkdir-atomic +acquire, PID/host/ISO-timestamp metadata, age-based staleness reclaim, bounded-wait +contention, heartbeat refresh, acquire/release/status subcommands. Locks under +=/run/user/<uid>/agent-locks/<name>/= with =~/.cache/agent-locks/= fallback. bats: +two concurrent acquires → one winner, release frees, stale reclaim surfaces a note, +busy → bounded wait then defer, heartbeat keeps a live lock young, runtime-dir home. +*** TODO Phase 2 — sentry.org engine +=.ai/workflows/sentry.org= (mirror synced): entry ticket (:COMMIT_AUTONOMY:), +interactive entry gates (dirty tracked tree / red suite), ff-only branch reconcile, +=sentry/YYYY-MM-DD-<host>= branch mechanics, the ten-pass runner with the +probe→work→session-context→commit contract, digest + morning-approval queue, +skip-and-note semantics, spine-set dirty exclusion + fire-end digest commit, +stall-notify after two unmerged-branch skips, the stop-sentry operation. INDEX.org +entry. +*** TODO Phase 3 — companion reconciliations +knowledge-base.md write recipe (roam-write lock around the write block; edit+trigger +replaces inline pull/commit/push); inbox.org core §5 (acquire/release around the +Phase D edit, capture-guard underneath, graceful degradation when the helper is +absent); roam-sync.sh header comment; triage-intake.org note (runs as a sentry pass, +own triggers kept); wrap-it-up.org active-sentry guard (refuse, point at "stop +sentry"). +*** TODO Phase 4 — verification + flip spec to IMPLEMENTED +=make test= green; file follow-up tasks for the live-trial-night items (Craig runs +the trial on ratio — entry gates, one fire end to end, morning branch review). On +completion, flip the spec keyword DRAFT/DOING → IMPLEMENTED with a dated history +line, and close this parent. ** TODO [#C] Polyglot projects — supported, or refused? :spec: SCHEDULED: <2026-07-20 Mon> |
