Skip to content

Add verification toggle to orchestrate preset - #6

Merged
nsticco merged 2 commits into
mainfrom
codex/orchestrate-verification-toggle
Jul 7, 2026
Merged

nsticco merged 2 commits into
mainfrom
codex/orchestrate-verification-toggle

Conversation

@nsticco

@nsticco nsticco commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add a Run Verification boolean input to the bundled moonspec-orchestrate preset
  • gate the verify and doc reconciliation steps on that input

Tests

  • Covered from MoonMind targeted preset expansion and startup seeding tests against this submodule commit.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a new boolean input run_verify to conditionally enable or disable the verification and documentation reconciliation steps. The feedback highlights an issue where quoting the Jinja expression "{{ inputs.run_verify }}" results in a string value in YAML, which may evaluate to truthy even when false. The reviewer suggests using a Jinja control block to output an unquoted boolean value instead.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

requiredCapabilities:
- git
- title: Verify completion
enabled: "{{ inputs.run_verify }}"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

high

Using double quotes around the Jinja expression enabled: "{{ inputs.run_verify }}" will render as enabled: "True" or enabled: "False". In YAML, quoted values are parsed as strings rather than booleans. In many orchestration engines or languages (like Python, JavaScript, or Go), any non-empty string (including "False" or "false") evaluates to True in boolean contexts, which would cause this step to run even when run_verify is set to false.\n\nTo ensure it is parsed as a proper boolean while remaining valid YAML before rendering, you can use a Jinja control block:

    enabled: {% if inputs.run_verify %}true{% else %}false{% endif %}

id: moonspec-verify
args: {}
- title: Reconcile declarative docs
enabled: "{{ inputs.run_verify }}"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

high

Using double quotes around the Jinja expression enabled: "{{ inputs.run_verify }}" will render as enabled: "True" or enabled: "False". In YAML, quoted values are parsed as strings rather than booleans. In many orchestration engines or languages (like Python, JavaScript, or Go), any non-empty string (including "False" or "false") evaluates to True in boolean contexts, which would cause this step to run even when run_verify is set to false.\n\nTo ensure it is parsed as a proper boolean while remaining valid YAML before rendering, you can use a Jinja control block:

    enabled: {% if inputs.run_verify %}true{% else %}false{% endif %}

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

馃挕 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6a804eeb2f

鈩癸笍 About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 馃憤.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

requiredCapabilities:
- git
- title: Verify completion
enabled: "{{ inputs.run_verify }}"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Honor run_verify before implementation

When a user sets Run Verification to false on a fresh or stale feature, this only disables the explicit verify step here; the preset still requires tasks.md to include final /moonspec.verify work (bundle/presets/moonspec-orchestrate.yaml:66), and moonspec-implement runs /moonspec.verify whenever that task is present (bundle/skills/moonspec-implement/SKILL.md:179). As a result, the new opt-out still performs verification during the implementation step, defeating the toggle for environments where verification is intentionally skipped.

Useful? React with 馃憤聽/ 馃憥.

Address PR #6 review feedback for the orchestrate verification toggle:
- Render the Verify and Reconcile step `enabled` fields as an empty
  (falsy) string when run_verify is false instead of a quoted "False"
  string, which orchestration engines treat as truthy. Keeps the preset
  valid raw YAML so validate_bundle and the bundle tests still parse it.
- Honor run_verify end-to-end: the task-breakdown step no longer adds a
  final /moonspec.verify task and the implement step does not run
  /moonspec.verify when the toggle is off, so verification cannot leak
  through the implementation step.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@nsticco
nsticco merged commit 7e60dc8 into main Jul 7, 2026
1 check passed
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