Skip to content

fix(aca-sandboxes skill): match shipped aca CLI (--rule, --label, secret set)#1748

Open
freezscholte wants to merge 1 commit into
microsoft:mainfrom
freezscholte:fix-aca-sandboxes-cli-drift
Open

fix(aca-sandboxes skill): match shipped aca CLI (--rule, --label, secret set)#1748
freezscholte wants to merge 1 commit into
microsoft:mainfrom
freezscholte:fix-aca-sandboxes-cli-drift

Conversation

@freezscholte
Copy link
Copy Markdown

Summary

The aca-sandboxes skill documents three command forms that hard-error on the shipped aca 1.0.0-preview.1. This corrects them to what the CLI actually accepts, verified live against the CLI.

Skill said CLI reality (preview.1) Fix
egress set … --host-allow "*.github.com" error: unexpected argument '--host-allow'; egress set --help exposes only --rule --rule "*.github.com:Allow"
sandbox create … --labels "k=v,k2=v2" error: unexpected argument '--labels'tip: a similar argument exists: '--label' --label k=v --label k2=v2 (repeatable)
sandboxgroup secret upsert … --values "K=V" no upsert subcommand (secret = list/show/set/remove/delete); no --values secret set --name X --key K --value V

Verified live against aca 1.0.0-preview.1: egress show reflects a --rule-built policy (including a Transform inject-from-secret rule); sandbox list -l k=v returns sandboxes created with --label; secret list shows a bundle created with secret set.

Internal-consistency note: the skill already used the correct --rule "*.github.com:Allow" in one "Try asking" row while using --host-allow elsewhere — i.e. drift from the shipped CLI rather than a deliberate version pin. Anti-cues were added so the correct forms are taught explicitly.

Files

  • plugin/skills/aca-sandboxes/SKILL.md — egress rows, create knobs, capability table, the sandboxgroup verb list.
  • plugin/skills/aca-sandboxes/references/scenarios.md — the Copilot-agent egress block.

Three documented forms hard-error on `aca 1.0.0-preview.1`; corrected to the
forms the CLI actually accepts (verified live against the CLI):

- egress allow-list: `--host-allow "<host>"` → `--rule "<pattern>:Allow"`
  (the CLI's own `egress set --help` example and `egress init` template use
  `--rule`; `--host-allow` returns "unexpected argument"). Fixed in the SKILL.md
  egress rows + the copilot scenario in scenarios.md. Added an explicit anti-cue.
- sandbox labels: `--labels "k=v,k2=v2"` → `--label k=v --label k2=v2`
  (repeatable; the CLI suggests `--label` and rejects `--labels`).
- group secrets: `secret upsert --name X --values "K=V"` →
  `secret set --name X --key K --value V` (there is no `upsert` subcommand;
  `secret` exposes list/show/set/remove/delete).

The skill was internally inconsistent (one "Try asking" row already used
`--rule`), which confirms drift from the shipped CLI rather than a version pin.
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