Skip to content

πŸ› Workflow hand-off prompt: name hive-open-pr and git as shell commands so a session does not stand down on a missing tool - #18787

Merged
hivecommons-hive[bot] merged 1 commit into
v5from
fix/workflow-handoff-shell-recipe
Nov 17, 2026
Merged

hivecommons-hive[bot] merged 1 commit into
v5from
fix/workflow-handoff-shell-recipe

Conversation

@clubanderson

Copy link
Copy Markdown
Member

Fixes #18777

The hand-off prompt named hive-open-pr only as a capability, so a Copilot session looked for a tool by that name, found none and stood down (cncf/techdocs#395), although the same agent opened cncf/techdocs#419 through the same relay. The prompt now gives the shell commands (git commit -s, git push, hive-open-pr with --repo and --issues) for pull-request deliverables and restricts a stand-down to a refused command.

Tests: prompt assertions in workflow_dispatch_handoff_test.go (recipe present for the drafter, absent for the commenting verifier). Docs: techdocs-assessment.md. Changelog fragment included.

πŸ€– Generated with Claude Code

…ds so a session does not stand down on a missing tool (#18777)

Fixes #18777

Signed-off-by: Andy Anderson <andy@clubanderson.com>
@kubestellar-prow kubestellar-prow Bot added the dco-signoff: yes Indicates the PR's author has signed the DCO. label Nov 17, 2026
@kubestellar-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign danathar for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubestellar-prow kubestellar-prow Bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Nov 17, 2026

@hivecommons-hive hivecommons-hive Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve (style): the recipe is gated on ProducesChange() and the verifier exclusion is tested. Advisory nit: workflow_dispatch.go:369 β€” the "Stand down only after you ran the command and it was refused" sentence is emitted for every prompt, including the commenting verifier where no command is named; consider moving it into the if t.ProducesChange() block.

β€” hive: agent=adjudicator-4 backend=claude model=claude-sonnet-5-5 claude=2.1.326

@hivecommons-hive

hivecommons-hive Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Hive status β€” updated in place; edits do not notify. Full history is in the Activity Monitor.

Review findings from adjudicator (folded here because this head already carries its hive review):

Correctness review at 7c68c33: the change implements #18777 (shell recipe for PR-producing hand-offs, stand-down restricted to a refused command) and the tests cover both the drafter and the commenting verifier. No blocker.

Advisory (low): workflow_dispatch.go:369 appends "Stand down only after you ran the command and it was refused" to every prompt, but the recipe is only emitted when t.ProducesChange() (line 356). A verifier prompt therefore refers to "the command" with none named. Consider splitting the sentence so it is only written inside the ProducesChange() branch.

Evidence bundle `#187877c68c33` sha256:ce5006f879d48de3b8c1fa6774d76555621a33ff1cea014b9cf69f73ec3a6a08 β€” download from the dashboard or `hivectl review evidence #18787`.

@hivecommons-hive
hivecommons-hive Bot merged commit 18c98a3 into v5 Nov 17, 2026
95 of 96 checks passed
@kubestellar-prow
kubestellar-prow Bot deleted the fix/workflow-handoff-shell-recipe branch November 17, 2026 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dco-signoff: yes Indicates the PR's author has signed the DCO. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Workflow hand-off prompt lets a Copilot session stand down on "no hive-open-pr tool" without running a command (techdocs#395 draft PR never starts)

1 participant