Skip to content

CoR: Always ensure deploy skills are in the workspace and record their versions in telemetry - #1657

Open
Matthew Fisher (MicroFish91) wants to merge 2 commits into
feat/CoRfrom
mwf/cor-deploy-skills-local
Open

CoR: Always ensure deploy skills are in the workspace and record their versions in telemetry#1657
Matthew Fisher (MicroFish91) wants to merge 2 commits into
feat/CoRfrom
mwf/cor-deploy-skills-local

Conversation

@MicroFish91

@MicroFish91 Matthew Fisher (MicroFish91) commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

No description provided.

…elemetry

The deploy prerequisite gate previously treated a global `~/.agents` copy of the
`azure-prepare` skill as sufficient, so a user with the skill installed globally but
not in their workspace never got a workspace copy. Telemetry also only recorded a
`copilotForAzureSkillInstalled` boolean, with no per-skill version.

- Key the "already installed / skip install" check off the workspace `.agents` copy
  only. A global copy no longer short-circuits the local install, so the gate always
  guarantees a workspace copy. Existing local copies are not force-refreshed.
- Record the semver of `azure-prepare`, `azure-validate`, and `azure-deploy` parsed
  from each skill's `SKILL.md` frontmatter `metadata.version`, on every deploy-stage
  run. Missing/unreadable versions record as `unknown` and never crash the gate.
  `computedHash` / `skills-lock.json` values are deliberately not recorded.
- Add unit tests for the workspace-only detection and `metadata.version` parsing,
  including the missing-version fallback.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@MicroFish91
Matthew Fisher (MicroFish91) requested a review from a team as a code owner August 5, 2026 19:59
@MicroFish91
Matthew Fisher (MicroFish91) marked this pull request as draft August 5, 2026 20:15
@MicroFish91 Matthew Fisher (MicroFish91) changed the title CoR: guarantee workspace deploy skills and record their versions in telemetry CoR: Always ensure deploy skills are in the workspace and record their versions in telemetry Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Feedback for my agent

Comment thread src/commands/copilotOnRails/deploymentPrerequisites.ts Outdated
Comment thread src/commands/copilotOnRails/deploymentPrerequisites.ts Outdated
Comment thread src/commands/copilotOnRails/deploymentPrerequisites.ts Outdated
Comment thread src/commands/copilotOnRails/deploymentPrerequisites.ts Outdated
Comment thread src/commands/copilotOnRails/deploymentPrerequisites.ts Outdated
Per PR review feedback:
- Copilot on Rails is single-root, so the workspace `.agents` helpers now default to
  `workspaceFolders?.[0]` and pass a single root instead of an array. Renamed
  `getWorkspaceAgentsRoots` -> `getWorkspaceAgentsRoot` (returns `Uri | undefined`)
  and `skillExistsInRoots` -> `skillExistsInRoot`; `readWorkspaceSkillVersion` and
  `findSkillMarkdown` take a single root. The single-root note lives above the return.
- Removed comments whose intent is already conveyed by the function/name.
- Updated tests to the single-root signatures and added no-root cases.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@MicroFish91
Matthew Fisher (MicroFish91) marked this pull request as ready for review August 7, 2026 00:50
@MicroFish91

Matthew Fisher (MicroFish91) commented Aug 7, 2026

Copy link
Copy Markdown
Contributor Author

Nathan (@nturinski) I think you mentioned a new deploy skill in this flow that needs to be added, we should add that version to the telemetry list as well once we update that

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