@quikit/quikpilot-runner 9.2.0-rc.8 → 9.3.0-rc.1

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
@@ -43,6 +43,24 @@ gains `targeting.loop_start`, `targeting.loop_turn`, `targeting.loop_refused`, `
43
43
  and counts only, never content). Without the variable nothing changes. The workflow file is unchanged; the `env:` line
44
44
  is the only edit, and it is optional.
45
45
 
46
+ **9.3.0 (release candidates) — the AI can run the project's tests while it writes (off by default).** Set
47
+ `QUIKPILOT_CODEGEN_MODE: loop-tests` in the runner step's `env:` (and have the AI Runtime's `PILOT_CODEGEN_LOOP_2_ENABLED` on) and the
48
+ code-writing loop gets one more tool, `run_tests`, which takes no arguments: the AI never supplies a command. A call writes the AI's
49
+ in-memory changes to the checkout, runs the project's WHOLE test command once, and puts every file back before it returns, whatever
50
+ happens. So files exist on disk only while a test run is in progress, and the baseline test run, which starts at the same time as code
51
+ writing, is waited for first. The checkout is fingerprinted (git status plus a hash of every file git lists and every file written)
52
+ before the write and after the restore; whatever the test run itself added (a snapshot file, a tracked file it changed or deleted,
53
+ something it staged) is cleaned up, and if the tree still differs, or git cannot report on it, the whole run ends: no per-file fallback,
54
+ no pull request. A file that was already changed or untracked before the call is never repaired or deleted; the report the baseline run
55
+ left behind is saved and put back. The per-file fallback refuses to start from a checkout that is not what it was when the loop began.
56
+ The tests run with the same allow-listed environment as every other repository command, in their own process group, with a time limit
57
+ of three times the baseline run (never under 2 minutes, never over 10); a suite whose baseline took over 10 minutes gets no `run_tests`
58
+ and the run record says so. At most three runs; the same failing tests twice in a row is answered `no_progress` and ends the runs. What
59
+ the AI is told is counts and the NAMES of failing tests, regressions first (a regression passed before the change); never a failure
60
+ message, a stack trace or file text, until QUIKTR-1474 is answered. The run record gains `contractVersion` and `testRuns` (counts and
61
+ flags only). Finishing after a green run is advised in the prompt, not required. Off unless `loop-tests` is set; with plain `loop` the
62
+ tool does not exist.
63
+
46
64
  **9.2.0 (release candidates) — the code-writing loop tells the AI when a change breaks a JavaScript file (loop mode only).**
47
65
  After every `edit_file` or `write_file` on a `.js`, `.mjs` or `.cjs` file, the runner parses the result in memory (no disk write, no test run,
48
66
  a few milliseconds) and adds a plain warning to that tool result when the change introduced one of: a file that no longer parses (a name