Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 0 additions & 4 deletions .gitmodules

This file was deleted.

1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
12 changes: 7 additions & 5 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
19 changes: 19 additions & 0 deletions __tests__/ci/skill-sources.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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) => {
Expand Down
5 changes: 3 additions & 2 deletions __tests__/ci/version-bump.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down
1 change: 0 additions & 1 deletion skills
Submodule skills deleted from 5a61da