docs(validation): explain issue scope and finding provenance

Document issue-scoped conclusions, retained Codex severity, stale evidence, structured reachability and the expanded reason basis contract.
This commit is contained in:
ashwin pc
2026-11-20 09:36:20 +00:00
parent 683fdb2e66
commit 5bcde7136d
2 changed files with 56 additions and 15 deletions
+50 -13
View File
@@ -51,19 +51,25 @@ CLI and plugin scans save two files beside the sealed scan report:
Each structured item uses these fields:
| Field | Meaning |
| ------------------ | ------------------------------------------------------------------ |
| `itemId` | Codex finding identifier |
| `provider` | Validation provider name |
| `verdict` | Provider verdict, or `UNAVAILABLE` |
| `severityBefore` | Original Codex severity |
| `severityAfter` | Supplemental severity; original retained for an unmatched claim |
| `providerSeverity` | Provider's severity, when returned |
| `reasons` | Entries with `basis` and `reason` |
| `claimMatch` | `on_target`, `on_target_escalated`, `different_flaw`, or `unknown` |
| `issueUrl` | Provider issue link, when available |
| `freshness` | Optional `validatedAt` timestamp, `stale` flag, and `reasons` |
| `unavailable` | Per-finding failure explanation, when present |
| Field | Meaning |
| ---------------------- | -------------------------------------------------------------------------------------- |
| `itemId` | Codex finding identifier |
| `provider` | Validation provider name |
| `verdict` | Provider verdict, or `UNAVAILABLE` |
| `severityBefore` | Original Codex severity |
| `severityAfter` | Supplemental finding severity; original retained for issue scope or an unmatched claim |
| `providerSeverity` | Provider's severity, when returned; issue severity for issue scope |
| `resultScope` | `finding` or `issue`: scope of the verdict and provider severity, when reported |
| `issueFindingCount` | Number of distinct findings in the associated issue, when known |
| `joinedValidatedIssue` | Issue-scoped proof predates this finding's submission |
| `reasons` | Entries with `basis` and `reason` |
| `claimMatch` | `on_target`, `on_target_escalated`, `different_flaw`, or `unknown` |
| `issueUrl` | Provider issue link, when available |
| `freshness` | Optional `validatedAt` timestamp, `stale` flag, and `reasons` |
| `unavailable` | Per-finding failure explanation, when present |
`reachableFromAttacker`, when returned, is a structured boolean at `resultScope`;
absence means unknown. Reason prose is never used to infer it.
Reports contain conclusions, not raw proof bodies or validation console output.
Custom SDK providers can omit `record`; their text assessment is still reported,
@@ -75,14 +81,45 @@ A basis describes where a reason came from, not its severity or certainty:
- `GRAPH`: deployment graph evidence, such as live reachability.
- `CODE`: source or validation evidence about the code.
- `FINDING`: stated in the finding or its supplied validation context, without
independent confirmation by the scorer in code or the deployment graph. It is
not a finding-specific proof or a deployment observation.
- `INFERRED`: an inference rather than a directly established fact.
Unknown future basis values are preserved as reported, not renamed to `INFERRED`.
Missing bases use `INFERRED`; aggregate severity factors are also labelled
`INFERRED` because the adapter does not receive one provenance basis for the
combined severity.
A provider can prove a related flaw without validating the submitted claim.
Continuum labels that case “Not validated: Continuum proved a related flaw” and
retains Codex severity (`claimMatch: different_flaw`). An `unknown` match also
retains Codex severity. Claim matching is a small text-and-path heuristic, not a
service-certified identity.
### Findings that share an issue
Continuum can group several findings into one issue. If validation and scoring
artifacts exist but the validation cannot be attributed to this finding alone,
the adapter returns promptly with an **issue-level result**, not an individual
validation. It says how many other findings share the issue and reports that
issue's verdict, severity and structured reachability with its reason basis.
Codex's finding severity is retained; Continuum's issue severity is separate.
JSON records use `resultScope: "issue"`, `issueFindingCount`, and
`claimMatch: "unknown"`. An issue with one member can also have an issue-scoped
result if its artifact cannot be attributed individually.
An explicit matching `perFindingResults` entry takes precedence, even in an older
artifact; another finding's proof is never presented as this finding's proof.
Issue-wide proof can be treated as finding-scoped only when the checked issue
identity and sole contributor match this finding. Missing validation or scoring
artifacts still keep the finding pending under the shared deadline.
If issue proof predates submission, the report says the finding joined an issue
Continuum had already validated (`joinedValidatedIssue: true`). Validation,
scoring and issue timestamps all participate in stale checking. Reachability
comes only from the structured boolean value; missing or `UNKNOWN` stays unknown.
### Unavailable or stale evidence
Submission rejections, missing code locations, read errors, and polling deadlines
+6 -2
View File
@@ -248,8 +248,12 @@ outputs, and requirements. Omit the provider to keep source-only validation.
Public types are `ValidationProviderSettings`, `ValidationProvider`,
`ValidationProviderContext`, `ValidationProviderAssessment`,
`ValidationProvenance`, `ValidationItemRecord`, `ValidationBasis`, and
`ValidationClaimMatch`. The built-in `ContinuumValidationProvider` constructor
`ValidationProvenance`, `ValidationItemRecord`, `ValidationBasis`,
`ValidationResultScope`, and `ValidationClaimMatch`. Continuum records distinguish
finding-scoped results from issue-scoped results with `resultScope`; issue-scoped
results retain Codex severity and expose `issueFindingCount`. `ValidationBasis`
includes `FINDING` (a statement from the finding, not independently checked by the
scorer), and preserves unknown future values. The built-in `ContinuumValidationProvider` constructor
accepts `ContinuumValidationOptions`. Provider authors implement `validate()`
and optionally `validateBatch()`; external registry discovery is not supported.