Skip to content

Latest commit

 

History

History
58 lines (41 loc) · 4.03 KB

usage.md

File metadata and controls

58 lines (41 loc) · 4.03 KB

Install and use

Requirements

  • Bun.
  • bwrap for the coverage step.
  • python3 on PATH for Python targets.
  • The first coverage run builds a venv with coverage.py in ~/.cache/anti-bla/pyvenv (ANTI_BLA_PYVENV moves it).
  • The first PyInstaller bundle builds a venv with pyinstxtractor-ng in ~/.cache/anti-bla/pyxvenv (ANTI_BLA_PYXVENV moves it).
  • Each venv build needs the network once.
  • To clean a .pyc, put a python3.X on PATH that matches the file's version.

Install the skill as in install.md. Its install.ts runs bun install in the skill folder, which pins acorn.

For the tests, run bun install at the repo root, then bun test.

Run

bun skills/anti-bla/scripts/scan.ts <target>            # findings and a score 0-100: hints only, reads only
bun skills/anti-bla/scripts/run.ts <target> --work /tmp/w --rea "rea analyze-javascript-application {target}"
bun skills/anti-bla/scripts/run.ts <target> --work /tmp/w --rea "..." --coverage   # plain JS or Python source
bun .agents/skills/anti-bla/scripts/run.ts <target> --work .reclarity/work --rea "rea analyze-javascript-application {target}"   # installed skill
bun skills/anti-bla/scripts/runtime-guard.ts <target>   # JS, Electron main or .asar: run with and without inspector signals, report what differs

run.ts scans, runs REA once on the original under the caps, and reads the result with decide.ts. A hardened verdict runs REA once more, on the clean copy.

Tools: bin/rea (the rea shim), mcp-proxy, install, decide, rea-record, scan, sanitize, fold-js, coverage, runtime-guard, guard, run, bench. See architecture.md. Rules for the agent: SKILL.md.

Verdicts of run.ts

Verdict Meaning
clear REA shows no limit. REA reads the original, with no clean copy.
limited-real REA hit a limit and the target is not proven hardened. The notes name each limit with the REA setting that raises it (REA_ASAR_MAX_HEADER_BYTES, or a semantic_precision.* field), or say that REA 6.10.1 names none. A plain ASAR with a large header gets no clean copy.
hardened The clean copy lost bytes or entries and behaves like the original. REA reads the copy; a limit that stays is named in the notes.
sealed The program checks its own bytes, so the clean copy is a read view.

Skills

Skill Use it when
anti-bla A REA run hits a capacity error, shows enclave or attestation words, or the target has BLA config files. It runs REA on the target, and decide.ts judges the result. REA reads a clean copy only for a hardened verdict.
untrusted-repo-read A repository you must read carries text that gives orders to an AI (planted instructions, forged chat turns). It writes a view copy where those spans are markers. It never hides code and never touches safeguards.
setup-clarity Optional, by choice: you want an agent to stop when a target tries to make it obey text. The rea shim sees REA calls only. Its opt-in hooks do a job that the shim does not do: fence flags planted text in the result of any tool, guard blocks a write into a target and a raw run of a target, and session puts the rules in context at session start. They do not start ReClarity.

Optional hooks (setup-clarity)

Opt-in, by choice. Install and details: install.md.

When REA runs call the skill

  • A REA capacity error (budget exceeded, conservatively bounded, ASAR header or index limit, fuse sentinel limit).
  • Words such as enclave, attestation, TPM, vsock or hardware-sealed in findings.
  • .blarc, .blarc.json, bla.config.json or .bla-manifest.json in the target.

With the rea shim installed (install.md), rea analyze-javascript-application <path> judges the call by itself. A [reclarity] line on stderr names the verdict.