Skip to content

check-catalog-docs: the self-test edits README's docs/agents.md pointer at its current count - #992

Merged
juliankang4 merged 1 commit into
midagedev:mainfrom
juliankang4:dgx-spark-q38-fix-catalog-docs-selftest
Oct 29, 2026
Merged

juliankang4 merged 1 commit into
midagedev:mainfrom
juliankang4:dgx-spark-q38-fix-catalog-docs-selftest

Conversation

@juliankang4

Copy link
Copy Markdown
Collaborator

check-catalog-docs의 self-test가 README의 docs/agents.md 등장 횟수를 현재 값 5로 맞춰 다시 통과하게 고칩니다.

What and why

tools/check-catalog-docs.py --self-test fails on main. Its "a README with no pointer is red" case edits README.md's docs/agents.md pointer and asserts that the pointer appears exactly 2 times. README.md now has it 5 times, so the test's own edit assertion fires and the self-test (and the t0 check that runs it) is red. This changes the expected count in that case from 2 to 5. The llms.txt case keeps its 2, which still matches llms.txt.

Release notes: internal: the catalog docs self-test passes again after README.md gained more docs/agents.md pointers.

Code shape

The review reads these first. A box left unticked needs one line of why.

  • No second copy. Logic two models (or two call sites) share has one common owner; I lifted it there instead of
    copying it (AGENTS.md "Common code first", docs/rust-quality.md R14). Where I found an existing copy, I
    named it below.
  • Model code holds only architecture facts. A model's own files carry only what its architecture forces
    (tensor shapes, the attention kind, the quant). A common owner gained no per-model branch, flag or trait method.
  • Dead code is gone. Nothing I made unused is left behind (functions, flags, gate clauses, docs).
  • No silent failure. Undefined input is a named error or panic, never a defined-looking output.
  • Comments state what is true now. No dates, issue numbers or how a bug was found (tools/check-comments.sh).
  • No relaxed gate. No band, tolerance or lint moved to make a check pass; a re-pin carries PIN(YYYY-MM-DD):
    and its reason.
  • cargo fmt and cargo clippy are clean on what I touched; the lint count did not go up.

Duplication found or removed (path:line), or "none": none

What I ran

Before the change, on upstream main:

$ python3 tools/check-catalog-docs.py --self-test
FAIL a README with no pointer is red: AssertionError: the test's edit of README.md: 'docs/agents.md' is in it 5 times, not 2
self-test: FAIL

After the change:

$ python3 tools/check-catalog-docs.py --self-test
check-catalog-docs self-test: PASS
$ bash tools/check-catalog-docs.sh
check-catalog-docs: README Use table, docs/models.md and docs/agents.md equal the catalog and the serve contract

The diff touches only a Python docs-check tool, so no GPU gate or binary path changes.

AI help

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

@github-actions github-actions Bot added the tools Tools, recipes, CI and the toolchain: tools/, justfile, .github/, Cargo label Oct 29, 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 fixture count matches README's five occurrences, and the self-test still detects missing pointers.

Checked

Duplicates: 0 new functions, types or constants; no duplicate owner introduced.
Complexity: no Rust functions changed; no crapper results.
Silent failure: 1 fixture-error path followed; a count mismatch fails the self-test and returns exit 1.
Tests: in-memory checks confirm README has five occurrences and llms.txt has two; the old fixture count mismatches. Removing the README guard at tools/check-catalog-docs.py:277, or replacing only one occurrence, prevents the diagnostic the test requires.
Gates: no threshold relaxed or case removed; the changed count controls fixture construction.
Escape catalog: no patterns matched.

Notes

Dryer and crapper did not run because no Rust file changed.

🔨 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 fb12b87 into midagedev:main Oct 29, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tools Tools, recipes, CI and the toolchain: tools/, justfile, .github/, Cargo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant