Conversation
wright lint and the agent lint operation inlined the full lintRules response — roughly 7.5 KB of static rule prose on every call, 78% of a clean result — while lintRules already serves the same metadata on demand. The lint result now keeps only each rule's id and effectiveSeverity, enough to interpret a finding's code and severity; summary, rationale, documentation, known limits, evidence, and tags stay exclusive to lintRules. This is a recorded exception to wright-result/v1, decided ahead of the 1.0 freeze; machine-contract.md now documents the envelope's evolution policy alongside the wright-agent/v1 rule. Closes #431 Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Assert compact lint rules carry exactly id and effectiveSeverity, and look up lintRules metadata by id instead of array position. Refs #431
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements option C from #431:
lintno longer inlines the fulllintRulesresponse.wright lint --format jsonand the agent{"op":"lint"}result now carryrulesas a compact[{"id", "effectiveSeverity"}]list — enough to interpret a finding'scodeandseverity. Summary, rationale, documentation, known limits, evidence, and tags are served once bylintRules, which remains the authoritative full-metadata surface.wright-agent/v1schema:LintResult.rulesitems move fromLintRuleto a newLintRuleSummarydefinition;LintRulesResultkeepsLintRule.docs/cli/machine-contract.mdgains thewright-result/v1evolution policy the issue asked for (same additive-only rule aswright-agent/v1), with this reduction recorded as the approved exception ahead of the 1.0 freeze (Roadmap to v1.0: stable Workshop tooling platform #134).docs/cli/lint.md,docs/cli/commands.md,docs/agent-contract.md, andSPEC-99updated to match the shipped shape.Measurement (issue fixture
overpy-pixelart.ws, zero findings)result.rulesContract note
This is the owner-approved exception named by #431: a field reduction inside
wright-result/v1and thelintagent operation, deliberately made before the envelope freezes at 1.0 rather than via awright-result/v2.Test plan
cargo fmt --all -- --check,git diff --checkcargo clippy --workspace --all-targets --all-features -- -D warningscargo test --workspace --all-targets --all-features— all green, includingagent_v1_schema_covers_every_advertised_request_and_response(schema-validates livelint/lintRulesresults)wright lint --format jsonontests/fixtures/workshop/real-world/overpy-pixelart.ws— rules block 7455→368 B, findings unchangedlintrules carry no prose fields;lintRulesstill servessummaryet al.;--disable-rulestill reported viaconfigCloses #431
Generated with Devin