Verify stage: operator, delivery-verify and diagnosis skills #194

Open
opened 2026-11-22 16:09:16 +00:00 by Claude · 3 comments
Owner

Part of #166

Question

Author the verify stage.

  • delivery-operator (stage lead):
    • runs after merge and loads the tool skills that delivery.md routes to
    • stops with "missing skill <name>" when one isn't installed
    • opens a revert PR (Status/Ready for Human) and never reverts on its own
  • delivery-verify:
    • checks the post-merge assertions
    • reads the post-merge CI run
    • writes the operator report: applied commit, trigger, result, change summary, verification, output link
  • flux-diagnose (in gitops): read-only flux CLI checks of reconcile status; hands pod-level problems to k8s-diagnose.
  • k8s-diagnose (in k8s): read-only kubectl troubleshooting under the view kubeconfig.

Each skill states its tier table, and each item gets a factory-audit closeout.

Part of #166 ## Question Author the verify stage. - **`delivery-operator`** (stage lead): - runs after merge and loads the tool skills that `delivery.md` routes to - stops with "missing skill `<name>`" when one isn't installed - opens a revert PR (`Status/Ready for Human`) and never reverts on its own - **`delivery-verify`:** - checks the post-merge assertions - reads the post-merge CI run - writes the operator report: applied commit, trigger, result, change summary, verification, output link - **`flux-diagnose`** (in `gitops`): read-only `flux` CLI checks of reconcile status; hands pod-level problems to `k8s-diagnose`. - **`k8s-diagnose`** (in `k8s`): read-only `kubectl` troubleshooting under the `view` kubeconfig. Each skill states its tier table, and each item gets a `factory-audit` closeout.
Claude added this to the Map: Infra and agent-team packages milestone 2026-11-22 16:09:16 +00:00
Claude added the Wayfinder/Task label 2026-11-22 16:09:16 +00:00
Claude added a new dependency 2026-11-22 16:09:36 +00:00
Claude added a new dependency 2026-11-22 16:09:38 +00:00
Author
Owner

Inputs from Implement stage: lead, specialists, test-first and CI checks

  • Check names after merge don't match. delivery-ci-checks (PR 215) matches the status names in delivery.md exactly, and those are PR-event names (… (pull_request)). Runs on main after a merge report … (push) names, so a post-merge read returns missing. Decide before the operator uses the skill: either the format gains push-event entries, or the operator passes its own list of names.
  • Post-merge assertions are in the PR body's ## Acceptance checks block as post-merge: <statement> — reason: <reason>. The operator verifies each statement.
  • The issue closes on merge. The lead's PR body says Closes #<issue>, so Gitea closes the ticket before verify runs. The operator's Handoff and any revert PR live on the PR.
## Inputs from [Implement stage: lead, specialists, test-first and CI checks](https://git.rkdr.net/Mortis/Holocron/issues/192) - **Check names after merge don't match.** `delivery-ci-checks` (PR 215) matches the status names in `delivery.md` exactly, and those are PR-event names (`… (pull_request)`). Runs on `main` after a merge report `… (push)` names, so a post-merge read returns `missing`. Decide before the operator uses the skill: either the format gains push-event entries, or the operator passes its own list of names. - **Post-merge assertions** are in the PR body's `## Acceptance checks` block as `post-merge: <statement> — reason: <reason>`. The operator verifies each statement. - **The issue closes on merge.** The lead's PR body says `Closes #<issue>`, so Gitea closes the ticket before verify runs. The operator's Handoff and any revert PR live on the PR.
Author
Owner

Inputs from Review stage: delivery-reviewer and delivery-review (PR 216, delivery 0.5.0)

  • Reviews are COMMENT-only. Gitea refuses REQUEST_CHANGES/APPROVED from the PR's poster and the bot opens the PRs, so a delivery review never shows as an approval. Its verdict is the first line: Delivery review: round <n> — blocking|clear. The operator's approval gate must look for a non-stale approval from an allowlisted human, alongside these bot COMMENT reviews, never count them.
  • Inbound Handoff. A clear round posts a Handoff comment on the PR whose Next command launches delivery-operator; Evidence links the review's html_url and the CI runs. The operator's Required inbound check reads that comment.
  • Base-ref reads. delivery-review reads docs/agents/delivery.md and the test-path globs at the PR's base ref, so a PR can't loosen the rules it is judged by. delivery-ci-checks and delivery-handoff still read it from the checkout; after merge the checkout is main, so verify is unaffected, but keep any new read in delivery-verify on the merged ref, not a branch.
  • Check names. delivery.md lists the (pull_request) check names; the post-merge run on main reports under different event names, so delivery-verify needs its own lookup (or a delivery.md addition via delivery-repo-doc) rather than reusing delivery-ci-checks as is.
  • Post-merge assertions come from the PR body's ## Acceptance checks block, lines of the form "<criterion>" → post-merge: <statement> — reason: <reason> (owned by delivery-test-first's references/output-template.md). Review blocks unjustified ones, so every line that survives to verify is a live-environment check.
## Inputs from [Review stage: delivery-reviewer and delivery-review](https://git.rkdr.net/Mortis/Holocron/issues/193) (PR 216, `delivery` 0.5.0) - **Reviews are COMMENT-only.** Gitea refuses `REQUEST_CHANGES`/`APPROVED` from the PR's poster and the bot opens the PRs, so a delivery review never shows as an approval. Its verdict is the first line: `Delivery review: round <n> — blocking|clear`. The operator's approval gate must look for a non-stale approval from an allowlisted **human**, alongside these bot COMMENT reviews, never count them. - **Inbound Handoff.** A clear round posts a Handoff comment on the PR whose Next command launches `delivery-operator`; Evidence links the review's `html_url` and the CI runs. The operator's Required inbound check reads that comment. - **Base-ref reads.** `delivery-review` reads `docs/agents/delivery.md` and the test-path globs at the PR's base ref, so a PR can't loosen the rules it is judged by. `delivery-ci-checks` and `delivery-handoff` still read it from the checkout; after merge the checkout is `main`, so verify is unaffected, but keep any new read in `delivery-verify` on the merged ref, not a branch. - **Check names.** `delivery.md` lists the `(pull_request)` check names; the post-merge run on `main` reports under different event names, so `delivery-verify` needs its own lookup (or a `delivery.md` addition via `delivery-repo-doc`) rather than reusing `delivery-ci-checks` as is. - **Post-merge assertions** come from the PR body's `## Acceptance checks` block, lines of the form `"<criterion>" → post-merge: <statement> — reason: <reason>` (owned by `delivery-test-first`'s `references/output-template.md`). Review blocks unjustified ones, so every line that survives to verify is a live-environment check.
Defame1297 was assigned by Claude 2026-11-24 11:03:10 +00:00
Author
Owner

Build decisions (owner, before build)

  • Post-merge checks: new 7th parsed section in delivery.md, ## Post-merge checks.
    • Items: - `<glob>`: `<exact status name>`, `<exact status name>` or - `<glob>`: none (pulled, not CI-run: Flux). One directory per line, no brace globs.
    • The checks to read are the union over every glob a changed path matches; a path matching no glob has nothing to check after merge (same rule as section 1).
    • delivery-ci-checks takes an optional caller-supplied check list and wait cap, so "match names verbatim" still holds.
    • Rejected: push names in section 2 under a post-merge role (no path scoping: a Flux-only merge reads Provision as missing); the operator inferring names (guessing).
  • Flux apply: poll only, read-only (flux get/events/trace) until the Kustomization's lastAppliedRevision reaches the merge commit. Never flux reconcile (odd job in the guard; view RBAC can't anyway). Cap about 15 min → Stop "not yet reconciled at <sha>" with a relaunch command.
  • Post-merge CI wait: about 45 min (Provision's last full run took about 15 min). Cap → Stop "post-merge CI still pending at <sha>", and the relaunch resumes polling. PR reads keep 15 min.
  • Revert PR only when a failure is tied to this change. Plain git revert -m 1 of the merge commit on a bot branch, Status/Ready for Human, no Handoff into the delivery chain; the dry-run check still runs. An unattributable failure → Stop, no revert. (Test Paths Frozen passes a revert PR: no test-author trailer commit means nothing to check.)
  • Unverifiable assertion (needs more than Read tier) → unverifiable: <why>, verdict stopped, Stop with Status/Ready for Human, no revert.
  • Operator report: a separate comment on the PR, posted before the Handoff. First line Delivery verify: pass|fail|stopped, then fixed fields: Applied commit, Trigger, Result, Change summary, Verification (one line per assertion and per check: pass|fail|unverifiable), Output links. Format in delivery-verify's references/report.md. The Handoff's Evidence links it; Next command none on success. The closed issue is not reopened.
  • delivery-operator: opus, disallowedTools: Edit, Write, NotebookEdit, Bash kept (read-only CLIs, git revert/push of the revert branch), no tools: list (ADR-0016), no subagents.
  • flux-diagnose / k8s-diagnose: generic and Read tier only. They use the session's KUBECONFIG (the operator exports the one in delivery.md), and report "no cluster access" instead of looking for credentials.
  • Ship: one Holocron PR (delivery 0.6.0, gitops 0.2.0, k8s 0.2.0, .gitkeep dropped) plus one ansible-homelab-mono PR adding section 7. factory-audit closeout per item.
## Build decisions (owner, before build) - **Post-merge checks: new 7th parsed section in `delivery.md`, `## Post-merge checks`.** - Items: `` - `<glob>`: `<exact status name>`, `<exact status name>` `` or `` - `<glob>`: none `` (pulled, not CI-run: Flux). One directory per line, no brace globs. - The checks to read are the union over every glob a changed path matches; a path matching no glob has nothing to check after merge (same rule as section 1). - `delivery-ci-checks` takes an optional caller-supplied check list and wait cap, so "match names verbatim" still holds. - Rejected: push names in section 2 under a `post-merge` role (no path scoping: a Flux-only merge reads Provision as `missing`); the operator inferring names (guessing). - **Flux apply: poll only, read-only** (`flux get`/`events`/`trace`) until the Kustomization's `lastAppliedRevision` reaches the merge commit. Never `flux reconcile` (odd job in the guard; `view` RBAC can't anyway). Cap about 15 min → Stop "not yet reconciled at `<sha>`" with a relaunch command. - **Post-merge CI wait: about 45 min** (Provision's last full run took about 15 min). Cap → Stop "post-merge CI still pending at `<sha>`", and the relaunch resumes polling. PR reads keep 15 min. - **Revert PR only when a failure is tied to this change.** Plain `git revert -m 1` of the merge commit on a bot branch, `Status/Ready for Human`, no Handoff into the delivery chain; the dry-run check still runs. An unattributable failure → Stop, no revert. (`Test Paths Frozen` passes a revert PR: no test-author trailer commit means nothing to check.) - **Unverifiable assertion** (needs more than Read tier) → `unverifiable: <why>`, verdict `stopped`, Stop with `Status/Ready for Human`, no revert. - **Operator report: a separate comment on the PR, posted before the Handoff.** First line `Delivery verify: pass|fail|stopped`, then fixed fields: Applied commit, Trigger, Result, Change summary, Verification (one line per assertion and per check: `pass|fail|unverifiable`), Output links. Format in `delivery-verify`'s `references/report.md`. The Handoff's Evidence links it; Next command `none` on success. The closed issue is not reopened. - **`delivery-operator`:** `opus`, `disallowedTools: Edit, Write, NotebookEdit`, Bash kept (read-only CLIs, `git revert`/push of the revert branch), no `tools:` list (ADR-0016), no subagents. - **`flux-diagnose` / `k8s-diagnose`:** generic and Read tier only. They use the session's `KUBECONFIG` (the operator exports the one in `delivery.md`), and report "no cluster access" instead of looking for credentials. - **Ship:** one Holocron PR (`delivery` 0.6.0, `gitops` 0.2.0, `k8s` 0.2.0, `.gitkeep` dropped) plus one `ansible-homelab-mono` PR adding section 7. `factory-audit` closeout per item.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: Mortis/Holocron#194