Skip to content

docs(engram): describe prefetch cost per merged page run - #674

Merged
juliankang4 merged 1 commit into
midagedev:mainfrom
Burntgogi:docs/issue673-prefetch-cost
Oct 22, 2026
Merged

juliankang4 merged 1 commit into
midagedev:mainfrom
Burntgogi:docs/issue673-prefetch-cost

Conversation

@Burntgogi

Copy link
Copy Markdown
Contributor

Closes #673.

The crate overview now states one syscall per distinct merged page run, whether or not its pages are resident. TableBytes::page_runs merges overlapping/adjacent pages and TableBytes::advise calls advise_pages once 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 (base e53cabeb):

  • 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.

@github-actions github-actions Bot added the host Host crates: qdot, threads, engram, engram-lab, runtime, sampler, levers, decision, vision, refset label Oct 22, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)

@juliankang4
juliankang4 merged commit aea6f68 into midagedev:main Oct 22, 2026
6 checks passed
@juliankang4

Copy link
Copy Markdown
Collaborator

@Burntgogi Thanks for the contribution. The review is done, so I'm merging this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

host Host crates: qdot, threads, engram, engram-lab, runtime, sampler, levers, decision, vision, refset

Projects

None yet

Development

Successfully merging this pull request may close these issues.

engram: crate overview overstates prefetch syscall count

2 participants