Skip to content

docs: adopt the shared working agreement by reference (DOTGH-9) - #18

Merged
kiliantyler merged 1 commit into
mainfrom
docs/DOTGH-9-factory-2b530c7b
Dec 2, 2026
Merged

kiliantyler merged 1 commit into
mainfrom
docs/DOTGH-9-factory-2b530c7b

Conversation

@kiliantyler

Copy link
Copy Markdown
Contributor

Ticket

DOTGH-9

Problem

REPOSITORIES.md#agent-instructions told every consumer to copy the whole working-agreement block into its root AGENTS.md. Each copy is a second home for the shared rules, so one policy correction needs an edit in every consumer, including repositories owned by other GitHub accounts.

Solution

  • The working agreement is now a rendered ### Working agreement section, the one canonical copy of the nine shared rules. <KEY> and the scope list now refer to what the consumer's root AGENTS.md names.
  • A by-reference adoption pattern for any GitHub owner, with one minimal root AGENTS.md example: read and apply the agreement by its full URL, then state the local tracker key, scopes, component rules and validation entry points.
  • States that a link is a reading instruction, not inheritance, so the file must say in words to open and apply it. CI actions and @maudecode/ci stay pinned to a full commit SHA (CI.md, item 6).
  • Existing adopters that copied the block keep working and move to the reference in a ticket of their own.
  • Checklist item 1 now describes the new root AGENTS.md.

Validation

  • Link and anchor check over REPOSITORIES.md: every relative file and #anchor resolves, including the new #working-agreement, CI.md#the-contract, CI.md#test-checks and RELEASES.md#the-contract. Exit 0.
  • node --test: 44 passed, 0 failed.
  • No test added: documentation-only change with no executable contract. The anchor check above covers the links.

Regression proof

Not applicable: documentation only, with no bug and no behavior that a test asserts.

Risk and rollback

Low. Docs only. Roll back by reverting this commit. Copied blocks in existing repositories are unaffected.

Every repository copied the whole working-agreement block, so one policy
correction meant an edit in every consumer. The agreement is now a rendered,
linkable section that root AGENTS.md files read and apply by full URL, and the
example AGENTS.md states only the local tracker key, scopes, component rules
and validation commands. Repositories that copied the block keep working.
@kiliantyler

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-02T15:16:07.130132Z 59051ba Manual request
🔒 Security Review ✅ Completed 2026-12-02T15:21:25.172482Z 59051ba Manual request

Security findings

Advisory findings (1)

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: 59051bac34

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@kiliantyler
kiliantyler merged commit 7a15bc7 into main Dec 2, 2026
1 check passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛡️ Codex Security Review · Automatically triggered

Here are some automated security review suggestions for this pull request.

Reviewed commit: 59051bac34

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

Comment thread REPOSITORIES.md
# Agent instructions

Before editing anything, read and apply the
[working agreement](https://github.com/MaudeCode/.github/blob/main/REPOSITORIES.md#working-agreement). This file adds

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛡️ Codex Security Review · Automatically triggered

P2 Badge Security: Pin the shared agent agreement to a reviewed commit

When a consumer adopts this template, an actor who can update MaudeCode/.github's main branch but cannot write that consumer can replace the agreement the consumer's agent is told to apply. The next agent run then imports those new instructions into another repository/account without any reviewed change there, allowing that actor to influence edits with the consumer agent's permissions. Existing branch rules or later PR review may mitigate this, and adoption/agent privileges are not proven, so this is conditional P2; use a full commit SHA in the URL and update it through reviewed bumps.

Useful? React with 👍 / 👎.

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