Repository navigation
Actualis 0.4.0
Upgrading from 0.3.0: what can change a gate
The same transcripts can give a different exit code than they did on 0.3.0.
Each of these is listed in full below.
- New agents are read by default.
--agentdefaults toall, which now
includes Gemini CLI and Qwen Code. On a machine with their transcripts, their
commands, credentials and downloads join the report and the gate. --fail-oncan newly exit 3 on transcripts 0.3.0 passed:- new
highremote-execshapes: a shell fed code through a heredoc, a
here-string,cat <<EOF | sh,bash < <(…)oreval "$(curl …)";
curl … | /usr/bin/env bashand other shells named by path; a brace-expanded
program word (cu{r,}l … | sh); and commands that comments, quoting,
heredocs, line continuations or$'…'used to hide from the audit; - newly counted credentials (
high, orcriticalfor a private key): classic
sk-OpenAI keys,npm_,shpat_,lin_api_andya29.tokens, PEM and
armored PGP private keys, quoted JSON keys,aws configure set,gh secret set --body, quoted passwords holding;or spaces, credential options given
with a space (--token VALUE), cookies,.netrclines andAuthorization:
values with no scheme; - newly flagged shell commands:
rm -r -f,rm --recursive --force,rm -rfv,
sudoafterthen,do,(,$(, an assignment ortime,/usr/bin/sudo,
catof~/.ssh/id_ed25519orid_ecdsa,curl --json @file, and a curl
upload to a remote host that mentions "localhost" only in a header or query; - a failing gate whose output was piped into something that exits early
(| head,| true,2>&1 | head -1) used to exit 0 or 120. It now keeps 3.
- new
--iocand--network-strictsee more. Downloads hidden by shell syntax,
options, wrappers, proxies, brace expansion, percent-encoded or numeric hosts,
or padding before an install are now inventoried and matched (network-ioc,
high). A download that cannot be read or resolved (nested too deep, too long,
a host that cannot be normalised, a redirected request, a brace expansion over
16 words) is nownetwork-ioc-unresolvedinstead of passing clean. Under
--network-strict, redirected downloads, a registry given as a variable,
gh/brew tap/npm i owner/repohosts and trusted path prefixes followed by
a shell variable are no longer trusted, sonetwork-unaskedfindings can rise.- Combinations that used to be ignored now exit 2. One mode per run;
--fail-on,--json,--network,--ioc,--ci-log,--with-prompts,
--top,--no-redact,--reason,--quiet,--intervaland the scope flags
are refused where they would be dropped (full list under Changed). A CI line
that passed one of them can now exit 2. - Bounds now exit 2:
--daysbelow 1 or above 36500,--topbelow 1,
--intervaloutside 0.5 to 3600 seconds (ornan/inf), an unknown
--explaintopic, a malformed--suppressid or unknown--whyid (was 1), a
malformed or wrong-schema--diffbaseline (was a traceback or 1), and an
--mcp --rootthat does not exist. - A failed
--self-checkexits 4, not 3. - AF013 (rate table age) no longer fails
--fail-on. A gate that went red
only on the table's age now passes. AF013 is still reported. - Figures move. Resumed or forked sessions no longer count permission modes,
denials and refusals twice; Codex turns are no longer counted twice in AF003
and AISVS 9.2.1; Codex approval modes respect--projectand--days; Codex
under--dayscounts only the window's tokens; dated and alias model ids are
priced as themselves; Google and Qwen models with no published price are no
longer billed at the Claude ceiling. AF003, AF006, AISVS 9.2.x and the
spend-based findings (AF001, AF007, AF009, AF010) can appear or vanish. - Counts change (
secret_exposures,secret_projects,
unreadable_commands,duplicate_tool_calls_skipped), andreport_sha256is
not comparable with 0.3.0. Take a fresh--diffbaseline. --fail-on anycan newly exit 3 on the new mediumnetwork-configflag:
a command that writes download configuration (gitinsteadOfor proxy,
npm/pnpm/yarn registry or proxy, pip index, or a write to.npmrc,
.yarnrc,pip.conf,.gitconfig).- Cookie suppressions need re-adding. A cookie credential's id now names
the cookie (cookie:<program>:<NAME>), not the header, so a suppression
written for a cookie finding on 0.3.0 no longer matches. - GitHub Action:
fail-onis case-insensitive,fail-on: Noneno longer
skips the gate silently, and an unrecognised value fails the job.
Added
-
Gemini CLI support. Reads
~/.gemini/tmp(or
$GEMINI_CLI_HOME/.gemini/tmp, plus~/.cache/.gemini/tmpfrom macOS sandbox
runs): the legacy.jsonsessions, the JSONL sessions with$setand
$rewindTo, and subagent sessions.- Shell commands are audited and inventoried like every other agent's.
web_fetchURLs (taken from its prompt) andgoogle_web_searchreach the
network inventory;write_fileandreplacereach the audit-config
tripwire. - Gemini CLI records no approvals, so every Gemini network item's approval is
unknown. A call a person declined, or a policy blocked, counts as a
refusal. - Tool calls a later rewind removed are still audited, marked
rewound, and
counted inrewound_tool_calls.
- Shell commands are audited and inventoried like every other agent's.
-
Qwen Code support. Reads
~/.qwen/projects(or$QWEN_HOME,
$QWEN_RUNTIME_DIR), with the real cwd and branch per record and the approval
mode per turn:yoloandautocount as unasked;auto-edit(which still
asks before shell commands),defaultandplanas unknown. -
--agent geminiand--agent qwen. Both agents also work with--root,
--watch,--replay,--self-checkand the MCP server.--explain gemini
and--explain qwendescribe them. -
Gemini API prices from Google's price list, including the long-prompt rate
above 200,000 tokens for Pro models and the announced price changes for
gemini-3.6-flash, gemini-3.8-flash and gemini-4-argon, applied by message
date. -
An
unpricedpricing tier. Models with no published price
(gemini-3-pro-preview, gemini-3.5-flash, every Qwen model) show their tokens
and no cost, instead of a guessed one. -
make securitybuilds a pinned Kali image and runs bandit, trufflehog,
gitleaks and a transcript fuzzer (Claude Code, Codex and Copilot CLI formats)
against a read-only checkout, with no network and a throwaway home. It works
on native Linux Docker hosts, reports a scanner that failed to run as FAILED,
and reports unverified secret candidates outside the fixture allowlist.
Documented in CONTRIBUTING.md and SECURITY.md. -
make security-remoteruns the same scan on the build server over SSH
(SECURITY_HOST, defaultmac-mini). It sends a git bundle ofHEAD
(committed work only) and copiessecurity-out/back. -
New
--jsonfields. All are additive, soschema_versionstays 1:scope(days,project,agent) andcoach[].project;unsupervised_pct,moded_commandsandunmoded_commands;bash.flagged.highandbash.flagged.medium(suppressed flags left out);unparsable_lines,unsupported_records,rewound_tool_callsand
unpriced_model_tokens;vendors.capabilities[].geminiand.qwen, andnetwork.items[].rewound;- two new
network.ioc.matches[].reasonvalues,host-unresolvedand
redirected; - in
--replay --json,window.undated_sightings.
-
MCP additions.
fleet_summaryaddsmoded_commands,unmoded_commands,
unsupervised_basisandunpriced_model_tokens;exposed_secretsrows carry
suppressedandsuppressed_reason;coach_findingsincludesproject. -
GitHub Action
gate-reasonsoutput, counting what the gate actually failed
on, including flagged shell commands and IOC hits. -
--diffwarns when the two reports were made with different filters or
roots. -
network-configshell-audit finding (medium), so a download redirect
set in one tool call is visible even when a later call's download cannot be
tied to it.
Changed
- One mode per run. Combining two of
--diff,--why,--replay,
--watch,--mcp,--explain,--agents,--suppress,--suppressions,
--self-check,--service,--completions,--card,--share,--coach,
--aisvsand--bashis a usage error that names both. Before, one was
silently dropped, including a--suppresswrite. - Flags a mode would drop are refused (exit 2), naming both flags:
--fail-onwith a mode that never evaluates the gate (--diff,--why,
--replay,--watch,--mcp,--explain,--agents,--suppress,
--suppressions,--self-check,--service,--completions);--jsonwith--share,--coach,--aisvs,--bash,--why,
--explain,--suppress,--suppressions,--self-check,--service,
--completions,--watchor--mcp;--networkand--iocwith modes that would drop them;--iocwith
--why;--ioc,--network-strictor--network-trustwith--coach,
--aisvsor--shareunless--fail-onis given;--ci-logwith--root,--agent,--project,--replayor a mode that
does not scan;--with-promptswith--agents,--replay,--watchor--mcp;--topwith--json,--htmlor any mode other than the text report,
--bashand--network;--reasonwithout--suppress;--quietor--intervalwithout--watch
(or with--service newsyslog);--root,--agent,--days,--projector--no-redactwith
--explain,--agents,--completions,--suppressor--suppressions;
--daysor--projectwith--watchor--service;--projector
--no-redactwith--self-check;--servicewith--root,--agentor
--no-redact;--no-redactwith--replay,--mcp,--why,--card,--share,
--coachor--aisvs;--outor--stylewith--service,--self-checkor--completions.
- A failed
--self-checkexits 4 (it used to exit 3, the code for findings
at or above--fail-on). - AF013 is reported but not gated. The rate table's age changes with the
date, not the transcripts. --mcphonours--root,--agent,--daysand--project. Every tool
answers only from that scope; a client can narrow it but not widen it.--replayhonours--agentand--project, names Codex and Copilot
projects as the report does (soexposure.projectsmatches
secrets[].projects), and names a Codex session by its id.--why AF002/--why AF006explain every project the finding fires for,
not only the first.- Supervision figures say what they cover.
--card supervision,--share,
the report and the tray say how many commands had no recorded permission mode
(Gemini CLI never records one) instead of leaving them out. The card's "you"
bar is now "gated": a mode that can stop for approval does not mean a person
approved. - Unpriced cost is labelled "estimated". Unpriced models are priced by
inference (a family sibling or the provider ceiling), and the report says so
instead of "billed at Opus-tier rates".cost_usd_from_unpriced_modelskeeps
its name and meaning, and is documented as excluding theunpricedtier.
--explain cost, the footers and the network legend describe the Google rates,
theunpricedtier and agents that record no approval. - Deeper reading. Nested command strings are read to 8 levels (was 3) and
substitutions to 200; brace expansion is read up to 16 words.trapactions
are read; arithmetic and[[ ]]text is not read as commands. - Timestamps are compared and printed in UTC. A timestamp with an offset is
counted on its UTC date;bash.flags[].whenand network item times print with
+00:00. - Program names are matched case-insensitively (
Docker,NPM,CURL), as
on macOS's case-insensitive filesystem, where these spellings run the real
tool. --shareleaves out suppressed credentials and says how many were
suppressed; MCPworth_rotatingmatches the report.- The tray reads the CLI's figures for "ran unsupervised" and "flagged N
high", so it agrees with the report for Codex and leaves out suppressed flags. - The test suite is hermetic and date-proof. It runs in a temp home and
working directory, fails if a test reads your real home, measures timing in CPU
time with wide headroom, and no longer depends on the date.
Fixed
- Malformed transcripts no longer stop the run. A wrong-typed field (a string
token count, a listcommand, an objectarguments, a numericcwd, a list
or object Copilotpermission.completedkind, and similar) is treated as
absent in the report,--replay,--self-checkand--watch. A malformed or
too deeply nested line is skipped and counted inunparsable_lines. A lone
UTF-16 surrogate, a token count or duration above 10^15, and negative or
non-finite token counts no longer crash or produce negative or infinite cost. - Wrong-typed harness fields are absent, not values. Permission mode, denial
kind, effort, Copilot tool name, call id, model and Codex sandbox type are no
longer counted as values such as"['bypassPermissions']". - Timestamps without a timezone no longer crash the scan when mixed with
aware ones or used with--days, and network items,hosts[].first_seenand
flag times sort by real instant across time zones. - Resumed and forked sessions are counted once. A Codex session copied into
another rollout is priced once and its tool calls dedupe by call id; permission
modes, denials and refusals are no longer counted twice for Claude Code, Codex,
Copilot and Qwen Code;--replaycounts a resumed session's copied tool calls
once, for Claude Code and Codex. - Codex under
--daysfilters commands one by one, counts only the tokens
used inside the window and books each day's usage to that day. Before,
resuming an old session moved its whole cost to today. - AF003 and AISVS 9.2.1 counted every Codex turn twice, halving the
unsupervised share; an all-neverCodex fleet now reads 100%. AISVS 9.3.1
counts commands, not category matches, and leaves out suppressed flags. - Pricing ids. Dated,
-0alias and Vertex@YYYYMMDDids are priced as
their own model (claude-opus-4-1-20250805andclaude-opus-4-20250514at
$15/$75,claude-sonnet-4-20250514at $3/$15,claude-3-5-haiku-20241022at
$0.80/$4), not as the newest sibling, the fallback, or unpriced. Claude Code's
zero-usage<synthetic>records are no longer counted as messages. A Gemini
Pro message in a Claude Code transcript switches to the long-prompt rate above
200,000 prompt tokens, as Google bills it. - Tickets. Jira keys must be uppercase, so
renovate/node-18.xis not a
ticket;hotfix/CVE-2024-1234is one ticket per CVE, not per year. - Download parsing.
docker runoptions that take a value no longer replace
the image name, and docker global options anddocker image pull/
docker container runare read; short-option clusters, npm--omit devand
curl/wget option values (--etag-save,-A,-D, …) no longer create phantom
downloads;pip install 'name@git+https://…'keeps the package name;
pip install -e|-r|-c URL,--extra-index-urland--find-linksshow the
URL's host; a variable in a URL's path, query or port keeps its host;
wget -i FILEandcurl -K FILEshow a download from a file. - More downloads inventoried:
npm exec/npm x,create/npm init <x>,
yarn dlx,yarn global add,go run pkg@version,uv tool install|run,
uv run --with,pip3.12-style names,cargo +toolchain install, URLs written
withouthttp://, bare-IP anduser@host/xcurl and wget URLs, shell function
bodies,git submodule add,git ls-remote,git config remote.NAME.url
followed by a fetch, and every repeatedcurl --url,npx -pand--with. - IOC matching. A
host:or trust entry with a path (ghcr.io/org) matches
images from that registry and organisation; host/path entries match
percent-encoded or doubled-slash paths; a match from a public registry alias
(registry.yarnpkg.com,registry.npmjs.com,pypi.python.org) is no longer
called a private registry;uvx tool@latestagainst a listed version is
"version not resolved"; a package or URL built from$(…)is marked dynamic
and not counted as checked;xargs npm iis not a lockfile install. - Shell audit. The program of
cd x && npm testisnpm(category test),
sudo -u postgres psqlispsql, a quoted value containing;is not a
program name, andapt install sudois not flagged.[[ =~ ]],$((…)),
for ((…))and an escaped\>|or\>&no longer produce phantom installs or
merge two commands. --watchalerts on every shape the report flags high, no longer misses a
record still being written or stops on a malformed one, prints its summary when
stopped during the first pass, walks the directories every 30 seconds instead
of every poll, and names the project of a Codex or Copilot alert from its
working directory.--replayand--watchno longer read Gemini CLI sessions
as Qwen Code ones.--replayfinds credentials in records with no usable timestamp (counted
inwindow.undated_sightings;first_seen/last_seenare""when all are
undated), and reads the same files as the report.--self-checkreads Codex and Copilot directories with their own parsers,
honours--agent, says "skipped" for "network totals reconcile" when nothing
was parsed, and lists the--network --htmlreport among the write paths.--diffreports a per-project finding (AF002, AF006) that appears or
clears in one project while another has it.- MCP server. A malformed message (invalid JSON or UTF-8, deep nesting, a
line over 1 MB) gets a parse error (-32700) and a batch, non-object message or
non-finite id an invalid request error (-32600); the server keeps serving.
explain,verify_agentsand unknown tools answer without scanning, and
explainlists every topic.ticket_costboundslimitto 1-200 and accepts
a numeric ticket;days: 7.0is honoured, while a non-wholedaysor an
unknownpriorityis an invalid-params error (an unknown priority used to
return every credential). Internal errors are no longer reported as invalid
params. - Entry point and CLI. The pip/pipx
actualiscommand keeps the gate's exit
code when piped into| head;--ci-log FILE --agent claudeworks again;
--explaintopics are case-insensitive; a suppression written with a tab or
an upper-case id works, and one with an id actualis never emits is listed as
ignored;--networkwith long filters no longer dims the rest of the report;
wrapped text no longer starts with a blank line. - Output.
--json --no-redactwarns on stderr like the other views; with
--no-redactthe text digest matchesreport_sha256; the FAIL summary's
suppressed count includes shell and IOC flags;first_seen/last_seenin
--jsonand MCP are"", nevernull, when no timestamp was readable. - Hangs and memory. A FIFO, device or other non-regular file in a transcript
directory no longer blocks every run (report, CI gate,--watch,--replay,
MCP, tray); it is skipped as unreadable. A legacy Gemini.jsonsession over
64 MiB is counted as unparsable instead of read whole. --service systemdquotesExecStartas systemd expects, so paths with
spaces,%or$work, and from a source checkout points at that checkout.--cardtakes the next free name whenactualis-card.png/.svgis a
dangling symlink or appears mid-write, and shows a figure too long for its slot
in a compact unit ($12.3M) instead of cutting it.- GitHub Action. The gate's message counts what it failed on (it used to say
"0 finding(s)"), and thefindingsandioc-matchesoutputs are no longer
empty on Windows runners. - Tray. Suppressed credentials no longer count toward the badge or alert;
Codexnevercounts as unsupervised; the cost line names its window, and
changing it rescans without re-announcing old exposures; the menu stays
responsive during a scan, which stops after 5 minutes; the Windows alert is a
real toast. - Tools and packaging.
tools/denials.pyno longer crashes on malformed
records;tools/price-check.py --fetchchecks aggregator-priced models and
exits 1 when a priced model is missing from its source; the sdist includes the
files its tests read. - Docs. docs/json.md documents
vendors.capabilities[],
cache.by_project.*.hit_rate_pctandcontext_tokens,bash.flags[].had_secret,
refusals.join_noteandrefusals.scope_note, and notes that the jq digest
recipe needs jq 1.7;--explain coachnames AF001-AF013; shell completions
allow a flag straight after--cardor--explain.
Security
- A credential value longer than 256 characters (a session token, for one)
was masked only up to 256 characters and the rest was printed. Masks now
cover the whole value, quoted values to their closing quote. - Every pair in a
Cookie:header or curl-b/--cookielist is read on its
own; a session cookie after a harmless one was printed. - A token right after a printf escape (
\n,\t,\x20) or a terminal
escape sequence of any kind is now masked and counted. - An
exportthat cannot reach a later command (inside( … ), a pipeline,
bash -c,$( … ), a function, or undone byunset/env -i) no longer
rewrites that command's download host; where the scope is unclear the
download is unresolved, never trusted. This closed an--iocand
--network-trustbypass introduced earlier in this release cycle. - Hosts containing
ß,ςor zero-width joiners are unresolved instead of
mapped with IDNA 2003, which differs from what curl and browsers contact. - Credentials that were counted but printed in full are now masked
everywhere: bare JWTs (such as a Supabase service-role key), Slackxoxa-,
xoxr-andxoxs-tokens, and a private key given as a PEM block in aKEY=
or JSON value (such as a GCP service-account"private_key"). - More credential shapes are masked and counted: PEM and armored PGP private
key blocks (critical "private key"); quoted JSON keys, including JSON with
escaped quotes inside an argument;aws configure set aws_secret_access_key;
gh secret set NAME --body; a quoted password containing;,|,&or
spaces (it was printed whole or with its tail showing); credential options with
a space (--token,--api-key,--client-secret,--passphraseand
similar); curl-b/--cookie,Cookie:headers and.netrclines; and
Authorization:values with no scheme word. - Masking could be dodged. A secret before or after an already-masked URL
password in the same value, a token right after a colour code (\033[1m), or an
invisible or control character inside a token (which was then stripped from
output, printing the token whole) could leave it unmasked. Redaction now
ignores those characters and is idempotent. - A credential typed as a command no longer appears as a program name in
"most run", refusals by program,bash.commandsor MCPshell_audit; it is
shown as(credential). - Terminal and Markdown injection. A line break in a model name, branch, cwd
or other field can no longer inject lines into the report,--ci-log,
--replay,--diff, watch alerts or the verdict (shown as\n;--jsonkeeps
the raw value).--replay,--diffbaselines andtools/denials.pystrip
terminal escapes. The Action's job summary uses a fence longer than any
backtick run in the report. Output strips lone surrogates, Unicode tag
characters, variation selectors, the Arabic letter mark and other invisible
characters. - The shell audit and network inventory share one bash-aware lexer, so
comments,$'…'(cut at a NUL as bash does), quoting, heredocs, here-strings,
line continuations,&,case/esac, backticks,trap,coproc,{fd}>
and substitutions in heredocs,casearms,su -c,find -execand wrappers
no longer hide commands or downloads. Every line up to 1 MiB is read, and lines
split only on newline. Before, several of these let--ioc … --fail-on high
pass on a listed package. - IOC and trust bypasses closed. Host entries match the host really
contacted: percent-encoded names, every numeric IPv4 spelling curl accepts,
IPv4-mapped IPv6 and internationalised or fullwidth names; a host that cannot
be normalised is unresolved. Installs hidden by global options,pnpm add -w,
env -S,watch, other shells and long-form wrapper options are read. A
download the command redirects (proxy,--connect-to,--resolve,
--doh-url,GOPROXY,http.proxy) is never trusted and is unresolved under
--ioc;insteadOfand registry/index variables are applied. A registry given
as a variable,gh/GH_HOST/brew tap/npm i owner/repohosts, and a
trusted path prefix followed by a shell variable (which could expand to../)
are no longer trusted. A command nested or long past what is read is
unresolved (unreadable) instead of clean. - Egress exemption. A curl upload is exempt only when every destination is
loopback: "localhost" in a header, referer or query, or a localhost URL sent
elsewhere by--resolve,--connect-to,--preproxy,--doh-urlor a SOCKS
proxy, no longer exempts it. - Denial of service. Commands crafted to make the audit take seconds or
minutes (whitespace runs, longcurl/ddlines, the scp/rsync egress rule)
run in linear time; a$'…'value that decoded to internal marker characters
no longer crashes the run before the gate is evaluated; a FIFO in a transcript
directory no longer hangs it; the MCP server survives malformed input. - Config injection.
--servicerefuses a command or log path containing a
control character (a newline could add a unit directive), and
--service newsyslogrefuses values newsyslog.conf cannot carry.
--suppress --reasonrefuses a newline or other control character, which used
to write a second, unannounced suppression line. - Repository hygiene. A stray, unreviewed tray binary (
tray-go/tray) was
removed and is now ignored. The transcript fuzzer now parses the Codex and
Copilot transcripts it mutates, and its nested-JSON mutations take effect.