loki-mode 7.76.0 → 7.78.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/SKILL.md CHANGED
@@ -3,7 +3,7 @@ name: loki-mode
3
3
  description: Autonomous spec-driven build system with a built-in trust layer. It does not call work done until it is verified (RARV-C closure loop, 8 quality gates, completion council, verified-completion evidence gate). Triggers on "Loki Mode". Takes a spec (PRD, GitHub issue, OpenAPI doc, etc.) to deployed product with minimal human intervention. Provider-agnostic. Requires --dangerously-skip-permissions flag.
4
4
  ---
5
5
 
6
- # Loki Mode v7.76.0
6
+ # Loki Mode v7.78.0
7
7
 
8
8
  **You are an autonomous agent. You make decisions. You do not ask questions. You do not stop.**
9
9
 
@@ -406,4 +406,4 @@ See `CHANGELOG.md` entries [7.5.7], [7.5.8], [7.5.13] for the per-fix list and r
406
406
 
407
407
  ---
408
408
 
409
- **v7.76.0 | [Autonomi](https://www.autonomi.dev/) flagship product | ~260 lines core**
409
+ **v7.78.0 | [Autonomi](https://www.autonomi.dev/) flagship product | ~260 lines core**
package/VERSION CHANGED
@@ -1 +1 @@
1
- 7.76.0
1
+ 7.78.0
@@ -2,6 +2,15 @@
2
2
 
3
3
  This document describes how to integrate multi-channel notifications (Slack, Discord, Webhook) into run.sh.
4
4
 
5
+ > Note (v7.78.0): the convenience wrappers `notify_task_started`,
6
+ > `notify_task_completed`, `notify_task_failed`, `notify_phase_complete`, and
7
+ > `notify_all_complete` were never wired into the runtime and were removed as dead
8
+ > code. The live notification helpers are `notify_intervention_needed` and
9
+ > `notify_rate_limit` (plus the `notify_channels` snippets shown below). Snippets
10
+ > in this guide that reference the removed wrappers are illustrative of where a
11
+ > notification COULD be emitted; use `notify_channels` (or the live helpers) when
12
+ > actually wiring one.
13
+
5
14
  ## Quick Start
6
15
 
7
16
  ```bash
@@ -256,7 +256,22 @@ loki_council_dispatch_agents() {
256
256
  # default-off export in claude-flags.sh (sourced above) already covers this;
257
257
  # the inline prefix is belt-and-suspenders, self-documenting, and a no-op when
258
258
  # caveman is absent.
259
- response=$(CAVEMAN_DEFAULT_MODE=off claude --dangerously-skip-permissions \
259
+ #
260
+ # timeout-guard the dispatch (parity with the heuristic council path in
261
+ # completion-council.sh:2074 and :2200, same LOKI_COUNCIL_REVIEW_TIMEOUT:-600
262
+ # knob). The heuristic loop this dispatch replaced wrapped every claude
263
+ # subcall in `timeout`; this helper did not, so a hung `claude --agents`
264
+ # would stall the entire run indefinitely. `timeout` precedes the env-var
265
+ # assignment, so `env` is used to set CAVEMAN_DEFAULT_MODE for the child.
266
+ # On timeout, `timeout` exits 124; that exit is the command-substitution exit
267
+ # (no pipe here), captured into rc via `|| rc=$?`. The existing rc check below
268
+ # then routes any non-zero exit (timeout 124 or any other claude failure) to
269
+ # `return 1` -- the heuristic fallback the caller falls through to
270
+ # (completion-council.sh:2792). Fail-closed: a hung or timed-out council can
271
+ # never become a false COMPLETE; it always degrades to the heuristic path
272
+ # (which has its own timeout + conservative defaults).
273
+ response=$(timeout "${LOKI_COUNCIL_REVIEW_TIMEOUT:-600}" \
274
+ env CAVEMAN_DEFAULT_MODE=off claude --dangerously-skip-permissions \
260
275
  -p "$prompt" \
261
276
  --agents "$agents_json" \
262
277
  --json-schema "$schema_path" 2>"$stderr_log") || rc=$?