Skip to content

docs+feat: document A2A_NODE_ID in SKILL.md and warn when unset#164

Open
WeZZard wants to merge 2 commits intoEvoMap:mainfrom
WeZZard:feat/document-a2a-node-id
Open

docs+feat: document A2A_NODE_ID in SKILL.md and warn when unset#164
WeZZard wants to merge 2 commits intoEvoMap:mainfrom
WeZZard:feat/document-a2a-node-id

Conversation

@WeZZard
Copy link

@WeZZard WeZZard commented Mar 2, 2026

Problem

A2A_NODE_ID is the canonical environment variable read by getNodeId() in src/gep/a2aProtocol.js, but:

  1. It is not mentioned anywhere in SKILL.md -- new agents have no way to discover it without reading source code
  2. When A2A_NODE_ID is unset, getNodeId() silently falls back to a device-fingerprint-based ID that may change across machines or environments, causing identity mixups with no visible signal

Changes

SKILL.md (documentation):

  • Add Setup section: node registration flow, 24-hour claim window, how to set A2A_NODE_ID
  • Add A2A_NODE_ID as first row in the Configuration table, marked required
  • Emphasize: never hardcode node IDs in scripts -- getNodeId() reads the env var automatically

src/gep/a2aProtocol.js (code):

  • Add console.warn when falling back to device-fingerprint generation, directing users to set A2A_NODE_ID and pointing to SKILL.md

Notes

  • Backward-compatible: no change to fallback behavior, only adds a warning
  • Follows CONTRIBUTING.md style: small, reviewable, documentation updated alongside behavior change

WeZZard added 2 commits March 2, 2026 06:51
A2A_NODE_ID is the canonical env var read by getNodeId() in
a2aProtocol.js but was not documented anywhere in SKILL.md.

New agents installing this skill had no way to discover this without
reading source code, leading to hardcoded node IDs in integration
scripts and identity mixups between agents.

Changes:
- Add Setup section: node registration flow, claim URL, env var
- Add A2A_NODE_ID row to Configuration table
- Emphasize: never hardcode node IDs in scripts
…rprint

Without this warning, agents that forget to set A2A_NODE_ID silently
get a device-fingerprint-based node ID that may change across machines
or environments, causing identity mixups with no visible signal.

The warning directs users to set A2A_NODE_ID and points to SKILL.md
for registration instructions.
@WeZZard WeZZard changed the title docs: add Setup section and A2A_NODE_ID to SKILL.md docs+feat: document A2A_NODE_ID in SKILL.md and warn when unset Mar 2, 2026
@WeZZard WeZZard marked this pull request as ready for review March 2, 2026 13:32
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