Repository navigation
fix(reporting): give exact LLM setup fixes and count named Tier 1 checks - #367
Merged
Merged
Conversation
When only the LLM stage of a check could not run, what to fix now prints the export lines for the missing provider or key, the scanners row keeps the scanner version, and the summary counts the named checks plus sub-checks instead of validators. Signed-off-by: Christopher Kevin <[email protected]>
chrisknvidia
requested review from
mosheabr,
rmalani-nv and
rng1995
as code owners
November 6, 2026 09:47
7 of 9 tasks
rng1995
reviewed
Nov 6, 2026
rng1995
left a comment
Collaborator
There was a problem hiding this comment.
Automated review: 4 findings (0 P1, 2 P2, 2 P3); 4 posted inline.
This was referenced Nov 9, 2026
rng1995
added a commit
that referenced
this pull request
Nov 12, 2026
* fix(tier3): keep the Rich progress frame at a fixed height The interactive Tier 3 progress table changed height as the plan resolved and stages arrived: the Provider and Run plan rows appeared later, every stage added a row, and long details wrapped. Rich also redrew it from its own refresh thread at 8 Hz. Redraws of a frame whose height changes can leave repeated or jumbled frames in the terminal. - Always render the Provider and Run plan rows, with a placeholder until the plan resolves. - Keep each row on one line: the title and every column end in an ellipsis instead of wrapping. - Show the most recently updated stages in a fixed number of rows, at least six and at least one per agent, padded with blank rows. The slot count never shrinks. - Create Live with auto_refresh=False, so redraws come only from progress events and heartbeats, which hold the reporter lock. - Reset the plan, rows and slot count on close even when Live never started. A redraw failure on the heartbeat thread used to end the thread with a traceback and leave the reporter active. The heartbeat loop now catches it and calls a failure callback; SafeProgressReporter registers its disable hook there, which closes the reporter and stops the live view while the run continues. Without a callback the loop stops. A disabled SafeProgressReporter no longer reports itself active, and start() is a no-op once it is disabled. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(tier3): describe the fixed-height Rich progress view Explain in the Tier 3 guide how the rich progress view keeps its height, which stages it shows and what happens when drawing fails, note the fixed-height table in the CLI reference, and add an Unreleased / Fixed CHANGELOG entry. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(tier3): keep running stages running when the progress view stops When a redraw failed, SafeProgressReporter turned progress off through the reporter's close(), which reports every running stage as "failed - interrupted before completion" and redraws. A one-off write error on the heartbeat thread therefore left a frame saying the running agents had failed while the run went on, and progress stayed off. - PlainProgressReporter and RichProgressReporter get close_after_failure(), which stops without marking running stages failed. The Rich reporter keeps the last frame and prints one line saying the display stopped and the run continues. SafeProgressReporter._disable uses it when the reporter has it. - The heartbeat thread skips a redraw that fails with BlockingIOError or InterruptedError (a write that would block on a terminal another process made non-blocking) and draws again on the next heartbeat. - A heartbeat failure while close() is already stopping the reporter no longer calls the failure callback. - Rich progress lines are printed without Rich's number highlighting. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(tier3): stop a plan update that races a heartbeat failure SafeProgressReporter checked its disabled flag before calling the reporter, but not atomically with the heartbeat thread's _disable(). A plan update waiting on the reporter lock while a heartbeat redraw failed could pass the check after the reporter was closed, and then start a new Live on a disabled wrapper. That frame stayed on screen, with stdout and stderr redirected through it, until the run's final close(). - start() holds a wrapper lock while the reporter draws the plan, and _disable() sets its flags under the same lock. A failure reported from the heartbeat thread waits for the plan update and then stops what it drew. The reporter is closed outside the lock, because closing joins the heartbeat thread. - Registering the failure callback is now best effort. A caller-supplied reporter whose set_failure_callback raises, or whose attribute lookup raises, is wrapped as before instead of failing the evaluation. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(tier3): print the full run plan above the fixed Rich progress frame The fixed-height frame cuts each row with an ellipsis. At 80 columns that hid most of the Run plan row (concurrency, max agents, timeout, matrix trials, containers, the scaled agent timeout), every agent's model after the first, and the second Ctrl+C hint, which only appears in a stopping agent's detail. On main these rows wrapped and stayed visible. - The Rich reporter prints the Agents / models, Provider and Run plan lines in full above the frame whenever one of them changes. They stay in the scrollback; the frame keeps its height. - The stopping detail is now a runner constant that starts with a short hint, "Ctrl+C again skips wait", so the row cut at 80 columns still shows it with the longest built-in stage label in the frame. - close() also clears the record of printed plan lines, so the next run prints its plan again. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(tier3): list every stage in full in the final Rich progress frame Live is created with transient=False, so its last frame stays in the scrollback. That frame kept the six-row recent window, so earlier outcomes dropped out of the record (for example a failed first agent, or a degraded Docker images stage). Its details were cut with an ellipsis, and a run that failed before the plan resolved left "pending / resolving" rows behind, as if work were still in progress. - close() updates Live with a final table before stopping it. That table lists every stage without padding rows, wraps the Detail column in full, and shows unresolved Provider and Run plan rows as "- / not resolved". - After a drawing failure, Live keeps the last frame it drew instead, since drawing the final table could fail the same way. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(tier3): describe the plan lines, final frame and drawing failures Align the CHANGELOG entry, the rich view paragraph in docs/tier3-live-evaluation.mdx and the --progress row in docs/cli-reference.mdx with the progress fixes: the full plan printed above the table, the final table listing every stage in full, the Ctrl+C hint shown first, a blocked heartbeat write skipped, and what a drawing failure leaves on screen. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(tier3): turn progress off when a heartbeat write would block A heartbeat redraw that failed with BlockingIOError or InterruptedError was skipped so that the next heartbeat could draw again. Rich does not drop a refused frame: it keeps it in the heartbeat thread's buffer and sends it again, from the start, before the next one. A terminal that refuses writes for a while therefore gets a backlog that grows by one frame per heartbeat, and once the backlog is larger than one write can take, it never drains while the reporter stays active. Treat these errors like any other drawing failure: call the failure callback, which stops the live view without marking running stages failed and says that the run continues. The heartbeat thread then ends, and its buffer with it. The test drives a real Rich Live on a terminal that refuses heartbeat writes once or every time, and checks that progress turns off and the heartbeat thread ends. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(tier3): skip the interrupted marks atomically when a failed display stops close_after_failure() cleared the running stages under the reporter lock, released it, and then called close(), which takes the lock again and marks every still-running stage "failed - interrupted before completion". An agent update that took the lock in between put its stage back, and that stage was then drawn as failed in the frame Live leaves on screen. close() and close_after_failure() now share one _close(after_failure=...) path that decides under the same lock hold whether to mark the running stages. After a drawing failure nothing is marked, so a late update is drawn as running. The test runs the late update from another thread the first time the stopping thread releases the reporter lock. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(tier3): leave columns to spare around the second Ctrl+C hint At 80 columns, with Agent Runtime Preflight in the stage window, the Detail cell is 24 characters wide and "Ctrl+C again skips wait" filled it with no column to spare. At 79 columns, or on a legacy Windows console, which uses one column less, the hint was already cut. The stopping detail now starts with "2nd Ctrl+C skips wait", two characters shorter, so it still shows at 78 columns. The 80-column test also renders the frame at 78 columns, so a longer hint fails before it reaches the edge. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(tier3): print colon-delimited plan values above the progress frame as is The Agents / models, Provider and Run plan lines above the Rich progress frame are printed in full so that values the frame cuts stay readable. They went through console.print with markup and highlighting off but emoji replacement on, so a model ID such as "ollama:llama:3.1-8b" was printed as "ollama", a llama emoji and "3.1-8b". The table cells are Text objects and were already verbatim. Print the lines with emoji=False too. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(tier3): keep the final progress frame's rows on one line in a narrow terminal The final Rich frame, which stays in the scrollback, folded its Detail column so that each detail is shown in full. Stage, State and Elapsed do not wrap, so in a 60-column terminal they left the Detail column 4 characters wide and every detail folded into a stack of 4-character pieces: the emulated full run left a 252-line table, against 134 lines on main. Rich gives a ratio column whatever width the other columns leave and ignores its min_width, so the final frame is now drawn at render time: it wraps its details only when the width it is drawn at leaves the Detail column at least 20 columns wide, and otherwise keeps each row on one line as while running. The emulated 60-column run now leaves 35 lines; at 80 columns and wider nothing changes. The test renders the final frame at 76 columns, where the Detail column is exactly 20 wide, and at 75 and 60 columns. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(changelog): move the progress view entry away from open PRs' insert points The entry sat at the end of Unreleased > Fixed, where open PRs #367 and #386 also add their entries, so each of them conflicted with this branch. It now sits in the middle of the same Fixed list, which no open PR changes. The text is unchanged. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(tier3): show the cursor again when the terminal refused a failed display's stop A terminal that refuses a heartbeat redraw (a write that would block) usually refuses the stop that follows a few microseconds later on the same thread. Rich then loses the queued show-cursor control with that thread's buffer, the stop notice is skipped, and close() finds no Live to stop, so the cursor stayed hidden after the run. close_after_failure() now records when Live's stop or the notice under the last frame was refused, with the thread it ran on. The run's final close() then shows the cursor with Console.show_cursor(True) and prints "...; the run went on without it." A notice that was refused on the closing thread itself is not printed again: Rich still holds it for that thread and sends it with the cursor write. The refused-write test gains a terminal that refuses every thread's writes until the heartbeat thread has ended, a case that refuses only the notice, and the cursor and single-notice checks after close(). A new test covers the same refusals on the caller's thread. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(tier3): finish a refused progress stop without replaying its frames Two gaps in how the run's close() finished a stop the terminal refused after a drawing failure: - The heartbeat thread recorded a refused stop, or a refused notice, in a second lock hold after the one that stopped Live, and wrote the notice outside the lock. A run-end close() that took the lock in between found no Live to stop and no record, so the cursor stayed hidden, and the record then reached the next run's close(), which printed the late notice in a healthy run. The stop, the notice and the record now share one lock hold, so close() either stops Live itself or finds the record. start() of a new run also drops a record left by a run that was never closed. - close() showed the cursor through the same Rich console, which first sent everything that console held for the closing thread from refused writes: the refused frame and Live's stop, each led by cursor-up and erase-line controls sized to the frame on screen when drawing failed. Lines printed since then, such as logged warnings, were erased and overwritten. close() now drops that held output first, shows the cursor and ends the frame's last line when the stop was refused, and prints the late notice whenever the notice did not reach the terminal, so a refused notice is no longer sent as the on-time "the run continues" line at the end of the run. Tests: the caller-thread refusal cases now print warnings before close() and check that close() writes no cursor-up or erase-line control and ends with the late notice. A new test closes the run from another thread while the heartbeat thread's refused stop is in progress, and another starts a reporter again without close() after a refused stop. The stop-notice check also requires the notice on a line of its own. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(tier3): show the cursor when Live's own stop of a refused first frame was refused Rich's Live.start() stops Live itself when its first frame fails, then raises. When the terminal refused that stop as well, the write that shows the cursor again stayed in the caller's Rich buffer. The stop that follows the drawing failure then had nothing left to do and raised nothing, so the record said the stop went through, and close() dropped the held write without showing the cursor. close() now also shows the cursor when the refused output it drops holds that write. No frame reached the terminal then, so it ends no line. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Signed-off-by: Narendran Raghavan <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
… ran A missing SkillSpector or rejected baseline under --llm records skillspector-llm before any scan runs, so it was treated as an LLM-only failure and asked for a provider instead of the scanner. Treat the stage as LLM-only only when the static scan recorded its version. Also: - name SKILLSPECTOR_PROVIDER's own key when it picks an adapter directly, instead of advising on the public provider - give export lines for OPENAI_API_KEY / SKILL_EVAL_LLM_API_KEY when both are unset - count a --skip inside a check that still ran (secrets in code-integrity) as skipped - after --fail-fast stops the run, count the lineup checks it never reached as not run, so the denominator matches the ticker - keep the changelog entry under the existing Fixed heading Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
…verdict line The summary row counted named checks while the verdict line under it (and the HTML Tier 1 chip) count validators, so a plain run showed 9/9 above and "11 of 11" below. With --skip and --fail-fast the two also drifted, and the named-check count needed special cases for partial skips and for checks that are not applicable. Count validators with the verdict's own classification instead, keep the sub-check count, and drop the lineup-based not-run count. The ticker above still lists the named checks. Add tests that compare the row with TierPresentation, and real-validator tests for --llm without a usable SkillSpector (not installed, bad path override, bad baseline) and for SKILLSPECTOR_PROVIDER=bedrock. Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
rng1995
reviewed
Nov 13, 2026
rng1995
left a comment
Collaborator
There was a problem hiding this comment.
Reviewed head 5ee48f8ac5a9, including scanner-vs-LLM failure discrimination, direct SkillSpector provider hints, public-provider setup advice, and verdict/summary counting. The focused reporting and skipped-check suites passed locally (38 tests). The earlier review fixes are present; I found no new actionable issue in this diff.
Keep this PR's changelog bullet and tests next to main's new ones. The
hook-gate test added on main expects the summary wording this PR changes
("checks passed"), so update its expected text.
Signed-off-by: Christopher Kevin <[email protected]>
chrisknvidia
added a commit
that referenced
this pull request
Nov 13, 2026
#367 landed on main as a squash, so take main's changelog and keep only this PR's entry, and keep this PR's live-view tests next to main's. Signed-off-by: Christopher Kevin <[email protected]>
rng1995
added a commit
that referenced
this pull request
Nov 13, 2026
Resolve the CHANGELOG conflict with #487 by putting its Bandit entry at the top of the one Unreleased > Changed list, above the moved #369 entry. #488 and #367 keep the places main gives them. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
This was referenced Nov 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Tier 1
validateoutput gave the wrong fix when only a check's LLM stage (--llm/--llm-verify) could not run, and its summary row counted differently from the verdict line under it.what to fixnow names the missing provider or key and prints the exactexportlines, e.g.→ export SKILL_EVAL_LLM_PROVIDER=nv_build NVIDIA_API_KEY='your-api-key', then→ or rerun without --llm / --llm-verify. It no longer suggests installing a scanner or--skip security. If a provider is set but the call fails, it points atskillevaluator doctor --tier 2 --verify-models.SkillSpector 2.12.0, LLM didn't runinstead ofdidn't run).code-integrityalone is three), with an(N sub-checks)suffix, so the numbers agree on a plain run and with--skipor missing scanners.Verification
make lint(Ruff check on changed files)make test(tests/reporting,tests/golden, banner, skip and OSS-boundary tests: 1957 passed)make buildAlso checked with real
validate --tiers 1and--llmruns with and without a provider configured.Release Impact
CHANGELOG.md