Stateful Cross-Session Injection: Attacks, Detection, and Session-Boundary Defenses
A research project that studies how prompt injections persist across agent sessions — building a stateful evaluation harness that measures...
A research project that builds a reproducible, execution-scored evaluation harness for desktop AI agents — sandboxed environments, scripted task definitions, instrumentation, and failure analysis inspired by the methodology of open benchmarks like OSWorld.

A research project about measuring AI agents rather than building them. Computer-use agents — models that click, type, and navigate real applications — are usually demonstrated on cherry-picked successful runs. This project builds the opposite: a small, reproducible evaluation harness in which desktop agents execute defined tasks inside isolated sandboxed environments, every step is logged, and success is decided by executable checkers (the actual file state, the actual application state) rather than vibes. The design follows the methodology of open execution-based benchmarks such as OSWorld — task definitions, environment setup scripts, and programmatic success checks — and the project’s deliverable is a working harness plus a rigorous failure analysis of one or more agents on your own task set.
>An evaluation harness, not an autonomous agent product. Everything here runs agents inside disposable, isolated environments against synthetic data — never on your daily system, never with real credentials, and never against production services. The harness exists to produce trustworthy measurements; the isolation discipline that makes measurements trustworthy is the same discipline that keeps the exercise safe.
Agentic AI demos are easy to stage and hard to trust. A screenshot of a successful run proves almost nothing: the task may have been hand-tuned, the environment pre-arranged, the failures cropped out. Real evaluation requires the same machinery that made software benchmarks trustworthy — precisely defined tasks, controlled environments, automated setup, execution-based scoring, and complete traces that let a third party replay the experiment. The OSWorld benchmark (from XLANG Lab, published at NeurIPS 2024) demonstrated this methodology at scale: hundreds of real cross-application tasks on Ubuntu/Windows/macOS environments, scored by checking the resulting state, not the agent’s self-report. What a learner or small team usually lacks is a harness of their own — a small, hackable version of that discipline for the handful of tasks and agents they actually care about, with every design decision visible.
The project separates concerns the way serious benchmarks do: task definition, environment provisioning, agent execution, instrumentation, and scoring are five independent pieces joined by explicit artifacts. Build them in that order.
A benchmark task is a structured record, not a prompt. Each task specifies: the goal statement given to the agent, the starting environment state (files present, app state, configuration), the allowed interaction surface, a time/step budget, and — critically — one or more executable success checkers that inspect final state (a file exists with expected content; a document was exported; a setting was changed). Write ten to twenty tasks across a few application families (file manager, text editor, spreadsheet, terminal), each with a stated intent (e.g., “locate and rename a file according to a rule in a note”). Store tasks as versioned data files so every experiment names exactly which task set it ran.
Each run starts from a clean, disposable environment — a container or virtual machine image restored from a known snapshot. Setup scripts materialize the task’s starting state deterministically: seed files with fixed content, fixed application configuration, no network access unless a task explicitly requires a controlled local service. Ephemeral, single-use environments are the harness’s backbone: no state leaks between runs, and any run can be reproduced by replaying the same setup against the same snapshot.
Run the agent against the environment with a step budget and record everything: the task version, agent identity and configuration, every observation it received, every action it took, timestamps, and resource usage. Instrumentation is capture-first — you are building the dataset you will later analyze. Traces are stored as structured records (one per step) alongside the environment’s own logs, so post-hoc analysis can distinguish “the agent clicked the wrong thing” from “the application never rendered the thing.”
When a run ends (task completed, budget exhausted, or agent gave up), the harness runs the task’s checkers against the actual environment state. Checkers return structured verdicts — pass, fail, with details — never a model’s claim about itself. Where partial credit is meaningful (a file found but not renamed), define graded outcomes in the task definition so scoring stays mechanical and re-runnable.
The research heart of the project. Convert raw failed traces into categories: perception failure (agent misread the screen), planning failure (right reading, wrong sequence), execution failure (right plan, wrong click/keystroke), environment mismatch (setup differed from task intent), and timeout. Build a small labeling tool — even a spreadsheet workflow over exported traces — and produce a failure-distribution report per task and per agent. This report is the artifact that distinguishes a harness project from a leaderboard vanity run.
Persist every run in a results database (run, task, agent, config, verdict, failure category, duration, steps). Reporting joins across runs: success rate per task and per agent, pass-rate variance across repeated runs of identical configuration (reproducibility itself is a measured property!), and per-category failure breakdowns. Export a summary report that a stranger could audit: which tasks, which agents, which configurations, which numbers.
The harness’s final test of itself: replay a sample of runs from stored configs and snapshots and verify the recorded verdicts reproduce. Document any that do not — nondeterminism in agents is a finding, not an embarrassment, as long as it is measured and reported.
A minimal but complete MVP:
Explicitly out of MVP: multi-agent comparison at scale, graphical-task generation, cloud-device farms, web-browser agents, and any production-agent development. Extensions, not obligations.
This project measures agents; its neighbors on this site each do something else with adjacent vocabulary. The AI Test Case Generator from Source Code generates tests for human-written code — a code-comprehension deliverable; #063 generates no tests at all, it administers tasks to autonomous agents and scores outcomes. The Container Security Scanner for Docker Images inspects image contents for vulnerabilities — a security-analysis pipeline; #063 uses containers purely as disposable evaluation sandboxes, not as scan targets. The Data Quality Scorecard for Data Teams scores datasets against quality rules; #063’s checkers score agent behavior against task intents. Same rigor family, entirely different objects of measurement.
| Tool type | Approach | Limitation |
|———–|———-|————|
| OSWorld-scale benchmarks | Hundreds of cross-platform tasks, community-run | Heavyweight for a small team; fixed task sets not tailored to your agents |
| Vendor agent eval suites | Proprietary evaluations bundled with agent products | Closed tasks and scoring; self-grading conflict of interest |
| Ad-hoc demo scripts | Single-task showcases | No isolation, no checkers, no reproducibility |
| General CI frameworks | Run anything on a schedule | No environment snapshotting, task semantics, or failure taxonomy for agents |
This project’s differentiators: a learner-scale harness with the same methodological skeleton as public benchmarks, execution-based scoring, built-in reproducibility replay, and a failure-taxonomy analysis that turns runs into research findings.
Browse more Research Ideas · Advanced Ideas · AI Ideas
A research project that studies how prompt injections persist across agent sessions — building a stateful evaluation harness that measures...
A research project that measures, for the first time at registry scale, how much tool-poisoning risk actually exists across public...
A research project that measures the full trade-off curve between prompt-injection resistance and task utility for LLM agent defenses —...
Looking for something more accessible? Try these:
Published on September 12, 2026
A team of developers, researchers, and innovators who review and publish practical ideas for builders and creators.
Published on September 12, 2026
A team of developers, researchers, and innovators who review and publish practical ideas for builders and creators.