Skip to content

feat(reviewer): use subscription-backed Codex - #126

Merged
HemSoft merged 82 commits into
mainfrom
feature/issue-125-subscription-backed-codex
Aug 19, 2026
Merged

HemSoft merged 82 commits into
mainfrom
feature/issue-125-subscription-backed-codex

Conversation

@HemSoft

@HemSoft HemSoft commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • replace the HemSoft OpenRouter/Kimi reviewer runtime with native @codex review requests backed by the owner's ChatGPT subscription
  • authenticate clean comments and finding reviews against Codex identities and the current pull request head
  • preserve the strict Actions-owned SFL Reviewer Gate Runner while removing retired workflow, recovery, provider, and credential artifacts
  • keep deployment reconciliation scoped to approved HemSoft repositories; the pilot target is HemSoft/hs-buddy only

Validation

  • go vet ./...
  • go test ./...
  • go build ./...
  • every active deployment/tests/test-*.ps1
  • actionlint on canonical and staged observer workflows
  • PowerShell parser over every deployment script
  • live marker request and CLI deduplication on HemSoft/hs-buddy PR #427

Safety

  • no developer-documentation files or repository state were changed
  • no target repository deployment is included in this source PR

Closes #125

@chatgpt-codex-connector

Copy link
Copy Markdown

To use Codex here, create an environment for this repo.

@coderabbitai

coderabbitai Bot commented Aug 19, 2026 •

Copy link
Copy Markdown

Review Change Stack

Note

Reviews paused

It 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 reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Free

Run ID: b5ce9212-fc11-4f8b-974b-0ed46a1c072a

📥 Commits

Reviewing files that changed from the base of the PR and between ac52882 and 69403fb.

📒 Files selected for processing (13)
  • .github/workflows/sfl-pr-review-auto.yml
  • deployment/infrastructure/sfl-auditor.yml
  • deployment/infrastructure/sfl-pr-review-auto.yml
  • deployment/scripts/add-sfl-source-pin.ps1
  • deployment/tests/test-sfl-auditor.ps1
  • deployment/tests/test-sfl-pr-review.ps1
  • deployment/tests/test-source-pin-placement.ps1
  • docs/SFL-REVIEWER.md
  • gh-sfl/deployment_test.go
  • gh-sfl/hemsoft.go
  • gh-sfl/review.go
  • gh-sfl/review_test.go
  • gh-sfl/reviewer_contract_test.go

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Summary by CodeRabbit

  • New Features

    • Added subscription-backed Codex pull-request reviews with authenticated results tied to the latest commit.
    • gh sfl review supports retries and prevents duplicate requests for the same commit.
    • Review outcomes update the required gate for clean reviews, findings, stale results, and invalid evidence.
    • Added controls to pause and resume review observation.
    • Gates are invalidated when pull-request context or the base branch changes.
    • Added validation for supported repositories, branches, and current-head review requests.
  • Documentation

    • Updated setup, deployment, usage, and migration guidance for Codex reviews.
  • Cleanup

    • Removed retired reviewer and recovery workflows.

Walkthrough

The PR replaces the former SFL/Kimi review lifecycle with a subscription-backed Codex review command and observer. The observer authenticates Codex artifacts, validates current-head freshness, publishes immutable-head gate checks, and removes retired workflows, recovery infrastructure, and provider configuration.

Changes

Codex reviewer migration

Layer / File(s) Summary
Codex observer and immutable-head gate
.github/workflows/sfl-pr-review-auto.yml, deployment/infrastructure/sfl-pr-review-auto.yml
The observer validates Codex identity, provenance, reviewed commits, pull-request context, and result formats. It publishes immutable-head checks and invalidates stale results.
Head-bound review request command
gh-sfl/review.go, gh-sfl/review_test.go
gh sfl review validates the observer and pull request, suppresses duplicate requests, supports retries, and posts one authenticated Codex request for the current head.
Reviewer deployment and source preparation
deployment/scripts/*, deployment/sfl-manifest.schema.json, gh-sfl/init.go, gh-sfl/hemsoft.go, gh-sfl/sync.go, sfl.json
Deployment installs only the Codex observer and gate, prepares branch-bound workflow sources, removes retired workflows, and removes OpenRouter/Kimi configuration.
Release metadata, tests, and documentation
deployment/release-metadata.json, deployment/tests/*, gh-sfl/*_test.go, README.md, CATALOG.md, docs/*
Release metadata uses schema version 2. Tests and documentation describe Codex identity, observer behavior, result classification, deployment normalization, and immutable-head gating.
Operational status and preflight
gh-sfl/status.go, gh-sfl/reviewer_preflight.go, gh-sfl/toggle.go, deployment/infrastructure/sfl-auditor.yml
Status and preflight checks inspect the active Codex observer, its executed jobs, default branch, Actions policy, and current reviewer prerequisites.

Estimated code review effort: 5 (Critical) | ~120 minutes

Merge Risk: ⚪ Minimal · up to 69403

The PR changes the reviewer runtime and related deployment artifacts, but no actionable merge-blocking risk remains based on the supplied current-head evidence; it is merge-ready after normal checks and review.

Sequence Diagram(s)

sequenceDiagram
  participant Operator
  participant gh_sfl_review
  participant GitHub
  participant CodexObserver
  participant Gate
  Operator->>gh_sfl_review: request review for pull request
  gh_sfl_review->>GitHub: validate observer and fetch current head
  gh_sfl_review->>GitHub: post request with head and base markers
  CodexObserver->>GitHub: receive Codex comment or submitted review
  CodexObserver->>GitHub: resolve provenance and reviewed commit
  CodexObserver->>Gate: publish or invalidate immutable-head result
Loading

Poem

A rabbit checks the current head,
Codex leaves a trail of thread.
Stale results hop away,
Fresh gates mark the proper day.
Old workflows rest in clover green.
The observer keeps the review clean.


Note

🎁 Summarized by CodeRabbit Free

Your organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login.

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

@macroscopeapp

macroscopeapp Bot commented Aug 19, 2026

Copy link
Copy Markdown

Approvability

Verdict: Skipped

Macroscope did not run approvability analysis for this PR. Diff is too large for automated approval analysis, so this PR cannot be approved automatically.

Not approved because:

  • Credit balance exhausted. Approvability relies on correctness review in order to determine eligibility

Review your spending limits in Billing settings. You can add or adjust custom eligibility rules. Learn more.

@HemSoft

HemSoft commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@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: 8549f81280

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

Comment thread gh-sfl/review.go Resolved
Comment thread gh-sfl/init.go Resolved
@HemSoft

HemSoft commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@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: 6e2cd8ea75

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

Comment thread gh-sfl/sync.go Resolved
Comment thread gh-sfl/status.go Resolved
@HemSoft

HemSoft commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@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: d68975dc52

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

Comment thread gh-sfl/addons.go Resolved
@HemSoft

HemSoft commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: 142133f311

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

@HemSoft

HemSoft commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@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: 963db3a7ba

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

Comment thread gh-sfl/status.go Resolved
@HemSoft

HemSoft commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@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: b8f8b18b62

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

Comment thread gh-sfl/addons.go Resolved
Comment thread gh-sfl/review.go Resolved
@HemSoft

HemSoft commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@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: 0996628c4a

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

Comment thread gh-sfl/init.go Resolved
@HemSoft

HemSoft commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@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: 7c5519e853

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

@HemSoft

HemSoft commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@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: bd0433c7dc

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

@HemSoft

HemSoft commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@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: faa8f7571a

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

Comment thread gh-sfl/review.go Resolved
Comment thread gh-sfl/review.go Resolved
@HemSoft

HemSoft commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@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: fd1648b20d

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

Comment thread gh-sfl/review.go Resolved
@HemSoft

HemSoft commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@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: 2f534a3c85

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

@HemSoft

HemSoft commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@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: 17f84eecf5

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

@HemSoft

HemSoft commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@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: 3d7e9b60e4

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

@HemSoft

HemSoft commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@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: a5fe0d985a

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

@HemSoft

HemSoft commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@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: 0287df9567

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

@HemSoft

HemSoft commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: df7df5643a

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

@HemSoft
HemSoft merged commit 927f9f7 into main Aug 19, 2026
9 of 12 checks passed
@HemSoft
HemSoft deleted the feature/issue-125-subscription-backed-codex branch August 19, 2026 17:30
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.

Replace HemSoft OpenRouter PR reviews with subscription-backed Codex

1 participant