fix(noema): ground formal verdicts in exact changed-line manifest - #1612
fix(noema): ground formal verdicts in exact changed-line manifest#1612seonghobae wants to merge 8 commits into
Conversation
Capture the BandScope #1122 failure where the third reviewed-line coordinate is outside the parsed diff, and require one authoritative LEFT/RIGHT coordinate manifest on both the first request and repair retry.
Provide the model with a deterministic, compact JSON manifest of every allowed path, diff side, and inclusive changed-line range on both initial and repair requests. Preserve the existing fail-closed post-response validator without coordinate snapping, filtering, or verdict downgrade.
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Team Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
QUEUE_SATURATION_CHICKEN_EGG: exact head 1e121e0 is a one-file test-only coverage repair with RED/GREEN/full-suite evidence, zero review threads, Devin no-issues and CodeRabbit/Devin success; remaining required workflows are queued under central Actions saturation. This repair is prerequisite evidence infrastructure for #1612.
|
The Opened #1658 with the one-line fix ( Claude-Session: https://claude.ai/code/session_019YgmaEKnPhrsbSyQBierFH Generated by Claude Code |
|
Both dependencies this PR's Claude-Session: https://claude.ai/code/session_019YgmaEKnPhrsbSyQBierFH Generated by Claude Code |
|
Naruon consumer-path advancement from fresh live state: dependency #1610 is now merged, but this PR is still open with head Please also include the existing Naruon #1613 canary in post-merge acceptance: |
# Conflicts: # CHANGELOG.md # scripts/ci/noema_review_gate.py
Stale base resolved — real logic conflict, adapted (not mechanically merged) to match
|
…e merge commit The prior merge commit (1e09e0a) resolved noema_review_gate.py's real logic conflict (dropping the retry-specific branch incompatible with main's single-request architecture) but the corresponding test file rewrite -- test_call_llm_grounds_initial_and_repair_requests_in_authoritative_manifest -> test_call_llm_grounds_its_single_request_in_authoritative_manifest -- was edited on disk but never staged before that commit, so it was verified locally (full suite, coverage, interrogate all ran against the on-disk working tree and genuinely passed) but not actually pushed. Committing it now as a follow-up rather than rewriting the prior commit's history. Verified again standalone: tests/test_noema_review_gate.py -q -> 107 passed. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BV96rXhqoR3tYZ9AeAVur4
Correction: the test rewrite from my previous comment was verified locally but not actually pushed — fixed nowMy prior comment on this PR described Committed the missing test-file change as a separate follow-up commit and re-ran everything against the now-actually-complete tree:
Pushed non-force as Generated by Claude Code |
Resolve the CHANGELOG.md conflict by keeping both sides: this branch's entry above main's, matching the file's newest-first convention. No entry dropped. Verified after resolution: 2893 passed, 1 skipped, coverage 100%, interrogate 100%; zero conflict markers; `ruff check --select F821` clean. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Incident
BandScope PR #1122 failed in Noema job
99792663163with:Here,
line 3is the thirdreviewed_linesitem. The strict validator correctly rejected a model-produced coordinate that was not present on the corresponding side of the unified diff.Root cause
noema_review_gate.pyalready parsed the authoritative(path, line, side)set, but the model received only the raw diff and one schema example. The repair retry repeated a generic “use exact changed-side locations” instruction without exposing the permitted coordinates. A long-running retry could therefore make the same class of coordinate guess again.Repair
LEFT/RIGHTinclusive ranges;reviewed_lines, adversarial probes, and findings;The deterministic post-response validator remains unchanged and fail-closed. This patch does not snap, coerce, filter, or silently discard invalid coordinates, and does not downgrade a formal verdict to obtain a green check.
TDD evidence
116 passed;2342 passed, 1 skipped, 21 subtests passed;scripts/ci:11019statements,4440branches,0missed,0partial, 100%;git diff --checkgates passed.Verification run: https://github.com/ContextualWisdomLab/.github/actions/runs/33514831758
Dependency and rollout
PR #1610 is a separate test-only repair for a protected-main Strix coverage regression discovered while running the full suite. It must land first so this PR's repository-wide
coverage-evidencecheck reflects the Noema change rather than that pre-existing baseline gap.After both PRs merge, rerun Noema against BandScope PR #1122 and require a fresh exact-head verdict before considering the production incident closed.