You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
1.23.0 — agy-гейт против обходов, честные маркеры смерти бэкендов
Security: the agy read-only gate closed a family of bypasses that reached .env files — shell globs (cat .env*, cat /etc/* escaping the workspace, brace alternation cat {x,.env} and {~,.}/.env, ranges .e{a..z}v, and bash [^x] classes), recursive grep (grep -rn KEY ., -d r, --directories=recurse, unambiguous long-option prefixes like --rec and --dereference-recursive, and glob targets grep -rn KEY * that the shell turns into real directories), and git blob args (git show HEAD:.env, git show :.env, HEAD:.en{v,}, and a bare git show <blob-sha> after git ls-tree). Recursive grep denies when any directory operand's tree holds a .env-family file, and a scan that exceeds the walk bound now denies instead of passing silently.
Fixed: multi_untracked_note and collect-context.sh read git's file lists without core.quotePath=false, so every non-ASCII new file name (Cyrillic, CJK, Thai) arrived C-quoted and was withheld from reviewers as an "unsafe name". A name that is not valid UTF-8 is still withheld — it kills codex exec with "invalid UTF-8 in arguments" if it ever reached the argv.
Fixed: --paths elements starting with : or ^ are refused — git pathspec magic (:!x excludes, ^x negates) could silently drop the path that was asked for; the check normalizes tabs, which downstream consumers split on as well.
Fixed: an orphaned backend subshell could overwrite a newer run's markers — the runner now stands down unless the marker still carries this run's pid AND nonce and the pid is alive, instead of writing .dead and a roster line over the new run.
Fixed: setup.sh mask used ${v: -4}, which fails on bash 3.2 (stock macOS). And setup.sh unset did not validate the name — it lands inside a grep pattern, so unset 'A.*' removed every key at once; only plain variable names are accepted now.
Fixed: probe.sh piped codex login status into grep -q under pipefail — the SIGPIPE trap that setup.sh already guards against — and now checks the exit status too, since a failed command printing "Not logged in" still greps positive.
Fixed: the agy gate no longer refuses grep -n '.*' f — the pattern operand is regex, exempt from glob expansion — and git log --format=%H:%s colons that name no blob stop being denied.
Fixed: multi-rune is in the shared command catalog, but skills/rune declares disable-model-invocation — the OpenCode adapter now honours that flag instead of autoinvoking a skill whose whole behaviour is posting a picture, and the flag travels beside the skill object rather than inside it so nothing unknown reaches editor.add.
Security: a second review round of this same change found the gate's own hardening incomplete, and it is now complete: brace expansion covers descending ({n..a}) and stepped ({a..z..2}) ranges, and exceeding the expansion caps denies instead of returning a truncated list the shell out-expands; git show <abbrev-sha> and uppercase object names resolve to blobs the way the full 40-hex does, so the check probes object type rather than pattern-matching length; a wildcard git pathspec (git log -p -- '.e*', HEAD:.e*, :(glob)) expands through ls-files/ls-tree instead of the filesystem glob that cannot see a committed secret; a file symlink inside a grep -R tree is dereferenced the way grep does, and every shell path argument resolves through realpath so cat leak where leak -> ../.env (or /etc/passwd) is refused by the resolved target, not the link's own name.
Fixed: grep -e '.env' f and grep --regexp=.env f are allowed — the -e/--regexp value is regex data, and it no longer passes through the path checks that --file/-f values still do.
Fixed: a signal-killed backend (exit >= 128) and a timed-out codex run no longer read as answers — a mass kill of a detached run left partial answer streams that the old checks counted as done; codex, OpenCode and the headless path now mark KILLED/TIMEOUT like the agy and devin runners already did.
Fixed: probe.sh still trusted codex login status exiting 0 while printing "Not logged in" — the text must also not match that phrase. And multi_check_paths' UTF-8 guard resolves its checker once (iconv, else the python3 the plugin already requires) instead of silently doing nothing on a host without iconv.
Refactor: the six copies of the harness-config denylist in snapshot.sh are now file/dir name lists and two matchers — adding a harness's config name is a one-line change, a directory named opencode.json keeps its subtree, and test-snapshot-paths.sh pins that diff-excluded names stay a subset of stripped names.
Added: multi-rune is a real command on omp and OpenCode now — it already reached Codex through the wholesale skills path, so it is a listed command everywhere instead of a leak on one host.
Security: a third review round of this same change found more gate bypasses, all closed: a brace range's length is now computed before the expansion list exists (cat {0..100000000} used to allocate the whole list before the cap check — the gate's own OOM vector), and a zero step ({a..z..0}) follows bash and counts as one; POSIX bracket classes in globs (cat .[[:alpha:]]nv, [[:digit:]], [=e=], [.e.]) are widened conservatively because Python's glob does not implement them while bash and dash do; grep --color KEY .env and --colour no longer treat the next argv as their value — both take optional =-values only, so KEY was swallowed as the "option value" and .env walked free as the pattern; a symlink inside a grep -R/find tree pointing anywhere outside the workspace denies, not just one named like a secret; and grep -f.env (--file=x) reads its pattern list from a path, so attached values are checked as paths.
Security: git arms closed the same way: git grep without a safe pathspec — or with --untracked, --no-exclude-standard, or --recurse-submodules — denies while a .env is tracked, since its output prints matched content; git log -p, git show <commit>, git diff and other content-emitting commands deny while a .env is tracked unless scoped to a clean path or revision, and stay allowed in a repo with no tracked secret; git show <sha>^{blob} peel suffixes resolve like the plain object name; git diff HEAD~0..HEAD range syntax probes through rev-list because rev-parse --verify does not accept ranges; and every git probe now runs with -c core.quotePath=false (a committed café/.env used to come back C-quoted and unrecognised) and fails closed inside a real repository — a probe that errors there denies, while a non-git root lets the command fail on its own.
Fixed: a signal-killed opencode/kilo run (exit >= 128) with a partial answer file now gets a .dead KILLED marker instead of silently reading as ok — the same hole the codex and headless arms had, found twice independently.
Fixed: skillFlags accepts true, "true", yes and on case-insensitively for disable-model-invocation — only the literal lowercase true matched before; the four-field .running marker format (pid start timeout nonce) is documented where it had said three; and the UTF-8 checker is resolved once in the parent shell so command-substitution children inherit it instead of re-forking per file.