Environment
- PAC CLI
2.11.2+g47bc199
- Windows 11
- Dataverse environment in EMEA
Summary
pac copilot pack refuses to package an agent workspace that contains a
workflows/ directory. The same directory is produced by pac copilot clone,
recreated by pac copilot pull, and required by pac copilot push for an
agent flow definition to reach the environment.
The result is that a workspace which is valid for the inner development loop is
invalid for packaging, and the transition is silent until pack fails.
Repro
-
Create or clone an agent workspace that contains an agent flow:
my-agent/
.mcs/
agent.mcs.yml
settings.mcs.yml
topics/
workflows/MyFlow-<guid>/
metadata.yml
workflow.json
-
Run:
pac copilot pack --publisher-prefix <prefix> --project-dir my-agent --output-path out
Actual
Error: ... is not a valid agent workspace. Unsupported directory: workflows/.
Expected
Either the directory is packaged, or it is ignored with a warning. Failing hard
on a directory that the tool itself creates is surprising.
Isolation
The cause was isolated with an A/B test: the identical workspace with
workflows/ removed packs successfully and produces a valid solution zip
containing bots/ and botcomponents/. Re-adding the directory reproduces the
error every time.
pac copilot pull recreates the directory on every pull, so a workspace that
was made packable reverts to unpackable after the next sync.
Why this matters for this repo
The plugin covers clone, push, pull and validation, but a CI pipeline that
ends in pac copilot pack plus pac solution import hits this immediately.
A check in the validate or manage-agent skill - "workspace contains
workflows/, pack will refuse it" - would catch it before the pipeline does.
Happy to contribute the check if that would be useful.
Environment
2.11.2+g47bc199Summary
pac copilot packrefuses to package an agent workspace that contains aworkflows/directory. The same directory is produced bypac copilot clone,recreated by
pac copilot pull, and required bypac copilot pushfor anagent flow definition to reach the environment.
The result is that a workspace which is valid for the inner development loop is
invalid for packaging, and the transition is silent until
packfails.Repro
Create or clone an agent workspace that contains an agent flow:
Run:
Actual
Expected
Either the directory is packaged, or it is ignored with a warning. Failing hard
on a directory that the tool itself creates is surprising.
Isolation
The cause was isolated with an A/B test: the identical workspace with
workflows/removed packs successfully and produces a valid solution zipcontaining
bots/andbotcomponents/. Re-adding the directory reproduces theerror every time.
pac copilot pullrecreates the directory on every pull, so a workspace thatwas made packable reverts to unpackable after the next sync.
Why this matters for this repo
The plugin covers
clone,push,pulland validation, but a CI pipeline thatends in
pac copilot packpluspac solution importhits this immediately.A check in the
validateormanage-agentskill - "workspace containsworkflows/,packwill refuse it" - would catch it before the pipeline does.Happy to contribute the check if that would be useful.