@quikit/quikpilot-runner 9.3.0-rc.96 → 9.3.0-rc.97
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 +5 -0
- package/dist/index.js +16 -6
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -194,6 +194,11 @@ 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.97 - the early look can say the reported behaviour already works (QUIKTR-2821).** On UAT (17 Nov) the look read an already-fixed bug's fix and had no word for it: the model answered NOT_PRESENT, its searches had found code, and the runner turned that into CANNOT_TELL, so the run went through both gates and a build first.
|
|
198
|
+
- **The new verdict.** The look now speaks the AI Runtime's `investigate-loop-2`, which adds a fifth verdict, **ALREADY_WORKS**: the code the report points at exists and already behaves as the report says it should. It stands only on a citation the runner checked (the rule PRESENT has), otherwise CANNOT_TELL, and a trimmed record keeps a citation for it.
|
|
199
|
+
- **Older AI Runtimes.** An AI Runtime that predates loop-2 refuses it on the first turn: that turn is asked once more on `investigate-loop-1` (`investigate.version_fallback`) and the look carries on there. A switched-off look and any later refusal end the look as before. The fixed part of a loop-2 request is 7,000 tokens (the AI Runtime's value).
|
|
200
|
+
- **Order.** QuikProjects must accept the word (its callback is strict) before this version is pinned. QuikProjects shows it next to the questions, with a choice to stop.
|
|
201
|
+
|
|
197
202
|
**9.3.0-rc.96 - a bug that does not reproduce on the code before any change ends as its own outcome, not a generic failure (QUIKTR-2794).** On UAT (17 Nov) a bug whose fix was already merged was given to QuikPilot again. In the tests phase both case tests passed on the untouched code (75/75), the red check sent the DONE back, and the AI gave up. The run ended as a generic `cannot_complete`, and the run page had no advice. A tests-phase give-up now ends `not_reproduced` only on the runner's own evidence, never the AI's words. All of these must hold:
|
|
198
203
|
- the AI was told its tests pass and still gave up (or the attempt before ended so);
|
|
199
204
|
- each bug case's test sits in a changed file the hand-over check accepts and was seen PASSING BY NAME among the tests the baseline did not have, in a whole run that finished and shows nothing new failing (tests already failing before are ignored);
|
package/dist/index.js
CHANGED
|
@@ -42684,7 +42684,9 @@ var PROMPT_OVERHEAD_BY_VERSION = Object.freeze({
|
|
|
42684
42684
|
"targeting-loop-2": 10500,
|
|
42685
42685
|
"targeting-loop-3": 11e3,
|
|
42686
42686
|
"targeting-loop-4": 12500,
|
|
42687
|
-
"investigate-loop-1": 7e3
|
|
42687
|
+
"investigate-loop-1": 7e3,
|
|
42688
|
+
// QUIKTR-2821: the AI Runtime's value for loop-2 (measured worst case 6,088).
|
|
42689
|
+
"investigate-loop-2": 7e3
|
|
42688
42690
|
});
|
|
42689
42691
|
var LARGEST_OVERHEAD = Math.max(...Object.values(PROMPT_OVERHEAD_BY_VERSION));
|
|
42690
42692
|
function promptOverheadTokens(version2) {
|
|
@@ -55118,7 +55120,7 @@ var FAILURE_ARTIFACT_DIR = "quikpilot-failure";
|
|
|
55118
55120
|
var REPORT_COPY = "final-test-report.xml";
|
|
55119
55121
|
var MAX_REPORT_BYTES = 5 * 1024 * 1024;
|
|
55120
55122
|
var MAX_FILES = 200;
|
|
55121
|
-
var RUNNER_VERSION = true ? "9.3.0-rc.
|
|
55123
|
+
var RUNNER_VERSION = true ? "9.3.0-rc.97" : "dev";
|
|
55122
55124
|
function safeDestination(base, repoPath) {
|
|
55123
55125
|
if (!repoPath || (0, import_node_path27.isAbsolute)(repoPath)) return null;
|
|
55124
55126
|
const destination = (0, import_node_path27.resolve)(base, repoPath);
|
|
@@ -56846,7 +56848,7 @@ async function runReadinessCheck(env2) {
|
|
|
56846
56848
|
}
|
|
56847
56849
|
|
|
56848
56850
|
// src/investigateFindings.ts
|
|
56849
|
-
var VERDICTS = ["PRESENT", "NOT_PRESENT", "CANNOT_TELL", "NEW_BEHAVIOUR"];
|
|
56851
|
+
var VERDICTS = ["PRESENT", "NOT_PRESENT", "CANNOT_TELL", "NEW_BEHAVIOUR", "ALREADY_WORKS"];
|
|
56850
56852
|
var ROLES = ["entry_point", "faulty_function", "caller", "helper", "test", "other"];
|
|
56851
56853
|
var MAX_FILES3 = 12;
|
|
56852
56854
|
var MAX_CALL_PATH = 10;
|
|
@@ -57003,7 +57005,7 @@ function verifyFindings(raw, ledger, ctx) {
|
|
|
57003
57005
|
}
|
|
57004
57006
|
let verdict = VERDICTS.includes(raw.verdict) ? raw.verdict : "CANNOT_TELL";
|
|
57005
57007
|
let downgraded = false;
|
|
57006
|
-
const supported = verdict === "PRESENT" ? evidence.length > 0 : verdict === "NOT_PRESENT" ? searches.length > 0 : verdict === "NEW_BEHAVIOUR" ? files.length > 0 || evidence.length > 0 : true;
|
|
57008
|
+
const supported = verdict === "PRESENT" || verdict === "ALREADY_WORKS" ? evidence.length > 0 : verdict === "NOT_PRESENT" ? searches.length > 0 : verdict === "NEW_BEHAVIOUR" ? files.length > 0 || evidence.length > 0 : true;
|
|
57007
57009
|
if (!supported) {
|
|
57008
57010
|
verdict = "CANNOT_TELL";
|
|
57009
57011
|
downgraded = true;
|
|
@@ -57012,7 +57014,8 @@ function verifyFindings(raw, ledger, ctx) {
|
|
|
57012
57014
|
}
|
|
57013
57015
|
|
|
57014
57016
|
// src/investigateLoop.ts
|
|
57015
|
-
var INVESTIGATE_CONTRACT_VERSION = "investigate-loop-
|
|
57017
|
+
var INVESTIGATE_CONTRACT_VERSION = "investigate-loop-2";
|
|
57018
|
+
var INVESTIGATE_FALLBACK_VERSION = "investigate-loop-1";
|
|
57016
57019
|
var INVESTIGATE_LIMITS = {
|
|
57017
57020
|
...DEFAULT_LIMITS,
|
|
57018
57021
|
maxTurns: 8,
|
|
@@ -57110,8 +57113,9 @@ async function runInvestigateLoop(args2, deps) {
|
|
|
57110
57113
|
let noProgressStreak = 0;
|
|
57111
57114
|
let forced = null;
|
|
57112
57115
|
const started = now();
|
|
57116
|
+
let version2 = INVESTIGATE_CONTRACT_VERSION;
|
|
57113
57117
|
const buildContext = (turn, isFinal, finalReason) => ({
|
|
57114
|
-
contractVersion:
|
|
57118
|
+
contractVersion: version2,
|
|
57115
57119
|
report: args2.report,
|
|
57116
57120
|
deniedPaths: args2.deniedPaths,
|
|
57117
57121
|
fileCount: args2.listing.length,
|
|
@@ -57160,6 +57164,12 @@ async function runInvestigateLoop(args2, deps) {
|
|
|
57160
57164
|
throw classifyTransport3(err2);
|
|
57161
57165
|
}
|
|
57162
57166
|
const failed = classifyEnvelope(envelope);
|
|
57167
|
+
if (failed?.reason === "contract_rejected" && turn === 1 && version2 === INVESTIGATE_CONTRACT_VERSION) {
|
|
57168
|
+
log({ event: "investigate.version_fallback", from: INVESTIGATE_CONTRACT_VERSION, to: INVESTIGATE_FALLBACK_VERSION });
|
|
57169
|
+
version2 = INVESTIGATE_FALLBACK_VERSION;
|
|
57170
|
+
turn -= 1;
|
|
57171
|
+
continue;
|
|
57172
|
+
}
|
|
57163
57173
|
if (failed) throw failed;
|
|
57164
57174
|
const body2 = envelope?.structuredJson;
|
|
57165
57175
|
if (!isPlainObject(body2)) throw new InvestigateFailure("bad_reply");
|