Skip to content

docs: document agent-team contracts and automated test suite (post-d688265)#132

Draft
github-actions[bot] wants to merge 1 commit into
mainfrom
docs/post-d688265-contributing-and-invariants-0bf61a352edfc16c
Draft

docs: document agent-team contracts and automated test suite (post-d688265)#132
github-actions[bot] wants to merge 1 commit into
mainfrom
docs/post-d688265-contributing-and-invariants-0bf61a352edfc16c

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

What changed and why

Commit d688265 established two mandatory patterns for all workflow_dispatch agent roles — the required-input-contract and the iteration guard — and added three tier-2 invariants to enforce them. CONTRIBUTING.md and tests/test-invariants.sh were not updated in that commit, leaving three documentation gaps:

1. No guidance for catalog contributors (CONTRIBUTING.md)

Added a new "Adding or modifying an agent-team workflow role" section under "What to contribute". It documents:

  • The required-input-contract (fail loud on missing/unresolved dispatch inputs, never infer from labels)
  • The iteration guard (≤ 3, add state:blocked and stop on excess)
  • Optional-input handling (the pr_number canonical example)
  • Pointer to reference implementations (planner-agent.md, implementer-agent.md)
  • Note to add matching tier-2 invariants for any new "must-have" phrases

Without this, a contributor adding a fifth agent role would have to diff d688265 to discover the pattern.

2. Outdated testing section (CONTRIBUTING.md)

The old section opened with "There is no automated test harness for skills", which was misleading: CI runs tier-2 invariants and three tier-1 skill tests on every PR. Updated to:

  • Describe two testing layers (tier-2: fast, no auth; tier-1/3: Claude auth required)
  • Add step 1: ./tests/test-invariants.sh (before loading the plugin)
  • Explain when and how to update test-invariants.sh when adding/removing pinned phrases

3. Traceability broken in tests/test-invariants.sh

The three new invariants from d688265 were appended inside the c99b00f group, violating the "each invariant carries a commit-sha comment" guarantee that tests/README.md describes. Moved them into their own d688265 section with an inline explanation comment.

Testing

  • ./tests/test-invariants.sh — all 27 assertions pass ✅
  • No behavior changes; all edits are documentation and test-file comments/grouping only

Generated by Update Docs ·

To install this agentic workflow, run

gh aw add githubnext/agentics/workflows/update-docs.md@96b9d4c39aa22359c0b38265927eadb31dcf4e2a

…88265

- CONTRIBUTING.md: add "Adding or modifying an agent-team workflow role"
  section covering the required-input-contract, iteration-guard, and
  optional-input patterns established by d688265. Contributors adding new
  agent roles now have explicit guidance without having to read the diff.
- CONTRIBUTING.md: replace "no automated test harness" with a two-tier
  description (tier-2 invariants = fast + CI-enforced; tier-1/3 = Claude
  auth required). Add step 1 "run ./tests/test-invariants.sh" and a note
  on updating the invariant file when adding/removing pinned phrases.
- tests/test-invariants.sh: split the three d688265 invariants into their
  own section header so every assertion traces to the correct commit SHA,
  matching the traceability guarantee described in tests/README.md.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automation documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants