Repository navigation
docs(engram): describe prefetch cost per merged page run - #674
Conversation
There was a problem hiding this comment.
Verdict: CLEAN: The revised prefetch cost matches the existing page-run advice loop.
Checked
Duplicates: 0 new items; dryer reported 0 candidate pairs.
Complexity: crapper flagged no functions; no executable code changed.
Silent failure: 0 changed sites; advice errors propagate to the caller.
Tests: no new or changed tests require mutation review. Existing page-run assertions cover repeated rows, merged spans, empty input and invalid ids. Tests were not rerun for this documentation change.
Gates: no tests, thresholds or pins changed.
Documentation: crates/engram/src/lib.rs:662 calls advice once per merged run; resident pages follow the same path.
Escape catalog: no patterns matched.
🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)
|
@Burntgogi Thanks for the contribution. The review is done, so I'm merging this. |
Closes #673.
The crate overview now states one syscall per distinct merged page run, whether or not its pages are resident.
TableBytes::page_runsmerges overlapping/adjacent pages andTableBytes::advisecallsadvise_pagesonce for each resulting run; the overview previously said one syscall per row.Documentation only: two comment lines, no runtime/API/test/threshold change. This is separate from #670's advice-observation tests and does not claim new syscall or performance measurements.
Verification on
ac657d7(basee53cabeb):cargo test -p bloomery-engram --lib tests::page_runs_advise_each_requested_page_once -- --exact --nocapture: 1 passed, 21 filtered out. Existing page-run boundary contract, not a newly added wording test.cargo fmt --all -- --check: pass.bash tools/check-comments.sh: pass.No model/GPU execution was needed or performed. Full T0 and fresh review are pending. Local pre-review is unavailable on this host because the Claude CLI is not installed.