@quikit/quikpilot-runner 9.3.0-rc.86 → 9.3.0-rc.88

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
@@ -194,6 +194,10 @@ wrong (a field that arrives from a database row or a request), so it only warns
194
194
 
195
195
  **9.3.0-rc.81 (also) - pytest and go test reports place their tests on files (QUIKTR-2465 item 3).** The Python and Go trial repositories' reports placed no test on a file, so the test-file list was empty and the AI Runtime's early check was off. pytest tests are placed by the longest dotted prefix that is a `.py` file of the listing; Go tests by go.mod's module and the one `_test.go` file of the package's folder that declares the function. Real reports: sqlparse 454 tests on 9 files, decimal 145 tests on 3 files, 0 unmapped each. A report that places none of its tests says so in the run's notes. JavaScript reports are unchanged.
196
196
 
197
+ **9.3.0-rc.88 - a test report the repository keeps in git is never sent, deleted or dropped from the pull request (QUIKTR-2705, RN-03).** After a run the runner sent every JUnit-shaped XML file in the checkout to QuikTest and then deleted them all, tracked files included, with no freshness filter; `git add -A` then staged the deletions, so the pull request deleted a repository's own report fixtures (up to 500 files), and the results held tests that never ran. When there was nowhere to send to, or the upload failed, nothing was deleted and the run's own report could be committed. (1) Only the run's own reports are sent: JUnit reports git does not track (`git ls-files`), written at or after the final test run's start (`freshSinceMs`, the gate's start, passed from verifyChange to run); the failed-run copy is read the same way. (2) Every untracked report is deleted right after the upload whatever it did (`removeRunReports`), before anything is staged; a tracked one is never touched. Outside a git repository nothing is tracked; when git fails any other way every report is taken as tracked, so nothing is sent or deleted. (3) The AI never deletes a file, so a staged deletion of a tracked file was made by a command: `checkGuardrail` unstages it (the file stays as it is on disk), and the run's notes name up to ten (`commit.deletions_left_out`, count only). New tests in `quiktestTrackedReports.test.ts` (real git: tracked fixtures, an old and a fresh report, three upload outcomes, a broken index, a command's deletion), `run.test.ts` and `verifyChange.test.ts`; 7 of 7 mutations turn tests red.
198
+
199
+ **9.3.0-rc.87 - no repository git hook ever runs, and git never gets the runner's whole environment (QUIKTR-2704, RN-01).** Git runs a repository's own hooks (pre-commit, commit-msg, pre-push, post-checkout, reference-transaction ...) and hands each its whole environment; on push that environment held the token that can write to the customer's repository, and a hook is just a file in the repository (`npm install` installs husky's, and the AI could edit one). (1) Every git command the runner starts carries `-c core.hooksPath=<a folder that is never created>`, so git finds no hook: not on commit, push, checkout, nor on the ref update of a test-change proposal (`gitSafety.ts`). (2) Git gets `commandEnv`'s allow-list plus its own `GIT_*` settings, and the push alone adds its token header; the OIDC request token, the ambient job token and the runner's own addresses stay out. (3) `.husky/**`, `.githooks/**` and `lefthook*.yml` join the files the AI never sees, edits or commits (`genericDenies.ts` `HOOK_FILES`). A repository whose hooks format or lint on commit no longer runs them through QuikPilot; the runner runs the project's own format and lint commands itself. New tests in `gitHooksOff.test.ts` (real git: before the change all seven hooks ran, now none) and `gitSafety.test.ts`; 7 of 7 mutations turn tests red.
200
+
197
201
  **9.3.0-rc.86 - the AI service's privacy filter never reaches a file, and `internal_error` names its cause (QUIKTR-2644).** In QTGO-28 (12 Nov 2026) the AI Runtime's answer filter turned the test value `0.04978706837` in a code answer into `0.[ACCOUNT_REDACTED]`, the runner wrote it into an approved test change, and the run failed although the AI was right; the code attempt after it ended `internal_error` and the log said nothing more. The AI Runtime now leaves the code steps' answers alone (its own half of the ticket); the runner adds its own net. (1) A placeholder of the filter (`[ACCOUNT_REDACTED]`, `[AADHAAR_REDACTED]`, `[CARD_REDACTED]`, `[PAN_REDACTED]`, `[PHONE_REDACTED]`) that the AI's text ADDS is never written: `edit_file` (`replace` against `find`) and `write_file` (against the AI's own earlier write of that new file) answer `refused` with reason `redacted_text` and one fixed sentence; `report_test_conflict` is rejected with the new closed word `redacted_text` (`replace` against `find`, `caseValueTo` against `caseValueFrom`); the single-file path refuses it like a truncated rewrite. A placeholder already in a file is kept and the file can still be edited. (2) When a loop ends `internal_error`, `codegen.phase_end`, `codegen.attempt_end`, `investigate.loop_failed`, `targeting.loop_fallback` and `targeting.map_failed` carry `cause` (the error's class name, shape-checked, else `other`; `none` when nothing was thrown) and, for a Node system error, `causeCode` (`ENOENT`); never the message. What QuikProjects records is unchanged. New tests in `redactionGuard2644.test.ts`; switching the guards and the cause off turns 5 of 12 red.
198
202
 
199
203
  **9.3.0-rc.85 - the person's own request reaches targeting and the code loop (QUIKTR-2509).** A coding agent's ticket names files, routes and tests; capture, questions, spec and design read it, targeting and the code loop never did (F7: the ticket ruled out a route and targeting chose it). QuikProjects can now send two optional packet keys (its switch `QUIKPILOT_TICKET_HINTS`, off by default). `ticketHints`: the paths, server addresses, code names and test names the request names, pulled out with no AI. The runner keeps a path only if its checkout lists it and it is not protected, maps each address to the route files of the checkout that answer it (at most 3), passes names and test names with their caps, and sends `ticketHints` last of every targeting request (single call, loop and map mode) only when something is left; log `targeting.ticket_hints` with counts only. `criteriaWording`: the approved criteria with the person's own quote, last of the task on every code-loop request. An AI Runtime that does not know a key refuses it; the runner asks once more without it (targeting keeps the early look's findings; the code loop keeps its version) and says so in the run's notes. Without the keys every request is today's byte for byte. New tests in `ticketHints.test.ts` and `codegenStepConflicts.more.test.ts`.