Skip to content

Fix ISS-014: add model/task fitness check - #102

Merged
sankar-ramamoorthy merged 3 commits into
mainfrom
add-model-task-fitness-check
Aug 5, 2026
Merged

sankar-ramamoorthy merged 3 commits into
mainfrom
add-model-task-fitness-check

Conversation

@sankar-ramamoorthy

Copy link
Copy Markdown
Owner

Summary

Test plan

  • pytest tests/test_skill_fitness.py tests/test_skill_approval.py -v — 16 passed
  • Full suite — no new regressions (5 pre-existing ISS-005 failures tracked/fixed separately in Fix ISS-005: root-cause three pre-existing test failures #96, unrelated to this change)
  • python -m compileall -q py_mono skills — clean

New py_mono/skill/fitness.py: check_model_fitness(skill, provider,
model) reads ISS-013's telemetry log and, once at least 3 recorded
runs exist for the exact (skill, provider, model) combination, warns
if at least half of the most recent 5 matching runs failed. Returns
None (no opinion) below the minimum sample size, avoiding a
false-positive warning from a single bad run.

Hooked into run_skill_safe (py_mono/skill/approval.py): a returned
warning is prepended to a successful result; a failed run attaches no
warning, since its own exception is already the signal.

Directly productizes the ISS-009/ISS-011 lesson (thinking models
reasoning verbosely/unreliably on structured, template-filling tasks)
as an evidence-based check driven by this repo's own recorded history,
not a hardcoded list of "bad" models.

Adds tests/test_skill_fitness.py (6 tests) and 3 new tests in
tests/test_skill_approval.py. This is the last item in Milestone 6 -
see docs/ROADMAP_PLAN.md and specs/012-add-model-task-fitness-check/.
@sankar-ramamoorthy
sankar-ramamoorthy merged commit ea623e0 into main Aug 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant