Skip to content

ReportFindingsFinding

Base classes

Name Children Inherits
dict
builtins
dict() -> new empty dictionary

⋔ Inheritance diagram

graph TD
  3832685323["input_types.ReportFindingsFinding"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 3832685323
  2751680898 --> 2645524081

🛈 DocStrings

Bases: TypedDict

finding entry of ReportFindings.

Source code in src/clawd_code_sdk/models/input_types.py
@_extra_allow
class ReportFindingsFinding(TypedDict):
    """``finding`` entry of ReportFindings."""

    file: str
    """Repo-relative path of the file the finding is in"""
    line: NotRequired[int]
    """1-indexed line the finding anchors to"""
    summary: str
    """One-sentence statement of the defect"""
    short_summary: NotRequired[str]
    """Compressed label for compact UI (≤60 chars): the claim alone, no rationale or consequence
    clause
    """
    failure_scenario: str
    """Concrete inputs/state → wrong output/crash"""
    category: NotRequired[str]
    """Short kebab-case slug of the finding type, e.g.

    "correctness", "simplification", "efficiency", "test-coverage"
    """
    severity: NotRequired[Literal["important", "pre_existing", "nit"]]
    """Set when the review instructions ask for it.

    important: a bug the change adds or makes worse; pre_existing: a bug that was there
    before the change; nit: a minor issue
    """
    verdict: NotRequired[Literal["CONFIRMED", "PLAUSIBLE"]]
    """Set when a verify pass ran; absent on inline-only reviews"""
    outcome: NotRequired[Literal["fixed", "skipped", "no_change_needed"]]
    """Set ONLY when re-reporting after applying fixes: what happened to this finding"""

category instance-attribute

category: NotRequired[str]

Short kebab-case slug of the finding type, e.g.

"correctness", "simplification", "efficiency", "test-coverage"

failure_scenario instance-attribute

failure_scenario: str

Concrete inputs/state → wrong output/crash

file instance-attribute

file: str

Repo-relative path of the file the finding is in

line instance-attribute

line: NotRequired[int]

1-indexed line the finding anchors to

outcome instance-attribute

outcome: NotRequired[Literal['fixed', 'skipped', 'no_change_needed']]

Set ONLY when re-reporting after applying fixes: what happened to this finding

severity instance-attribute

severity: NotRequired[Literal['important', 'pre_existing', 'nit']]

Set when the review instructions ask for it.

important: a bug the change adds or makes worse; pre_existing: a bug that was there before the change; nit: a minor issue

short_summary instance-attribute

short_summary: NotRequired[str]

Compressed label for compact UI (≤60 chars): the claim alone, no rationale or consequence clause

summary instance-attribute

summary: str

One-sentence statement of the defect

verdict instance-attribute

verdict: NotRequired[Literal['CONFIRMED', 'PLAUSIBLE']]

Set when a verify pass ran; absent on inline-only reviews

:fa-brands-github: Show source on GitHub