@quikit/quikpilot-runner 9.3.0-rc.39 → 9.3.0-rc.40

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,8 @@ 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.40 — the early look is allowed to finish.** The look's first AI call now waits up to 420 seconds (it was 150) and the whole look up to 10 minutes (it was 210 seconds), the same first-call allowance every other loop already has. Measured 22 Oct: a cold first look call took 219 seconds, so the look was cut off whenever the AI service was cold, the service never kept the response format, and the next run started cold again; a specification written without the code carried a wrong criterion far more often (9 of 24 benchmark samples, against 1 of 24 with the code). QuikProjects now keeps findings that arrive after its own wait ran out, so the later steps of the run read the code. Nothing else changes.
160
+
159
161
  **9.3.0-rc.39 — an existing test that asserts the bug is reported, and a person decides (QUIKTR-1717, contract section 38).** QuikPilot never changes an existing test to make new code pass. Until now, when the test itself was what asserted the bug, the run could only fail (S7 trial QTRIA-9: `returns 401 when there's no bearer token at all, without falling back to a session cookie` expected exactly the wrong answer). Now, when QuikProjects says it can ask a person (the work packet carries `testConflicts`), the AI may report such a test with a new tool, `report_test_conflict` (the loop speaks `codegen-loop-7`, the notes version plus the tool; an AI service that refuses it is asked again as `codegen-loop-6`). The runner checks every report itself: the file is an existing test file the parser reads, the title is found once, `find` is inside that test, only expected values (and the title) differ, and the test PASSED on the code before the run. When at least one report stands, the run stops before delivering any code: the project's tests are run once on the old code with only the proposed test change written over it (the changed test must FAIL there), and ONE commit with that change is pushed to its own branch, `quikpilot/<KEY>-test-change-<job>`, made without touching the checkout (the work branch is never made). The commit message carries the investigation for a person reading it on GitHub: which test, which approved case it contradicts, how the AI read it, and when and in which change the test was added (`git log`, renames followed). The job reports `blocked` with `testConflicts` (paths, line numbers, shas, closed words and the corrected case text; never a test title, code, a reason or a commit subject) and uploads no test report. After a decision the packet carries `testConflicts.changes`: for each decision, the proposal branch, the commit that was shown and the choice. `TEST_CHANGED` applies exactly that commit's change (re-checked: the commit is the one shown, it changes only the files its message names, each file is still as it was, only expected values differ; two decisions on one file are merged with `git merge-file`), and the approved text is locked like any old test while new tests may still be added. `TEST_RIGHT` changes no test and tells the AI, through the request key `decidedTests`, which tests were judged right. A pull request that applied an approval says so (`approvedTestsApplied`). Fix attempts never stop to ask. Kill switch: `QUIKPILOT_NOTES=off` also turns the flow off. Without `testConflicts` in the packet the runner behaves exactly as rc.38.
160
162
 
161
163
  **9.3.0-rc.35 — the AI's own notes, old looks shrunk to a stub, the end-of-turn recap, a folder's guidance, and the newer versions only where a repository needs them (QUIKTR-1581, S6 release B; contract §37).** On `targeting-loop-4` and `codegen-loop-6` (each behind its own AI Runtime flag; a refusal steps one version back, `-4` to `-3` and `-6` to `-5`, then as before) a loop request carries `loop.recap`, the LAST key of `loop`: the approved cases, the folders the AI may change and its own notes. A `TOOL_CALLS` reply may carry `notes`; they replace the notes kept so far (an empty string clears them, a reply without them keeps them), credentials are hidden, at most 1,500 characters are kept, and the run record keeps their length only. The answer of a look (`list_files`, `read_file`, `grep`, `find_definition`) from a turn older than the latest three shrinks to `{dropped: true, note: "read src/a.ts lines 120-220"}`; asking for it again is answered afresh, not as a repeat. The first read under a folder that has its own `AGENTS.md`, `CLAUDE.md` or `README.md` (not the repository root's, not one already shown in the repository map) carries that file once, credentials hidden, at most 2,000 characters, at most six a run. The early look's `findings` are cut to 6,000 characters of JSON before they are handed on (open questions first, never what the verdict stands on). **`QUIKPILOT_TOOLS2` now defaults to `auto`**: search tools v2 and the notes are asked for only when the repository needs them, that is in the map view or when its file list would cost `QUIKPILOT_TOOLS_MIN_TOKENS` (default 8,000) or more tokens; a small project keeps the loops it always had (`targeting-loop-1`, `codegen-loop-3`) and pays for no extra tool, response format or recap. `on` always asks for the newest version, `off` never asks, and `QUIKPILOT_NOTES=off` keeps the tools but never asks for the notes. The run logs `tools.decided`.