diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 4fa81517b..553c37a40 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -23,17 +23,6 @@ updates: day: monday open-pull-requests-limit: 5 - # The `skills` submodule. Its own repository used to push gitlink bumps - # straight to this `main` as the version-bot App; that App is gone, and nothing - # in CI may push to `main`. Dependabot opens a pull request instead, which - # lands through review like any other change. `skills` is public, so reading - # it needs no credential. - - package-ecosystem: gitsubmodule - directory: / - schedule: - interval: daily - open-pull-requests-limit: 2 - # The Rust workspace. Absent until the daemon shipped, so `Cargo.lock` was # updated only by hand — for a dependency tree that includes the TLS stack # compiled into a root-installed system service. diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index de78ff069..000000000 --- a/.gitmodules +++ /dev/null @@ -1,4 +0,0 @@ -[submodule "skills"] - path = skills - url = https://github.com/failproofai/skills.git - branch = main diff --git a/CHANGELOG.md b/CHANGELOG.md index f9b83c168..7678d21d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ ### Fixes +- Drop the `skills` submodule and its daily Dependabot `gitsubmodule` entry. Nothing in this repo read it, nor did the npm package or any workflow, and the job in `FailproofAI/skills` that kept it current failed on every merge once the version-bot App was gone. The skills reach users through `npx skills add FailproofAI/skills`, which this pin never fed (#1075) - Delete `sync-fp-cloud-cli-skill.yml` and `sync-failproofai-sdk-skill.yml`, red on every run since August because the `SKILLS_SYNC_PAT` they pushed to `FailproofAI/skills` with was never created; that repo now pulls both skills from this public one with its own token, so nothing here holds a credential that writes to it. The fp-cloud-cli skill's description is cut from 1118 to 995 characters, under the 1024 that the skills repo's validator enforces and past which Copilot drops a skill (#1068) - Add a global `--no-color` flag, the same as `NO_COLOR=1`, accepted before or after any command; `failproofai policies` already honors `NO_COLOR` (#1067, from #695, #700, #848, fixes #688) - CI: the contributor-welcome workflow no longer tries to approve Dependabot pull requests. GitHub refuses a workflow approval while "Allow GitHub Actions to create and approve pull requests" is off, so every Dependabot PR got a failed run, and with it on the approval would count as the one review `main` requires. Dependency updates are reviewed by a person; the workflow drops `pull-requests: write` (#1049) diff --git a/CLAUDE.md b/CLAUDE.md index 6976c9625..71ac65550 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -1495,11 +1495,13 @@ Why not a direct push: the switch off, every bump still pushes its branch and prints the link. Submodule pointers work the same way. No workflow pushes gitlink bumps into another -repository any more, and `bump-platform-submodule.yml` is gone. Dependabot's -`gitsubmodule` updates open the pull requests: here for `skills`, and in `platform` and -`agenteye` (their own `dependabot.yml`) for `failproofai/oss`. Both upstreams are public, -so this needs no credential. `__tests__/ci/version-bump.test.ts` runs the script against a -real git remote and pins every workflow to it. +repository any more, and `bump-platform-submodule.yml` is gone. In `platform` and +`agenteye`, Dependabot's `gitsubmodule` updates (their own `dependabot.yml`) open the pull +requests for `failproofai/oss`; this repo is public, so that needs no credential. This repo +carries no submodules: its `skills` gitlink was read by nothing and is gone, and +`FailproofAI/skills` pulls the two skills authored here itself (its +`sync-from-failproofai.yml`). `__tests__/ci/version-bump.test.ts` runs the script against +a real git remote and pins every workflow to it. ### The Python packages' scheme diff --git a/__tests__/ci/skill-sources.test.ts b/__tests__/ci/skill-sources.test.ts index 7472e626c..921da7dc5 100644 --- a/__tests__/ci/skill-sources.test.ts +++ b/__tests__/ci/skill-sources.test.ts @@ -13,14 +13,21 @@ * another repo is readable by any workflow on any branch here, which is the same * exposure that retired the version-bot App. * + * This repo also carried the skills repo as a submodule at `skills/`, kept current + * by a workflow over there that pushed gitlink bumps here as the version-bot App. + * Nothing here read it, and once that App went the bump job failed on every merge, + * so the gitlink was removed rather than kept fresh by a daily Dependabot PR. + * * What this pins: * - nothing here pushes to the skills repo, or holds a credential for it; + * - nothing here pins a copy of it, which would need bumping for no reader; * - each source folder is still where the skills repo reads it from, in a shape * its validator accepts. A failure there shows up only in the skills repo's * Actions tab, which nobody here watches, so the cheap half of it is checked * here, where the skill is edited. */ import { describe, it, expect } from "vitest"; +import { spawnSync } from "node:child_process"; import { existsSync, readdirSync, readFileSync } from "node:fs"; import { resolve } from "node:path"; import { parse } from "yaml"; @@ -58,6 +65,18 @@ describe("skills are pulled by FailproofAI/skills, not pushed from here", () => ); expect(offenders).toEqual([]); }); + + it("carries no submodule of the skills repo", () => { + // A gitlink is mode 160000 in the index, whatever .gitmodules says. + const r = spawnSync("git", ["ls-files", "--stage"], { cwd: ROOT, encoding: "utf8" }); + expect(r.status).toBe(0); + const gitlinks = r.stdout.split("\n").filter((l) => l.startsWith("160000 ")).map((l) => l.split("\t")[1]); + expect(gitlinks).not.toContain("skills"); + const gitmodules = resolve(ROOT, ".gitmodules"); + if (existsSync(gitmodules)) { + expect(readFileSync(gitmodules, "utf8")).not.toMatch(/FailproofAI\/skills\b/i); + } + }); }); describe.each(Object.entries(PULLED_SKILLS))("%s (mirrored as skills/%s)", (src, dest) => { diff --git a/__tests__/ci/version-bump.test.ts b/__tests__/ci/version-bump.test.ts index 7faec7331..c2a6a0cf6 100644 --- a/__tests__/ci/version-bump.test.ts +++ b/__tests__/ci/version-bump.test.ts @@ -276,8 +276,9 @@ describe.each(BUMPS)("$file", ({ file, job, step }) => { describe("submodules stay current without a workflow pushing to another repository", () => { it("has Dependabot open pull requests for every submodule", () => { // `bump-platform-submodule.yml` pushed gitlink bumps into other repositories - // with the version bot. Dependabot opens reviewed pull requests instead, and - // `skills` is public, so it needs no credential to read it. + // with the version bot. Dependabot opens reviewed pull requests instead, which + // needs no credential for a public upstream. There are none today: the only one, + // `skills`, was unused and removed (skill-sources.test.ts). expect(existsSync(resolve(WORKFLOWS, "bump-platform-submodule.yml"))).toBe(false); if (!existsSync(resolve(ROOT, ".gitmodules"))) return; const dependabot = parse(readFileSync(resolve(ROOT, ".github/dependabot.yml"), "utf8")); diff --git a/skills b/skills deleted file mode 160000 index 5a61daa1b..000000000 --- a/skills +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 5a61daa1bb3bb1c05237055961cf24f15b9accaa