validateFindings accepts line <= 0, empty strings and unknown keys #141
Labels
No labels
already-shipped
bug
documentation
duplicate
enhancement
external-review
good first issue
help wanted
in progress
invalid
needs-decision
proposal
question
security
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: crenshawdev/cadence-archived#141
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Source: deep dive F14
Verdict: AGREE - low
Claim as reviewed
Local provider-result validation requires only an integer
lineand string fields. It accepts zero or negative line numbers, empty file/claim/scenario strings, unexpected properties, arbitrarily many findings and arbitrarily large fields, despite the canonical schema specifyingadditionalProperties: false.At HEAD
f354864(v3.3.0)cadence-core/bin/review-provider.mjs:746-756. The loop checkstypeof f[k] !== 'string'forfile/claim/failure_scenario,Number.isInteger(f.line), andSEVERITY.includes(f.severity). Nothing else.Note
This is a degradation guard against a schema-ignoring model, and its output goes to a human for triage, so it is not a trust boundary. Worth tightening for signal quality:
line >= 1, non-empty trimmed strings, exact key set, and field-length plus finding-count caps.