Skip to content

fix(clone): finish renaming actionMode Automatic to Autonomous - #377

Open
jlinenkohl wants to merge 1 commit into
microsoft:mainfrom
jlinenkohl:fix-actionmode-rename
Open

jlinenkohl wants to merge 1 commit into
microsoft:mainfrom
jlinenkohl:fix-actionmode-rename

Conversation

@jlinenkohl

Copy link
Copy Markdown

0b900d8 changed the Bicep Myouki (@allowed) list from ['Review', 'Automatic'] to ['Review', 'Autonomous'], but clone-agent.sh was not updated with it. The two halves now disagree, and between them they reject every value except Review:

--action-mode Autonomous rejected by clone-agent.sh, which still validates
against the old name
--action-mode Automatic accepted by clone-agent.sh, then rejected by the
template at deploy time as not in Myouki (@allowed)

The safety warning at the High access level is tied to the same literal, so it silently stopped firing for exactly the configuration it exists to warn about: an agent that can act without human approval.

This updates the validation, the usage text, the error message and the warning to the current name. The old spelling is still accepted and mapped forward, so an export taken before the rename keeps working rather than failing validation.

The remaining Automatic references are a different parameter, defaultModelName, and are deliberately untouched.

0b900d8 changed the Bicep @allowed list from ['Review', 'Automatic'] to
['Review', 'Autonomous'], but clone-agent.sh was not updated with it. The two
halves now disagree, and between them they reject every value except Review:

  --action-mode Autonomous   rejected by clone-agent.sh, which still validates
                             against the old name
  --action-mode Automatic    accepted by clone-agent.sh, then rejected by the
                             template at deploy time as not in @allowed

The safety warning at the High access level is tied to the same literal, so it
silently stopped firing for exactly the configuration it exists to warn about:
an agent that can act without human approval.

This updates the validation, the usage text, the error message and the warning
to the current name. The old spelling is still accepted and mapped forward, so
an export taken before the rename keeps working rather than failing validation.

The remaining Automatic references are a different parameter, defaultModelName,
and are deliberately untouched.
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