Repository navigation
build(go): regenerate against traust-contracts#189 — the not_affected section - #93
Conversation
…cted section traust-contracts#189 adds a report `not_affected` section (eliminated advisory matches with their dependency evidence and rationale) to report.schema.json and vuln-findings.schema.json. Regenerated types carry it (Report.NotAffected, VulnFindings.NotAffected), so a Go client — SCI's report reads — keeps it on a round-trip. Branch commit pinned; re-pin to #189's merge commit after it lands. Test: a report with the section validates, round-trips and re-validates. Remediation plan step 12 (traust-foundry plans/traust/cvss/sci-cvss-severity-remediation-plan-2026-11-18.md). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chubirka The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
PR Summary by QodoRegenerate Go contracts to preserve not_affected report entries
AI Description
Diagram
High-Level Assessment
Files changed (220)
|
Code Review by Qodo
1.
|
…ference with optional fields unset) Qodo on #93: the new test departed from the table-of-cases pattern. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Code review by qodo was updated up to the latest commit 4050200 |
…erge commit Picks up #189's final rules (non-blank impact_artifact, reference and rationale; govulncheck not_observed is no elimination route). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Code review by qodo was updated up to the latest commit c025da8 |
…s compare every field - Regenerated against traust-contracts#190's merge: vuln-findings findings carry `cvss` and `dependency`. - Qodo on #93: the not_affected round-trip compared only rationale and advisory, so a dropped reference or impact field would pass. It now compares the whole entry (reflect.DeepEqual). - New: an advisory-backed vuln-findings finding's cvss and dependency round-trip field for field and re-validate. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Code review by qodo was updated up to the latest commit f638361 |
|
Responses to Qodo's latest reviews, both bots: qodo-code-review
qodo-for-traust-sci
Also in f638361: re-pinned to traust-contracts |
The vuln-findings round-trip test compared two Go decodes with each other, so a field the struct dropped was missing from both and passed. Each case now states its expected cvss and dependency values independently of the decoder and compares the re-encoded JSON members with the source's. The test is table-driven: every dependency field, required fields only, and a finding with neither block. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Qodo follow-up for 93b7503, covering both bots: qodo-for-traust-sci
qodo-code-review
|
|
Code review by qodo was updated up to the latest commit 93b7503 |
What
Regenerates the Go types against traust-contracts
369a2ab(traust-contracts#189's branch head). That adds the reportnot_affectedsection (Report.NotAffected,VulnFindings.NotAffected), so a Go client keeps eliminated advisory matches and their rationale on a round-trip. That covers SCI's report reads. Qodo raised this on #189.The pin is a branch commit, the same practice as contracts#117. It re-pins to #189's merge commit after that lands. Most of the 219-file diff is the regenerated
contracts-refheader.Plan: CVSS remediation plan, step 12 (
traust-foundry/plans/traust/cvss/sci-cvss-severity-remediation-plan-2026-11-18.md).Tests
TestReportNotAffectedRoundTrip. A report with the section validates, round-trips and re-validates.go test ./...andgo vetpass, andmake check-driftis clean.🤖 Generated with Claude Code