Skip to content

docs(#4539): add fragment-anchor guidance for heading links - #4540

Merged
gabemontero merged 1 commit into
mainfrom
agent/4539-fragment-anchor-guidance
Sep 2, 2026
Merged

docs(#4539): add fragment-anchor guidance for heading links#4540
gabemontero merged 1 commit into
mainfrom
agent/4539-fragment-anchor-guidance

Conversation

@fullsend-ai-coder

Copy link
Copy Markdown
Contributor

Add a Fragment anchors for heading references subsection to the boost workspace AGENTS.md under Documentation conventions, after the existing Relative markdown links subsection.

When a markdown link display text names a specific heading, the code agent should include the GitHub-style fragment anchor in the URL rather than linking to the document root. This prevents a usability gap where the reader expects to land at a specific section but instead arrives at the top of a long document.

This convention was identified from PR #4534, where 4 links with display text Decision 1 pointed at design.md without the fragment anchor, requiring a manual fix commit from the reviewer.


Closes #4539

Post-script verification

  • Branch is not main/master (agent/4539-fragment-anchor-guidance)
  • Secret scan passed (gitleaks — ebecaa74d12add1c9f62054f87db8ca2a14e1e71..HEAD)
  • Pre-commit hooks passed (authoritative run on runner)
  • Tests ran inside sandbox

Add a Fragment anchors for heading references subsection to the
boost workspace AGENTS.md under Documentation conventions, after
the existing Relative markdown links subsection.

When a markdown link display text names a specific heading, the
code agent should include the GitHub-style fragment anchor in the
URL rather than linking to the document root. This prevents a
usability gap where the reader expects to land at a specific
section but instead arrives at the top of a long document.

This convention was identified from PR #4534, where 4 links with
display text Decision 1 pointed at design.md without the fragment
anchor, requiring a manual fix commit from the reviewer.

Closes #4539
@fullsend-ai-coder fullsend-ai-coder Bot added the ready-for-review Agent PR ready for human review label Sep 2, 2026
@codecov

codecov Bot commented Sep 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 62.06%. Comparing base (ebecaa7) to head (c3124b6).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4540   +/-   ##
=======================================
  Coverage   62.06%   62.06%           
=======================================
  Files        2603     2603           
  Lines      104477   104477           
  Branches    29375    29363   -12     
=======================================
  Hits        64848    64848           
  Misses      39034    39034           
  Partials      595      595           
Flag Coverage Δ *Carryforward flag
adoption-insights 84.30% <ø> (ø) Carriedforward from ebecaa7
ai-integrations 76.15% <ø> (ø) Carriedforward from ebecaa7
app-defaults 56.22% <ø> (ø) Carriedforward from ebecaa7
augment 46.67% <ø> (ø) Carriedforward from ebecaa7
boost 80.51% <ø> (ø)
bulk-import 73.12% <ø> (ø) Carriedforward from ebecaa7
cost-management 13.55% <ø> (ø) Carriedforward from ebecaa7
dcm 72.09% <ø> (ø) Carriedforward from ebecaa7
e2e-adoption-insights 60.00% <ø> (ø) Carriedforward from ebecaa7
e2e-extensions 62.32% <ø> (ø) Carriedforward from ebecaa7
e2e-global-header 50.35% <ø> (ø) Carriedforward from ebecaa7
e2e-homepage 61.11% <ø> (ø) Carriedforward from ebecaa7
e2e-intelligent-assistant 47.04% <ø> (ø) Carriedforward from ebecaa7
e2e-orchestrator 49.52% <ø> (ø) Carriedforward from ebecaa7
e2e-orchestrator-plugin 49.51% <ø> (ø) Carriedforward from ebecaa7
e2e-quickstart 55.21% <ø> (ø) Carriedforward from ebecaa7
e2e-scorecard 50.21% <ø> (ø) Carriedforward from ebecaa7
e2e-theme 16.36% <ø> (ø) Carriedforward from ebecaa7
extensions 56.66% <ø> (ø) Carriedforward from ebecaa7
global-floating-action-button 71.18% <ø> (ø) Carriedforward from ebecaa7
global-header 68.09% <ø> (ø) Carriedforward from ebecaa7
homepage 48.39% <ø> (ø) Carriedforward from ebecaa7
install-dynamic-plugins 58.57% <ø> (ø) Carriedforward from ebecaa7
intelligent-assistant 76.40% <ø> (ø) Carriedforward from ebecaa7
konflux 91.98% <ø> (ø) Carriedforward from ebecaa7
lightspeed 69.02% <ø> (ø) Carriedforward from ebecaa7
mcp-integrations 84.14% <ø> (ø) Carriedforward from ebecaa7
orchestrator 71.13% <ø> (ø) Carriedforward from ebecaa7
quickstart 63.74% <ø> (ø) Carriedforward from ebecaa7
sandbox 79.56% <ø> (ø) Carriedforward from ebecaa7
scorecard 87.66% <ø> (ø) Carriedforward from ebecaa7
theme 87.91% <ø> (ø) Carriedforward from ebecaa7
translations 5.12% <ø> (ø) Carriedforward from ebecaa7
x2a 77.10% <ø> (ø) Carriedforward from ebecaa7

*This pull request uses carry forward flags. Click here to find out more.


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ebecaa7...c3124b6. Read the comment docs.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@fullsend-ai-review

fullsend-ai-review Bot commented Sep 2, 2026

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 12:53 PM UTC · Completed 12:57 PM UTC

Commit: c3124b6 · View workflow run →

Runtime: claude · Model: opus → claude-opus-4-6 · Cost: $0.65

@sonarqubecloud

sonarqubecloud Bot commented Sep 2, 2026

Copy link
Copy Markdown

@fullsend-ai-review

Copy link
Copy Markdown

Review — approve

Scope: documentation-only change — 1 file modified (workspaces/boost/AGENTS.md), +15 lines, 0 deletions.

Summary

This PR adds a "Fragment anchors for heading references" subsection to the boost workspace AGENTS.md under the existing "Documentation conventions" section, immediately after the "Relative markdown links" subsection. The change instructs the code agent to include GitHub-style fragment anchors (#heading-slug) in markdown links whose display text names a specific heading, rather than linking to the document root.

Analysis

Intent & coherence: The change directly addresses issue #4539, which was filed by the retro agent after PR #4534 required a manual reviewer commit to add missing fragment anchors to 4 cross-reference links. The scope is tightly bounded to the requested documentation addition — no unrelated changes.

Correctness: The guidance is technically accurate. GitHub's heading-to-fragment rules (lowercase, spaces to hyphens, strip punctuation) are correctly summarized. The example fragment #decision-1-annotation-independence-from-entity-kinds correctly converts the heading ### Decision 1: Annotation independence from entity kinds — the colon is stripped, spaces become hyphens, and all characters are lowercased.

Placement: The new subsection is correctly inserted after the closing code block of "Relative markdown links" (line 278) and before "## Build & verify" (line 280). This maintains the logical document structure: both subsections live under "Documentation conventions" and address related markdown authoring concerns.

Style/conventions: The formatting (H3 subsection, prose explanation, fenced code block example, closing directive) matches the adjacent "Relative markdown links" subsection's pattern. Consistent with the rest of the document.

Security: No security implications — this is agent-facing documentation guidance only.

Documentation currency: The change itself is documentation. The content is current and references the real heading from the design document that motivated issue #4539.

Verdict

Clean documentation addition. No findings.

@fullsend-ai-review fullsend-ai-review Bot added the ready-for-merge All reviewers approved — ready to merge label Sep 2, 2026
@gabemontero
gabemontero merged commit 5ed7ee5 into main Sep 2, 2026
58 of 59 checks passed
@fullsend-ai-retro

fullsend-ai-retro Bot commented Sep 2, 2026

Copy link
Copy Markdown

🤖 Finished Retro · ✅ Success · Started 5:01 PM UTC · Completed 5:17 PM UTC

Commit: c3124b6 · View workflow run →

Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $3.94

@fullsend-ai-retro

Copy link
Copy Markdown

Retro: PR #4540 — Add fragment-anchor guidance for heading links

This PR was a retro-driven AGENTS.md improvement that went through the full agent pipeline cleanly. The retro agent on PR #4534 identified that human reviewer mareklibra had to manually push commit c36fcd4 adding GitHub fragment anchors to 4 Decision 1 links — a gap the review agent missed across all 3 review passes. The retro agent filed issue #4539, which was triaged ($0.60), coded ($0.81), and reviewed ($0.65) within 17 minutes. The code agent produced the correct change on the first attempt — no fix cycles required. Human reviewer gabemontero approved ~4 hours later and merged.

What went well:

  • The retro-to-code pipeline executed efficiently: retro identified gap → issue filed → triage → code → review → merge, all same-day
  • The code agent got the implementation right on the first try (correct placement after "Relative markdown links", consistent formatting, accurate fragment example)
  • Total agent cost of $2.06 for the complete triage→code→review pipeline is reasonable for a retro-driven docs improvement
  • Review agent correctly identified the change as clean and approved without false-positive findings

Existing issue evidence (not proposed as new issues):

  • The cancelled duplicate review dispatch (run 33632279783 cancelled 2s before run 33632282558) is a minor instance of the dispatch race condition addressed by fullsend-ai/fullsend#6507. Cost impact was negligible since the cancelled run never reached the agent step.
  • The review agent spent $0.65 (opus, high effort) on a 15-line docs-only change. fullsend-ai/fullsend#6891 proposes pre-flight scope heuristics that would apply a lighter model/effort to trivially-scoped PRs like this one.

One proposal filed: The new fragment-anchor guidance subsection lacks a concrete verification step, unlike its sibling "Relative markdown links" subsection which prescribes ls verification. Given the pattern from PR #4534 where the code agent had path-verification guidance but still produced a broken link, adding an explicit verification command would strengthen the guidance.

Proposals filed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-merge All reviewers approved — ready to merge ready-for-review Agent PR ready for human review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add fragment-anchor guidance for heading-referencing documentation links

1 participant