@quikit/quikpilot-runner 9.3.0-rc.1 → 9.3.0-rc.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,129 +1,145 @@
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. The per-file fallback refuses to start from a checkout that is not what it was when the loop began.
56
- The tests run with the same allow-listed environment as every other repository command, in their own process group, with a time limit
57
- of three times the baseline run (never under 2 minutes, never over 10); a suite whose baseline took over 10 minutes gets no `run_tests`
58
- and the run record says so. At most three runs; the same failing tests twice in a row is answered `no_progress` and ends the runs. What
59
- the AI is told is counts and the NAMES of failing tests, regressions first (a regression passed before the change); never a failure
60
- message, a stack trace or file text, until QUIKTR-1474 is answered. The run record gains `contractVersion` and `testRuns` (counts and
61
- flags only). Finishing after a green run is advised in the prompt, not required. Off unless `loop-tests` is set; with plain `loop` the
62
- tool does not exist.
63
-
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 loop is thrown away and the files are written one at a time, as for any other ordinary failure (`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 cannot finish for an ordinary reason (an
105
- older runtime, a timeout, a refused edit it cannot recover from, a cut-short file) everything it held is thrown away and the
106
- files are written one at a time, and the run's warnings say so. A budget or credential refusal from the AI Runtime is never
107
- retried (the one-at-a-time 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 the runner simply falls back.
113
-
114
- **9.1.0 — the code-writing step sees the files the changed file imports.** For every existing file a run changes (code or
115
- test), the runner now reads that file's own imports (JavaScript and TypeScript, one hop, never what those files import)
116
- and sends the repository files they point to as extra context. They come after the files targeting named and never in
117
- place of them. Packages, path aliases (`@/…`), stylesheets and images are not followed; a denied path is never read; the
118
- extra files share the existing size limits, and if the runtime still finds the context too large the call is retried
119
- without them. The `codegen.context` log line now also carries `importedPaths`, what was skipped and why (`import: too
120
- large`, `import: over budget`, `import: unreadable`, `import: denied`, `import: not in workspace`) and how many path
121
- aliases were not followed. The workflow file is unchanged, so a repository on 9.0.0 picks this up with its next
122
- "runner version" pull request.
123
-
124
- **9.0.0 — a failed run keeps its files.** When a run fails after code generation, the runner writes the files it
125
- generated, a copy of the last test report and a short `manifest.json` (run, targets, files, the reason it stopped;
126
- no credentials) to `quikpilot-failure/`, and the workflow's new `Keep the files of a failed run` step uploads that folder
127
- as the Actions artifact `quikpilot-failed-run` for 7 days. Nothing is added to a branch or a pull request. That step is
128
- part of the workflow file, so this is a major version: a repository on an older workflow file keeps working and simply
129
- does not upload, until its "update the workflow" pull request is merged.
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.1.0 — the code-writing step sees the files the changed file imports.** For every existing file a run changes (code or
131
+ test), the runner now reads that file's own imports (JavaScript and TypeScript, one hop, never what those files import)
132
+ and sends the repository files they point to as extra context. They come after the files targeting named and never in
133
+ place of them. Packages, path aliases (`@/…`), stylesheets and images are not followed; a denied path is never read; the
134
+ extra files share the existing size limits, and if the runtime still finds the context too large the call is retried
135
+ without them. The `codegen.context` log line now also carries `importedPaths`, what was skipped and why (`import: too
136
+ large`, `import: over budget`, `import: unreadable`, `import: denied`, `import: not in workspace`) and how many path
137
+ aliases were not followed. The workflow file is unchanged, so a repository on 9.0.0 picks this up with its next
138
+ "runner version" pull request.
139
+
140
+ **9.0.0 — a failed run keeps its files.** When a run fails after code generation, the runner writes the files it
141
+ generated, a copy of the last test report and a short `manifest.json` (run, targets, files, the reason it stopped;
142
+ no credentials) to `quikpilot-failure/`, and the workflow's new `Keep the files of a failed run` step uploads that folder
143
+ as the Actions artifact `quikpilot-failed-run` for 7 days. Nothing is added to a branch or a pull request. That step is
144
+ part of the workflow file, so this is a major version: a repository on an older workflow file keeps working and simply
145
+ does not upload, until its "update the workflow" pull request is merged.