Repository navigation
✨ Workflow models resolve agent dispatch targets and a hive-side profile mapping - #18567
Conversation
…e mapping A compiled workflow model now carries its agent grants and, per state, the profile the hive hands items to (Profile.Dispatch): an explicit spec.agents[].dispatch block, or by convention the grant's first state, on entry for a profile that produces a PR or push and on the exit-gate reply for a reviewing profile. The target names the deliverable PR state with the labels and draft flag its rule requires. workflow.dispatch maps a profile to a hive agent (default: an agent named after the profile, else a writer, docs or feature agent). The curated cncf-techdocs-assessment model resolves Accepted -> techdocs-drafter and /verify in Drafting -> techdocs-verifier with no model change. Part of the drafter hand-off for cncf/techdocs#395. Signed-off-by: Andy Anderson <andy@clubanderson.com>
|
@nate-double-u FYI, part of the drafter hand-off for cncf/techdocs#395: this PR teaches the compiled workflow model which agent profile takes over in which state (Accepted -> drafter, /verify -> verifier) and adds the workflow.dispatch config that maps a profile to a hive agent. |
Open PR overlap checkBase branch: Conflicts are checked with every PR merged onto the current tip of
|
Mutation testinggremlins found 5 surviving mutant(s) in changed files: the code ran under tests, but changing it did not fail any test.
5 mutant(s) in changed files are not reached by any test (NOT COVERED). A maintainer may apply the
Verdict: |
|
Hive status — updated in place; edits do not notify. Full history is in the Activity Monitor. @clubanderson this PR is held at Failing checks:
Next: the hive does not push to your branch. Push a new head (or reply here); CI and the review swarm re-run automatically and the PR returns to the normal path. |
Signed-off-by: Andy Anderson <andy@clubanderson.com>
Signed-off-by: Andy Anderson <andy@clubanderson.com>
|
[APPROVALNOTIFIER] This PR is APPROVED Approval requirements bypassed by manually added approval. This pull-request has been approved by: The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
What
First of three PRs for automatic agent dispatch from workflow-model states (drafter hand-off for cncf/techdocs#395). This PR is data and config only; nothing dispatches yet (PR B wires the scheduler).
workflowmodel.Profilenow carriesagents(the grants) anddispatch(state id ->DispatchTarget): profile, state kinds, trigger reply, the state's instructions (waiting reasons, column hint) and, for a PR-producing profile, the deliverable (PR state, draft flag, required labels from that state's first rule).spec.agents[].dispatch {states, reply, instructions}, or by convention the grant's first state, on entry for a profile that produces a PR/push, on the exit-gate reply for a reviewing profile.duplicate-dispatch/unknown-staterefuse;dispatch-reply-undeclaredwarns.hive-defaultnever dispatches.workflow.dispatchconfig:enabled(default true),profiles.<profile>.{agent, prompt_template, disabled}.Config.WorkflowDispatchAgentresolves configured agent, else an agent named after the profile, else the first enabled writer/docs/feature agent; a configured typo never falls back.cncf-techdocs-assessment@curated-2026.11.2resolves, unchanged:accepted->techdocs-drafter(on entry, deliverable: draft PR labeledDocs analysis),drafting->techdocs-verifier(on/verify). Pinned byTestTechDocsDispatch.Docs:
docs/design/workflow-models.md"Agent dispatch";hive.yaml.example; settings parity allowlist (yaml-only knobs).Tests
pkg/workflowmodel/dispatch_test.go,pkg/config/workflow_dispatch_test.go,TestTechDocsDispatchin the curated tests. CI is the verdict.🤖 Generated with Claude Code