Skip to content

[ZEPPELIN-6501] Reference source-of-truth for toolchain versions in AGENTS.md#5284

Merged
tbonelee merged 1 commit into
apache:masterfrom
tbonelee:ZEPPELIN-6501-agents-version-pointers
Jul 8, 2026
Merged

[ZEPPELIN-6501] Reference source-of-truth for toolchain versions in AGENTS.md#5284
tbonelee merged 1 commit into
apache:masterfrom
tbonelee:ZEPPELIN-6501-agents-version-pointers

Conversation

@tbonelee

@tbonelee tbonelee commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

What

Resolves ZEPPELIN-6501. Rather than refreshing the hardcoded version numbers in AGENTS.md, this removes the version literals and points each one to its source of truth, so the file cannot drift again.

Changed spots: Project Overview (Language, Frontend, Version) and the Contributing → Prerequisites table (JDK, Maven, Node.js).

Value Now references
Java / Scala root pom.xml (java.version, scala.binary.version)
Project version root pom.xml <version>
Frontend (Angular / Node) zeppelin-web-angular/package.json (engines.node, @angular/core); Node build pin in pom.xml (node.version)
Maven .mvn/wrapper/maven-wrapper.properties (the ./mvnw wrapper pins it)

Why reference instead of updating the numbers

The listed values had already drifted — the frontend was documented as Angular 13 / Node 18 but is actually Angular 21 / Node ≥22.12. Simply bumping them to today's values would recreate the same problem at the next upgrade: a second copy that quietly goes stale (which is exactly why this issue exists).

AGENTS.md is read primarily by AI coding agents (and new contributors). For that audience a single source of truth is worth more than the convenience of seeing the number inline on one page — an agent can open package.json / pom.xml in one step, whereas a stale literal actively misleads it into wrong build instructions. So the doc now keeps the pointer and lets the canonical file own the value.

Editorial guidance that is not itself a version literal is preserved (e.g. "use exactly that JDK major, not a newer/older one").

Notes

  • CLAUDE.md is a symlink to AGENTS.md, so it is covered automatically.
  • Docs-only change; no build/test impact.

…GENTS.md

Replace hardcoded toolchain version literals in AGENTS.md with references
to their source of truth, so the doc cannot drift again:

- Java / Scala   -> root pom.xml (java.version, scala.binary.version)
- Project version-> root pom.xml <version>
- Frontend       -> zeppelin-web-angular/package.json (engines.node, @angular/core)
- Maven          -> .mvn/wrapper/maven-wrapper.properties (the ./mvnw wrapper pin)

The listed frontend versions had already gone stale (Angular 13 / Node 18
vs the actual Angular 21 / Node >=22.12). AGENTS.md is read by AI coding
agents, for which a single source of truth matters more than seeing the exact
number inline on one page -- a stale literal actively misleads. Editorial
guidance that is not a version literal is kept (e.g. "use exactly that JDK
major, not a newer/older one").

CLAUDE.md is a symlink to AGENTS.md and is covered automatically.
@pan3793

pan3793 commented Jul 8, 2026

Copy link
Copy Markdown
Member

I also find a lot of stale info in our docs, need to update ...

@tbonelee

tbonelee commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

@pan3793 Agree with that. I'll handle it right away

@tbonelee tbonelee merged commit 16c8732 into apache:master Jul 8, 2026
18 of 19 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.

2 participants