@open-tomato/rafa 0.24.0 → 0.26.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
@@ -279,6 +279,23 @@ project's file outranks the same one in yours. `rafa init` writes both
279
279
  with every setting commented out at its default, so uncomment a line,
280
280
  with its section line, to change it.
281
281
 
282
+ ### `effort`
283
+
284
+ One setting says how long a command waits for another rafa process that
285
+ is writing the effort store before it gives up with `SQLITE_BUSY`.
286
+
287
+ | Key | Default | What it sets |
288
+ |---|---|---|
289
+ | `effort.busyTimeoutMs` | `5000` | the wait in milliseconds, a whole number from 1 to 60000 |
290
+
291
+ There is no unlimited wait, since a lock wait with no end can hang a
292
+ loop; `0`, a fraction and a quoted `"5000"` are refused.
293
+
294
+ ```yaml
295
+ effort:
296
+ busyTimeoutMs: 10000
297
+ ```
298
+
282
299
  ### `cleanup`
283
300
 
284
301
  Three settings shape what `rafa cleanup` lists.
@@ -503,6 +503,17 @@ The report rules in this skill restate `src/report/parse.ts`, which is the autho
503
503
 
504
504
  ---
505
505
 
506
+ ## Plans that change the effort store
507
+
508
+ When the spec adds or changes anything in `.rafa/effort/`:
509
+
510
+ - Give each migration its own task, naming its id and whether it is additive or which side it breaks. Never write a schema version number or an array position.
511
+ - A task that runs the branch's store code over real data first runs `bun src/rafa.ts effort copy --to=.rafa/scratch/<stub>-effort`, and runs each command with `RAFA_EFFORT_DIR=<absolute path of that dir>` on the same line. The close-out task removes the copy.
512
+ - Work that must land in the live store goes under "Operator steps after the plan merges [human]": `rafa self-update`, then the command.
513
+ - PREREQUISITES carries `- [ ] The installed rafa can read and write the live store: \`rafa effort schema --check\`` under an `[auto]` heading.
514
+
515
+ ---
516
+
506
517
  ## Command-development rule: Claude session declaration
507
518
 
508
519
  When planning work on rafa commands: every command that can start a Claude