Verify format
verify_format
Compact text rendering for verify_project results.
The raw verify dict can reach 20k-80k tokens (esp. when
TEST_QUALITY_DUPLICATE_TESTS returns 100+ clusters). The agent is
the only consumer, so we drop the raw data and emit a compact text
report instead.
Rendering policy:
finding.text: trust the rule — already compact, just indent each line by 2 spaces for visual coherence.finding.details: descend (str → indent; list → top-N items; dict → look up known thematic keys, else JSON-truncate fallback).finding.metadata(withclusters): keep legacy cluster summary.fix_hintis shown verbatim, never truncated.
format_verify_text(result)
Render a verify_project result as a compact text report.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
result
|
dict[str, object]
|
Output of |
required |
Returns:
| Type | Description |
|---|---|
str
|
Multi-line string. Always starts with a 1-line header. |