Skip to content

R1: Hypatia's own fixers become report- or referral-only in cicd-squabbler's categories (design) #1080

Closed

Description

@hyperpolymath

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

  1. One list, read by dispatch. A squabbler_owned category list and a flag_only list (group D) in a policy file, read by TriangleRouter.dispatch_strategy/FleetDispatcher. A matching recipe is capped at report_only (or referral) whatever its confidence. Do not lower recipe confidences instead: Bayesian updating would raise them again.
  2. A test per group that pins the cap (same shape as test/permission_recipes_review_tier_test.exs).
  3. fixer/: auto_fixable: false for the 3 remaining categories, as done for permissions in Permission fixers write least privilege, never read-all #1057.
  4. 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

  1. Agree with groups A-C as squabbler-owned (report + referral only)?
  2. Group D: confirm flag-only for all 5 licence/SPDX recipes and the fixer/ SPDX fix (this removes auto-fix that exists today).
  3. Group F: keep close-obsolete-pr, budget-resume-sweep and retired-descriptile-policy as Hypatia operations with auto_execute, or cap them too? Do add-security-policy and the seed recipes belong to the squabbler or the template?
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions