Repository navigation
fix: accept an existing bounded AGENTS.md for cursor, copilot and gemini init - #140
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PatrickSys
force-pushed
the
night/agents-md-runtime-aliases
branch
from
December 3, 2026 13:00
0361533 to
43651d4
Compare
PatrickSys
marked this pull request as ready for review
December 3, 2026 13:11
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Agent-Harness: codex-cli Agent-Session: 01a23f7c-383a-7782-8edb-6396656b6389
PatrickSys
added a commit
that referenced
this pull request
Dec 4, 2026
Port the root governance compatibility fix from #140 and reuse the same marker parser for preflight and rendering. Agent: codex/01a23fec-5602-7f61-b9c5-cd3a4f6a5087
This branch was successfully deployed
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.
What
init --tools cursor,--tools copilotand--tools gemininow accept an existingAGENTS.mdwith a managed Workspine block when there is no generation manifest.Why
After deleting
.work/to reinstall, a repository can still have its managedAGENTS.md. All three aliases use the root AGENTS adapter, but preflight only let--tools agentsrefresh the file without a manifest.Fix
This PR stacks on #128 (
factory/038) and uses its fence-aware parser to decide whether the rootAGENTS.mdhas a managed block. Init refuses files with no managed block, including files that only show the markers in a fenced example. First-time insertion into an unmarked file stays setup-only.Testing
node tests/gsdd.governance-alias-init.test.cjsfails on #128 for all three aliases withAGENTS.md exists without a generation manifest. All 22 tests pass on this branch, including 3 refresh cases and 19 refusal cases.node tests/gsdd.init.test.cjsandnode tests/gsdd.setup.test.cjspass on both revisions. The rebased commit passes 105 init tests and 35 setup tests on Windows with Node 24.14.1.Checklist
Breaking Changes
None.