@quikit/quikpilot-runner 9.3.0-rc.42 → 9.3.0-rc.44

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
@@ -156,6 +156,10 @@ wrong (a field that arrives from a database row or a request), so it only warns
156
156
 
157
157
  **9.3.0-rc.38 — a loop turn waits as long as its own clock says (QUIKTR-1582, S7).** Node's built-in `fetch` gives up on any reply whose headers take longer than 300 seconds, whatever limit the caller passes ("fetch failed", cause `UND_ERR_HEADERS_TIMEOUT`; measured on Node 20 and 24). So the 420 seconds a loop's first turn was given (9.3.0-rc.34) never happened: when the AI service's first answer of the day took more than 300 seconds, the call failed as "transport", and in map mode that ended the run (S7 trial QTRIA-8). Now every AI call that brings its own clock (each turn of the targeting, code-writing and early-look loops) goes through Node's own `http`/`https` client, which has no such limit, with TCP keep-alive as `fetch` sets it; the clock is the only thing that ends it, and a timed-out turn still reads as `turn_timeout`. Calls without a clock (the single targeting and code-writing calls) keep `fetch` exactly as before, 300 seconds included, and the retry rules are unchanged. No new dependency.
158
158
 
159
+ **9.3.0-rc.43 — the report back is tried again after a server error (QUIKTR-1826).** The report back to QuikProjects is the job's last act, and it was tried once: on 25 Oct two runs that had stopped for a test decision lost it to one 500 (QuikProjects could not get a database connection in time, P2028), so each job's work was thrown away and the run stayed stuck at RUNNING. Now a 500, 502, 503 or 504, or a dropped connection (`ECONNRESET`, `ETIMEDOUT`), is tried again up to three times, after 2, 5 and 10 seconds, with the same body each time; each retry is a `::warning::` line in the job log with the reason code, and a report that still fails says "after 4 tries". A refusal (any other status, 4xx and 429 included) is never tried again. A repeat is safe: QuikProjects saves the report all-or-nothing, answers one it already saved as already recorded, and finds the pull request it opened the first time. Also in rc.43: everything in rc.42, which was not published on its own. Nothing else changes.
160
+
161
+ **9.3.0-rc.44 — every existing test that pins the bug is found and asked about in one decision (QUIKTR-1827).** On 25 Oct the AI wrote the right fix for the "logged-in users get 401" bug, and the run still failed: two existing tests said the bug was correct, and QuikPilot could ask about one. (A) A test written once for every row of a table (`describe.each`, `it.each`, tagged-template tables too) is now reported by its title as written. It is checked against every row of the test run made before the change, the edit must stay inside the test's function, the report says how many rows there are, and one approval changes the test for every row; `generated_test` now means none of its rows was in that run. (B) An answer that gives up (CANNOT_COMPLETE) while existing tests the change broke are neither reported nor explained is sent back once, as a refused turn with the rule `give_up_rule` that names them by file and test (rows of a table as one line, never a failure message); if it gives up again, the failure names them as existing tests that may expect the old behaviour. (C) In the tests phase the AI is given up to 10 existing test files that import the code to change (`testsToCheck`), to read before it writes anything. (D) A fix that starts from existing tests the change broke may report them and stop for a person, as the first attempt does. Needs the AI Runtime of QUIKTR-1827 (`testsToCheck`, `give_up_rule`) and QuikProjects with the optional `rows` field of a test conflict; with an older AI Runtime the new key and word are refused and the attempt steps back as it always did. Also in rc.44: everything in rc.43. Nothing else changes.
162
+
159
163
  **9.3.0-rc.42 — the review check runs only the related tests first (QUIKTR-1812).** After a change passes every check, each changed block is put back on its own to ask whether any test notices. Every one of those runs was the whole suite (on QuikIT about 4 min 50 s, so the 6-minute review checked one block in bug 5's run). Now, where the S4 planner trusts related tests (a suite of three minutes or more, a vitest project), a block's first run is only the tests related to its file: a related test that fails settles "needed" in tens of seconds; anything else goes on exactly as before (the whole suite, and once more before "unneeded"), so every verdict, warning and fix attempt is the same. Each related run gets no more than the time left before the review's deadline, a related run that took as long as the whole suite switches related runs off for the rest of the check, and the `hunk_check` line counts `relatedRuns` and `wholeRuns`. `QUIKPILOT_RELATED_TESTS=off` restores whole-suite runs. Nothing else changes.
160
164
 
161
165
  **9.3.0-rc.41 — a test written once for many rows is said plainly, and the run stops (QUIKTR-1823).** Live run QTRIA-12: after a person approved one test change, the fix broke `still rejects an unauthenticated request`, ONE test inside `describe.each` that runs for 11 routes. The AI reported it four times and was told `title_not_found` each time, because tests inside `describe.each` / `it.each` are left out of the title search on purpose (their names are made at run time); the AI had copied the title right, guessed the shape of its report was wrong, and gave up, and the run said only that the AI could not make the change. Now such a report is turned away with its own word, `generated_test`, whose message tells the AI to answer CANNOT_COMPLETE and name the test. However the loop then ends, it ends `test_conflict_unreportable`: no change is kept for the checks and no second attempt is made (it would meet the same test), and the run says where the test is and which case it contradicts (file, line, case id; never a title) and that a person must change that test or correct the case. If a report of another test stands, the run stops for a decision as before and warns about the generated test. A title in no test of the file is still `title_not_found`. Also in rc.41 (QUIKTR-1824): an answer the AI Service cut off at the output limit (`CODEGEN_OUTPUT_TOO_LARGE`, `OUTPUT_TRUNCATED`) ends the attempt `output_too_large`, "the AI's answer was too long and was cut off", in the code-writing and the targeting loops, instead of `runtime_failed`, "the AI service failed" (live run QTRIA-12: a turn wrote to the limit for 193 s). Every failed attempt keeps the AI Service's own error code in the run's record (`runtimeCode`, a closed word; `other` when it is not shaped like a code), and the run's message names it. Nothing else changes.