Skip to content

feat: add quiet verifier output - #28

Merged
shreyanshjain7174 merged 1 commit into
mainfrom
feat/verifier-quiet-output
Aug 29, 2026
Merged

feat: add quiet verifier output#28
shreyanshjain7174 merged 1 commit into
mainfrom
feat/verifier-quiet-output

Conversation

@shreyanshjain7174

Copy link
Copy Markdown
Contributor

Closes #14.

What changed:

  • Adds --quiet and -q to agentgate-verify.
  • Quiet text-mode success output is exactly one PASS summary line.
  • Failure output remains byte-for-byte unchanged.
  • --quiet is a no-op for --format json, which already returns one result object.
  • Documents both automation output modes.

Verification:

  • go test ./cmd/agentgate-verify -run TestRun_QuietFormat -count=1
  • go test ./cmd/agentgate-verify -run TestRun_QuietDoesNotChangeJSONOutput -count=1
  • go test ./... -race -count=1
  • go vet ./...
  • gofmt -l cmd/agentgate-verify/main.go cmd/agentgate-verify/main_test.go
  • git diff --check

All passed locally.

Signed-off-by: Shreyansh Sancheti <43677304+shreyanshjain7174@users.noreply.github.com>
@shreyanshjain7174
shreyanshjain7174 requested a lite review from Copilot August 29, 2026 18:14
@shreyanshjain7174
shreyanshjain7174 merged commit e154050 into main Aug 29, 2026
2 checks passed
@shreyanshjain7174
shreyanshjain7174 deleted the feat/verifier-quiet-output branch August 29, 2026 18:15

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a quiet mode to agentgate-verify so scripts can get stable, minimal success output while keeping failure output unchanged. It fits the repo’s offline receipt-chain verification tooling.

Changes:

  • Added --quiet and -q flags to suppress success details in text output, leaving only the PASS: summary line.
  • Added tests to assert quiet-mode text output shape, unchanged failure output, and unchanged JSON output.
  • Updated README to document --quiet as the terse text-mode automation option.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
README.md Documents --quiet / -q for terse success output in text mode.
cmd/agentgate-verify/main.go Adds --quiet / -q flags and returns early after printing the PASS: line in text mode.
cmd/agentgate-verify/main_test.go Adds coverage for quiet text output, unchanged failure output, and unchanged JSON output.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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.

agentgate-verify: add a --quiet flag to suppress non-essential success output

2 participants