Repository navigation
fix(anchors): load workspace AGENTS.md only - #383
Closed
Marc Goodner (robotdad) wants to merge 2 commits into
Closed
Marc Goodner (robotdad) wants to merge 2 commits into
Marc Goodner (robotdad) wants to merge 2 commits into
Conversation
Add standard AGENTS.md mentions to the anchors root context and regression tests for full and partial discovery chains. Generated with Amplifier Co-Authored-By: Amplifier <240397093+microsoft-amplifier@users.noreply.github.com>
Remove home and local .amplifier AGENTS references while retaining workspace AGENTS discovery and transitive SCRATCH loading. Keep the root instruction within its lean budget.\n\nGenerated with Amplifier\n\nCo-Authored-By: Amplifier <240397093+microsoft-amplifier@users.noreply.github.com>
Collaborator
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.
Summary
@AGENTS.mdand remove home and local.amplifierAGENTS.mdreferences.SCRATCH.mdloading when referenced by workspaceAGENTS.md.AGENTS.mdoptional, without falling back to either.amplifiersentinel.system.mdwhile preserving the lean instruction budget (1,141/1,142 lines/bytes as previously measured); no guard behavior is weakened.The CLI owns
.amplifierpath policy. This anchors-bundle change deliberately does not load those paths.Why
The anchors root should establish workspace context without independently reaching into home or local
.amplifierinstruction files. WorkspaceAGENTS.mdremains the explicit contract, with its transitive workspace context preserved.Verification
Directly observed on Linux aarch64 with Python 3.12.3, uv 0.10.12, and pytest 9.0.3:
uv run pytest tests/ -q --tb=short— 1,925 passed, 4 skipped.uv run pytest tests/test_instruction_mentions_lead_context.py -q— 7 passed.git diff --checkpasses.Breaking changes
None. The scope is intentionally limited to workspace
AGENTS.md;.amplifierpath handling remains owned by the CLI.Relates to https://github.com/microsoft/amplifier-support/issues/474