Skip to content

[CI] Add doc sequence check to doc quality check#764

Merged
hughperkins merged 5 commits into
mainfrom
hp/doc-quality-with-ordering
Jun 26, 2026
Merged

[CI] Add doc sequence check to doc quality check#764
hughperkins merged 5 commits into
mainfrom
hp/doc-quality-with-ordering

Conversation

@hughperkins

Copy link
Copy Markdown
Collaborator

Issue: #

Brief Summary

copilot:summary

Walkthrough

copilot:walkthrough

Add RULE 3 to the doc-quality agent prompt: within a single doc, information
must be ordered so a first-time reader can follow it top-to-bottom without
jumping ahead (no forward references). Includes carve-outs for roadmaps,
optional "see below" pointers, backward references, cross-doc references, and
conventional preamble ordering, and hands pure undefined-term cases to Rule 1.
Adds the [order] tag and reworks the violation cap so one rule cannot crowd
out the others.
The doc-quality check now enforces a third rule (reading order / no forward
references); describe it and its carve-outs in contributing.md.
Both added cognitive load to the agent for little gain. Revert to the original
"stop after 10 violations" cap and remove the Rule 1/Rule 3 delineation note.
@hughperkins hughperkins changed the title Hp/doc quality with ordering [CI] Add doc sequence check to doc quality check Jun 24, 2026
@hughperkins hughperkins marked this pull request as ready for review June 24, 2026 16:28
@hughperkins hughperkins added the awaiting review pass New PR or review comments addressed label Jun 24, 2026
@github-actions

Copy link
Copy Markdown

Comment on lines +128 to +136
- A brief overview / roadmap near the top that previews upcoming sections ("this guide
covers A, then B") — signposting the structure, not a dependency: the reader does not
need to understand A or B yet to keep reading.
- Optional "for more detail, see <section> below" pointers, where the current passage is
fully understandable WITHOUT following them. The test is: MUST read ahead to understand
(violation) vs more depth merely available later (fine).
- Backward references (to something earlier in the same file) are always fine.
- References to OTHER docs/files; this rule is about ordering WITHIN a single file only.
- Conventional preamble ordering (e.g. Prerequisites -> Installation -> Usage).

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.

More generally, references whatever the order should be fine in any context. It is just that reference does not count as an introduction of a concept.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

the issue is that if the doc is like:

A foo is a bar (see [forward reference to bar]. We want to glop the bars [forward refernce to glop]. Globbing bars makes great keeyops (forward reference to keeyop)

... then the doc is unredaable I feel.

The carveout allows forward references in the narrow case that the text is still readable without reading the refrenced location.

@duburcqa

Copy link
Copy Markdown
Contributor

ok to merge

…rdering

Co-authored-by: Cursor <cursoragent@cursor.com>

# Conflicts:
#	docs/source/user_guide/contributing.md
@github-actions

Copy link
Copy Markdown

@hughperkins hughperkins merged commit 472d291 into main Jun 26, 2026
57 checks passed
@hughperkins hughperkins deleted the hp/doc-quality-with-ordering branch June 26, 2026 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review pass New PR or review comments addressed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants