Skip to content

docs: reconcile AGENTS.md hub guidance + add when-not-to-anchor caveat#134

Merged
Connorrmcd6 merged 2 commits into
mainfrom
docs/reconcile-agents-hub-guidance
Jun 18, 2026
Merged

docs: reconcile AGENTS.md hub guidance + add when-not-to-anchor caveat#134
Connorrmcd6 merged 2 commits into
mainfrom
docs/reconcile-agents-hub-guidance

Conversation

@Connorrmcd6

Copy link
Copy Markdown
Owner

Follow-up to #133. Those two commits landed on the branch after #133 merged, so they never reached main; this PR brings them in cleanly off current main.

Summary

#133 left the authoring guide with two adjacent, contradictory sections — "keep hubs and AGENTS.md separate" immediately followed by "you can fold claims into AGENTS.md". This reconciles them and adds a "when not to anchor" caveat.

What changed

  • docs/guides/authoring-hubs.md — merged the two sections into one "Where claims can live" that leads with the general rule (claims can live in any file added to the glob), then presents both approaches with a central hubs/ directory flagged as the recommended default (### Recommended) vs. the inline option (### Alternative). Added a ### When *not* to anchor a file subsection using README.md as the counter-example: coarse claims that over-anchor, duplication of hub prose, and GitHub rendering YAML frontmatter as a metadata table above the pitch.
  • docs/reference/configuration.md — broadened the wording to the general "claims can live in any file" principle and updated the cross-reference anchor to the renamed section.

Frontmatter correction

#133 claimed "most agent runners ignore [frontmatter]". That's not reliably true — runners generally load AGENTS.md/CLAUDE.md as raw text and don't strip YAML frontmatter, so the anchors: block is visible to the agent. The guide now frames that as a real downside of the inline approach rather than a non-issue.

Verification

  • cargo fmt --all --check — pass
  • surf lint — 0 errors (13 pre-existing advisory coverage warnings, unrelated)
  • surf check — all anchored spans match their stored hashes

🤖 Generated with Claude Code

Connorrmcd6 and others added 2 commits June 18, 2026 07:10
The guide had two adjacent, contradictory sections — "keep them
separate" immediately followed by "you can fold claims in". Merge into
one "Where claims can live" section that leads with the general rule
(claims can live in any file added to the glob), then presents both
approaches with the central hubs/ directory flagged as recommended.

Also correct the frontmatter note: agent runners generally load
AGENTS.md/CLAUDE.md as raw text and do NOT strip YAML frontmatter, so
the anchors block is visible to the agent — framed as a real downside
of the inline approach, not a non-issue.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
"Any file can be a hub" invites anchoring marketing prose. Add a
subsection explaining why a README is a poor fit: coarse claims that
over-anchor, duplication of hub prose, and GitHub rendering frontmatter
as a metadata table above the pitch.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Connorrmcd6 Connorrmcd6 merged commit bee22e1 into main Jun 18, 2026
5 checks passed
@Connorrmcd6 Connorrmcd6 deleted the docs/reconcile-agents-hub-guidance branch June 18, 2026 06:37
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