Repository navigation
Conversation
Cache only successful stable partial-tail observations per database handle, bound to exact file identity, nanosecond timestamps and read bounds. Preserve index integrity gates, newline offsets and worker snapshot fences. Add six focused regressions in the existing history worker suite. Co-authored-by: luvs01 <27862058+luvs01@users.noreply.github.com>
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueNo actionable comments were generated in the recent review. ℹ️ Recent review info
Walkthrough
Merge Risk:
|
|
✅ Deterministic PR hygiene checks passed. |
|
Recovery verification update: GitHub Actions Cross-platform CI run 40033666102 completed successfully for this PR head This supersedes the description's pending-hosted-validation note for this exact head. The no-repeat-read result refers to ledger byte reads and SQLite metadata changes for an unchanged partial tail, not elimination of file-open/stat operations. Integrity checks remain enabled. Local testing remains the documented Node/SQLite compatibility harness; skipped platform jobs are not counted as executed passes. The PR remains draft and unmerged; no deployment or live configuration was changed. |
…jun#7642) GHSA-mrhx-c7xc-m3w5 and GHSA-27r3-jxmh-p828 blocked the 2.92.0 publish. Leave the package version at 2.93.0 on dev. Co-authored-by: Cursor Agent <cursoragent@cursor.com>
…e-jun#7644) Co-authored-by: lidge-jun <243035832+lidge-jun@users.noreply.github.com>
|
No description provided. |
…idge-jun#7528) Settle async Windows ACL work and native-main owner locks before fixture removal, so hosted-Windows teardowns no longer fail with EPERM after passing assertions. No retry, sleep or timeout changes. Refs lidge-jun#7515
…deterministic (lidge-jun#7552) Make the codex-runtime, client-connect and loopback-listener tests deterministic: bounded child deadlines with process milestones, and a port-0 public listener in place of the free-port-then-bind race. No sleeps or timeout increases. Refs lidge-jun#7403 lidge-jun#7404 Co-authored-by: Shreyas652 <66720396+Shreyas652@users.noreply.github.com>
lidge-jun#7598) Keep the cold first-exec of a fresh Bun copy and the PowerShell start out of two timed cases: the PATH-fallback cases share one warmed Bun copy created in a budgeted beforeAll, and the CurrentUser Root certificate inspection is replayed once before its timed case. The 10s product deadline is unchanged; a new seam test drives a deadline breach to unknown on every platform. Refs lidge-jun#7578 lidge-jun#7569
…rk767-dev-bd5-20261024
|
Closing this tracking PR after carrying the validated change into the upstream review queue. Commit |
⏳ DRAFT
What to do
This pull request was already a draft. Its draft status will be preserved after every issue above is resolved. |
Summary
Recover the unfinished CPU/RAM/disk-efficiency audit, independently based on fork dev
306a88e08b387a7d3d2ee51bf04e72530285e5b4.An unterminated JSONL tail cannot advance
indexedOffset. Repeated history refreshes therefore reread the same bytes, allocate read/fragment buffers and rewrite five SQLite metadata fields even when nothing changed.PRAGMA quick_checkgates unchanged. Canonical history is not rewritten, partial records stay unindexed until the newline arrives, and no record-size limit is weakened.Verification
Original ingest, schema and test bytes were checked against their Git blob SHA before editing.
Executed locally: six new test bodies against the actual transpiled ingest and schema modules, real temporary files and real SQLite through Node 22.16.0's
DatabaseSync, with a Bun database API wrapper. The selector encoder, file-identity helper and test assertions were substituted; the file-identity substitute uses real bigint fstat. No live user home or provider was accessed.Not executed/claimed: native Bun SQLite behavior, existing worker/integration suite, repository typecheck, platform suite or whole-process percentage improvements. Exact-head hosted CI is required; draft pending that evidence.
Native validation:
bun run test --parallel=2 ./tests/usage/request-history-rebuild-worker.test.ts ./tests/usage/request-history-index.test.ts bun run typecheck bun run structure:check bun run privacy:scanNo merge, deployment, live restart, workflow change or policy relaxation.
Co-authored-by: luvs01 27862058+luvs01@users.noreply.github.com
Summary by CodeRabbit
Performance
Reliability