@quikit/quikpilot-runner 9.3.0-rc.75 → 9.3.0-rc.76
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 +319 -313
- package/dist/index.js +2085 -376
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,313 +1,319 @@
|
|
|
1
|
-
# @quikit/quikpilot-runner
|
|
2
|
-
|
|
3
|
-
QuikPilot's CI runner. Invoked automatically by the `.github/workflows/quikpilot.yml` file QuikPilot
|
|
4
|
-
installs in an onboarded repository — it fetches the run's work packet, runs your setup/lint/test
|
|
5
|
-
commands, reports results to QuikTest, enforces the denied-path guardrail, commits, pushes, and
|
|
6
|
-
reports back to QuikTrack.
|
|
7
|
-
|
|
8
|
-
This package is not meant to be installed or run by hand. It exists so a fix to QuikPilot's runner
|
|
9
|
-
logic ships as a new package version rather than a new pull request into every onboarded repository
|
|
10
|
-
— the workflow file itself lives in your repository (QuikIT cannot update it directly), so it stays a
|
|
11
|
-
thin, ~25-line launcher that invokes an exact, pinned version of this package via `npx`.
|
|
12
|
-
|
|
13
|
-
It carries no secrets and needs none of your credentials: it authenticates to QuikTrack and to GitHub
|
|
14
|
-
using short-lived tokens exchanged at runtime, never a value baked into the workflow file or this
|
|
15
|
-
package.
|
|
16
|
-
|
|
17
|
-
## Versioning and support
|
|
18
|
-
|
|
19
|
-
Every workflow file pins an **exact** version of this package (`npx --yes
|
|
20
|
-
@quikit/quikpilot-runner@<version>`, never a range or `latest`) — a repository never picks up a new
|
|
21
|
-
release on its own. Older published versions are not removed from npm and keep working as long as a
|
|
22
|
-
repository's workflow file keeps pinning them; upgrading to a newer version only happens through a new
|
|
23
|
-
pull request into that repository (QuikTrack's "re-bootstrap" flow), never silently.
|
|
24
|
-
|
|
25
|
-
Releases follow [SemVer](https://semver.org/): a major version bump means the workflow file's own
|
|
26
|
-
shape changed (inputs, permissions) and requires a new pull request regardless of this package's
|
|
27
|
-
version; minor/patch releases are runner-logic fixes safe to pick up on the next re-bootstrap.
|
|
28
|
-
|
|
29
|
-
**9.2.0 — the AI can look at the code before it chooses which files to change (off by default).** Set
|
|
30
|
-
`QUIKPILOT_TARGETING_MODE: loop` in the runner step's `env:` and the targeting step stops guessing from the file listing
|
|
31
|
-
alone: over a few short turns it may use three read-only tools, `list_files`, `read_file` and `grep` (a plain-text
|
|
32
|
-
search, not a pattern), and then gives the same answer as before, which goes through the same checks. A denied path is
|
|
33
|
-
never read, listed, searched or counted; nothing outside the checkout and no symbolic link is followed; every limit
|
|
34
|
-
(turns, calls, characters read) is told to the AI as an ordinary answer, never an error. Each turn's
|
|
35
|
-
request is also kept under a ceiling of 90,000 tokens (counted conservatively: a path listing and non-ASCII text cost
|
|
36
|
-
far more than characters divided by four): a result that would push the next request over it is not sent, the AI is told
|
|
37
|
-
to answer with what it has, and if even that would not fit the run falls back to the single call. Characters read per run
|
|
38
|
-
are capped at 60,000. If the loop cannot finish
|
|
39
|
-
for an ordinary reason (an older runtime, a timeout, a malformed reply) the run falls back to the single call and says
|
|
40
|
-
so in its warnings; a protected path in the answer, or the runtime refusing the run itself, is never retried. The log
|
|
41
|
-
gains `targeting.loop_start`, `targeting.loop_turn`, `targeting.loop_refused`, `targeting.loop_done` and
|
|
42
|
-
`targeting.loop_fallback` lines, and the targeting record gains an optional `loop` field listing what was read (paths
|
|
43
|
-
and counts only, never content). Without the variable nothing changes. The workflow file is unchanged; the `env:` line
|
|
44
|
-
is the only edit, and it is optional.
|
|
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. A second attempt (below) 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
|
-
|
|
64
|
-
**9.2.0 (release candidates) — the code-writing loop tells the AI when a change breaks a JavaScript file (loop mode only).**
|
|
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,
|
|
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
|
|
67
|
-
declared twice, an `import` that is not at the top of the file, an unterminated string or a stray brace), a name that is not defined or
|
|
68
|
-
imported, or a `const`, `let` or class used higher up in the same function than the line that declares it. The change still applies, so the
|
|
69
|
-
AI can read the file at the reported line and fix it; the warning is a closed phrase and a line number, never file text. If the AI still
|
|
70
|
-
ends with such a file, the attempt is thrown away and is handled like any other ordinary failure (a second attempt; `syntax_error`
|
|
71
|
-
in the run record). Only what a change *introduces* is reported: a file that already had the problem, or that did not parse before (JSX,
|
|
72
|
-
Flow or decorators in a `.js` file), and TypeScript, JSX and every other language, are left alone; a new file is judged only once the
|
|
73
|
-
project's own files are known to parse, and a name the project's other files already use without defining (a global the build supplies) is
|
|
74
|
-
not reported. It does not find a wrong value, a wrong import path or any wrong behaviour; tests do. The log gains `syntaxWarnings` in the
|
|
75
|
-
loop record and a `codegen.loop_refused` line with `reason: "syntax_error"`. The parser and the scope analysis are bundled into the one file,
|
|
76
|
-
so the package still installs nothing. Off unless `QUIKPILOT_CODEGEN_MODE: loop` is set.
|
|
77
|
-
|
|
78
|
-
**9.2.0 (release candidates) — repository commands no longer see the runner's credentials (always on).** Your setup,
|
|
79
|
-
lint, format and test commands, and the baseline checks, run code nobody has reviewed yet (new tests, a dependency's install
|
|
80
|
-
script). They used to inherit the runner's whole environment, which includes the variables GitHub gives a job that has
|
|
81
|
-
`id-token: write` and the addresses the runner reports to. They now run with an allow-listed environment: the search path,
|
|
82
|
-
home and locale, proxy and certificate settings, the toolchain locations the `setup-*` actions export (`JAVA_HOME`, `GOROOT`,
|
|
83
|
-
`CARGO_HOME`, `pythonLocation`, `PNPM_HOME`, ...), and the non-secret `GITHUB_*` and `RUNNER_*` context such as
|
|
84
|
-
`GITHUB_WORKSPACE`. Withheld: `ACTIONS_*`, `GITHUB_TOKEN`, the files that steer later steps of the job (`GITHUB_ENV`,
|
|
85
|
-
`GITHUB_PATH`, `GITHUB_OUTPUT`, `GITHUB_STATE`, `GITHUB_STEP_SUMMARY`), anything whose name reads like a credential, and the
|
|
86
|
-
runner's own inputs (`TOKEN_URL`, `RUN_ID`, ...). The job log says once, by name only, how many variables were withheld. A
|
|
87
|
-
command that needs a variable outside the list will no longer find it. The workflow file is unchanged. This is the second layer
|
|
88
|
-
of QUIKTR-1502; the first is that QuikTrack accepts one token exchange per start of a run.
|
|
89
|
-
|
|
90
|
-
**9.2.0 (release candidates) — the AI can look at the code and edit as it writes it (off by default).** Set
|
|
91
|
-
`QUIKPILOT_CODEGEN_MODE: loop` in the runner step's `env:` and the code-writing step stops making one blind call per file:
|
|
92
|
-
over several short turns the AI may use five tools, the three read-only ones above plus `edit_file` (replace one piece of
|
|
93
|
-
text in an existing file; the text must match exactly one place) and `write_file` (create a new file). Every change is held in
|
|
94
|
-
memory and nothing is written to the checkout until the AI says it is finished, and then the result goes through exactly the
|
|
95
|
-
checks a one-file-at-a-time run goes through (scope, overlap, test placement, format, lint, the regression gate, the
|
|
96
|
-
coverage check, protected paths). A test file that already existed may only be added to: every character of the matched text
|
|
97
|
-
must stay, in the same order, and the only change is one block of whole new lines that declares a new test (`it`, `test` or
|
|
98
|
-
`describe`) or new `import` lines, placed before the matched text, after it or between two of its lines (JavaScript and
|
|
99
|
-
TypeScript files; other languages keep the older rule of new text before or after the match). Anything else is answered
|
|
100
|
-
`protected`, an ordinary result the AI reads and tries again from, so a test is never weakened to make code pass. Before its first turn the loop is shown the files the plan named for each target, then the EXISTING TESTS of the code it will change (the test file beside each code target, and each existing test target itself, as LF text so an edit can match it), then the files each existing target imports
|
|
101
|
-
(one hop, JavaScript and TypeScript, the same scan and the same limits as the one-file-at-a-time path: 40,000 characters a file
|
|
102
|
-
and 60,000 in all, never a denied path, never the targets themselves), so the project's own names, values and rates are in front
|
|
103
|
-
of it instead of being guessed; the run's context record lists them like the one-file path's. The AI cannot finish before it has
|
|
104
|
-
changed something and written a test for every case it was given. If the loop's first attempt cannot finish for an ordinary reason (a
|
|
105
|
-
timeout, a refused edit it cannot recover from, a cut-short file) everything it held is thrown away and the runner makes ONE more
|
|
106
|
-
attempt of the same loop from a clean start (9.3.0-rc.11, QUIKTR-1544); see "One code-writing path" below. A budget or credential
|
|
107
|
-
refusal from the AI Runtime is never retried (a second attempt would be refused again or paid for twice). A protected path is refused to the AI as an
|
|
108
|
-
ordinary answer, never read, listed or written, and the run carries on. Limits are told to the AI as ordinary answers: 20 turns, 40 actions, 60,000 characters read, 120,000 written, and the
|
|
109
|
-
same 90,000-token ceiling per turn. The callback gains an optional `codegenLoop` record (paths, counts, statuses and the AI's
|
|
110
|
-
short note per step; never file text) that QuikProjects shows as "What QuikPilot did". Without the variable nothing
|
|
111
|
-
changes. The workflow file is unchanged; the `env:` line is the only edit, and it is optional. The AI Runtime must have
|
|
112
|
-
`PILOT_CODEGEN_LOOP_ENABLED` on; while it is off (or the runtime does not have the loop at all) the runner writes the files one at a time,
|
|
113
|
-
as before, and says so in the run's warnings. That is the ONE case that still does.
|
|
114
|
-
|
|
115
|
-
**9.3.0-rc.11 — one code-writing path (QUIKTR-1544).** When the loop's first attempt ends without a result (and the AI Runtime has the
|
|
116
|
-
loop), the runner makes ONE more attempt of the same loop, from a clean start (a new in-memory overlay, the same per-attempt limits, three
|
|
117
|
-
`run_tests` runs per attempt, the baseline test run shared), and tells it how the first one ended in `loop.previousAttempt` (needs the AI
|
|
118
|
-
Runtime from the same release): the attempt number, a closed reason word, a short sentence, the last test result the AI saw, and the rule
|
|
119
|
-
words its replies broke. NOTHING NEW LEAVES: only what the AI Runtime already received during this run. The short sentence is built from
|
|
120
|
-
closed words (the ids of the test cases never written, the file the AI itself broke with a fixed phrase and a line number, the AI's own
|
|
121
|
-
summary when it said it could not complete); the names the truncated-rewrite check reads from the original file are never sent. If the
|
|
122
|
-
second attempt ends without a result too, the run FAILS with a plain reason and both attempts in the record; nothing is written and the
|
|
123
|
-
files are not written one at a time. A checkout that did not come back identical ends the run before any second attempt. Both attempts
|
|
124
|
-
share ONE clock of about 30 minutes, test runs included (the pilot job is cut at 45); a second attempt starts only when the time left is at
|
|
125
|
-
least as long as the first took, one run of the project's tests when they are on, and never under 3 minutes. The record keeps the
|
|
126
|
-
attempts and tells a run the clock ended (`out_of_time`) from one where the AI could not do it (`failed`). The log carries
|
|
127
|
-
`codegen.attempt_start`, `codegen.attempt_end` and `codegen.attempt_skipped` lines with counts and closed words only, and the second
|
|
128
|
-
attempt's start says which of the three additions to what it is told it carried (`hasDetail`, `rulesCount`, `hasLastTestRun`).
|
|
129
|
-
|
|
130
|
-
**9.3.0-rc.12 — the early look, and a warning for a field nothing supplies (QUIKTR-1545).** Two additions, both off unless QuikProjects
|
|
131
|
-
and the AI Runtime switch them on, and neither changes a run that does not use them.
|
|
132
|
-
|
|
133
|
-
*The early look (`MODE=investigate`).* Before the first question QuikProjects can dispatch the same workflow with `mode: investigate` and
|
|
134
|
-
`run_id: investigate:<run id>`. This mode is READ-ONLY: it exchanges the OIDC token for a run token whose only scope is
|
|
135
|
-
`pilot:investigate`, fetches a small packet (the person's report, the denied paths, the gateway), checks out the repository, and runs a
|
|
136
|
-
three-tool loop (`list_files`, `grep`, `read_file`) with at most 8 turns, 60 seconds for a turn and 120 seconds in all. It never installs,
|
|
137
|
-
runs the project's tests, commits or pushes. Extra paths are denied on top of the project's own (`**/.npmrc`, `**/*.pem`, `**/*.key`,
|
|
138
|
-
`**/*.tfvars`, `**/*credentials*.json`, `**/docker-compose*`), and everything it reads is scrubbed of secret-shaped text before the AI sees
|
|
139
|
-
it: five recorded kinds (`credential`, `private_key`, `cloud_key`, `url_credentials`, `assigned_secret`), COUNTED and never shown. The AI's
|
|
140
|
-
answer is checked, not trusted: every path must be in the checkout and not denied, every cited line must be one the AI really saw, every
|
|
141
|
-
symbol must occur in text it really read, and "not found" needs the zero-hit searches on record; otherwise the verdict becomes
|
|
142
|
-
`CANNOT_TELL`. The runner reports ONE record to QuikProjects (paths, line numbers, short names, the commit it read and counts; never file
|
|
143
|
-
text) or a closed failure reason. An unknown `MODE` now stops the job instead of falling into a full run, which is what keeps an old
|
|
144
|
-
template from ever treating the look as a run. The AI Runtime needs `PILOT_INVESTIGATE_ENABLED`; if it is off the look ends at once as
|
|
145
|
-
`switch_off` and the run goes on without it.
|
|
146
|
-
|
|
147
|
-
*A field nothing supplies.* After the code is written, the runner looks at the functions a change adds or changes in JavaScript files
|
|
148
|
-
(not tests). If one reads a field of its input that appears nowhere else in the project's non-test text and nothing in the change supplies
|
|
149
|
-
it, the callback carries it as `unsuppliedInputs` (at most 10 functions, 5 names each) and QuikProjects lists it under "What QuikPilot
|
|
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
|
-
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
|
-
|
|
153
|
-
**9.3.0-rc.36 — the run record says what each step cost and what it could touch (QUIKTR-1582, S7).** Each loop turn now records its request size by part (the list of files or the repository summary, the test cases, the task, earlier answers, the AI's notes, the fixed instructions; the runner's own estimate) and what the AI Runtime said the call used (`tokensInput`, `tokensOutput`, `costEstimateUsd`, `latencyMs`), at most 30 rows per loop; each step's record also carries its totals over the whole job (every attempt, phase and fix). The record says which folder the run could change and which it could read, and its largest request, in the list view too (before, only in map mode). The report back carries `aiCostUsd`, the sum of the AI Runtime's cost estimate over every AI call of the job (the estimate leaves out the model's thinking; the early look's own cost is not included). The early look's first call now waits up to 150 seconds (it was 60), so a cold AI service no longer ends it at once; QuikProjects waits about 200 seconds for the whole look, so it cannot wait longer. Numbers only: no text from a request or a reply is kept.
|
|
154
|
-
|
|
155
|
-
**9.3.0-rc.37 — the AI always sees what it just read (QUIKTR-1582, S7).** In map mode the code-writing loop trims old read outputs once a request passes a soft target, to keep turns small. That target was a flat 40,000 estimated tokens, and the trim also took the outputs of the turn just finished, before the AI had seen them. On a big repository the loop's first request alone can weigh about 36,000 (the summary, the context files, the cases), so every read went over the target and was dropped unseen: in the first S7 trial on the QuikIT fork the AI read the same three files 27 times and wrote nothing. Now the soft target is the first request plus room for 20,000 tokens of reads (at least 40,000, never above the ceiling); the soft trim only takes outputs the AI has already been shown; and an output it has not seen is dropped only when nothing else makes the request fit the ceiling, after the text of old writes is shortened. That last case answers "Too large to send with the rest of this request. Read a smaller part of the file." and logs `codegen.read_dropped_unseen`. Listing mode keeps the ceiling as its only target, with the same order.
|
|
156
|
-
|
|
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
|
-
|
|
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
|
-
|
|
163
|
-
**9.3.0-rc.45 — a changed test that still says the old behaviour is noted on the decision page (QUIKTR-1832).** On 25 Oct the approved proposal for the "logged-in users get 401" bug changed what a test expects (`toBe(401)` to `toBe(200)`) and left its title, "returns 401 when there's no bearer token at all", and a comment saying the old behaviour. The runner already lets a proposal change a test's title and comments, so it cannot refuse that; it now notices. For each changed test it takes the string and number values (numbers of three digits or more, or with a decimal point) that the edit removes, drops any the new test still uses in its own code or that the replacement itself writes, and checks whether one is still in the test's new title or in a comment inside it. When one is, the proposal commit gets a readable `Note:` line and an optional `stale` key (`tokens`, `inTitle`, `commentLines`, at most 4 values of 60 characters and 6 lines) on that test's machine-readable line; an older reader ignores it, and a line whose note is malformed is dropped like any other malformed line. It is a note for the person who approves, never a rejection, and nothing is added to the report back to QuikProjects. The AI Runtime of QUIKTR-1832 also asks the AI to change the title and comments in the same edit. Also in rc.45: everything in rc.44. Nothing else changes.
|
|
164
|
-
|
|
165
|
-
**9.3.0-rc.46 — the existing tests to read first include the ones that reach the code through one file in between (QUIKTR-1845).** On the live bug-6 run (QTRIA-17) the design changed `lib/services/issueFilters.ts`, and the two tests that assert the bug import `app/api/issues/route.ts`, which imports it, so the list of existing tests the AI reads before writing (`testsToCheck`, rc.44) was empty. When fewer than 3 test files are found by name or a direct import, the runner now takes one more step: of the files the tests import (code, not a test, not under a denied path; the 150 most shared first) it keeps the ones that import a changed file, and adds the tests that import them, after the others and up to 10 in all. A file in between imported by more than 12 tests only brings the tests named after it (a route by its folder) or after the changed file. Paths only, as before. With 3 or more found the list is exactly as in rc.45. Also in rc.46: everything in rc.45. Nothing else changes.
|
|
166
|
-
|
|
167
|
-
**9.3.0-rc.59 - a throwaway test, run once, its output shown (QUIKTR-1702, contract section 44 `codegen-loop-9`).** Before it writes an expected value the AI sometimes needs to SEE what the code really returns. `call_function` could show it, but only for a plain .js file, one function and plain data, on our own repositories: nothing for a Go, Python or Java project. The new tool `run_scratch {path, content}` has the AI name a NEW test file (named the way the project names its tests, in a folder that exists, never a file that exists) and give its text. The runner writes it next to the AI's changes, runs the space's own "Test one file" command on it once (`commands.testFile`, the path quoted, the same environment allow-list, credential scrub and process-group kill as `run_tests`, 60 seconds), puts the checkout back exactly, and answers with ONE string: `exit N`, then the END of what the run printed (stdout and stderr together, colour codes removed, credentials scrubbed, at most 2,000 characters in all). The AI supplies a file and its text, never what runs it: no command, no interpreter, no flag. The scratch file goes to disk through the overlay window as one extra file and never through the loop's overlay, so the syntax guard, the hunk and scope checks, `show_changes`, the proof run and the proposal never see it, and a scratch answer is never evidence that a test fails. It shares the eight `functionCalls` with `call_function`, and a repeat of the same file on the same change is answered as a duplicate and spends nothing. Offered only when fix first is on (loop-9 is loop-8 plus the tool), the space has a one-file command, and the repository is ours (`deathvadeR-afk`, section 28.2 unchanged) or the workflow sets `QUIKPILOT_RUN_SCRATCH=on` (a trial space); `QUIKPILOT_RUN_SCRATCH=off` closes it everywhere. Needs the AI Runtime of QUIKTR-1702 (`codegen-loop-9`, its own flag); an AI Runtime that refuses it is asked again as `codegen-loop-8`, then `codegen-loop-7`. Logs and the run record carry counts and closed words only (`codegen.run_scratch`: status, reason, exit code, seconds, length), never the path, the text or the output. Also in rc.59: everything in rc.58. Nothing else changes.
|
|
168
|
-
|
|
169
|
-
**9.3.0-rc.60 - credential files of every language stay away from the AI (QUIKTR-1703).** QuikPilot hid the npm credential file (`.npmrc`) and a few other secret-shaped files, but a Python, Java, Rust, PHP, Ruby or .NET project's own login files were open to the AI, and the last-line scrubber knew only JavaScript-style secrets. (1) Files that hold nothing but logins or keys are never read, listed, searched, edited or created, whatever the project's Protected paths say: `.pypirc`, `pip.conf`, `.netrc`, `.yarnrc(.yml)`, `.cargo/credentials`, `.gem/credentials`, `.bundle/config`, Maven `settings-security.xml` and a `settings.xml` at the root or under `.mvn`/`.m2`, Composer `auth.json` at the root, `.aws/credentials`, `.docker/config.json`, `.kube/config`, Terraform state, `.htpasswd`, private keys and key stores. The names are exact and anchored, so `locales/en/auth.json` stays readable. Nothing under `.git` can be written. (2) The edit, write, show and revert tools use the read list as well: a file the AI may not see is not one it can probe through an edit answer (`ambiguous` quoted the line before each match; `no_match` against `ok` told a guess from a hit). A credential file or a file it may not read is no target and no context file either. (3) The file listing sent to the AI service leaves out every file the AI may not read (it was the raw list); the runner keeps the whole list for its own checks. (4) The scrubber has a `config` mode for configuration files (properties, ini, cfg, conf, toml, yaml, xml, `.env*`, `appsettings*.json`): `repoPassword=x`, `password = x`, `<password>x</password>`, `Password=x;` inside a connection string, a NuGet `ClearTextPassword` are redacted and the name stays; translation files and code are read as before. It also hides npm, PyPI, GitLab and Docker Hub token shapes in every mode. The recorded words do not change. (5) The command environment passes a few more settings with no secret in them (`GOPRIVATE`, `VIRTUAL_ENV`, `PYTHONPATH`, `NODE_ENV`, `RUSTFLAGS`, `CARGO_TARGET_DIR`, `NUGET_PACKAGES` and kin); `GOPROXY`, `PIP_INDEX_URL`, `UV_INDEX_URL`, `MAVEN_OPTS`, `JAVA_TOOL_OPTIONS`, `GRADLE_OPTS` and `RUSTFLAGS` pass only when their value carries no login; and npm's base64 login (`NPM_CONFIG__AUTH`) no longer slips through the allowed `NPM_CONFIG_` family. Never a wildcard: `BUNDLE_*`, `COMPOSER_AUTH` and the registry token variables stay withheld. No change to the contract with the AI service.
|
|
170
|
-
|
|
171
|
-
**9.3.0-rc.61 - the AI sees why its own test failed in every language, and is told when what still fails was already failing (QUIKTR-1950, QUIKTR-1962).** (1) `run_tests` and the final test check show the first line (the whole failure under the harness version) of a failing test THIS run wrote. Until now that worked only where the report names a test by its file path (JavaScript); a pytest module, a Java class, a C# namespace and a Go package are not paths, so the AI saw only the test's name and guessed (the sqlparse trial logged `messages: 0` on every run). Such a test now counts as the run's own when its module or package lines up with a file the run changed (the rule that links a declared test to its report entry) AND the test, with any row suffix cut off, is defined in that file's text as a whole word. With no file text nothing is added; a JUnit 5 display name is never linked; an existing test that now fails stays names-only. (2) When no test that passed before fails now and no test that is new in this run fails, but tests are still red, the answer says that every failing test was already failing before the change, and the "same as last run" wording and the `no_progress` stop no longer apply to it (a clean change on a repository with old failures could never reach `tests_passed`). The status stays `tests_failed`; the final gate and the regression check are unchanged. The `codegen.run_tests` log event gains `own` (how many failing tests were shown to be the run's own) and `clean` (a flag), counts only. No change to the contract with the AI service.
|
|
172
|
-
|
|
173
|
-
**9.3.0-rc.62 - an approved test that is reported again is refused with what to do (QUIKTR-1951).** When a person has approved a change to an existing test and the AI reports that test again before the final test run (a second row of a table test that still expects the old behaviour), the answer was only `already_decided`: "Do not report it again". It now also says what the AI can do: finish the code first, and if rows of that test still fail in the final test run, the fix step that follows may report the test once more (QUIKTR-1844). Nothing about WHEN a test can be reported changes, so a person is still asked only when there is evidence; a test a person judged right, or reported in another file, keeps the bare refusal exactly. A new log event `codegen.conflict_refused_approved` (phase only) counts how often it happens. No change to the contract with the AI service. The AI Runtime's QUIKTR-1952 (a hung OpenRouter call is cut at 150 s for QuikPilot calls, so the backup model answers inside the runner's turn limit) ships with this version and needs no runner setting.
|
|
174
|
-
|
|
175
|
-
**9.3.0-rc.
|
|
176
|
-
|
|
177
|
-
**9.3.0-rc.
|
|
178
|
-
|
|
179
|
-
**9.3.0-rc.
|
|
180
|
-
|
|
181
|
-
**9.3.0-rc.
|
|
182
|
-
|
|
183
|
-
**9.3.0-rc.
|
|
184
|
-
|
|
185
|
-
**9.3.0-rc.
|
|
186
|
-
|
|
187
|
-
**9.3.0-rc.
|
|
188
|
-
|
|
189
|
-
**9.3.0-rc.
|
|
190
|
-
|
|
191
|
-
**9.3.0-rc.
|
|
192
|
-
|
|
193
|
-
**9.3.0-rc.
|
|
194
|
-
|
|
195
|
-
**9.3.0-rc.
|
|
196
|
-
|
|
197
|
-
**9.3.0-rc.
|
|
198
|
-
|
|
199
|
-
**9.3.0-rc.
|
|
200
|
-
|
|
201
|
-
**9.3.0-rc.
|
|
202
|
-
|
|
203
|
-
**9.3.0-rc.
|
|
204
|
-
|
|
205
|
-
**9.3.0-rc.
|
|
206
|
-
|
|
207
|
-
**9.3.0-rc.
|
|
208
|
-
|
|
209
|
-
**9.3.0-rc.
|
|
210
|
-
|
|
211
|
-
**9.3.0-rc.
|
|
212
|
-
|
|
213
|
-
**9.3.0-rc.
|
|
214
|
-
|
|
215
|
-
**9.3.0-rc.
|
|
216
|
-
|
|
217
|
-
**9.3.0-rc.
|
|
218
|
-
|
|
219
|
-
**9.3.0-rc.
|
|
220
|
-
|
|
221
|
-
**9.3.0-rc.
|
|
222
|
-
|
|
223
|
-
**9.3.0-rc.
|
|
224
|
-
|
|
225
|
-
**9.3.0-rc.
|
|
226
|
-
|
|
227
|
-
**9.3.0-rc.
|
|
228
|
-
|
|
229
|
-
**9.3.0-rc.
|
|
230
|
-
|
|
231
|
-
**9.3.0-rc.
|
|
232
|
-
|
|
233
|
-
**9.3.0-rc.
|
|
234
|
-
|
|
235
|
-
**9.3.0-rc.
|
|
236
|
-
|
|
237
|
-
**9.3.0-rc.
|
|
238
|
-
|
|
239
|
-
**9.3.0-rc.
|
|
240
|
-
|
|
241
|
-
**9.3.0-rc.
|
|
242
|
-
|
|
243
|
-
**9.3.0-rc.
|
|
244
|
-
|
|
245
|
-
**9.3.0-rc.
|
|
246
|
-
|
|
247
|
-
**9.3.0-rc.
|
|
248
|
-
|
|
249
|
-
**9.3.0-rc.
|
|
250
|
-
|
|
251
|
-
**9.3.0-rc.
|
|
252
|
-
|
|
253
|
-
**9.3.0-rc.
|
|
254
|
-
|
|
255
|
-
**9.3.0-rc.
|
|
256
|
-
|
|
257
|
-
**9.3.0-rc.
|
|
258
|
-
|
|
259
|
-
**9.3.0-rc.
|
|
260
|
-
|
|
261
|
-
**9.3.0-rc.
|
|
262
|
-
|
|
263
|
-
**9.3.0-rc.
|
|
264
|
-
|
|
265
|
-
**9.3.0-rc.
|
|
266
|
-
|
|
267
|
-
**9.3.0-rc.21 (harness
|
|
268
|
-
|
|
269
|
-
**9.3.0-rc.21 (harness
|
|
270
|
-
|
|
271
|
-
**9.3.0-rc.21
|
|
272
|
-
|
|
273
|
-
**9.3.0-rc.
|
|
274
|
-
|
|
275
|
-
**9.3.0-rc.
|
|
276
|
-
|
|
277
|
-
**9.3.0-rc.
|
|
278
|
-
|
|
279
|
-
**9.3.0-rc.
|
|
280
|
-
|
|
281
|
-
**9.3.0-rc.
|
|
282
|
-
|
|
283
|
-
**9.3.0-rc.
|
|
284
|
-
|
|
285
|
-
**9.3.0-rc.
|
|
286
|
-
|
|
287
|
-
**9.3.0-rc.
|
|
288
|
-
|
|
289
|
-
**9.3.0-rc.
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
1
|
+
# @quikit/quikpilot-runner
|
|
2
|
+
|
|
3
|
+
QuikPilot's CI runner. Invoked automatically by the `.github/workflows/quikpilot.yml` file QuikPilot
|
|
4
|
+
installs in an onboarded repository — it fetches the run's work packet, runs your setup/lint/test
|
|
5
|
+
commands, reports results to QuikTest, enforces the denied-path guardrail, commits, pushes, and
|
|
6
|
+
reports back to QuikTrack.
|
|
7
|
+
|
|
8
|
+
This package is not meant to be installed or run by hand. It exists so a fix to QuikPilot's runner
|
|
9
|
+
logic ships as a new package version rather than a new pull request into every onboarded repository
|
|
10
|
+
— the workflow file itself lives in your repository (QuikIT cannot update it directly), so it stays a
|
|
11
|
+
thin, ~25-line launcher that invokes an exact, pinned version of this package via `npx`.
|
|
12
|
+
|
|
13
|
+
It carries no secrets and needs none of your credentials: it authenticates to QuikTrack and to GitHub
|
|
14
|
+
using short-lived tokens exchanged at runtime, never a value baked into the workflow file or this
|
|
15
|
+
package.
|
|
16
|
+
|
|
17
|
+
## Versioning and support
|
|
18
|
+
|
|
19
|
+
Every workflow file pins an **exact** version of this package (`npx --yes
|
|
20
|
+
@quikit/quikpilot-runner@<version>`, never a range or `latest`) — a repository never picks up a new
|
|
21
|
+
release on its own. Older published versions are not removed from npm and keep working as long as a
|
|
22
|
+
repository's workflow file keeps pinning them; upgrading to a newer version only happens through a new
|
|
23
|
+
pull request into that repository (QuikTrack's "re-bootstrap" flow), never silently.
|
|
24
|
+
|
|
25
|
+
Releases follow [SemVer](https://semver.org/): a major version bump means the workflow file's own
|
|
26
|
+
shape changed (inputs, permissions) and requires a new pull request regardless of this package's
|
|
27
|
+
version; minor/patch releases are runner-logic fixes safe to pick up on the next re-bootstrap.
|
|
28
|
+
|
|
29
|
+
**9.2.0 — the AI can look at the code before it chooses which files to change (off by default).** Set
|
|
30
|
+
`QUIKPILOT_TARGETING_MODE: loop` in the runner step's `env:` and the targeting step stops guessing from the file listing
|
|
31
|
+
alone: over a few short turns it may use three read-only tools, `list_files`, `read_file` and `grep` (a plain-text
|
|
32
|
+
search, not a pattern), and then gives the same answer as before, which goes through the same checks. A denied path is
|
|
33
|
+
never read, listed, searched or counted; nothing outside the checkout and no symbolic link is followed; every limit
|
|
34
|
+
(turns, calls, characters read) is told to the AI as an ordinary answer, never an error. Each turn's
|
|
35
|
+
request is also kept under a ceiling of 90,000 tokens (counted conservatively: a path listing and non-ASCII text cost
|
|
36
|
+
far more than characters divided by four): a result that would push the next request over it is not sent, the AI is told
|
|
37
|
+
to answer with what it has, and if even that would not fit the run falls back to the single call. Characters read per run
|
|
38
|
+
are capped at 60,000. If the loop cannot finish
|
|
39
|
+
for an ordinary reason (an older runtime, a timeout, a malformed reply) the run falls back to the single call and says
|
|
40
|
+
so in its warnings; a protected path in the answer, or the runtime refusing the run itself, is never retried. The log
|
|
41
|
+
gains `targeting.loop_start`, `targeting.loop_turn`, `targeting.loop_refused`, `targeting.loop_done` and
|
|
42
|
+
`targeting.loop_fallback` lines, and the targeting record gains an optional `loop` field listing what was read (paths
|
|
43
|
+
and counts only, never content). Without the variable nothing changes. The workflow file is unchanged; the `env:` line
|
|
44
|
+
is the only edit, and it is optional.
|
|
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. A second attempt (below) 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
|
+
|
|
64
|
+
**9.2.0 (release candidates) — the code-writing loop tells the AI when a change breaks a JavaScript file (loop mode only).**
|
|
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,
|
|
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
|
|
67
|
+
declared twice, an `import` that is not at the top of the file, an unterminated string or a stray brace), a name that is not defined or
|
|
68
|
+
imported, or a `const`, `let` or class used higher up in the same function than the line that declares it. The change still applies, so the
|
|
69
|
+
AI can read the file at the reported line and fix it; the warning is a closed phrase and a line number, never file text. If the AI still
|
|
70
|
+
ends with such a file, the attempt is thrown away and is handled like any other ordinary failure (a second attempt; `syntax_error`
|
|
71
|
+
in the run record). Only what a change *introduces* is reported: a file that already had the problem, or that did not parse before (JSX,
|
|
72
|
+
Flow or decorators in a `.js` file), and TypeScript, JSX and every other language, are left alone; a new file is judged only once the
|
|
73
|
+
project's own files are known to parse, and a name the project's other files already use without defining (a global the build supplies) is
|
|
74
|
+
not reported. It does not find a wrong value, a wrong import path or any wrong behaviour; tests do. The log gains `syntaxWarnings` in the
|
|
75
|
+
loop record and a `codegen.loop_refused` line with `reason: "syntax_error"`. The parser and the scope analysis are bundled into the one file,
|
|
76
|
+
so the package still installs nothing. Off unless `QUIKPILOT_CODEGEN_MODE: loop` is set.
|
|
77
|
+
|
|
78
|
+
**9.2.0 (release candidates) — repository commands no longer see the runner's credentials (always on).** Your setup,
|
|
79
|
+
lint, format and test commands, and the baseline checks, run code nobody has reviewed yet (new tests, a dependency's install
|
|
80
|
+
script). They used to inherit the runner's whole environment, which includes the variables GitHub gives a job that has
|
|
81
|
+
`id-token: write` and the addresses the runner reports to. They now run with an allow-listed environment: the search path,
|
|
82
|
+
home and locale, proxy and certificate settings, the toolchain locations the `setup-*` actions export (`JAVA_HOME`, `GOROOT`,
|
|
83
|
+
`CARGO_HOME`, `pythonLocation`, `PNPM_HOME`, ...), and the non-secret `GITHUB_*` and `RUNNER_*` context such as
|
|
84
|
+
`GITHUB_WORKSPACE`. Withheld: `ACTIONS_*`, `GITHUB_TOKEN`, the files that steer later steps of the job (`GITHUB_ENV`,
|
|
85
|
+
`GITHUB_PATH`, `GITHUB_OUTPUT`, `GITHUB_STATE`, `GITHUB_STEP_SUMMARY`), anything whose name reads like a credential, and the
|
|
86
|
+
runner's own inputs (`TOKEN_URL`, `RUN_ID`, ...). The job log says once, by name only, how many variables were withheld. A
|
|
87
|
+
command that needs a variable outside the list will no longer find it. The workflow file is unchanged. This is the second layer
|
|
88
|
+
of QUIKTR-1502; the first is that QuikTrack accepts one token exchange per start of a run.
|
|
89
|
+
|
|
90
|
+
**9.2.0 (release candidates) — the AI can look at the code and edit as it writes it (off by default).** Set
|
|
91
|
+
`QUIKPILOT_CODEGEN_MODE: loop` in the runner step's `env:` and the code-writing step stops making one blind call per file:
|
|
92
|
+
over several short turns the AI may use five tools, the three read-only ones above plus `edit_file` (replace one piece of
|
|
93
|
+
text in an existing file; the text must match exactly one place) and `write_file` (create a new file). Every change is held in
|
|
94
|
+
memory and nothing is written to the checkout until the AI says it is finished, and then the result goes through exactly the
|
|
95
|
+
checks a one-file-at-a-time run goes through (scope, overlap, test placement, format, lint, the regression gate, the
|
|
96
|
+
coverage check, protected paths). A test file that already existed may only be added to: every character of the matched text
|
|
97
|
+
must stay, in the same order, and the only change is one block of whole new lines that declares a new test (`it`, `test` or
|
|
98
|
+
`describe`) or new `import` lines, placed before the matched text, after it or between two of its lines (JavaScript and
|
|
99
|
+
TypeScript files; other languages keep the older rule of new text before or after the match). Anything else is answered
|
|
100
|
+
`protected`, an ordinary result the AI reads and tries again from, so a test is never weakened to make code pass. Before its first turn the loop is shown the files the plan named for each target, then the EXISTING TESTS of the code it will change (the test file beside each code target, and each existing test target itself, as LF text so an edit can match it), then the files each existing target imports
|
|
101
|
+
(one hop, JavaScript and TypeScript, the same scan and the same limits as the one-file-at-a-time path: 40,000 characters a file
|
|
102
|
+
and 60,000 in all, never a denied path, never the targets themselves), so the project's own names, values and rates are in front
|
|
103
|
+
of it instead of being guessed; the run's context record lists them like the one-file path's. The AI cannot finish before it has
|
|
104
|
+
changed something and written a test for every case it was given. If the loop's first attempt cannot finish for an ordinary reason (a
|
|
105
|
+
timeout, a refused edit it cannot recover from, a cut-short file) everything it held is thrown away and the runner makes ONE more
|
|
106
|
+
attempt of the same loop from a clean start (9.3.0-rc.11, QUIKTR-1544); see "One code-writing path" below. A budget or credential
|
|
107
|
+
refusal from the AI Runtime is never retried (a second attempt would be refused again or paid for twice). A protected path is refused to the AI as an
|
|
108
|
+
ordinary answer, never read, listed or written, and the run carries on. Limits are told to the AI as ordinary answers: 20 turns, 40 actions, 60,000 characters read, 120,000 written, and the
|
|
109
|
+
same 90,000-token ceiling per turn. The callback gains an optional `codegenLoop` record (paths, counts, statuses and the AI's
|
|
110
|
+
short note per step; never file text) that QuikProjects shows as "What QuikPilot did". Without the variable nothing
|
|
111
|
+
changes. The workflow file is unchanged; the `env:` line is the only edit, and it is optional. The AI Runtime must have
|
|
112
|
+
`PILOT_CODEGEN_LOOP_ENABLED` on; while it is off (or the runtime does not have the loop at all) the runner writes the files one at a time,
|
|
113
|
+
as before, and says so in the run's warnings. That is the ONE case that still does.
|
|
114
|
+
|
|
115
|
+
**9.3.0-rc.11 — one code-writing path (QUIKTR-1544).** When the loop's first attempt ends without a result (and the AI Runtime has the
|
|
116
|
+
loop), the runner makes ONE more attempt of the same loop, from a clean start (a new in-memory overlay, the same per-attempt limits, three
|
|
117
|
+
`run_tests` runs per attempt, the baseline test run shared), and tells it how the first one ended in `loop.previousAttempt` (needs the AI
|
|
118
|
+
Runtime from the same release): the attempt number, a closed reason word, a short sentence, the last test result the AI saw, and the rule
|
|
119
|
+
words its replies broke. NOTHING NEW LEAVES: only what the AI Runtime already received during this run. The short sentence is built from
|
|
120
|
+
closed words (the ids of the test cases never written, the file the AI itself broke with a fixed phrase and a line number, the AI's own
|
|
121
|
+
summary when it said it could not complete); the names the truncated-rewrite check reads from the original file are never sent. If the
|
|
122
|
+
second attempt ends without a result too, the run FAILS with a plain reason and both attempts in the record; nothing is written and the
|
|
123
|
+
files are not written one at a time. A checkout that did not come back identical ends the run before any second attempt. Both attempts
|
|
124
|
+
share ONE clock of about 30 minutes, test runs included (the pilot job is cut at 45); a second attempt starts only when the time left is at
|
|
125
|
+
least as long as the first took, one run of the project's tests when they are on, and never under 3 minutes. The record keeps the
|
|
126
|
+
attempts and tells a run the clock ended (`out_of_time`) from one where the AI could not do it (`failed`). The log carries
|
|
127
|
+
`codegen.attempt_start`, `codegen.attempt_end` and `codegen.attempt_skipped` lines with counts and closed words only, and the second
|
|
128
|
+
attempt's start says which of the three additions to what it is told it carried (`hasDetail`, `rulesCount`, `hasLastTestRun`).
|
|
129
|
+
|
|
130
|
+
**9.3.0-rc.12 — the early look, and a warning for a field nothing supplies (QUIKTR-1545).** Two additions, both off unless QuikProjects
|
|
131
|
+
and the AI Runtime switch them on, and neither changes a run that does not use them.
|
|
132
|
+
|
|
133
|
+
*The early look (`MODE=investigate`).* Before the first question QuikProjects can dispatch the same workflow with `mode: investigate` and
|
|
134
|
+
`run_id: investigate:<run id>`. This mode is READ-ONLY: it exchanges the OIDC token for a run token whose only scope is
|
|
135
|
+
`pilot:investigate`, fetches a small packet (the person's report, the denied paths, the gateway), checks out the repository, and runs a
|
|
136
|
+
three-tool loop (`list_files`, `grep`, `read_file`) with at most 8 turns, 60 seconds for a turn and 120 seconds in all. It never installs,
|
|
137
|
+
runs the project's tests, commits or pushes. Extra paths are denied on top of the project's own (`**/.npmrc`, `**/*.pem`, `**/*.key`,
|
|
138
|
+
`**/*.tfvars`, `**/*credentials*.json`, `**/docker-compose*`), and everything it reads is scrubbed of secret-shaped text before the AI sees
|
|
139
|
+
it: five recorded kinds (`credential`, `private_key`, `cloud_key`, `url_credentials`, `assigned_secret`), COUNTED and never shown. The AI's
|
|
140
|
+
answer is checked, not trusted: every path must be in the checkout and not denied, every cited line must be one the AI really saw, every
|
|
141
|
+
symbol must occur in text it really read, and "not found" needs the zero-hit searches on record; otherwise the verdict becomes
|
|
142
|
+
`CANNOT_TELL`. The runner reports ONE record to QuikProjects (paths, line numbers, short names, the commit it read and counts; never file
|
|
143
|
+
text) or a closed failure reason. An unknown `MODE` now stops the job instead of falling into a full run, which is what keeps an old
|
|
144
|
+
template from ever treating the look as a run. The AI Runtime needs `PILOT_INVESTIGATE_ENABLED`; if it is off the look ends at once as
|
|
145
|
+
`switch_off` and the run goes on without it.
|
|
146
|
+
|
|
147
|
+
*A field nothing supplies.* After the code is written, the runner looks at the functions a change adds or changes in JavaScript files
|
|
148
|
+
(not tests). If one reads a field of its input that appears nowhere else in the project's non-test text and nothing in the change supplies
|
|
149
|
+
it, the callback carries it as `unsuppliedInputs` (at most 10 functions, 5 names each) and QuikProjects lists it under "What QuikPilot
|
|
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
|
+
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
|
+
|
|
153
|
+
**9.3.0-rc.36 — the run record says what each step cost and what it could touch (QUIKTR-1582, S7).** Each loop turn now records its request size by part (the list of files or the repository summary, the test cases, the task, earlier answers, the AI's notes, the fixed instructions; the runner's own estimate) and what the AI Runtime said the call used (`tokensInput`, `tokensOutput`, `costEstimateUsd`, `latencyMs`), at most 30 rows per loop; each step's record also carries its totals over the whole job (every attempt, phase and fix). The record says which folder the run could change and which it could read, and its largest request, in the list view too (before, only in map mode). The report back carries `aiCostUsd`, the sum of the AI Runtime's cost estimate over every AI call of the job (the estimate leaves out the model's thinking; the early look's own cost is not included). The early look's first call now waits up to 150 seconds (it was 60), so a cold AI service no longer ends it at once; QuikProjects waits about 200 seconds for the whole look, so it cannot wait longer. Numbers only: no text from a request or a reply is kept.
|
|
154
|
+
|
|
155
|
+
**9.3.0-rc.37 — the AI always sees what it just read (QUIKTR-1582, S7).** In map mode the code-writing loop trims old read outputs once a request passes a soft target, to keep turns small. That target was a flat 40,000 estimated tokens, and the trim also took the outputs of the turn just finished, before the AI had seen them. On a big repository the loop's first request alone can weigh about 36,000 (the summary, the context files, the cases), so every read went over the target and was dropped unseen: in the first S7 trial on the QuikIT fork the AI read the same three files 27 times and wrote nothing. Now the soft target is the first request plus room for 20,000 tokens of reads (at least 40,000, never above the ceiling); the soft trim only takes outputs the AI has already been shown; and an output it has not seen is dropped only when nothing else makes the request fit the ceiling, after the text of old writes is shortened. That last case answers "Too large to send with the rest of this request. Read a smaller part of the file." and logs `codegen.read_dropped_unseen`. Listing mode keeps the ceiling as its only target, with the same order.
|
|
156
|
+
|
|
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
|
+
|
|
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
|
+
|
|
163
|
+
**9.3.0-rc.45 — a changed test that still says the old behaviour is noted on the decision page (QUIKTR-1832).** On 25 Oct the approved proposal for the "logged-in users get 401" bug changed what a test expects (`toBe(401)` to `toBe(200)`) and left its title, "returns 401 when there's no bearer token at all", and a comment saying the old behaviour. The runner already lets a proposal change a test's title and comments, so it cannot refuse that; it now notices. For each changed test it takes the string and number values (numbers of three digits or more, or with a decimal point) that the edit removes, drops any the new test still uses in its own code or that the replacement itself writes, and checks whether one is still in the test's new title or in a comment inside it. When one is, the proposal commit gets a readable `Note:` line and an optional `stale` key (`tokens`, `inTitle`, `commentLines`, at most 4 values of 60 characters and 6 lines) on that test's machine-readable line; an older reader ignores it, and a line whose note is malformed is dropped like any other malformed line. It is a note for the person who approves, never a rejection, and nothing is added to the report back to QuikProjects. The AI Runtime of QUIKTR-1832 also asks the AI to change the title and comments in the same edit. Also in rc.45: everything in rc.44. Nothing else changes.
|
|
164
|
+
|
|
165
|
+
**9.3.0-rc.46 — the existing tests to read first include the ones that reach the code through one file in between (QUIKTR-1845).** On the live bug-6 run (QTRIA-17) the design changed `lib/services/issueFilters.ts`, and the two tests that assert the bug import `app/api/issues/route.ts`, which imports it, so the list of existing tests the AI reads before writing (`testsToCheck`, rc.44) was empty. When fewer than 3 test files are found by name or a direct import, the runner now takes one more step: of the files the tests import (code, not a test, not under a denied path; the 150 most shared first) it keeps the ones that import a changed file, and adds the tests that import them, after the others and up to 10 in all. A file in between imported by more than 12 tests only brings the tests named after it (a route by its folder) or after the changed file. Paths only, as before. With 3 or more found the list is exactly as in rc.45. Also in rc.46: everything in rc.45. Nothing else changes.
|
|
166
|
+
|
|
167
|
+
**9.3.0-rc.59 - a throwaway test, run once, its output shown (QUIKTR-1702, contract section 44 `codegen-loop-9`).** Before it writes an expected value the AI sometimes needs to SEE what the code really returns. `call_function` could show it, but only for a plain .js file, one function and plain data, on our own repositories: nothing for a Go, Python or Java project. The new tool `run_scratch {path, content}` has the AI name a NEW test file (named the way the project names its tests, in a folder that exists, never a file that exists) and give its text. The runner writes it next to the AI's changes, runs the space's own "Test one file" command on it once (`commands.testFile`, the path quoted, the same environment allow-list, credential scrub and process-group kill as `run_tests`, 60 seconds), puts the checkout back exactly, and answers with ONE string: `exit N`, then the END of what the run printed (stdout and stderr together, colour codes removed, credentials scrubbed, at most 2,000 characters in all). The AI supplies a file and its text, never what runs it: no command, no interpreter, no flag. The scratch file goes to disk through the overlay window as one extra file and never through the loop's overlay, so the syntax guard, the hunk and scope checks, `show_changes`, the proof run and the proposal never see it, and a scratch answer is never evidence that a test fails. It shares the eight `functionCalls` with `call_function`, and a repeat of the same file on the same change is answered as a duplicate and spends nothing. Offered only when fix first is on (loop-9 is loop-8 plus the tool), the space has a one-file command, and the repository is ours (`deathvadeR-afk`, section 28.2 unchanged) or the workflow sets `QUIKPILOT_RUN_SCRATCH=on` (a trial space); `QUIKPILOT_RUN_SCRATCH=off` closes it everywhere. Needs the AI Runtime of QUIKTR-1702 (`codegen-loop-9`, its own flag); an AI Runtime that refuses it is asked again as `codegen-loop-8`, then `codegen-loop-7`. Logs and the run record carry counts and closed words only (`codegen.run_scratch`: status, reason, exit code, seconds, length), never the path, the text or the output. Also in rc.59: everything in rc.58. Nothing else changes.
|
|
168
|
+
|
|
169
|
+
**9.3.0-rc.60 - credential files of every language stay away from the AI (QUIKTR-1703).** QuikPilot hid the npm credential file (`.npmrc`) and a few other secret-shaped files, but a Python, Java, Rust, PHP, Ruby or .NET project's own login files were open to the AI, and the last-line scrubber knew only JavaScript-style secrets. (1) Files that hold nothing but logins or keys are never read, listed, searched, edited or created, whatever the project's Protected paths say: `.pypirc`, `pip.conf`, `.netrc`, `.yarnrc(.yml)`, `.cargo/credentials`, `.gem/credentials`, `.bundle/config`, Maven `settings-security.xml` and a `settings.xml` at the root or under `.mvn`/`.m2`, Composer `auth.json` at the root, `.aws/credentials`, `.docker/config.json`, `.kube/config`, Terraform state, `.htpasswd`, private keys and key stores. The names are exact and anchored, so `locales/en/auth.json` stays readable. Nothing under `.git` can be written. (2) The edit, write, show and revert tools use the read list as well: a file the AI may not see is not one it can probe through an edit answer (`ambiguous` quoted the line before each match; `no_match` against `ok` told a guess from a hit). A credential file or a file it may not read is no target and no context file either. (3) The file listing sent to the AI service leaves out every file the AI may not read (it was the raw list); the runner keeps the whole list for its own checks. (4) The scrubber has a `config` mode for configuration files (properties, ini, cfg, conf, toml, yaml, xml, `.env*`, `appsettings*.json`): `repoPassword=x`, `password = x`, `<password>x</password>`, `Password=x;` inside a connection string, a NuGet `ClearTextPassword` are redacted and the name stays; translation files and code are read as before. It also hides npm, PyPI, GitLab and Docker Hub token shapes in every mode. The recorded words do not change. (5) The command environment passes a few more settings with no secret in them (`GOPRIVATE`, `VIRTUAL_ENV`, `PYTHONPATH`, `NODE_ENV`, `RUSTFLAGS`, `CARGO_TARGET_DIR`, `NUGET_PACKAGES` and kin); `GOPROXY`, `PIP_INDEX_URL`, `UV_INDEX_URL`, `MAVEN_OPTS`, `JAVA_TOOL_OPTIONS`, `GRADLE_OPTS` and `RUSTFLAGS` pass only when their value carries no login; and npm's base64 login (`NPM_CONFIG__AUTH`) no longer slips through the allowed `NPM_CONFIG_` family. Never a wildcard: `BUNDLE_*`, `COMPOSER_AUTH` and the registry token variables stay withheld. No change to the contract with the AI service.
|
|
170
|
+
|
|
171
|
+
**9.3.0-rc.61 - the AI sees why its own test failed in every language, and is told when what still fails was already failing (QUIKTR-1950, QUIKTR-1962).** (1) `run_tests` and the final test check show the first line (the whole failure under the harness version) of a failing test THIS run wrote. Until now that worked only where the report names a test by its file path (JavaScript); a pytest module, a Java class, a C# namespace and a Go package are not paths, so the AI saw only the test's name and guessed (the sqlparse trial logged `messages: 0` on every run). Such a test now counts as the run's own when its module or package lines up with a file the run changed (the rule that links a declared test to its report entry) AND the test, with any row suffix cut off, is defined in that file's text as a whole word. With no file text nothing is added; a JUnit 5 display name is never linked; an existing test that now fails stays names-only. (2) When no test that passed before fails now and no test that is new in this run fails, but tests are still red, the answer says that every failing test was already failing before the change, and the "same as last run" wording and the `no_progress` stop no longer apply to it (a clean change on a repository with old failures could never reach `tests_passed`). The status stays `tests_failed`; the final gate and the regression check are unchanged. The `codegen.run_tests` log event gains `own` (how many failing tests were shown to be the run's own) and `clean` (a flag), counts only. No change to the contract with the AI service.
|
|
172
|
+
|
|
173
|
+
**9.3.0-rc.62 - an approved test that is reported again is refused with what to do (QUIKTR-1951).** When a person has approved a change to an existing test and the AI reports that test again before the final test run (a second row of a table test that still expects the old behaviour), the answer was only `already_decided`: "Do not report it again". It now also says what the AI can do: finish the code first, and if rows of that test still fail in the final test run, the fix step that follows may report the test once more (QUIKTR-1844). Nothing about WHEN a test can be reported changes, so a person is still asked only when there is evidence; a test a person judged right, or reported in another file, keeps the bare refusal exactly. A new log event `codegen.conflict_refused_approved` (phase only) counts how often it happens. No change to the contract with the AI service. The AI Runtime's QUIKTR-1952 (a hung OpenRouter call is cut at 150 s for QuikPilot calls, so the backup model answers inside the runner's turn limit) ships with this version and needs no runner setting.
|
|
174
|
+
|
|
175
|
+
**9.3.0-rc.76 - in a feature run, an existing test the change breaks only because it lacks set-up for the new code may get that set-up, add-only, for a person to approve (QUIKTR-2442).** In the live trial of 9 Nov 2026 (F7, "Show the number of comments on each task card") the AI added a comment query to the board's issue list, and two route tests whose pretend database answered nothing for it got 500. No change to their expected values could fix them, a report could change only expected values, and the one-line set-up that does fix them passes on the code before the run too, so the check at the stop would have dropped it; the AI took its change back and the feature was not built. With `QUIKPILOT_FEATURE_TEST_UPDATES=on`, for a feature (`packet.requestKind` TASK, STORY or EPIC) where QuikProjects can ask, the loop sends `featureTestUpdates: true` (only where it offers the conflict tool, never in the tests phase or the one amendment; an AI Runtime that refuses the key is asked the same version again without it, the tests phase kept) and a report may also be an ADD-ONLY update of set-up: in the test, in shared set-up of its file, or in a test helper (`testPath` then names the broken test's file; a helper must exist and be a test file, sit in a test folder or be `conftest.py`, never a file of the product). The add-only rule (`setupAdded.ts`; JavaScript and TypeScript through the runner's own parser, Python, Go and Java through tree-sitter): every statement that was there unchanged and in order, an object, dict, map or struct literal may gain new keys, an added line may only be a call, a declaration of a new name or a check; control flow, a name that hides one the file uses, arranging again a mock the code arranges, skips, mock resets and module re-mocks, assignments to what exists and any change to a test's frame but its title are refused. Before every stop the loop proves it on the whole suite: the test is a regression of the change as it stands (a run made before the AI changed its files, a revert above all, no longer counts), and with the change and every proposal it passes and no test that passed before fails. The stop then keeps an add-only update as `broken_by_change` (or `old_code` when it fails on the code before the run) and drops it otherwise, out of time included; a report that kept to today's rule is judged exactly as before (fails on the old code: `old_code`; passes: dropped; cannot tell: kept, not checked, with no proof, so its callback item is today's). The commit line gains `proof`, `testPath`, `fixes` and `usedBy`, the callback item `proof`, `setupFor` and `usedBy`, and the rerun re-checks a line with a proof by the add-only rule whatever the switch says. The give-up send-back, the recorded answer and two refusals have feature words ("Keep your change ... never revert it"), none says "bug". New tests: the add-only matrix per language (`setupAdded.test.ts`), the tool, the classification and the one matcher, the commit line and callback, approvals with and without a proof, the key on the wire, the fallback, the fix, the run's switch, and the F7 shape end to end on real git repositories with vitest (in the test, shared set-up, a helper; a revert before the report; an update that breaks another test; switched off), `go test` and pytest (Java at the tree only: no JDK on the build machine). Thirteen mutations turn tests red. Switched off, or a bug run, every request, message, check, commit line and callback is what it was.
|
|
176
|
+
|
|
177
|
+
**9.3.0-rc.76 also - the last gate's stop is worded apart from the code step's (QUIKTR-2444).** In the live trial of 9 Nov 2026 (F7, QTRIA-51) the AI gave up, its change was kept, and the last gate before the commit failed the run with "A part of the feature was not built: P2 ...": the same words as the code step's stop, which only comes after the AI was sent back once. QuikProjects therefore explained it as "even after it was sent back once to add it", which had not happened. The last gate's stop now starts "The last check before the commit found a part of the feature not built:" (`LAST_GATE_MISSING_START`), naming the parts exactly as before; the code step's stop keeps "A part of the feature was not built:". Reason word (`part_missing`), logs and everything else unchanged. Tests in `partsCheck.test.ts` and `run.parts.test.ts` fail on the first rc.76 commits; two mutations (the last gate using the code step's words, and the reverse) turn tests red.
|
|
178
|
+
|
|
179
|
+
**9.3.0-rc.76 also - a feature that needs a new stored value is written, and its database change is proposed for a draft pull request (QUIKTR-2445).** Until now a feature whose design lists a stored value the code does not have stopped before any code (`needs_database_change`): the value's definition lives where QuikPilot may not change anything. Behind the same switch, `QUIKPILOT_PARTS_CHECK=on` (no new one), targeting is now sent `storedProposals: true` (last, only with `partsCheck` and a stored part) and may mark such a part `[P5=proposed]` in a step that uses the value (stored parts only; a plain mark comes first, then `=proposed`, then `=exists`). Where the run can carry the proposal (the harness, `loop-tests`, with `.quikpilot/database-change.json` not a file of the repository) that part is no stop; anywhere else, and for a stored part left unmarked, the run stops exactly as before, with today's sentence. The writing step sends `databaseChange: {path: ".quikpilot/database-change.json", parts: [{id, name, what}]}` on the harness versions only, outside the tests phase and the one amendment; the AI writes the code as if the value exists and writes the proposal WHOLE with `write_file` to that path (`parts`, `additive`, `why`, `schemaFile`, `schemaChange`, `migrationFile`, `migration`, `undo`, `apply`, held to the shared caps by `readProposal`, which answers anything else with one fixed sentence that never echoes it). Every call on that path is caught before any tool runs (`DatabaseChangeNote`, `databaseChange.ts`): a readable write is recorded (`ok`; the same text again `no_effect`; unreadable `bad_args`, the earlier one kept), a look, an edit or a revert is refused (`database_change_note`, "write it whole again"), and where the key is not in effect every call on it is refused; each counts against the budgets. The note is never in the workspace or on disk, so the results, `run_tests`, the flush, the scope check, the guardrail and the commit never see it. Where the space lets QuikPilot change the schema file and the migrations, the AI also makes the real changes under the normal write rules (the stored part is then placed with a plain mark). A DONE where the key is in effect (the code phase, or a loop of one phase) must name every database part in the proposal, and a placed one must also have changed its file: one send-back on the parts' own counter (`Part P2 (stored) "Comment pinned state" is not in the database change: write it with write_file to .quikpilot/database-change.json, with P2 in "parts".`), then `part_missing` (`A part of the feature was not built: P2 Comment pinned state (stored, the database change was not proposed).`); the last gate holds the final change to the same rule with the run's recorded proposal, in its own words (`The last check before the commit found a part of the feature not built: P2 Comment pinned state (stored, the database change was not proposed).`). An AI Runtime that refuses the key, or a step that would fall back below the harness, stops the run `needs_database_change` with today's sentence; a fix keeps the key only while no proposal is recorded (then the note stays closed), and records one it writes; the one amendment carries the code phase's. A completed run that pushed its branch sends the callback field `databaseChange`: the parts with their names, `additive`, `declaredAdditive`, `flagged`, the texts with the job's credentials scrubbed out, and, from the FINAL tree, `schemaFileIncluded` and `migrationFileIncluded` (changed, inside the write folder, not denied: what the pull request holds, never what the proposal claims) and `schemaFileSeen` (whether this run could read the schema; in listing mode one outside the write folder never is); QuikProjects opens that pull request as a draft with the change at its top. `additive` is the AI's declaration unless a safety-net scan of the forward change (`migration` and `schemaChange`, never `undo`) finds a word that removes or changes data (SQL, Django, Rails, Alembic, Knex, TypeORM, Sequelize, Laravel, Ecto); it never turns a declared `false` into `true`, and a change that is not additive still completes (the site shows it red). New tests: the marks, their order and the stops (`partsCheck.test.ts`), the proposal's every refusal, the destructive-word fixtures for Prisma SQL, Django, Rails, Alembic, Knex, TypeORM, Sequelize, Laravel, Ecto and Go SQL, the note's calls and the callback's field (`databaseChange.test.ts`), the loop, the fix, the amendment and the refused key (`codegenLoopParts.test.ts`), the run (`run.parts.test.ts`), the targeting key and the callback, and end to end on real git repositories with vitest (`codegenStep.databaseChange.test.ts`: text only, schema and migration written, the mixed shape of QuikIT in one phase, not additive, no proposal, switched off). Sixteen mutations turn tests red (the `=proposed` mark read as none; a `=proposed` part no stop outside the harness; a proposed part built without a proposal; the note let through to the workspace; no destructive word found; the scan clearing a declared false; the targeting key or the codegen key sent where it must not be; included taken from the claim; the field on a failed run; the refused key stepping back a version; the code step's failure in the last gate's words; `undo` scanned; a fix after a proposal keeping the key; the amendment dropping the proposal; stepping back to loop-2 with database parts). Switched off, a bug run, a feature with no stored part, or a stored value marked `=exists`: every request (three request hashes pinned on the QUIKTR-2444 tip, one through real vitest), the callback and the pull request path are what they were.
|
|
180
|
+
|
|
181
|
+
**9.3.0-rc.75 - a part of a feature planned only in test files counts as built when one of them changed (QUIKTR-2325).** In the live trial of 9 Nov 2026 (F5, run cmw8rufpl0002hmgg02h2zkh7, "Show 20 expenses per page by default instead of 10.") the design listed "Existing default page size test" as a part, targeting planned it in the only file it could (`src/history.test.js`), and the person approved changing that test at the test decision. Both attempts still failed `part_missing` ("P4 Existing default page size test (logic, planned in src/history.test.js)"), because since rc.71 a changed test file never builds a part, so a part planned only in tests could never pass. Now a part whose planned files are all tests (the loop's own test rule) is built when one of them changed or was created; a part with any other planned file still needs one of those changed, and a test file alone still never builds it. The same rule holds at the code phase's DONE and at the last gate before the commit. The AI Runtime is told in the same release not to list a test or a test update as a part. New tests in `partsCheck.test.ts` (the F5 shape fails on rc.74; a test-only part none of whose files changed; a part planned in a source file and a test, only the test changed); two mutations (the rule removed; any planned test file counted) turn tests red. Switched off (`QUIKPILOT_PARTS_CHECK` not `on`), nothing changes.
|
|
182
|
+
|
|
183
|
+
**9.3.0-rc.74 - a line that calls an endpoint is no longer read by the scope check as a new route (found in the QUIKTR-2325 trial).** In the live trial of 8 Nov 2026 (F4, run cmw7okqnl0002d4d1hco1nqey) the AI built every part of the feature and 74/74 tests passed, then the run failed "public/index.html adds POST /api/groups, not declared in the design's API changes": the page's new Restore button calls the new endpoint with `fetch(`/api/groups/${groupId}/expenses/${expenseId}/restore`, { method: "POST" })`, and the scope check (QUIKTR-1081), which reads any added line naming a method and a path as a route being added, took that call for one. The design had named the endpoint in words only, so nothing matched it. A call uses a route, it cannot add one, so a line that calls an endpoint is now passed over: any `...fetch(` (fetch, useFetch, $fetch), axios, jQuery's ajax/get/post, XMLHttpRequest and its `open("POST", ...)`, an `http.` client call (Node, Angular's HttpClient, Go's Get/Post/NewRequest), Python's requests and httpx, Java's `HttpRequest.newBuilder`, and curl. A route defined on a server is still held to the design as before (`app.post(...)`, `router.post(...)`, `@app.route(..., methods=["POST"])`, `mux.HandleFunc("POST /...")`, `req.method === "POST"`, and the documenting comment of the original incident), and a file that both calls one route and defines an undeclared one still fails, naming only the defined one. New tests in `scopeCheck.test.ts` (the F4 line, thirteen client calls, six server definitions, and the mixed file) fail on rc.73 where they should; two mutations (the rule removed; any `.post(` counted as a call, which swallows Express and router routes) turn tests red. Not behind a switch: it changes only which added lines the existing scope check reads.
|
|
184
|
+
|
|
185
|
+
**9.3.0-rc.73 - an endpoint part no longer needs a route line in the added code; every part of a feature counts as built when a file planned for it changed (QUIKTR-2325).** In the live trial of 8 Nov 2026 (run QUIKSPL-370) the AI built every layer of a feature: a new POST restore route in `src/server.js` and a "Recently deleted" section in `public/index.html`. The run still failed in both attempts with "P3 Expense restore action (endpoint, no route added in src/ledger.js, src/server.js)", because an endpoint part also needed a route line in what its planned file added. That rule refused correct changes: the part's name gave no method or route (the request never named one), QuikSplit writes a route over two lines (`match("api/groups/:id/expenses/:itemId/restore", parts)`, then `method === "POST"` on the next line), and a change to an EXISTING endpoint (a filter added, a field added to its answer) adds no route line at all. Now every part, endpoints included, counts as built when one of the files targeting marked for it (`[Pn]`) was changed or created and is not a test file; targeting sees the code and ties each endpoint part to its file. The same rule holds at the code phase's DONE and at the last gate before the commit. A part none of whose planned files changed still gets the one send-back, which says none of its planned files was changed and names them, and then fails the run `part_missing` ("A part of the feature was not built: P1 … (endpoint, planned in …)."); a changed test file still builds no part. The last gate now reads only which planned files changed (`git status`), not their added lines, and the scope check's route helpers are private again, as in rc.70. Removed tests that asserted the route-line rule; new tests in `partsCheck.test.ts`, `codegenLoopParts.test.ts`, `run.parts.test.ts` and `finalChange.test.ts` (QuikSplit's two-line route, an existing Next.js handler changed in place, a name with no method or route, a change that only took lines out, and the trial's F4 shape passing DONE and the last gate) all fail on rc.72. Two mutations (a route requirement put back for endpoints; a test file counted as building a part) turn tests red. Switched off (`QUIKPILOT_PARTS_CHECK` not `on`), nothing changes.
|
|
186
|
+
|
|
187
|
+
**9.3.0-rc.72 - a stored value the code already has, marked `[Pn=exists]` by targeting, no longer stops the run; only a new stored value QuikPilot cannot add here does (QUIKTR-2326).** In the live trial of 8 Nov 2026 a feature's design listed a stored part for a value that is already in the code ("The existing deleted state on an expense"). Nothing needed building for it, so targeting left it unmarked, and the run stopped before any code with "This feature needs a stored value QuikPilot cannot add here": a false stop. With the AI Runtime change that ships alongside, targeting marks such a part `[P5=exists]` at the start of a plan step that uses it (lower case `exists`; only a stored part may carry it). Behind `QUIKPILOT_PARTS_CHECK=on`, the runner now reads that mark: a stored part marked `=exists` is not a stop, and it is left out of the parts the code phase's DONE and the last gate before the commit hold the change to, so neither asks for a value that is already there to be built. Everything else is what it was: a stored part marked plainly (`[P5]`) must be built like any part, even when it also carries `=exists`; a stored part with no mark at all still stops the run `needs_database_change` with the same sentence; a part of any other kind whose only mark is `=exists` counts as unmarked and stops the run `part_not_placed`; a mark with any other ending (`[P5=foo]`, `[P5=EXISTS]`) is no mark. The log names the stored parts taken as already there (`parts_check.after_targeting`: a count and the ids, plus `ignored` for an `=exists` mark on a part that is not stored), only when there is one; never a step's text. Switched off, nothing changes. New tests in `partsCheck.test.ts`, `run.parts.test.ts` (the F4 shape: a screen, two endpoints and the page's data marked plainly and the stored value `[P5=exists]` goes on to write the code and commit, in two phases and in one) and `codegenLoopParts.test.ts`; three mutations (`=exists` read as a plain mark, the stored-only rule dropped, the existing part kept in the code phase's parts) all turn tests red. Until the AI Runtime sends `[Pn=exists]`, the run is what it was in rc.71.
|
|
188
|
+
|
|
189
|
+
**9.3.0-rc.71 - a feature's parts must each be built before a pull request, a feature needing a database change stops before any code, and the files left out of a pull request are named (QUIKTR-2325, QUIKTR-2326).** In Round B (8 Nov 2026) pull requests opened for features with only one layer built and said nothing was wrong: F4 built two inner functions and never the route or the page section, F7 a card nothing feeds data, F8 used a database field that does not exist. With the AI Runtime's design step asked for them, a feature design now lists its `parts` (`P1`..`P8`, each `endpoint`, `screen`, `data`, `stored` or `logic`, with a name and what it is for), and targeting marks the plan step that builds each one (`[P2] add the restore route`); a stored value whose definition is outside the folder the run may change is left unmarked. Behind `QUIKPILOT_PARTS_CHECK=on` (off by default, read once; `parts_check.on` in the log) the runner then: (1) sends targeting `partsCheck: true` with the design as it is, and only then: otherwise `design.parts` is taken out, so the request is byte for byte rc.70's; (2) after targeting and before any code, stops the run when a part has no marked step: a stored part as `needs_database_change` ("This feature needs a stored value QuikPilot cannot add here: <name> — <what>. Add the field and its migration first, or narrow the feature."), any other as `part_not_placed` ("No file was planned for a part of the feature: <id> <name> (<kind>). Nothing was written. Run it again, or narrow the feature."), reported like a refused plan (a failed run whose reason is that sentence; no code, no commit, no pull request); (3) at the code phase's DONE (two phases only), holds each part to a changed or created file among its marked files that is not a test, and an endpoint to a route line with its method (and its route, when the name gives one) in what that file added, read with the scope check's own route patterns (the route-line rule was dropped in rc.73). A part missing gets ONE send-back (rule `done_rule`, a sentence per part naming its planned files, its own counter, never on a final turn), then the attempt fails `part_missing`, and the run's reason starts "A part of the feature was not built:" with the parts and their files; (4) just before the commit, after every fix and the project's Format, holds the FINAL change to the same rule once more, read from the working tree against the checkout's commit (`git status`, then each part file's added lines, no longer read since rc.73; a new file's whole text; the loop's own test rule), which also covers a give-up whose change was kept, one phase and the per-file calls: a part missing fails the run with the same "A part of the feature was not built:" reason, no commit, no push, no pull request (`parts_check.final` in the log). The parts never reach the tests phase, the one amendment, a fix or the review fix, and are never sent to the code-writing AI; logs carry the word, counts and ids only (`codegen.parts_check`, `parts_check.stop`). Always on, reporting only: the note about files a scoped stage left out now names them (at most ten), "2 changed files outside apps/x were left out of the pull request (changed while the project's commands ran): a, b + 1 protected file."; a protected file (the project's denied paths, credential, secret-shaped, other-ecosystem lock and git files) is counted, never named. New tests in `partsCheck.test.ts`, `codegenLoopParts.test.ts`, `targeting.parts.test.ts`, `run.parts.test.ts`, `finalChange.test.ts` and `guardrail.test.ts`; ten mutations (no once-guard, the counter shared with the import check, no route check, parts sent to the tests phase, parts not taken out when off, no stored stop; and for the last gate: logged but not failed, only with one phase, on the switch alone, no test rule) all turn tests red. Needs the AI Runtime and QuikProjects of QUIKTR-2325 for parts to exist at all; with none, nothing changes.
|
|
190
|
+
|
|
191
|
+
**9.3.0-rc.70 - the scope check no longer fails a run for a route the design did declare when a comment puts a colon straight after the route (QUIKTR-2077).** Run QUIKSPL-354 (6 Nov 2026, a Task on the QuikSplit pilot repo) failed at the scope check with "adds POST /api/groups/:id/expenses/:expenseId/restore:, not declared in the design's API changes", although the design listed exactly that route. The route pattern lets `:` into every segment so that `:id` parameters match, and that also let a colon that only ended the route in a comment join the path, so `.../restore:` did not match the declared `.../restore`. Now a route read from the added code has trailing colons removed before it is compared (and before it is shown in the failure message). Nothing else changes: an undeclared route still fails, with or without a colon after it; comment lines are still read (the original QUIKTR-1081 incident was a documenting comment); parameter routes ending in `:name` are untouched. Four new tests in `scopeCheck.test.ts`; three mutations (no strip, strip a trailing `:name` too, skip comment lines) all turn tests red.
|
|
192
|
+
|
|
193
|
+
**9.3.0-rc.69 - a GitHub server error on push is tried again, and a commit that could not be pushed is kept beside the files (QUIKTR-1963 follow-up, QTRIA-39).** Run QTRIA-39 (4 Nov 2026) wrote and checked its change, then lost it: `git push` got "remote: Internal Server Error" from GitHub during a GitHub incident, the run failed, and there was no branch and no pull request. Now a push answered with a server error (500, Bad Gateway, Service Unavailable, Gateway Timeout) is tried again after 5, 15, 30 and 60 seconds; before, only "Repository not found" was retried, and that retry is unchanged. A failed run's folder (`quikpilot-failure/`, uploaded as the `quikpilot-failed-run` artifact) also holds `quikpilot-change.bundle`: the run's last commit as a git bundle, and the manifest's `bundle` entry says how to restore it (`git fetch quikpilot-change.bundle HEAD:refs/heads/<branch>`). The bundle is written only when the run's branch is checked out and its commit changes a file. With a push that works, the run is the same as in rc.68.
|
|
194
|
+
|
|
195
|
+
**9.3.0-rc.68 - the switch `QUIKPILOT_KEEP_WORKING_FILES=on` no longer gets a request refused, and a refusal says why in the log (QUIKTR-1963).** The first live run with the switch on (QuikIT bug 4, run QTRIA-37, 4 Nov 2026) was refused by the AI Runtime four times (`CONTRACT_REJECTED`), each time costing the run a contract version (`codegen.version_fallback`) and a restart of the phase. Cause, reproduced by reading requests this runner built with the AI Runtime's own shape check: under the switch a repeat's copy of an earlier answer (status `duplicate`, carrying the earlier text) was shrunk to the stub `{dropped: true, note}` by the three-turn rule and by the make-room drop, and the AI Runtime takes that stub only on an `ok` look result (`check_look_output_3`). Now a repeat's copy is shrunk by leaving its text out (a `duplicate` with no `output` is a shape the AI Runtime already takes), and its message says it was shrunk and to read it again if needed; every other answer is shrunk as before. The re-read report (`codegen.reread`) reads such a copy as `stubbed`. New log line `codegen.contract_rejected` `{turn, version, reason}` on any refused code-writing request, whatever the switch: `reason` is the AI Runtime's one fixed sentence (the job's secrets taken out, one line, at most 300 characters). With the switch off nothing the AI Runtime receives changes. Also in rc.68: everything in rc.67.
|
|
196
|
+
|
|
197
|
+
**9.3.0-rc.67 - before its tests are frozen, the AI is asked once to check WHY each bug test fails on the old code (QUIKTR-2058; off unless `QUIKPILOT_RED_REVIEW=on`).** Phase 1 ends only once each bug case's own test is seen failing on the code before any change (QUIKTR-1608), and any failure counted. In QuikIT run QTRIA-34 (3 Nov) two bug tests failed there with "expected 500 to be 409" because they never set up a mock the code needs, so the code crashed while the old code really answers 200; the check accepted them, the tests were frozen, and the code phase could never make them pass. In QTRIA-35 (same bug) the AI saw this in the failure text by itself and fixed its test. With the switch on, the first phase-1 DONE that gets past the red check (whatever that check found: in QTRIA-34 its one send-back went to a test that must keep working) is sent back once, as a refused turn with rule word `done_rule`, quoting the first line of each bug case's failure on the code as it is (`[id] fails on the code as it is with: ...`, the job's secrets scrubbed, at most 7 cases) and asking the AI to confirm each shows the bug, not a broken test (a missing mock or stub, an error in the test's own set-up, a crash the bug does not cause); a broken one is fixed and run again, otherwise the AI answers DONE again. It is never sent on a final turn, nor when no failure text is there to quote (`no_message`: a one-file run with no report, no baseline run), nor when no test run is left to show a corrected test failing (`no_runs_left`); a give-up with red tests is not reviewed. The red check and its own counter are unchanged. Logs (counts, never text): `codegen.red_check` `review_sent`, `review_skipped` (with `reason`), and `review_answered` (`testsChanged`, `rerun`, `linesChanged`, `linesSame`, `linesGone`) at the next answer; `red_review.on` once per job. Only with two phases; a fix and the review fix never get it. With the switch off every request is byte-for-byte what rc.66 sent. Nothing changes on the AI Runtime (it never reads a refused sentence's text) or in QuikProjects (the run record keeps rule words only). Also in rc.67: everything in rc.66.
|
|
198
|
+
|
|
199
|
+
**9.3.0-rc.66 - the early look's report is tried again when QuikProjects cannot take it (QUIKTR-1999).** On 2 Nov two early looks (QuikIT Q2, QuikSplit S5) finished their work and then logged `investigate.failed report_failed`: the one report to QuikProjects failed once, while several runs overlapped and its database was busy, and was never tried again, so the look was lost and the run waited out its 200 s. The report now follows the rule the main callback got in rc.43, with a longer wait: a server error (500/502/503/504) or a dropped connection is tried again, 6 tries in all, waiting 2, 5, 10, 20 and 30 s (about 67 s, because the database stalls seen on 2 Nov and in the stress test lasted over 75 s), sending the same bytes each time; any other answer (a refusal such as 403) is final. When it still fails, the job log says which status the server last answered (`status`) or which connection error it was (`error`), next to the same closed reason as before. The main callback (`reportBack`) is unchanged. Needs the QuikProjects change from the same ticket to be most useful (it answers a busy database with 503 + Retry-After instead of a bare 500 or a 403), but works without it. Also in rc.66: everything in rc.65.
|
|
200
|
+
|
|
201
|
+
**9.3.0-rc.65 - the one correction of QuikPilot's own test now works on Python and Go (QUIKTR-2000).** When the code phase gives up because exactly one of the tests QuikPilot wrote itself still fails, it gets one chance to correct that test's expected value (QUIKTR-1608). Until now the runner recognised the failing test only by its file path, but pytest names a test by its module (`tests.test_grouping`) and gotestsum by its package, so on those languages the correction never ran: sqlparse run QTPY-15 (2 Nov) logged `frozenFailing: 0, amendFiles: 0` with exactly one of its own tests failing, and failed with no PR. Both places that match failing tests to the run's frozen tests (the amendment and the hand-over of a DONE whose own test still fails) now use the rule QUIKTR-1950 uses for the same names (`idPlaceMatches`); a path name is matched exactly as before. When several frozen files share the test's place (a Go or Java package), the one whose text defines the test is chosen, and when that is not exactly one file nothing is amended. The give-up log line also says how many failing tests the last run listed (`failingSeen`). Nothing changes on the AI Runtime or in QuikProjects; `QUIKPILOT_ROW_NAMES=js` gives back the old path-only matching. Also in rc.65: everything in rc.64.
|
|
202
|
+
|
|
203
|
+
**9.3.0-rc.64 - every re-read of a file says why it happened, and (switched off by default) the files the AI is working in are no longer shrunk while it works on them (QUIKTR-1963).** In QuikIT bug 3 (31 Oct) the AI read the same 429-line test file 28 times in 40 turns and gave up. On the notes versions an answer older than the latest three turns is shrunk to a one-line stub on every turn, whatever the request's size, with no exception for the file being worked on; but some re-reads came one turn later, so paging through the file or indecision may be part of it. (1) Always on, log only: each `read_file` on the turn line now carries its line range, and a read of a file already read in the loop logs `codegen.reread` with the earlier read's turn and range, how the two ranges meet (`same`, `overlapping`, `disjoint`), what had become of the earlier answer (`whole`, `stubbed`, `dropped`, `after_write`) and whether it was answered as a repeat; `codegen.reread_summary` counts them at the loop's end. Paths and line numbers only, never file text. (2) `QUIKPILOT_KEEP_WORKING_FILES=on` (off by default; the workflow can set it): the newest answer per range of the files the AI is working in (a file it changed, or read in two different turns; at most three files and 40,000 characters, newest first) stays whole instead of shrinking, and only answers made after the file's latest change count, so a stale read is never kept; a repeat's copy of an earlier answer can then shrink like the answer itself. The hard ceiling's last-resort drop still drops anything, so a request never exceeds today's limit. With the switch off every request the AI Runtime receives is what it was. Nothing changes on the AI Runtime or in QuikProjects. Also in rc.64: everything in rc.63.
|
|
204
|
+
|
|
205
|
+
**9.3.0-rc.63 - a reply the AI service could not read is asked again once instead of ending the attempt (QUIKTR-1953).** On 30 Oct 3% of the AI calls of a run (8 of 267) came back as `SCHEMA_MISMATCH`: the AI service could not read the AI's reply in the required format, even after its own repair and one retry. Each one ended the whole attempt, and with two attempts per job two of them ended a job with nothing written (QTRIA-28 lost its file search to one). The runner lost nothing with such a turn, so the request is now made again, once, in the way a cut-off or a slow turn already is (QUIKTR-1853): one fixed sentence in the AI's transcript says its last answer could not be read in the required format and asks for exactly one reply in that format and a smaller step; the turn is recorded like the other recovered turns and is never counted as a refusal. It applies to the code-writing loop and to the file-search loop (where only this code is recovered: a cut-off or a slow turn there still falls back to the single call, as before). A second unreadable reply straight after the first, the final turn, and `QUIKPILOT_TURN_RECOVERY=off` end the attempt exactly as before; when it is the second in a row the failure message says so. New log event `targeting.loop_recovered` (the code-writing loop's `codegen.loop_recovered` now also carries `reason: schema_mismatch`). Nothing is deployed on the AI service, and nothing about the reply that failed is shown to the AI or logged.
|
|
206
|
+
|
|
207
|
+
**9.3.0-rc.58 - write the fix first, then ask once about every existing test it breaks, with proof (QUIKTR-1851, absorbing QUIKTR-1850; release 1).** Until now, when an existing test expected the bug, the run stopped BEFORE any code was written and a person approved a change to that test with nothing to show it could ever pass, and the tests were found one at a time: QTRIA-23 approved a change that moved the status line off 401 and left `expect(body).toEqual({ ..., error: "Unauthorized" })`, which no fix can satisfy, and spent all three stops. Now, when the project switches it on (`packet.fixFirst`; `QUIKPILOT_FIX_FIRST=off` turns it off without a rebuild) the run speaks `codegen-loop-8`: a `report_test_conflict` is a PROPOSAL that does not end the run, the AI writes the tests and the fix and reports every existing test its fix breaks, and at its DONE the runner proves the proposals (`proofCheck.ts`): it runs the project's WHOLE suite (the related-tests planner off, a fresh tool, outside the AI's run allowance) with the fix and every proposed change written over the old code. A proposal whose test still fails is sent back with its name ("change EVERY expectation of it"), and an existing test the fix broke that no proposal covers is sent back by name (never a failure message: QUIKTR-1474), at most twice; one that still fails after that is not offered to a person. Then ONE stop, as before, whose proposals carry `oldCodeChecked` (fails on the old code with the change alone), `newCode` (`passes` / `fails` / `not_checked`) and `newEndLine` (where the changed test now ends, for showing the whole test); no time, no answer or a list of failures cut to fit is `not_checked`, never proven. The tests phase hands its proposals to the code phase. An AI Runtime that refuses `codegen-loop-8` is asked again as loop-7 (nothing else changes), a fix turn stays loop-7, and a project that did not switch it on sends and receives exactly what it did. Release 2 (keeping the fix across the stop) is not in this version: the next job still writes the code again. Also in rc.58: everything in rc.57.
|
|
208
|
+
|
|
209
|
+
**9.3.0-rc.57 - rc.56 and rc.55 together.** rc.56 (QUIKTR-1701 release 2) was built and published from a source that did not yet contain rc.55's turn recovery (QUIKTR-1853: a cut-off answer or a slow turn is asked again once in a smaller step instead of ending the attempt), so a project pinned to rc.56 lost it. rc.57 is the merge of the two and nothing else: everything in rc.56 and everything in rc.55. Also in rc.57: everything in rc.54.
|
|
210
|
+
|
|
211
|
+
**9.3.0-rc.56 - outline and find_definition for eight languages, the last test-file names, and the AI's own tests kept in Python, Go and Java (QUIKTR-1701, release 2).** (1) `definitions.ts` reads the definitions of a Python, Go, Java, Kotlin, C#, Rust, Ruby or PHP file from its tree-sitter tree - functions, classes, methods, structs, interfaces, enums, modules, with exact line ranges and nesting (a Java or C# method, a Kotlin `fun`, a Ruby `valid?` and `def self.x`, a Rust `impl`). `read_file` mode "outline" and the too-large answer use it (`engine: "treesitter"`), and `find_definition` looks a name up in the tree of every file that holds it (at most 80 files are parsed per call; the rest, a file that does not parse and any other language keep the line patterns). The name rule is widened to any language: a letter of any script, `_` or `$`, then letters, digits, `_` or `$`, optionally a Ruby-style `?` or `!` at the end (the AI service checks the same rule first: deploy it BEFORE this runner), and a regular-expression character in a name can no longer break the pattern. The grammars are loaded once at the start of a run for the languages in the repository. (2) Test-file names: Surefire's `Test*.java` and `*TestCase.java`, Failsafe's `*IT.java`, Kotest and ScalaTest `FooSpec.kt/.scala`, Django `tests.py` and every file of a C# test project (`Acme.Tests/`) are test files (same table in the AI service and QuikProjects). (3) A fix may correct a test the AI wrote in this run in a Python, Go or Java file but not remove it, skip it (`@pytest.mark.skip`, `t.Skip()`, `@Disabled`) or leave it with fewer checks (assertion statements, `t.Error`/`t.Fatal`, `pytest.raises`, `fail(...)`), as for JavaScript. `QUIKPILOT_LANG_CHECKS=js` and `QUIKPILOT_TEST_LOCATE=js` switch the readers off. Also in rc.56: everything in rc.54 (rc.55 is QUIKTR-1853, built on its own branch).
|
|
212
|
+
|
|
213
|
+
**9.3.0-rc.55 - a cut-off answer or a slow turn continues in a smaller step instead of ending the attempt (QUIKTR-1853).** Until now one turn that the AI Runtime cut off for length (`output_too_large`) or that ran past the turn limit (`turn_timeout`) threw the whole code-writing attempt away, and with two attempts per job two such turns ended a job with nothing written, though the AI was making progress (QTRIA-21: one slow turn, then one cut-off answer while writing tests, nothing written, $1.70). Nothing the attempt holds changes with a lost turn (the overlay, the transcript and the counters change only after a reply comes back as an answer), so the runner now asks again, once: the AI's transcript gets one fixed sentence of the runner's own - "your last answer was too long and was cut off / your last step took too long, so none of it was run. Take a smaller step: fewer files and fewer edits in one turn, and make each edit a small find-and-replace change" - as a refused turn with the shared rule word `length`, which every AI Runtime version already accepts, so nothing is deployed on the AI Runtime (`turnRecovery.ts`). It is never counted as a refusal or as a turn that changed nothing, so it cannot force `refused_repeatedly` or `no_progress`; it uses a turn and the attempt deadline and the step clock still bound it. It never happens twice in a row: a second lost turn straight after the first, and any lost turn on the final turn, end the attempt as before, and the failure message then says "a second time in a row, even after the AI was asked to take a smaller step". The run log gets `codegen.loop_recovered` (turn, reason, the service's code) and `afterRecovery` on `codegen.attempt_end`; the recovered turn appears in the record as a refused turn with the rule `length`. The AI Runtime's own log `output.measured` names the model that was cut off. `QUIKPILOT_TURN_RECOVERY=off` returns to ending the attempt. Also in rc.55: everything in rc.54.
|
|
214
|
+
|
|
215
|
+
**9.3.0-rc.54 - eight languages share one tree-sitter base: a syntax check and "never weaken an existing test" by structure (QUIKTR-1701, release 1).** Until now the runner's safety checks read code with a JavaScript parser and switched off for any other language: nothing noticed a broken Go or Ruby file, and an existing test in another language was protected only by the text rule, which lets any text be added in front of or behind the matched part (`t.Skip()`, an early `return`, `@pytest.mark.skip`, `@Disabled`, a shadowing `test_a = lambda: None` all passed). Now `languages.ts` is the one table of the languages read with tree-sitter - Python, Go, Java, Kotlin, C#, Rust, Ruby and PHP (JavaScript and TypeScript keep acorn and sucrase and every check they have). (1) Syntax: after each edit the code-writing loop tells the AI "the file no longer parses (a syntax error at line N)" when a file that parsed does not, and at hand-over a file that parsed before and does not now stops the run, exactly as for JavaScript; a file that was already broken, or a language whose grammar is not loaded, is never judged. (2) Existing tests (`existingTestsLang.ts`): every unit of the test file as it was before the run (a function, a class, an import, a statement - with its decorators, annotations and modifiers) must still be there, byte for byte and in order; a class, module, `impl` or RSpec `describe` is compared by what is around its body and then by its own units; an import may only gain names or a whole new import may be added; comments between units are free; a NEW unit may only declare something whose name no unit of that level has, and may not be a hook that runs around every test (`setUp`, `TestMain`, `init`, `@BeforeEach`, `[SetUp]`, a constructor, an RSpec `before`/`let`, a fixture, a static or `init` block, an inner attribute), a build constraint, a statement that declares nothing (`pytest.skip(...)` at module level), or a Rust attribute in front of an old item. The reasons are the same closed words as for JavaScript (`changed_text`, `removed_text`, `moved_block`, `affects_existing`). A file that does not parse falls back to the text rule. Size: the five new grammars are vendored brotli-compressed and embedded the same way (each decoded on first use, 2-25 ms), and the published source map no longer copies the source text, so the package is about 1.4 MB (rc.53: about 1.9 MB). `QUIKPILOT_LANG_CHECKS=js` turns both checks back to the old behaviour. Also in rc.54: everything in rc.53.
|
|
216
|
+
|
|
217
|
+
**9.3.0-rc.53 - a Python, Go or Java test that pins the bug can be reported to a person (QUIKTR-1855, release 2).** Until now the stop "an existing test expects what an approved case calls wrong - may I change it?" worked only for JavaScript and TypeScript tests: the test was found, and an edit of it judged, by a JavaScript parser, so a Go, Python or Java test ended the run with `test_unsupported_language`. Now `testLocateLang.ts` finds the tests of those languages with tree-sitter (a Python `def test_*` with its decorators, a Go `func TestX` whose subtests are its rows, a Java `@Test`/`@ParameterizedTest` method with its annotations) and judges an edit by its SHAPE: the test's tokens with every literal value (text, number, true/false/None/nil/null), assertion statements (`assert ...`, `self.assertEqual`, `assert.Equal`, `assertEquals`, `assertThat(...)...`), comments and the test's own name taken out must be the same before and after - so the values of a `parametrize` list, a Go table or a `@CsvSource` may change, and the call the test makes, its loops and its set-up may not. Data a test reads from elsewhere in the file (a module-level list, a `@MethodSource`) is outside the test and an edit there is refused as outside it. The tests are found by the function's name (a Java `@DisplayName` is the title when there is one); a reply that does not find the title lists the file's test names. A later job (the approval) reads the file the same way. The tree-sitter runtime and the three grammars (`vendor/tree-sitter/`, MIT, about 1.3 MB) are embedded in the bundle as base64 and decoded only when the first Python, Go or Java test file is read, so a JavaScript run pays nothing; the package grows from about 330 KB to about 700 KB gzipped and stays one file with no dependencies. A file that does not parse cleanly, and any other language (Kotlin, C#, Ruby, PHP), is still `test_unsupported_language`. `QUIKPILOT_TEST_LOCATE=js` turns the new readers off. Also in rc.53: everything in rc.52.
|
|
218
|
+
|
|
219
|
+
**9.3.0-rc.52 - the rows of a table test, in every test framework (QUIKTR-1855, release 1).** A test written once for many rows (vitest `describe.each`, pytest `parametrize`, Go subtests, JUnit 5 parameterized) is named by the test report in the framework's own way: vitest writes the row's values into the title, pytest adds `[1]`, Go adds `/subtest` (and reports the parent `TestMod` as an entry of its own), JUnit 5 adds `(Type)[2]` or writes only a display name (`[2] a, b`). Only the vitest way was understood, so for any other framework the give-up check, the count in "does not fit 10 of its 11 rows" and the baseline rows of a reported test never found the rows. One module (`rowNames.ts`) now reads those suffixes - only where the test is not a JavaScript or TypeScript file, so a JavaScript title that ends in `(legacy)` or `/b` is never taken for a row - and the same rule links a report's classname (a dotted pytest module, a Go package path, a Java class) to the test file. Used by `nameEndsWithTitle`, `rowPattern`, `matchRows`, `groupRegressions`, `unexplainedRegressions`, `approvedTestsFailing`, `failingNameIs` and the approved-rename check; a Go table test's parent entry is not counted as a row. Nothing changes for JavaScript and TypeScript; `QUIKPILOT_ROW_NAMES=js` turns the suffix reading off. Reading a Go, Python or Java test file to report a change to it is release 2. Also in rc.52: everything in rc.51.
|
|
220
|
+
|
|
221
|
+
**9.3.0-rc.51 - test files and the tests that reach the changed code, in every language (QUIKTR-1854).** Until now "is this a test file" was a JavaScript rule (a `.test.`/`.spec.` name or a `test/`, `tests/`, `__tests__/` folder): in Go (`decimal_test.go` in the root), Java, C#, Ruby, PHP, Rust and Python outside a `tests/` folder a test file was treated as code - not protected from being rewritten, not runnable alone, and no existing test was ever found for a changed file. Now one shared rule (`testFileRules.ts`, by name: `_test.go`, `test_*.py`, `*_test.py`, `*Test(s).java|kt|scala|cs|swift`, `*_spec.rb`, `*_test.rb`, `*Test.php`, `*_test.rs|dart`) decides in `isTestTarget`/`testRule`, so protection, the phase lanes, `run_tests {file}` and the protected set follow; JavaScript answers are unchanged by construction; `QUIKPILOT_TEST_RULES=js` switches the new names off. The existing tests of a changed Go/Python/Java/Kotlin/Scala file are found (`langReach.ts`): the test named after the file, then tests that reach it through imports (up to three steps; a package `__init__` is a re-export, not a step; a file imported by more than 25 files is not walked through), then tests that talk about what the file defines or the early look named; they go to the tests-to-read-first list and the seeded context. A run now also reads the LIVE test list after targeting (widened with the stored one) instead of the stored one alone. When the report is late but test files could be listed by name, the note says so ("the test report was not ready after N seconds, so QuikPilot listed the test files by their names (N found) and skipped the early check") and the log records `method` (`report`, `names`, `none`). A run that gives up because an existing test in a language that cannot be reported yet (anything but JavaScript and TypeScript, QUIKTR-1855) pins the bug now ends with its own reason `test_unsupported_language` instead of a plain give-up. Also in rc.51: everything in rc.50.
|
|
222
|
+
|
|
223
|
+
**9.3.0-rc.50 - the code-writing tool loop is the default on every repository, with a per-project switch (QUIKTR-1888).** Until now a run wrote code through the tool loop (look around, write tests first, run the project's tests, link tests to cases, stop to ask when an existing test pins the bug) only for very large repositories (map mode) or where someone had edited the workflow file by hand; every ordinary repository ran the old way, one AI call per file and no test run, so none of what was built since (tests first, case links, the stop about existing tests) reached it. Now the runner's own default is the loop with tests for writing code (`loop-tests`) and the read-only loop for finding the files (`loop`). Precedence, first known word wins: the run packet's per-project setting (new optional `codegenMode` / `targetingMode`, sent by QuikProjects from the switch "Write code with tools and run my tests"), then the environment variables `QUIKPILOT_CODEGEN_MODE` / `QUIKPILOT_TARGETING_MODE` in the workflow (an override a repository can keep), then the default. `single` turns the loop off. A packet without the fields (an older QuikProjects) gets the default. Large repositories still force the loop, as before. If the loop cannot finish, the run fails with "nothing was written" as it already did (it falls back to the per-file call only when the AI service has no loop at all). Also in rc.50: a Go test file in the repository's root is linked to its case. The live regression check for this change (decimal Mod, Go) wrote two tests that failed on the old code, but the red check saw no failing test: the report names a root-level Go test by the module's import path ("github.com/shopspring/decimal"), which names no folder of the file, so the place check never matched and the test was not tagged to its case. A path-shaped place now matches a root-level file (the test's name must still match). Also in rc.50: everything in rc.49.
|
|
224
|
+
|
|
225
|
+
**9.3.0-rc.49 - Go and Python runs are no longer failed by the test placement check, and a push retries (QUIKTR-1884, QUIKTR-1885).** The placement check (before the write) compared a test file with the files named in the repository's own test report, and took a testcase's classname for a file. In JavaScript a classname is a file path; in Go it is the package path ("github.com/acme/app") and in pytest a dotted module ("tests.test_auth.TestLogin"), so the report held names but no file, and every real Go or Python test file was called "never discovered by the test runner" - found on the first live Go run (decimal). Now only a classname that looks like a file counts; a report with no file in it means "cannot tell" and the check steps aside, as its own description always said (the later check that every claimed case was really run still decides). Also: a push right after the installation token was minted can be answered "Repository not found" by GitHub although the token works seconds later (a test-change proposal failed that way on two live QuikIT runs in a row). The push now waits and tries again up to three more times (3, 6 and 12 seconds), only for that exact answer; any other failure fails at once as before, and each retry is logged (git.push_retry, git.push_retry_ok). Also in rc.49: everything in rc.48.
|
|
226
|
+
|
|
227
|
+
**9.3.0-rc.47 — an approved test change that does not fit is named, and can go back to a person (QUIKTR-1844).** On the live bug-3 re-run (QTRIA-16, 26 Oct) a person approved one change to a table test (`toBe(401)` became `toBe(200)` for all 11 rows); with the code complete, 10 rows still failed, the failure said only "existing tests that may expect the old behaviour", and the fix turn, seeing names only, took the approval as proof the test was right and gave up with a stop left. Now, when rows of a test a person approved changing still fail at the final check: the failure message says so first (`the test change approved for <file>: "<title>" does not fit 10 of its 11 rows (now: "expected 404 to be 200")`); the fix turn lists those rows first and shows the first line of each failure (scrubbed, at most 120 characters; approved tests only, every other existing test is still shown by name only); the test is sent as `stillFailing: true` in `decidedTests` (contract §38.12); and, while stops remain, the AI may report that test once more with a change written against the approved text. The revised proposal's line carries `revises` (the commit it replaces) and `misfit` (counts and up to 3 short lines), its message says "This revises the change approved in <sha>", and when approved it replaces the earlier change instead of being merged with it. A revision is checked like any report (inside the test, expectations only). Needs the AI service with §38.12 (it refuses `stillFailing` otherwise, so release that first). A run with no approved test changes, or whose approved tests pass, is exactly as in rc.46. Also in rc.47: everything in rc.46.
|
|
228
|
+
|
|
229
|
+
**9.3.0-rc.48 - the final test check never passes a change it could not check (QUIKTR-1698).** Until rc.47 the gate compared the JUnit report from before the change with the one after it, and when either was missing it let the change through, even when the tests had failed: the Test command's own result was captured and never read. Now (src/testVerification.ts): with a report on both sides, the test-by-test comparison decides as before; with no report on either side, the Test command's result decides - passed before and after: the change goes through with a note in the pull request that it was checked by the Test command's result only; passed before and failed after: the run fails (no test can be named, so no fix is tried); already failing before: the run fails as "could not check this change". A report on one side only, or no Test command at all, also fails as "could not check this change". Every test run now reads only a report it wrote itself (a report left by an earlier run, or committed to the repository, was read by runs without a time limit). Nothing pushed in any failing case. Test results from any language (QUIKTR-1700): every JUnit report the test run wrote is read, wherever it is and whatever its name (found by being a <testsuites>/<testsuite> document; Maven's one file per class, Gradle's build/test-results, pytest, .NET, RSpec, PHPUnit), merged, and uploaded to QuikTest as one document; dependency folders and QuikPilot's own failure copy are skipped. A new test no longer needs [QP-...] in its name: the AI lists each case's test in caseTests (file and test name) with its DONE answer (src/caseTags.ts), and the runner tags the matching test cases with [QP-...] in the results it reads and the report it uploads, so every existing check and QuikTest match them as before; the reproduce-first and hand-over checks accept a declared test. Failure locations are read from Python, Go, C#, RSpec and PHP output too. A one-file run with no report answers with the Test command's result (no_report with reason test_command_passed/test_command_failed), and a failed one counts as red evidence for the cases declared in that file. A classname is a file only with a source extension (a Go package path is not). Composer/PHP variables reach the project's commands. Needs the AI service with contract 38.13 for caseTests (an older one ignores it). Also in rc.48: everything in rc.47.
|
|
230
|
+
|
|
231
|
+
**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.
|
|
232
|
+
|
|
233
|
+
**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.
|
|
234
|
+
|
|
235
|
+
**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.
|
|
236
|
+
|
|
237
|
+
**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.
|
|
238
|
+
|
|
239
|
+
**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`.
|
|
240
|
+
|
|
241
|
+
**9.3.0-rc.34 — the first turn of a loop waits for a new response schema (QUIKTR-1581 follow-up).** The first call with a response schema the model provider has not seen recently is very slow (232 to 275 seconds measured on 19 Oct 2026 for a request that takes 5 to 8 once the provider has it) and fast afterwards. The targeting loop's turn limit was 180 seconds, the same as the AI Runtime's own provider timeout, so that first call was cut off every time, the provider never kept the schema, and runs fell back to the single targeting call (one found no file and failed). Now the FIRST turn of the targeting loop and of the code-writing loop waits up to 420 seconds; every later turn keeps its own limit (180 and 300), so a hung call does not cost the long wait twice. The targeting loop's whole-loop limit is 900 seconds (it was 600). A limit set by the caller still applies to every turn. Pair it with `OPENROUTER_TIMEOUT_SECONDS=420` on the AI Runtime (its default, 180, ends the call before the runner would). Nothing else changes.
|
|
242
|
+
|
|
243
|
+
**9.3.0-rc.33 — search tools v2: small, pageable answers, an outline, `find_definition` (QUIKTR-1581, S6 release A; contract §36).** Needs the AI Runtime with `targeting-loop-3` and `codegen-loop-5` (each switched on by its own flag); without them every run is exactly as on rc.32 (the runner asks once, is refused before any model call, and goes on as the version it would have spoken). (1) **What the AI gets:** `list_files` shows one folder level (`path`) with file counts, or finds files by name or glob (`pattern`, the folder being changed first), 100 entries a page; `read_file` shows a 200-line window, answers a file over 400 lines or 20,000 characters with status `too_large` plus the file's outline and a suggested range (never the text), and with `mode: "outline"` lists a file's functions, classes and methods with their line ranges (JavaScript and TypeScript exactly, read with the parser the code checks already use; every other text file by keywords and indentation; no new dependency); `grep` first answers which files match and how often, and gives lines only with `mode: "lines"`, a page at a time (`limit`, `offset`); the new `find_definition` finds where a name is defined, nearest the asking file first, and exactly (marked `exact`) when the asking file imports it, through the project's own import shortcuts, a workspace package and up to 3 `export … from` barrels. Every cut answer carries `next.offset` and a sentence saying how to get the page. (2) **Stale edits:** an `edit_file` whose text is not found in a file this attempt changed since the AI read it answers `stale_read` ("read the lines again") instead of `no_match`. (3) **Only what is usable:** `loop.tools` lists the tools offered this run (no `call_function` unless it is on); the AI Runtime refuses a call to any other. (4) **Both views:** `targeting-loop-3` / `codegen-loop-5` carry either `workspaceListing` or `repoMap`; a refusal steps ONE version back (`targeting-loop-1` / `-2`, `codegen-loop-3` / `-4`) and a fix attempt does not ask again. Map mode keeps its rule of no per-file fallback. (5) `QUIKPILOT_TOOLS2=off` never asks for the v2 versions. (6) Listing mode and the earlier versions answer every tool byte for byte as before; the targeting loop record carries `contractVersion` only for `targeting-loop-3`. Checked on the real QuikIT checkout (a folder level 1,000 characters, a search's files 1,000, a big file's outline 3,400, a definition 200).
|
|
244
|
+
|
|
245
|
+
**9.3.0-rc.32 — map mode: a one-page summary of a large repository instead of its file list (QUIKTR-1580, S5; contract §35).** Needs the AI Runtime with `targeting-loop-2` and `codegen-loop-4` (each switched on by its own flag) before a large repository can use it; a repository small enough for its list is exactly as before. (1) **When:** `QUIKPILOT_MAP=auto` (the default) switches map mode on only when the write folder's file list would cost more than 40,000 tokens on the wire, i.e. where the old way could not work (QuikProjects alone: about 69,000; the whole QuikIT repository: about 445,000; the pilot repository: about 1,000). `on` forces it on any repository, `off` never uses it. (2) **What the AI gets:** `repoMap` first in every request, in place of `workspaceListing`: the folder it may change, the folders it may read (that folder plus the local workspace packages its project depends on, read-only, at most 8, from the root `package.json` `workspaces` or `pnpm-workspace.yaml`), how many files they hold, a folder tree with counts, the file types, the project's own import shortcuts (tsconfig `paths`), packages and test layout, and its guidance files (`AGENTS.md`, `CLAUDE.md`, `CONTRIBUTING.md`, `README.md` of the write folder and every folder above it: tracked, not protected, scrubbed, 2,000 characters each and 6,000 in all). At most 4,000 tokens, the same bytes on the same commit (QuikIT: 3,966 for QuikProjects, 3,915 for the whole repository). The AI finds files with `list_files`, `grep` and `read_file` as before. (3) **The runner's answers:** a read, list or search outside the readable folders is answered `outside_read_scope` (from the path alone, never saying whether a file exists there), a change outside the write folder `outside_write_scope`; `not_found` and `exists` as before. (4) **No fallback:** map mode needs both loops, so it switches them on whatever `QUIKPILOT_TARGETING_MODE` / `QUIKPILOT_CODEGEN_MODE` say, and needs a test command (without one the run stops before any work, saying so). There is no single targeting call and no per-file code call to fall back to (both need the list): a map run that cannot finish ends with a plain sentence, recorded as `map_failed`. (5) **Smaller requests:** the discovered test files go on the wire only while they cost under 12,000 tokens (else the report's own no-signal form), at most 100 existing tests are named on the wire (the runner still holds every one), and old read outputs are dropped from 40,000 tokens on (the hard ceiling stays 90,000). On QuikProjects the first targeting request is about 18,000 tokens where the list alone was 69,000. (6) **The record:** both loop records gain `view`, `fileCount`, `readRoots`, `mapTokens`, `peakRequestTokens` and `failReason`, in map mode only. The job log gains `map.built` (counts) and `map.mode`.
|
|
246
|
+
|
|
247
|
+
**9.3.0-rc.31 — long test suites: a clock, and only the tests that matter (QUIKTR-1579, S4).** Runner only; nothing the AI is asked changes, the contract, the statuses and the run record are untouched, and a project whose suite takes under three minutes, or that is not a plain vitest project, behaves as before. (1) The project's whole suite is no longer unbounded: the baseline gets about 40% of what is left of the job (5-25 minutes) and the final check after the change 2.5 baselines (5-20 minutes, never more than the job has left). A baseline that ran out of time stops the run with a plain message; a final check that ran out of time, or that had under a minute left, is a failure at the gate - never a silent pass, and nothing is healed; one test file is capped at 3 minutes. `QUIKPILOT_TEST_LIMITS=off` brings back the unbounded runs. (2) On a vitest project whose baseline took 3 minutes or more, the AI's own `run_tests` runs execute `vitest related` for the files it changed, its own new tests, and the tests that read files with `fs` (which no import graph can see); the final check is still the whole suite, once. A project is recognised only when its command is `[cd <folder> &&] npm|pnpm|yarn test [-- flags]` (or `vitest [run]`), nothing chained, its `test` script is exactly `vitest` or `vitest run`, it has no workspace or projects, and vitest is found from that folder; the flags may only be reporters, the output file and `--maxWorkers=` (which is passed on). A change to `package.json`, a lock file, a tsconfig, a vitest/vite config, a setup file, a prisma schema, an `.env` file or a shared helper under `__tests__/` runs the whole suite once instead. Related tests are switched off for the rest of the job when more than 40 tests read files, or when one related run took as long as the whole suite. When vitest fails whole (a file cannot be parsed) the test files are run directly (the AI's own, the tests that import a changed file, the file-reading ones); if none of them fails the answer is "no report", never a pass. The AI reads one fixed sentence, "Related tests only; the whole suite runs last." `QUIKPILOT_RELATED_TESTS=off|force` and `QUIKPILOT_RELATED_MIN_BASELINE_SECONDS` switch it without a release. (3) The job log gains `timing` (setup, format, lint, gate), `baseline.timeout`, `gate.timeout`, `related.adapter`, `related.off`, and a `plan` (counts and closed words, no names) on the `run_tests` events. Measured on the QuikProjects suite (4,611 tests in 348 files): `vitest related` picked every test that loads a changed file (24 of 24 sampled files), 6% of the tests on average, 6-27 s a run; two workers instead of one took the whole suite from 441 s to 177 s.
|
|
248
|
+
|
|
249
|
+
**9.3.0-rc.30 — the code checks read TypeScript (QUIKTR-1578, S3; QUIKTR-1547).** Runner only; nothing the AI is asked changes, and plain JavaScript is read exactly as before. TypeScript (`.ts`, `.tsx`, `.mts`, `.cts`) and JSX (`.jsx`, and a `.js` file that only parses with its JSX) are turned into plain JavaScript on the same lines by Sucrase, bundled into the runner (it never loads the project's own `typescript`), and the existing checks read that: (1) a file that no longer parses, at its line (no column: removed types move columns), which stops the hand-over as for JavaScript; (2) a name that is not defined or imported, or used above its declaration: in TypeScript a warning only (the AI is told at the edit, `codegen.name_warning` is logged at hand-over, the run is not stopped) until live runs show it is reliable there, because some names come from declaration files; (3) existing test files get the parser rule instead of the text rule, compared without types, so a widened import line or a typed helper is accepted and a change to a type annotation alone is not a change to a test; (4) the AI's own new tests cannot be emptied; (5) the missing-import check resolves `.ts`/`.tsx`, `./x.js` written for `x.ts` and `index.ts`, and counts a name a module exports only as a type as exported; (6) the unsupplied-inputs warning reads TypeScript. Declaration files (`.d.ts`) are never read; a file with decorators is not read (it counts as "did not parse", never as broken). On all 1,849 TypeScript files of a real monorepo app: every one read with no line moved, no unknown name, no existing test refused, no missing import and no false unsupplied-inputs warning. The bundle grows from 705 KB to 1.39 MB.
|
|
250
|
+
|
|
251
|
+
**9.3.0-rc.29 — what the AI sees, and how it finds the right files (QUIKTR-1577, S2b).** Runner only; nothing the AI is asked changes, and a project with no tsconfig, no test report and clean files behaves as before. (1) The path aliases a project declares in its own `tsconfig.json` / `jsconfig.json` (`paths`, with `extends` followed) are followed for the files a changed file imports, so `@/lib/x` now finds the file; an alias that leaves the workspace folder (`@quikit/ui`) is counted (`outsideImports`) and not read. (2) A file's existing tests are found by who imports it, wherever they sit (up to 3 per file, about 24 KB), after the beside-the-file pairs. (3) A file in a bare `test/` or `tests/` folder is a test only if the project's test report lists it or its name says so (`.test.`, `.spec.`, `test_*.py`, `_test.go`, `FooTest.java`); with no report the folder still decides. `__tests__/` folders and `.test.`/`.spec.` names never depend on it. The list of existing tests sent to the AI Runtime (still capped at 300) is ordered: tests already shown, test targets, the nearest tests, then the rest. (4) Lock files of other ecosystems (`uv.lock`, `Gemfile.lock`, `composer.lock`, ...) are never read or written; `.npmrc`, `*.pem`, `*.key`, `*.tfvars`, `*credentials*.json` and `docker-compose*` are never read, listed, searched or shown (the edit gates keep the project's own list); `edit_file` refuses a file whose first five lines say `@generated` or `DO NOT EDIT` (`generated_file`); a binary file is never shown as context. (5) A search no longer stops early in a large folder: media files are not opened and binary files no longer count against its 20 MB budget (`apps/quikprojects`: all 2,171 text files, 1.5 s). (6) Credentials are hidden from the AI on every phase, not only the early look: private keys, cloud keys, passwords in web addresses, the usual credential shapes and the run's own tokens, in every file, search excerpt, diff and test message it is shown. The rule that hides any quoted value under a name like `password` stays in the early look only, because in code it also hides ordinary test data. The AI's own writes and the files on disk are never changed. An `NAME=value` line is now also found behind the line number `read_file` prints.
|
|
252
|
+
|
|
253
|
+
**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`).
|
|
254
|
+
|
|
255
|
+
**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.
|
|
256
|
+
|
|
257
|
+
**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.
|
|
258
|
+
|
|
259
|
+
**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.
|
|
260
|
+
|
|
261
|
+
**9.3.0-rc.24 — cases that must keep working, a tighter amendment, and a stop for loops that change nothing (QUIKTR-1608, live batch of 15 Oct).** On rc.23 no pull request of bugs 1 to 7 was fully right. Six bugs had an approved case that passes on the old code by design ("splits that already divide cleanly must not change"); the red check told the AI to make it fail, and the AI broke a correct test. (1) Phase 1's DONE is sent back once, not twice, and the sentence says a case that must keep working may stay as it is; the second DONE is accepted and the reviewer warned about the cases seen passing. A phase-1 give-up with at least one own test failing on the untouched code is phase 1 done, the passing ones warned the same way. (2) A phase-2 DONE whose latest run still fails a frozen test is handed over as a give-up (live run QUIKSPL-210). (3) The amendment runs only when exactly one frozen test fails (QUIKSPL-209 rewrote three to match wrong code), and afterwards the runner checks that only that test's expected values changed: its set-up, its inputs and the rest of the file must be as phase 2 left them, or the run fails `test_case_disagree`. (4) Under the harness version, three replies in a row that change nothing (repeats, no-op or missed edits, unchanged test runs) make the next turn the last (`no_progress`). The AI Runtime's three phase paragraphs (contract §33.6) say the same; deploy them first.
|
|
262
|
+
|
|
263
|
+
**9.3.0-rc.23 — the red check counts one-file runs (QUIKTR-1608, live run QUIKSPL-208).** On rc.22 the first two-phase run opened a correct pull request (#112), but phase 1 proved the bug with a run of its test file (4 failing on the old code), the red check counted whole-suite runs only, sent the DONE back twice and ended phase 1 marked 5 cases unproven, so the reviewer was wrongly warned. Every run of phase 1 is now evidence, with the change it ran on: a case is FAILING when a run on the change as it stands lists its test failing; PASSING when such a run covered its test (the whole suite, or the one file that holds its `[QP-...]` token) and it did not fail; NOT RUN when nothing covered it. A test seen passing is sent back as before; one not run is sent back with a sentence naming it, and if phase 1 ends anyway it is logged (`ended_unrun`) but never shown to the reviewer as unproven: only a test seen passing on the old code is. A cut failing list still cannot tell. The next phase is told about the latest run on the change as it stands, a one-file run included. Runner only.
|
|
264
|
+
|
|
265
|
+
**9.3.0-rc.22 — phase 1 after the first live run (QUIKTR-1608, live run QUIKSPL-207).** On rc.21 the first live two-phase run failed in phase 1 in both attempts: the AI fought the existing-test rule for ten turns, then made its red tests pass and gave up. (1) In phase `tests`, a give-up (`CANNOT_COMPLETE`) whose change passes every hand-over check (every case covered, tests only) and whose tests were seen failing on the untouched code, in a whole-suite run on the change as it stands, is phase 1 done: the code phase follows (log `codegen.red_check` `gave_up_but_red`). (2) A failed two-phase attempt now records the phases it went through and their counts, as a finished one does. The AI Runtime's phase-1 paragraph (contract §33.4, amended) says failing is the goal (DONE then) and to put new tests and their helpers in a new test file when an existing one sends additions back; deploy it first.
|
|
266
|
+
|
|
267
|
+
**9.3.0-rc.21 (harness 6 of 7) — reproduce first, then fix (QUIKTR-1608, contract §33).** One step could change the tests and the code at once; when they disagreed the AI changed both (G18, G20, G23; fixes rescued 2 of 6 kept give-ups). Under the harness version an attempt is now written in phases, each held to its files by the runner (`codegenTools.ts` lane, answered `protected` before any budget is touched): (1) `loop.phase: "tests"` - only test files may change (the code answers `code_locked`); before the phase may end, each own test for a case with a known, non-Regression label must be seen FAILING in a whole-suite run on the untouched code. Otherwise the DONE is sent back as a refused turn (rule word `done_rule`, a fixed sentence naming the cases), at most twice; then the phase ends and the reviewer is warned (record `phases[].redUnproven`). (2) `loop.phase: "code"` - the phase-1 tests are frozen (`test_frozen`, also for any new or existing test file); the request carries them as a kept change (`endedWith: "tests_written"`, the red run, §32's steps). (3) When the code phase gives up while frozen tests of this run still fail: ONE amendment, a short code-phase loop with `loop.amend` (those files only, `edit_file` only, never emptied); the change then goes on with a warning naming the files. If the amendment fails too, the attempt fails `test_case_disagree` and is not tried again; no pull request. A second attempt after a failed code phase starts from the same frozen tests; fixes after the project's checks and the review fix are code-only with the tests frozen. The run record gains `phases` (phase, outcome, counts) and each test run its `phase`; the record now keeps 20 test runs and a run's `scope` (two gaps of the 1604 build). **`QUIKPILOT_TWO_PHASE=off` writes the change in one phase, as before.** AI Runtime contract §33 and QuikProjects (record schema) first. **Not published: waits for all seven harness tickets.**
|
|
268
|
+
|
|
269
|
+
**9.3.0-rc.21 (harness 5 of 7) — the next attempt is told what the one before it did, step by step (QUIKTR-1607, contract §32).** A second attempt or a fix was told how the earlier attempt ended, not what it tried, and in G18, G20 and G23 it started its diagnosis again and repeated the same kind of change. Under the harness version, `loop.previousAttempt` also carries `steps` (and `stepsTrimmed` when the oldest turns were left out): per turn, the AI's own note, and per call the tool, the path it named (or run_tests' `file`), the runner's closed answer and reason, test counts and `scope`, and the rule words of a reply the AI Runtime sent back. NO FILE TEXT: never an edit's find/replace/content, a function's arguments, any tool output text, a test name or a message (test names and messages stay in `lastTestRun`). Built only from what the AI Runtime was already SENT in that attempt (a turn that ran but was never sent stays out), within 15,000 characters, 40 turns, 8 calls a turn and 40 in all, oldest turns left out first. A second attempt gets the first attempt's steps; a fix gets the steps of the attempt whose change it keeps, and hands its own to the next fix. Wire only: never logged, never in the run record. Loop-2 never sends them. AI Runtime contract §32 first. **Not published: waits for all seven harness tickets.**
|
|
270
|
+
|
|
271
|
+
**9.3.0-rc.21 (harness 4 of 7) — rails that inform instead of ending (QUIKTR-1606, contract §31).** In G18, G20 and G23 rules about repeating, not a wrong answer, ended the attempts. Under the harness version only: (1) a call identical to one already answered is answered with that earlier result: `status: "duplicate"`, `reason` = the earlier id, a fixed message and the earlier `output` when it is still kept (a read whose output was dropped for room is simply done again). Nothing is run, read or applied twice, and it still costs a tool call. `call_function` does the same for an identical call on an unchanged change, spending no call. Once a write has changed a file, an EARLIER different write to it is judged again rather than served (so the AI is never told `ok` for text the file no longer holds); the same edit sent twice in a row is still a repeat. Replies made only of repeats no longer force a final turn: the call budget, the turn limit and the clock bound them. (2) An edit that leaves the file exactly as it was, or a write of the same text over a file this attempt created, is answered `no_effect` (one new status word), and nothing is written or counted. (3) A whole-suite test run where more tests fail than in the last one ends its message with one fixed sentence giving both counts and naming `show_changes` and `revert_file`. (4) Two whole-suite runs with the same failures answer `tests_failed` with one fixed sentence instead of `no_progress`, and the runs that are left stay; the log line carries `sameAsLast`. Every message stays within the AI Runtime's 500 characters. The targeting loop, the early look and loop-2 are exactly as before; the fix-level rule that stops fixing on the same failure is unchanged. AI Runtime contract §31 first. **Not published: waits for all seven harness tickets.**
|
|
272
|
+
|
|
273
|
+
**9.3.0-rc.21 (harness 3 of 7) — the AI can see what it has changed, and put a file back (QUIKTR-1605, contract §30).** In G23 a fix attempt edited a file that was already right, went from 1 failing test to 2, and could only keep editing forward. Two tools, under the harness version only: `show_changes` (a look; `args` nothing or `path`) answers `output: { text }`, a unified diff of every file this RUN has changed against the files as they were when it started (`/dev/null` for a created file, two lines of context, LF), at most 6,000 characters cut on a whole line and naming the files left out; it is charged to the read budget, dropped first when a request needs room, and forgotten after any change. It holds only what the AI wrote and lines of files it may read. `revert_file` (a write; `args.path`) puts one file back as it was at the START OF THIS ATTEMPT: the disk in a first attempt (a created file is removed, from the listing too), the kept change in a fix, never further; BOM and line endings are the file's own. It costs a tool call and no written characters, forgets earlier looks, takes the file off the changed-files count, and lets an earlier edit of that file be made again. A file this attempt has not changed is answered with the one new status word `not_changed`; a protected path is `refused`. An attempt whose change is put back to where it started still ends `no_writes` if it then says DONE. The line diff is the package's own (`lineDiff.ts`, `unifiedDiff`); no dependency was added. AI Runtime contract §30 first. **Not published: waits for all seven harness tickets.**
|
|
274
|
+
|
|
275
|
+
**9.3.0-rc.21 (harness 2 of 7) — the whole failure for the AI's own tests, and running one test file (QUIKTR-1604, contract §29).** The seven harness tickets ship together under ONE version: the loop now sends `codegen-loop-3` whenever the tests are on (`loop-tests`), on every repository; `call_function` stays ours-only through `remaining.functionCalls` (8 on a `deathvadeR-afk` repository, 0 elsewhere). (1) A failing test this run wrote used to be shown as its first line, cut at 120 characters, and that line is the framework's own message, which it already abbreviates (G20: `expected [ 'Item 5', 'Item 4', 'Item 3', …(7) ]`). The report's failure BODY holds the full expected/received comparison: the snapshot now keeps it (`failureDetail`: stack frames, code frames, separator rules and `node_modules` lines left out, control characters removed, line breaks kept; the short message when the body leaves nothing). Under the harness version the message is that whole text, `[at file:line]` on the end of its first line (so the first line is exactly the old message), credentials scrubbed THEN cut to 1,000 characters; all messages of one answer together stay within 4,000, each own test still to come keeping room for its first line. Which tests get a message is unchanged; a test that existed before is still names only. A fix attempt's `lastTestRun.messages` carries the same text (1,000 / 4,000); when the loop speaks loop-2 it cuts each back to its first line (120), so loop-2 is exactly as before. (2) `run_tests` takes an optional `file`: a test file of the listing or of this attempt, never a protected path (`bad_args` otherwise). It runs the space's "Test one file" command (`packet.commands.testFile`, `{file}` replaced, quoted) with the same limits and write-run-restore safety; the answer has the usual shape plus `scope: "file"`. Offered only when that command is set (`remaining.fileRuns` 6, else 0; the runner never guesses a command); file runs do not use the three whole-suite runs, are not repeated on an unchanged change (`no_change_since_last_run`, nothing spent), never end the attempt with `no_progress`, and are never the run a kept give-up rests on. The run record's test-run entry and the `codegen.run_tests` log line carry `scope: "file"`, never the path. The AI Runtime's contract §29 (on the harness branch) must be deployed first. **Not published: rc.21 waits for all seven harness tickets.**
|
|
276
|
+
|
|
277
|
+
**9.3.0-rc.21 — the AI can call one of the project's functions and see what it returns (QUIKTR-1603, contract §28 `codegen-loop-3`).** In the rc.20 live batches 3 of 4 failed runs were the AI's own tests expecting a value the (correct) code never returns: it guessed the expected value because it could not see what the code gives. A seventh loop tool, `call_function`, takes `path` (a `.js`/`.mjs`/`.cjs` file in the listing or created in this attempt, never a test file or a protected path), `export` (a plain name or `default`) and `callArgs` (the JSON text of an array of plain values). The runner writes the AI's changes so far to the checkout, runs a FIXED helper with the runner's own Node (no shell, the allow-listed environment, 20 s, its own process group) that imports the file and awaits the function, and puts every file back before it answers (`withOverlayOnDisk`, as for `run_tests`; a checkout that does not come back ends the run). The AI supplies no code: only the project's own code runs, as it already does when the AI's tests run before any pull request. The answer is ONE string: `ok` with `output.text` = the returned value as JSON text (Date as ISO, Map/Set as arrays, BigInt as `10n`, functions/undefined/cycles as fixed markers), credentials scrubbed THEN cut to 2,000 characters; `call_threw` with the error's name and first line (200); or `call_unavailable` with a closed `reason` (`not_found`, `not_a_function`, `unsupported_file`, `timed_out`, `could_not_start`, `write_refused`, `checkout_unverifiable`). Anything the function prints is discarded. At most 8 calls per attempt (`remaining.functionCalls`); the time counts on the shared clock like test time; only the latest call's text is kept when room is needed. Logs and the run record carry counts and closed words only (`codegen.call_function`: n, status, reason, seconds, chars), never the text, the export name or the arguments. **Offered only on repositories we own** - the owner part of `GITHUB_REPOSITORY` must be `deathvadeR-afk` (a constant in `ownedRepository.ts`; there is no setting that turns it on) - and only in `loop-tests` mode. **`QUIKPILOT_CALL_FUNCTION=off` turns it off without a release.** When the tool is offered the loop sends `codegen-loop-3`; an AI Runtime without it (or with `PILOT_CODEGEN_LOOP_3_ENABLED` off) refuses before any model call, and the runner makes the SAME first attempt again as `codegen-loop-2` (log `codegen.version_fallback`), never the per-file calls, and asks for loop-2 for the rest of the run. Everywhere else the request is exactly rc.20's. JavaScript only (Python and TypeScript files are not in this slice). No QuikProjects change is required (the two new status words are free text); its labels follow.
|
|
278
|
+
|
|
279
|
+
**9.3.0-rc.20 — a change with blocks no test depends on gets ONE fix attempt (QUIKTR-1569 Stage C).** Twice in live runs the AI fixed the requested bug and also rewrote a neighbouring line wrongly, with every test green; the check added in QUIKTR-1569 (put each changed block back on its own and see whether any test notices) found it, but only told the reviewer afterwards. Now, in `loop-tests` mode, when the change has passed every check and the fix allowance and the time allow it, the check runs BEFORE the change is committed. If it flags blocks, the change is taken off the disk and ONE fix attempt starts from it, told the file and line numbers (`loop.previousAttempt`: `endedWith: "unneeded_changes"`, `changesKept`, the passing run, `detail` e.g. `src/history.js, line 36`; never code, at most 300 characters): put each block back if the issue and the cases do not ask for it, or add a test of it that can fail. It can only improve the run: if the fix gives up, errors, or its change no longer passes every check, the change that had already passed is checked again and shipped, with the same notice as before. One review fix per run; it uses one of the fix attempts, so the three-in-all limit still holds. The check's result is reused for the final notice when the change did not change. The run record marks the earlier attempt `checks: passed` and the fix as started by `heal`; a fix put back ends as the new stop word `review_reverted`. **`QUIKPILOT_REVIEW_FIX=off` restores today's notice-only behaviour without a release.** The AI Runtime's contract 24.12g (one new reason word and one fixed paragraph) must be deployed FIRST; without it the new word is only logged as `other` and the fix gets the general kept-change paragraph. No QuikProjects change. **Also in rc.20 -** the failure line the AI reads names the failing assertion (below).
|
|
280
|
+
|
|
281
|
+
**9.3.0-rc.20 — the failure line the AI reads names the failing assertion (test-expectations plan, Part A2).** In the one failed run of the 12-run live test (F7) the AI's own test asserted a field its case never named; the message was `expected false to be true // Object.is equality`, which fits any of a test's assertions, and the fix argued with the code instead of the test. The test report's failure body holds the stack, so the first frame that points into a source file and is not under `node_modules` (vitest `❯ src/a.test.js:6:23`, node and jest `at fn (/abs/src/a.test.js:130:30)`) now gives `path:line`, made relative to the checkout. It is added to the END of the first line of the failure message the AI is shown for a test written in this run: `expected false to be true // Object.is equality [at src/a.test.js:6]`, in the `run_tests` answer and in the fix attempt's `lastTestRun.messages` (the same function). A path and a line number only; the line is cut so the place always survives within 120 characters. It is kept in its own map and is NOT added to the general failure text that appears in run reasons and logs, which still carries no ordinary stack frame. Tests the run did not write show no message and so no place. No AI Runtime change.
|
|
282
|
+
|
|
283
|
+
**9.3.0-rc.19 — when no old test broke, the test answer says so (test-expectations plan, Part 0).** Checking 11 runs of one pagination bug, every give-up was a test the AI had written itself with a wrong expectation (which item is first, in what order) over code that was already right; where its test data had no explicit date the code stamped the current time, records tied within a millisecond and the order of tied records depended on the clock. The `run_tests` answer for a failed run now carries one more fixed sentence when `regressions` is 0, `newFailures` is above 0 and a baseline was compared with: no test that passed before the change fails now, and the failures counted in `newFailures` are tests that were not in the test run before it. It names no test and quotes no text, changes no key of the answer, and the log line `codegen.run_tests` gains `ownOnly` (a flag). What to do with it is said in the AI Runtime's prompt, which is deployed FIRST (its loop-2 text moved); without that prompt the sentence is only a fact. **Also in rc.19 - a fix may correct a test written in this run, but not empty it (test-expectations plan, Part 4).** The AI Runtime's fix instruction (§24.12f) now lets a fix correct a test the run itself wrote when no test that passed before fails. Wording cannot stop a model from making a test pass by emptying it, so during a fix attempt an edit that removes a test written in this run, renames it away from its `[QP-...]` token, skips it (`it.skip`, `xit`, `it.todo`) or leaves it with fewer `expect`/`assert` checks is refused with the ordinary `protected` answer and the closed reason `test_removed` or `test_emptied`; the AI edits again. Tests that existed before the run stay locked exactly as before, and a first attempt or a clean retry is not touched. JavaScript test files only (like the existing-test rule; TypeScript is QUIKTR-1547); a file it cannot read is never refused. When a fix was made and the change then passed every check, the run also reports which tests written in this run the fix changed, as paths and line numbers only (`testsCorrected`), so the run page and the pull request can say so; `QUIKPILOT_TESTS_CORRECTED=off` stops that report. The rail cannot judge whether a changed expectation is right; it only closes the way of passing by saying nothing. QuikProjects must be deployed first (it validates the new field); an older one ignores it. Nothing else changes, and the sentence about no old test breaking has no switch: a revert of this release restores the old sentence.
|
|
284
|
+
|
|
285
|
+
**9.3.0-rc.18 — an honest "I cannot finish" no longer throws away a change that is one fix away (QUIKSPL-139).** The AI wrote the fix and its tests, ran the project's tests until its runs were used (4 failing, then 3, then 3) and answered `CANNOT_COMPLETE`; the whole change was thrown away and a second attempt started from nothing, which did worse. Had it said `DONE`, every check would have run and the fix step (QUIKTR-1527) would have continued from the same change. Now a give-up is KEPT when the change would have passed as a `DONE` (something changed, every required test case written, no file cut short or broken) and the AI's LAST test run came back with failing tests that are the change's doing. It is recorded as attempt 1 `kept`, goes through every check like any result, and when only the tests fail the existing fix continues from it (three attempts in all, so at most two fixes). Only in `loop-tests` mode with fixing on (the project's setting above 0); a fix attempt that gives up is not kept again; time-outs, network errors and every other ending behave as before. `QUIKPILOT_KEEP_ON_GIVE_UP=off` restores the clean second attempt without a new release. Nothing new goes to the AI service.
|
|
286
|
+
|
|
287
|
+
**9.3.0-rc.17 — the list of files that hold tests is read from this run's own test run (QUIKTR-1526).** Before the AI picks files, the AI service is given the files the project's test runner discovers and refuses an answer that puts test cases on any other existing file. That list used to come from the last merged QuikPilot run, so a test file added by hand since then was unknown and an honest answer about it was refused (QUIKSPL-140 died at targeting). Now `Setup` and the baseline test run come BEFORE targeting, and the list is built from that run's own report: the files it attributes tests to, put in the form of the file list and kept only if they are in it (the AI service rejects the whole request otherwise); each file that cannot be placed, and each test the report names without a file (a Java class name, a Jest describe title), is counted in `unmappedEntries`, which switches the refusal off. Doubt turns the check off, never on: no test command, no report, a report with no tests, or a wait that ran out sends `ABSENT`. Targeting waits for the baseline at most 90 seconds (`QUIKPILOT_DISCOVERY_WAIT_SECONDS`); past that the run says so in its notes and the baseline carries on beside the code-writing step exactly as before (it is started once). The list QuikProjects stores is no longer used by this runner. The log gets one `test_discovery` line with counts only. No change in the AI service or in QuikProjects.
|
|
288
|
+
|
|
289
|
+
**9.3.0-rc.16 — changes no test depends on are named (QUIKTR-1569).** A green test run only proves what the tests check (QUIKSPL-138: the pagination fix also rewrote the neighbouring `hasMore` line, wrongly, and all 75 tests stayed green). In `loop-tests` mode, after a change has passed every check, each changed block of an existing code file that is not a test is put back as it was, ON ITS OWN, and the project's tests run once more (a block that looks unneeded is run a second time before it is flagged). A block with every test still passing is reported under "What QuikPilot noticed" as a file and line numbers only, never the code: it is a statement about the tests, not about the code, since a block can be right and untested. It warns and never blocks. A run that times out, leaves no report or a stale one counts as unknown and is never flagged; a block put back that makes tests vanish counts as needed; at most 8 blocks are checked, for at most 6 minutes and never in the last 2 minutes before the job's stop; a suite too slow to run again, or a project with no readable baseline, is skipped. Files the run created, tests, documents and configuration are not looked at. The checkout and the final test report are put back after every run; a checkout that does not come back ends the run, as for `run_tests`. Switch it off with `QUIKPILOT_HUNK_CHECK=off`. An older QuikProjects ignores the new field.
|
|
290
|
+
|
|
291
|
+
**9.3.0-rc.15 — QuikPilot fixes its own change when the project's final tests fail (QUIKTR-1527).** In `loop-tests` mode, when the final comparison of the project's tests finds tests that passed before and fail now (or new tests that fail), the run no longer ends Failed at once. It takes the checkout back, starts another attempt FROM the change it just wrote (kept in memory), tells the AI which tests failed (names, and for tests it wrote itself the first line of the error: exactly what `run_tests` shows it), and then runs EVERY check again from scratch (dependencies, scope, placement, format, lint, the project's tests, coverage). At most three attempts at writing the change per run in all (an ordinary retry counts as one); `maxHealIterations` (the project's "fix attempts" setting) can lower it, and 0 turns fixing off. A fix is made only for a failing test comparison (never for lint, scope, dependency, placement or coverage), never after the same tests fail the same way twice in a row, and only if the time left fits it (the job limit less seven minutes for pushing and reporting). Nothing is pushed unless the final code passes every check; an existing test is never edited to make code pass. A run that still fails ends Failed as before, with "; QuikPilot tried to fix it N times (stopped: …)" added to the reason, and the run's record gains the fix attempts and a stop word. Needs the AI service with contract 24.12d (otherwise the fix is refused and the run fails exactly as before). Other modes and a run whose tests pass are unchanged.
|
|
292
|
+
|
|
293
|
+
**9.3.0-rc.14 — the early look's findings reach the targeting step (QUIKTR-1561).** When QuikProjects' work packet carries `findings` (only after a look COMPLETED), the runner filters them to this checkout (entries whose path is not in the listing or matches the protected list are dropped, and the look's free-text questions are never sent) and adds them as the last key of the targeting request, on every turn of the loop and on the single call. If the AI service does not know the key and refuses it (`CONTRACT_REJECTED`), the request is asked ONCE more without it and a warning says so; any other failure, a second refusal, and a refusal of a request that carried no findings fail exactly as before. A run without a completed look sends exactly the request it always did. Deploy the AI service and QuikProjects first.
|
|
294
|
+
|
|
295
|
+
**9.3.0-rc.13 — a run that finds no file to change now fails (QUIKTR-1557).** When targeting answers "no file" for a run that has an approved
|
|
296
|
+
issue (every real run: dispatch attaches one after Gate 1), the runner no longer writes the Phase 0 marker file, runs setup and tests, pushes a
|
|
297
|
+
branch and reports success. The run ends at once, before anything is written, installed or pushed, with the reason
|
|
298
|
+
`QuikPilot found no file to change for this request — <the AI's own reason>` (`no reason was given.` when it gave none; credentials scrubbed,
|
|
299
|
+
cut at 1,000 characters like every reason). The callback is `failed`, carries that reason in `unresolved`, and still carries the targeting
|
|
300
|
+
record (outcome `NO_TARGET` and the AI's reason), so no pull request is opened and the work item is free for a new run. A run with NO approved
|
|
301
|
+
issue (the development skeleton) keeps the old marker path unchanged. QuikProjects shows what to change in the request; nothing in the
|
|
302
|
+
workflow file changes.
|
|
303
|
+
|
|
304
|
+
**9.1.0 — the code-writing step sees the files the changed file imports.** For every existing file a run changes (code or
|
|
305
|
+
test), the runner now reads that file's own imports (JavaScript and TypeScript, one hop, never what those files import)
|
|
306
|
+
and sends the repository files they point to as extra context. They come after the files targeting named and never in
|
|
307
|
+
place of them. Packages, path aliases (`@/…`), stylesheets and images are not followed; a denied path is never read; the
|
|
308
|
+
extra files share the existing size limits, and if the runtime still finds the context too large the call is retried
|
|
309
|
+
without them. The `codegen.context` log line now also carries `importedPaths`, what was skipped and why (`import: too
|
|
310
|
+
large`, `import: over budget`, `import: unreadable`, `import: denied`, `import: not in workspace`) and how many path
|
|
311
|
+
aliases were not followed. The workflow file is unchanged, so a repository on 9.0.0 picks this up with its next
|
|
312
|
+
"runner version" pull request.
|
|
313
|
+
|
|
314
|
+
**9.0.0 — a failed run keeps its files.** When a run fails after code generation, the runner writes the files it
|
|
315
|
+
generated, a copy of the last test report and a short `manifest.json` (run, targets, files, the reason it stopped;
|
|
316
|
+
no credentials) to `quikpilot-failure/`, and the workflow's new `Keep the files of a failed run` step uploads that folder
|
|
317
|
+
as the Actions artifact `quikpilot-failed-run` for 7 days. Nothing is added to a branch or a pull request. That step is
|
|
318
|
+
part of the workflow file, so this is a major version: a repository on an older workflow file keeps working and simply
|
|
319
|
+
does not upload, until its "update the workflow" pull request is merged.
|