From 6571c9f7d2e5934763cbd1203b040e88bdaaaa7a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 24 Nov 2026 09:26:11 +0000 Subject: [PATCH 1/9] chore(deps): bump the rust-dependencies group across 1 directory with 2 updates Bumps the rust-dependencies group with 2 updates in the / directory: [notify](https://github.com/notify-rs/notify) and [rusqlite](https://github.com/rusqlite/rusqlite). Updates `notify` from 8.2.2 to 9.0.0 - [Release notes](https://github.com/notify-rs/notify/releases) - [Changelog](https://github.com/notify-rs/notify/blob/main/CHANGELOG.md) - [Commits](https://github.com/notify-rs/notify/compare/notify-8.2.2...notify-9.0.0) Updates `rusqlite` from 0.42.0 to 0.43.0 - [Release notes](https://github.com/rusqlite/rusqlite/releases) - [Changelog](https://github.com/rusqlite/rusqlite/blob/master/Changelog.md) - [Commits](https://github.com/rusqlite/rusqlite/compare/v0.42.0...v0.43.0) --- updated-dependencies: - dependency-name: notify dependency-version: 9.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: rust-dependencies - dependency-name: rusqlite dependency-version: 0.43.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: rust-dependencies ... Signed-off-by: dependabot[bot] --- Cargo.lock | 19 +++++++++++++------ crates/fpai-collect/Cargo.toml | 4 ++-- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 0643c6384..be9ca2015 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -928,9 +928,9 @@ dependencies = [ [[package]] name = "notify" -version = "8.2.2" +version = "9.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c41a04a5f59df9322cc657286dd2d79f90816119b22c5f847607c850110205ab" +checksum = "5482d5bd11b91a337521980e5d52fe115bdccfb4c217099daaf0abd69159dc4e" dependencies = [ "bitflags", "inotify", @@ -943,13 +943,14 @@ dependencies = [ "objc2-core-services", "walkdir", "windows-sys 0.61.2", + "xxhash-rust", ] [[package]] name = "notify-types" -version = "2.1.0" +version = "2.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42b8cfee0e339a0337359f3c88165702ac6e600dc01c0cc9579a92d62b08477a" +checksum = "cbd044e85df3d939d8e32a1c35a3b737c7d0a4eeb7acd737bd207644e00f4e5f" dependencies = [ "bitflags", ] @@ -1288,9 +1289,9 @@ dependencies = [ [[package]] name = "rusqlite" -version = "0.42.0" +version = "0.43.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4edff0039f148731aee2fd80f76dbfeb12d204ab3d1c544838d34e02151049b" +checksum = "f172c4812a19b26d1c23cdb0070e69db335503dfa378b910eb857386e5b8beba" dependencies = [ "bitflags", "fallible-iterator", @@ -2189,6 +2190,12 @@ version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1ffae5123b2d3fc086436f8834ae3ab053a283cfac8fe0a0b8eaae044768a4c4" +[[package]] +name = "xxhash-rust" +version = "0.8.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "40de123dbb523ebcc00d61ec01840ad192578afc378d859f3429caa38308fad5" + [[package]] name = "yoke" version = "0.8.3" diff --git a/crates/fpai-collect/Cargo.toml b/crates/fpai-collect/Cargo.toml index a03e2a1b8..aa64e5dfa 100644 --- a/crates/fpai-collect/Cargo.toml +++ b/crates/fpai-collect/Cargo.toml @@ -33,7 +33,7 @@ reqwest = { version = "0.12", default-features = false, features = ["rustls-tls" # inotify on Linux, FSEvents on macOS. Only ever a latency optimisation — the # sweeper is what guarantees delivery, so a watcher that fails to register # degrades to interval-only rather than losing anything. -notify = "8" +notify = "9" # Epoch-millis to RFC3339 with microseconds. Hand-rolling civil date maths is # a silent-failure risk — a leap-year slip would put every event on the wrong # day with nothing to notice it — and this pulls no C code onto any of the @@ -50,7 +50,7 @@ notify = "8" # the file-tailer converters can leave it out. AgentEye's server imports Claude # Code / Codex transcripts with these converters, and its sqlx links a different # libsqlite3-sys — two crates linking `sqlite3` cannot share one build. -rusqlite = { version = "0.42", features = ["bundled"], optional = true } +rusqlite = { version = "0.43", features = ["bundled"], optional = true } # OpenClaw 2026.9.6+ stores a large transcript event zstd-compressed in # `event_zstd` and leaves `event_json` NULL. A pure-Rust decoder, for the same # reason rustls is chosen above: no C toolchain on the four cross-compiled legs. From d96e58b4f112488074e745696d889038097f9b58 Mon Sep 17 00:00:00 2001 From: hermes-exosphere Date: Tue, 24 Nov 2026 15:29:31 +0530 Subject: [PATCH 2/9] fix(ci): keep Dependabot reviews human-approved --- .github/workflows/pr-contributor-welcome.yml | 21 +------ CHANGELOG.md | 5 ++ __tests__/ci/pr-contributor-welcome.test.ts | 60 ++++++++++++++++++++ 3 files changed, 67 insertions(+), 19 deletions(-) create mode 100644 __tests__/ci/pr-contributor-welcome.test.ts diff --git a/.github/workflows/pr-contributor-welcome.yml b/.github/workflows/pr-contributor-welcome.yml index a08155fb8..ec799d015 100644 --- a/.github/workflows/pr-contributor-welcome.yml +++ b/.github/workflows/pr-contributor-welcome.yml @@ -1,12 +1,12 @@ -name: Welcome contributors and approve Dependabot PRs +name: Welcome contributors on: pull_request_target: types: [opened] +# GitHub Actions approvals stay disabled; dependency updates require human review. permissions: contents: read - pull-requests: write issues: write jobs: @@ -30,20 +30,3 @@ jobs: issue_number: context.payload.pull_request.number, body, }); - - approve-dependabot: - name: Approve Dependabot PR - if: github.event.pull_request.user.login == 'dependabot[bot]' - runs-on: ubuntu-latest - steps: - - name: Approve pull request - uses: actions/github-script@v9 - with: - script: | - await github.rest.pulls.createReview({ - owner: context.repo.owner, - repo: context.repo.repo, - pull_number: context.payload.pull_request.number, - event: 'APPROVE', - body: 'Automated approval for Dependabot dependency update.', - }); diff --git a/CHANGELOG.md b/CHANGELOG.md index d1c07e8de..87223c5b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,8 +8,13 @@ ### Fixes +- Remove automated Dependabot approvals that GitHub rejects with workflow reviews disabled; contributor welcomes continue and dependency updates require human review (#1049) - Releases no longer depend on the removed version-bot GitHub App. Its absence stopped the 1.0.16 npm publish at its first step and failed every post-release version bump. Nothing in CI pushes to `main` any more: each release workflow pushes its bump commit to a `version-bump/-` branch with the job's own token (`scripts/push-version-bump.sh`) and links a pre-filled pull request, which lands through review. `bump-platform-submodule.yml` is gone; Dependabot's `gitsubmodule` updates now keep `skills` current, and `platform` and `agenteye` need the same entry. `@failproofai/sdk`'s post-publish install check now reads the registry with `--prefer-online` and waits up to about 12 minutes; it had gone red on both releases even though both published. `@failproofai/sdk` opens 0.0.1-beta.3 (#1048) +### Dependencies + +- Update `notify` from 8.2.2 to 9.0.0 and `rusqlite` from 0.42.0 to 0.43.0 (#1049) + ## 1.0.16-beta.0 — 2026-11-23 ### Fixes diff --git a/__tests__/ci/pr-contributor-welcome.test.ts b/__tests__/ci/pr-contributor-welcome.test.ts new file mode 100644 index 000000000..da2e75324 --- /dev/null +++ b/__tests__/ci/pr-contributor-welcome.test.ts @@ -0,0 +1,60 @@ +/** Contributor automation must work with GitHub Actions PR approvals disabled. */ +import { describe, expect, it, vi } from "vitest"; +import { readFileSync } from "node:fs"; +import { resolve } from "node:path"; +import { runInNewContext } from "node:vm"; +import { parse } from "yaml"; + +interface Workflow { + on: { pull_request_target: { types: string[] } }; + permissions: Record; + jobs: Record; + }>; +} + +const workflow = parse(readFileSync( + resolve(process.cwd(), ".github/workflows/pr-contributor-welcome.yml"), + "utf8", +)) as Workflow; + +describe("contributor welcome workflow", () => { + it("runs comment automation on opening a PR without approval permissions", () => { + expect(workflow.on.pull_request_target.types).toEqual(["opened"]); + expect(workflow.permissions.issues).toBe("write"); + expect(workflow.permissions["pull-requests"]).not.toBe("write"); + expect(Object.keys(workflow.jobs)).toEqual(["welcome"]); + }); + + it.each(["dependabot[bot]", "contributor"])("welcomes %s without creating a review", async (author) => { + const createComment = vi.fn().mockResolvedValue({}); + const createReview = vi.fn().mockRejectedValue(new Error("GitHub Actions is not permitted to approve pull requests.")); + const steps = workflow.jobs.welcome.steps; + expect(steps.some((step) => step.uses?.startsWith("actions/checkout"))).toBe(false); + const script = steps.find((step) => step.uses?.startsWith("actions/github-script"))?.with?.script; + expect(script).toBeDefined(); + + await runInNewContext(`(async () => {${script}})()`, { + github: { rest: { issues: { createComment }, pulls: { createReview } } }, + context: { + repo: { owner: "FailproofAI", repo: "failproofai" }, + payload: { pull_request: { number: 1049, user: { login: author } } }, + }, + }); + + expect(createComment).toHaveBeenCalledExactlyOnceWith({ + owner: "FailproofAI", + repo: "failproofai", + issue_number: 1049, + body: expect.stringContaining(`Thanks @${author}`), + }); + const body = createComment.mock.calls[0][0].body; + if (author === "dependabot[bot]") { + expect(body).toContain("keeping our dependencies current"); + } else { + expect(body).toContain("https://discord.befailproof.ai/"); + expect(body).toContain("https://www.reddit.com/r/failproofai/"); + } + expect(createReview).not.toHaveBeenCalled(); + }); +}); From c50aebfc70f6fafc1e663839bc64d0d70d8d73ae Mon Sep 17 00:00:00 2001 From: hermes-exosphere Date: Tue, 24 Nov 2026 15:47:49 +0530 Subject: [PATCH 3/9] fix(hooks): preserve CommonJS when rewriting policy imports --- __tests__/e2e/helpers/hook-runner.ts | 8 ++- .../e2e/hooks/node-custom-hooks.e2e.test.ts | 46 +++++++++++++ __tests__/hooks/loader-commonjs.test.ts | 58 +++++++++++++++++ src/hooks/custom-hooks-loader.ts | 3 +- src/hooks/loader-utils.ts | 65 ++++++++++++++----- 5 files changed, 159 insertions(+), 21 deletions(-) create mode 100644 __tests__/e2e/hooks/node-custom-hooks.e2e.test.ts create mode 100644 __tests__/hooks/loader-commonjs.test.ts diff --git a/__tests__/e2e/helpers/hook-runner.ts b/__tests__/e2e/helpers/hook-runner.ts index f97901868..2d464336e 100644 --- a/__tests__/e2e/helpers/hook-runner.ts +++ b/__tests__/e2e/helpers/hook-runner.ts @@ -41,13 +41,17 @@ export function runHook( event: string, payload: Record, opts?: { + /** Node exercises the packaged CLI; Bun exercises the source entrypoint. */ + runtime?: "bun" | "node"; homeDir?: string; cwd?: string; agentScope?: "user" | "project" | "local"; cli?: "claude" | "codex" | "copilot" | "cursor" | "opencode" | "pi" | "hermes" | "openclaw" | "factory" | "devin" | "antigravity" | "goose"; }, ): HookRunResult { - const binaryPath = getBinaryPath(); + const binaryPath = opts?.runtime === "node" + ? resolve(REPO_ROOT, "dist", "cli.mjs") + : getBinaryPath(); if (!existsSync(binaryPath)) { throw new Error(`E2E binary not found: ${binaryPath}`); @@ -63,7 +67,7 @@ export function runHook( const args = [binaryPath, "--hook", event]; if (opts?.cli) args.push("--cli", opts.cli); if (opts?.agentScope) args.push("--agent-scope", opts.agentScope); - const result = spawnSync("bun", args, { + const result = spawnSync(opts?.runtime ?? "bun", args, { input: JSON.stringify(payload), env, cwd: opts?.cwd, diff --git a/__tests__/e2e/hooks/node-custom-hooks.e2e.test.ts b/__tests__/e2e/hooks/node-custom-hooks.e2e.test.ts new file mode 100644 index 000000000..d3d0f0efb --- /dev/null +++ b/__tests__/e2e/hooks/node-custom-hooks.e2e.test.ts @@ -0,0 +1,46 @@ +import { describe, expect, it } from "vitest"; +import { createFixtureEnv } from "../helpers/fixture-env"; +import { assertPreToolUseDeny, runHook } from "../helpers/hook-runner"; +import { Payloads } from "../helpers/payloads"; + +describe("CommonJS policies in the packaged Node CLI", () => { + it("loads a CommonJS entry with a transitive CommonJS helper", () => { + const env = createFixtureEnv(); + env.writeConfig({ enabledPolicies: [] }); + env.writePolicyFile("helper.cjs", ` + const { deny } = require("failproofai"); + module.exports = () => deny("CommonJS helper enforced"); + `); + env.writePolicyFile("node-policies.js", ` + const { customPolicies } = require("failproofai"); + const policy = require("./helper.cjs"); + customPolicies.add({ name: "node-cjs", match: { events: ["PreToolUse"] }, fn: async () => policy() }); + `); + const result = runHook("PreToolUse", Payloads.preToolUse.bash("ls", env.cwd), { + homeDir: env.home, runtime: "node", + }); + expect(result.exitCode, result.stderr).toBe(0); + assertPreToolUseDeny(result); + expect(result.stdout).toContain("CommonJS helper enforced"); + }); + + it("loads an ESM entry importing a CommonJS helper", () => { + const env = createFixtureEnv(); + env.writeConfig({ enabledPolicies: [] }); + env.writePolicyFile("helper.cjs", ` + const { deny } = require("failproofai"); + module.exports = () => deny("ESM to CommonJS helper enforced"); + `); + env.writePolicyFile("node-policies.mjs", ` + import { customPolicies } from "failproofai"; + import policy from "./helper.cjs"; + customPolicies.add({ name: "node-esm", match: { events: ["PreToolUse"] }, fn: async () => policy() }); + `); + const result = runHook("PreToolUse", Payloads.preToolUse.bash("ls", env.cwd), { + homeDir: env.home, runtime: "node", + }); + expect(result.exitCode, result.stderr).toBe(0); + assertPreToolUseDeny(result); + expect(result.stdout).toContain("ESM to CommonJS helper enforced"); + }); +}); diff --git a/__tests__/hooks/loader-commonjs.test.ts b/__tests__/hooks/loader-commonjs.test.ts new file mode 100644 index 000000000..71693a9b8 --- /dev/null +++ b/__tests__/hooks/loader-commonjs.test.ts @@ -0,0 +1,58 @@ +/** Exercise rewritten modules in native Node, which has no global ESM require. */ +import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; +import { spawnSync } from "node:child_process"; +import { mkdtempSync, rmSync, writeFileSync } from "node:fs"; +import { tmpdir } from "node:os"; +import { basename, join } from "node:path"; +import { pathToFileURL } from "node:url"; +import { cleanupTmpFiles, rewriteFileTree, TMP_SUFFIX } from "../../src/hooks/loader-utils"; + +describe("rewritten CommonJS policies under Node", () => { + let dir: string; + let temporaryFiles: string[]; + + beforeEach(() => { + dir = mkdtempSync(join(tmpdir(), "fpai-cjs-loader-")); + temporaryFiles = []; + vi.stubEnv("FAILPROOFAI_HOME", join(dir, "fp-home")); + writeFileSync(join(dir, "dist.cjs"), "module.exports = { value: 8 };\n"); + writeFileSync(join(dir, "helper.cjs"), 'module.exports = require("failproofai").value;\n'); + }); + + afterEach(async () => { + await cleanupTmpFiles(temporaryFiles); + vi.unstubAllEnvs(); + rmSync(dir, { recursive: true, force: true }); + }); + + async function importInNode(entry: string): Promise { + const dist = join(dir, "dist.cjs"); + temporaryFiles = await rewriteFileTree(entry, pathToFileURL(dist).href, dist); + const rewrittenEntry = temporaryFiles.find((file) => file.startsWith(entry + TMP_SUFFIX)); + expect(rewrittenEntry).toBeDefined(); + const result = spawnSync("node", [ + "--input-type=module", "-e", + "const loaded = await import(process.argv[1]); console.log(JSON.stringify(loaded.default));", + pathToFileURL(rewrittenEntry!).href, + ], { encoding: "utf8", timeout: 10_000 }); + expect(result.status, result.stderr).toBe(0); + return JSON.parse(result.stdout); + } + + it.each(["js", "cjs"])("preserves require and CommonJS globals in a .%s entry and its helper", async (extension) => { + const entry = join(dir, `entry.${extension}`); + writeFileSync(entry, [ + "#!/usr/bin/env node", + 'const { basename } = require("node:path");', + 'exports.value = require("./helper.cjs") + 1;', + "exports.directory = basename(__dirname);", + ].join("\n")); + expect(await importInNode(entry)).toEqual({ value: 9, directory: basename(dir) }); + }); + + it("keeps ESM .js imports working when a dependency is CommonJS", async () => { + const entry = join(dir, "entry.js"); + writeFileSync(entry, 'import value from "./helper.cjs"; export default value + 1;\n'); + expect(await importInNode(entry)).toBe(9); + }); +}); diff --git a/src/hooks/custom-hooks-loader.ts b/src/hooks/custom-hooks-loader.ts index 99e064a93..9e7a58d65 100644 --- a/src/hooks/custom-hooks-loader.ts +++ b/src/hooks/custom-hooks-loader.ts @@ -227,7 +227,8 @@ async function loadSingleFile( return null; } - const entryTmp = absPath + tmpSuffix; + const commonJsEntry = absPath + tmpSuffix + ".cjs"; + const entryTmp = tmpFiles.includes(commonJsEntry) ? commonJsEntry : absPath + tmpSuffix; const fileUrl = pathToFileURL(entryTmp).href; const hooksBefore = getCustomHooks().length; const semanticBefore = getSemanticRegistrations().length; diff --git a/src/hooks/loader-utils.ts b/src/hooks/loader-utils.ts index 52eaa7b23..48dff820f 100644 --- a/src/hooks/loader-utils.ts +++ b/src/hooks/loader-utils.ts @@ -16,6 +16,7 @@ import { tmpdir } from "os"; import { resolve, dirname, relative, join } from "path"; import { pathToFileURL } from "url"; import { createHash } from "crypto"; +import { Script } from "node:vm"; import { shimsDir } from "./fp-home"; import { hookLogWarn } from "./hook-logger"; @@ -86,6 +87,19 @@ const LOCAL_IMPORT_RE = /(?:import\s+(?:[\s\S]*?\s+from\s+)?|export\s+(?:[\s\S]* /** Regex to find local relative require specifiers (CJS). */ const LOCAL_REQUIRE_RE = /require\s*\(\s*(['"])(\.\.?\/[^'"]+)\1\s*\)/g; +/** Parse without executing; CommonJS copies need native require/module/exports. */ +function isCommonJs(filePath: string, code: string): boolean { + if (filePath.endsWith(".cjs")) return true; + if (filePath.endsWith(".mjs")) return false; + try { + new Script(`(function (exports, require, module, __filename, __dirname) {\n${code.replace(/^#![^\n]*/, "")}\n})`); + return true; + } catch { + // Static imports, exports and top-level await need an ESM copy. + return false; + } +} + export async function fileExists(path: string): Promise { try { await access(path); @@ -259,6 +273,36 @@ export async function rewriteFileTree( const queue: string[] = [entryPath]; const visited = new Set(); const tmpFiles: string[] = []; + const sourceCode = new Map(); + const temporaryPaths = new Map(); + + async function readSource(filePath: string): Promise { + const cached = sourceCode.get(filePath); + if (cached !== undefined) return cached; + // Verify the same raw bytes used to choose the module format and rewrite + // imports. Dependencies can be inspected before their turn in the queue. + const buf = await readFile(filePath); + if (entrySha256 && filePath === entryPath) { + const actual = createHash("sha256").update(buf).digest("hex"); + if (actual !== entrySha256) { + throw new Error( + `cloud-managed policy failed integrity re-verification at load: expected ${entrySha256}, got ${actual}`, + ); + } + } + const code = buf.toString("utf-8"); + sourceCode.set(filePath, code); + return code; + } + + async function temporaryPath(filePath: string): Promise { + const cached = temporaryPaths.get(filePath); + if (cached) return cached; + const extension = isCommonJs(filePath, await readSource(filePath)) ? ".cjs" : ""; + const path = filePath + tmpSuffix + extension; + temporaryPaths.set(filePath, path); + return path; + } let esmShimUrl: string | null = null; if (distIndex && distUrl) { @@ -272,22 +316,7 @@ export async function rewriteFileTree( if (visited.has(filePath)) continue; visited.add(filePath); - let code: string; - if (entrySha256 && filePath === entryPath) { - // Read the raw bytes, verify the pin against THEM, then decode and rewrite - // that same in-memory content — filePath is never read again, so the bytes - // imported below are exactly the bytes verified here. - const buf = await readFile(filePath); - const actual = createHash("sha256").update(buf).digest("hex"); - if (actual !== entrySha256) { - throw new Error( - `cloud-managed policy failed integrity re-verification at load: expected ${entrySha256}, got ${actual}`, - ); - } - code = buf.toString("utf-8"); - } else { - code = await readFile(filePath, "utf-8"); - } + let code = await readSource(filePath); // Rewrite 'failproofai' or legacy 'claudeye' imports to the ESM shim (or direct CJS for require) if (esmShimUrl) { @@ -317,7 +346,7 @@ export async function rewriteFileTree( if (!visited.has(resolved) && !queue.includes(resolved)) { queue.push(resolved); } - let relPath = relative(dir, resolved + tmpSuffix).split("\\").join("/"); + let relPath = relative(dir, await temporaryPath(resolved)).split("\\").join("/"); if (!relPath.startsWith(".")) relPath = "./" + relPath; rewrites.set(specifier, relPath); } @@ -332,7 +361,7 @@ export async function rewriteFileTree( code = code.replace(new RegExp(`"${escaped}"`, "g"), `"${replacement}"`); } - const tmpPath = filePath + tmpSuffix; + const tmpPath = await temporaryPath(filePath); await writeFile(tmpPath, code, "utf-8"); tmpFiles.push(tmpPath); } From 3a76494d330c418c57b3aa207e923a4ebbf5dc69 Mon Sep 17 00:00:00 2001 From: hermes-exosphere Date: Tue, 24 Nov 2026 15:47:49 +0530 Subject: [PATCH 4/9] docs: record Node CommonJS policy-loading fix --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 87223c5b5..ffe1a8fae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ ### Fixes - Remove automated Dependabot approvals that GitHub rejects with workflow reviews disabled; contributor welcomes continue and dependency updates require human review (#1049) +- Preserve CommonJS policy files and their helpers as `.cjs` during import rewriting so packaged Node installs support `require`, `module.exports` and mixed ESM imports (#1049) - Releases no longer depend on the removed version-bot GitHub App. Its absence stopped the 1.0.16 npm publish at its first step and failed every post-release version bump. Nothing in CI pushes to `main` any more: each release workflow pushes its bump commit to a `version-bump/-` branch with the job's own token (`scripts/push-version-bump.sh`) and links a pre-filled pull request, which lands through review. `bump-platform-submodule.yml` is gone; Dependabot's `gitsubmodule` updates now keep `skills` current, and `platform` and `agenteye` need the same entry. `@failproofai/sdk`'s post-publish install check now reads the registry with `--prefer-online` and waits up to about 12 minutes; it had gone red on both releases even though both published. `@failproofai/sdk` opens 0.0.1-beta.3 (#1048) ### Dependencies From f746246ead8102149c55bbde5d42faee96adfe2e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 24 Nov 2026 09:26:11 +0000 Subject: [PATCH 5/9] chore(deps): bump the rust-dependencies group across 1 directory with 2 updates Bumps the rust-dependencies group with 2 updates in the / directory: [notify](https://github.com/notify-rs/notify) and [rusqlite](https://github.com/rusqlite/rusqlite). Updates `notify` from 8.2.2 to 9.0.0 - [Release notes](https://github.com/notify-rs/notify/releases) - [Changelog](https://github.com/notify-rs/notify/blob/main/CHANGELOG.md) - [Commits](https://github.com/notify-rs/notify/compare/notify-8.2.2...notify-9.0.0) Updates `rusqlite` from 0.42.0 to 0.43.0 - [Release notes](https://github.com/rusqlite/rusqlite/releases) - [Changelog](https://github.com/rusqlite/rusqlite/blob/master/Changelog.md) - [Commits](https://github.com/rusqlite/rusqlite/compare/v0.42.0...v0.43.0) --- updated-dependencies: - dependency-name: notify dependency-version: 9.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: rust-dependencies - dependency-name: rusqlite dependency-version: 0.43.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: rust-dependencies ... Signed-off-by: dependabot[bot] --- Cargo.lock | 19 +++++++++++++------ crates/fpai-collect/Cargo.toml | 4 ++-- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 428763e87..e59398d61 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -928,9 +928,9 @@ dependencies = [ [[package]] name = "notify" -version = "8.2.2" +version = "9.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c41a04a5f59df9322cc657286dd2d79f90816119b22c5f847607c850110205ab" +checksum = "5482d5bd11b91a337521980e5d52fe115bdccfb4c217099daaf0abd69159dc4e" dependencies = [ "bitflags", "inotify", @@ -943,13 +943,14 @@ dependencies = [ "objc2-core-services", "walkdir", "windows-sys 0.61.2", + "xxhash-rust", ] [[package]] name = "notify-types" -version = "2.1.0" +version = "2.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42b8cfee0e339a0337359f3c88165702ac6e600dc01c0cc9579a92d62b08477a" +checksum = "cbd044e85df3d939d8e32a1c35a3b737c7d0a4eeb7acd737bd207644e00f4e5f" dependencies = [ "bitflags", ] @@ -1288,9 +1289,9 @@ dependencies = [ [[package]] name = "rusqlite" -version = "0.42.0" +version = "0.43.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4edff0039f148731aee2fd80f76dbfeb12d204ab3d1c544838d34e02151049b" +checksum = "f172c4812a19b26d1c23cdb0070e69db335503dfa378b910eb857386e5b8beba" dependencies = [ "bitflags", "fallible-iterator", @@ -2189,6 +2190,12 @@ version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1ffae5123b2d3fc086436f8834ae3ab053a283cfac8fe0a0b8eaae044768a4c4" +[[package]] +name = "xxhash-rust" +version = "0.8.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "40de123dbb523ebcc00d61ec01840ad192578afc378d859f3429caa38308fad5" + [[package]] name = "yoke" version = "0.8.3" diff --git a/crates/fpai-collect/Cargo.toml b/crates/fpai-collect/Cargo.toml index a03e2a1b8..aa64e5dfa 100644 --- a/crates/fpai-collect/Cargo.toml +++ b/crates/fpai-collect/Cargo.toml @@ -33,7 +33,7 @@ reqwest = { version = "0.12", default-features = false, features = ["rustls-tls" # inotify on Linux, FSEvents on macOS. Only ever a latency optimisation — the # sweeper is what guarantees delivery, so a watcher that fails to register # degrades to interval-only rather than losing anything. -notify = "8" +notify = "9" # Epoch-millis to RFC3339 with microseconds. Hand-rolling civil date maths is # a silent-failure risk — a leap-year slip would put every event on the wrong # day with nothing to notice it — and this pulls no C code onto any of the @@ -50,7 +50,7 @@ notify = "8" # the file-tailer converters can leave it out. AgentEye's server imports Claude # Code / Codex transcripts with these converters, and its sqlx links a different # libsqlite3-sys — two crates linking `sqlite3` cannot share one build. -rusqlite = { version = "0.42", features = ["bundled"], optional = true } +rusqlite = { version = "0.43", features = ["bundled"], optional = true } # OpenClaw 2026.9.6+ stores a large transcript event zstd-compressed in # `event_zstd` and leaves `event_json` NULL. A pure-Rust decoder, for the same # reason rustls is chosen above: no C toolchain on the four cross-compiled legs. From ea1b9acf1a4f108163cb42e5e327df98e3a2f259 Mon Sep 17 00:00:00 2001 From: hermes-exosphere Date: Tue, 24 Nov 2026 15:29:31 +0530 Subject: [PATCH 6/9] fix(ci): keep Dependabot reviews human-approved --- .github/workflows/pr-contributor-welcome.yml | 21 +------ CHANGELOG.md | 5 ++ __tests__/ci/pr-contributor-welcome.test.ts | 60 ++++++++++++++++++++ 3 files changed, 67 insertions(+), 19 deletions(-) create mode 100644 __tests__/ci/pr-contributor-welcome.test.ts diff --git a/.github/workflows/pr-contributor-welcome.yml b/.github/workflows/pr-contributor-welcome.yml index a08155fb8..ec799d015 100644 --- a/.github/workflows/pr-contributor-welcome.yml +++ b/.github/workflows/pr-contributor-welcome.yml @@ -1,12 +1,12 @@ -name: Welcome contributors and approve Dependabot PRs +name: Welcome contributors on: pull_request_target: types: [opened] +# GitHub Actions approvals stay disabled; dependency updates require human review. permissions: contents: read - pull-requests: write issues: write jobs: @@ -30,20 +30,3 @@ jobs: issue_number: context.payload.pull_request.number, body, }); - - approve-dependabot: - name: Approve Dependabot PR - if: github.event.pull_request.user.login == 'dependabot[bot]' - runs-on: ubuntu-latest - steps: - - name: Approve pull request - uses: actions/github-script@v9 - with: - script: | - await github.rest.pulls.createReview({ - owner: context.repo.owner, - repo: context.repo.repo, - pull_number: context.payload.pull_request.number, - event: 'APPROVE', - body: 'Automated approval for Dependabot dependency update.', - }); diff --git a/CHANGELOG.md b/CHANGELOG.md index 27f07145c..717c56e35 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,8 +14,13 @@ ### Fixes +- Remove automated Dependabot approvals that GitHub rejects with workflow reviews disabled; contributor welcomes continue and dependency updates require human review (#1049) - Releases no longer depend on the removed version-bot GitHub App. Its absence stopped the 1.0.16 npm publish at its first step and failed every post-release version bump. Nothing in CI pushes to `main` any more: each release workflow pushes its bump commit to a `version-bump/-` branch with the job's own token (`scripts/push-version-bump.sh`) and links a pre-filled pull request, which lands through review. `bump-platform-submodule.yml` is gone; Dependabot's `gitsubmodule` updates now keep `skills` current, and `platform` and `agenteye` need the same entry. `@failproofai/sdk`'s post-publish install check now reads the registry with `--prefer-online` and waits up to about 12 minutes; it had gone red on both releases even though both published. `@failproofai/sdk` opens 0.0.1-beta.3 (#1048) +### Dependencies + +- Update `notify` from 8.2.2 to 9.0.0 and `rusqlite` from 0.42.0 to 0.43.0 (#1049) + ## 1.0.16-beta.0 — 2026-11-23 ### Fixes diff --git a/__tests__/ci/pr-contributor-welcome.test.ts b/__tests__/ci/pr-contributor-welcome.test.ts new file mode 100644 index 000000000..da2e75324 --- /dev/null +++ b/__tests__/ci/pr-contributor-welcome.test.ts @@ -0,0 +1,60 @@ +/** Contributor automation must work with GitHub Actions PR approvals disabled. */ +import { describe, expect, it, vi } from "vitest"; +import { readFileSync } from "node:fs"; +import { resolve } from "node:path"; +import { runInNewContext } from "node:vm"; +import { parse } from "yaml"; + +interface Workflow { + on: { pull_request_target: { types: string[] } }; + permissions: Record; + jobs: Record; + }>; +} + +const workflow = parse(readFileSync( + resolve(process.cwd(), ".github/workflows/pr-contributor-welcome.yml"), + "utf8", +)) as Workflow; + +describe("contributor welcome workflow", () => { + it("runs comment automation on opening a PR without approval permissions", () => { + expect(workflow.on.pull_request_target.types).toEqual(["opened"]); + expect(workflow.permissions.issues).toBe("write"); + expect(workflow.permissions["pull-requests"]).not.toBe("write"); + expect(Object.keys(workflow.jobs)).toEqual(["welcome"]); + }); + + it.each(["dependabot[bot]", "contributor"])("welcomes %s without creating a review", async (author) => { + const createComment = vi.fn().mockResolvedValue({}); + const createReview = vi.fn().mockRejectedValue(new Error("GitHub Actions is not permitted to approve pull requests.")); + const steps = workflow.jobs.welcome.steps; + expect(steps.some((step) => step.uses?.startsWith("actions/checkout"))).toBe(false); + const script = steps.find((step) => step.uses?.startsWith("actions/github-script"))?.with?.script; + expect(script).toBeDefined(); + + await runInNewContext(`(async () => {${script}})()`, { + github: { rest: { issues: { createComment }, pulls: { createReview } } }, + context: { + repo: { owner: "FailproofAI", repo: "failproofai" }, + payload: { pull_request: { number: 1049, user: { login: author } } }, + }, + }); + + expect(createComment).toHaveBeenCalledExactlyOnceWith({ + owner: "FailproofAI", + repo: "failproofai", + issue_number: 1049, + body: expect.stringContaining(`Thanks @${author}`), + }); + const body = createComment.mock.calls[0][0].body; + if (author === "dependabot[bot]") { + expect(body).toContain("keeping our dependencies current"); + } else { + expect(body).toContain("https://discord.befailproof.ai/"); + expect(body).toContain("https://www.reddit.com/r/failproofai/"); + } + expect(createReview).not.toHaveBeenCalled(); + }); +}); From 02a1b7d4b0416ef038c7731e0fa4df4553162fa2 Mon Sep 17 00:00:00 2001 From: hermes-exosphere Date: Tue, 24 Nov 2026 15:47:49 +0530 Subject: [PATCH 7/9] fix(hooks): preserve CommonJS when rewriting policy imports --- __tests__/e2e/helpers/hook-runner.ts | 8 ++- .../e2e/hooks/node-custom-hooks.e2e.test.ts | 46 +++++++++++++ __tests__/hooks/loader-commonjs.test.ts | 58 +++++++++++++++++ src/hooks/custom-hooks-loader.ts | 3 +- src/hooks/loader-utils.ts | 65 ++++++++++++++----- 5 files changed, 159 insertions(+), 21 deletions(-) create mode 100644 __tests__/e2e/hooks/node-custom-hooks.e2e.test.ts create mode 100644 __tests__/hooks/loader-commonjs.test.ts diff --git a/__tests__/e2e/helpers/hook-runner.ts b/__tests__/e2e/helpers/hook-runner.ts index f97901868..2d464336e 100644 --- a/__tests__/e2e/helpers/hook-runner.ts +++ b/__tests__/e2e/helpers/hook-runner.ts @@ -41,13 +41,17 @@ export function runHook( event: string, payload: Record, opts?: { + /** Node exercises the packaged CLI; Bun exercises the source entrypoint. */ + runtime?: "bun" | "node"; homeDir?: string; cwd?: string; agentScope?: "user" | "project" | "local"; cli?: "claude" | "codex" | "copilot" | "cursor" | "opencode" | "pi" | "hermes" | "openclaw" | "factory" | "devin" | "antigravity" | "goose"; }, ): HookRunResult { - const binaryPath = getBinaryPath(); + const binaryPath = opts?.runtime === "node" + ? resolve(REPO_ROOT, "dist", "cli.mjs") + : getBinaryPath(); if (!existsSync(binaryPath)) { throw new Error(`E2E binary not found: ${binaryPath}`); @@ -63,7 +67,7 @@ export function runHook( const args = [binaryPath, "--hook", event]; if (opts?.cli) args.push("--cli", opts.cli); if (opts?.agentScope) args.push("--agent-scope", opts.agentScope); - const result = spawnSync("bun", args, { + const result = spawnSync(opts?.runtime ?? "bun", args, { input: JSON.stringify(payload), env, cwd: opts?.cwd, diff --git a/__tests__/e2e/hooks/node-custom-hooks.e2e.test.ts b/__tests__/e2e/hooks/node-custom-hooks.e2e.test.ts new file mode 100644 index 000000000..d3d0f0efb --- /dev/null +++ b/__tests__/e2e/hooks/node-custom-hooks.e2e.test.ts @@ -0,0 +1,46 @@ +import { describe, expect, it } from "vitest"; +import { createFixtureEnv } from "../helpers/fixture-env"; +import { assertPreToolUseDeny, runHook } from "../helpers/hook-runner"; +import { Payloads } from "../helpers/payloads"; + +describe("CommonJS policies in the packaged Node CLI", () => { + it("loads a CommonJS entry with a transitive CommonJS helper", () => { + const env = createFixtureEnv(); + env.writeConfig({ enabledPolicies: [] }); + env.writePolicyFile("helper.cjs", ` + const { deny } = require("failproofai"); + module.exports = () => deny("CommonJS helper enforced"); + `); + env.writePolicyFile("node-policies.js", ` + const { customPolicies } = require("failproofai"); + const policy = require("./helper.cjs"); + customPolicies.add({ name: "node-cjs", match: { events: ["PreToolUse"] }, fn: async () => policy() }); + `); + const result = runHook("PreToolUse", Payloads.preToolUse.bash("ls", env.cwd), { + homeDir: env.home, runtime: "node", + }); + expect(result.exitCode, result.stderr).toBe(0); + assertPreToolUseDeny(result); + expect(result.stdout).toContain("CommonJS helper enforced"); + }); + + it("loads an ESM entry importing a CommonJS helper", () => { + const env = createFixtureEnv(); + env.writeConfig({ enabledPolicies: [] }); + env.writePolicyFile("helper.cjs", ` + const { deny } = require("failproofai"); + module.exports = () => deny("ESM to CommonJS helper enforced"); + `); + env.writePolicyFile("node-policies.mjs", ` + import { customPolicies } from "failproofai"; + import policy from "./helper.cjs"; + customPolicies.add({ name: "node-esm", match: { events: ["PreToolUse"] }, fn: async () => policy() }); + `); + const result = runHook("PreToolUse", Payloads.preToolUse.bash("ls", env.cwd), { + homeDir: env.home, runtime: "node", + }); + expect(result.exitCode, result.stderr).toBe(0); + assertPreToolUseDeny(result); + expect(result.stdout).toContain("ESM to CommonJS helper enforced"); + }); +}); diff --git a/__tests__/hooks/loader-commonjs.test.ts b/__tests__/hooks/loader-commonjs.test.ts new file mode 100644 index 000000000..71693a9b8 --- /dev/null +++ b/__tests__/hooks/loader-commonjs.test.ts @@ -0,0 +1,58 @@ +/** Exercise rewritten modules in native Node, which has no global ESM require. */ +import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; +import { spawnSync } from "node:child_process"; +import { mkdtempSync, rmSync, writeFileSync } from "node:fs"; +import { tmpdir } from "node:os"; +import { basename, join } from "node:path"; +import { pathToFileURL } from "node:url"; +import { cleanupTmpFiles, rewriteFileTree, TMP_SUFFIX } from "../../src/hooks/loader-utils"; + +describe("rewritten CommonJS policies under Node", () => { + let dir: string; + let temporaryFiles: string[]; + + beforeEach(() => { + dir = mkdtempSync(join(tmpdir(), "fpai-cjs-loader-")); + temporaryFiles = []; + vi.stubEnv("FAILPROOFAI_HOME", join(dir, "fp-home")); + writeFileSync(join(dir, "dist.cjs"), "module.exports = { value: 8 };\n"); + writeFileSync(join(dir, "helper.cjs"), 'module.exports = require("failproofai").value;\n'); + }); + + afterEach(async () => { + await cleanupTmpFiles(temporaryFiles); + vi.unstubAllEnvs(); + rmSync(dir, { recursive: true, force: true }); + }); + + async function importInNode(entry: string): Promise { + const dist = join(dir, "dist.cjs"); + temporaryFiles = await rewriteFileTree(entry, pathToFileURL(dist).href, dist); + const rewrittenEntry = temporaryFiles.find((file) => file.startsWith(entry + TMP_SUFFIX)); + expect(rewrittenEntry).toBeDefined(); + const result = spawnSync("node", [ + "--input-type=module", "-e", + "const loaded = await import(process.argv[1]); console.log(JSON.stringify(loaded.default));", + pathToFileURL(rewrittenEntry!).href, + ], { encoding: "utf8", timeout: 10_000 }); + expect(result.status, result.stderr).toBe(0); + return JSON.parse(result.stdout); + } + + it.each(["js", "cjs"])("preserves require and CommonJS globals in a .%s entry and its helper", async (extension) => { + const entry = join(dir, `entry.${extension}`); + writeFileSync(entry, [ + "#!/usr/bin/env node", + 'const { basename } = require("node:path");', + 'exports.value = require("./helper.cjs") + 1;', + "exports.directory = basename(__dirname);", + ].join("\n")); + expect(await importInNode(entry)).toEqual({ value: 9, directory: basename(dir) }); + }); + + it("keeps ESM .js imports working when a dependency is CommonJS", async () => { + const entry = join(dir, "entry.js"); + writeFileSync(entry, 'import value from "./helper.cjs"; export default value + 1;\n'); + expect(await importInNode(entry)).toBe(9); + }); +}); diff --git a/src/hooks/custom-hooks-loader.ts b/src/hooks/custom-hooks-loader.ts index 99e064a93..9e7a58d65 100644 --- a/src/hooks/custom-hooks-loader.ts +++ b/src/hooks/custom-hooks-loader.ts @@ -227,7 +227,8 @@ async function loadSingleFile( return null; } - const entryTmp = absPath + tmpSuffix; + const commonJsEntry = absPath + tmpSuffix + ".cjs"; + const entryTmp = tmpFiles.includes(commonJsEntry) ? commonJsEntry : absPath + tmpSuffix; const fileUrl = pathToFileURL(entryTmp).href; const hooksBefore = getCustomHooks().length; const semanticBefore = getSemanticRegistrations().length; diff --git a/src/hooks/loader-utils.ts b/src/hooks/loader-utils.ts index 52eaa7b23..48dff820f 100644 --- a/src/hooks/loader-utils.ts +++ b/src/hooks/loader-utils.ts @@ -16,6 +16,7 @@ import { tmpdir } from "os"; import { resolve, dirname, relative, join } from "path"; import { pathToFileURL } from "url"; import { createHash } from "crypto"; +import { Script } from "node:vm"; import { shimsDir } from "./fp-home"; import { hookLogWarn } from "./hook-logger"; @@ -86,6 +87,19 @@ const LOCAL_IMPORT_RE = /(?:import\s+(?:[\s\S]*?\s+from\s+)?|export\s+(?:[\s\S]* /** Regex to find local relative require specifiers (CJS). */ const LOCAL_REQUIRE_RE = /require\s*\(\s*(['"])(\.\.?\/[^'"]+)\1\s*\)/g; +/** Parse without executing; CommonJS copies need native require/module/exports. */ +function isCommonJs(filePath: string, code: string): boolean { + if (filePath.endsWith(".cjs")) return true; + if (filePath.endsWith(".mjs")) return false; + try { + new Script(`(function (exports, require, module, __filename, __dirname) {\n${code.replace(/^#![^\n]*/, "")}\n})`); + return true; + } catch { + // Static imports, exports and top-level await need an ESM copy. + return false; + } +} + export async function fileExists(path: string): Promise { try { await access(path); @@ -259,6 +273,36 @@ export async function rewriteFileTree( const queue: string[] = [entryPath]; const visited = new Set(); const tmpFiles: string[] = []; + const sourceCode = new Map(); + const temporaryPaths = new Map(); + + async function readSource(filePath: string): Promise { + const cached = sourceCode.get(filePath); + if (cached !== undefined) return cached; + // Verify the same raw bytes used to choose the module format and rewrite + // imports. Dependencies can be inspected before their turn in the queue. + const buf = await readFile(filePath); + if (entrySha256 && filePath === entryPath) { + const actual = createHash("sha256").update(buf).digest("hex"); + if (actual !== entrySha256) { + throw new Error( + `cloud-managed policy failed integrity re-verification at load: expected ${entrySha256}, got ${actual}`, + ); + } + } + const code = buf.toString("utf-8"); + sourceCode.set(filePath, code); + return code; + } + + async function temporaryPath(filePath: string): Promise { + const cached = temporaryPaths.get(filePath); + if (cached) return cached; + const extension = isCommonJs(filePath, await readSource(filePath)) ? ".cjs" : ""; + const path = filePath + tmpSuffix + extension; + temporaryPaths.set(filePath, path); + return path; + } let esmShimUrl: string | null = null; if (distIndex && distUrl) { @@ -272,22 +316,7 @@ export async function rewriteFileTree( if (visited.has(filePath)) continue; visited.add(filePath); - let code: string; - if (entrySha256 && filePath === entryPath) { - // Read the raw bytes, verify the pin against THEM, then decode and rewrite - // that same in-memory content — filePath is never read again, so the bytes - // imported below are exactly the bytes verified here. - const buf = await readFile(filePath); - const actual = createHash("sha256").update(buf).digest("hex"); - if (actual !== entrySha256) { - throw new Error( - `cloud-managed policy failed integrity re-verification at load: expected ${entrySha256}, got ${actual}`, - ); - } - code = buf.toString("utf-8"); - } else { - code = await readFile(filePath, "utf-8"); - } + let code = await readSource(filePath); // Rewrite 'failproofai' or legacy 'claudeye' imports to the ESM shim (or direct CJS for require) if (esmShimUrl) { @@ -317,7 +346,7 @@ export async function rewriteFileTree( if (!visited.has(resolved) && !queue.includes(resolved)) { queue.push(resolved); } - let relPath = relative(dir, resolved + tmpSuffix).split("\\").join("/"); + let relPath = relative(dir, await temporaryPath(resolved)).split("\\").join("/"); if (!relPath.startsWith(".")) relPath = "./" + relPath; rewrites.set(specifier, relPath); } @@ -332,7 +361,7 @@ export async function rewriteFileTree( code = code.replace(new RegExp(`"${escaped}"`, "g"), `"${replacement}"`); } - const tmpPath = filePath + tmpSuffix; + const tmpPath = await temporaryPath(filePath); await writeFile(tmpPath, code, "utf-8"); tmpFiles.push(tmpPath); } From 389bd867fc99114977b46a73a62285da36d0793f Mon Sep 17 00:00:00 2001 From: hermes-exosphere Date: Tue, 24 Nov 2026 15:47:49 +0530 Subject: [PATCH 8/9] docs: record Node CommonJS policy-loading fix --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 717c56e35..131a86f2a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ ### Fixes - Remove automated Dependabot approvals that GitHub rejects with workflow reviews disabled; contributor welcomes continue and dependency updates require human review (#1049) +- Preserve CommonJS policy files and their helpers as `.cjs` during import rewriting so packaged Node installs support `require`, `module.exports` and mixed ESM imports (#1049) - Releases no longer depend on the removed version-bot GitHub App. Its absence stopped the 1.0.16 npm publish at its first step and failed every post-release version bump. Nothing in CI pushes to `main` any more: each release workflow pushes its bump commit to a `version-bump/-` branch with the job's own token (`scripts/push-version-bump.sh`) and links a pre-filled pull request, which lands through review. `bump-platform-submodule.yml` is gone; Dependabot's `gitsubmodule` updates now keep `skills` current, and `platform` and `agenteye` need the same entry. `@failproofai/sdk`'s post-publish install check now reads the registry with `--prefer-online` and waits up to about 12 minutes; it had gone red on both releases even though both published. `@failproofai/sdk` opens 0.0.1-beta.3 (#1048) ### Dependencies From 89b36812c3d10a7d4c755fb205059ccc28e74e17 Mon Sep 17 00:00:00 2001 From: hermes-exosphere Date: Tue, 24 Nov 2026 16:01:54 +0530 Subject: [PATCH 9/9] docs: align CI fixes with current release notes --- .github/workflows/pr-contributor-welcome.yml | 2 +- CHANGELOG.md | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pr-contributor-welcome.yml b/.github/workflows/pr-contributor-welcome.yml index ec799d015..67d831124 100644 --- a/.github/workflows/pr-contributor-welcome.yml +++ b/.github/workflows/pr-contributor-welcome.yml @@ -4,7 +4,7 @@ on: pull_request_target: types: [opened] -# GitHub Actions approvals stay disabled; dependency updates require human review. +# Dependency updates require human review; this workflow only posts comments. permissions: contents: read issues: write diff --git a/CHANGELOG.md b/CHANGELOG.md index 131a86f2a..ede005750 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,8 +4,14 @@ ### Fixes +- Remove automated Dependabot approvals that GitHub rejects with workflow reviews disabled; contributor welcomes continue and dependency updates require human review (#1049) +- Preserve CommonJS policy files and their helpers as `.cjs` during import rewriting so packaged Node installs support `require`, `module.exports` and mixed ESM imports (#1049) - Release workflows now open the version-bump pull request themselves, using the job's own token, when the repository lets GitHub Actions create pull requests. When it does not, the run prints the pre-filled link as a warning and the release still succeeds. A re-run reuses an open bump pull request instead of opening a second one (#1052) +### Dependencies + +- Update `notify` from 8.2.2 to 9.0.0 and `rusqlite` from 0.42.0 to 0.43.0 (#1049) + ## 1.0.16-beta.0 — 2026-11-24 ### Features @@ -14,13 +20,8 @@ ### Fixes -- Remove automated Dependabot approvals that GitHub rejects with workflow reviews disabled; contributor welcomes continue and dependency updates require human review (#1049) -- Preserve CommonJS policy files and their helpers as `.cjs` during import rewriting so packaged Node installs support `require`, `module.exports` and mixed ESM imports (#1049) - Releases no longer depend on the removed version-bot GitHub App. Its absence stopped the 1.0.16 npm publish at its first step and failed every post-release version bump. Nothing in CI pushes to `main` any more: each release workflow pushes its bump commit to a `version-bump/-` branch with the job's own token (`scripts/push-version-bump.sh`) and links a pre-filled pull request, which lands through review. `bump-platform-submodule.yml` is gone; Dependabot's `gitsubmodule` updates now keep `skills` current, and `platform` and `agenteye` need the same entry. `@failproofai/sdk`'s post-publish install check now reads the registry with `--prefer-online` and waits up to about 12 minutes; it had gone red on both releases even though both published. `@failproofai/sdk` opens 0.0.1-beta.3 (#1048) -### Dependencies - -- Update `notify` from 8.2.2 to 9.0.0 and `rusqlite` from 0.42.0 to 0.43.0 (#1049) ## 1.0.16-beta.0 — 2026-11-23