Repository navigation
Description
Ruling R1 (owner, 2026-11-13)
cicd-squabbler is the first-line fixer and fixes the safe cases, then refers the rest. Hypatia decides what happens on a referral and directs the bots and the farm through the Bustfile. Hypatia runs no second, parallel auto-fix on the same failures in the squabbler's categories (cicd-squabbler#154, ADR 0003; catalogue cicd-squabbler#156, ADR 0004).
This issue is the design step before any code.
What Hypatia can auto-fix today (main, 2026-11-13)
| Path | Scope |
|---|---|
FleetDispatcher auto_execute tier (confidence >= 0.95) |
26 of 66 recipes in data/verisim/recipes/ |
scripts/fix-scripts/ |
60 scripts, called by recipes |
fixer/ (Rust cicd-fixer fix / batch --fix) |
auto-fixable: SPDX header, unpinned action, missing toolchain input (permissions became review-only in #1057) |
The 26 auto_execute recipes, grouped by who should own the fix under R1:
| Group | Recipes | Proposed Hypatia role |
|---|---|---|
| A. Pins and locks (squabbler first line) | pin-github-actions (0.99), pin-dependencies, scorecard-pinned-deps |
report + referral only |
| B. Workflow content (squabbler first line) | scorecard-dangerous-workflow, scorecard-sast, add-dependabot, scorecard-dependency-update |
report + referral only |
| C. Safe code fixes ("any safe code fix is first line", owner ruling 2026-11-13) | fix-http-to-https, shell-quote-vars (0.9895), remove-believe-me (0.9895) |
report + referral only |
| D. Licence and SPDX (estate cap: flag-only, never autofix) | add-license-file, fix-spdx-license (0.99), fix-pmpl-drift, fix-spdx-double-suffix, scorecard-license |
flag only, no referral fix. Today these are auto_execute, which contradicts the cap. |
| E. Repository settings (not fixable by a commit) | scorecard-branch-protection, scorecard-code-review, scorecard-webhooks, scorecard-signed-releases |
report to owner |
| F. Seeds and Hypatia operations | add-security-policy, scorecard-security-policy, scorecard-binary-artifacts, scorecard-vulnerabilities, close-obsolete-pr, budget-resume-sweep (0.98), retired-descriptile-policy |
owner decides (below) |
fixer/: SPDX header → group D (flag only); unpinned action → group A; missing toolchain input → group B. Proposal: its automatic set becomes empty; the commands still report.
Proposed mechanism
- One list, read by dispatch. A
squabbler_ownedcategory list and aflag_onlylist (group D) in a policy file, read byTriangleRouter.dispatch_strategy/FleetDispatcher. A matching recipe is capped atreport_only(or referral) whatever its confidence. Do not lower recipe confidences instead: Bayesian updating would raise them again. - A test per group that pins the cap (same shape as
test/permission_recipes_review_tier_test.exs). fixer/:auto_fixable: falsefor the 3 remaining categories, as done for permissions in Permission fixers write least privilege, never read-all #1057.- Referral path: until the Bustfile response exists, a capped finding is emitted as today's finding (rule_module, type, severity, file, line, reason, action, HYP-01 support/evidence/level) with
action: "refer".
Questions for the owner
- Agree with groups A-C as squabbler-owned (report + referral only)?
- Group D: confirm flag-only for all 5 licence/SPDX recipes and the
fixer/SPDX fix (this removes auto-fix that exists today). - Group F: keep
close-obsolete-pr,budget-resume-sweepandretired-descriptile-policyas Hypatia operations with auto_execute, or cap them too? Doadd-security-policyand the seed recipes belong to the squabbler or the template? - Mechanism: policy-file list (proposed), or a field per recipe?
Related: Known Gap 2 (rate limiter, quarantine and batch rollback are inert) is a separate change.
Generated by Claude Code
Activity
feat(reconcile): escalate repository-settings findings by default
feat(dispatch): report group E repository settings to the owner (#1094)