Skip to content

feat: github_verdict key keeps the verdict off GitHub (15.3.0) - #324

Merged
xjacka merged 5 commits into
dam-agents:mainfrom
lamoghaighoroje:feat/review-output-controls
Dec 1, 2026
Merged

xjacka merged 5 commits into
dam-agents:mainfrom
lamoghaighoroje:feat/review-output-controls

Conversation

@lamoghaighoroje

@lamoghaighoroje lamoghaighoroje commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

What and why

The operator wants every approval on GitHub to come from a person, and no verdict on posted reviews. No key controls this now. This PR adds one opt-in key. The default keeps the current behavior.

  • github_verdict: disabled: every review posts as a plain COMMENT. The body shows no verdict emoji, no ### Verdict section and no own-PR verdict note. The progress signal, the re-review Previous HEAD line, the stale-approval dismissal message and the rapid quote name no verdict. The verdict goes to the chat report. REVIEWS.md, the ledger and auto-merge still record and read the real verdict.
  • Missing key = enabled. Onboarding does not ask for the key; the operator sets it in the direct session.

Where to look

  • scripts/review-pr.sh → review_event, build_payload, dismiss_approvals, the rapid path: under disabled, nothing may reach GitHub as APPROVE or REQUEST_CHANGES, and no text may name the verdict.
  • verify-onboarding.sh warns when disabled is set together with approve_after_rounds or auto_merge.

Scope

review-pr.sh, preflight.sh (config object), verify-onboarding.sh (known key, value check, warnings), the key docs (config.md, finding-form.md, review.md, review-rereview.md, review-urgent.md, review-mechanics.md, review-bookkeeping.md, github-access.md, README.md), tests, VERSION 15.3.0 and CHANGELOG.md. ONBOARDING.md does not change. No issue tracks this change.

Testing

The CI checks for shell syntax, VERSION and CHANGELOG, internal doc links, cross-file section references and kit.yaml pass locally. The stub tests (test_review_pr.sh, test_verify_onboarding.sh) run in CI.

lamoghaighoroje and others added 2 commits November 27, 2026 14:01
…iew shows (15.3.0)

review_verdict: private posts every review as a plain COMMENT, with no
verdict emoji, Verdict section, verdict note or verdict in the progress
signal; the verdict goes to the chat report. review_footer: disabled
leaves the signature line out. Both default to the current behavior.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@dam-code-protector dam-code-protector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🛡️ Code Guardian - Code guardian repo — ⚠️ Code Review @ bcd6ad6

PR #324: feat: review_verdict and review_footer keys control what a posted review shows (15.3.0)

Author: lamoghaighoroje | Branch: feat/review-output-controls → main | Changes: +98 −11 (13 files)

Summary

The PR adds two opt-in keys. review_verdict: private posts every review as a plain comment with no verdict. review_footer: disabled removes the signature line.
Limits: 3 skill(s) did not run: issue-fit, typescript-engineering, react-ui-engineering.

Findings

  • 🟡 Warning: Under review_verdict: private two GitHub surfaces still name the verdict (scripts/review-pr.sh:2218). A rapid APPROVE body says "This approval covers critical checks only". A dismissal message says "verdict is now REQUEST_CHANGES". Reported by Agent Engineering.
    Fix: Under private, name no verdict on any GitHub surface: use a neutral dismissal message, and drop the rapid body's approval sentence (scripts/review-pr.sh:2287, docs/review-urgent.md:49).
  • 🟡 Warning: The 15.3.0 changelog entry says "Nothing — docs are re-read per run" (CHANGELOG.md:14). A migration reads only that block, so it never offers the two new opt-in keys. docs/persistence.md step 2 requires the offer, and 14.2.0 made one for approve_after_rounds. Reported by Agent Engineering.
    Fix: State in the 15.3.0 Upgrade block that both keys are off by default, each with its effect and its key, as 14.2.0 does.

Human Review Guide

📊 Visual guide for the human reviewer — whether a private review still shows its verdict anywhere (about 12 min)

Documentation Check (doc-drift)

✅ No findings.

Agent Engineering

  • 🟢 Suggestion: The new auto_merge warning branch has no test (scripts/verify-onboarding.sh:268). review_verdict_with_rounds seeds no auto_merge, so no case reaches it.

Verdict

COMMENT — A private verdict still reaches GitHub twice, and the changelog never offers the new keys.


Review by Code Guardian - Code guardian repo · automated code guardian · cb/rits/deepseek-ai/DeepSeek-V4.1-Flash-1017 on pi

lamoghaighoroje and others added 2 commits November 30, 2026 14:25
… offers both keys

Under review_verdict: private the stale-approval dismissal message ends
after the SHA, the re-review "Previous HEAD" line drops the prior verdict,
and the rapid quote names no approval. The 15.3.0 Upgrade block now tells
the operator about review_verdict and review_footer. Tests cover the
dismissal, the re-review line and the auto_merge warning.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, keep the key out of onboarding

github_verdict: enabled | disabled (missing = enabled) replaces
review_verdict: public | private with the same behavior; disabled posts
every review as a plain COMMENT and gives the verdict in the chat only.
The review_footer key is removed: every posted review keeps its signature
line. Onboarding does not ask for github_verdict; the operator sets it in
the direct session.
@xjacka xjacka changed the title feat: review_verdict and review_footer keys control what a posted review shows (15.3.0) feat: github_verdict key keeps the verdict off GitHub (15.3.0) Dec 1, 2026
@xjacka

xjacka commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

Answer to the review at bcd6ad6 (fixes in 9967b09 and 0124ed3):

  • Fixed — private verdict still reaches GitHub (scripts/review-pr.sh:2218, :2287, docs/review-urgent.md:49): under github_verdict: disabled the dismissal message ends after the SHA, the rapid quote names no approval, and the re-review Previous HEAD line drops the prior verdict (also docs/review-rereview.md). The verdict is now and This approval covers hits that stay are the default-path texts; each has the disabled exception next to it.
  • Fixed — no changelog offer for the two keys (CHANGELOG.md:14): the 15.3.0 Upgrade block names the key, its default and that onboarding does not ask for it.
  • Operator change: review_verdict: public | private is now github_verdict: enabled | disabled. The review_footer key is removed, so the signature line stays. ONBOARDING.md does not ask for the key.

Checks: git grep -nE -e 'verdict is now|This approval covers' shows only default-path texts with their exception and test fixtures; git grep -nE -e 'review_verdict|review_footer|github_verdict' -- CHANGELOG.md shows the Upgrade block. The CI doc, section-reference, VERSION and kit.yaml checks pass locally. The stub tests run in CI.
Optional taken: the auto_merge warning test (test_verify_onboarding.sh, github_verdict_with_auto_merge).

@xjacka xjacka added the code-guardian:rereview Request a code-guardian delta re-review label Dec 1, 2026

@dam-code-protector dam-code-protector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🛡️ Code Guardian - Code guardian repo — ⚠️ Code Review @ 0124ed3

PR #324: feat: github_verdict key keeps the verdict off GitHub (15.3.0)

Author: lamoghaighoroje | Branch: feat/review-output-controls → main | Changes: +135 −15 (13 files)

Summary

This PR adds the opt-in github_verdict key. With it, every review posts as a plain COMMENT and the verdict stays in the chat report. The three findings of the last round are fixed.
Limits: 3 skill(s) did not run: issue-fit, typescript-engineering, react-ui-engineering.
2 suggestion(s) dropped under the 🟢 budget.

Changes since last review

Previous HEAD: bcd6ad6 (2026-11-30T11:22:55Z) — verdict COMMENT

  • ✅ Fixed: private verdict still reaches GitHub (scripts/review-pr.sh:2218)
  • ✅ Fixed: no changelog offer for the two keys (CHANGELOG.md:14)
  • ✅ Fixed: auto_merge warning branch untested (scripts/verify-onboarding.sh:268)
  • 🆕 New: payload docs miss the disabled-verdict exception (docs/review-mechanics.md:22)
  • 🆕 New: progress table lists a verdict that is not written (docs/review-bookkeeping.md:94)
  • 🆕 New: the Desk cannot show or change the new key (scripts/desk/settings.mjs:10)

Findings

  • 🟡 Warning: Two docs say the posted payload always names the verdict (docs/review-mechanics.md:22, docs/review-mechanics.md:31). docs/github-access.md:66 and docs/review-urgent.md:55 restate that rule. Under github_verdict: disabled the script forces COMMENT and drops the emoji (scripts/review-pr.sh:2218, scripts/review-pr.sh:2589). Reported by Agent Engineering.
    Fix: State the disabled exception in every doc that names a rendered verdict field.
  • 🟡 Warning: The progress-signal table lists description text that no run writes (docs/review-bookkeeping.md:93, docs/review-bookkeeping.md:94). Under github_verdict: disabled the rapid line and the posted line name no verdict (scripts/review-pr.sh:2267, scripts/review-pr.sh:2690). Reported by Agent Engineering.
    Fix: Update a progress row in the same change, and give the value each configuration writes.

Human Review Guide

📊 Visual guide for the human reviewer — whether hiding the verdict is safe while auto-merge still acts on it (about 12 min)

Documentation Check (doc-drift)

✅ No findings.

Agent Engineering

  • 🟢 Suggestion: The Desk settings table has no github_verdict row, so the page cannot set it (scripts/desk/settings.mjs:10, scripts/desk/data.mjs:36). Reported by Agent Engineering.

Verdict

COMMENT — The code honors the key, but two documents still state a verdict that the disabled branch never writes.


Review by Code Guardian - Code guardian repo · automated code guardian · cb/rits/deepseek-ai/DeepSeek-V4.1-Flash-1017 on pi

@dam-code-protector dam-code-protector Bot removed the code-guardian:rereview Request a code-guardian delta re-review label Dec 1, 2026
@xjacka

xjacka commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

Answer to the review at 0124ed3 (fixes in 59f7d63):

  • Fixed — payload docs miss the disabled-verdict exception: docs/review-mechanics.md (event paragraph and the emoji line after the body format), docs/github-access.md → Own pull request, and docs/review-urgent.md phase 1 now state that under github_verdict: disabled the event is always COMMENT and the body names no verdict.
  • Fixed — progress table lists a verdict that is not written: docs/review-bookkeeping.md rapid and post rows now give the disabled text (rapid review posted · full review running, review posted · <a> critical, …), as scripts/review-pr.sh writes it.

Checks: git grep -nE -e 'verdict-emoji|Verdict verbatim|names the verdict' — every doc hit states the exception; git grep -nE -e 'rapid review: approved|VERDICT> . <a> critical' — every row gives the value per configuration. The local CI steps (shell syntax, VERSION and CHANGELOG, doc links, section references, kit.yaml, tsc) pass. This change is docs only; the stub tests run in CI.
Optional and deferred items: not taken (other files).

@xjacka
xjacka merged commit dd414a6 into dam-agents:main Dec 1, 2026
2 checks passed
@lamoghaighoroje
lamoghaighoroje deleted the feat/review-output-controls branch December 1, 2026 14:57
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