Skip to content

fix(ops): read the CI gate from main-branch runs - #206

Closed
harlan-github-agent[bot] wants to merge 1 commit into
mainfrom
fix/issue-205
Closed

harlan-github-agent[bot] wants to merge 1 commit into
mainfrom
fix/issue-205

Conversation

@harlan-github-agent

Copy link
Copy Markdown
Contributor

🔗 Linked issue

Closes #205

❓ Type of change

  • 📖 Documentation
  • 🐞 Bug fix
  • 👌 Enhancement
  • ✨ New feature
  • 🧹 Chore
  • ⚠️ Breaking change

📚 Description

On 2026-09-08 the daily check-in archived the main Test gate as broken while main was green and deployed. The per-workflow read asked gh run list --workflow <name> with no branch filter, so pull-request runs filled the page newest-first and ten red runs on one PR branch read as a failed main gate.

The page the gate reads is now scoped to --branch main, which is the question the gate actually answers: is main healthy. The regression case builds the real per-workflow command, and a fake gh applies --branch server-side exactly like the CLI. Without the flag, the same history reports:

"state": { "_tag": "failure" }

With the flag, it reads through to main's green run and reports success.

One tradeoff a reviewer should see: the deploy workflow is triggered by workflow_run from every branch, and its guard skips itself off main. Those skipped PR-branch rows no longer reach the sample at all, so the head page spends its ten rows on real main runs. The deeper-sample fallback from the 2026-09-02 skipped-guard fix is untouched for anything that still skips on main.

🤖 AI disclosure: Harlan Agent Kit modified this description. My AI open-source policy.

…e page mixed pull-request runs in newest-first, so ten red PR Test runs archived a broken main gate while main was green and deployed.
@harlan-github-agent harlan-github-agent Bot added harlan-agent-running An Agent holds a Task on this issue or pull request right now. harlan-agent-review-required Pull request triage requires an adversarial Review for this head commit. labels Sep 12, 2026
@harlan-github-agent

harlan-github-agent Bot commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 CLOSED

Harlan Agent Kit posted this automated review. It is not Harlan's personal review or approval. AI open source policy. Last updated: 2026-09-14 08:12 UTC.

GitHub closed this pull request. No further automated Review will run.

@harlan-github-agent harlan-github-agent Bot added harlan-agent-blocked The automated Review found a material defect in this head commit. and removed harlan-agent-running An Agent holds a Task on this issue or pull request right now. harlan-agent-review-required Pull request triage requires an adversarial Review for this head commit. labels Sep 12, 2026
@harlan-zw

Copy link
Copy Markdown
Collaborator

Closed as a duplicate of #199, which scopes both CI reads to main. Triage by Claude Code agent.

@harlan-zw harlan-zw closed this Sep 14, 2026
@harlan-zw
harlan-zw deleted the fix/issue-205 branch September 14, 2026 08:10
@harlan-github-agent harlan-github-agent Bot removed the harlan-agent-blocked The automated Review found a material defect in this head commit. label Sep 14, 2026
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.

CI gate state reads red PR runs as main Test failures

1 participant