Skip to content

Release 1.5.0: hold litany to Hypha's rules, write its docs plainly - #5

Merged
zaiev merged 3 commits into
mainfrom
hold-litany-to-hypha-rules
Dec 4, 2026
Merged

zaiev merged 3 commits into
mainfrom
hold-litany-to-hypha-rules

Conversation

@zaiev

@zaiev zaiev commented Dec 4, 2026 •

Copy link
Copy Markdown

Why

litany enforces Hypha's rules in every other repository, but its own litany file selected the default set alone, so the rules the compiler does not hold were held here by reading. Its docs read as notes to the rules' maintainer: Selecting rules never showed how to turn a rule on, and each rule's page opened with a line of codes no page explained. And make docs failed once dune kept an old odoc folder beside the new one.

Changes

  • The litany file opens with Hypha's lint set, and make lint runs litany check on it. The code meets it, and what AGENTS.md allows is a per-path with its reason.
  • litany explain says a rule's state in sentences, and litany rules ends with a plain count, in place of suspicious · warning · nursery · since 1.0 · fix: never · off by default and "cherry-picked; outside all".
  • Each rule's page opens with a table: group, default, stability, fix, since.
  • Selecting rules starts with the litany file and the flags, and Configuration links to it instead of repeating it.
  • The site's prose, the README and litany rules --help carry no semicolons.
  • The README's With an agent reads as every Hypha library's does, and the reference has the table of packages, naming hypha-litany.
  • make docs removes old litany@<hash> odoc folders before it builds, so the copy takes only the current one.

Verified

  • make lint: 0 findings under Hypha's lint set, over 451 units.
  • make test passes, with the new explain and rules output reviewed before promotion.
  • make docs builds with every internal link valid, and agents/ regenerated with it.
  • The rule pages and Selecting rules checked in a browser.

zaiev added 3 commits December 4, 2026 01:52
litany enforces Hypha's rules in every other repository, but its own
litany file selected the default set alone, so the rules the compiler
does not hold were held here by reading. The file now opens with
Hypha's lint set and make lint runs the litany this tree builds on it.
The code meets it: each type's own compare, min and max, the type named
at each ignore, matches where a list's head or tail was taken, every
case of an owned variant. What AGENTS.md already allowed -- the
driver's printing and environment, the benchmarks' clock, the opens of
Litany, Cmdliner and Windtrap -- is a per-path with its reason, not an
attribute at each use, and the parser vendored from dune stays as dune
wrote it.

The docs read as notes to the rules' maintainer. Selecting rules never
showed how to turn a rule on, and a rule's page opened with a line of
codes, "suspicious · warning · nursery · since 1.0 · fix: never · off
by default", that no page explained. Selecting rules now starts with
the litany file and the flags, each rule's page opens with a table of
its group, default, stability, fix and version, and litany explain and
litany rules say the same in sentences. Published prose carries no
semicolons.

make docs copied every odoc folder named litany@<hash>, and dune keeps
an old one when the hash changes, so the copy failed on the first's
read-only files. The recipe removes them before the build.
An agent using litany reaches it through its package, whose doc/ holds
the catalogue and the pages. Its libraries are private to its source
tree, so it installs no interface for a pointer to sit in. Its reference
now has the table of packages every library's has, naming hypha-litany,
and its README's With an agent says, as every library's does, that every
package installs the documentation and how to send an agent there.
@zaiev zaiev changed the title Hold litany to Hypha's rules, and write its docs plainly Release 1.5.0: hold litany to Hypha's rules, write its docs plainly Dec 4, 2026
@zaiev
zaiev merged commit 2dd1782 into main Dec 4, 2026
4 checks passed
@zaiev
zaiev deleted the hold-litany-to-hypha-rules branch December 4, 2026 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant