Skip to content

fix(anchors): load workspace AGENTS.md only - #383

Closed
Marc Goodner (robotdad) wants to merge 2 commits into
microsoft:mainfrom
robotdad:fix/anchors-agents-md
Closed

Marc Goodner (robotdad) wants to merge 2 commits into
microsoft:mainfrom
robotdad:fix/anchors-agents-md

Conversation

@robotdad

@robotdad Marc Goodner (robotdad) commented Sep 8, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Make the anchors root instruction workspace-only: retain @AGENTS.md and remove home and local .amplifier AGENTS.md references.
  • Keep transitive workspace SCRATCH.md loading when referenced by workspace AGENTS.md.
  • Keep missing workspace AGENTS.md optional, without falling back to either .amplifier sentinel.
  • Trim two equivalent prose lines in system.md while preserving the lean instruction budget (1,141/1,142 lines/bytes as previously measured); no guard behavior is weakened.

The CLI owns .amplifier path 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 .amplifier instruction files. Workspace AGENTS.md remains 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:

  • Full suite: uv run pytest tests/ -q --tb=short — 1,925 passed, 4 skipped.
  • Focused regression file: uv run pytest tests/test_instruction_mentions_lead_context.py -q — 7 passed.
  • git diff --check passes.

Breaking changes

None. The scope is intentionally limited to workspace AGENTS.md; .amplifier path handling remains owned by the CLI.

Relates to https://github.com/microsoft/amplifier-support/issues/474

Amplifier and others added 2 commits September 8, 2026 10:03
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>
@robotdad Marc Goodner (robotdad) changed the title fix(anchors): load standard AGENTS.md files in root sessions fix(anchors): load workspace AGENTS.md only Sep 8, 2026
@bkrabach

Copy link
Copy Markdown
Collaborator

Superseded by #384 (#384), which keeps the existing system prompt wording and adds the cwd AGENTS reference with focused regression coverage and explicit prompt-budget accounting.

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.

2 participants