Skip to content

refactor(validation): simplify severity model to blocking vs advisory#753

Open
Junnygram wants to merge 2 commits intomeshery:masterfrom
Junnygram:simplify-severity-model
Open

refactor(validation): simplify severity model to blocking vs advisory#753
Junnygram wants to merge 2 commits intomeshery:masterfrom
Junnygram:simplify-severity-model

Conversation

@Junnygram
Copy link
Copy Markdown
Contributor

@Junnygram Junnygram commented Apr 12, 2026

Closes #728. Collapses 4-tier severity into a standard Blocking/Advisory system.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request simplifies the schema validation severity model by consolidating specific classification functions (style, design, and contract) into a single classifyIssue function. It removes the --style-debt and --contract-debt flags, making all non-blocking issues advisory by default. The feedback suggests a minor refinement to the --strict-consistency flag description to better reflect the simplified model.

Comment thread cmd/validate-schemas/main.go Outdated
// Accept legacy flag aliases — bound to the same variables as their canonical counterparts.
flag.BoolVar(styleDebt, "legacy-style", false, "Alias for --style-debt")
flag.BoolVar(contractDebt, "compat-debt", false, "Alias for --contract-debt")
strict := flag.Bool("strict-consistency", false, "Fail on all advisory and design issues")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The flag description mentions "design issues" separately, but under the new model, design issues are now part of the standard advisory set (unless they are hardcoded as blocking). To be more precise and consistent with the simplified model, you might want to update this to simply refer to "advisory issues".

Suggested change
strict := flag.Bool("strict-consistency", false, "Fail on all advisory and design issues")
strict := flag.Bool("strict-consistency", false, "Fail on all advisory issues")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@Junnygram, when feedback offered in any of the agent code review comments has been either incorporated or rejected, please take a moment respond with what change was made to account for the feedback or respond with justification of why the feedback was disregarded.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@Junnygram, when feedback offered in any of the agent code review comments has been either incorporated or rejected, please take a moment respond with what change was made to account for the feedback or respond with justification of why the feedback was disregarded.

thanks .. will do that

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@Junnygram has this feedback from Gemini been accounted for?

Copy link
Copy Markdown
Contributor Author

@Junnygram Junnygram Apr 17, 2026

Choose a reason for hiding this comment

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

@Junnygram has this feedback from Gemini been accounted for?
@simihablo , yes it has addressed

@leecalcote leecalcote requested review from a team and guan404ming April 13, 2026 22:07
@leecalcote leecalcote added the area/ci Continuous integration | Build and release label Apr 13, 2026
Signed-off-by: Junnygram <junnexclusive@gmail.com>
Signed-off-by: Junnygram <junnexclusive@gmail.com>
@Junnygram Junnygram force-pushed the simplify-severity-model branch from a5d0abc to c4b857c Compare April 17, 2026 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/ci Continuous integration | Build and release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Validator: simplify severity model from 4 tiers to 2 (blocking + advisory)

3 participants