Repository navigation
fix(intake): count a lanes App close with the lane's outcome marker as a resolved blocker - #18987
Conversation
…s a resolved blocker Issue-lane admission, work-resolve-issue's blocker check and the work-unblock sweep share isTrustedClose. It counted a lanes App close only as already-done with re-checked evidence or verified-done with every sub-issue re-checked, so a dependent of a report-delivered blocker waited on a re-triage and re-fired about hourly (#15734 behind #16099). Per owner decision Q300 (option A), an App close now counts when the lanes App's own work-resolve-issue outcome=closed comment marks it, whatever the stop, read back by appCloseKind (comments whose author is the App only). The comment must postdate the issue's last reopen, so a comment from an earlier close is no cover. An App close without it, a close comment someone else wrote, or a failed read counts for nothing; human and merge closes are unchanged. report-outcome still checks the already-done and verified-done evidence before it closes. Refs: #15734 Co-Authored-By: Claude Opus 5.5 <[email protected]>
A marked lanes App close now counts as a resolved blocker only after the read-time re-check owner decision Q9 set for its stop: an already-done close's cited merge must still close the issue, and a verified-done close's sub-issues must still be closed by trusted closes. A report-delivered close, which had no re-check, counts on the App's marker comment alone (owner Q300). The tests that unverified evidence and unverified sub-issues stay unresolved are back, now with the App's marker present. Refs: #15734 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed Security review: PR #18987, head 06b50e2. No security issues foundThis review reported only blocking findings, because this lane already reviewed an earlier head ( Trust control touched:
Paths I checked:
Instruction surface. The changelog fragment and the PR context. The description holds no embedded directives aimed at the review lane. Spend: none beyond normal lane runs. critical-findings: 0 |
|
claude-review reviewed Code review: PR #18987 (head
|
…lution
Owner decision Q300 covers blocker resolution alone, but isTrustedClose
is also the trusted callback for the sub-issue and parent rules: split
parent auto-close, finished-parent admission and a verified-done
parent's own child check. A report-delivered App close now counts only
when the caller passes { blocker: true }: admission's blocker loop,
Check Admission's blocker read and the work-unblock sweep's blocker and
closed-source reads. Every other caller, and parentDone's recursive child
check, keeps the old answer, so such a close counts for nothing there.
The already-done and verified-done Q9 re-checks apply in both modes.
The sweep caches the plain read once and computes the blocker read from
it, so a human or merge close costs no second read.
Restores, as doc comments, the decide(), reportCleared and
closedByTrusted docs this PR had deleted, narrowed to the new meaning.
Refs: #15734
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Refs: #15734
Summary
Issue-lane admission, work-resolve-issue's blocker check (Check Admission) and the work-unblock sweep now count a blocker the lanes App closed as resolved when the App's own
work-resolve-issue outcome=closedclose comment marks that close, as they already count a close by a listed human or a merge. This is owner decision Q300, option A. Before it, #15734 stayed skipped behind #16099, which the App closedreport-deliveredon 2026-11-20 (run 45535192580, Check Admission notice: "#16099 still blocks it (not a pull request merged here or an issue closed by a listed human or a merge)").Fix
All three sites reach one helper,
isTrustedClosein.github/actions/check-trusted-trigger/close-trust.mjs(admission throughclosedByTrustedandadmissionFactsinadmit.mjs, Check Admission throughclosedByTrustedincheck-blockers.mjs, the sweep throughreadCloseinlabel-unblocked.mjs), so the change is made once there:isTrustedClosetakes a new option,{ blocker }, which defaults to false. With it, an App close whose stop has no Q9 re-check (report-delivered) counts whenappCloseKindfinds the App's close comment and that comment postdates the issue's last reopen (lastReopened, now exported fromdone-evidence.mjs).appCloseKindreads only comments whose author passes the caller's App check (appActor(appId)by id in admission, the App's[bot]login in the sweep), and it parses the marker together with report-outcome's stop line (closeStop).{ blocker: true }:admissionFacts, throughclosedByTrusted's new(number, { blocker })form;clearedPastReportreader incheck-blockers.mjs;clearedHereblocker reader, itsadmissionFactsreader, and its closed-source read inlabelUnblocked.report-deliveredApp close counts for nothing there, as before. That coverscloseDoneParent's split-parent child check,closeSplitParent,finishedParent(admission, Check Admission and write-issue),splitParentClosedandparentDone's recursive child check.already-doneorverified-doneclose counts, in both modes, only after the read-time re-check owner decision Q9 set for it: the cited merge must still close the issue (doneEvidence), and every sub-issue must still be closed by a trusted close (parentDone).The re-triage path for a
report-deliveredblocker (reportCleared,clearedPastReport,retriageNote) is left in place. It now decides only areport-deliveredApp close thatisTrustedClosedoes not count, meaning one whose comment predates a reopen. Thedecide()(reported,comments),reportClearedandclosedByTrusteddocs that the first commit deleted are back as doc comments, narrowed to that meaning. TheisTrustedClosedocblock credits Q9 and Q300. Thepr-run-activity.mdcontract sentence and apr-pipelinechangelog fragment record the rule.Remaining
#15734 itself is separate work. It admits on the next work-unblock sweep after this merges, since the App's marker comment sits on blocker #16099.
Verification
Run on the tree of head d60b453 before its doc-only amend (the amend added the
pr-run-activity.mdsentence and the changelog fragment),node --test --test-concurrency=4, one suite at a time:check-trusted-trigger.test.mjs:# tests 512,# pass 512,# fail 0admit.test.mjs:# tests 684,# pass 684,# fail 0label-unblocked.test.mjs:# tests 468,# pass 468,# fail 0check-blockers.test.mjs:# tests 38,# pass 38,# fail 0size-split.test.mjs:# tests 73,# pass 73,# fail 0report-outcome.test.mjs:# tests 437,# pass 437,# fail 0triage-sweep.test.mjs:# tests 83,# pass 83,# fail 0write-issue.test.mjs(it importsclosedByTrusted):# tests 59,# pass 59,# fail 0New and changed cases:
report-deliveredclose plus the App's marker counts when read as a blocker (close-trust, admission, Check Admission, sweep), and counts for nothing in a plain read.report-deliveredstays open in the sweep.report-deliveredsub-issue in admission'sfinishedParent.verified-doneparent counts for nothing on areport-deliveredchild, even read as a blocker, while that same child read as a blocker counts.already-doneclose counts only while its evidence verifies, and a markedverified-doneclose only while every sub-issue's close holds.scripts/selection-audit.sh trace --strictover the eight suites above found 11 gaps. Each is a pre-existing selector gap on a file this PR leaves unchanged: the standards fixture schemas,docs/conventions/work-items.yaml,check-trusted-trigger/fixtures/trusted-actors.json,publish-lane-level.mjs,sweep-gap.mjsandsync-status.mjs. None involves a changed file.Loosened checks
report-deliveredclose by the lanes App now counts as a resolved blocker when the App's own outcome comment marks it. The reason is owner decision Q300 (option A). The acceptance applies to blocker resolution only: the sub-issue and parent rules (split-parent closes, finished-parent admission, a verified-done parent's child check) still count such a close for nothing. The trust still rests on the App's authorship of the comment, read by user id or[bot]login and never from body text, and on the comment postdating the last reopen. The Q9 evidence re-checks foralready-doneandverified-doneare unchanged.Owner row: https://github.com/melodic-software/architecture/blob/51f2da4c34c2846dbe7df3373ce5c2d2b2fdb4bc/docs/owner-decisions.md#L428
Related
report-delivered.Hold: the backlog-drive session lands this after both hosted review lanes, pr-review-main and pr-verify report on the head (owner decision Q300 changes admission trust).
🤖 Generated with Claude Code