Skip to content

[AAASM-3750] 📝 (docs): Make hub version badges dynamic (drop hardcoded versions)#40

Merged
Chisanan232 merged 3 commits into
mainfrom
v0.0.1/AAASM-3750/fix_hub_dynamic_badges
Jun 25, 2026
Merged

[AAASM-3750] 📝 (docs): Make hub version badges dynamic (drop hardcoded versions)#40
Chisanan232 merged 3 commits into
mainfrom
v0.0.1/AAASM-3750/fix_hub_dynamic_badges

Conversation

@Chisanan232

Copy link
Copy Markdown
Contributor

What changed

The docs hub (https://docs.agent-assembly.com/) rendered hardcoded / stale version badges. This PR makes every version badge live — no version baked into any badge.

Badge Before After
core (home + compatibility) static badge/core-v0.0.1--alpha.5 (home) / …--beta.2 (compat) github/v/release/…/agent-assembly?include_prereleases&sort=semver
go-sdk (home + compatibility) static badge/go--sdk-v0.0.1--alpha.4 / …--beta.2 github/v/tag/…/go-sdk?sort=semver
node-sdk (home) npm/v/…/alpha (stale channel) npm/v/…/beta
python / node (compat) already dynamic unchanged

Renders now resolve to the real published versions: core v0.0.1-beta.4, go v0.0.1-beta.3, node 0.0.1-beta.5, python 0.0.1b5 (verified against shields.io live).

Why

The home page badges were frozen at alpha.5/alpha.4; the compatibility page had drifted to a different hardcoded value (beta.2) — the two pages even disagreed. Hardcoded "bumped at release" badges go stale by design.

Endpoint choice (why not one form for both)

  • core uses github/v/release (not tag): the monorepo carries a non-release spec/* tag that pollutes github/v/tag semver sorting; core cuts GitHub Releases, so the release endpoint is authoritative.
  • go-sdk uses github/v/tag: go-sdk publishes version tags but no GitHub Releases, so github/v/release is empty there.

Also corrected the now-wrong prose on both pages and the stale compatibility.toml [badges] notes (which had claimed the dynamic form "renders as an error").

Scan scope

Scanned all five doc systems (core mdBook, this hub, python-sdk mkdocs, node-sdk docusaurus, go-sdk hugo) for hardcoded-version badges. Only this hub was affected — every per-repo README already uses dynamic badges.

Verify

  • python3 docs/scripts/generate_compatibility.py --check → no drift (badge strip is hand-written, outside the generated markers).
  • All four badge URLs render the correct live beta versions (checked via curl).
  • No img.shields.io/badge/…<version> or /alpha dist-tag remains under docs/.

Follow-ups (out of scope, noted in the ticket)

  • npm latest dist-tag for @agent-assembly/sdk is stale at alpha.3 (release-process item).

Closes AAASM-3750

🤖 Generated with Claude Code

Replace hardcoded static core (alpha.5) and go-sdk (alpha.4) badges with live
shields.io endpoints, and switch the node badge off the stale /alpha npm
dist-tag to /beta. core uses github/v/release?include_prereleases&sort=semver
(a non-release spec/* tag pollutes tag-sort; core cuts Releases); go uses
github/v/tag?sort=semver (no Releases). Update prose (beta; all badges live).
core/go were hardcoded static badges (beta.2, already stale vs beta.4/beta.3 and
contradicting the home page). Switch to the same live endpoints and rewrite the
rationale prose (all four badges are now live).
The [badges] block claimed the dynamic github/v form "renders as an error" and
cited literal beta.2 versions. Rewrite to describe the live endpoints actually
used (release for core, tag for go, PyPI/npm-beta for the SDKs).
@Chisanan232

Copy link
Copy Markdown
Contributor Author

🔍 Code Review — Claude Code

Ticket: AAASM-3750 · Scope: make hub version badges dynamic (no hardcoded versions)

1. CI status — ✅ green

  • Aggregate all module docs (mdBook build) pass
  • SonarCloud Code Analysis pass
  • Deploy to GitHub Pages skipping (runs only on main — by design, not a failure)
  • 0 failing checks.

2. Scope coverage vs ticket — ✅ complete

AC item Status Evidence
Drop hardcoded core badge github/v/release/…/agent-assembly?include_prereleases&sort=semver (home + compat) → renders v0.0.1-beta.4
Drop hardcoded go badge github/v/tag/…/go-sdk?sort=semver (home + compat) → renders v0.0.1-beta.3
Node tracks current channel /alpha/beta dist-tag → renders 0.0.1-beta.5
All five doc systems scanned only the hub had hardcoded badges; per-repo READMEs already dynamic
Correct stale prose + [badges] notes both pages + compatibility.toml updated to the live approach
No regression to the generated matrix generate_compatibility.py --check → no drift (badge strip is hand-written, outside the BEGIN/END GENERATED markers)

All four badge URLs verified rendering the correct live versions via shields.io (core beta.4 / go beta.3 / node beta.5 / python b5).

3. Side-effect analysis — ✅ none

  • Diff is docs-only: docs/src/README.md (+4/-4), docs/src/compatibility.md (+12/-11), compatibility.toml (+9/-9). No code, no build logic, no business logic.
  • The generated matrix/notes/requirements blocks are untouched (verified the diff contains no generated-region lines); the generator remains green.
  • No existing function or workflow affected. The static license badge (Apache-2.0) is intentionally left as-is (not a version).

Verdict: ✅ Ready to approve & merge

Full scope delivered, CI green, zero side-effects.

Follow-up (out of scope, tracked in AAASM-3750): npm latest dist-tag for @agent-assembly/sdk is stale at 0.0.1-alpha.3 — a release-process item, not a docs fix.

Automated review by Claude Code.

@Chisanan232 Chisanan232 merged commit 88c889b into main Jun 25, 2026
3 checks passed
@Chisanan232 Chisanan232 deleted the v0.0.1/AAASM-3750/fix_hub_dynamic_badges branch June 25, 2026 15:05
@sonarqubecloud

Copy link
Copy Markdown

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