@open-tomato/rafa 0.35.0 → 0.37.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/README.md CHANGED
@@ -829,10 +829,11 @@ creates the `.rafa/` folders and the board labels newer versions expect,
829
829
  and records the version in `rafa.lock` at the repository root, a small
830
830
  JSON file meant to be committed. It works within a patch range: the
831
831
  installed version must share the major and minor of the one the lock
832
- records, and a project with no lock is adopted. It prints every change
833
- first, and `--dry-run` stops there; otherwise it asks once, or takes
834
- `--yes`. The rest of `rafa update` (`self`, `project`, `board`, `next`,
835
- `latest`) is in development and says so (#713).
832
+ records. Below 1.0.0 it also crosses newer minors, so a lock at 0.34.1
833
+ moves to 0.36.0, and a project with no lock is adopted. It prints every
834
+ change first, and `--dry-run` stops there; otherwise it asks once, or
835
+ takes `--yes`. The rest of `rafa update` (`self`, `project`, `board`,
836
+ `next`, `latest`) is in development and says so (#713).
836
837
 
837
838
  ## Runtime
838
839
 
@@ -130,10 +130,10 @@ One loop at a time; never two at once inside a stretch.
130
130
 
131
131
  `setsid` is Linux's; on macOS start it with `nohup` alone and log the
132
132
  difference as a gap. Detached loops are a gap of their own.
133
- 3. Watch it: read the log's `rafa·` lines and `rafa loop status`. Wait
134
- with a background check on the log, never a tight loop of reads. No
135
- foreground command waits longer than 60 seconds; longer waits run in
136
- the background.
133
+ 3. Watch it: `rafa loop wait --until=pr,no-pr,halt,error,exit` reads the
134
+ `.rafa/runs/<session-id>.events.ndjson` file your loop wrote, not the
135
+ log. No foreground command waits longer than 60 seconds; longer waits
136
+ run in the background.
137
137
  4. Merge its pull request:
138
138
  - Into `stretch/<n>`: `rafa pr merge <pr> --skip-checks`. The merge push
139
139
  runs `verify` asynchronously; read the result at the pit stop.
@@ -55,17 +55,17 @@ Four sources, all on this machine:
55
55
 
56
56
  ## How you wait
57
57
 
58
- - **A Monitor on the loop log**, so each `rafa·` line, a `blocked` line, an
59
- `error` line or a `halt` line reaches you as it is written. Match every
60
- ending, not only the good ones:
58
+ Watch the running loop's events from `.rafa/runs/<session-id>.events.ndjson`:
61
59
 
62
- ```bash
63
- tail -F .rafa/stretch/<n>/loop-<issue>.log | grep --line-buffered -E 'rafa· (task|wrap-up|pr|no pr|halt|error)'
64
- ```
60
+ ```bash
61
+ rafa loop wait --until=blocked,quiet:<minutes>,exit
62
+ ```
65
63
 
66
- A Monitor stops after 30 minutes at most; restart it at every wake.
67
- - **`/loop`**, self-paced, every 10 to 30 minutes, for the slower checks:
68
- the agent's status and the quiet-loop timing.
64
+ The `<minutes>` is 2× the p90 task time from `rafa effort dashboard`. With
65
+ no baseline yet, use 30 minutes and say so in the alert. The wait exits
66
+ when a task blocks, when the loop is quiet for that long, or when the loop
67
+ ends. Between waits, read the agent's session status and check the hook
68
+ rule at every wake: `/loop`, self-paced, every 10 to 30 minutes.
69
69
 
70
70
  ## How you alert
71
71