Skip to content

docs(review): Document review rule metadata, severity overrides, and surfaces#121

Merged
mhiro2 merged 4 commits into
mainfrom
docs/review-surfaces
May 1, 2026
Merged

docs(review): Document review rule metadata, severity overrides, and surfaces#121
mhiro2 merged 4 commits into
mainfrom
docs/review-surfaces

Conversation

@mhiro2

@mhiro2 mhiro2 commented May 1, 2026

Copy link
Copy Markdown
Owner

Summary

  • Document RiskFinding, ReviewRuleId::metadata() / all_metadata(), and the post-evaluation severity-override step in ARCHITECTURE.md.
  • Describe relune-wasm review entrypoints (review_from_sql, review_from_schema_json) and their camelCase request / response contract.
  • Add [review.severity_overrides."<rule-id>"] to the configuration reference, including validation rules and the case-by-case rule caveat.
  • Sync skills/relune/SKILL.md with the current review surface — config, GitHub Action mode: review, and the playground risk review view.

Changes

  • a926ec2 : docs(architecture): document review rule metadata and wasm review API
    • Expand §9 to cover RiskFinding, ReviewRuleId::metadata() / all_metadata(), and the post-rule severity-override step.
    • Add §12 entry for review_from_sql / review_from_schema_json, including request/response shape and the note that JSON output mirrors the CLI byte-for-byte.
  • 861bbb6 : docs(configuration): document review severity overrides
    • Add [review.severity_overrides."<rule-id>"] to the example config and a dedicated subsection covering keys, validation, pipeline ordering, and the risk/drop-pk-or-unique case-by-case caveat (rendered with the > [!NOTE] GitHub alert).
  • 9c19c40 : docs(skill): cover review config, action review mode, and risk review view
    • Add [review] and an example [review.severity_overrides."<rule-id>"] downgrade to the configuration block, with a note that overrides apply post-evaluation.
    • Rewrite the GitHub Actions section to cover both mode: diff and mode: review, with review-only inputs/outputs and a sample workflow that comments and then fails on blocking findings.
    • Add a "Playground risk review view" subsection pointing at the fifth compare-mode view.
  • 3888d94 : docs(architecture): use camelCase for WasmReviewRequest field names
    • WasmReviewRequest is annotated with #[serde(rename_all = "camelCase")], so update §12 to use beforeSql / exceptRules / severityOverrides etc. to match the wire format JS callers see.

@mhiro2 mhiro2 self-assigned this May 1, 2026
@mhiro2 mhiro2 added the documentation Improvements or additions to documentation label May 1, 2026
@github-actions

This comment has been minimized.

mhiro2 added 4 commits May 1, 2026 13:35
Update ARCHITECTURE.md: §9 now covers RiskFinding,
ReviewRuleId::metadata()/all_metadata(), and the post-rule
severity-override step; §12 lists review_from_sql /
review_from_schema_json with their request/response contract and
notes that content mirrors the CLI JSON byte-for-byte.
Add the [review.severity_overrides."<rule-id>"] block to the example
config and a dedicated subsection explaining keys, validation, ordering
in the pipeline, and the case-by-case rule caveat (risk/drop-pk-or-unique).
… view

Bring SKILL.md in sync with the current relune surface:

- Configuration block now includes [review] and an example
  [review.severity_overrides."<rule-id>"] downgrade, with a note that
  overrides apply post-evaluation.
- GitHub Actions section is rewritten to cover both mode: diff and
  mode: review, including review-only inputs/outputs and a sample
  workflow that posts a comment then fails on blocking findings.
- New "Playground risk review view" subsection points users at the
  fifth compare-mode view that surfaces CLI review output via WASM.
WasmReviewRequest is annotated with #[serde(rename_all = "camelCase")],
so JS callers see beforeSql / exceptRules / severityOverrides etc.
Update §12 to match the wire format instead of the Rust field names.
@mhiro2
mhiro2 force-pushed the docs/review-surfaces branch from a584458 to 3888d94 Compare May 1, 2026 04:36
@github-actions

github-actions Bot commented May 1, 2026

Copy link
Copy Markdown

Code Metrics Report

main (62ef818) #121 (4057abd) +/-
Coverage 94.6% 94.6% 0.0%
Test Execution Time 1m28s 1m32s +4s
Details
  |                     | main (62ef818) | #121 (4057abd) | +/-  |
  |---------------------|----------------|----------------|------|
  | Coverage            |          94.6% |          94.6% | 0.0% |
  |   Files             |             81 |             81 |    0 |
  |   Lines             |          37324 |          37324 |    0 |
  |   Covered           |          35344 |          35344 |    0 |
- | Test Execution Time |          1m28s |          1m32s |  +4s |

Reported by octocov

@mhiro2
mhiro2 merged commit ce7084c into main May 1, 2026
4 checks passed
@mhiro2
mhiro2 deleted the docs/review-surfaces branch May 1, 2026 04:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant