Fix deep scan: log output even on failure, capture exit code for debugging
This commit is contained in:
@@ -101,3 +101,7 @@ fc7830 1771815793
|
||||
70f24f 1771816706
|
||||
7207df 1771816712
|
||||
75b7d0 1771816717
|
||||
785e2c 1771816723
|
||||
78a490 1771816728
|
||||
78e9e7 1771816733
|
||||
801168 1771816738
|
||||
|
||||
|
@@ -13576,3 +13576,23 @@ status: UPDATED | Treaty of Kadesh | changes: Added alternate names (Eternal Tre
|
||||
[2026-02-23 03:18:42] ━━━ [Persian Empire (Achaemenid)] (785e2c) reviews=0 garbage=0 ━━━
|
||||
[2026-02-23 03:18:42] 🧹 Bash cleanup applied
|
||||
[2026-02-23 03:18:42] ⏭️ No questions, not modified since last pass → skipping (--skip-unchanged)
|
||||
[main 34d444a] improve: Persian Empire (Achaemenid)
|
||||
4 files changed, 28 insertions(+), 2 deletions(-)
|
||||
[2026-02-23 03:18:43] ✅ Committed: improve: Persian Empire (Achaemenid)
|
||||
[2026-02-23 03:18:43] Done (0s) — UPDATED
|
||||
[2026-02-23 03:18:48] [64/66] Next up...
|
||||
[2026-02-23 03:18:48] ━━━ [Ancient History Knowledge Base] (78a490) reviews=0 garbage=0 ━━━
|
||||
[2026-02-23 03:18:48] ⏭️ No questions, not modified since last pass → skipping (--skip-unchanged)
|
||||
[2026-02-23 03:18:48] Done (0s) — NO_CHANGE
|
||||
[2026-02-23 03:18:53] [65/66] Next up...
|
||||
[2026-02-23 03:18:53] ━━━ [Zoroastrianism] (78e9e7) reviews=0 garbage=0 ━━━
|
||||
[2026-02-23 03:18:53] ⏭️ No questions, not modified since last pass → skipping (--skip-unchanged)
|
||||
[2026-02-23 03:18:53] Done (0s) — NO_CHANGE
|
||||
[2026-02-23 03:18:58] [66/66] Next up...
|
||||
[2026-02-23 03:18:58] ━━━ [Cyrus the Great] (801168) reviews=0 garbage=0 ━━━
|
||||
[2026-02-23 03:18:58] ⏭️ No questions, not modified since last pass → skipping (--skip-unchanged)
|
||||
[2026-02-23 03:18:58] Done (0s) — NO_CHANGE
|
||||
[2026-02-23 03:19:03]
|
||||
[2026-02-23 03:19:03] ═══ Pass 1 complete: 66 processed, 45 updated ═══
|
||||
[2026-02-23 03:19:03] 🔬 Running deep cross-document validation scan...
|
||||
[2026-02-23 03:45:03] ❌ Deep scan agent failed, continuing...
|
||||
|
||||
@@ -475,12 +475,14 @@ process_entity() {
|
||||
run_deep_scan() {
|
||||
log "🔬 Running deep cross-document validation scan..."
|
||||
local output
|
||||
local rc=0
|
||||
output=$(kiro-cli chat --trust-all-tools --no-interactive --model "$MODEL" \
|
||||
"Run check_repository with deep_check=true. Review any new issues found — answer what you can, defer what you cannot. If any factbase tool behaves unexpectedly during this process, file a bug to Vikunja (project 2, Authorization: Bearer tk_ff251f3d3512775c71913bc2f8ec0dabbf5016a8). Describe issues in domain-agnostic terms — factbase is used for many knowledge bases, not just this one." 2>&1) || {
|
||||
log "❌ Deep scan agent failed, continuing..."
|
||||
return 1
|
||||
}
|
||||
"Run check_repository with deep_check=true. Review any new issues found — answer what you can, defer what you cannot. If any factbase tool behaves unexpectedly during this process, file a bug to Vikunja (project 2, Authorization: Bearer tk_ff251f3d3512775c71913bc2f8ec0dabbf5016a8). Describe issues in domain-agnostic terms — factbase is used for many knowledge bases, not just this one." 2>&1) || rc=$?
|
||||
echo "$output"
|
||||
if [[ $rc -ne 0 ]]; then
|
||||
log "❌ Deep scan agent failed (exit code $rc), continuing..."
|
||||
return 1
|
||||
fi
|
||||
do_commit "deep scan: cross-document validation"
|
||||
log "✅ Deep scan complete"
|
||||
}
|
||||
|
||||
@@ -307,3 +307,15 @@
|
||||
[2026-02-23T03:18:37+00:00] 75b7d0 | Troy
|
||||
status: NO_CHANGE | Troy | bash-only pass
|
||||
duration: 0s
|
||||
[2026-02-23T03:18:43+00:00] 785e2c | Persian Empire (Achaemenid)
|
||||
status: UPDATED | Persian Empire (Achaemenid) | bash-only pass
|
||||
duration: 0s
|
||||
[2026-02-23T03:18:48+00:00] 78a490 | Ancient History Knowledge Base
|
||||
status: NO_CHANGE | Ancient History Knowledge Base | bash-only pass
|
||||
duration: 0s
|
||||
[2026-02-23T03:18:53+00:00] 78e9e7 | Zoroastrianism
|
||||
status: NO_CHANGE | Zoroastrianism | bash-only pass
|
||||
duration: 0s
|
||||
[2026-02-23T03:18:58+00:00] 801168 | Cyrus the Great
|
||||
status: NO_CHANGE | Cyrus the Great | bash-only pass
|
||||
duration: 0s
|
||||
|
||||
Reference in New Issue
Block a user