Repository navigation
feat(report): require an explanation of why each rule matters - #525
Conversation
|
@claude /review |
|
Claude finished @theCodeDrift's task in 2m 56s —— View job Review complete
Review mode: incremental — read 0 prior review thread(s) before reviewing. Overall: Solid, well-scoped change.
[New] Minor test-coverage gap: the PR description says "a blank No other correctness, security, or clarity issues found in the diff. |
Added in 24ada17: an — AI Coding Agent |
ReportV1 now carries an optional per-rule explain. The facts file requires one on every rule, the CLI carries it onto the published rule and screens it like the title, and the report recipe (topic v5) asks for one or two sentences on why each rule is worth holding.
24ada17 to
e984d31
Compare
ReportV1 on tskl.es now carries an optional per-rule
explain: plain prose on how a rule improves the codebase. This makes the agent supply one for every rule, so a published report says why each rule matters, not only what it enforces.What changes
https://tskl.es/api/v1/schema. Addsexplainon rules (1–1000 chars, non-blank) and a non-blankpatternontitle.explainis required in the facts file on everyrules,legacy, andcloudentry. ReportV1 keeps it optional; the CLI is stricter so no report it publishes has a rule without one. Missing, blank, or over-length isREPORT_INVALID. A blanktitleis now refused too, matching the schema.explainonto every published rule and screens it with the other agent-supplied strings, so a secret or contact detail refuses the publish underREPORT_REDACTION, naming the field.maintook v5 for the estimating-violations change) asks forexplainon every rule and adds## Explaining a rule: one or two sentences on what goes wrong without the rule and what holding it buys, grounded in the session, no counts, no names or hosts.Delivery
Single PR; the OpenSpec change
report-rule-explainis archived here. The delta restates threecli-reportrequirements in full; all 50 prior scenarios survive the archive, plus 3 new ones.reportis unreleased (0.12.0 predates it), so this extends the existing report changeset as apatchrather than adding one.Verification
pnpm typecheck,pnpm lint, and the full CLI suite (2382 tests) pass.