mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #8083] [Issue]: Dottore approval reads an older canceled check over the newer passing run #7553
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#7553
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SpicyMarinara on GitHub (Oct 22, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8083
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Dottore's advisory approval helper can reject a head whose current required checks have passed.
checks_not_passed()iterates check runs in newest-first API order but overwritespassed[name]for every duplicate, so an older canceled run replaces the newer successful result.Owner: @SpicyMarinara. This is a focused follow-up for Engine-owned shared reviewer tooling; no implementation is included in Agents #1583.
Expected behavior
For repeated instances of a check, evaluate the current applicable result while preserving required-check/source identity. A superseded canceled Catalog run must not replace a newer passing Catalog result. A genuinely current pending, failed, or missing requirement must still hold approval.
Actual behavior
On Pasta-Devs/Marinara-Agents#1583, immutable head
690e28d277a7f616928b1af3b1fb4e710bab42ca, the complete examination returned Viable, With Notes, zero defects, and no review threads. All seven latest required contexts passed. Yet discharge job 119895816788 printed at 2026-10-22 14:52:23 UTC:The captured check-runs API response contains these two entries, in this order:
Both are named
Catalog validation, use the same head, workflow path and GitHub Actions integration, and are eligiblepull_requestruns. The newer passing result is overwritten by the older cancellation.Steps to reproduce
GET /repos/{owner}/{repo}/commits/{head}/check-runs?per_page=100, effective base rules, and the combined commit status response.checks_not_passed(base, head)with those API responses. The actual source function extracted with Pythonastand the captured responses deterministically returned["Catalog validation"]for the head above.The relevant existing implementation is the assignment in
checks_not_passed:passed[check_run.get("name")] = doneruns for each duplicate name. The same helper exists in trusted Engine95713e33f114283c98a0bc50d4eab1e8852c718a, which executed this review, and in merged Engine #8074 source6dd282ba47a3b99dbc3f5015e532073dcb7c9004.Environment
ubuntu-latest.Logs, screenshots, or video
690e28d277a7f616928b1af3b1fb4e710bab42ca.Additional context
This is a proven advisory approval bug. The helper's approval is explicitly a signal that no ruleset counts. GitHub separately reported
mergeStateStatus=BLOCKED; the cause of that server state remains unproven, and this issue does not claim the helper caused it. No protection, model, secret, or paid-review changes are needed to reproduce the helper defect.A single unchanged replay of the older canceled Catalog job is being used to obtain completed test evidence for the existing PR, not to fabricate a status or weaken a gate. No new paid review is required for this reproduction.
Template check
@SpicyMarinara commented on GitHub (Oct 22, 2026):
Implementation owner: @SpicyMarinara (Codex). I am reproducing duplicate check-run ordering with offline API fixtures and will preserve current pending/failing/missing-check and integration-source gates.
@SpicyMarinara commented on GitHub (Oct 22, 2026):
Resolved by #8095, merged to staging as
c1283b1f29. Verified that the reviewed head is an ancestor of origin/staging. Check runs and statuses are paginated and selected by the newest ID while preserving the required App identity; current failures still block. API/identity uncertainty is reported as evidence uncertainty rather than a failed check. Ten deterministic cases, stream-progress regression, pnpm check, and substantive local review completed; all eight required hosted checks passed and final-head Dottore review ended Viable.