← Back to Pull requests

build: drop the fleet pack and own the repo tooling #28

Closed
unknown closed this pull request without merging on Nov 05, 2026 21:09 UTC
View on GitHub
unknown unknown commented on Nov 05, 2026 19:38 UTC
Author

Summary

sauce stops hydrating the GHCR fleet pack and keeps no fleet code. It now owns small scripts for each job, the same way SocketDev/socket-mcp#232 does, and CI uses SHA-pinned upstream actions.

| Job | Now |
| --- | --- |
| pnpm test, cover, test:fuzz-harnesses, test:structural | plain Vitest through .config/repo/vitest.config.mts |
| format, format:check, lint, lint:fix, fix | oxfmt / oxlint with root .oxfmtrc.json and .oxlintrc.json |
| type | tsc on tsconfig.json and .config/repo/tsconfig.release-kit.json |
| check | format, lint, type, check-paths, the scripts/repo/check/.mts gates, generate:check, and a content scan |
| prepare | scripts/repo/install-git-hooks.mts sets core.hooksPath=.git-hooks |
| Git hooks | commit-msg: Conventional Commits and no AI attribution. pre-commit: scans staged files. pre-push: pnpm run type |
| CI | actions/checkout and actions/setup-node pinned by SHA, pnpm 12.14.0 from npm, the no-telemetry env in every workflow |

The generators (pnpm run generate / generate:check) work unchanged. They now format their output with oxfmt directly.

What is removed

  • The GHCR download, verification and hydration code (scripts/repo/bootstrap), its 5,500-line .gitignore block, and its setup steps in .claude/settings.json.

  • scripts/fleet, .claude/hooks/fleet, .claude/skills/fleet, .config/fleet, test/fleet, .github/actions, the fleet git-hook chain, and .husky.

  • The fleet member configs under .config and .config/repo, and the scripts/repo entry points that only fleet tooling ran.

  • Workflows that need fleet scripts. These three stay: ci: gates, ci: e2e, ci: publish claude marketplace.

  • 42 of the 54 devDependencies, their catalog pins and soak exclusions, and 5 patches that only that code needed. The lockfile loses about 7,150 lines.
  • Differences from socket-mcp#232

    These files come from socket-mcp unchanged: scripts/repo/util/{main,commit-message}.mts, scripts/repo/hooks/commit-msg.mts, .git-hooks/, CLAUDE.md, and .gitattributes. These are adapted:

  • scripts/repo/util/scan.mts has no private-repo-name rule. sauce names that repository in working code: the plugin installer's marketplace URL and the release-kit's shared Chrome profile path. The existing shipped-content-is-consumer-clean check already governs that name in shipped files.

  • scan.mts skips tracked directory symlinks. Without this, check crashes on .opencode/skills.

  • pre-commit skips staged gitlinks, which have no blob to read.

  • check.mts uses a shell on Windows only for pnpm steps. node steps run without a shell, so a Node path with a space still works.

  • .oxfmtrc.json also ignores /plugin-patches/, because those files are byte copies of upstream sources.

  • install-git-hooks.mts is sauce's existing, tested installer. .claude/settings.json keeps sauce's publish-deny and force-push-ask permissions.
  • test/repo/unit/repo-scan.test.mts (from socket-mcp) and commit-message.test.mts cover the scan, the hooks, and these differences.

    Verification

    On a clean clone with Node 26.10.0 and pnpm 12.12.0:

    | Command | Result |
    | --- | --- |
    | pnpm install --frozen-lockfile | pass; core.hooksPath is .git-hooks |
    | pnpm run check | pass, all steps |
    | pnpm test | 56 files, 1231 tests pass |
    | pnpm run test:fuzz-harnesses | 41 tests pass |
    | pnpm run cover, build, generate:check | pass |

    Real commits through the hooks rejected a non-conventional subject, an AI attribution trailer, and a staged AWS key. They accepted normal commits, staged deletions, and fixups. test:e2e needs agent CLIs and credentials, so I did not run it locally. This change does not touch it.

    Follow-ups

  • An upstream fleet sync would add the removed files back unless that changes upstream.

  • socket-mcp's scan.mts and pre-commit.mts have the same symlink and gitlink cases. They don't matter there today, because socket-mcp tracks neither.
  • <!-- CURSOR_SUMMARY -->
    ---

    [!NOTE]

    Medium Risk

    Large dev/CI surface change (lint, test, hooks, check gates) with no production runtime path, but regressions would block merges and local workflows until fixed.

    > Overview

    Removes the GHCR fleet pack and all cascaded scaffolding — scripts/fleet, fleet hooks/skills, .config/fleet, wheelhouse member JSON/schema, fleet oxlint/markdownlint/esbuild configs, Husky, and the SessionStart/hook/statusline wiring in .claude/settings.json. Claude settings shrink to telemetry env knobs plus existing publish/force-push permissions.

    > Replaces fleet runners with repo-local tooling patterned after socket-mcp: pnpm scripts call scripts/repo/* for check, format, lint, type, hooks (core.hooksPath=.git-hooks), and generators; CI uses SHA-pinned checkout/setup-node. Vitest is rewritten — .config/repo/vitest.config.mts drops fleet lanes, coverage merge, and vitest.settings.mts; tests target test/repo/ with optional fuzz via TEST_FUZZ, inline coverage for release-kit/, and release-kit typecheck now extends root tsconfig.json with DOM lib.

    > Deletes the updating-xport skill, fleet output style, and per-repo socket-wheelhouse config that drove coverage/hooks/workflows — those behaviors must now live in the simplified configs and check script or are intentionally gone with the fleet workflows.

    > <sup>Reviewed by Cursor Bugbot for commit a46a0dd18926b6e4ef99a08253ef659561281a19. Configure here.</sup>

    <!-- /CURSOR_SUMMARY -->

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: ljharb Review duration: 91m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 650 lines diff across 8 files
    0.52
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.388
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #28"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 52% (MEDIUM) · Higher = larger blast radius
    52%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 20.5% · Safe to merge
    20.5%