Repository navigation
review: post a PR comment when the dispatcher dies without a result #370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
60ccbfa
7f7eae6
01b73c9
127bda6
77ae436
719b679
65320eb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "review": patch | ||
| --- | ||
|
|
||
| Make a dispatcher death visible on the PR. When the dispatcher's Bash call dies without writing `dispatch-result.json` (killed at the engine ceiling, or crashed), the orchestrator now posts one standalone PR comment saying the review died mid-dispatch and posted no review, with a link to the run, instead of only writing an incomplete report. Run 32418662895 (Khan/actions#362) hit exactly this: the run stayed green, the incomplete report tried to file an issue on a repo with issues disabled, and the PR showed nothing. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -835,9 +835,23 @@ cd gh-aw-review-lib && npx -y tsx workflows/review/lib/submission.ts | |
| `reconciliation.skipLines` is already reflected in the plan. Steps 4-6 | ||
| below are the plan CLI's; continue at Step 7. | ||
| Do not dispatch any sub-agent yourself in this mode, and do not re-run | ||
| the dispatcher; if its call failed, treat the run as over budget and land | ||
| the review from whatever `out/` evidence exists (the gate decides whether | ||
| a verdict may post). Step 9's cache-memory record is also code-owned | ||
| the dispatcher; if its call failed but `dispatch-result.json` exists, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. note (non-blocking): Only the dispatcher-call death is made visible; a plan-CLI death is still silent. The new clause is conditioned on review detailsfound by completeness
khan-actions-bot marked this conversation as resolved.
Outdated
|
||
| treat the run as over budget and land the review from whatever `out/` | ||
| evidence exists (the gate decides whether a verdict may post). If | ||
| `dispatch-result.json` is MISSING after the dispatcher call (the Bash | ||
| call was killed at the engine ceiling or crashed before writing it), | ||
| there is no plan and you compose nothing by hand: post exactly one | ||
| standalone PR comment with the `add-comment` safe output stating that | ||
|
khan-actions-bot marked this conversation as resolved.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thought (non-blocking): The death notice is a prompt rule executed by the process that may be dead. This makes visibility of a dead run depend on the orchestrator surviving its own death and following a multi-clause prose instruction, while the repo already has a deterministic chokepoint for exactly this — the review detailsfound by first-principles |
||
| the automated review died mid-dispatch and posted no review, linking | ||
| this run (`$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID`), | ||
|
khan-actions-bot marked this conversation as resolved.
Outdated
|
||
| and noting that the next push triggers a fresh full review; then report | ||
| the run incomplete, skip Steps 4-8, and continue at Step 9 (the cache | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. question (non-blocking): Is the orchestrator prompt the right layer, when the root defect is that review detailsfound by first-principles
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. question (non-blocking): The diagnosis names the green run as a cause; the remedy leaves it green. The description lists "the run stayed green" alongside the missing comment as why the death was invisible, but the change only adds the comment and still reports success. Was exiting non-zero on the no-plan path considered and rejected — noting that the documented reason the gate avoids red-flagging infra failures (a spurious failure issue while the queue posts anyway) does not hold here, since nothing posts and issues are disabled on this repo? review detailsfound by first-principles |
||
| CLI tolerates the missing result and leaves the prior fingerprints | ||
|
khan-actions-bot marked this conversation as resolved.
Outdated
|
||
| standing). Exists because run 32418662895 (Khan/actions#362) was killed | ||
| at the Bash ceiling during claim validation and posted nothing: the run | ||
| stayed green, and the incomplete report's fallback (filing an issue) is | ||
| unavailable on a repo with issues disabled, so the death was invisible | ||
| on the PR. Step 9's cache-memory record is also code-owned | ||
| (`lib/cache-record.ts`, invoked there); never write or edit | ||
| `/tmp/gh-aw/cache-memory/pr-*.json` yourself. | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.