Skip to content

docs(gaia-npm): fix min core version claim and untangle SPEC 5.2 ordering - #4317

Merged
kovtcharov-amd merged 1 commit into
amd:mainfrom
kovtcharov:docs/4249-gaia-npm-min-version
Sep 25, 2026
Merged

kovtcharov-amd merged 1 commit into
amd:mainfrom
kovtcharov:docs/4249-gaia-npm-min-version

Conversation

@kovtcharov

@kovtcharov kovtcharov commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

An integrator following the flagship's npm package docs to install the gaia CLI would install 0.23.1 — a version that was never released — because README.md, SKILL.md and CHANGELOG.md all quoted it as the minimum, when the manifest's real floor is 0.24.1. README also still described the committed lock as carrying PENDING-… placeholder hashes, which stopped being true the moment real hashes were committed. Separately, SPEC.md's session-retention section (§5.2) opened with a paragraph about explicit deletion before the intro paragraph it depends on, and a sentence about omitting session_id had drifted onto an unrelated skill-selection paragraph, so both read confusingly out of context.

Added a test (test_npm_doc_min_version.py) that reads the minimum version out of each doc and compares it to gaia-agent.yaml's min_gaia_version — confirmed it fails on origin/main (0.23.1 documented vs 0.24.1 required) before this fix, and passes after it.

Test plan

  • pytest hub/agents/gaia/python/tests/test_npm_doc_min_version.py -q — 3 passed (all 3 failed against the pre-fix docs)
  • Read SPEC.md §5.2 top to bottom and confirm it now reads in order (intro → explicit deletion → skill capture → dynamic skill selection)

None of the changed files are prompt content the model reads (SKILL.md here is explicitly the integration playbook, not one of the agent's own skills), so no eval run is needed.

Fixes #4249

…ring

README.md, SKILL.md and CHANGELOG.md all told integrators the flagship's npm
package needs gaia CLI 0.23.1+, a version that was never released; the
manifest's real floor is 0.24.1. README also described the committed lock as
carrying PENDING placeholder hashes, which stopped being true once real
hashes were committed. SPEC.md's session-retention section opened with an
explicit-deletion paragraph ahead of the intro it depends on, and a sentence
about omitting session_id had drifted onto an unrelated skill-selection
paragraph.

Fixes amd#4249
@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Approve

This fixes a real install-blocker in the flagship's npm docs: they told integrators to install a gaia CLI version that was never released. All three docs now quote the same floor the manifest declares, the README's claim about placeholder hashes matches what's actually committed, and the reordered spec section reads in dependency order. The new test locks the version claim so it can't drift back silently.

Nothing blocking. Two small follow-ups worth considering: the changelog check is pinned to whatever version number appears first in the file, which will start fighting you the next time the floor moves and the release notes below it are (correctly) frozen history; and the same version number also lives in the Python package's dependency floor, which this guard doesn't cover — the two sibling agents each have a test for exactly that.

Real-world evidence

N/A — docs and tests only; no runnable CLI, API, MCP, or Agent UI surface changes. No evidence-bundle.md was produced for this PR, which is correct for this change type. I verified the claims statically instead: the manifest declares 0.24.1, all three docs now quote 0.24.1, the committed lock contains zero PENDING-… placeholders (so the rewritten README paragraph is accurate), and the release workflow does actively strip placeholders rather than publish them. I re-ran the test's three regexes against the files by hand in Python and all three extract 0.24.1; I could not run pytest itself in this lane (not installed), so CI is the confirmation for the test as written.

🔍 Technical details

Verification performed

Claim Check Result
Docs match manifest min_gaia_version: "0.24.1" (hub/agents/gaia/python/gaia-agent.yaml:35) vs README:40, SKILL.md:547, CHANGELOG.md:298-299 ✅ all 0.24.1
No stale 0.23.1 left repo-wide grep ✅ only the test docstring and unrelated historical release notes
README lock claim grep -c PENDING-replace-with-real-sha256 hub/agents/gaia/npm/binaries.lock.json ✅ 0 — real hashes committed
"pipeline never publishes placeholders" .github/workflows/release_agent_gaia.yml:1067-1079 drops a stale placeholder entry rather than shipping it ✅ accurate
Test regexes re-run by hand against all three files ✅ each yields 0.24.1
SPEC §5.2 order read top to bottom ✅ intro → deletion → capture → dynamic selection

Issues Found

🟢 CHANGELOG assertion will pin frozen release notes to a moving number (hub/agents/gaia/python/tests/test_npm_doc_min_version.py:160-165)

_extract uses re.search, so it takes the first Python CLI X.Y.Z+ on \PATH` in the file. That works today because the changelog has exactly one entry (## [0.1.1] — unreleased). Once 0.1.1ships and the floor later moves to, say,0.25.0, the first match is the frozen 0.1.1entry — which correctly records0.24.1— and the test fails unless someone rewrites shipped release notes. Consider scoping the changelog match to the topmost##` section, or dropping the changelog from this guard and keeping it on README/SKILL (the two docs an integrator actually reads for "what do I install").

🟢 The fourth copy of the same number is unguarded (hub/agents/gaia/python/pyproject.toml:32)

amd-gaia>=0.24.1 is the same floor in a fourth file, and it's the one that decides what pip actually resolves. Both sibling agents guard it — hub/agents/chat/python/tests/test_dependency_floor.py:54-73 and hub/agents/email/python/tests/test_dependency_floor.py:90-103 — but hub/agents/gaia/python/tests/ has no equivalent. It happens to be correct right now. Worth adding the sibling test to this agent (separate PR is fine; the PR's stated "can't silently drift again" goal is only partly met without it).

🟢 Path walk is easier to read as an index (hub/agents/gaia/python/tests/test_npm_doc_min_version.py:126)

GAIA_DIR = Path(__file__).resolve().parents[2]

Matches test_transport_dispatch.py:204, which already uses parents[1] for the sibling lookup.

Strengths

  • The fix is the right shape. Rather than correcting three numbers and hoping, the PR adds the guard that makes the next drift a CI failure — and the docstring names the concrete failure (#4249, a version that was never released) instead of describing the mechanism.
  • The README lock paragraph is now true of both states. The old text described the committed lock as carrying placeholders, which stopped being true once real hashes landed; the rewrite separates "a committed release's lock" from "an unreleased working tree's lock" and keeps the security property (a placeholder blocks the fetch before any network call) intact rather than dropping it along with the stale claim.
  • §5.2 reordering fixes a genuine reading bug. The deletion paragraph referenced retention semantics the reader hadn't met yet, and the one-shot sentence had drifted onto the dynamic-skill-selection paragraph where it resolved to the wrong antecedent. Both now sit where their referents are defined.
  • Per CLAUDE.md's bundled-docs rule, all four npm doc surfaces carrying the claim were updated together rather than one at a time.

@kovtcharov-amd
kovtcharov-amd added this pull request to the merge queue Sep 25, 2026
Merged via the queue into amd:main with commit a55b07e Sep 25, 2026
29 checks passed
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.

docs(gaia-agent): docs require core 0.23.1, which was never released; manifest says 0.24.1

2 participants