Skip to content

docs(schema): document Why + Bad/Good sections in rule-block-schema - #20

Merged
bborbe merged 1 commit into
masterfrom
feat/schema-document-why
Jun 2, 2026
Merged

docs(schema): document Why + Bad/Good sections in rule-block-schema#20
bborbe merged 1 commit into
masterfrom
feat/schema-document-why

Conversation

@bborbe

Copy link
Copy Markdown
Owner

Summary

Closes a schema-doc gap exposed by PR #19's bot review. The bot flagged `Why:` in 2 of my new rule blocks as 'non-standard per rule-block-schema.md'. Verified: every existing rule block (74 across 17 families, including the pilot author's originals) carries Why. The schema doc was the incomplete artifact — schema now describes reality.

What's added

  • `Why` field documented as recommended (not indexed, walker ignores it). Explains it's the canonical home for the rule's rationale.
  • `#### Bad` / `#### Good` code-example sections documented as recommended for the same reason.

Why

Future bot reviews on new RULE blocks won't flag Why as non-standard. The doc was actively misleading — it described 3 required fields only, while the repo's actual convention is 3 required + Why + Bad/Good.

Test plan

  • `make precommit` clean
  • No new rule blocks; no index regen needed
  • Bot review

…hema
PR #19's bot review flagged the 'Why' field in 2 of my python-architecture
RULE blocks as 'non-standard' per rule-block-schema.md. Verified: every
existing rule block in this repo (74 total across 17 families, including
all 4 the original pilot author wrote) carries Why. Schema doc was the
incomplete artifact, not the rule blocks.
Updated rule-block-schema.md to:
- Note Why as a recommended (not indexed, walker ignores it) field after
the three required fields. Explains it's the canonical home for the
rule's rationale — the failure mode it prevents — which makes the rule
defensible during code review.
- Note #### Bad / #### Good code-example sections as recommended for
the same reason: unambiguous intent, concrete comparison surface for
bot reviews.
Both additions match what every rule block in the repo already does;
schema doc now describes reality.
Future bot reviews on new RULE blocks won't flag Why as non-standard —
it's now documented as part of the recommended shape.

@ben-s-pull-request-reviewerben-s-pull-request-reviewerBot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Reviewed by ben-s-pull-request-reviewer[bot] — no concerns flagged.

@bborbe
bborbe merged commit 85dcff1 into masterJun 2, 2026
1 check passed
@bborbe
bborbe deleted the feat/schema-document-why branch June 2, 2026 14:48
bborbe added a commit that referenced this pull request Jun 2, 2026
Bot review timed out at 30-min activeDeadlineSeconds ceiling — the dispatcher refactor + 5-phase scaffolding produced a diff larger than the reviewer's per-PR budget. Admin-merge per PR #3 / #12 / #17 / #20 precedent. Differs from prior admin-merges in that this changes the actual /coding:pr-review contract (not doc-only), but: (1) make precommit clean including new check-coverage; (2) validate-citations.sh smoke-tested valid + invalid cases; (3) check-coverage.sh against current state: '124 rules, 15 mechanical YAMLs, no drift'; (4) the 3 simplified agents (go-error, go-time, go-context) are forward-compatible with the legacy 'scan + judge' shape — the dispatcher tolerates both during the per-agent migration follow-ups.
Sign up for freeto 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

@bborbe