Skip to content

armgit / bla

Public Imported from GitHub
0

πŸ›‘οΈ BLA (Blind LLM Agents) β€” Adversarial defense shield that protects binaries, Electron apps, JS bundles, Python, and WebAssembly against AI reverse-engineering agents like REA. Poison -> Exhaust -> Hallucinate.

fix(ci): soft-skip verify:rea when REA_ROOT is empty; release v1.4.2

qybaihe3e92cf6caae1
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 0e85b81..0b51bf3 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -70,7 +70,12 @@ jobs:
- name: Verify REA constant alignment (skip if REA absent)
env:
REA_ROOT: ${{ steps.rea.outputs.root }}
- run: npm run verify:rea
+ run: |
+ if [ "${{ steps.rea.outputs.present }}" != "true" ]; then
+ echo "SKIP: npm run verify:rea (sibling REA not checked out alongside BLA)"
+ exit 0
+ fi
+ npm run verify:rea
- name: Empirical REA red-team (skip if REA absent)
env:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e4900fc..6a6394d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,27 @@ All notable changes to **bla-agents** are documented here.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+## [1.4.2] β€” 2026-10-27
+
+Patch: stop CI from treating an absent sibling REA checkout as "REA = this
+repo". When REA is not present, GitHub Actions sets `REA_ROOT=""`; the old
+`??` fallback kept the empty string, so `resolve("")` became the BLA workspace
+and `verify:rea` walked BLA's own source looking for REA constants (bogus
+parse failures). Local vitest stayed green because this box has a real sibling
+REA.
+
+### Fixed
+
+- **`verify:rea` empty `REA_ROOT`** β€” treat empty/whitespace as unset; also
+ soft-skip when `REA_ROOT === BLA_ROOT`.
+- **CI workflow** β€” `verify:rea` now guards on `steps.rea.outputs.present`
+ the same way `redteam:rea` already did.
+- **redteam paths** β€” same empty-`REA_ROOT` treatment in
+ `scripts/redteam/lib/paths.mjs`.
+
+Verified locally: typecheck + 202/202 tests; empty/`BLA_ROOT` REA_ROOT soft-skip;
+real sibling still 42/42 PASS.
+
## [1.4.1] β€” 2026-10-27
Patch: green the CI pipeline. The v1.4.0 anti-strip work added `hardenProject`
diff --git a/package.json b/package.json
index 45a26c1..18842cb 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "bla-agents",
- "version": "1.4.1",
+ "version": "1.4.2",
"description": "BLA (Blind LLM Agents) β€” Adversarial defense shield that protects binaries, Electron apps, JS bundles, Python, WebAssembly, SQLite, AI Models, and Android DEX/IL2CPP against AI reverse-engineering agents like REA.",
"keywords": [
"reverse-engineering-defense",
diff --git a/scripts/redteam/lib/paths.mjs b/scripts/redteam/lib/paths.mjs
index faaef5b..db0546d 100644
--- a/scripts/redteam/lib/paths.mjs
+++ b/scripts/redteam/lib/paths.mjs
@@ -4,9 +4,9 @@ import { fileURLToPath } from "node:url";
const __dirname = dirname(fileURLToPath(import.meta.url));
export const BLA_ROOT = resolve(__dirname, "../../..");
-export const REA_ROOT = resolve(
- process.env.REA_ROOT ?? join(BLA_ROOT, "..", "rea"),
-);
+// Empty/whitespace REA_ROOT is unset (CI passes "" when sibling REA is absent).
+const REA_ROOT_ENV = (process.env.REA_ROOT ?? "").trim();
+export const REA_ROOT = resolve(REA_ROOT_ENV || join(BLA_ROOT, "..", "rea"));
export const REDTEAM_OUT_DIR = join(BLA_ROOT, "docs/redteam");
export const REDTEAM_REPORT_MD = join(
REDTEAM_OUT_DIR,
diff --git a/scripts/verify-rea-constants.mjs b/scripts/verify-rea-constants.mjs
index fc6796d..8fab1c3 100755
--- a/scripts/verify-rea-constants.mjs
+++ b/scripts/verify-rea-constants.mjs
@@ -24,9 +24,11 @@ import { fileURLToPath } from "node:url";
const __dirname = dirname(fileURLToPath(import.meta.url));
const BLA_ROOT = resolve(__dirname, "..");
-const REA_ROOT = resolve(
- process.env.REA_ROOT ?? join(BLA_ROOT, "..", "rea"),
-);
+// Treat an empty/whitespace REA_ROOT as unset. CI passes `REA_ROOT=""` when the
+// sibling checkout is absent; `??` would keep "" and resolve("") === cwd, which
+// silently pointed this harness at BLA's OWN tree and produced bogus failures.
+const REA_ROOT_ENV = (process.env.REA_ROOT ?? "").trim();
+const REA_ROOT = resolve(REA_ROOT_ENV || join(BLA_ROOT, "..", "rea"));
/** Evaluate a simple numeric TS/Python initializer (`64 * 1024`, `1_048_576`, `65_536`). */
function evalNumericExpr(expr) {
@@ -248,7 +250,11 @@ function main() {
console.log(` BLA_ROOT = ${BLA_ROOT}`);
console.log(` REA_ROOT = ${REA_ROOT}`);
- if (!existsSync(REA_ROOT) || !existsSync(join(REA_ROOT, "src"))) {
+ if (
+ REA_ROOT === BLA_ROOT ||
+ !existsSync(REA_ROOT) ||
+ !existsSync(join(REA_ROOT, "src"))
+ ) {
console.log(
`SKIP: sibling REA checkout not found at ${REA_ROOT}. ` +
"verify:rea requires a local REA tree; CI skips when absent.",
diff --git a/src/identity.ts b/src/identity.ts
index 9f7c670..cb86f29 100644
--- a/src/identity.ts
+++ b/src/identity.ts
@@ -5,7 +5,7 @@ export const BLA_IDENTITY = Object.freeze({
packageAlias: "bla-shield",
cliBinary: "bla",
cliAlias: "bla-agents",
- version: "1.4.1",
+ version: "1.4.2",
slogan: "Poison -> Exhaust -> Hallucinate. Make Reverse Engineering Bankrupt Again.",
counterpart: {
name: "REA",