Skip to content

docs(rules): never delete a figure a test asserts out of prose - #289

Merged
sydevs-bot merged 1 commit into
mainfrom
claude/docs-rules-asserted-figures
Nov 20, 2026
Merged

sydevs-bot merged 1 commit into
mainfrom
claude/docs-rules-asserted-figures

Conversation

@sydevs-bot

Copy link
Copy Markdown
Contributor

Summary

  • One bullet added to docs/documentation.md's Never delete list: a measured figure a check reads out of the prose itself.
  • Found while addressing review on SahajCloud#1235, the pilot of this rule. Routed here because the rule, not that PR, is where the gap lives.

Change outline

The rule gains one exception

Never delete protected ⚠ lines, breadcrumbs, commands, contract surfaces, condition lists and rejected alternatives. It did not protect a number. Rule 1 types a measured figure as mechanism — "a constant's value" — so a pass over the guides cuts it, and nothing in the rule says a test may be reading it.

SahajCloud#1235 is the evidence: tests/unit/perf-figures-pinned.spec.ts asserts the "78 s" unit-lane figure in four guides, the PR's first commit cut it from the root guide, and its second commit (4343b94) had to restore it. The reviewer's finding on that PR named the gap.

The bullet states the exception, the evidence, and what to do: grep the suite for a number before cutting it.

Preview

No preview surface — one docs file.

Test results

  • Lean gate: ✓ claude plugin validate ./workflow --strict, node --test workflow/lib/*.test.mjs (147 pass)
  • No plugin version bump: CI's check scopes workflow/skills workflow/hooks workflow/lib, and this diff touches none of them.
  • No security review: docs/documentation.md does not match securityReview.triggerPattern.
  • rule-delta.mjs not run — no skill text changed.
  • Docs sync: the four references to docs/documentation.md (audit-code/families/hygiene.md, finalize-pr/SKILL.md, review-pr/SKILL.md, lib/doc-weight.mjs) are all pointers, not copies. Nothing stale.

Notes for reviewer

  • Failure this prevents: a docs-only PR goes red because the rule called a load-bearing number mechanism. It already happened once, inside the PR piloting the rule.
  • Deliberately not extended to docs/code-comments.md. Its own never-delete list is about directives and markers, it is the block synced into four other repos by hand, and a comment-side version of this would be a second behaviour in one PR.
  • Not stacked on docs(guides): drop restatements of what skills and config already say #285, which applies this rule to this repo's guides and is already approved. Either can merge first.

Generated by Claude Code

The never-delete list had no entry for a measured number a check reads
out of the prose itself, so rule 1 types one as mechanism and a pass
over the guides cuts it. SahajCloud#1235 did: `perf-figures-pinned.spec.ts`
asserts the "78 s" lane figure in four guides, the first commit cut it
from the root guide, and the second had to put it back.

The failure this prevents is a red CI run on a docs-only PR, with nothing
in the rule to say which numbers are load-bearing.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjXNwNcni76oUbfdjWM
@sydevs-bot

sydevs-bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 no session running

Written by the sydevs dispatcher. Sessions never edit this comment.

@sydevs-bot
sydevs-bot marked this pull request as ready for review November 20, 2026 22:40
@sydevs-bot
sydevs-bot requested a review from Ardnived November 20, 2026 22:40
@sydevs-bot
sydevs-bot enabled auto-merge November 20, 2026 22:40
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Adversarial review skipped: 1 file(s), 4 changed line(s), under review.skipWhen. Say @sydevs-bot review to force one.

🤖 sydevs dispatcher

@sydevs-bot
sydevs-bot added this pull request to the merge queue Nov 20, 2026
Merged via the queue into main with commit 97811e1 Nov 20, 2026
21 of 22 checks passed
@sydevs-bot
sydevs-bot deleted the claude/docs-rules-asserted-figures branch November 20, 2026 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants