Last reviewed: 2026-07-17
Direct answer
Normalize source URLs by storing one canonical public documentation URL per source, checking that each URL is reachable, and recording what each source is allowed to support. Do this before a coding agent guide ships so the article does not cite mixed aliases, stale paths, or a source that supports a different claim than the guide makes.
A practical smoke-test workflow:
- Setup assumptions: the guide has a source manifest, every source is public HTTP(S), and each source has a short purpose such as repository instructions, memory files, or custom instruction setup.
- Happy-path request plan: fetch each source URL, follow normal redirects, record the final URL, status code, access date, and supported claim area.
- Error-path check: intentionally include one outdated or redirected documentation URL in a local fixture and confirm the check flags it for replacement instead of treating it as evidence.
- Minimum assertions: each cited source is reachable, each final URL is the expected canonical location, each article claim maps to at least one source, and source links are not decorated with tracking parameters.
- Pass/fail logging fields:
source_id,input_url,final_url,status_code,claim_area,result,replacement_needed, andchecked_at. - What not to assert: do not assert tool behavior, endpoint paths, pricing, access permissions, or product availability unless the linked source directly documents that exact detail.
Sanitized log-record template:
{
"source_id": "source-docs-placeholder",
"input_url": "https://example.com/docs/page",
"final_url": "https://example.com/docs/page",
"status_code": 200,
"claim_area": "repository instruction files",
"result": "pass",
"replacement_needed": false,
"checked_at": "2026-07-17T00:00:00Z"
}
For a broader evidence workflow, pair this check with Build Source Citation Audit Trails for Coding Agent Guides .
Who this is for
This is for operators who prepare coding agent tutorials, repository instruction guides, or source-backed runbooks and need the citations to survive the final build. It is especially useful when a guide compares instruction files across tools, because similar concepts may live at different canonical URLs in each vendor’s documentation.
Key takeaways
- Treat the source URL as part of the article contract, not as a loose note.
- Store the canonical final URL after fetch, not just the URL copied into the first outline.
- Keep each source’s purpose narrow: one source can support repository memory behavior, another can support Codex instruction-file behavior, and another can support GitHub Copilot repository custom instructions.
- Use clean source links in citations. Tracking links belong in reader calls to action, not evidence links.
- Replace stale aliases before drafting final copy; do not ask the article body to explain around broken evidence.
Failure modes
- Evidence gap: the agent cannot inspect the failing log, source page, pull request, or local command output. The safe action is to stop and record the missing evidence instead of guessing.
- Scope drift: the agent edits files that are not connected to the observed failure. Keep the repair tied to the failing signal and leave unrelated cleanup for a separate task.
- Environment mismatch: the local check uses different versions, credentials, feature flags, or runtime settings than the hosted path. Record the mismatch before treating the result as proof.
- Unreviewed fallback: the agent changes models, endpoints, permissions, or retry behavior to make a run pass without preserving the review boundary. Treat access and provider failures as operational blockers, not topic failures.
- Weak handoff: the final note says the issue is fixed but omits the command, result, changed files, and remaining uncertainty. That makes the next operator repeat the investigation.
Sources checked
- Claude Code memory documentation - accessed 2026-07-17; purpose: verify project memory and instruction-file context for agent workflows.
- OpenAI Codex AGENTS.md guidance - accessed 2026-07-17; purpose: verify repository instruction-file context for coding agents.
- GitHub Copilot repository instructions documentation - accessed 2026-07-17; purpose: verify repository instruction guidance.
Contract details to verify
| Area | What to verify | Source URL | Accessed | Safe candidate wording |
|---|---|---|---|---|
| Claude Code project instructions | Confirm the canonical documentation URL for project memory and instruction files. | https://code.claude.com/docs/en/memory | 2026-07-17 | Claude Code documents project memory and instruction files at the linked memory page. |
| Codex repository instructions | Confirm the current public page for Codex AGENTS.md guidance. | https://github.com/openai/codex/blob/main/docs/agents_md.md | 2026-07-17 | Codex documents repository guidance through its AGENTS.md documentation page. |
| GitHub Copilot repository instructions | Confirm the setup path for repository custom instructions. | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/add-custom-instructions/add-repository-instructions | 2026-07-17 | GitHub documents repository custom instructions for Copilot at the linked setup page. |
| Citation hygiene | Confirm source links are clean final URLs and claim wording stays within what the source supports. | https://code.claude.com/docs/en/memory | 2026-07-17 | A guide should map each coding-agent instruction claim to a reachable source URL and avoid unsupported product-specific claims. |
Reader next step
Compare the workflow against Start with CometAPI .
FAQ
Why normalize source URLs before writing final copy?
Because source drift is easier to fix while the guide is still structured as a manifest. Once citations are embedded throughout the article, stale aliases and mismatched source purposes are harder to spot.
Should redirected URLs be accepted?
A normal redirect can be acceptable during fetch, but the recorded evidence should use the final canonical URL when that URL is the stable documentation location.
Can one source support every coding agent instruction claim?
Usually no. Use each vendor’s documentation for that vendor’s behavior, then write the guide in terms of the narrow claim each source supports.
Should citation links include campaign parameters?
No. Keep evidence links clean so reviewers and readers can inspect the exact documentation page. Use campaign parameters only on intentional reader action links.