Skip to content

t18648: GH#34281 route stale-approved external parents past stage 0b to parent close - #34284

Merged
marcusquinn merged 1 commit into
mainfrom
bugfix/parent-close-stage0b-route
Oct 10, 2026
Merged

marcusquinn merged 1 commit into
mainfrom
bugfix/parent-close-stage0b-route

Conversation

@marcusquinn

Copy link
Copy Markdown
Owner

Summary

Follow-up to #34282. Its stale-approved terminal-close basis lives in stage 4, but the single-pass router in pulse-issue-reconcile.sh returned at stage 0b for every STALE_APPROVAL external issue, so stage 4 was never reached and #34180/#34125 stayed open after deploy. This routes only an unmutated STALE_APPROVAL parent-task issue (no NMR/persistent label) straight from stage 0b to stage 4. It never runs stages 1-3: both parents carry status:available, so a general fall-through would have exposed stage 1. Stage 4 keeps its per-mutation live gates: close needs graph-backed children, and nudges/phase filing/escalation/backfill still require VERIFIED.

Files Changed

.agents/scripts/pulse-issue-reconcile-actions.sh, .agents/scripts/pulse-issue-reconcile.sh, .agents/scripts/tests/test-pulse-issue-reconcile.sh

Runtime Testing

  • Risk level: High
  • Verification: runtime-verified — Runtime: ran the branch's real _pir_reconcile_issue_stages against live GitHub data for security: enforce local-only processing and stop-and-notify on failed model readiness #34125 and Automate JavaScript worktree tooling readiness in the harness with durable project policy #34180, with all writes intercepted (in-shell gh function plus PATH shim for subprocesses). Both issues went from stage 0b (STALE_APPROVAL) to stage 4, passed live trust re-read, child verification, close-contract, snapshot-stability and graph-evidence gates, and reached exactly one write: 'gh issue close ' (intercepted). No label edits, nudges, comments or stage 1-3 actions were attempted, and both issues stayed untouched (updatedAt unchanged). Tests: test-pulse-issue-reconcile.sh 36/36. The new test_stage0b_routes_stale_approved_parent_to_stage4 runs the real router body and fails without this change (stale-parent:[]). Negative cases (non-parent, NMR, NO_APPROVAL/mutated, MALFORMED) never reach any stage. test-pulse-reconcile-parent-task-subissue-graph.sh 46/46. shellcheck -x clean.

Resolves #34281


aidevops.sh v3.39.0 plugin for OpenCode v1.18.35 with claude-opus-5-5 spent 4h 7m and 435,436 tokens on this with the user in an interactive session.

…to parent close

PR #34282 added a stale-approved terminal-close basis in stage 4, but the single-pass router consumed blocked external issues at stage 0b and returned before stage 4, so the basis was unreachable. Route only unmutated STALE_APPROVAL parent-task issues straight to stage 4 (never stages 1-3); stage 4 keeps per-mutation live gates.
@marcusquinn marcusquinn added the origin:interactive Created by interactive user session label Oct 10, 2026
@coderabbitai

coderabbitai Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (1)

🚫 Excluded labels (none allowed) (1)
  • no-review

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Repository: marcusquinn/aidevops/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e945e479-5ff4-49b9-ab13-3823cffa1cc8

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@marcusquinn

Copy link
Copy Markdown
Owner Author

Completion Summary


aidevops.sh v3.39.0 plugin for OpenCode v1.18.35 with claude-opus-5-5 spent 4h 7m and 435,436 tokens on this with the user in an interactive session.

@marcusquinn marcusquinn added the status:in-review Non-draft PR ready for review/merge label Oct 10, 2026
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@github-actions

Copy link
Copy Markdown
Contributor

Qlty Smell Regression Gate

✅ No change — smell count unchanged.

Metric Base (8833a8f) Head (6607a98) Delta
Total smells 65 65 +0

@github-actions

Copy link
Copy Markdown
Contributor

Shell Function Complexity Regression Gate

✅ No regression — no new function(s) >100 lines.

Metric Base (8833a8f) Head (6607a98)
Total function(s) >100 lines 0 0

@github-actions

Copy link
Copy Markdown
Contributor

Bash 3.2 Compatibility Regression Gate

✅ No regression — no new bash 3.2-incompatible construct(s).

Metric Base (8833a8f) Head (6607a98)
Total bash 3.2-incompatible construct(s) 0 0

@github-actions

Copy link
Copy Markdown
Contributor

🔍 Code Quality Report

�[0;35m[MONITOR]�[0m Code Review Monitoring Report

SonarCloud: 0 bugs, 0 vulnerabilities, 1 code smells

Sat Oct 10 21:42:24 UTC 2026: Code review monitoring started
Sat Oct 10 21:42:25 UTC 2026: SonarCloud - Bugs: 0, Vulnerabilities: 0, Code Smells: 1
Sat Oct 10 21:44:59 UTC 2026: Codacy analysis completed - issues found (exit 2)

📈 Current Quality Metrics

  • BUGS: 0
  • CODE SMELLS: 1
  • VULNERABILITIES: 0

Generated on: Sat Oct 10 21:45:00 UTC 2026


Generated by AI DevOps Framework Code Review Monitoring

@github-actions

Copy link
Copy Markdown
Contributor

Shell Nesting Depth Regression Gate

✅ No regression — no new file(s) with nesting depth >8.

Metric Base (8833a8f) Head (6607a98)
Total file(s) with nesting depth >8 0 0

@github-actions

Copy link
Copy Markdown
Contributor

File Size Regression Gate

✅ No regression — no new non-README Markdown file(s) >1000 lines at root / >500 elsewhere.

Metric Base (8833a8f) Head (6607a98)
Total non-README Markdown file(s) >1000 lines at root / >500 elsewhere 0 0

@marcusquinn
marcusquinn marked this pull request as ready for review October 10, 2026 21:47
@marcusquinn
marcusquinn merged commit b406e82 into main Oct 10, 2026
82 of 84 checks passed
@marcusquinn
marcusquinn deleted the bugfix/parent-close-stage0b-route branch October 10, 2026 21:48
@github-actions github-actions Bot added status:done Task is complete and removed status:in-review Non-draft PR ready for review/merge labels Oct 10, 2026
marcusquinn pushed a commit that referenced this pull request Oct 10, 2026
Planning-Publication-ID: 93e07c6940c68d69597a5af5c852fc68c30d2586
Planning-Publication-Handoff-ID: 4450a206b931610d4075323fd4874fe3952a4c63
alex-solovyev pushed a commit that referenced this pull request Oct 10, 2026
Planning-Publication-ID: 93e07c6940c68d69597a5af5c852fc68c30d2586
Planning-Publication-Handoff-ID: 4450a206b931610d4075323fd4874fe3952a4c63

Co-authored-by: GitHub Actions <actions@github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

origin:interactive Created by interactive user session status:done Task is complete

Projects

None yet

Development

Successfully merging this pull request may close these issues.

t18648: Approved external parent-task issues never auto-close after children complete...

1 participant