@quikit/quikpilot-runner 9.3.0-rc.92 → 9.3.0-rc.93

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,8 @@ 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.93 - a turn the AI service calls too big is not mistaken for a switch that is off (QUIKTR-2712, RT-05).** The AI service refused a loop turn over its per-turn size limit with the same code (`CONTRACT_REJECTED`) it uses for "switch off", "unknown version" and "malformed request", which the run answers by stepping down a version, dropping a key or writing the files one at a time (on a first request it could even end the run as "needs a database change"). The service now sends its own code, `LOOP_TURN_TOO_LARGE`, for that one refusal, and the three loops (code writing, the file search and the early look) end the attempt as `token_ceiling` ("the request grew too large for one step") with the service's code kept in the record: no step down, no key dropped, no per-file fallback. A runner of this version against the older service behaves as before. Release this runner BEFORE the service half.
198
+
197
199
  **9.3.0-rc.92 - each loop version's fixed prompt part counted honestly (QUIKTR-2709, RT-01).** A loop turn was sized as 5,000 for the fixed part (instruction, forms, user turn) plus its context, against 90,000; the fixed part is really 7,000 to 23,500 depending on the contract version, so the ceiling allowed ~104,000. The 90,000 is now the whole request: the fixed part comes from one table per version (`PROMPT_OVERHEAD_BY_VERSION`, the AI Runtime's values word for word), and an unknown version is charged the largest. Long runs drop old file contents a little sooner. Release this runner BEFORE the runtime half: it trims sooner, which today's runtime accepts.
198
200
 
199
201
  **9.3.0-rc.91 - the rest of the leftover exam findings (QUIKTR-2708, batches B and C).** A branch name git would read as an option or a forced push ("+name") stops the run before any git call, and the push names its exact target; git.ts holds no raw control character any more, so its diffs show in review (RN-15, RN-11). A readiness check whose result never reached QuikProjects fails the job and reports a path inside the repository (RN-14). A targeted run with nothing to commit fails with a plain reason instead of "completed" (RN-18). A quoted "{file}" in the one-file test command works (RN-16). Every network call has its own limit (one minute for tokens, the packet, uploads and reports; five for a single model call), and a reply over 32 MB is refused (RN-22, RN-21). The test-report search walks the checkout once and never follows a link (RN-08); the packet is checked for shape when it arrives (RN-20); the fix record never shows more fixes made than allowed (RN-17). Code clean-up with no change to what a run does: the tool loops share one copy of their helpers, files are put back one way, the contract steps back as one table, and a long request is measured once while it is trimmed (RN-09, RN-19, RN-21).
package/dist/index.js CHANGED
@@ -37060,6 +37060,7 @@ var TargetingHttpError = class extends Error {
37060
37060
  };
37061
37061
 
37062
37062
  // src/loopShared.ts
37063
+ var LOOP_TURN_TOO_LARGE_CODE = "LOOP_TURN_TOO_LARGE";
37063
37064
  var MAX_ID_CHARS = 64;
37064
37065
  var MAX_CALLS_IN_A_REPLY = 50;
37065
37066
  var MAX_ARGS_JSON_CHARS = 1e3;
@@ -49263,6 +49264,10 @@ async function runTargetingLoop(args2, deps) {
49263
49264
  log({ event: "targeting.loop_recovered", turn, reason: "schema_mismatch", runtimeCode, elapsedMs: now() - turnStarted });
49264
49265
  continue;
49265
49266
  }
49267
+ if (runtimeCode === LOOP_TURN_TOO_LARGE_CODE) {
49268
+ log({ event: "targeting.turn_too_large", turn, requestTokens });
49269
+ throw new LoopFailure("token_ceiling", runtimeCode);
49270
+ }
49266
49271
  throw new LoopFailure(runtimeCode && OUTPUT_TOO_LARGE_CODES.has(runtimeCode) ? "output_too_large" : "runtime_failed", runtimeCode);
49267
49272
  }
49268
49273
  let body2;
@@ -50825,6 +50830,11 @@ async function runCodegenLoop(args2, deps) {
50825
50830
  if (handled === true) continue;
50826
50831
  throw handled;
50827
50832
  }
50833
+ if (runtimeCode === LOOP_TURN_TOO_LARGE_CODE) {
50834
+ const version2 = contextData.contractVersion;
50835
+ log({ event: "codegen.turn_too_large", turn, ...typeof version2 === "string" ? { version: version2 } : {}, requestTokens });
50836
+ throw new CodegenLoopFailure("token_ceiling", runtimeCode);
50837
+ }
50828
50838
  throw new CodegenLoopFailure("runtime_failed", runtimeCode);
50829
50839
  }
50830
50840
  let body2;
@@ -54908,7 +54918,7 @@ var FAILURE_ARTIFACT_DIR = "quikpilot-failure";
54908
54918
  var REPORT_COPY = "final-test-report.xml";
54909
54919
  var MAX_REPORT_BYTES = 5 * 1024 * 1024;
54910
54920
  var MAX_FILES = 200;
54911
- var RUNNER_VERSION = true ? "9.3.0-rc.92" : "dev";
54921
+ var RUNNER_VERSION = true ? "9.3.0-rc.93" : "dev";
54912
54922
  function safeDestination(base, repoPath) {
54913
54923
  if (!repoPath || (0, import_node_path27.isAbsolute)(repoPath)) return null;
54914
54924
  const destination = (0, import_node_path27.resolve)(base, repoPath);
@@ -56822,6 +56832,7 @@ function classifyEnvelope(envelope) {
56822
56832
  if (code === "RUN_BUDGET_EXCEEDED") return new InvestigateFailure("budget_exceeded");
56823
56833
  if (code === "RUN_CREDENTIAL_SCOPE") return new InvestigateFailure("credential_scope");
56824
56834
  if (code === "SEMANTIC_MISMATCH") return new InvestigateFailure("semantic_mismatch");
56835
+ if (code === LOOP_TURN_TOO_LARGE_CODE) return new InvestigateFailure("token_ceiling");
56825
56836
  if (code === "CONTRACT_REJECTED") {
56826
56837
  const text3 = `${typeof e?.error === "string" ? e.error : ""} ${typeof e?.normalizedText === "string" ? e.normalizedText : ""}`;
56827
56838
  return new InvestigateFailure(text3.includes(SWITCH_OFF_SENTENCE) ? "switch_off" : "contract_rejected");