Files
Holocron/plugins/delivery/.apm/skills/delivery-repo-doc/references/gathering.md
T
Defame1297andClaude Opus 5.5 0258cff316 feat(delivery): add the review stage and the review hand-back loop
delivery-reviewer (opus; no Bash, Edit, Write or NotebookEdit) is the
review-stage lead. It judges the PR through the new delivery-review
skill and posts one COMMENT review per round. Gitea refuses
REQUEST_CHANGES from a PR's own poster, and the reviewer runs as the bot
that opened the PR. The review opens with `Delivery review: round <n> —
blocking|clear`, and each blocking finding is tagged with the role that
must fix it: [test-author] (with its dispute key), [implementer] or
[human].

Routing: a [human] finding, or a 3rd blocking round, stops with Ready
for Human. Other blocking rounds post the Handoff and put `WIP:` back,
handing the PR to delivery-implement-lead. A clear round hands on to
delivery-operator. A relaunch finishes a crashed routing, using whether
a later Handoff links the review.

delivery-review checks the change against the acceptance criteria and
re-judges every test-path change itself, because a dispute round moves
the CI freeze boundary. It also judges post-merge assertion reasons,
security and the dry run. It reads the delivery doc at the PR's base
ref, and a PR that changes the test-path rules is a [human] finding.

Hand-back: delivery-handoff lets the implement stage take a PR, with
the inbound Handoff required and the gate checked on the issue it
closes. The implement lead first sends [test-author] findings through
delivery-test-first's dispute flow, which now takes review findings,
then gives the implementer the rest. Dispute verdicts are one keyed
`- Dispute verdict:` line copied into every Handoff comment, so later
sessions never re-judge an item or re-dispute a settled test.

delivery-repo-doc, delivery-test-author, delivery-implementer and
delivery-qa are aligned with these contracts. Package bumped to 0.5.0,
with the marketplace allow key and manifest.

Refs: #193

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
2026-11-23 22:44:18 +00:00

3.1 KiB

Gathering the facts

Every value in docs/agents/delivery.md has exactly one source. Facts the repo holds come from the repo; facts only a human holds come from the human. A value with no source stays out.

Repo-sourced

Contents → skills

  1. List the repo's top-level layout and the tool each area belongs to: Flux/Kustomize manifests (kustomization.yaml, HelmRelease), Kubernetes manifests, Ansible (playbooks/, roles/, inventory/, ansible.cfg), OpenTofu (*.tf, .terraform.lock.hcl).
  2. The installed skills are the session's available-skills listing. Map a glob only to tool skills in that listing whose description covers the area's tool.
  3. In a mixed repo (for example Ansible at the top level, Flux under clusters/), map each area with its own glob, and leave out any area with no installed tool skill.

CI checks

  1. Read every workflow under .gitea/workflows/ or .github/workflows/ that runs on pull_request. A path-filtered pull_request workflow still counts: Gitea reports it as "skipped" when its paths don't match. List it, usually with role test. Workflows that run only on push, schedule or dispatch are not PR checks; leave them out.
  2. Derive each candidate name:
    • Gitea Actions: <workflow name> / <job name> (<event>). The workflow name is the file's top-level name: (else the file name); the job name is the job's name: (else the job id).
    • GitHub Actions: the job's name: (else the job id); matrix jobs append their values in parentheses.
  3. Confirm each candidate against the statuses the forge reports on the head commit of a recent PR where that check reported at least once. Gitea: gitea-prs → pull_request_read method get_status, or commit_read status on the head SHA; GitHub: gh pr checks <number>. The forge's string wins over the derived one. With no PR to read, keep the derived name and say so in the PR body.
  4. Assign roles. test-path is the check that fails when a commit after the Delivery-Stage: test-author commit touches the test globs. dry-run comes from the human.

Test paths

  1. Read the test-path check's workflow and find the file it reads its globs from (for example .gitea/test-paths). If one exists, the section is the globs file: pointer.
  2. Otherwise list the globs where the repo's tests live (Molecule scenarios, tests/, policy tests). Confirm them with the human in the Step 3 question.

Conventions

Point at the root AGENTS.md, docs/adr/, and any contributing or runbook docs that exist. A list of pointers the human or caller supplies replaces these defaults.

Human-sourced

SKILL.md Step 3 asks for these:

  • Human allowlist: forge usernames.
  • Bot user the agents act as.
  • Read-only kubeconfig path, or "no cluster".
  • Branch-protection status: in place, or pending with the tracking link.
  • Which CI check is the dry run. A repo with PR checks but no dry-run check is not ready for the delivery team: say so in the PR body as open and stop.
  • Test-path globs, when no globs file exists (confirm the derived list).
  • Accepted risks: the ADR or issue links, or "none".