Skip to content

chore: deploy Set it Free Loop (review tier, v2.0.0) - #4

Merged
HemSoft merged 1 commit into
mainfrom
sfl/tier-review-22db33a
Aug 3, 2026
Merged

HemSoft merged 1 commit into
mainfrom
sfl/tier-review-22db33a

Conversation

@HemSoft

@HemSoft HemSoft commented Aug 3, 2026 •

Copy link
Copy Markdown
Collaborator

Set it Free Loop — Deployment

Version: 2.0.0
Tier: review
Source SHA: 22db33a7b5de7a0431b506b29a1f8e2d7817ba3d
Engine policy: codex-gpt-55-high

Components deployed

  • labels
  • governance
  • sfl-pr-review

What is the Set it Free Loop?

The Set it Free Loop is a continuous
quality improvement operating model for software repositories. See the
CATALOG
for all available workflows.

Before merging

  • Run .\deployment\governance\setup-labels.ps1 -Owner <org> -Repo <repo> if labels are not yet configured
  • For each .md workflow: verify gh aw compile .github/workflows/<name>.md succeeds
  • Trigger a workflow manually to confirm output
  • Review sfl.json manifest in the repo root

Summary by cubic

Deploys SFL review v2.0.0 with a deterministic validator and a new sfl_review_inventory tool to enforce consistent, reproducible reviews. Tightens head-drift rules, requires inventory/noop/missing-signal, and validates exact review/check shapes (incl. Overflow) before publishing.

  • New Features

    • Adds sfl_review_inventory to record head SHA, per-severity new/carried counts, and overflow.
    • Introduces a Node validator that re-reads PR state and enforces: stable head or exactly one noop; only allowed output types (single terminal missing_tool/missing_data allowed); correct repo/PR targeting; exactly one inventory, one review, and one check; max 20 inline comments with severity prefixes and expected per-severity distribution; exact carried counts from unresolved SFL threads; exact consolidated review body with an Overflow row; check title “SFL full-spectrum review complete” and exact, line-by-line summary (verdict, head SHA, run ID, per-severity counts, Overflow). Forces REQUEST_CHANGES and a failing check when overflow > 0.
    • Adds a post-step that fails the run unless an inventory, a single noop, or a terminal missing-signal is present; noop is allowed only on head drift.
  • Refactors

    • Activates solely via the sfl-review label; removes the same-repo gate.
    • Disables issue reporting for noop; switches token minting to SFL_APP_CLIENT_ID.
    • Replaces credit-based firewall config with explicit JSON and removes GH_AW_MAX_AI_CREDITS; updates README badge label to “SFL Upstream”; refreshes sfl.json.

Written for commit 6e1dc20. Summary will update on new commits.

Review in cubic

Note

Deploy Set it Free Loop review tier v2.0.0 with deterministic verdict validation

  • Removes the same-repository gate so the SFL review workflow triggers on any PR with the sfl-review label, including fork PRs.
  • Replaces the prior head-verification bash step with a Node-based validator in sfl-pr-review.lock.yml that enforces consistency between inline comments, the consolidated review, check run, and a new sfl_review_inventory entry against live PR state and the triggering head SHA.
  • Adds sfl_review_inventory as a safe output tool with a strict input schema, wired into dynamic tools and a handler script; the agent must invoke it exactly once before other outputs.
  • Sets noop report-as-issue to false and requires noop to be the sole output item when head has drifted or a signal is missing.
  • Writes a concrete awf-config.json at runtime with explicit domain allowlist and model mappings instead of templated content.

Macroscope summarized 6e1dc20.

@cursor

cursor Bot commented Aug 3, 2026

Copy link
Copy Markdown

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.

@coderabbitai

coderabbitai Bot commented Aug 3, 2026 •

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Summary by CodeRabbit

  • New Features

    • Enhanced automated pull-request reviews with validation of targets, revisions, findings, comments, summaries, and check results.
    • Added finding inventory, carried-finding, and overflow tracking, including no-op outcomes when no action is required.
    • Added safeguards for stale revisions and capped comment publication.
  • Documentation

    • Updated the README badge label to “SFL Upstream.”
  • Chores

    • Refreshed deployment metadata and workflow configuration.

Walkthrough

The SFL review workflow now uses label-based activation, inventory safe output, stale-head noop handling, and deterministic validation for findings, comments, reviews, checks, and run metadata. Deployment metadata and the README badge were updated.

Changes

SFL review workflow

Layer / File(s) Summary
Deployed workflow wiring and activation
.github/workflows/sfl-pr-review.lock.yml, .github/workflows/sfl-pr-review.md, README.md, sfl.json
The workflow uses the sfl-review label for activation. Deployment metadata and the README badge use updated identifiers.
Inventory safe-output contract
.github/workflows/sfl-pr-review.lock.yml, .github/workflows/sfl-pr-review.md
The workflow supports sfl_review_inventory with severity counts, carried findings, head SHA, and overflow data. Noop processing does not report an issue. Agent output must contain an inventory, noop, or missing-data/tool signal.
Deterministic verdict validation
.github/workflows/sfl-pr-review.lock.yml, .github/workflows/sfl-pr-review.md
Validation checks PR targeting, live head state, findings, comments, review and check results, exact summaries, run metadata, and stale-head handling.

Estimated code review effort: 4 (Complex) | ~60 minutes

Sequence Diagram(s)

sequenceDiagram
  participant PullRequest
  participant SFLWorkflow
  participant ReviewAgent
  participant SafeOutputHandler
  participant VerdictValidator
  PullRequest->>SFLWorkflow: labeled pull-request event
  SFLWorkflow->>ReviewAgent: review instructions and triggering SHA
  ReviewAgent->>SafeOutputHandler: inventory or noop output
  SafeOutputHandler-->>SFLWorkflow: processed safe output
  SFLWorkflow->>VerdictValidator: review outputs and run metadata
  VerdictValidator-->>SFLWorkflow: validated verdict or failure
Loading

Possibly related PRs

  • HemSoft/gh-x#3: Updates the same SFL review workflows and deployment metadata.

Suggested labels: feature

Poem

A rabbit counts each finding twice,
Checks every comment, neat and precise.
When heads are stale, noop takes flight,
Inventory guides the review right.
The deployed SHA shines bright and true—
SFL keeps the queue in view.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly describes the deployment of Set it Free Loop review tier version 2.0.0.
Description check ✅ Passed The description explains the SFL v2.0.0 deployment and its workflow, validation, configuration, and metadata changes.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch sfl/tier-review-22db33a

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.

@coderabbitai coderabbitai Bot added the feature label Aug 3, 2026

@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: 5d81fd4615

ℹ️ 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 .github/workflows/sfl-pr-review.md Resolved
Comment thread .github/workflows/sfl-pr-review.md Resolved

@coderabbitai coderabbitai 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.

Actionable comments posted: 6

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/sfl-pr-review.lock.yml:
- Around line 1776-1793: Update the allowedTypes set in the safe-output
validation to include the advertised and registered missing_tool and
missing_data types, while preserving all existing allowed types and
unexpectedTypes validation behavior. Apply the same correction to the
corresponding validation script in the workflow documentation so both
implementations remain consistent.
- Around line 1102-1106: Update the validation in the “Require SFL review
output” step to treat terminal `missing_tool` and `missing_data` items as valid
outputs alongside `sfl_review_inventory` and `noop`. Apply the same allowed-type
update to the “Validate SFL review verdict” step and the corresponding Markdown
source definitions, preserving rejection of unsupported output types.
- Around line 1625-1632: Update the “Mint SFL validation token” step, identified
by id sfl-validation-token, to use the consistently configured SFL app variable
used by the other token jobs, such as vars.SFL_APP_CLIENT_ID, or ensure
vars.SFL_APP_ID is defined for this workflow. Keep the token action and existing
permissions unchanged.

In @.github/workflows/sfl-pr-review.md:
- Around line 227-244: Update the allowedTypes set in the safe-output validation
to include both missing_tool and missing_data alongside the existing safe-output
types. Ensure the corresponding compiled validation in sfl-pr-review.lock.yml
uses the same complete allowlist so these valid outputs do not fail the
safe_outputs job.
- Around line 18-39: Update the “Require SFL review output” validation to treat
missing_tool and missing_data item types as valid terminal outputs alongside
sfl_review_inventory and noop. Keep the existing missing-file and JSON parsing
checks, and apply the corresponding generated gate update in the locked workflow
so both workflow definitions accept every advertised safe-output type.
- Around line 72-78: Update the “Mint SFL validation token” step’s
create-github-app-token configuration to use the established
vars.SFL_APP_CLIENT_ID value via the client-id input instead of app-id
referencing vars.SFL_APP_ID, while preserving the existing private key and
permissions.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: bd5a5b1b-121e-4372-9c51-eee4257b6f76

📥 Commits

Reviewing files that changed from the base of the PR and between 816a63e and 5d81fd4.

📒 Files selected for processing (4)
  • .github/workflows/sfl-pr-review.lock.yml
  • .github/workflows/sfl-pr-review.md
  • README.md
  • sfl.json

Comment thread .github/workflows/sfl-pr-review.md Resolved
Comment thread .github/workflows/sfl-pr-review.md Resolved
Comment thread .github/workflows/sfl-pr-review.md Resolved
@HemSoft
HemSoft force-pushed the sfl/tier-review-22db33a branch 2 times, most recently from dc4a386 to 6e1dc20 Compare August 3, 2026 06:10
Source: hemsoft-dev/set-it-free-loop@e9c9c74
Version: 2.0.0
Tier: review
Components: labels, governance, sfl-pr-review
Engine policy: codex-gpt-55-high

See https://github.com/HemSoft/set-it-free-loop for full documentation.
@HemSoft
HemSoft merged commit 659d9a7 into main Aug 3, 2026
8 checks passed
@HemSoft
HemSoft deleted the sfl/tier-review-22db33a branch August 3, 2026 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant