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
This commit is contained in:
1 parent
873b28ca96
commit
3f24daa58a
3 files changed
+44
-22
No files matched your search
@@ -47,6 +47,8 @@ do not restate it. A format change is an edit here, plus the consumers' parsers.
|
||||
- `<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
|
||||
|
||||
@@ -79,12 +81,12 @@ a user on this list set it.
|
||||
```text
|
||||
- Bot user: `<forge username>`
|
||||
- Kubeconfig: `<absolute path>` | none
|
||||
- Branch protection: in place | pending (<link to the tracking issue>)
|
||||
- Accepted risks: <link to ADR or issue>, … | none
|
||||
- Branch protection: in place | pending ([<title>](<url>))
|
||||
- Accepted risks: [<title>](<url>), … | none
|
||||
```
|
||||
|
||||
Delivery sessions export the kubeconfig path as `KUBECONFIG`. The value is a path only. Accepted
|
||||
risks are linked, never restated.
|
||||
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
|
||||
|
||||
@@ -93,13 +95,19 @@ anything else a delivery agent needs. Pointers only; no restating.
|
||||
|
||||
## AGENTS.md pointer line
|
||||
|
||||
The consuming repo's root `AGENTS.md` carries exactly this line, under whatever heading lists its
|
||||
agent docs (or at the end of the file when it has none):
|
||||
The consuming repo's root `AGENTS.md` carries this line verbatim, exactly once:
|
||||
|
||||
```text
|
||||
- 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
|
||||
|
||||
```markdown
|
||||
@@ -128,7 +136,7 @@ agent docs (or at the end of the file when it has none):
|
||||
|
||||
- Bot user: `delivery-bot`
|
||||
- Kubeconfig: `/etc/delivery/kubeconfig-readonly`
|
||||
- Branch protection: in place
|
||||
- Branch protection: pending ([Branch protection setup](https://example.org/issues/12))
|
||||
- Accepted risks: [ADR-0032](https://example.org/adr/0032)
|
||||
|
||||
## Conventions
|
||||
@@ -142,9 +150,10 @@ The values in the skeleton are illustrative only; every real value comes from th
|
||||
|
||||
- [ ] 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.
|
||||
- [ ] 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 links, no secret values.
|
||||
- [ ] Section 5 holds paths and markdown links, no secret values.
|
||||
- [ ] Root `AGENTS.md` carries the pointer line exactly once.
|
||||
Reference in new issue
Block a user