fix(agents): stop the format guard inverting its own label checks - #2994
Conversation
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughThe issue-format guard workflows now warn when the validator is missing and materialize label queries before matching labels in cleanup and restoration paths. Worker attempt metadata now records an updated emission timestamp for PR 2994. ChangesIssue format guard
Worker attempt metadata
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related issues
Possibly related PRs
Suggested labels: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Automated Status SummaryHead SHA: d3dd85e
Coverage Overview
Updated automatically; will refresh on subsequent CI/Docker completions. Keepalive checklistScopeNo scope information available Tasks
Acceptance criteria
|
There was a problem hiding this comment.
Pull request overview
Fixes a correctness bug in the issue format guard workflow where gh … | grep -q pipelines could invert their condition under set -o pipefail (SIGPIPE on gh after grep -q exits early), leading to incorrect label-branch decisions and, in one case, repeated re-triggering behavior.
Changes:
- Replaces
gh … | grep -qx …label checks with “materialize to file, thengrepthe file” to avoid pipefail/SIGPIPE inversion. - Adds an explicit
::warning::annotation when.github/scripts/issue_format.pyis missing, while preserving the existing “skip without failing” behavior. - Applies identical changes to both the source workflow and the consumer template copy.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
.github/workflows/agents-issue-format-guard.yml |
Avoids pipefail inversion by writing gh issue view label output to files before grep, and emits a warning when the validator script is missing. |
templates/consumer-repo/.github/workflows/agents-issue-format-guard.yml |
Mirrors the same correctness and observability fixes in the consumer template workflow. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
316c45f to
0db11d8
Compare
|
Runner dispatch state for codex on PR #2994. Do not edit. |
Closer advance (cursor)Rebased onto current Conflict resolution kept:
Validation: root/consumer YAML parse OK, byte parity OK, PR body updated so this no longer claims |
🤖 Keepalive Loop StatusPR #2994 | Agent: Codex | Iteration 0/12 Current State
🔍 Failure Classification| Error type | infrastructure |
|
Keepalive Work Log (click to expand)
|
Materialise label lists before grep under pipefail, keep main's live body revalidation, and warn when the validator script is absent mid-sync.
affc253 to
3b7c598
Compare
|
Closer recovery: rebased this branch onto current main and force-pushed exact head |
Workflow source neededPR #2994 needs either a linked GitHub issue or one valid non-issue Workflow Source before PR metadata automation can manage it safely. Please do one of:
Once a valid source is present, this warning will not be reposted. |
Provider Comparison ReportProvider Summary
📋 Full Provider Details (click to expand)openai
anthropic
Agreement
Disagreement
Unique Insights
🔍 LangSmith Traces |
Closer verifier disposition (wrong-AC / false completeness FAIL)Provider report on merged PR #2994 (comment 5229804806): openai FAIL (97%) / anthropic CONCERNS (55%). Audited against the landed diff and PR title/body (not the stale #463 CLI-agent planning context the evaluators were given):
Disposition: accept as delivered for the actual pipefail/guard scope; treat provider FAIL/CONCERNS as false-positive against wrong ACs. No source issue to close. No bounded follow-up opened. |
Automated Status Summary
Scope
Address unmet acceptance criteria from PR #463.
Original scope:
GITHUB_STEP_SUMMARYoutput so iteration results are visible in the Actions UIContext for Agent
Related Issues/PRs
Tasks
agent:codexlabelagents-keepalive-loop.ymlafter agent runbuildStatusBlock()inagents_pr_meta_update_body.jsto acceptagentTypeparameteragentTypeis set (CLI agent): hide workflow table, hide head SHA/required checksagent:*label):<!-- gate-summary: -->comment posting (use step summary instead)<!-- keepalive-round: N -->instruction comments (task appendix replaces this)<!-- keepalive-loop-summary -->to be the single source of truthagent:*label):<!-- gate-summary: -->commentagent_typeoutput to detect job so downstream workflows know the modeagents-pr-meta.ymlto conditionally skip gate summary for CLI agent PRsAcceptance criteria
Summary by CodeRabbit