Skip to content

API Reference parrot.flows.dev_loop.test_scope.verdict

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.flows.dev_loop.test_scope.verdict

View source

Validation verdict: the only test payload a coder seat sees (FEAT-709 M5). Stdlib only.

Alias BaselineVerdict

Re-exported from parrot.flows.dev_loop.test_scope.datatypes.BaselineVerdict.

Alias EXCERPT_MAX_LINES

Re-exported from parrot.flows.dev_loop.test_scope.runners.base.EXCERPT_MAX_LINES.

Alias Failure

Re-exported from parrot.flows.dev_loop.test_scope.datatypes.Failure.

Alias RunReport

Re-exported from parrot.flows.dev_loop.test_scope.datatypes.RunReport.

Alias RunnerSummary

Re-exported from parrot.flows.dev_loop.test_scope.datatypes.RunnerSummary.

Attribute VERDICT_SCHEMA

Type: int

Alias ValidationVerdict

Re-exported from parrot.flows.dev_loop.test_scope.datatypes.ValidationVerdict.

Function build_verdict

Build a verdict with status precedence timed_out > failed > unavailable > passed.

Pytest failures classified entirely as baseline-red are allowed to pass. Other runner failures are always unknown because no baseline applies. A no_tests report (pytest exit 5, nothing collected) is never a failure; it only adds a note. When every report is no_tests the gate has no signal at all, so the verdict is unavailable -- still not passed -- with a note saying why (issue:8c423c5612c2).

build_verdict(*, tier: str, reports: Sequence[RunReport], baseline: Sequence[BaselineVerdict] = (), cached: Sequence[str] = (), notes: Sequence[str] = (), evidence: Sequence[str] = ()) -> ValidationVerdict

Parameter Type Default Description
tier str
reports Sequence[RunReport]
baseline Sequence[BaselineVerdict] ()
cached Sequence[str] ()
notes Sequence[str] ()
evidence Sequence[str] ()

Returns: ValidationVerdict

Function excerpt_of

Return the last max_lines lines (the traceback tail carries the assertion).

excerpt_of(text: str, *, max_lines: int = EXCERPT_MAX_LINES) -> str

Parameter Type Default Description
text str
max_lines int EXCERPT_MAX_LINES

Returns: str

Function render_for_prompt

Render a deterministic markdown verdict block for a repair prompt.

render_for_prompt(verdict: ValidationVerdict) -> str

Parameter Type Default Description
verdict ValidationVerdict

Returns: str

Function verdict_from_json

Restore a validation verdict from its JSON-compatible dictionary.

verdict_from_json(payload: Mapping[str, object]) -> ValidationVerdict

Parameter Type Default Description
payload Mapping[str, object]

Returns: ValidationVerdict

Function verdict_to_json

Convert a verdict to a JSON-compatible dictionary.

verdict_to_json(verdict: ValidationVerdict) -> dict[str, object]

Parameter Type Default Description
verdict ValidationVerdict

Returns: dict[str, object]

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally