Scan your whole stack
From OX Research Newsroom
Are you using ya-agent-environment?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v2.13.2
ya-agent-environment was last scanned on 27 Nov 2026 at version 2.13.2. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 2.13.2 LATEST | 27 Nov 2026 | No rules fired |
| 2.13.1 | 27 Oct 2026 | No rules fired |
| 2.13.0 | 27 Oct 2026 | No rules fired |
| 2.12.0 | 20 Oct 2026 | Not shown |
| 2.11.3 | 14 Oct 2026 | Not shown |
Findings for v2.13.2. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 2.13.2; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Environment abstractions for general agents.
ya-agent-environment provides the shared base interfaces used by YA agents:
EnvironmentFileOperatorShellResourceRegistrytmp_dir and resolve_tmp_path()The Python import package is ya_agent_environment.
Environment owns temporary-directory configuration and lifecycle. While entered,
env.tmp_dir exposes the agent-facing root (or None) and
env.resolve_tmp_path(relative_path) safely resolves a contained path, rejecting
absolute paths and parent traversal. Temporary paths are handled through the normal
FileOperator methods; there is no separate temporary-file operator or routing API.
Environment cleanup closes registered resources, the shell, and the file operator
before _teardown() releases backend/container and temporary-directory resources.
The same ordering is preserved after partial setup failures and during cancellation. The base class does not assume
a filesystem backing store and never deletes _tmp_dir itself: custom environments
must allocate their agent-facing temporary backend in _setup() and remove only owned
storage in _teardown().
A FileOperator implementation exposes one logical path space by implementing its
public abstract methods directly. read_bytes_stream() returns an AsyncIterator
directly, so consume the returned iterator without awaiting the method call.
Workspace-backed concrete environments allocate owned temporary instances below
.tmp/ya-agent-<id>. Each instance contains a self-ignoring .gitignore, and teardown
removes only that owned instance. Custom environments remain responsible for allocating
and tearing down their own temporary backend.
LocalFileOperator.walk_files() returns paths relative to default_path when possible
and directly reusable absolute paths for explicitly allowed roots outside it. glob and
grep may search those roots explicitly; root="." does not implicitly include
temporary storage.
Shared output-bounding policy lives in ya_agent_environment.output. It provides
head/tail budget splitting, character and UTF-8 byte truncation, and incremental bounded
text accumulation. Shell ingestion and SDK previews should reuse these helpers instead
of defining independent truncation policies.
Custom Shell backends implement _create_process() and return an ExecutionHandle with stream, wait, and kill callbacks. Shell.execute() is the final public foreground boundary and must not be overridden: the base class owns process creation, timeout, cancellation, foreground/background registration, and session-reset cleanup. The foreground timeout budget begins before process creation, but shell-owned creation still resolves and terminates any eventual handle before reporting timeout. Class creation raises TypeError when final MRO resolution replaces execute(), so direct and mixin-based legacy overrides fail fast instead of silently bypassing lifecycle ownership; migrate their process creation into _create_process(). A wait callback must not report natural completion while owned descendants remain, and a kill callback must not return until backend execution is confirmed terminated; raising preserves the handle for a later reset retry. Backends must retain a stable execution identity through termination: a POSIX numeric PGID is no longer an ownership handle after its leader is reaped, so residual-group cleanup requires a live guardian or an equivalent platform-owned primitive.
Shell.start() returns a compact model-facing handle such as process-1. The handle is
sequential and unique within the current shell session; a successful
reset_background_processes() starts a fresh sequence. It is the only identifier
accepted by wait_process(), kill_process(), stdin, signal, status, and completion
APIs. It is not an OS PID, process-group ID, container exec identity, UUID, or durable
cross-session key. Those backend ownership identities remain private in
ExecutionHandle and transport-specific implementations. Foreground execution uses a
separate private identity and never consumes the model-facing sequence. A failed reset
retains both ownership state and the current sequence until termination is confirmed,
so a live handle is never reused.
This package is maintained as a workspace member in ya-mono.
uv run python -m pytest packages/ya-agent-environment/tests -vv
uv run python -m pyright
uv build --package ya-agent-environment -o dist Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.