Verify stage: operator, delivery-verify and diagnosis skills #194
Notifications
Due Date
No due date set.
Reference: Mortis/Holocron#194
Reference in new issue
Block a user
Part of #166
Question
Author the verify stage.
delivery-operator(stage lead):delivery.mdroutes to<name>" when one isn't installedStatus/Ready for Human) and never reverts on its owndelivery-verify:flux-diagnose(ingitops): read-onlyfluxCLI checks of reconcile status; hands pod-level problems tok8s-diagnose.k8s-diagnose(ink8s): read-onlykubectltroubleshooting under theviewkubeconfig.Each skill states its tier table, and each item gets a
factory-auditcloseout.Inputs from Implement stage: lead, specialists, test-first and CI checks
delivery-ci-checks(PR 215) matches the status names indelivery.mdexactly, and those are PR-event names (… (pull_request)). Runs onmainafter a merge report… (push)names, so a post-merge read returnsmissing. Decide before the operator uses the skill: either the format gains push-event entries, or the operator passes its own list of names.## Acceptance checksblock aspost-merge: <statement> — reason: <reason>. The operator verifies each statement.Closes #<issue>, so Gitea closes the ticket before verify runs. The operator's Handoff and any revert PR live on the PR.Inputs from Review stage: delivery-reviewer and delivery-review (PR 216,
delivery0.5.0)REQUEST_CHANGES/APPROVEDfrom 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.delivery-operator; Evidence links the review'shtml_urland the CI runs. The operator's Required inbound check reads that comment.delivery-reviewreadsdocs/agents/delivery.mdand the test-path globs at the PR's base ref, so a PR can't loosen the rules it is judged by.delivery-ci-checksanddelivery-handoffstill read it from the checkout; after merge the checkout ismain, so verify is unaffected, but keep any new read indelivery-verifyon the merged ref, not a branch.delivery.mdlists the(pull_request)check names; the post-merge run onmainreports under different event names, sodelivery-verifyneeds its own lookup (or adelivery.mdaddition viadelivery-repo-doc) rather than reusingdelivery-ci-checksas is.## Acceptance checksblock, lines of the form"<criterion>" → post-merge: <statement> — reason: <reason>(owned bydelivery-test-first'sreferences/output-template.md). Review blocks unjustified ones, so every line that survives to verify is a live-environment check.Build decisions (owner, before build)
delivery.md,## Post-merge checks.- `<glob>`: `<exact status name>`, `<exact status name>`or- `<glob>`: none(pulled, not CI-run: Flux). One directory per line, no brace globs.delivery-ci-checkstakes an optional caller-supplied check list and wait cap, so "match names verbatim" still holds.post-mergerole (no path scoping: a Flux-only merge reads Provision asmissing); the operator inferring names (guessing).flux get/events/trace) until the Kustomization'slastAppliedRevisionreaches the merge commit. Neverflux reconcile(odd job in the guard;viewRBAC can't anyway). Cap about 15 min → Stop "not yet reconciled at<sha>" with a relaunch command.<sha>", and the relaunch resumes polling. PR reads keep 15 min.git revert -m 1of 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 Frozenpasses a revert PR: no test-author trailer commit means nothing to check.)unverifiable: <why>, verdictstopped, Stop withStatus/Ready for Human, no revert.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 indelivery-verify'sreferences/report.md. The Handoff's Evidence links it; Next commandnoneon 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), notools:list (ADR-0016), no subagents.flux-diagnose/k8s-diagnose: generic and Read tier only. They use the session'sKUBECONFIG(the operator exports the one indelivery.md), and report "no cluster access" instead of looking for credentials.delivery0.6.0,gitops0.2.0,k8s0.2.0,.gitkeepdropped) plus oneansible-homelab-monoPR adding section 7.factory-auditcloseout per item.