Repository navigation
test(review): cover reapproval after superseded verdicts - #664
Merged
Merged
Conversation
zzwong
marked this pull request as ready for review
October 21, 2026 23:26
zzwong
marked this pull request as draft
October 21, 2026 23:32
monit-reviewer
approved these changes
Oct 22, 2026
monit-reviewer
left a comment
There was a problem hiding this comment.
Automated PR Review
Reviewed commit: 4d48796e239e
Profile: open-cli-collective-review - Posting as: monit-reviewer
Summary
| Reviewer | Findings |
|---|---|
| go:implementation-tests | 0 |
Reviewer Coverage
Complete coverage details are retained in the local coverage.json artifact.
go:implementation-tests— complete (broad); scope: 1 file; examples:internal/reviewrun/superseded_approval_test.go; body-inspected: 1 file; examples:internal/reviewrun/superseded_approval_test.go; skipped: none; context (not coverage): 2 files; examples:internal/gateio/gateio.go,internal/reviewrun/reviewrun_test.go; constraints: Static review only; tests were not executed. Review scope was the assigned lifecycle regression test file.
0 PR discussion threads considered. 0 summarized; 0 resolved.
Completed in 39s | $0.07 | openai-codex/gpt-6.1-sol | cr 0.10.342
| Field | Value |
|---|---|
| Model | openai-codex/gpt-6.1-sol |
| Reviewers | go:implementation-tests |
| Engine | pi_rpc · openai-codex/gpt-6.1-sol |
| Reviewed by | cr · monit-reviewer |
| Duration | 39s wall · 27s compute |
| Cost | $0.07 |
| Tokens | 28.0k in / 483 out |
Per-workstream usage
orchestrator-selection— openai-codex/gpt-6.1-sol- In: 2.6k
- Out: 105
- Cache read: 0
- Cache create: 0
- Cost: $0.01
- Duration: 3s
go:implementation-tests— openai-codex/gpt-6.1-sol- In: 24.8k
- Out: 334
- Cache read: 89.2k
- Cache create: 0
- Cost: $0.06
- Duration: 20s
orchestrator-rollup— openai-codex/gpt-6.1-sol- In: 696
- Out: 44
- Cache read: 0
- Cache create: 0
- Cost: $0.00
- Duration: 3s
zzwong
marked this pull request as ready for review
October 22, 2026 00:06
zzwong
marked this pull request as draft
October 22, 2026 00:46
monit-reviewer
approved these changes
Oct 22, 2026
monit-reviewer
left a comment
There was a problem hiding this comment.
Automated PR Review
Reviewed commit: 40f8410e9e3b
Profile: open-cli-collective-review - Posting as: monit-reviewer
Summary
| Reviewer | Findings |
|---|---|
| go:implementation-tests | 0 |
Reviewer Coverage
Complete coverage details are retained in the local coverage.json artifact.
go:implementation-tests— complete (constrained); scope: 1 file; examples:internal/reviewrun/superseded_approval_test.go; body-inspected: 1 file; examples:internal/reviewrun/superseded_approval_test.go; skipped: none; context (not coverage): 3 files; examples:docs/development.md,internal/reviewrun/reviewrun.go,internal/reviewrun/reviewrun_test.go; constraints: Static review of the assigned test file and nearby implementation context only; tests and race checks were not executed.
0 PR discussion threads considered. 0 summarized; 0 resolved.
Completed in 30s | $0.06 | openai-codex/gpt-6.1-sol | cr 0.10.342
| Field | Value |
|---|---|
| Model | openai-codex/gpt-6.1-sol |
| Reviewers | go:implementation-tests |
| Engine | pi_rpc · openai-codex/gpt-6.1-sol |
| Reviewed by | cr · monit-reviewer |
| Duration | 30s wall · 18s compute |
| Cost | $0.06 |
| Tokens | 23.1k in / 359 out |
Per-workstream usage
go:implementation-tests— openai-codex/gpt-6.1-sol- In: 22.4k
- Out: 309
- Cache read: 54.1k
- Cache create: 0
- Cost: $0.05
- Duration: 15s
orchestrator-rollup— openai-codex/gpt-6.1-sol- In: 697
- Out: 50
- Cache read: 0
- Cache create: 0
- Cost: $0.00
- Duration: 2s
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
Refs #569.
Current production on
999e59ddfc74a67ffeef3c4b4a78a8528365afe6already handles approvals superseded by a newer change request from the same posting identity. This test-only PR locks down that behavior across the review-run lifecycle. Production code is unchanged.--rerunpost exactly oneAPPROVEat C, with the correct head/base marker and persisted event.COMMENT, then verify--rerunrecovers to approval.Validation
On the exact proposed tree, using the standard
keyring_nopassagebuild tag:All passed. The two-package runs each reported 164 passing test/subtest results and no skips. The same normal and race commands passed on clean main, with 159 passing results each. Formatting and whitespace checks passed.
An isolated negative-control copy changed only
activeApprovalByPostingIdentityto accept any historical same-identity approval, ignoring later verdicts. The new tests then failed by the three intended assertions: plain review, the legacy-comment preflight, and author override. The ordinary rerun case still passed. The negative-control mutation is not part of this PR.Validation limits
These are fixture-backed checks. The repository-wide suite,
make check, lint, standalone build, and live GitHub/provider or branch-protection verification were not run locally. This PR does not claim a new production fix or close #569.