Repository navigation
Feat(handback): Ask Code Monkey to inherit params - #134
ModeSevenIndustrialSolutions merged 2 commits into
Conversation
Pin -f inherit_run_parameters=true in the hand-back dispatch, and expect a refused dispatch to record its HTTP status and the first line of the CLI's error output in the delivery record and the step summary. The cases are marked as expected failures until the workflow change lands. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: lf-releng-code-monkey-bot[bot] <332050256+lf-releng-code-monkey-bot[bot]@users.noreply.github.com>
Each hand-back dispatch now passes -f inherit_run_parameters=true, so a revision round runs on the parameters of the Code Monkey run that published the pull request's latest round instead of the form's defaults. Code Monkey reads them from its own round footer; nothing of this workflow's inputs passes to it. A refused dispatch now records its HTTP status and the first line of the CLI's error output in the delivery record's reason and in the step summary, so a refused input reads as one. The job still fails once and never retries a refusal itself. Depends on lfreleng-actions/github-code-monkey-bot#241, which adds the input to code-monkey-cron.yaml. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: lf-releng-code-monkey-bot[bot] <332050256+lf-releng-code-monkey-bot[bot]@users.noreply.github.com>
There was a problem hiding this comment.
🔵 Needs a closer look
Issue #130’s required upstream PR #241 merge remains unverified after a 404 lookup, leaving a prerequisite that requires maintainer confirmation.
No open issues 🎉
What changed in this PR
Updates the antagonistic review hand-back to request Code Monkey’s original run parameters, rather than use its form defaults, while making dispatch failures easier to diagnose.
Changes:
- Adds
inherit_run_parameters=truewithout changing the other dispatch inputs. - Records HTTP status and a sanitized first error line in delivery records and step summaries, without adding retries.
- Updates contract tests and documentation for inheritance and refused dispatches.
| File | Description |
|---|---|
| tests/test_workflow.py | Pins the inheritance input and tests refused and silent dispatch failures. |
| docs/DESIGN.md | Documents parameter ownership, inheritance, and failure reporting. |
| .github/workflows/code-review.yaml | Requests inherited parameters and captures dispatch error details. |
Review effort: Balanced
There was a problem hiding this comment.
🤖 Antagonistic review by agent: no line-level findings; the summary below is the verdict.
No actionable defects found in the diff; inheritance dispatch and failure recording preserve the existing delivery guards. Does the target workflow's default branch now declare inherit_run_parameters? The offline packet cannot establish that deployment prerequisite.
Antagonistic round 1 of 3.
Automated antagonistic review by lf-releng-antagonistic-review-bot[bot] using model gpt-6-astra; see the run. This is not a human review and never an approval: a maintainer must still review and approve this pull request.
5e80987
into
lfreleng-actions:main
Closes #130
Authored by an AI agent; human review required
claude-opus-5.5via GitHub Copilot CLI5fccccb90cf529c7eec7c77d413918acfc632e01uv run python -B -m unittest tests.test_workflow (expected failures before the change)uv run python -B -m unittest discover -s tests (before the change, 3 expected failures)uv run python -B -m unittest discover -s testsuvx zizmor --persona auditor .github/workflows/prek run --files .github/workflows/code-review.yaml tests/test_workflow.py docs/DESIGN.mdThe
github-code-monkey-botworkflow opened this pull request.Nobody has merged it; a maintainer must review it first.
Review findings on this pull request are answered by a later revision round of this workflow, up to ten rounds per antagonistic review round; after that a maintainer, or the next antagonistic review, takes on any finding that remains, and a maintainer reviews every round before merge.
What changed and why
Hand back for revisionjob's dispatch ofcode-monkey-cron.yamlnow passes-f inherit_run_parameters=true.Everything else in the dispatch is unchanged: one pull request per
call,
dry_run=false,mode=pull-requests,max_pull_requests=0.A revision round then runs on the parameters of the Code Monkey run
that published the pull request's latest round, which Code Monkey
reads from its own round footer (Feat(revise): Inherit run parameters on hand-back github-code-monkey-bot#241),
instead of the form's defaults. None of this workflow's inputs
(
model,reasoning_effort,max_ai_credits) pass to Code Monkey.failure the job still records the pull request as
failedandstill fails once (no retry loop). The
reasonindelivery/handback.jsonand in the step summary is nowthe dispatch failed: HTTP <status>; <first line of the error output>,or
no HTTP status/no error outputwhen there is none. Thefirst line is stripped of control characters and backticks and
capped at 300 characters. The full error output still goes to the
job log.
tests/test_workflow.py). The contract test now pins thenew dispatch arguments. The fake
ghcan print an error, and twonew cases cover a 422 refusal (status and reason in the record and
summary, sent once) and a silent failure. The test that only the
handbackjob holdshandback_tokenis unchanged and passes. Asthe guidance asks, the tests landed first as
expectedFailureintheir own commit, and the second commit removes the markers.
docs/DESIGN.md§19.9 gains a "Whose parameters" itemnext to the hand-back "How" item covering the above.
Checks run
uv run python -B -m unittest discover -s tests: 921 tests OK.uvx zizmor --persona auditor .github/workflows/: no findings.prek run --files .github/workflows/code-review.yaml tests/test_workflow.py docs/DESIGN.md:all hooks pass, including aislop, actionlint/shellcheck, yamllint
and write-good. No hooks skipped.
For reviewers
the log.
gh workflow runprints nothing there when it is notattached to a terminal, so the log loses nothing.
from the CLI and GitHub's API response, not from pull request
content.