Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

introspection-harbor

Latest version: v0.25.0

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
PyPI package Publisher: brightsparc
22 Versions
3.3K Downloads

Scan summary

introspection-harbor was last scanned on 24 Nov 2026 at version 0.25.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 22 versions; the latest 5 were published within 2 days (23 and 24 Nov 2026).
  • Findings: No rules fired in version 0.25.0.
  • Downloads: 3,301 downloads.

Versions

22 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.25.0 LATEST 24 Nov 2026 No rules fired
0.24.0 24 Nov 2026 No rules fired
0.23.0 23 Nov 2026 No rules fired
0.22.0 23 Nov 2026 Not shown
0.21.0 23 Nov 2026 Not shown

No rules fired in 0.25.0

Findings

Findings for v0.25.0. 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 0.25.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

introspection-harbor

Harbor installed-agent adapter for Introspection Recipes. Install it through introspection setup --target harbor, then run a task through:

introspection eval run --runner harbor --path evals/refund-task

Select an inherited Recipe agent variant by its declared YAML name:

introspection eval run --runner harbor --path evals/refund-task --agent agent2

The selected agent YAML is the only source of the evaluated model; the CLI and adapter do not apply a separate model override.

The CLI records that declared model as candidate.model in the run spec and run.json. The native adapter accepts it as candidate metadata and submits only the prompt to the task. The Runtime loads the selected agent from the candidate Recipe commit and uses its declared model. The CLI checks the model observed in the returned trajectory against candidate.model and records it as result.observed_model in run.json.

Harbor's own agents

A prefixed agent names one of Harbor's agents instead of a Recipe agent: harbor:oracle runs the task's solution/ through the environment's exec and harbor:nop sends no turn, both without a Recipe agent or a model. Harbor is invoked with that agent in place of the Recipe adapter, and on the Introspection environment the task keeps the Recipe's default agent while the solution runs through the task's commands. The prefix is the runner's name, so it is refused with a runner that has no agents of its own, and -a after -- stays refused: the common option is the one way to choose.

introspection eval run --runner harbor --path evals/refund-task --agent harbor:oracle
Kept outputs

When the agent finishes, before the verifier runs, the adapter copies what a verifier reads into /logs/agent/kept-outputs/: the Runtime workspace's files/ and outputs/ (under $INTROSPECTION_WORKSPACE_DIR, /workspace by default) as workspace/files/ and workspace/outputs/, Pi's sessions as session/, and each fake's final state as fakes/<id>.json for every server of the Recipe's .pi/mcp.local.json and every API binding of its .pi/api.local.json under $INTROSPECTION_FAKES_URL. Harbor's default verifier shares the agent's sandbox, which is gone once the trial ends, so this copy is what is left of the agent's work. introspection eval run moves it to eval-runs/<run-id>/cases/<case>/. The copy is best effort and never fails a trial; a trial Harbor drives through a simulated user keeps nothing yet.

The native adapter keeps the same folder at the end of each step, minus Pi's sessions (the platform holds the conversation): it makes the copy in the task's sandbox and downloads it into the step's agent logs through the introspection environment.

introspection eval run --score-only <run> scores those kept outputs again without running the agent, for either adapter. It scores with the adapter and environment the run recorded (candidate.harbor in its run.json), so a platform run is scored on the platform; INTROSPECTION_HARBOR_ADAPTER and --harbor-environment still override them. Each new trial sets up as usual (the native adapter's environment creates a new evaluation task, but starts no run on it), then puts the source trial's agent logs back into /logs/agent, the kept workspace/files/ and workspace/outputs/ into the workspace, and the kept folder into /logs/agent/kept-outputs/. Harbor's verifier then runs as it is now; a fake reads its kept final state rather than the restarted sidecar's.

Input files

A task gives the agent files the way a user's upload does. Put each file in the task's environment/files/, and list it in the <files> block at the end of the instruction as /workspace/files/<name>, the block the Runtime appends to the message that first carries an upload:

Review this SOW.

<files>
<file path="/workspace/files/sow.docx" />
</files>

introspection eval add writes both from a stored conversation. The agent finds each file at /workspace/files/<name>.

The block goes where production put it: on the turn the files were uploaded. A task made from a later turn of that conversation has it in a user step of the trajectory it loads (see Earlier turns), not in instruction.md. Setup checks that the blocks of the loaded user steps and the instructions together name exactly the files in environment/files/, and fails before the agent starts otherwise, naming each file the blocks miss and each listed path with no file, with the step (or the loaded trajectory) that lists it. A task with neither files nor a block runs as before.

A file reaches /workspace/files/ when production's upload would: at setup when the loaded trajectory or the first step announces it, and otherwise right before the first step of a multi-step task whose instruction announces it. Until then the sandbox has no such file, as production has none before the turn an upload arrives on. Harbor's own agents (--agent harbor:oracle) place nothing per step, so on the introspection environment their task carries every file from setup.

How the files get there depends on the adapter:

  • runtime: Pi runs in production's workspace, on the Runtime image or a task's own image: its working directory is /workspace, INTROSPECTION_WORKSPACE_DIR=/workspace, and files/ and outputs/ exist and are the agent user's, so a Recipe tool reads /workspace/files/<name> as inside its workspace. In Docker and E2B the adapter creates them, uploads the setup files and gives them to the agent's user; on the introspection environment the adapter uploads them sealed, as a chat upload is, the task's runtime downloads them, and setup fails, naming each file, when one is not in /workspace/files/, since the runtime starts without an upload it cannot download. A later step's file is uploaded before that step either way. The first user message is instruction.md byte for byte, block included, as a plain message rather than an attached file, on every step and whether run sends it or a simulated user sends it over the ACP bridge (an instruction starting with @ or -, or above 100 KB, goes to Pi on stdin, which Pi trims).
  • native: the introspection environment uploads the files and attaches the setup ones to the trial's task, which the Runtime downloads at boot and announces itself, as it does for an upload; a later step's files go on that step's runs.create, as an upload on a later turn does. The adapter sends instruction.md without its block, so it is not announced twice. The uploads are deleted when the trial ends.

The directory is flat: no subdirectories or symlinks, at most 100 files of 25 MB each, the platform's limits on a task's files. Names starting with a dot are skipped.

Earlier turns: trajectory.json

A task that starts mid-conversation ships the turns before its own as an ATIF trajectory, Harbor's trajectory.json beside instruction.md (steps/<first>/trajectory.json for a multi-step task). introspection eval add --from-conversation writes it for a later turn of a conversation, and introspection eval run --from-conversation passes the source conversation as Harbor's agent.load_trajectory (--load-trajectory), which takes precedence over the task's file. Harbor then calls the adapter's load() for the first step, and both adapters declare SUPPORTS_LOAD_ATIF_TRAJECTORY:

  • runtime hydrates the steps into Pi's session through introspection local --replay-context, as Vitest does a row's input.history, then sends the instruction.
  • native opens the trial's task with one run whose messages are the steps followed by the instruction: the platform loads the steps without a model call and runs the instruction.

Both convert the trajectory with the Python SDK's atif_to_run_messages: a user step is a user message, an agent step its text and tool calls with one tool result per call, and a system step is left out, since the Recipe owns its system prompt. A step the messages cannot carry (a call without a result in its step, non-text content) fails the trial, naming the step. In the trial's own trajectory.json the loaded steps come first, marked is_copied_context: true and extra: {"loaded": true}. An ACP trial (a simulated user) refuses a trajectory to load.

Multi-step tasks

The steps of a multi-step task are turns of one conversation: a later step sees everything the earlier steps said and did.

  • Harbor's own agents (harbor:oracle, harbor:nop) always start fresh.
  • Only the first step loads the task's trajectory; the later steps continue the conversation it opened.
  • With harbor run directly, pass --resume-trajectory: without it Harbor starts each step fresh.

A verifier reads the conversation from /logs/agent/trajectory.json. On a step that continues the conversation it covers every turn so far, so a later step can be graded against what an earlier one said. pi.jsonl covers the current step only, and a step's reported tokens and cost are that step's alone.

The trajectory is the platform's own ATIF projection. During each Pi run the Recipes extension writes the session as the GenAI spans the platform stores (genai-spans.json), and introspection-sdk projects those onto ATIF with the code behind the platform's ATIF conversation export. A trial and a production conversation therefore produce the same trajectory for the same turns. A step's usage comes from the spans that start after its Pi run was launched, and its input tokens include cached tokens, as ATIF defines prompt_tokens.

The spans are the trajectory's only source. The adapter names the file in PI_RECIPE_GENAI_SPANS_FILE and the extension replaces it after every turn, so a run that Harbor stops on its timeout still has the trajectory of the turns it finished. A trial whose Recipes extension predates the variable (an older Runtime image, or a CLI whose introspection setup installs an older Recipes release) fails after the agent run with an error that names the missing genai-spans.json. A run that made no model call has no trajectory.

Retrying infrastructure failures

--retry-errors <n> reruns, up to n times within the same run and the same Harbor job, the trials that failed on infrastructure rather than on the agent:

introspection eval run --runner harbor --path evals --retry-errors 2

A trial is rerun when every exception Harbor recorded for it, on the trial or on one of its steps, is one of these:

  • AgentTimeoutError with zero tokens used: Pi got no model response.
  • DataPlaneError for a rejected or expired login (401, "login has expired"), a 408, 429 or 5xx response, or a sandbox that never accepted commands.
  • A transport error of the adapter's HTTP client, such as ConnectError or ReadTimeout.
  • EnvironmentStartTimeoutError, AgentSetupTimeoutError, VerifierTimeoutError, AddTestsDirError, DownloadVerifierDirError and CancelledError.

Everything else stays as it is: an agent that timed out after using tokens or whose token usage is unknown, a non-zero agent exit, a missing or unreadable reward, a request the Data Plane refused (a Recipe that fails validation, a missing scope, an unknown Runtime), a sidecar image that fails to build, and any trial that completed with a low score.

The rerun is harbor job resume on the job directory, after the failed trials' directories are removed from it. run.json lists each rerun case under result.retries with its attempts and the kind and message of every discarded trial; a case that is not listed took one attempt. case is the id the case has in result.cases, which holds the last attempt only. The flag cannot be combined with --from-conversation. Harbor's own --max-retries after -- still works and selects by exception type alone.

Local Docker on the Runtime image

With no --harbor-environment or --env, and INTROSPECTION_HARBOR_ENVIRONMENT unset, introspection eval run runs the native adapter on the platform (The Introspection environment). With INTROSPECTION_HARBOR_ADAPTER=runtime (or --harbor-adapter runtime), and for a simulated user or --chain, it runs Harbor's local Docker environment through introspection_harbor.docker_environment:IntrospectionDockerEnvironment, as it does when that environment is named. A task that names its own main (an environment/Dockerfile, [environment] docker_image, or an image or build on the compose file's main) runs that image. Any other task, such as the one introspection eval add --runner harbor writes, runs main in the Runtime image, as a cloud trial does: the environment starts introspection-runtime-agent:latest. INTROSPECTION_HARBOR_RUNTIME_IMAGE names another image for main.

Either way the environment prepares the Recipe being measured at /opt/introspection/recipe before the agent starts. That is the working tree without its eval suites, cases and eval code, with its production dependencies installed with pnpm from its pnpm-lock.yaml. As runtime-agent does, the install is not frozen, since a lockfile recorded with autoInstallPeers: true contradicts linking the peers instead of installing them. As on the plane, a Recipe with dependencies and no pnpm-lock.yaml is refused. In the Runtime image the dependencies come from the image's warm store and the runtime link goes beside the Recipe. Its peers follow runtime-agent's rule, all or nothing: when the runtime carries every peer at the top level of its node_modules they are linked from there, and otherwise pnpm installs them all from the lockfile, including a peer the image only nests (such as a Recipe package the Recipes extension has as an optional dependency); a peer neither provides is refused by name. In a task's own image the dependencies come from the network (with corepack's pnpm when the image has none), the peers from the packages introspection setup installed (or from Pi's own dependencies, for a package only Pi requires, such as typebox), and there is no runtime link; a peer the image lacks is refused with the toolchain fix. A Recipe in a subdirectory of its workspace gets the workspace's .introspection/ manifest for it, with path: ., so introspection local finds it. --env docker runs Harbor's own Docker environment, which needs the task to name its image and prepares no Recipe.

A task's own image

A task that needs its own filesystem (a pinned SWE world, a customer base) names its image and installs the toolchain the runtime adapter runs on, on Node 24:

FROM node:24-slim
RUN npm i -g @introspection-ai/cli@<version> && introspection setup --yes

The adapter checks the image's CLI is new enough (LOCAL_SANDBOX_CLI_FLOOR) and that its pi lists the Recipes extension, and refuses the trial naming that line otherwise (CliTooOldError, ToolchainMissingError). In such an image introspection local finds no Runtime sandbox and runs the Pi introspection setup installed, with the Recipe. tests/test_runtime_docker.py runs such a task in a real Docker trial, with a fake model in a sidecar (HARBOR_RUNTIME_DOCKER=1 uv run python -m unittest tests.test_runtime_docker; it installs from npm, and HARBOR_RUNTIME_DOCKER_CLI_VERSION picks the CLI).

The runtime adapter expects that layout: the Recipe under /opt/introspection/recipe and the runtime under /usr/local/lib/introspection-runtime, with an Introspection CLI no older than the adapter's floor. A plane's Runtime images are private, but make docker-build-runtime-agent in introspection-cloud builds the base they are built on as introspection-runtime-agent:latest. A task that brings its own image can start from it too:

FROM introspection-runtime-agent:latest
COPY --chown=appuser:appuser . /opt/introspection/recipe

Both adapters bind a trial's fakes the same way, before Pi starts. Only the Recipe's committed .pi/mcp.local.json and .pi/api.local.json bind; MCP servers from Harbor are refused:

OX Radar and Response Center

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.

Where it’s listed

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).

  • pypi-releases introspection-harbor

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Frame 2085668439 (1)
Group 1261154229