Repository navigation
feat: sync AGENTS.md policy block from organization snippet - #35
Merged
Merged
Conversation
Replaces the block between euro-office-policy markers in each repo's AGENTS.md with AGENT_MD_SNIPPETS.md and opens one PR per repo. Runs on snippet changes to main and on dispatch. Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Julius Knorr <jus@bitgrid.net>
juliusknorr
marked this pull request as ready for review
November 30, 2026 22:12
moodyjmz
reviewed
Dec 1, 2026
moodyjmz
left a comment
Member
There was a problem hiding this comment.
The "stale block replaced" test doesn't test replacement. ${around/Label every issue/Stale rule} (test-sync-agents-md.sh:21) matches nothing, because the snippet has no "Label every issue", so stale equals around and the assertion repeats the idempotency check above it. Substituting a line that is in the snippet would make it bite.
The substituted text was not in the snippet, so the fixture equalled the synced file and the check repeated the idempotency test. Use a line from the snippet and fail if the fixture is unchanged. Signed-off-by: Julius Knorr <jus@bitgrid.net> Assisted-by: ClaudeCode:claude-opus-5-5
Member
Author
|
Good catch, thanks. The test now replaces a line that is really in the snippet, and a guard fails if the fixture doesn't change. I checked that it fails with the replace logic broken (bcbf9b3). |
moodyjmz
approved these changes
Dec 2, 2026
moodyjmz
left a comment
Member
There was a problem hiding this comment.
Approve. The fixture now replaces a line that is in the snippet, and the new guard fails if it doesn't change.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Keeps the policy snippet from
AGENT_MD_SNIPPETS.mdin sync across org repos.scripts/sync-agents-md.shreplaces the block between<!-- euro-office-policy:start ... -->and<!-- euro-office-policy:end -->in each repo'sAGENTS.mdand opens or refreshes one PR per repo (branchdocs/sync-agents-md). With--repoit appends the block where missing. Skips-ghsa-and-rehearsalrepos..github/workflows/sync-agents-md.ymlruns the sync on pushes tomainthat touch the snippet, and on dispatch (dry run by default). On PRs it only runs the test.scripts/test-sync-agents-md.shcovers append, idempotency, replace, CRLF, duplicate blocks and a missing end marker.Dry run: no repo has markers yet, so an org-wide run is a no-op.
--repo Euro-Office/sdkjsplans an update.Open before merge / rollout
Signed-off-byrule in the snippet (it forbids agent sign-off, which conflicts with maintainers who certify the DCO through their agent)repos: Euro-Office/sdkjs Euro-Office/fidelity-bench, dry run off