Skip to content

docs: correct stale detection rule and scenario counts#119

Merged
sepehr-safari merged 2 commits into
mainfrom
docs/stale-counts-and-version
Jul 14, 2026
Merged

docs: correct stale detection rule and scenario counts#119
sepehr-safari merged 2 commits into
mainfrom
docs/stale-counts-and-version

Conversation

@sepehr-safari

Copy link
Copy Markdown
Member

Summary

Both READMEs advertised "10 detection rules" and "10 predefined scenarios". The
toolkit has shipped 16 rules and 15 scenarios since 0.3.1, so the docs undersold
the project on the page most people read first.

  • packages/toolkit/README.md (the README npm renders on the package page):
    10 -> 16 rules, 10 -> 15 scenarios.
  • README.md (repo landing page): same two lines.
  • CURRENT_STATE.md: current version 0.3.0 -> 0.3.1, package status table
    0.3.0 -> 0.3.1, plus a v0.3.1 release record.

Closes #118

Verified against source, not prose

Claim Source Result
16 rules FailureCode union, types.ts 16 codes
4 critical / 10 warning / 2 info SEVERITY map, detection.ts matches
16 rules wired up detectFailures(), detection.ts 16 detect* calls
15 scenarios scenarios registry, scenarios/index.ts 15, pinned by the existing exports exactly 15 scenarios test

The 16 rule names listed in the README map 1:1 onto the FailureCode union, in
the same order. The 16th rule (REPEATED_BOOT_NOTIFICATION) landed in #114 and
shipped in 0.3.1; both READMEs predate it.

Why the changeset

The npm package page renders the README from the published tarball, so merging
alone does not correct npm. #113's repo-rename README fix carried no changeset
and only reached npm when #114 bumped to 0.3.1 and republished. Since v1.0.0 is
the next milestone and no feature release is queued, the corrected counts would
sit unpublished indefinitely. The patch changeset cuts 0.3.2 so the npm page
actually updates.

Deliberately unchanged

The v0.3 milestone blurb in CURRENT_STATE.md still records "15 detection
rules" for v0.3.0. That was accurate for that release, and the 16th rule shipped
in 0.3.1, so it stays as history. Only the current-version fields moved.

Checks

  • pnpm format:check clean
  • pnpm lint clean
  • pnpm test 374 passing across 16 files

Both READMEs advertised 10 detection rules and 10 predefined scenarios.
The source has shipped 16 rules and 15 scenarios since 0.3.1: the
FailureCode union carries 16 codes, split 4 critical / 10 warning / 2
info by the SEVERITY map, and detectFailures() composes 16 detect calls.
The scenario registry exports 15, pinned by an existing test.

packages/toolkit/README.md is the README npm renders on the package
page, so the stale counts were the first thing anyone evaluating the
library read. The root README carried the same two lines.

Also corrects CURRENT_STATE.md, which reported 0.3.0 as the current
version while npm latest has been 0.3.1 since 2026-07-09. The v0.3
milestone record keeps its historical "15 detection rules" note, since
that was accurate for v0.3.0; the 16th rule shipped in 0.3.1.
The npm package page renders the README from the published tarball, so
the corrected counts only reach npm on the next publish. Cut a patch
release rather than waiting for the next feature to carry them.
@sepehr-safari sepehr-safari added type:docs Documentation improvements package:repo Repository-level changes priority:high Important for current milestone labels Jul 14, 2026
@sepehr-safari sepehr-safari merged commit a6b7d12 into main Jul 14, 2026
2 checks passed
@sepehr-safari sepehr-safari deleted the docs/stale-counts-and-version branch July 14, 2026 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package:repo Repository-level changes priority:high Important for current milestone type:docs Documentation improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: correct stale detection rule and scenario counts in READMEs

1 participant