Skip to content

unbloat-docs workflow: YAML parse error - mapping value not allowed in engine block #203

@yoursweetginger

Description

@yoursweetginger

Description

When running gh aw add-wizard githubnext/agentics/unbloat-docs, the workflow fails to stage with a YAML parse error.

Error

✗ .github/workflows/unbloat-docs.md:25:9: error: mapping value is not allowed in this context
  22 | strict: true
  23 | 
  24 | # AI engine configuration
> 25 | engine: copilot
  26 |   id: claude
               ^
  27 |   max-turns: 90
  28 | 
✗ failed to add workflow: failed to add workflows: failed to stage workflow files: failed to stage files: exit status 128

Expected Behavior

The workflow should be added successfully without YAML errors.

Root Cause

In the generated unbloat-docs.md frontmatter, the engine field is set to copilot as a scalar value on line 25, but subsequent lines attempt to add nested keys (id: claude, max-turns: 90) with indentation under it. This is invalid YAML — a scalar value cannot also have child mappings.

The frontmatter likely intends:

engine:
  name: copilot
  id: claude
  max-turns: 90

Environment

  • Tool: gh aw add-wizard
  • Workflow: githubnext/agentics/unbloat-docs
  • OS: Linux
  • Engine selected: copilot (with existing COPILOT_GITHUB_TOKEN secret)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions