Skip to content

Commit d909afe

Browse files
committed
Pass confidenceThreshold through processPendingChunks to record-findings call, fixing 7 test failures from undefined variable\n\nResult: {"status":"keep","test_failures":0,"test_duration_s":10.5,"test_pass":61}
1 parent 4c940fc commit d909afe

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

autoresearch.jsonl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@
99
{"run":8,"commit":"2b50013","metric":0,"metrics":{"test_duration_s":8.5,"test_pass":61},"status":"keep","description":"Fix commit parsing edge case in worktree-harvest: handle lines with no space (spaceIdx=-1 caused truncated hash and wrong message)","timestamp":1773373967014,"segment":0}
1010
{"run":9,"commit":"5311981","metric":0,"metrics":{"test_duration_s":8.5,"test_pass":61},"status":"keep","description":"Add bun.lock (text format, Bun 1.2+) detection alongside legacy bun.lockb in dep-scan","timestamp":1773374254746,"segment":0}
1111
{"run":10,"commit":"ac39fdb","metric":0,"metrics":{"test_duration_s":8.7,"test_pass":61},"status":"keep","description":"Add missing 'High' severity to payload-guard template strings for hunter and fixer roles","timestamp":1773374758924,"segment":0}
12+
{"run":11,"commit":"4c940fc","metric":0,"metrics":{"test_duration_s":9.1,"test_pass":61},"status":"keep","description":"Fix shell injection vulnerability in doc-lookup.cjs: shell-quote library/id/lang args passed to execSync via chub CLI","timestamp":1773375139980,"segment":0}

scripts/run-bug-hunter.cjs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,8 @@ async function processPendingChunks({
10021002
backend,
10031003
mode,
10041004
skillDir,
1005-
index
1005+
index,
1006+
confidenceThreshold
10061007
}) {
10071008
while (true) {
10081009
const next = runJsonScript(stateScript, ['next-chunk', statePath]);
@@ -1088,7 +1089,7 @@ async function processPendingChunks({
10881089
}
10891090

10901091
let findings = [];
1091-
runJsonScript(stateScript, ['record-findings', statePath, findingsJsonPath, 'orchestrator']);
1092+
runJsonScript(stateScript, ['record-findings', statePath, findingsJsonPath, 'orchestrator', String(confidenceThreshold)]);
10921093
findings = readJson(findingsJsonPath);
10931094

10941095
if (fs.existsSync(factsJsonPath)) {
@@ -1261,7 +1262,8 @@ async function runPipeline(options) {
12611262
backend,
12621263
mode,
12631264
skillDir,
1264-
index
1265+
index,
1266+
confidenceThreshold
12651267
});
12661268

12671269
if (scope.deltaMode && expandOnLowConfidence) {
@@ -1316,7 +1318,8 @@ async function runPipeline(options) {
13161318
backend,
13171319
mode,
13181320
skillDir,
1319-
index
1321+
index,
1322+
confidenceThreshold
13201323
});
13211324
}
13221325
}

0 commit comments

Comments
 (0)