Skip to content

Include runtime versions in the unified agent session - #65320

Merged
pelikhan merged 1 commit into
mainfrom
copilot/collect-version-information
Oct 3, 2026
Merged

pelikhan merged 1 commit into
mainfrom
copilot/collect-version-information

Conversation

Copilot AI commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

The unified agent session omitted version identifiers already available in aw_info.json, making it harder to identify the components used in a run.

  • Session metadata: Add the gh-aw CLI, AWF, MCP gateway, engine, and agent version identifiers to the workflow.info event. Keep unavailable identifiers absent rather than inferring them.
  • Contract: Document the source-to-session field mapping and add regression coverage for collection and omission.

For example, workflow.info.data can now include:

{
  "cliVersion": "v1.2.3",
  "awfVersion": "v0.4.5",
  "mcpgVersion": "v0.6.7",
  "engineId": "copilot",
  "agentVersion": "v2.3.4"
}

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title Collect runtime versions in unified agent session Include runtime versions in the unified agent session Oct 3, 2026
Copilot AI requested a review from pelikhan October 3, 2026 13:58
@pelikhan
pelikhan marked this pull request as ready for review October 3, 2026 14:08
Copilot AI balanced review requested due to automatic review settings October 3, 2026 14:09
@pelikhan
pelikhan merged commit eafd5d5 into main Oct 3, 2026
4 checks passed
@pelikhan
pelikhan deleted the copilot/collect-version-information branch October 3, 2026 14:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Empty unavailable versions are retained despite the documented omission contract.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
What changed in this PR

Adds runtime component versions from aw_info.json to unified session metadata.

Changes:

  • Maps CLI, AWF, MCP gateway, engine, and agent identifiers.
  • Adds collection and normalization tests.
  • Documents the field mapping and omission contract.
File Description
docs/​src/​content/​docs/​specs/​unified-agent-session-specification.md Documents version mappings.
actions/​setup/​js/​unified_session.test.cjs Tests metadata collection.
actions/​setup/​js/​unified_session_payload.test.cjs Tests version normalization.
actions/​setup/​js/​unified_session_payload.cjs Adds normalized version fields.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +147 to +151
engineId: ["engineId", "engine_id"],
agentVersion: ["agentVersion", "agent_version"],
cliVersion: ["cliVersion", "cli_version"],
awfVersion: ["awfVersion", "awf_version"],
mcpgVersion: ["mcpgVersion", "awmg_version"],
@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.91.0

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.

3 participants