Skip to content

feat: add recommended_actions list and assertion_count to JSON output - #74

Merged
jflowers merged 3 commits into
unbound-force:mainfrom
jflowers:agent-quality-workflow
Mar 19, 2026
Merged

jflowers merged 3 commits into
unbound-force:mainfrom
jflowers:agent-quality-workflow

Conversation

@jflowers

Copy link
Copy Markdown
Collaborator

Summary

  • Added recommended_actions sorted list to crap.Summary — prioritized by fix strategy (add_tests first), then CRAP descending, top 20 entries
  • Added assertion_count field to taxonomy.QualityReport — total detected assertion sites per test-target pair

Why

Issue #48 identifies four agent-facing improvements. Items 1 (fix_strategy) and 2 (combined mode via gaze report) were already addressed. This PR implements items 3 and 4:

  • recommended_actions: Agents no longer need to parse all scores, filter to CRAPload, and sort by strategy — the list is ready to consume
  • assertion_count: Agents can now distinguish 'no tests' (count absent) from 'tests without assertions' (count 0 with line coverage) to choose the right fix strategy

Verified Output

recommended_actions: 20 entries (sorted add_tests first, by CRAP desc)
assertion_count: 1-5 per test function (welltested fixture)

Partially closes #48.

Added RecommendedAction type and recommended_actions field to
crap.Summary — sorted by fix strategy priority (add_tests first),
then CRAP descending, top 20. Agents consuming gaze JSON can now
work in optimal remediation order without inferring priority.

Added AssertionCount field to taxonomy.QualityReport — total
detected assertion sites per test-target pair. Agents can now
distinguish 'no tests' from 'tests without assertions.'

Partially closes unbound-force#48 (items 3 and 4).
Archived: agent-quality-workflow, quality-include-unexported,
p0-contractual-default
The BuildContractCoverageFunc call inside runProductionPipeline
makes internal/aireport tests take 6-8min. Combined with other
test packages, the total exceeds the 20min timeout on slower CI
runners. Increase to 30min for headroom.
@jflowers
jflowers force-pushed the agent-quality-workflow branch from 2a11601 to ae6ed88 Compare March 19, 2026 03:03
@jflowers
jflowers merged commit b70a3fd into unbound-force:main Mar 19, 2026
5 checks passed
@jflowers
jflowers deleted the agent-quality-workflow branch November 15, 2026 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

gaze report: agent-facing improvements for automated quality improvement workflows

1 participant