Skip to content

[Implementation] Quiet benign guardrail notices - #1958

Merged
aponcedeleonch merged 2 commits into
mainfrom
impl/quiet-benign-hook-notices
Oct 5, 2026
Merged

aponcedeleonch merged 2 commits into
mainfrom
impl/quiet-benign-hook-notices

Conversation

@aponcedeleonch

@aponcedeleonch aponcedeleonch commented Sep 26, 2026 •

Copy link
Copy Markdown
Member

Summary

Make routine successful contextual guardrail inspections quiet by default in mecatui while preserving actionable outcomes.

  • classify only exact structured complete + acceptable + (execute | release_result) reviews with valid review identity/job as benign
  • retain benign hook summaries and live detail blocks, hiding them only in collapsed presentation
  • reveal retained benign notices with ctrl+t
  • add client setting hook_notices.show_benign: true
  • bind asynchronous details to the requesting session and review ID; stale responses are discarded and mismatches fail visibly
  • keep approval details isolated on their matching approval surface

Stack

Verification

Passed:

  • focused mecatui, client, and UI tests
  • changed-package race tests
  • task lint
  • task docs
  • task site:build
  • task ac-trace-strict
  • offline mecademo
  • panel review; all findings addressed

Known unrelated baseline failure:

  • task test and task test:race reproduce TestMecak8sHelmChart_DeployCheckProductionFixtureRuntimeAndSpread: rendered namespace is toolhive-system, while the existing fixture expects default. This stack does not modify Helm files.

@aponcedeleonch aponcedeleonch changed the title impl/quiet benign hook notices [Implementation] Quiet benign guardrail notices Sep 26, 2026
@aponcedeleonch
aponcedeleonch force-pushed the impl/quiet-benign-hook-notices branch from ec3f4d1 to 3902c08 Compare September 27, 2026 16:44
Base automatically changed from plan/quiet-benign-hook-notices to main October 5, 2026 10:21
aponcedeleonch and others added 2 commits October 5, 2026 14:00
Restore the quiet-benign-hook-notices plan on top of #2002's per-review
notice model. Known-benign reviews are retained but hidden while details
are collapsed instead of being dropped; ExpandTools, the client setting
hook_notices.show_benign, or --debug reveals them, live and on replay.

- Classify benign reviews nil-safely and require a review ID and an
  action/inbound job; everything else fails visible.
- Fetch and fold live detail for benign reviews as well.
- A mismatched detail identity fails visible without its text.
- A routine final outcome never replaces a resolved approval receipt.
- Hidden notices leave no blank-row residue and stay cache-equivalent.

Co-authored-by: Mecatl <[email protected]>
@aponcedeleonch
aponcedeleonch force-pushed the impl/quiet-benign-hook-notices branch from 3902c08 to 133b3b1 Compare October 5, 2026 11:43
@aponcedeleonch
aponcedeleonch merged commit b9cd7a4 into main Oct 5, 2026
37 checks passed
@aponcedeleonch
aponcedeleonch deleted the impl/quiet-benign-hook-notices branch October 5, 2026 12:01
@toolhive-release-app toolhive-release-app Bot mentioned this pull request Oct 7, 2026
2 tasks
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.

2 participants