# Findings
URL: /documentation/plugin/findings



## What it does [#what-it-does]

A finding is evidence, not a verdict: a detector identity, a location, a severity, supporting
evidence, and a remediation path. `strata19.get_finding_detail` returns the full evidence for one
already-known finding — the source snippet, the real file and line, which detector fired, and
why — without running any check itself. Each finding also carries a `claim` classification:
`CONFIRMED_DEFECT`, `SUPPORTED_RISK`, `UNRESOLVED_QUESTION`, or `ANALYZER_LIMITATION` — the
detector's own statement of how strong its evidence is, not a uniform "this is broken."

`strata19.remediate_finding` builds a structural remediation plan for one finding, naming the
real file, line, and symbols involved. On the Free Local tier the plan is proposed only — `apply`
is always rejected, and the response stays `applied: false` regardless of the value passed.
`strata19.author_finding` files a finding the model found that no detector covers — a routine's
sweep, a manual review — and can later amend or retract it. `strata19.hide_finding` sets a
finding aside as noise without changing what the detector observed; hiding is reversible and
requires a reason.

## When to use it [#when-to-use-it]

Call `strata19.get_finding_detail` after `strata19.verify_implementation` or
`strata19.run_native_security_analysis` surfaces a finding the reader wants to understand before
acting. Call `strata19.remediate_finding` once you know which finding to fix. Call
`strata19.author_finding` when a routine, a sweep, or a manual review turns up a real problem no
shipped detector covers. Call `strata19.hide_finding` only after the evidence has been reviewed
and the result is intentionally excluded — never to clear a list of findings believed real.

Do not call `strata19.remediate_finding` before a finding exists — run the verification gate
first. Do not use `strata19.author_finding` to re-record a detector's own output; the finding is
already recorded, and doing so creates a duplicate under a second source. Do not put a reserved
detector code (`GC-01`, `SEC-*`, `EX-01`, `MW-01`) in `strata19.author_finding`'s `category` field
— the call is refused, because a finding filed under a detector's id would read as that
detector's own output.

## How to use it [#how-to-use-it]

<Steps>
  <Step>
    Get the evidence for a finding already surfaced by `strata19.verify_implementation`:

    ```json title="Call — strata19.get_finding_detail"
    { "findingId": "GC-01-a1b2c3d4" }
    ```

    The response shape, from the tool's own declared output schema:

    ```ts title="Response shape"
    {
      finding: {
        id: string
        class: string                    // e.g. "GC-01"
        file: string
        line: number
        summary: string
        expected?: string
        observed?: string
        severity?: "critical" | "high" | "medium" | "low"
        claim?: {
          classification: "CONFIRMED_DEFECT" | "SUPPORTED_RISK"
                         | "UNRESOLVED_QUESTION" | "ANALYZER_LIMITATION"
          scope: "existential" | "exhaustive"
          capability: string
          measurement: string
          basis: string
        }
      }
      evidence: { file: string, line: number, snippet: string }[]
      provenance: { tier: "free-local" | "cached" | "remote-authoritative", answeredBy: string }
    }
    ```

    `claim.classification` is the field that makes a finding a lead rather than a verdict:
    `SUPPORTED_RISK` and `UNRESOLVED_QUESTION` say the detector could not prove the defect, only that
    it is worth a look. `claim.scope` says whether that classification covers every case
    (`exhaustive`) or only the ones the detector could reach (`existential`).
  </Step>

  <Step>
    Ask for a fix plan once the finding is confirmed worth acting on:

    ```json title="Call — strata19.remediate_finding"
    { "findingId": "GC-01-a1b2c3d4" }
    ```

    The response carries `plan` (naming exact files, lines, and symbols) and `applied: false` — the
    free tier never applies a fix, no matter what `apply` was set to.
  </Step>

  <Step>
    File something the detectors missed:

    ```json title="Call — strata19.author_finding"
    {
      "action": "create",
      "authoredBy": "routine.security-sweep",
      "severity": "major",
      "category": "manual-review",
      "title": "Unbounded fan-out in dispatch loop",
      "problem": "...",
      "filePath": "src/mcp/facade/action-dispatcher.ts",
      "lineStart": 120
    }
    ```
  </Step>

  <Step>
    Set aside a finding that turned out to be noise, always with a reason:

    ```json title="Call — strata19.hide_finding"
    { "action": "hide", "findingId": "GC-08-e5f6a7b8", "actor": "jordan", "reason": "generated fixture file, not source" }
    ```
  </Step>
</Steps>

## Where findings come from [#where-findings-come-from]

Every finding has exactly one source. Four exist, and they decide how far a finding may be trusted:

* `agent`: a shipped detector ran deterministically over the code. This is what
  `strata19.verify_implementation` and `strata19.run_native_security_analysis` produce.
* `playbook`: a bundled routine that Strata19 ships ran deterministically.
* `model`: a model, or a routine a person wrote, filed the finding through `strata19.author_finding`.
* `manual`: a person entered the finding (the `record_manual` action of the finding-disposition tool). It needs a
  verified person, so a model alone is refused and nothing is written. It is attributed to that person and is marked
  as a person's report, not a measurement, so no detector will clear it.

The `agent`, `playbook` and `manual` sources are system-immutable: a model cannot amend or retract them. The first
two are generated by Strata19 and are called detector findings. The `model` source is model-authored and is
quarantined on purpose: its agent id carries a fixed prefix so it is recognisable, it cannot amend or
retract a detector's finding, it cannot be filed under a reserved detector code, and a finding that
declares itself a judgment call carries the `subjective-judgment` basis so it never reads as proof.

## Why a finding can be wrong [#why-a-finding-can-be-wrong]

A false positive is not one thing, and "the false-positive rate" averages over causes that need different
fixes. There are five classes:

1. **Unsound approximation.** The analysis cannot see the guard that makes the code safe.
2. **True but unwanted.** The finding is correct and nobody cares, usually because the wrong files were
   indexed.
3. **Duplicate or overlapping.** Several findings describe one root cause.
4. **Index defect.** The index held wrong facts, so the detector reasoned correctly from them.
5. **Intent mismatch.** The detector's idea of correct is not this project's convention.

When you hide a finding, say which class it was in the reason. That is what makes the hide actionable
instead of a silent loss.

## Parameters [#parameters]

<TypeTable
  type="{
  findingId: {
    description: 'Required for get_finding_detail, remediate_finding, and hide_finding. Matched against a fresh detector scan of the bound project.',
    type: 'string',
    required: true,
  },
  apply: {
    description: 'remediate_finding only. Whether to have the plugin apply the fix instead of returning a plan. Always rejected on the free-local tier — the response stays applied:false regardless.',
    type: 'boolean',
  },
}"
/>

`strata19.author_finding` takes `action` (`create`, `amend`, or `retract`, default `create`) plus,
on create: `authoredBy`, `severity` (`critical`/`major`/`minor`/`info`), `confidence` (0–1),
`category` (free text, never a reserved detector code), `title`, `problem`, `fixDescription`,
`filePath`, `lineStart`/`lineEnd`, `codeSnippet`, `affectedFiles`, `tags`, and `complexity`.
`amend`/`retract` take `findingId` instead. `strata19.hide_finding` requires `action`
(`hide`/`unhide`), `findingId`, `actor`, and `reason` — all four are required; there is no
reason-less hide.

## What you get back [#what-you-get-back]

`strata19.get_finding_detail` and `strata19.remediate_finding` return the shapes above. A
`stale: true` field, when present, means the finding's evidence no longer matches the current
index — read `staleReason` and `refresh` rather than trusting the cached snippet.
`strata19.author_finding` and `strata19.hide_finding` return the finding record they created or
changed, including its new `id` for `create`.

## Limits [#limits]

A detector's own finding can never be edited or deleted through `strata19.author_finding` —
those calls are refused with a `system_finding_immutable`-shaped error; hiding it with
`strata19.hide_finding` is the only reversible way to set one aside. `strata19.remediate_finding`
always proposes; it never applies a fix on this tier regardless of the `apply` value passed.
Reachability-style findings are candidates, not proofs, when roots or dynamic loading cannot be
established — see [Limits](/documentation/reference/limits). For the full catalog of detector IDs
and dispositions behind these findings, see the [detector catalog](/documentation/reference/detectors)
rather than expecting this page to enumerate them.

## Related [#related]

* [Detector catalog](/documentation/reference/detectors) — which detectors exist and their dispositions
* [Verification](/documentation/plugin/verification) — the gate that produces most findings
* [Work and checkpoints](/documentation/plugin/work-and-checkpoints) — turning a finding into tracked work
* [`strata19.get_finding_detail`](/documentation/reference/tools/get_finding_detail)
* [`strata19.remediate_finding`](/documentation/reference/tools/remediate_finding)
* [`strata19.author_finding`](/documentation/reference/tools/author_finding)
* [`strata19.hide_finding`](/documentation/reference/tools/hide_finding)
