@quikit/quikpilot-runner 9.3.0-rc.75 → 9.3.0-rc.77
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 +10 -0
- package/dist/index.js +2569 -643
- package/dist/index.js.map +3 -3
- package/package.json +30 -30
package/README.md
CHANGED
|
@@ -172,6 +172,16 @@ wrong (a field that arrives from a database row or a request), so it only warns
|
|
|
172
172
|
|
|
173
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
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.77 - a route the repository already names is not a route the change adds; and a feature run's own test that fails as it did before the change is told so (QUIKTR-2446).** In the live trial of 9 Nov 2026 (F7, QTRIA-53) the AI wrote correct code for "Show the number of comments on each task card", including the comment `set by GET /api/issues on every list entry`, and the scope check stopped the run for adding that route: the design's API changes are plain words by now ("Board issue list response ..."), so no method and path in them could ever match, and the route already existed. (A) `checkApiScope` takes an optional `ExistingRoutes`; a mention the design does not cover is a violation only when the checkout, as it is before the change is written, does not already name that method and path (`routeAlreadyNamed`, `existingRoutes.ts`: `git grep` on the longest static part of the path, then the same mention rule on each hit with `:id`, `{id}` and `[id]` equal; test files never count; a route-handler export has no path to look for; any problem with git, or more than 400 hits, answers no, so the stop stays). `verifyChange` passes it and logs `scope.existing_route`. A route nothing names, a different method on a known path, and a route named only by the new line still stop (QUIKTR-1081 unchanged). Known limit: a route known only by where its file sits, and named nowhere in the repository, still stops. (B) In a feature run's code phase (the QUIKTR-2442 switch in effect) the `run_tests` answer gains one sentence when one of the AI's own tests fails with the first line of failure it had in the tests phase's last run (spaces collapsed, the runner's `[at file:line]` suffix ignored): its change has not changed how it fails, so compare the test's set-up with the tests around it (`sameFailureHint.ts`, at most 300 characters, titles only, no failure text). `runPhases` hands the tests phase's messages to the code phase as `seedOwnFailures`. Bug runs, the tests phase, the amendment and a switch that is off are what they were. New tests: `existingRoutes.test.ts` on real git repositories, the F7 shape in `scopeCheck.test.ts` and `verifyChange.test.ts`, `sameFailureHint.test.ts`, the loop (`codegenLoopSameFailure.test.ts`) and the step in two phases (`codegenStepSameFailure.test.ts`). Eleven mutations turn tests red (the existing-route test inverted, the method ignored, test files counted, the raw anchor compared, verifyChange never asking; the hint on bug runs, the tests phase's messages not handed on, the location kept in the comparison, any failing test hinted, the whole text compared, the status check dropped).
|
|
182
|
+
|
|
183
|
+
**9.3.0-rc.77 also - the tables a proposed migration names are looked for in the files the run could read, and the first note that names one nothing shows is sent back (QUIKTR-2448).** In the live trial of 9 Nov 2026 (F8, QTRIA-54) the draft pull request's SQL read `ALTER TABLE "app_quiktrack"."QptIssueComment"`; the model lives in `app_quikprojects` (renamed on 23 Sep 2026), the AI never opened the schema, and `schemaFileSeen` came out true because an empty schema-file name counted as seen. `migrationNames.ts` reads the existing tables a SQL migration names (`ALTER TABLE`, `CREATE INDEX ... ON`, `REFERENCES`, `INSERT INTO`; a table the same migration creates is left out; comments are ignored; a migration in an ORM's own language, such as Django's operations or Rails' `add_column`, names none and gets no check). `nameEvidence.ts` looks for each in tracked files the run could read (the read listing, not a read-denied path, not documentation: `.md`, `.mdx`, `.txt`, `.rst`, `.adoc`, `.doc`, `.docx`, not the run's own note): a bare table by its name as a whole word, a schema-qualified one by the schema and the table together in one file. `DatabaseChangeNote` takes an optional checker: the first `write_file` of the note that names a table nothing shows is answered `bad_args` with the names (identifiers only, two shown, within 300 characters) and is not recorded; the next write is recorded whatever it names, with the names still not found as `unchecked`. `finalDatabaseChange` sends them as the callback's `namesUnchecked` (at most 8, left out when none) and `schemaFileSeen` is false when no schema file is named. `run.ts` builds the checker from the read listing and the denied paths. A checker that fails says nothing. QuikProjects words the unchecked names on the draft pull request and must ship before this runner (its callback schema is strict). New tests: `migrationNames.test.ts`, `nameEvidence.test.ts` (the F8 repository in miniature: the right schema in the schema file, the old one only in a document and in a migration the space denies), the note and the report in `databaseChange.test.ts`, and four end-to-end scenarios on real git repositories (`codegenStep.databaseChange.test.ts`). Seventeen mutations turn tests red (documentation counted, read-denied files counted, a qualified name found by its table alone, the read listing ignored, the run's own note counted, a table the migration creates asked about, statements in comments read, the first write never or always sent back, the names not kept, an empty schema-file name seen, a failing checker breaking the note, the checker dropped by the step or the loop).
|
|
184
|
+
|
|
175
185
|
**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.
|
|
176
186
|
|
|
177
187
|
**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.
|