Skip to content

fix(gator): review new commits while CI dispatch is blocked - #6275

Open
johntmyers wants to merge 2 commits into
mainfrom
fix/6274-gator-review-before-ci/johntmyers
Open

johntmyers wants to merge 2 commits into
mainfrom
fix/6274-gator-review-before-ci/johntmyers

Conversation

@johntmyers

Copy link
Copy Markdown
Contributor

Summary

Separate code-review eligibility from CI readiness so workflow approval delays do not stall initial or follow-up reviews. Required CI and actual applicable test-suite execution still gate PR approval and all-clear.

Related Issue

Closes #6274.

Changes

  • Continue due reviews and reconcile findings while CI is missing, pending, failed, or awaiting approval. Keep review budgets, same-head rules, and execution authorization unchanged.
  • Preserve the guarded helper's manual approval requirement for PRs changing GitHub Actions machinery.
  • Allow the App approval guard to reuse a clean exact-head review blocked solely on test dispatch once required checks pass; reject unresolved findings, maintainer decisions, other blockers, or missing/failing/pending CI.
  • Update Gator and operator guidance and bump the immutable payload to 25.

Release Notes

Testing

  • Checks appropriate to the affected code and behavior pass
  • Unit tests added/updated
  • E2E tests added/updated (not run; no live watcher replacement)

Passed the feedback-ledger, same-SHA/App-approval guard, workflow-approval helper, review-team, and findings-validator suites. Markdown lint, YAML parsing, shell syntax, and diff whitespace checks passed. Added guard regression cases for a clean test-dispatch-blocked review after CI passes and rejection for pending/failing/missing CI, other blockers, maintainer decisions, and outstanding findings. Guidance checks cover continued review and the current-head CI/test gate.

Commit hooks were skipped under the operator's earlier authorization; focused checks ran separately. Existing watchers were not changed during implementation.

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Related Gator and operator guidance updated

Signed-off-by: John Myers <johntmyers@users.noreply.github.com>
@johntmyers johntmyers added area:build CI/CD workflows, releases, build targets, packaging, and artifact publication. topic:dx Making OpenShell easy to contribute to for humans and agents. labels Dec 6, 2026
@github-actions github-actions Bot added the state:accepted A maintainer decided OpenShell should pursue this issue label Dec 6, 2026

@gator-review-bot gator-review-bot 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.

gator-agent

PR Review Status

I reviewed the workflow guidance and App approval regression cases while Branch Checks ran. The guidance keeps code inspection separate from workflow execution authorization. The new approval recovery path has one blocking gap in how it verifies selected test suites.

Action required: Verify selected suite results on the reviewed head before the App reuses a test-dispatch-blocked review.

Blocking findings:

  • GATOR-ccb017f6-01: The App can reuse a test-dispatch-blocked review while a selected suite still lacks a passing result.

Carried findings:

  • None.

Non-blocking suggestions:

  • None.
Gator metadata
  • Validation: Accepted PR scope addresses #6274. PR Issue Acceptance passed.
  • Docs: Gator operator and agent guidance updated. No change to the OpenShell CLI, API, or sandbox interface.
  • Checks: Branch Checks pending. Other reported branch-required CI checks passed. Maintainer Approval is evaluated at handoff.
  • E2E: No runtime test suite selected for this agent-policy and guard change.
  • Head SHA: ccb017f6ab344547c187bafead91277904e5e983
  • Base SHA: 0fd185aad77f99149c8f81382a90293f8eaa88b3
  • Merge base SHA: 0fd185aad77f99149c8f81382a90293f8eaa88b3
  • Patch ID: 14a749d75b213d9dc42351ed1f793e4cf87c086b
  • Gator payload: 25
  • Review mode: initial
  • Previous reviewed SHA: none
  • Review budget exhausted: no
  • Maintainer decision required: no
  • Next state: gator:in-review

| (.summary_body // "") as $body
| [$body | scan("(?m)^- Next state: ([^\\r\\n]+)\\r?$")[] | gsub("`"; "")] as $next
| ($next | IN(["gator:watch-pipeline"], ["gator:approval-needed"], ["gator:merge-ready"])) or
($next == ["gator:blocked"] and

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

gator-agent

Warning · GATOR-ccb017f6-01 · Require selected suite results before reusing a blocked review

Summary. On a maintainer-authored PR, the App can now reuse a clean review recorded as blocked on test dispatch once the branch-required checks are green. The CI guard only sees checks in the branch rules and accepts skipped checks. A selected suite such as Kubernetes HA under test:e2e-kubernetes can still be missing or unsuccessful when the App submits approval.

Fix. Require successful execution on the reviewed head for every selected, applicable suite before reusing the blocked review. Preserve legitimate skips for inapplicable jobs.

Verify. Cover a clean blocked review with green branch-required checks. Approval must be withheld when a selected suite lacks a successful result on that head, and allowed once every applicable suite passes.

Agent context
  • Location: .agents/agents/gator/bin/gh:303
  • The new branch makes the existing required-check filter sufficient for a disposition the guard previously rejected.

@gator-review-bot gator-review-bot Bot added the gator:in-review Gator is reviewing or awaiting PR review feedback label Dec 6, 2026
Signed-off-by: John Myers <johntmyers@users.noreply.github.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:build CI/CD workflows, releases, build targets, packaging, and artifact publication. gator:in-review Gator is reviewing or awaiting PR review feedback state:accepted A maintainer decided OpenShell should pursue this issue topic:dx Making OpenShell easy to contribute to for humans and agents.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(gator): continue code review while CI dispatch is blocked

1 participant