@hasna/loops 0.3.15 → 0.3.17

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/README.md CHANGED
@@ -210,7 +210,8 @@ Use `shell: true` only when you intentionally want shell parsing:
210
210
  Built-in templates turn common orchestration flows into reusable workflow JSON.
211
211
  `todos-task-worker-verifier` performs one todos task and then verifies it.
212
212
  `event-worker-verifier` handles any Hasna event envelope and then verifies the
213
- handling.
213
+ handling. `bounded-agent-worker-verifier` is for recurring bounded agent work:
214
+ one worker runs a narrow objective, then a fresh verifier audits the result.
214
215
 
215
216
  ```bash
216
217
  loops templates list
@@ -230,6 +231,12 @@ loops templates render event-worker-verifier \
230
231
  --var eventSource=knowledge \
231
232
  --var eventJson='{"id":"<event-id>"}' \
232
233
  --var projectPath=/path/to/repo
234
+ loops templates render bounded-agent-worker-verifier \
235
+ --var objective="Check docs drift and queue tasks for gaps" \
236
+ --var projectPath=/path/to/repo \
237
+ --var provider=codewith \
238
+ --var authProfilePool=account004,account005 \
239
+ --var sandbox=danger-full-access
233
240
  ```
234
241
 
235
242
  For event-driven task automation, `loops events handle todos-task` reads a
@@ -293,6 +300,28 @@ loops run-now <id-or-name>
293
300
 
294
301
  Use `--json` for machine-readable output. Prompt bodies and run stdout/stderr are redacted by default in status output. `loops run-now` exits non-zero when the recorded run fails or times out.
295
302
 
303
+ ## Health And Hygiene
304
+
305
+ ```bash
306
+ loops health --json
307
+ loops expectations <loop-id-or-name> --json
308
+ loops health route-tasks --project ~/.hasna/loops --task-list loop-error-self-heal --max-actions 5
309
+ loops hygiene names --json
310
+ loops hygiene duplicates --json
311
+ loops hygiene scripts --json
312
+ ```
313
+
314
+ `health` and `expectations` classify latest-run failures with stable
315
+ fingerprints and bounded evidence. `health route-tasks` is the explicit
316
+ mutating path: it upserts deduped Todos tasks for failed expectations and marks
317
+ them with `no_tmux_dispatch=true` metadata. Use `--dry-run --json` before
318
+ turning it into a production loop.
319
+
320
+ `hygiene names` reports canonical `machine-*` or `repo-<name>-*` loop names and
321
+ renames only with `--apply`. `hygiene duplicates` groups loops with the same
322
+ normalized name, cwd, and schedule. `hygiene scripts` inventories loops whose
323
+ command still references `~/.hasna/loops/scripts`.
324
+
296
325
  Archive loops when retiring old automation but preserving history:
297
326
 
298
327
  ```bash