Skip to content

Limit Codex feedback retry rounds#50

Merged
Pigbibi merged 1 commit into
mainfrom
codex-feedback-retry-limit
May 10, 2026
Merged

Limit Codex feedback retry rounds#50
Pigbibi merged 1 commit into
mainfrom
codex-feedback-retry-limit

Conversation

@Pigbibi

@Pigbibi Pigbibi commented May 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

This PR caps the automatic Codex feedback loop for monthly remediation PRs.

  • allow at most three automatic feedback rounds per source codex-bridge issue
  • append the current feedback round count to CI/review feedback comments
  • remove codex-bridge and leave a retry-limit comment once the cap is reached
  • document the stop condition in README and the operator runbook
  • add the dedicated Codex bridge worktree name to the repo-name alias map used by automation tests

Validation

  • python3 -m pytest tests/test_fanout_monthly_optimization_tasks.py tests/test_auto_optimization_pr_workflow_config.py tests/test_prepare_auto_optimization_pr.py -q
  • git diff --check

Refs QuantStrategyLab/AuditOrchestrator#1

@Pigbibi Pigbibi marked this pull request as ready for review May 10, 2026 02:30
@Pigbibi Pigbibi merged commit e898cee into main May 10, 2026
1 check passed
@Pigbibi Pigbibi deleted the codex-feedback-retry-limit branch May 10, 2026 02:30

@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: 12429e26f8

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

output_dir = Path("data/output/codex_feedback")
issue = json.loads((output_dir / "issue.json").read_text(encoding="utf-8"))
comments = [comment.get("body") or "" for comment in issue.get("comments", [])]
previous_rounds = sum(body.startswith("<!-- codex-pr-feedback:") for body in comments)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Reset retry counter when codex-bridge is reapplied

The retry cap is computed from the total number of existing issue comments that start with <!-- codex-pr-feedback: and never resets, so once an issue has reached the cap it will continue to hit the limit on every later failure/review even after an operator manually reapplies codex-bridge. That conflicts with the workflow’s own instruction to “re-apply the label only if another automated Codex pass is still appropriate,” because reapplying the label cannot actually grant new automatic rounds under this counting logic.

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