Repository navigation
fix: P8 — CLI JSON regression, dead code SQL, chunker loop, vector persist, path corruption, thread cap - #985
Merged
Conversation
🔍 Cora AI Code Review❌ Blocked — critical issues found. 🔴 Error (2)
Review powered by cora-code · BYOK · MIT |
…rsist, path corruption, thread cap - mod.rs: convert remaining manual JSON string to serde_json::json!() - schema.rs: add table name allowlist in column_exists_in (defense-in-depth) - docker-entrypoint.sh: explicit checksum validation with error exit - chunker.rs: guard against zero-length chunks causing infinite loop - operations.rs: persist vector index to disk after soft_forget - documents.rs: replace REPLACE() with substr() prefix swap to avoid multi-occurrence path corruption when moving subtrees - main.rs: cap concurrent request threads via atomic counter backpressure
ajianaz
force-pushed
the
fix/p8-regression-deadcode-chunker
branch
from
August 10, 2026 03:27
ecdf3e4 to
15ada6e
Compare
|
|
||
| // Backpressure: wait until a thread slot is available. | ||
| while active.load(Ordering::Acquire) >= max_threads { | ||
| if SHUTDOWN.load(Ordering::SeqCst) { |
ajianaz
added a commit
that referenced
this pull request
Aug 13, 2026
…rsist, path corruption, thread cap (#985) - mod.rs: convert remaining manual JSON string to serde_json::json!() - schema.rs: add table name allowlist in column_exists_in (defense-in-depth) - docker-entrypoint.sh: explicit checksum validation with error exit - chunker.rs: guard against zero-length chunks causing infinite loop - operations.rs: persist vector index to disk after soft_forget - documents.rs: replace REPLACE() with substr() prefix swap to avoid multi-occurrence path corruption when moving subtrees - main.rs: cap concurrent request threads via atomic counter backpressure Co-authored-by: ajianaz <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Post-fix cora re-scan (163 findings) triage — 7 actionable fixes from the remaining findings.
Why
After merging PR #983 and #984 (P0–P7), a re-scan found 163 remaining findings. Subagent analysis categorized them — 7 were validated as real issues worth fixing now, 2 were false positives (embed/engine.rs, aging.rs), and the rest are long-term backlog (N+1 queries, consolidate locking, etc.).
Changes
cli/commands/mod.rsformat!converted toserde_json::json!()core/memory/schema.rscolumn_exists_indocker-entrypoint.shcore/chunker.rsfloor_char_boundary+ force advance prevents infinite loopcore/operations.rssoft_forgetnow persists vector index removal to disk (survives restart)core/memory/documents.rsREPLACE()→substr()prefix swap — avoids multi-occurrence path corruptionserver/main.rsavailable_parallelism * 2False positives skipped:
embed/engine.rs:116— Cora flagged ORT init not reset on failure, butload_model()?propagates error without caching — correct behaviormemory/aging.rs:152— Cora flagged tier_counts warm/cold inversion, but query logic is correct (hot = recent, warm = between cutoffs, cold = older)Testing
cargo fmt✅cargo clippy --workspace --all-targets— 0 warnings ✅cargo test --workspace— 476 pass, 0 fail ✅