@quikit/quikpilot-runner 9.3.0-rc.26 → 9.3.0-rc.28

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
@@ -150,6 +150,10 @@ it, the callback carries it as `unsuppliedInputs` (at most 10 functions, 5 names
150
150
  noticed" as a check. This is the shape of a change whose new tests pass only because they hand the function the field themselves. It can be
151
151
  wrong (a field that arrives from a database row or a request), so it only warns and never blocks. TypeScript is not covered (QUIKTR-1547).
152
152
 
153
+ **9.3.0-rc.28 — safety for a big monorepo (QUIKTR-1577, S2a).** Runner only; nothing the AI is asked changes, and a project with no workspace folder set behaves exactly as before. (1) The folder QuikPilot may change is now enforced: `write_file`, `edit_file`, `revert_file`, `show_changes` and a kept change refuse a path outside the packet's `workspaceRoot` (`outside_workspace`), the finished result is checked again before anything is written, a planned target outside it is refused, and the commit stages only that folder, so a file a setup, format or lint command changed elsewhere is left out of the pull request and counted (`scope.left_out`). A `workspaceRoot` that cannot be understood (`..`, absolute, backslash, pattern characters) stops the run instead of being read as the whole repository. (2) The invented-import check judges only the imports a change adds, and a package another file under the folder already imports is accepted (proof it resolves here); an invented name is still blocked. (3) Where the project has no test command, or its test command writes no per-test report, tests-first is skipped with a note (`two_phase.off`) instead of failing the run. (4) The file list is read with `-z` and a 64 MiB buffer (accented names are exact; a 17,000-file repository no longer sits at 91% of the limit). (5) The whole-repository scan for unsupplied inputs is skipped when the change holds no plain JavaScript file it could judge. (6) `call_function` is not offered when the change targets TypeScript or another language it cannot load (`call_function.off`).
154
+
155
+ **9.3.0-rc.27 — "no test shows the bug" asks every case (QUIKTR-1608, live runs QUIKSPL-241 and QUIKSPL-246).** rc.26's rule counted only the cases held to the red check (those not labelled Regression). On gemini-3.8-flash the spec labelled two bugs' cases so that the only case held was one that must keep working, while tests of other cases did fail on the old code; both runs failed twice for nothing. Whether any test shows the bug is now asked of every case of the run, whatever its label; the "None of your tests fails" send-back is used only when that is true too. Runner only.
156
+
153
157
  **9.3.0-rc.26 — no pull request from tests that prove nothing, and no import of a name that does not exist (QUIKTR-1608, live runs QUIKSPL-220 and QUIKSPL-226).** On rc.24 and rc.25 two pull requests (#118, #123) went out with every test green and the bug not fixed: none of the AI's tests had failed on the code before the change, so they tested nothing. #123 also imported `scaleShares` from `./splits.js`, which does not export it: plain Node cannot load that module, but vitest gives the name as `undefined`. (1) In phase `tests`, when none of the tests for the cases held to the red check has been seen failing on the code before any change, the one send-back says so ("None of your tests fails on the code before any change ... At least one case describes the bug"), and if the next DONE is the same the attempt fails `no_test_shows_bug` (log `codegen.red_check` `no_test_shows_bug`); the second attempt writes the tests again, and if it ends the same way no pull request is opened. A phase 1 whose tests were never run on the change as it stands ends the same way. (2) At DONE outside phase `tests` (the code phase, a fix, the review fix), the runner parses each changed JavaScript file (`importCheck.ts`) and names any name imported, or re-exported, from a module of the repository that the module does not export. The first time the DONE is sent back naming the file and the name (log `codegen.import_check`); after that the attempt ends `syntax_error`. ES modules only, relative imports only, and nothing is reported when it cannot be told for sure (`export *` from elsewhere, a destructured export, CommonJS, a module that cannot be found). Phase `tests` is not checked: a test may import what phase 2 is to write. Runner only.
154
158
 
155
159
  **9.3.0-rc.25 — a corrected test must still show the bug (QUIKTR-1608, live run QUIKSPL-220).** On rc.24 the code phase of Bug 4 could not fix the bug and gave up with exactly one frozen test failing: the one test that proved the bug. The one correction, kept to that test's expected value as rc.24 requires, made it expect what the old code returns, so every test passed and PR #118 fixed nothing. After the correction the runner now runs the tests twice on the code before any change, once with the test as phase 1 froze it and once corrected (its own check, outside the AI's allowances; log `codegen.amend_old_code`). A test that failed there before its correction and passes after it no longer shows the bug: the run fails `test_case_disagree` and no pull request is opened. A test that passed on the old code by design is not held to it, and when either run gives no answer the correction stands. Runner only.