Skip to content

docs: separate stable agent contract from living project context - #12

Merged
bryanwieg merged 2 commits into
rx9070-portfrom
docs/stable-agent-contract
Sep 20, 2026
Merged

bryanwieg merged 2 commits into
rx9070-portfrom
docs/stable-agent-contract

Conversation

@bryanwieg

@bryanwieg bryanwieg commented Sep 20, 2026 •

Copy link
Copy Markdown
Owner

Reworks the repository agent guidance around a stable-root / living-docs model, then applies the setup-matt-pocock-skills repository workflow to that structure.

AGENTS.md now carries durable policy

The private-fork section captures:

  • mission and long-term priorities
  • correctness/performance/maintainability principles
  • private-fork vs upstream contribution scope
  • engineering and benchmarking method
  • CI policy
  • skill invocation/routing expectations

The upstream llama.cpp contributor instructions remain intact below it.

Matt Pocock setup workflow applied

Adds the configuration files expected by the engineering skills:

  • docs/agents/issue-tracker.md - GitHub Issues in the private fork
  • docs/agents/triage-labels.md - default five-role triage vocabulary
  • docs/agents/domain.md - single-context domain-doc layout and consumer rules

The ## Agent skills block in AGENTS.md now points at those files using the setup skill's intended structure.

The setup is adapted to the private-fork boundary: issue automation conventions apply to bryanwieg/llama.cpp, while upstream ggml-org/llama.cpp contribution restrictions remain unchanged.

Skills are first-class

The contract tells agents to invoke the installed workflows rather than approximate them from memory:

  • Ponytail as the default implementation/minimalism discipline
  • ask-matt when workflow selection is unclear
  • grill-with-docs for unresolved consequential design
  • diagnosing-bugs for hard regressions/performance anomalies
  • research for primary-source investigation
  • TDD when a useful tight feedback loop exists
  • design/domain skills for architecture/ownership questions
  • spec/tickets/implement for multi-session work
  • resolving-merge-conflicts for intent-sensitive conflicts
  • code-review plus ponytail-review before finalizing substantive code changes

Living docs

Adds:

  • docs/agents/current-state.md
  • docs/agents/technical-context.md
  • docs/agents/optimization-history.md

The domain configuration now explicitly defines the separation:

  • AGENTS.md = stable operating contract
  • CONTEXT.md = shared domain language, created lazily when useful
  • docs/adr/ = durable architectural decisions
  • docs/agents/ = changing operational/project context

This should let the root contract stay stable while hardware, models, benchmarks, experiments, tooling state, and recent priorities evolve independently.

Add a private-fork operating contract at the top of AGENTS.md that captures
durable mission, long-term priorities, engineering method, CI policy, and
skill-routing expectations while preserving the upstream llama.cpp agent
instructions below it.

Treat repository-local skills as first-class workflows: keep Ponytail as the
default implementation discipline, route ambiguous non-trivial work through
ask-matt, and explicitly use focused debugging, research, design, TDD,
planning, merge-conflict, correctness-review, and complexity-review skills
where appropriate.

Move changing information out of the root contract into living docs for
current priorities, technical/runtime context, and optimization history.
This keeps AGENTS.md stable while allowing hardware, models, benchmarks,
active experiments, source SHAs, and near-term priorities to evolve without
rewriting the project's durable instructions.
Apply the setup-matt-pocock-skills repository conventions to the private fork.

Reshape the existing skill guidance into the expected Agent skills block and
record the project's GitHub issue tracker, default triage-label vocabulary, and
single-context domain-doc layout under docs/agents.

Preserve the stable AGENTS.md versus living docs/agents split: AGENTS.md points
at the configuration and durable workflow, while domain vocabulary, ADRs, and
changing operational context remain in their dedicated files.

Adapt the upstream setup templates to the private-fork boundary so issue
automation conventions do not override llama.cpp's upstream contribution rules.
@bryanwieg
bryanwieg merged commit 02e2538 into rx9070-port Sep 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant