Skip to content

fix(pattern): harden dev2merge timeout fallback and workflow sync#294

Merged
RyderFreeman4Logos merged 6 commits intomainfrom
fix/dev2merge-timeout-fallback-reflection
Mar 1, 2026
Merged

fix(pattern): harden dev2merge timeout fallback and workflow sync#294
RyderFreeman4Logos merged 6 commits intomainfrom
fix/dev2merge-timeout-fallback-reflection

Conversation

@RyderFreeman4Logos
Copy link
Owner

@RyderFreeman4Logos RyderFreeman4Logos commented Mar 1, 2026

Summary

  • add cloud-review timeout fallback to local heterogeneous csa review on main...HEAD
  • add mandatory review reflection artifact for findings (RULE_GAP/WORKFLOW_GAP/EXECUTION_GAP)
  • reduce poll heartbeat frequency to 120s to cut context/token noise
  • fix dev2merge/dev-to-merge step-output mappings and numbering synchronization
  • bump workspace version to 0.1.59

Validation

  • cargo run -p weave -- compile patterns/dev2merge/PATTERN.md --output patterns/dev2merge/workflow.toml
  • cargo run -p weave -- compile patterns/dev-to-merge/PATTERN.md --output patterns/dev-to-merge/workflow.toml
  • cargo run -p weave -- compile-all --dir patterns/dev2merge
  • cargo run -p weave -- compile-all --dir patterns/dev-to-merge
  • csa review --diff
  • csa review --range main...HEAD

@RyderFreeman4Logos
Copy link
Owner Author

@codex review

Copy link

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

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: 1aca3b81b5

ℹ️ 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".

exit 1
echo "INFO: Timed out waiting for cloud bot response after ${TIMEOUT}s; running local fallback review." >&2
set +e
LOCAL_REVIEW_OUTPUT="$(csa review --range main...HEAD --tool auto 2>&1)"

Choose a reason for hiding this comment

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

P1 Badge Replace invalid --tool auto in fallback review command

This timeout fallback calls csa review --range main...HEAD --tool auto, but csa review parses --tool as ToolName (valid values are explicit tools like codex, claude-code, gemini-cli, opencode), so auto is rejected at CLI parse time and the fallback never runs. In the cloud-timeout path this causes the script to hit the Local fallback review failed unexpectedly branch and abort instead of recovering, which defeats the main reliability change; the same issue appears in the re-trigger fallback and in the mirrored dev-to-merge workflow.

Useful? React with 👍 / 👎.

@RyderFreeman4Logos
Copy link
Owner Author

@codex review

@RyderFreeman4Logos RyderFreeman4Logos merged commit 163fbb0 into main Mar 1, 2026
6 checks passed
@RyderFreeman4Logos RyderFreeman4Logos deleted the fix/dev2merge-timeout-fallback-reflection branch March 1, 2026 05:58
Copy link

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

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: a6a3d54d06

ℹ️ 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".

Comment on lines 187 to +188
title = "Include mktd"
tool = "weave"
prompt = "mktd"
prompt = '''

Choose a reason for hiding this comment

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

P1 Badge Set Include mktd step tool to bash

The Include mktd step no longer declares tool = "bash", so csa plan resolves it through the default CSA-tool path (see resolve_step_tool fallback) instead of executing the fenced script directly. In that mode the prompt is treated as model input with ${...} substitution, so the intended deterministic gate (csa run --skill mktd plus TODO file validation and MKTD_TODO_* output) may be skipped or mangled, which can let the workflow continue without actually enforcing the required mktd plan checks (the same omission is mirrored in patterns/dev-to-merge/workflow.toml).

Useful? React with 👍 / 👎.

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