Repository navigation
fix(agent-email): use in-repo raw image for README architecture diagram - #1833
Conversation
The 0.2.0 README pointed its architecture diagram at the versioned hub path hub.amd-gaia.ai/agents/email/0.2.0/architecture.webp, but the release pipeline never publishes that asset (publish_to_r2.py uploads only manifest/binary/readme; assets/ isn't in npm files) — so the image would 404 on npmjs.com / the hub page. Point it at the in-repo asset via raw.githubusercontent.com (resolves today), and add a clear version badge + contract version since the version is no longer in the image URL. The stamp_version --check now skip-warns the architecture URL (non-fatal, exit 0). Tracked in #1832 to wire the asset upload and restore the versioned URL.
|
Verdict: Approve ✅ This is a clean, tightly-scoped doc fix. The 0.2.0 README pointed its architecture diagram at a versioned I reproduced all three test-plan items locally and they pass: 🔍 Technical detailsVerification performed:
🟢 Minor — raw URL pins to a mutable 🟢 Minor — Strengths:
|
## Why this matters The live hub page at `hub.amd-gaia.ai/hub/email` is still showing the **0.2.0** catalog — which snapshots the *old python README* with no architecture diagram and no npm install flow. amd#1836 (single canonical npm README + version-on-cards) and amd#1833 (in-repo raw architecture image) already merged, but the catalog only refreshes its README snapshot **on a new publish**. This patch cuts that publish. No client API or wire-contract change — `SCHEMA_VERSION` stays **2.0**. This is a docs/packaging republish so the hub catalog picks up the current README (diagram + GAIA/npm install flow + version badge). The version triple the release gate validates (tag == npm `package.json` == `gaia-agent.yaml`) is all **0.2.1**, synced from `version.py` (the source of truth) via `stamp_version.py`. ## Test plan - [x] `stamp_version.py --check` → all targets match `AGENT_VERSION` 0.2.1 (npm README architecture image correctly SKIPs — it uses the raw-GitHub URL post-amd#1833) - [x] npm pre-flight in `hub/agents/npm/agent-email/`: `npm ci && npm run build && npm test` → 32 passed; `npm pack --dry-run` ships README (16.2kB) + CHANGELOG - [x] `test_stamp_version.py` → 10 passed - [ ] After merge: tag `agent-pkg-email-v0.2.1` from main → freeze → approve `agent-publish` gate → publish republishes the catalog; confirm `/hub/email` shows the diagram + npm flow + `v0.2.1`
The email agent's 0.2.0 README embeds its architecture diagram from
https://hub.amd-gaia.ai/agents/email/0.2.0/architecture.webp— but nothing publishes that asset there (the release pipeline uploads only the manifest, binary, and README;assets/isn't in the npmfiles), so the image would 404 on npmjs.com and the hub page the moment 0.2.0 ships. This points the diagram at the in-repo asset viaraw.githubusercontent.com/.../assets/architecture.webp(which resolves today), so the README renders correctly with no pipeline change — unblocking a clean 0.2.0 release. Since the version is no longer in the image URL, it adds a clear npm-version badge + theSCHEMA_VERSION 2.0contract line at the top.The proper fix — publishing the asset to the versioned hub path and restoring that URL — is tracked in #1832. The
stamp_version.py --checknow skip-warns the (absent) versioned architecture URL, which is non-fatal (exit 0, confirmed).Test plan
python hub/agents/python/email/packaging/stamp_version.py --check→ exit 0 (architecture.webp showsSKIP, all elseOK).grep -c "hub.amd-gaia.ai/agents/email/.*architecture" hub/agents/npm/agent-email/README.md→ 0.SCHEMA_VERSION 2.0at the top; the architecture image loads from the raw GitHub URL.