Repository navigation
docs(tier3): document findings.json and advisory severity thresholds - #372
Conversation
Explain the per-agent findings artifact, its fields and caps, and how advisory metric severity (ok >= 0.80, warning 0.40-<0.80, critical < 0.40) differs from dimension bands, the attempt pass threshold, the overall verdict and Skill Lift. Record the thresholds in findings.json, add a muted legend to the CLI Findings panel, and pin the boundaries with tests. Thresholds and labels are unchanged. Signed-off-by: Christopher Kevin <[email protected]>
rng1995
left a comment
There was a problem hiding this comment.
Automated review: 2 findings (0 P1, 0 P2, 2 P3); 2 posted inline.
Checked the new findings.json schema docs, the severity constants and legend in tier3/harbor/report.py against the code, and when the file is written by tier3 evaluate (default vs --verbose) and validate --tier3, with probes for artifact contents, the Results by Dimension colors and cp1252 decoding of the docs.
Tests: the focused findings/report/suggestion/judge suites including the new tests/tier3/test_findings_severity.py (753 passed, 4 skipped); the finding/tier3/suggestion subset of test_unified_tier3_report.py, test_commands.py and validators/test_security.py (201 passed); ruff check and format --check clean.
Merges cleanly onto main.
Conflicts with other open PRs: docs/reports.mdx and CHANGELOG.md with #377 (both add a new section at the same spot in reports.mdx); CHANGELOG.md only with #225, #374, #375, #378, #381-#385, #387 and #388; no conflicts with #373, #376, #379, #380 or #386.
#379 and #380 also change tier3/harbor/report.py, in different hunks; the new findings.json docs stay accurate with both (#379's [environment] reason prefix, #380 dropping unrecorded evidence_refs).
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
SkillEvaluator CI resultsRequired gate: Skipped Only Tier 1 blocks CI; Tier 2 and Tier 3 are advisory.
Commit: |
…dings-file Signed-off-by: Christopher Kevin <[email protected]> # Conflicts: # CHANGELOG.md
…dings-file Signed-off-by: Christopher Kevin <[email protected]> # Conflicts: # CHANGELOG.md
…dings-file Signed-off-by: Christopher Kevin <[email protected]> # Conflicts: # CHANGELOG.md
…dings-file Signed-off-by: Christopher Kevin <[email protected]> # Conflicts: # CHANGELOG.md
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
Summary
The Tier 3 Findings panel and
findings.jsonlabel each metricok,warningorcriticalon an advisory scale (ok>= 0.80,warning0.40 to below 0.80,criticalbelow 0.40), while dimension verdicts use PASS >= 0.50, NEUTRAL 0.40 to below 0.50 and FAIL below 0.40. So a metric at 0.6741 is a passing dimension score that still showswarning. Nothing documented this, and the artifact itself was undocumented.This PR keeps every threshold and label unchanged and:
<agent>/findings.jsonindocs/reports.mdx: location, when it is absent, score provenance, every field with its caps, truncation andevidence_refs_omittedmetadata, a table contrasting advisory severity with dimension bands, the attempt pass threshold, the overall verdict and Skill Lift, and worked examples at 0.39, 0.40, 0.4545, 0.50, 0.6741 and 0.80 with the exact boundary behavior.severity_thresholds(ok_at_or_above,critical_below,scale: "advisory_metric") tofindings.json. Older artifacts without it are read exactly as before.tier3/harbor/report.pywith named constants (FINDING_OK_THRESHOLDreusesTRIAL_PASS_THRESHOLD).Verification
tests/tier3/test_findings_severity.py: severity boundaries, payload/docs sync, CLI legend wording, old and new artifact reading)make lintmake test(ranpytest tests/tier3 tests/reporting: 11449 passed, 10 skipped)make buildAlso wrote a
findings.jsonthrough_extract_findings->_write_findings_artifactand checked it against the documented schema;fern checkreports 0 errors.Release Impact
CHANGELOG.md