@quikit/quikpilot-runner 9.3.0-rc.78 → 9.3.0-rc.79

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
@@ -184,6 +184,8 @@ wrong (a field that arrives from a database row or a request), so it only warns
184
184
 
185
185
  **9.3.0-rc.78 - a part of the design whose name or description is a little too long is cut, not a reason to drop every part (QUIKTR-2449).** In the live trial of 9 Nov 2026 (F8, QTRIA-56, "Let people pin a comment so it stays at the top of the thread") one part's description was 354 characters and the runner accepts 300. `partsFromDesign` returned NO parts for the whole list when any part failed a check, so `parts_check.on` said `parts: 0`: no parts check, no `storedProposals`, no database change proposed, and the pull request opened as a normal pull request with code written for a column that does not exist. The 150 and 300 limits are only words in the AI Runtime's design form, and the site passes the design through untouched, so the model can exceed them. Now `partsFromDesignCut` (and `partsFromDesign`, which wraps it) cuts a name over 150 and a `what` over 300 characters to the limit (never between the two halves of a character) and keeps every part; `designForTargeting` sends targeting the parts as the runner reads them (a cut design with every other key of the design and of each part kept, or the very same design object when nothing was cut); `parts_check.on` carries `cut: <parts that had a field cut>` only when something was cut. A design that is broken in any other way (an id not shaped `P<n>`, an unknown kind, a repeated id, an empty name, a `what` that is not text, more than eight parts, an entry that is not an object) still gives no parts, as before. Switched off, a bug run, a design with no parts, and a design that fits: every request, log line and callback is what it was. New tests in `partsCheck.test.ts` and `run.parts.test.ts` (the two rows that pinned "a long name or description gives no parts" moved into the new cases); ten mutations turn tests red.
186
186
 
187
+ **9.3.0-rc.79 - plain SQL files are no evidence for the table names of a proposed database change (QUIKTR-2450).** In the live rerun of 9 Nov 2026 (F8, QTRIA-57, rc.78) the draft pull request's SQL read `ALTER TABLE app_quiktrack."QtIssueComment"`: the schema (`app_quikprojects`) and the table (`QptIssueComment`) are both different, and the name check of rc.77 (QUIKTR-2448) said `namesUnchecked: 0`. The repository still holds an old dump (`packages/database/scripts/qt-schema.sql`, `CREATE TABLE app_quiktrack."QtIssueComment"`) and a manual check script that name exactly that pair; they are neither documentation nor read-denied, so the pair "appeared together in one readable file". `nameEvidence.ts` now counts a file as evidence only if it is not documentation and not a SQL file (`.sql`, `.dump`, `.psql`, `.ddl`, any letter case, wherever it sits): dumps, history and checks live there as often as the live schema, while the model definition (Prisma, a Python, Go or Ruby model, a JSON or YAML schema) and the application code say what the product uses now. A name found only in SQL files is reported as not checked: the AI is sent back once and the pull request says so. Run on the real trial repository, both statements of the two F8 runs are now flagged and the right one (`app_quikprojects."QptIssueComment"`) passes. Known cost: a repository whose only schema is plain SQL migrations gets the "could not check" sentence on every database proposal (one send-back, then a warning); a person checks the names, as the pull request already asks. Switched off, a bug run, and every other path: unchanged. New tests in `nameEvidence.test.ts` (the F8 repository in miniature, every SQL kind and case, the other languages' models, a bare table); six mutations turn tests red.
188
+
187
189
  **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.
188
190
 
189
191
  **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.
package/dist/index.js CHANGED
@@ -53751,7 +53751,7 @@ var FAILURE_ARTIFACT_DIR = "quikpilot-failure";
53751
53751
  var REPORT_COPY = "final-test-report.xml";
53752
53752
  var MAX_REPORT_BYTES = 5 * 1024 * 1024;
53753
53753
  var MAX_FILES = 200;
53754
- var RUNNER_VERSION = true ? "9.3.0-rc.78" : "dev";
53754
+ var RUNNER_VERSION = true ? "9.3.0-rc.79" : "dev";
53755
53755
  function safeDestination(base, repoPath) {
53756
53756
  if (!repoPath || (0, import_node_path27.isAbsolute)(repoPath)) return null;
53757
53757
  const destination = (0, import_node_path27.resolve)(base, repoPath);
@@ -53919,6 +53919,7 @@ var GREP_TIMEOUT_MS3 = 1e4;
53919
53919
  var MAX_FILES2 = 200;
53920
53920
  var MAX_FILE_BYTES2 = 2e6;
53921
53921
  var DOC_FILE = /\.(?:md|mdx|markdown|txt|rst|adoc|docx?)$/i;
53922
+ var SQL_FILE = /\.(?:sql|dump|psql|ddl)$/i;
53922
53923
  var escapeRegExp5 = (s) => s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
53923
53924
  function filesNaming(word, ev, readable, denied) {
53924
53925
  let out2;
@@ -53933,7 +53934,7 @@ function filesNaming(word, ev, readable, denied) {
53933
53934
  } catch {
53934
53935
  return [];
53935
53936
  }
53936
- return out2.split("\n").filter((f) => f !== "" && f !== DATABASE_CHANGE_PATH && !DOC_FILE.test(f) && (readable === null || readable.has(f)) && matchesDeniedPath(f, denied) === null).slice(0, MAX_FILES2);
53937
+ return out2.split("\n").filter((f) => f !== "" && f !== DATABASE_CHANGE_PATH && !DOC_FILE.test(f) && !SQL_FILE.test(f) && (readable === null || readable.has(f)) && matchesDeniedPath(f, denied) === null).slice(0, MAX_FILES2);
53937
53938
  }
53938
53939
  function fileHasWord(cwd, file, word) {
53939
53940
  try {