Skip to content

docs(engram): describe WILLNEED cost per merged page run in prefetch - #679

Merged
juliankang4 merged 1 commit into
midagedev:mainfrom
juliankang4:fix-review-bot-issue-675-engram
Oct 22, 2026
Merged

juliankang4 merged 1 commit into
midagedev:mainfrom
juliankang4:fix-review-bot-issue-675-engram

Conversation

@juliankang4

Copy link
Copy Markdown
Collaborator

engram prefetch 모듈 문서가 WILLNEED 호출 횟수를 실제 동작(합쳐진 page run마다 한 번)에 맞게 고칩니다.

What and why

Closes #675.

The module documentation in crates/engram/src/prefetch.rs said the WILLNEED advise costs one syscall per row. TableBytes::advise issues one call for each distinct merged page run, so the text now says that. The crate overview was already corrected to the same wording in #674. The other "per row" costs in the crate are accurate (mincore and the minor fault really are per row), so they stay.

Release notes: internal, a documentation comment now matches what TableBytes::advise does.

Code shape

  • No second copy. Documentation only.
  • Model code holds only architecture facts. No model code touched.
  • Dead code is gone. Nothing made unused.
  • No silent failure. No behavior change.
  • Comments state what is true now. The comment describes the current call pattern.
  • No relaxed gate. No gate, band or lint moved.
  • cargo fmt and cargo clippy are clean on what I touched; the lint count did not go up.

Duplication found or removed (path:line): none.

What I ran

  • cargo test -p bloomery-engram --lib: 22 passed, 0 failed.
  • T0: test-bloomery-tokenizer rc=0.

Only a comment changed, so no GPU run was needed.

What I ran into

This does not block the PR. Nothing else in the crate needed a wording change.

AI help

AI 코딩 에이전트가 코드를 작성한 후 설명을 썼고, 테스트를 마쳤습니다. diff 리뷰와 PR 초안 리뷰는 제가 직접 했습니다.

@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 documentation now matches the implementation's one WILLNEED syscall per merged page run.

Checked

  • Documentation: crates/engram/src/prefetch.rs:8 agrees with TableBytes::page_runs and TableBytes::advise. Repeated, adjacent, disjoint and empty requests preserve that count; invalid IDs return an error before advice.
  • Duplicates: 0 new items checked; dryer reported 0 candidate pairs.
  • Complexity: crapper flagged no functions; no executable code changed.
  • Silent failure: 0 added or changed sites.
  • Tests: no tests changed, so mutation checks are not applicable. Existing syscall assertions cover merged runs, empty requests and invalid IDs. Tests were not rerun for this documentation change.
  • Gates: no gates or pins moved.
  • 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

Copy link
Copy Markdown
Collaborator Author

The review is done and the contribution check passed, so I'm merging this.

@juliankang4
juliankang4 merged commit 22c8618 into midagedev:main Oct 22, 2026
6 checks passed
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: prefetch documentation overcounts syscalls

1 participant