Repository navigation
docs(email): point pinned doc links at the tag that exists - #6961
Conversation
The email agent's docs linked every reference at agent-pkg-email-v0.6.0, a tag that was never created: 0.6.0 was tagged without the v, so all 11 links 404. They now point at agent-pkg-email-0.6.0, the tag that exists. Fixes amd#3947
|
Verdict: Approve with suggestions This fixes the 11 dead reference links in the email agent's npm docs by pointing them at One thing to sort out before the next email release: the version-stamping check no longer recognises these links. It skips them with a warning, not an error, so CI stays green while the next release ships docs still pinned to 0.6.0, with nothing to flag it. The PR description says this, but it's an easy fix. Let the stamp rule accept both tag forms and write the Real-world evidenceN/A: docs-only change, and no evidence bundle was produced. The verdict rests on static review, plus a check that 🔍 Technical detailsIssues 🟡 Follow-up: email stamp_version pinned-link rule silently stops matching ( re.compile(r"(/amd/gaia/blob/agent-pkg-email-)v?([^\"/\s)]+)(/)"),The stamp lambda would also need to emit Note: retagging 0.6.0 as Doc drift check: I grepped for Strengths
|
The pinned doc link rule only matched the v-form tag (agent-pkg-email-v0.6.0), so after amd#6961 rewrote the links to the tag that exists (agent-pkg-email-0.6.0, no v) the rule skipped all three docs with a warning and --check stayed green while the guard was blind. Make the v in the rule optional, so the rule matches both tag forms and the shared stamp step keeps the form already in the file. I did not take the reviewer's suggestion to always write the v form: the 0.6.0 release shipped without the v, so stamping the v form back in would point the links at a tag that does not exist.
|
Verdict: Request changes 🟡 The version check now catches drift again, but the next email release will most likely ship the same dead links this PR fixes. When it rewrites the links, the stamp step keeps whatever tag form is already in the file. Right now that's the no- Have stamping always write the 🔍 Technical details
re.compile(r"(/amd/gaia/blob/agent-pkg-email-)v?([^\"/\s)]+)(/)"),
# replacement: f"{m.group(1)}v{version}{m.group(3)}"
|
Stamping kept whichever tag form a link already had, so the next version bump would have written agent-pkg-email-0.6.1 while the release workflow documents agent-pkg-email-v<version>, and the links would 404 again. The rule still accepts both forms, so today's links to the existing agent-pkg-email-0.6.0 tag pass --check, but a bump now always writes the v-form.
|
Thanks for tracking down the broken links, @swastiktawate! I pushed one follow-up: the version stamper now always writes the v-form tag on the next bump, because that's the form the release workflow documents and every release before 0.6.0 used. Your repointed 0.6.0 links stay as they are and still pass 🔍 Technical details
|
Every reference link in the email agent's published docs 404s. The docs pointed at the tag
agent-pkg-email-v0.6.0, but 0.6.0 was tagged without the v, so all the links aimed at a tag that never existed. This repoints them atagent-pkg-email-0.6.0, the tag that exists, so the API reference, the AI-integration playbook, the scorecard, the evaluation and the changelog resolve again. The version stamper accepts both tag forms, but the next bump writes the v-form the release workflow documents, so future links match the tags releases create.Fixes #3947
Test plan
pytest hub/agents/email/python/tests/test_stamp_version.py(a bump over no-v links now writesagent-pkg-email-v<version>/)python hub/agents/email/python/packaging/stamp_version.py --checkpasses on the repointed links