Commit Graph

43 Commits

Author SHA1 Message Date
qybaihe d66b9af1f2 feat(sidecar): auto-wire WASM JS-loader hook into known Node ESM loaders + REA catalog hygiene
Extend the 2026-11-16 Node CJS auto-wire so a same-directory Node.js
ESM loader (.mjs or ESM .js) whose static import/export-from specifiers
are Node builtins only also receives the already-landed WASM
bla.sidecar.v1 load-time hook (carrier: "module"). Record
wasm-sidecar-entangle and clear wasm-sidecar-host-verify-only only when
that hook was actually written. Browser fetch-only loaders and ESM
files that statically import user modules or .wasm stay untouched.

Honesty: jsModuleHasHoistedDependencyGraph no longer treats Node
builtin-only imports as a user hoisted graph.

Catalog REA tip 05be423ac inspection/walk ceilings (DWARF, ELF
debug-link/DT_NEEDED, Maven/Gradle, NuGet, Android OTA/boot) as
honesty-only REA_INTERNAL_LIMITS — not densify trip targets.
2026-11-18 02:08:36 +08:00
qybaihe f6f37c4cca chore(release): bla-agents v3.4.3 2026-11-17 14:43:17 +08:00
qybaihe 645993f96d chore(release): bla-agents v3.4.2
Cut 3.4.2 for the WASM JS-loader hook auto-wire (record
wasm-sidecar-entangle / clear wasm-sidecar-host-verify-only only when a
same-directory Node CJS loader was actually injected) and the REA
26d88826c catalog hygiene (SQLITE_WORKER_HEAP_BYTES). Also includes the
post-3.4.1 main work already on de982cb.
2026-11-17 02:29:33 +08:00
qybaihe 1eb0978b73 feat(sidecar): auto-wire WASM JS-loader hook into known Node CJS loaders + REA catalog hygiene
When sidecarEntangle is on, protectTarget and hardenProject inject the
already-landed WASM JS-loader hook into a same-directory Node.js CommonJS
loader that already uses fs and WebAssembly.instantiate/compile/
instantiateStreaming and mentions the .wasm basename (known names only:
<stem>.cjs/.js, loader.*, index.*). Browser, ESM, minified, already-
entangled, and unranked app entries such as license.cjs are left
untouched so baked self-seal digests stay valid. Record
wasm-sidecar-entangle and clear wasm-sidecar-host-verify-only only when
that hook was actually written. Default remains OFF.

Catalog REA tip 26d88826c SQLITE_WORKER_HEAP_BYTES (256 MiB) as honesty-
only; no new 1:1 densify counters in the +208 delta.
2026-11-17 02:28:40 +08:00
Timo Zhang 78c094dd58 Merge pull request #228 from DeryFerd/ci/pin-node-22-floor
ci: pin the ubuntu Node 22 leg to the declared engines floor
2026-11-16 23:51:02 +08:00
qybaihe a89e42ae5b docs(skill,mcp,cli): ESM static imports evaluate before the entry hook
Update Skill B, DESIGN, STATE, CHANGELOG [Unreleased], MCP
sidecar_entangle descriptions, and CLI help so ESM-native preambles
are not described as full process-start strip⇒fail. Keep the
CJS-into-ESM functional-equivalence rule; document the hoist gap.
2026-11-16 10:06:03 +08:00
DeryFerd 241b3bef05 ci: pin the ubuntu Node 22 leg to the declared engines floor
package.json requires `^22.23.4 || >=24.0.0` and STATE.md documents the final
gate matrix as Node 22.23.4 plus Node 24.22.1, but the CI matrix asked for the
floating `22` alias, so the leg could silently resolve below the supported
floor and never proved the minimum we declare. Pin it to 22.23.4 and describe
the matrix accurately in STATE.md.
2026-11-16 02:04:52 +07:00
qybaihe 98e01cc47b chore(release): bla-agents v3.4.1
Cut 3.4.1 for the optional WASM JS-loader sidecarEntangle hook and the
REA #11144 / #11181 catalog hygiene (JavaScript member-mutation work
allowance).
2026-11-16 02:10:05 +08:00
qybaihe c677256c0f feat(sidecar): optional WASM JS-loader hook for bla.sidecar.v1 strip⇒fail + REA catalog hygiene
Add generateSidecarWasmLoaderSnippet / prependWasmSidecarLoaderHook /
entangleWasmLoaderWithSidecars / computeWasmSidecarCodeIdentity so a host JS
loader can wrap WebAssembly.instantiate, compile, and instantiateStreaming
and fail closed when a protected module's bla.sidecar.v1 custom section is
stripped or sibling sidecars are altered. Unrelated WASM passes through.
The hook is host-opt-in; wasm-sidecar-entangle stays unrecorded and the
wasm-sidecar-host-verify-only honesty gap remains until a protect/harden
path actually injects the hook. sidecarEntangle stays default OFF.

Catalogue REA #11144 / #11181 javascript.member_mutation_alias_states as
REA_INTERNAL_LIMITS (recoverable budget, not a densify trip target).
2026-11-16 02:09:38 +08:00
qybaihe 7f5faf68da chore(release): bla-agents v3.4.0 2026-11-16 00:25:41 +08:00
qybaihe b2af7a50f8 chore(release): bla-agents v3.3.2
Cut 3.3.2 for the SQLite schema-comment sidecarEntangle increment and
the REA #4445 / #9756 catalog hygiene (NativeAOT work-budget scaling
and Android split-fact report allowances).
2026-11-15 02:26:18 +08:00
qybaihe 06f29ce97c feat(sidecar): SQLite schema-comment note strip⇒fail + REA catalog hygiene
When sidecarEntangle is opted in, plant an unused bla_sidecar_v1 VIEW
(SELECT '<json>' AS "bla.sidecar.v1" WHERE 0) binding sibling sidecars
(generate/bind/entangle/verifySqliteSidecarSchemaComment). User tables,
rows, query results, WAL/FK, and application_id/user_version stay
unchanged. Host-verify only — do not record sqlite-sidecar-entangle
until a load-time hook lands; defenseScore annotates
sqlite-sidecar-host-verify-only (soft-cap 93). Default remains OFF.

Also catalogues REA #4445 NativeAOT work-budget scaling
(NATIVE_AOT_BASE_WORK_UNITS + 8 units/byte; a relaxation, not a new
densify target) and REA #9756 ANDROID_NATIVE_SPLIT_TYPES / _TYPE_CHARS
(report allowance only).
2026-11-15 02:26:02 +08:00
qybaihe 53b8aae354 chore(release): bla-agents v3.3.1
Cut 3.3.1 for the DEX string-pool sidecarEntangle increment, the
REA #10227 DEX_ARRAY_DIMENSIONS catalog, and the already-landed
post-3.3.0 work (MBA substitutions, hypothesis-revision decoys,
release-hygiene gate, verify-sidecar CLI, technical SEO).
2026-11-14 02:28:26 +08:00
Timo Zhang 6b67926337 chore(release): bla-agents v3.3.0 (#201) 2026-11-13 16:34:27 +08:00
Dery Ferdika 5176026df7 test(docs): guard the published benchmark aggregate against the run (#199)
README.md, STATE.md and the localized README each published a different
aggregate (639.5x vs 612.5x) and every per-target row in both benchmark tables
was stale. Refresh both tables and the aggregate line from a live run, and add
a guard that keeps the three surfaces equal and within 10% of the computed
showcase aggregate.
2026-11-13 16:14:08 +08:00
qybaihe f3404be3aa feat(sidecar): GGUF metadata-note strip⇒fail + protectGgufBuffer alignment fix + bla-agents@3.2.6
Extend opt-in sidecarEntangle to GGUF via a bla.sidecar.v1 STRING metadata KV
(generateSidecarGgufMetadataNote / bindGguf / entangleGguf / verifyGguf), with
alignment-safe rebuildGguf so tensor bytes stay bit-exact. Host-verify only
(loaders ignore unknown STRING keys); do not record gguf-sidecar-entangle until
a load-time hook lands; defenseScore gap gguf-sidecar-host-verify-only.
Also fix protectGgufBuffer which previously corrupted tensor data by splicing
KV bytes without re-padding the aligned data section. Default OFF.
2026-11-13 02:28:03 +08:00
Timo Zhang 8d6409b29f fix(crackme-v9): seal.json DELETE fail-closed (red 2026-11-10) (#168)
* fix(crackme-v9): seal.json absence throws integrity check failed

loadSeal() used to let ENOENT from missing seal.json soft-fold through
verifyLicenseGate into [license] DENIED (same as a wrong key). Pin failures
must fail-closed: throw integrity check failed: seal.json missing so delete
matches digest-mismatch hard-fail. Published hardened still needs rebuild.

* test(crackme-v9): assert seal.json delete hard-fails on cleartext and fixture

Covers the ENOENT≡digest-mismatch invariant through materializeTarget and
full 4-stage fixture harden. Release hardened fixture still predates the
host fix until CRACKME_V9_* rebuild.

* docs(skill,state): pinned digests fail-closed on absence (v9 red 2026-11-10)

Skill B: EXPECTED_*_SHA256 pins must hard-fail on ENOENT, never soft DENIED.
STATE/CHANGELOG/DESIGN record the exposure, source fix, and published
hardened residual until release-secret rebuild.
2026-11-12 15:11:04 +08:00
Timo Zhang 0cd513e08e fix(sidecar): .pyc marshal-note is host-verify only (red 2026-11-12) (#175)
* fix(sidecar): do not claim pyc-sidecar-entangle for a host-only trailer

The TYPE_ASCII marshal note is ignored by importlib, so strip or sibling
delete still execute. Recording pyc-sidecar-entangle (and clearing the
strip⇒fail defenseScore gap) was paper coverage. Keep planting the note
and host verifyPycSidecarMarshalNote; annotate pyc-sidecar-host-verify-only
until an import-time hook lands.

* test(sidecar): assert .pyc marshal notes stay host-verify only

protectTarget must not list pyc-sidecar-entangle; importlib still returns
the same RESULT after trailer strip or sidecar delete, while the host
verifier fails closed. defenseScore keeps cap 93 via the new gap when
the host-only note is enabled.

* docs(skill,state): sidecar vectors require a process-start hook

Skill B: only record a countered strip⇒fail sidecar vector when the
entry hook hard-fails at process start or import. Host-only verifiers
(such as verifyPycSidecarMarshalNote) are binding notes, not coverage.
CHANGELOG/STATE/DESIGN record the 2026-11-12 honesty residual.
2026-11-12 14:57:45 +08:00
qybaihe 9c41bb53b0 feat(sidecar): .pyc marshal-note strip⇒fail + bla-agents@3.2.5
Extend opt-in sidecarEntangle to CPython .pyc via a TYPE_ASCII marshal
trailer (__blaPycSidecarDigest) verified by verifyPycSidecarMarshalNote.
importlib ignores post-root trailers so executed bytecode stays equivalent.
protectTarget + hardenProject .pyc post-pass; vector pyc-sidecar-entangle;
default OFF. Catalog NativeAOT + IL2CPP v108 limits (no new densify trips).
2026-11-12 02:27:34 +08:00
Timo Zhang 0269b5b0f4 fix(self-seal,js,weave): close single-entry self-digest gap, encryptStrings MTP & marker leak, 32-bit gate warning, and TemplateLiteral de-literalization (#172) 2026-11-11 13:58:23 +08:00
qybaihe 3e53a1e5b6 feat(sidecar): ASAR main JS preamble strip⇒fail + bla-agents@3.2.4
Complete opt-in ASAR sidecar entanglement with an in-archive Electron main
JS preamble (generateSidecarAsarMainJsPreamble / selectAsarMainJsMember /
entangleAsarMainJsWithSidecars) that re-measures decoy members via
fs-patched readFileSync. Digest labels stay asar-root-relative for parity
with .bla/sidecar.v1.json; protect + harden wire when sidecarEntangle is
on (default OFF). REA +12 since e9b6c87c1 had no new 1:1 densify budgets.
2026-11-11 02:25:01 +08:00
qybaihe 38d26d5219 feat(sidecar): ASAR archive-note strip⇒fail + bla-agents@3.2.2
Plant in-archive `.bla/sidecar.v1.json` when sidecarEntangle is on, binding
enclave/hardware-tee-bridge.js (protect + harden ASAR post-pass). Host-side
verifyAsarSidecarArchiveNote closes strip/alter. Default remains OFF.
2026-11-10 02:13:49 +08:00
qybaihe 439d0e5ea2 feat(sidecar): Bun companion strip⇒fail + defenseScore honesty gap
Extend opt-in sidecarEntangle to Bun/EOF-preserved native companions via a
sibling .bla-sidecar.v1.json note (generateSidecarBunCompanionNote /
bindBunSidecarEntanglement / entangleBunEntryWithSidecars /
verifyBunSidecarCompanionNote). protectTarget auto-binds the planted
.bunfs-snapshot without rewriting the byte-exact binary; hardenProject
covers Bun-only trees. Add sidecar-entangle-not-enabled defenseScore
soft-cap (93) with sidecarEntangleEnabled / MCP sidecar_entangle_enabled.
Fix harden sidecar post-pass options.inPlace TypeScript break from #148.
Release bla-agents@3.2.0.
2026-11-09 02:16:14 +08:00
qybaihe 704bc27a5d chore(release): bla-agents v3.1.1
Release v3.1.1 shipping @babel/* v8.1.0 compatibility, WASM custom-section
sidecar strip⇒fail entanglement (bla.sidecar.v1), multi-language JS/TS,
Python, and Native (C/C++/Rust/Go) weave planner & verifier hardening from
subagent dogfooding, and recursive bla_encrypt_strings discovery. Sync
package/identity/lock/challenge SEAL versions and skill frontmatter; add
docs/releases/v3.1.1.md.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-08 16:17:48 +08:00
qybaihe 41345ff3f9 feat(sidecar): WASM custom-section strip⇒fail entanglement
Plant a bla.sidecar.v1 custom-section note with the sidecars-mode binding
digest + path labels (no export/behavior change). Host-side
verifyWasmSidecarCustomSection re-hashes siblings for strip/alter fail.
Wire protectTarget (.wasm) and harden WASM-only post-pass when
sidecarEntangle is on (default OFF). DESIGN/STATE/CHANGELOG updated.
2026-11-08 02:12:29 +08:00
qybaihe 8a7d898239 chore(release): bla-agents v3.1.0
Agent-First Closed-Loop Hardening Engine upgrade: Check 7
(`crown-jewel-entanglement`) + syntax validation (`syntaxValid`) + native
C/C++/Rust/Go source weave verification (`verifyNativeWeaveFile`) in
`bla_verify_weave`, `require_agent_weave` gate across `bla_harden` and
`bla_defend`, `crownJewelCandidates` + `dataFlowEntanglementPlan` in
`bla_weave_plan`, and 6-round Red-Blue adversarial weave validation. Sync
package/identity/lock/challenge SEAL versions and skill frontmatter; add
`docs/releases/v3.1.0.md`.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-07 21:33:42 +08:00
qybaihe 8f90e567eb chore(release): bla-agents v3.0.1
Python sidecar strip⇒fail preamble completes the JS+Python entanglement
slice (issue #40). Sync package/identity/lock/challenge SEAL versions and
skill frontmatter; add docs/releases/v3.0.1.md.
2026-11-07 02:29:58 +08:00
qybaihe a46ebc9505 docs(sidecar): mark Python strip⇒fail slice landed; queue WASM
Update DESIGN status, STATE residual, and Unreleased changelog for the
Python preamble follow-up to the JS vertical slice.
2026-11-07 02:14:55 +08:00
qybaihe 2c5ea508cf feat(v3.0.0): Agent-Driven Hardening 3.0, bla_verify_weave, Red-Blue Rounds A-F & CrackMe v9 Sovereign 2026-11-06 17:13:33 +08:00
Timo Zhang 20542f3ffa Merge pull request #105 from DeryFerd/docs/drift-fixes
docs: align Node engine, release model, and benchmark figures with code
2026-11-06 14:56:44 +08:00
qybaihe 03849daebb fix(test): macos-safe strip⇒fail reloads for sidecar entangle
Bust require.cache via realpathSync and re-verify strip/alter with a
fresh node process so /var→/private/var tmpdir aliases cannot leave a
stale module cached (CI macos failure on #93). Document #95 missing-
sibling hard-fail in STATE/CHANGELOG Unreleased.
2026-11-06 10:06:54 +08:00
qybaihe eae28c8b8e docs(sidecar): mark JS strip⇒fail slice landed; queue Python/WASM
STATE #2 and design note updated; CHANGELOG Unreleased entry added.
No version bump (still 2.1.0).
2026-11-06 10:05:21 +08:00
DeryFerd 524b9c1a6d docs: align Node engine, release model, and benchmark figures with code
The install guide advertised Node ^22.13.0 while package.json requires ^22.23.4; STATE.md called releases tag-only although the release workflow can publish to npm with provenance; and the README benchmark was a v1.4.0 run on a v2.1.0 project. Refresh the numbers from a local v2.1.0 benchmark (639.5x tokens / 304.4x cost, 14/14 runtime-exact) and align the AGENTS.md engine range.
2026-11-06 02:07:04 +07:00
qybaihe db54442770 chore(release): bla-agents v2.1.0
Bump package/identity/lock/SEAL blaVersion + Skill guide to 2.1.0.
CHANGELOG and docs/releases/v2.1.0.md cover post-2.0 absorptions
(#78–#88): polymorph report, string XOR encrypt, integrity coverage,
entry self-digest, CrackMe v8, MCP pin, audit --fail-under, ed25519.
Widen skill metadata version regex to 2.x.y. No npm publish.
2026-11-05 16:27:02 +08:00
qybaihe cd218dcc21 docs(skill+plan): real-not-paper entry self-coverage principle
Skill section B: entry counts as self-covered only when its runtime check
hard-fails on its own bytes; check integrityCoverageSelfVerified; keep
host-trust values inside covered artifacts. STATE/CHANGELOG/design note
record the 2026-11-05 CrackMe v8 round (NO PRIZE, REA unverified).
2026-11-05 10:08:24 +08:00
qybaihe c541f0be09 chore(release): bla-agents v2.0.0
Bump package/identity/lock to 2.0.0; CHANGELOG + STATE + Skill v2.0.0
document packaging-gates, MCP write-safety, and R1–R12 refuse/recipe/honesty
vs 1.x. Release notes in docs/releases/v2.0.0.md.
2026-11-03 11:56:33 +08:00
qybaihe 3d1f5329ce docs(2.0): Skill v1.5.23 layers R1–R12 refuse / recipe / honesty
Restructure Skill principles into A refuse gates, B product recipes
(SHA-256 KDF, commitment-outside-XOR, host FLAG+cert), C engine hygiene,
D white-box residual. Extend format-wasm appendix through R12; refresh
cli-and-mcp + CHANGELOG/STATE. No new refuse lint for P2 WASM RE.
2026-11-03 11:41:25 +08:00
qybaihe 0edd5f8deb docs: sync STATE/skill/CHANGELOG for wasmPreserveExports and #40 progress
Bump blind-llm-agents skill to 1.3.2; mark landed #40 items in STATE and
weave-decoy follow-ups.
2026-11-02 21:39:38 +08:00
Timo Zhang a426ca4a17 feat(python): remmarshal .pyc customer-def weave_decoys (v1.6.4) (#54)
Extend weave_decoys beyond .py AST into CPython .pyc: decode marshal with
FLAG_REF early-reserve (containers + CODE), copy shared co_consts before
mutate, append unused decoy TYPE_CODE into module and customer defs while
preserving co_code and trailer canaries. Planner maturity python-pyc=woven.
2026-11-02 02:14:21 +08:00
Dery Ferdika ea0ea89a5e docs(state): sync STATE.md header and coverage table to v1.6.3 (#46)
The state header still said 1.4.6, called the publish blocker a missing
GitHub token, and listed firmware as skipped. Releases are now tag-only
(CHANGELOG carries 1.6.3), the CI matrix runs Node 24 on ubuntu/macos/
windows, and 1.6.2 shipped the UF2 firmware shield against REA #8230.

Update the version/status/publishing lines and split the firmware row
so UF2 is tracked separately from the still-skipped SPIR-V/CUDA/AMD
GPU objects. No code changes.
2026-11-01 16:01:18 +08:00
qybaihe c77c468f73 feat(android,r8): counter REA #7456/#7472 with mapping poison + JNI decoy .so (v1.4.6)
Register PROGUARD_MAPPING_* / ANDROID_JNI_* / MAX_NATIVE_EXPORT_ROWS in identity.
Add android-r8.ts (residual conflicts past candidates:8, malformed past 16, ELF64
AArch64 ET_DYN with real Java_* dynsym). Wire into unsigned APK + DEX trailer.
verify:rea now 54 checks (Object.freeze-aware). Tests 206/206 on Node 24.
2026-10-28 02:12:47 +08:00
qybaihe 7aff8e68dc test+docs: anti-strip gate, real-REA-only evidence, demote verify:rea
Critique #3/#4: npm run redteam:rea is the sole authoritative gate (JS now
trips real REA resourceLimits); verify:rea labeled drift-harness-only.
Anti-strip vitest proves grep -v cannot recover clean source. Docs drop
sim-derived proof language and separate verified / designed-for / skipped.
2026-10-27 09:56:45 +08:00
qybaihe be33f90bdd docs: add STATE.md and record dogfood polish for v1.4.0
Project snapshot with empirical matrix, one-sentence usage, remaining
roadmap, and publish checklist once a GitHub token exists.
2026-10-27 05:18:43 +08:00