Repository navigation
fix(tier3): keep LLM suggestions grounded, distinct and requirement-preserving - #380
Conversation
…reserving Drop LLM-cited evidence references the run did not record instead of rendering them as evidence, and keep one copy of a repeated suggestion. Drop insight recommendations that restate a deterministic one or that loosen, relax or lower an expectation, assertion, ground truth or pass threshold. Both prompts now ask for distinct actions and phrase untested causes, such as a different model, as hypotheses or experiments. 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 suggestion grounding in tier3/harbor/report.py (recorded-ref filtering, dedup, prompt) and the insights recommendation filters in evaluation/insights_judge.py against the description, CHANGELOG and docs/reports.mdx, with probes run on both this head and origin/main.
Tests run on the head: tests/tier3/test_suggestion_grounding.py plus tests/evaluation/test_judges.py, 92 passed (the 7 new RecommendationQuality tests included). The related report and judge suites (collector truth, rich markup escaping, skill activation reporting, judge parse robustness, report refs) gave 361 passed and 4 skipped. ruff check and format --check are clean on the 4 touched Python files.
Merges onto current main without conflicts. Against other open PRs it conflicts in CHANGELOG.md only (#376, #379), and no semantic overlap with another PR was found.
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: |
…nded-suggestions Signed-off-by: Christopher Kevin <[email protected]> # Conflicts: # CHANGELOG.md
…nded-suggestions Signed-off-by: Christopher Kevin <[email protected]> # Conflicts: # CHANGELOG.md
…nded-suggestions Signed-off-by: Christopher Kevin <[email protected]>
Summary
LLM-written Tier 3 advice could cite evidence that the run never recorded, repeat the same fix, or suggest weakening a requirement so a failing agent passes. This keeps that advice grounded and distinct, without changing the deterministic fallbacks used when no LLM is available.
Findings suggestions (
src/skillevaluator/tier3/harbor/report.py,_generate_suggestions_structured):kind: "evidence"entry that points nowhere. Repeated references are kept once.Hypothesis:prefix plus a way to test it when the evidence does not establish a cause (for example, that a different model would do better).Insights recommendations (
src/skillevaluator/evaluation/insights_judge.py):Verification
tests/tier3/test_suggestion_grounding.py,tests/evaluation/test_judges.py). The old test asserting the unresolved-reference fallback now asserts that such references are dropped.docs/reports.mdx)make lintmake test. The only failures are environment-dependent git-remote, same-inode and Ctrl-C tests, which also fail on a cleanmaincheckout on the same machine.make buildRelease Impact
CHANGELOG.md