Files
Holocron/plugins/delivery/.apm/skills/delivery-repo-doc/references/format.md
T
Defame1297andClaude Opus 5.5 3f24daa58a fix(delivery): tighten delivery-repo-doc from first dogfood run
Why: the first drafting run against a real Ansible repo surfaced gaps the
skill left to guesswork: pointer placement in a sectioned AGENTS.md,
path-filtered and push-only workflows, link syntax, and caller-supplied
facts.

Implementation Notes: format.md pins the AGENTS.md placement rules
without changing the exact line, notes that "skipped" checks pass, uses
markdown links throughout section 5, and states the hard-stop consequence
of an uninstalled skill. gathering.md covers mixed repos, which workflows
count, the exact status-read tool calls and caller-supplied convention
pointers. SKILL.md adds the fast-forward and dirty-tree rule, caller
overrides, hook-failure handling and the remote-casing gotcha.

Impact: delivery-repo-doc 0.1.0 -> 0.1.1.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-11-22 22:07:31 +00:00

5.3 KiB
Raw Blame History

The docs/agents/delivery.md format

This file is the single source of truth for the format. delivery-handoff, delivery-ci-checks, delivery-qa and delivery-operator cite it as "delivery-repo-doc's references/format.md" and do not restate it. A format change is an edit here, plus the consumers' parsers.

File rules

  • Path: docs/agents/delivery.md at the consuming repo's root. One file per repo.
  • First line: # Delivery.
  • Exactly six ## sections, with these headings verbatim and in this order:
    1. ## Contents → skills
    2. ## CI checks
    3. ## Test paths
    4. ## Human allowlist
    5. ## Credential boundary
    6. ## Conventions
  • No other ## headings, and no ### headings inside sections 1–4.
  • Sections 1–4 are parsed: they contain only list items in the item syntax below, one per line, starting - at column 0. Blank lines are allowed; prose, sub-bullets, tables and comments are not. Every backticked value is taken verbatim, with no escaping.
  • An empty parsed section holds the single item - none. Section 4 is never empty.
  • Sections 5–6 are read by agents, not parsers; their item labels below are a convention.

Item syntax

1. Contents → skills

- `<glob>`: `<skill>`, `<skill>`
  • <glob> is a repo-relative path glob (** crosses directories).
  • One or more installed skill names, each backticked, comma-separated.
  • A consumer loads exactly the listed skills for a changed path matching the glob, the union across every matching line. A listed skill that is not installed is a hard stop for the consumer (Status/Ready for Human, handoff "missing skill <name>"), so a glob with no installed tool skill is left out entirely.

2. CI checks

- `<status check name>`: <role>
  • <status check name> is the exact string the forge shows on a PR's head commit.
  • <role> is exactly one of: dry-run, test-path, test, lint, build, other.
  • dry-run appears on exactly one item. test-path appears on at most one item, and on exactly one when the repo has a test-path check.
  • Whatever its role, a consumer treats a check reported as "skipped" (a path-filtered workflow whose paths did not match) as passing.

3. Test paths

Either a pointer, as the only item, when the repo's test-path check reads its own globs file:

- globs file: `<repo-relative path>`

or one item per glob:

- `<glob>`

These are the paths the test author owns; after the commit with trailer Delivery-Stage: test-author, the implementer may not touch them.

4. Human allowlist

- `<forge username>`

Humans only. Stage leads accept a gate label or an approval only when the issue or PR timeline shows a user on this list set it.

5. Credential boundary

- Bot user: `<forge username>`
- Kubeconfig: `<absolute path>` | none
- Branch protection: in place | pending ([<title>](<url>))
- Accepted risks: [<title>](<url>), … | none

Every link in this section is a markdown link. Delivery sessions export the kubeconfig path as KUBECONFIG. The value is a path only. Accepted risks are linked, never restated.

6. Conventions

Short prose or bullets pointing at the repo's own docs (AGENTS.md, ADRs, contributing guides) for anything else a delivery agent needs. Pointers only; no restating.

AGENTS.md pointer line

The consuming repo's root AGENTS.md carries this line verbatim, exactly once:

- Delivery team facts (checks, test paths, human allowlist, credential boundary): `docs/agents/delivery.md`

Placement only decides where the line sits; the line itself never changes:

  • The heading that lists agent docs holds a flat bullet list: add the line to that list.
  • That heading uses ### subsections with prose: add a ### Delivery subsection under it, holding only the line.
  • No such heading: add the line at the end of the file.

Full skeleton

# Delivery

## Contents → skills

- `clusters/**`: `flux-diagnose`, `k8s-diagnose`
- `roles/**`: `ansible-lint`

## CI checks

- `ci / render-diff (pull_request)`: dry-run
- `ci / test-paths (pull_request)`: test-path
- `ci / lint (pull_request)`: lint

## Test paths

- globs file: `.gitea/test-paths`

## Human allowlist

- `alice`

## Credential boundary

- Bot user: `delivery-bot`
- Kubeconfig: `/etc/delivery/kubeconfig-readonly`
- Branch protection: pending ([Branch protection setup](https://example.org/issues/12))
- Accepted risks: [ADR-0032](https://example.org/adr/0032)

## Conventions

Repo conventions live in `AGENTS.md`; decisions in `docs/adr/`.

The values in the skeleton are illustrative only; every real value comes from the repo or the human.

Validation checklist

  • First line # Delivery; six ## headings, verbatim, in order.
  • Sections 1–4 hold only items in the syntax above, or - none.
  • Every skill in section 1 is installed. A listed skill that is not installed makes every consumer hard-stop on any change matching its glob.
  • Section 2: exactly one dry-run; one test-path if the repo has that check.
  • Section 3 is the globs file: pointer whenever a test-path check reads a globs file.
  • Section 4 is non-empty and every name came from the human or a source they named.
  • Section 5 holds paths and markdown links, no secret values.
  • Root AGENTS.md carries the pointer line exactly once.