docs + dev.sh: loop in README/REPORT, ./dev.sh loop runner, scan-failure exit codes

README gains the self-host loop section (flow diagram, config reference
rows for [loop]/[redmine.status_map]/[keyproxy]/[gitea], CLI flags,
status table); REPORT.md records phase 3a including the die list for the
bash stack it replaces. dev.sh grows a `loop` runner (repo bind-mounted,
key env passthrough). `harness loop --once` now exits 2 when the intake
scan itself fails so cron setups alert loudly; daemon mode still logs
and retries.

💘 Generated with Crush

Assisted-by: Crush:glm-5.2
This commit is contained in:
2026-08-28 22:21:54 -05:00
parent ecc0ee874b
commit 2901bb8cae
6 changed files with 203 additions and 27 deletions
+6 -1
View File
@@ -176,7 +176,12 @@ func runLoop(args []string) int {
DryRun: *dryRun,
}); err != nil {
fmt.Fprintf(os.Stderr, "harness: %v\n", err)
return 1
switch {
case errors.Is(err, loop.ErrIntake):
return 2
default:
return 1
}
}
return 0
}