Repository navigation
Releases
Releases · 01NGVI-QINGYI/ARIA-X
ARIA-X v0.2.1 — Security hardening, SSE resume & HTTP log sanitization
ARIA-X v0.2.1 — security hardening, SSE cursor resume & complete-frame parsing, HTTP log sanitization, and config save/export separation (PR #5, commit 80a7500).
Breaking Changes & Migration
- SSE authentication (
?token=query-string auth removed): Whenserver.auth_token/ARIA_X_AUTH_TOKENis configured, requests passing only?token=<token>onGET /api/projects/{id}/eventsare now rejected with401 Unauthorizedso long-lived credentials are no longer sent in SSE request URLs. External SSE consumers must migrate toAuthorization: Bearer <token>orX-ARIA-X-Token: <token>request headers; the built-in Web Console uses streamingfetchwithAuthorization: BearerandLast-Event-ID. AriaXConfig.save()is now a non-reloadable redacted export (save_private()added):AriaXConfig.save()delegates toAriaXConfig.export_public()and writes a shareable_redacted_export: trueJSON snapshot to a new.jsonfile (open("x"), refusing to overwrite existing files).AriaXConfig.from_dict()andAriaXConfig.load()reject redacted exports withConfigError, andAriaXConfig.validate()rejects literal"***"placeholders as runtime credentials. Callers needing reloadable local persistence must explicitly callAriaXConfig.save_private("<path>.json")(.jsonsuffix required; atomic write with owner-only0o600permissions).
Security
- Explicit
/api/configpublic allowlist & full credential masking:AriaXConfig.public_dict()builds an explicit allowlist of non-sensitive fields, masks non-emptyllm.api_keyandserver.auth_tokenuniformly as"***", strips userinfo, query parameters, and fragments fromllm.base_url,scope.targets,scope.deny, andscope_summary, and excludesllm.extra_headers,llm.extra_body,llm.scenario,sandbox.env,sandbox.extra_args,scope.notes,safety.note, and unknown attributes without mutating live config. - HTTP access, error, and exception log sanitization: Normalized logged request paths in
AriaXRequestHandlerusing explicit route templates (e.g./api/projects/{project_id}/events,/static/{asset}) and SHA-256 digests for unknown/unparseable paths (/<unknown:...>,/api/<unknown:...>,<unparseable:...>). Restricted query-string logging to validatedreplay,limit,format, andstatusvalues while redactingtoken,project_id,task_id, and unknown keys ([REDACTED]). Replacedlogger.exception(...)and raw error formatting with safe structured logs (method, normalizedroute,status,error_type) without raw exception bodies, tracebacks, or request payloads. localsandbox isolation boundary notice: Documented indocs/SECURITY.mdthatsandbox.backend = "local"executes commands with current OS user privileges without OS-level filesystem isolation, and added a non-fatal notice toaria-x doctor(human output and JSONwarningfield).
Fixed
- SSE
Last-Event-IDcursor resume & complete-frame-only client parsing: Added atomicEventBus.subscribe_with_snapshot()and wiredLast-Event-IDfromAriaXRequestHandlerthroughApi.stream_events()so in-buffer cursors matching the current project stream replay subsequent visible buffered events in order (even beyondreplay=150) and hand off cleanly within the boundedEventBusreplay buffer and subscriber queue capacity; missing, expired, or foreign-project cursors fall back to boundedreplay. Updatedsrc/aria_x/web/app.jsto discard incomplete trailing EOF fragments, removed unusedstate.es, and counted short-lived (< 2s)200EOFs and post-200read errors toward bounded exponential backoff (capped at 30s) until a stream stays stable for>= 2s, while preserving401stop, project-switch/clear abort, and display-only i18n switching.
Maintenance
- Version
0.2.1& dynamicUser-Agent: Bumped version metadata across package, CLI, Docker tags,CITATION.cff, and documentation; derivedaria_x.tools.net.USER_AGENTfrom__version__. - Pinned Docker base image digest: Pinned
docker/DockerfileFROMtopython:3.12-slim@sha256:5e2bdb1b0d542d5039cffb8181c65930093949194a65c365dfb1b0fe13a4fa5b(python:3.12.16-slimmulti-arch OCI index; verified against Docker Hub Registry v2 metadata; localdocker build/ container runtime not executed).
Verification
mainCI (80a7500): Run #45183508009 — Python 3.11 & 3.12 passed (269 unit/integration tests + offline E2E demo)- Checksums:
shasum -a 256 -c SHA256SUMS.txt(124 / 124 OK)
ARIA-X v0.2.0 — Security hardening, report reliability & trilingual UI
ARIA-X v0.2.0 — security hardening, report reliability, packaging fixes, and trilingual console/report support (PR #4, commit 995c267).
Added
- Trilingual Web Console (
en,zh-CN,ja): Addedsrc/aria_x/web/i18n.js, localized console labels, and a language selector in Settings (persisted inlocalStorage["aria-x.lang"], defaulting toen). Language switching is display-only and does not translate existing report bodies. - Trilingual static report templates: Added
src/aria_x/report/i18n.pyand optionallanguagesupport onrender_markdown,render_html, andwrite_reportforen,zh-CN, andjafixed copy while preserving dynamic findings/evidence verbatim. GET /api/report/{run_id}?format=md|html: Added optionalformatquery parameter (400on invalid values) so HTML preview and Markdown download remain bound to the exact same run.
Changed
- Default report language:
aria_x.report.renderresolves fixed-copy language vialanguagearg >meta["report_language"]>meta["lang"]>"en". Existing CLI, Demo, and Orchestrator entry points continue generating English fixed-copy reports by default inv0.2.0. - Compose auth token required:
docker/docker-compose.ymlnow requires an explicit non-emptyARIA_X_AUTH_TOKEN(:?fail-fast) with no hardcoded fallback token. - Version bumped to
0.2.0.
Fixed
- Packaging & launcher: Set
100755executable bit on root./aria-x, includedaria-xandREADME.ja.mdinMANIFEST.in, and packagedaria_x/demo_target.pyinside the wheel. - Security boundaries: Enforced strict fail-closed URL path-prefix validation (including percent-decoding iteration ceiling on initial requests and redirects), separated
authorize_url/authorize_host, wiredsafety.allow_public_targetswith fail-closed unresolved hostname handling whenfalse, wiredsafety.extra_blocked_patternswhile keepingblock_destructive=Trueenforced, isolated PTY child environments, blockedsession_openundermockbackend, aligned Docker PTY-wand_docker_client_env(), and restricted official Anthropic endpoint auth headers to non-emptyapi_key/x-api-key/Authorization: Bearer. - Report resolution & Web race guards: Made
aria-x reportquery SQLite strictly read-only (mode=ro) with exact per-run attribution lookup, unified archive recognition across no-arg /<run_id>/--project-id(nesteddemo-<stamp>/<run_id>, legacy flat<project_id>-<run_id>, and legacy timestamped<project_id>-<stamp>), and conflict rejection; added monotonic sequence/timer guards inloadReport(),ensureGraph(), andselectProject(); replaced hardcoded"0.1.0"/"v0.1"report versions with__version__.
Verification
mainCI (995c267): Run #45155334645 — Python 3.11 & 3.12 passed (253 unit tests + offline E2E demo)- Checksums:
shasum -a 256 -c SHA256SUMS.txt(123 / 123 OK)
ARIA-X v0.1.1 — PTY interactive sessions
ARIA-X v0.1.1 — interactive sessions.
The biggest gap versus the upstream designs was that ARIA-X could only run
one-shot commands. It can now hold a real terminal.
Added
session_open/session_send/session_read/session_close/
session_list— persistent PTY sessions, so agents can drivemsfconsole,
ssh, database REPLs and reverse shells instead of being limited to
terminal_exec.- Same guardrails as
terminal_exec:CommandPolicyand the scope heuristic
run on the spawn command and on everysend, so a session cannot be used to
smuggle an out-of-scope target past the checks. - Bounded by design: 4 concurrent sessions per run, 256 KB per-session buffer,
8 KB per read, idle sweep after 30 minutes, andclose_all()on every
terminal run path — a cancelled or failed engagement never leaves a shell
behind. - Docker backend spawns
docker run -i -t, so the container gets a TTY too. session_open/session_sendarehighrisk and are therefore gated by
safety.approvalinask/denymode.
Changed
- Tool catalog: 22 → 27 tools. Worker, bootstrap and coder roles can use sessions.
- Tests: 202 → 217 (14 session tests + 1 engine cleanup integration test).
- Version 0.1.1.
Verification
bash scripts/verify.shpasses (217 tests + offline demo).- Python 3.11 and 3.12 both green.
ARIA-X v0.1.0
ARIA-X v0.1.0 — first public release.
Highlights:
- One unified state-space engine combining blackboard search, a planner/worker
graph architecture and specialist delegation. - 22 scoped tools with per-call authorization, a human approval gate,
destructive-command policy and local/docker/mock sandboxes. - 202 tests passing on Python 3.11 and 3.12.
- Offline end-to-end demo with a deterministic policy — no API key required.
- Local web console with live SSE events, layered graph, findings and reports.
- AGPL-3.0-or-later, standard-library-only runtime.
See README.md, docs/FUSION.md and docs/SECURITY.md for details.