v1 skill inventory and first build slice #173

Closed
opened 2026-11-12 18:05:48 +00:00 by Claude · 4 comments
Owner

Part of #166

Question

Which skills, agents, prompt files and instructions make up v1 of each package (one line each: name + responsibility + near-misses), and which thin vertical slice gets built first so the destination test (ticket → approved, merged and verified change in ansible-homelab-mono) is reachable earliest?

Inputs (from #170, revised resolution)

  • Team agents: stage leads planner (spec + tickets), implement-lead, reviewer, operator; implement specialists test-author → implementer → qa (sequential). Stage lead bodies hold the stage flow; skills hold know-how — inventory the skills they load.
  • Every stage ends with a Handoff comment (fixed shape incl. the command for the next stage) — needs a defined template.
  • Implement flow: commits gated by pre-commit; branch push triggers CI; qa judges CI results pre-PR; PR opened after qa passes; review on the PR, cap 3 rounds (blocking only); conflict exit → Status/Ready for Human.
  • Agents never duplicate hooks/CI — infra repos need CI on branch push (Gitea Actions) running tests, Molecule, --check --diff, tofu plan.
  • v1 is step mode only; Claude Code + Copilot CLI are the tested targets. Build smoke tests: Copilot --agent delegation, pinned model honoured, strict-tools-list + agent tool.
  • Operator report shape: applied commit, trigger, result, change summary, verification, output link.
Part of #166 ## Question Which skills, agents, prompt files and instructions make up v1 of each package (one line each: name + responsibility + near-misses), and which thin vertical slice gets built first so the destination test (ticket → approved, merged and verified change in `ansible-homelab-mono`) is reachable earliest? ## Inputs (from #170, revised resolution) - Team agents: stage leads `planner` (spec + tickets), `implement-lead`, `reviewer`, `operator`; implement specialists `test-author` → `implementer` → `qa` (sequential). Stage lead bodies hold the stage flow; skills hold know-how — inventory the skills they load. - Every stage ends with a **Handoff comment** (fixed shape incl. the command for the next stage) — needs a defined template. - Implement flow: commits gated by pre-commit; branch push triggers CI; `qa` judges CI results pre-PR; PR opened after `qa` passes; review on the PR, cap 3 rounds (blocking only); conflict exit → `Status/Ready for Human`. - Agents never duplicate hooks/CI — infra repos need CI on branch push (Gitea Actions) running tests, Molecule, `--check --diff`, `tofu plan`. - v1 is step mode only; Claude Code + Copilot CLI are the tested targets. Build smoke tests: Copilot `--agent` delegation, pinned `model` honoured, `strict-tools-list` + `agent` tool. - Operator report shape: applied commit, trigger, result, change summary, verification, output link.
Claude added this to the Map: Infra and agent-team packages milestone 2026-11-12 18:05:48 +00:00
Claude added the Wayfinder/Grilling label 2026-11-12 18:05:48 +00:00
Claude added a new dependency 2026-11-12 18:05:56 +00:00
Claude added a new dependency 2026-11-12 18:05:57 +00:00
Author
Owner

Inputs from the Package boundaries and names resolution (#171)

  • Packages: delivery, ansible, gitops (hybrid: pins upstream gitops-knowledge and gitops-repo-audit, authors Sealed Secrets and live Flux diagnosis; depends on k8s), k8s. tofu reserved, not created. Inventory each.
  • Agent names: delivery-planner, delivery-implement-lead, delivery-test-author, delivery-implementer, delivery-qa, delivery-reviewer, delivery-operator.
  • Skill prefixes: delivery-, ansible-, k8s-, flux-, sealed-secrets-; never gitops- (upstream's); no bare package or prefix name; no upstream chain name reused. Keep agent names as roles and delivery- skill names as activities so the two don't read alike.
  • CLI over MCP: no MCP servers; diagnosis skills use read-only kubectl / flux CLI.
  • docs/agents/delivery.md: one file per consuming repo, format owned by delivery (repo contents and applicable tool skills, CI check names delivery-qa reads, repo conventions). Decide here: the exact format, and whether a setup skill writes it.
  • Tool-skill discovery: delivery does not depend on the tool packages. Decide how delivery-operator and delivery-qa find the tool skill for a change, and the report they give when none is installed (they must not improvise).
  • delivery dependencies: git, gitea; mattpocock only if an agent calls grilling or domain-modeling — settle that here.
  • Build check: run the repo's full test suite against the hybrid gitops package early; only apm's own behaviour was verified.
## Inputs from the Package boundaries and names resolution (#171) - **Packages:** `delivery`, `ansible`, `gitops` (hybrid: pins upstream `gitops-knowledge` and `gitops-repo-audit`, authors Sealed Secrets and live Flux diagnosis; depends on `k8s`), `k8s`. `tofu` reserved, not created. Inventory each. - **Agent names:** `delivery-planner`, `delivery-implement-lead`, `delivery-test-author`, `delivery-implementer`, `delivery-qa`, `delivery-reviewer`, `delivery-operator`. - **Skill prefixes:** `delivery-`, `ansible-`, `k8s-`, `flux-`, `sealed-secrets-`; never `gitops-` (upstream's); no bare package or prefix name; no upstream chain name reused. Keep agent names as roles and `delivery-` skill names as activities so the two don't read alike. - **CLI over MCP:** no MCP servers; diagnosis skills use read-only `kubectl` / `flux` CLI. - **`docs/agents/delivery.md`:** one file per consuming repo, format owned by `delivery` (repo contents and applicable tool skills, CI check names `delivery-qa` reads, repo conventions). Decide here: the exact format, and whether a setup skill writes it. - **Tool-skill discovery:** `delivery` does not depend on the tool packages. Decide how `delivery-operator` and `delivery-qa` find the tool skill for a change, and the report they give when none is installed (they must not improvise). - **`delivery` dependencies:** `git`, `gitea`; `mattpocock` only if an agent calls `grilling` or `domain-modeling` — settle that here. - **Build check:** run the repo's full test suite against the hybrid `gitops` package early; only apm's own behaviour was verified.
Author
Owner

Inputs from the Safety model resolution (#172, ADR-0032)

  • Every infra skill must state its commands' tier: Read, Propose, Apply-by-merge, Odd job or Never. The inventory should give each skill its tier table.
  • delivery ships one guard hook. It denies the Never tier everywhere, and for odd-job commands it asks on Claude Code and Copilot CLI and denies elsewhere. Put this in the inventory, and decide whether it is in the first build slice.
  • Ansible skills in stage sessions run only what works with a placeholder vault password. A real --check --diff belongs to CI. An odd-job skill (operator, HITL) runs real playbooks.
  • Stage leads must verify that a human set the gate label by checking the issue timeline against the allowlist in docs/agents/delivery.md. That allowlist is now a required field in the delivery.md format.
  • docs/agents/delivery.md must also list the consuming repo's credential-boundary setup: bot user, branch protection, kubeconfig roles, dry-run status check, test-path CI check.
## Inputs from the Safety model resolution (#172, ADR-0032) - Every infra skill must state its commands' **tier**: Read, Propose, Apply-by-merge, Odd job or Never. The inventory should give each skill its tier table. - `delivery` ships one **guard hook**. It denies the Never tier everywhere, and for odd-job commands it asks on Claude Code and Copilot CLI and denies elsewhere. Put this in the inventory, and decide whether it is in the first build slice. - Ansible skills in **stage sessions** run only what works with a placeholder vault password. A real `--check --diff` belongs to CI. An **odd-job** skill (operator, HITL) runs real playbooks. - Stage leads must **verify that a human set the gate label** by checking the issue timeline against the allowlist in `docs/agents/delivery.md`. That allowlist is now a required field in the `delivery.md` format. - `docs/agents/delivery.md` must also list the consuming repo's **credential-boundary setup**: bot user, branch protection, kubeconfig roles, dry-run status check, test-path CI check.
Defame1297 was assigned by Claude 2026-11-22 15:35:43 +00:00
Author
Owner

Resolution

Grilled with the map owner over four rounds. ADR-0031 is amended for the draft-PR flow, and GLOSSARY gains Acceptance check (PR linked below once open). Repo facts were gathered by a subagent from /root/ansible and /root/kamino.

Scope of the destination test

  • It starts from a ticket a human wrote and goes implement → review → verify. The planner isn't on the critical path.

Decisions

  • Tool-skill routing: docs/agents/delivery.md maps path globs to tool-skill names. delivery-qa and delivery-operator load exactly those skills. If a listed skill isn't installed, the agent stops with Status/Ready for Human and a "missing skill <name>" handoff and never improvises.
  • delivery depends on mattpocock for now, because delivery-planner's spec intake calls grilling. Decoupling is a later effort.
  • delivery-handoff is one skill that every stage lead loads. On entry it reads the inbound Handoff comment and checks the gate: the issue timeline shows that a user on the allowlist set the label. On exit it writes a Handoff comment with fixed ## headings: Decisions, Rejected, Evidence, Next pointer, Open questions, Next command. There is no schema validator; that waits for run mode.
  • Guard hook is in slice 1.
  • Runtimes:
    • Claude Code is tested: an agent smoke test is build ticket 1.
    • The owner has no Copilot account, so Copilot CLI is written to its documented behaviour but untested. A research ticket checks --agent delegation, the pinned model, and strict-tools-list needing agent against Copilot's docs and issue tracker. An open bug it finds becomes a documented limitation, not a design change.
  • Draft PR replaces CI on branch push (this changes the revised resolution of Team roster and hand-off model). After the first push, delivery-implement-lead opens a WIP: PR. delivery-qa judges that PR's CI, and removing WIP: starts the review stage. Reason: both reference repos (and most repos) run CI on PRs only, and ansible-homelab-mono has no CI on branch push.
  • Acceptance checks: delivery-test-author always writes them. For code they are failing tests. Where no test applies, such as a chart bump, they are post-merge assertions with a reason ("HelmRelease gotify Ready at chart 1.2.3"). delivery-operator verifies the assertions and delivery-reviewer judges the reasons.

v1 inventory

delivery:

Item Responsibility Near-misses
7 agents delivery-planner, -implement-lead, -test-author, -implementer, -qa, -reviewer, -operator; each body is its own flow (qa's judgement checklist lives in its body) —
delivery-handoff entry gate check and exit Handoff comment gitea-issues
delivery-spec intake through grilling → spec issue wayfinder
delivery-tickets spec → tickets with native blocking gitea-issues
delivery-test-first acceptance criteria → acceptance checks; test framework comes from the tool skill tdd (upstream)
delivery-ci-checks find and read a PR's or a commit's CI runs by the check names in delivery.md gitea-prs
delivery-review reviewer checklist, blocking vs non-blocking findings, 3-round cap code-review (upstream)
delivery-verify post-merge verification and operator report shape tool *-diagnose skills
delivery-repo-doc owns the delivery.md format; drafts a repo's file as a PR agentsmd-author
guard hook denies the Never tier; asks before odd jobs on Claude Code and Copilot CLI, denies them elsewhere —

There are no prompt files and no instructions files.

gitops:

  • pinned upstream gitops-knowledge and gitops-repo-audit
  • flux-diagnose: read-only flux CLI checks; hands pod-level problems to k8s-diagnose
  • sealed-secrets-author: kubeseal with the public cert only

k8s:

  • k8s-diagnose: read-only kubectl troubleshooting

ansible:

  • ansible-author: playbooks, roles and collections, including antsibull changelog fragments
  • ansible-test: Molecule scenarios plus syntax and lint with a placeholder vault password
  • ansible-run: odd-job real runs in HITL sessions, and reading PLAY RECAP and --check --diff output

Every infra skill carries a tier table.

docs/agents/delivery.md format

Six fixed sections:

  1. Contents → skills (path globs)
  2. CI checks (names, and which one is the dry run)
  3. Test paths
  4. Human allowlist
  5. Credential boundary (bot user, kubeconfig location, branch protection status)
  6. Conventions

Sections 1–4 are read mechanically, so they use fixed headings with simple lists.

Slices

  1. Flux (the destination test):

    • delivery without the planner, plus the guard hook
    • gitops with the pinned skills and flux-diagnose
    • k8s-diagnose

    Flux changes already apply on merge, there's no vault workaround, and verification is read-only CLI.

  2. ansible

  3. sealed-secrets-author

  4. delivery-planner, delivery-spec and delivery-tickets, then the mattpocock trim PR.

The owner ordered the planner last.

Slice 1 becomes ten build tickets on the map. Each authored item gets a factory-audit closeout inside its own ticket.

Facts surfaced (for later tickets)

  • ansible-homelab-mono CI:
    • lint_validation runs pre-commit on PRs; it is the required check.
    • molecule runs on PRs, and only for roles/pihole.
    • provision.yml applies on a push to main. Its --check --diff is a preview that runs after merge and doesn't block.
    • There's no Flux CI; the Flux checks are pre-commit hooks.
  • Not on PATH: ansible-lint, molecule, tofu, copilot. The first two may be in the repos' .venv.
  • kamino has no root AGENTS.md (it has CLAUDE.md and nested AGENTS.md files).
## Resolution Grilled with the map owner over four rounds. ADR-0031 is amended for the draft-PR flow, and GLOSSARY gains **Acceptance check** (PR linked below once open). Repo facts were gathered by a subagent from `/root/ansible` and `/root/kamino`. **Scope of the destination test** - It starts from a ticket a human wrote and goes implement → review → verify. The planner isn't on the critical path. **Decisions** - **Tool-skill routing:** `docs/agents/delivery.md` maps path globs to tool-skill names. `delivery-qa` and `delivery-operator` load exactly those skills. If a listed skill isn't installed, the agent stops with `Status/Ready for Human` and a "missing skill `<name>`" handoff and never improvises. - **`delivery` depends on `mattpocock`** for now, because `delivery-planner`'s spec intake calls `grilling`. Decoupling is a later effort. - **`delivery-handoff`** is one skill that every stage lead loads. On entry it reads the inbound Handoff comment and checks the gate: the issue timeline shows that a user on the allowlist set the label. On exit it writes a Handoff comment with fixed `##` headings: Decisions, Rejected, Evidence, Next pointer, Open questions, Next command. There is no schema validator; that waits for run mode. - **Guard hook** is in slice 1. - **Runtimes:** - Claude Code is **tested**: an agent smoke test is build ticket 1. - The owner has no Copilot account, so Copilot CLI is **written to its documented behaviour but untested**. A research ticket checks `--agent` delegation, the pinned `model`, and `strict-tools-list` needing `agent` against Copilot's docs and issue tracker. An open bug it finds becomes a documented limitation, not a design change. - **Draft PR replaces CI on branch push** (this changes the revised resolution of **Team roster and hand-off model**). After the first push, `delivery-implement-lead` opens a `WIP:` PR. `delivery-qa` judges that PR's CI, and removing `WIP:` starts the review stage. Reason: both reference repos (and most repos) run CI on PRs only, and `ansible-homelab-mono` has no CI on branch push. - **Acceptance checks:** `delivery-test-author` always writes them. For code they are failing tests. Where no test applies, such as a chart bump, they are post-merge assertions with a reason ("HelmRelease `gotify` Ready at chart 1.2.3"). `delivery-operator` verifies the assertions and `delivery-reviewer` judges the reasons. **v1 inventory** `delivery`: | Item | Responsibility | Near-misses | |---|---|---| | 7 agents | `delivery-planner`, `-implement-lead`, `-test-author`, `-implementer`, `-qa`, `-reviewer`, `-operator`; each body is its own flow (qa's judgement checklist lives in its body) | — | | `delivery-handoff` | entry gate check and exit Handoff comment | `gitea-issues` | | `delivery-spec` | intake through `grilling` → spec issue | `wayfinder` | | `delivery-tickets` | spec → tickets with native blocking | `gitea-issues` | | `delivery-test-first` | acceptance criteria → acceptance checks; test framework comes from the tool skill | `tdd` (upstream) | | `delivery-ci-checks` | find and read a PR's or a commit's CI runs by the check names in `delivery.md` | `gitea-prs` | | `delivery-review` | reviewer checklist, blocking vs non-blocking findings, 3-round cap | `code-review` (upstream) | | `delivery-verify` | post-merge verification and operator report shape | tool `*-diagnose` skills | | `delivery-repo-doc` | owns the `delivery.md` format; drafts a repo's file as a PR | `agentsmd-author` | | guard hook | denies the Never tier; asks before odd jobs on Claude Code and Copilot CLI, denies them elsewhere | — | There are no prompt files and no instructions files. `gitops`: - pinned upstream `gitops-knowledge` and `gitops-repo-audit` - `flux-diagnose`: read-only `flux` CLI checks; hands pod-level problems to `k8s-diagnose` - `sealed-secrets-author`: `kubeseal` with the public cert only `k8s`: - `k8s-diagnose`: read-only `kubectl` troubleshooting `ansible`: - `ansible-author`: playbooks, roles and collections, including antsibull changelog fragments - `ansible-test`: Molecule scenarios plus syntax and lint with a placeholder vault password - `ansible-run`: odd-job real runs in HITL sessions, and reading PLAY RECAP and `--check --diff` output Every infra skill carries a tier table. **`docs/agents/delivery.md` format** Six fixed sections: 1. Contents → skills (path globs) 2. CI checks (names, and which one is the dry run) 3. Test paths 4. Human allowlist 5. Credential boundary (bot user, kubeconfig location, branch protection status) 6. Conventions Sections 1–4 are read mechanically, so they use fixed headings with simple lists. **Slices** 1. **Flux** (the destination test): - `delivery` without the planner, plus the guard hook - `gitops` with the pinned skills and `flux-diagnose` - `k8s-diagnose` Flux changes already apply on merge, there's no vault workaround, and verification is read-only CLI. 2. `ansible` 3. `sealed-secrets-author` 4. `delivery-planner`, `delivery-spec` and `delivery-tickets`, then the `mattpocock` trim PR. The owner ordered the planner last. Slice 1 becomes ten build tickets on the map. Each authored item gets a `factory-audit` closeout inside its own ticket. **Facts surfaced** (for later tickets) - **`ansible-homelab-mono` CI:** - `lint_validation` runs pre-commit on PRs; it is the required check. - `molecule` runs on PRs, and only for `roles/pihole`. - `provision.yml` applies on a push to `main`. Its `--check --diff` is a preview that runs after merge and doesn't block. - There's no Flux CI; the Flux checks are pre-commit hooks. - **Not on `PATH`:** `ansible-lint`, `molecule`, `tofu`, `copilot`. The first two may be in the repos' `.venv`. - `kamino` has no root AGENTS.md (it has CLAUDE.md and nested AGENTS.md files).
Author
Owner

ADR-0031 amendment and the GLOSSARY Acceptance check term: PR #196 (docs/adr-0031-draft-pr-qa). All pre-commit and pre-push hooks passed.

ADR-0031 amendment and the GLOSSARY **Acceptance check** term: PR #196 (`docs/adr-0031-draft-pr-qa`). All pre-commit and pre-push hooks passed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: Mortis/Holocron#173