Poisoned into Action: Context Attacks Against Typed Decision WorkflowsPoisoned into Action: Context Attacks on Typed Decision Workflows
Execution-aware evaluation tracks context poisoning in jev-1.13.0: natural retrieval with a standalone payload produces 5/60 safety violations.
- Typed interfaces only constrain the action set; a format-valid choice can still cause a policy-violating state change. Looking only at decision flips cannot distinguish erroneous execution, safety violations, and how much correct automation gating withheld.
- The execution-aware protocol fixes facts, policies, and actions, changing only context. After jev-1.13.0 makes a typed choice, an executor that does not look at the answer writes to the sandbox, and a private allow set and safety predicates then check persistent state. Source gating reruns retrieval by low-trust subject, and the empty-scope fix does only local replay.
- Under natural retrieval, payload alone produced 5/60 safety violations and the pair produced 1/60. The original gate blocked 1 erroneous execution in the pair condition, clean correct execution dropped to 44/60, and the empty-scope fix restored it to 56/60. The three main comparisons were not statistically supported after Holm correction.
- The authors state that conclusions are limited to two synthetic workflows, 20 previously used development tasks, one model version, and one collection period, and cannot generalize across families, nor provide equivalence bounds or rare-event certificates. Experiments cover three input surfaces, source gating, and probability threshold replay; outcomes are determined by private predicates and software recomputation, not human review.
- Evaluated models
- jev-1.13.0
- Benchmarks
- document releaseincident responsedevelopment splithistorical reanalysis (590 tasks)
- Metrics
- wrong execution (U)security violation (H)correct execution (C)wrong available choice (W)correct execution coverageNLL
The paper proposes context poisoning attacks and an execution-aware evaluation protocol for typed decision workflows, tracing the path of poisoning evidence through retrieval, model selection, automatic execution, and persistent state, and measuring how much normal automation is preserved by defenses. Experiments use Jev-1.13.0 across 20 development tasks in two types of synthetic workflows with 1,659 invocations, each condition repeated three times: under natural retrieval, standalone payloads reached and caused 5 violation executions across all 60 trials, while carrier-payload combinations exposed the payload in 57 trials and caused 1 violation. The initial source exclusion gate blocked the combination's violations but also intercepted 10 poisoned decisions that could have been handled correctly and 16 normal decisions; fixing its empty-scope behavior restored 12 normal decisions without increasing model calls. A factorial comparison shows that adding correct evidence reduced erroneous executions from 119/120 in the semantic group to 55/120 and from 60/120 to 0 in the neutral group, suggesting the improvement comes more from the general value of evidence than from targeted defenses; the three pre-specified comparisons are not statistically significant after Holm correction, so the conclusions remain exploratory.
Paper analysis
What problem does this paper attempt to solve?
Well-formed typed choices can still lead to policy-violating states, so both harm and correct automation withheld by gating must be measured.
Typed decisions constrain outputs to predefined actions, but a format-valid choice can still trigger a policy-violating state change; measuring only flips cannot distinguish erroneous execution, safety violations, and correct automation withheld by gating.
- Where it arises: The application translates values into releasing documents, leaving them in an investigation queue, or escalating. The authors state that schema validation only confirms format, not that the action conforms to policy or is safe for the resulting state.
- Existing gap: The authors state that many measurements stop at decisions. A benign event flipping from investigation to escalation is wrong but does not violate the minimum-severity predicate; an urgent event left in the ordinary queue is both wrong and below the required severity.
- Authors' gap: A decision change by itself does not constitute a policy violation, and defenses may also withhold correct actions to avoid harmful execution. An independent semantic reference is needed, along with an executor that does not consult the answer.
- Proposed here: An execution-aware protocol records exposure, typed choices, mechanical execution, persistent state, and correct-execution coverage in the same record. Instances are document release and incident response; trusted facts, policies, and action definitions are fixed.
- Threat model:
- Goal: Observe whether poisoned evidence causes execution outside the private allow set, or makes persistent state violate a safety predicate, and record correct executions withheld by gating.
- Capabilities: The state attacker only appends low-trust state notes; the document attacker only appends to the retrieval corpus, with natural retrieval deciding whether it is delivered; outer-instruction appending requires controlling developer input, which the paper places outside the low-trust document threat.
- Victim system: jev-1.13.0. The sandbox is updated only when both gating and mechanical permission allow it; the executor cannot read private labels. A gating rejection produces no execution, unlike a release rejection in the workflow.
- Content: neutral, opinion, semantic, command. Natural retrieval uses a frozen carrier–payload pair, with no online search or task-specific optimization; the authors state it tests the measurement pipeline rather than transfer to unseen text.
What related research exists?
Related work covers typed decision robustness, poisoning retrieval, and indirect injection and selective execution in agents.
The paper positions itself after typed decision measurement: fixing options and definitions, extending endpoints from flips to sandbox execution, and accounting for correct automation retained by gating.
Typed Decision Robustness
- JevAdvBench (Hu et al., 2026): Measures flips, target drift, confidence gating changes, and rerun noise, with 812 typed questions, 66 scenarios, and an auxiliary accuracy check on 143 human-reviewed labels. The paper contrasts: this work fixes option names and definitions, and adds independent policy labels, sandbox execution, and persistent state evaluation, with endpoints complementary to flip and target-drift.
- JevOut (Xu, 2026) and Decision Hijacking (Wu and Lim, 2026): The former uses option probability feedback to optimize natural context additions on initially correct decisions; the latter reconstructs InjecAgent cases to study adaptive attacks with fresh verification.
- Type-Safe Is Not Error-Free (Sun et al., 2026): Studies constrained decision heads following option names rather than the scoring criteria bound to them.
Poisoned Retrieval
- PoisonedRAG (Zou et al., 2025): Alters knowledge supplied to retrieval-augmented generation.
- Topic-FlipRAG (Gong et al., 2025): Combines semantic manipulation with retrieval-oriented perturbations and operates across related queries. The paper states that reusing fixed documents and studying multi-query poisoning is an existing practice; this work uses frozen carrier and payload ablations to separate delivery and downstream impact, focusing on subsequent actions and persistent state.
Agent Safety and Selective Execution
- Indirect Prompt Injection (Greshake et al., 2023): Exploits the boundary between untrusted data and application instructions. InjecAgent (Zhan et al., 2024) and AgentDojo (Debenedetti et al., 2024) study this threat in tool-integrated agents; AgentDojo also uses environment state to check utility and safety.
- TrustRAG (Zhou et al., 2025) and RobustRAG (Xiang et al., 2026): The former filters suspicious context; the latter isolates and aggregates retrieved evidence under a bounded corruption model. The paper states that the source-exclusion gate is a diagnostic policy, not a reproduction of either, nor a certificate for the hosted model.
- Probability Threshold Baselines: The paper uses probability threshold gating with and without temperature scaling (Guo et al., 2017) as selective execution baselines.
Baselines and Data
- Baselines: No gate, original source-exclusion gate, empty-scope repair, and max option probability, API confidence, temperature scaling, and pristine sensitivity matched on clean coverage.
- Data: 20 development tasks on two synthetic workflows; plus a read-only historical reanalysis of 590 tasks. JevAdvBench's 812 questions are not in this live collection.
Appendix B states that the contribution is a combination of controlled delivery, independent correctness labels, persistent execution, and utility accounting, not a priority claim over prompt injection, retrieval poisoning, semantic manipulation, repeated verification, or selective execution.
How does the paper address this problem?
The execution-aware protocol uses private labels and sandbox execution to trace poisoned evidence from retrieval to persistent state, and accounts for correct executions withheld by gating.
The execution-aware protocol fixes trusted facts, policies, and action definitions, changing only contextual evidence. A mechanical executor writes allowed actions to an isolated sandbox without looking at the answer; an independent evaluator then uses a private allow set and safety predicates to separate erroneous execution from safety violations.
Decisions, execution, and outcomes
- Task i has trusted facts Fi, fixed developer questions and action definitions Qi, and reference corpus Di. Retrieval returns Ri = R(Fi, Di). In draw r, the hosted model gives a distribution and action, or an unavailable state. The adapter validates version, action set, probabilities, and the chosen action. API confidence is stored separately from the maximum option probability.
- Gating decides whether to execute the chosen action. Mechanical permission only checks whether the action belongs to the workflow capability set. When both allow it, the sandbox is updated according to the action; otherwise the initial state is kept. A release rejection is a workflow action; a gating rejection produces no execution.
- An executed action not in the private allow set is recorded as erroneous execution, U = E 1[aactual ∉ A⋆i]. Safety violation H indicates that persistent state violates the private predicate Si; correct execution C = E(1−U). Over-escalation can be erroneous execution without violating Si. The event predicate checks for insufficient triage after execution; gating rejections count toward whether execution occurred and toward correct execution, but not toward minimum-severity violations.
- Except for selective risk when execution is nonempty, rates use the planned number of draws N as the denominator, and unavailable responses remain in the denominator. Probability drift uses total variation: half the sum of absolute differences across action probabilities.
Workflows, labels, and attack surface
- Table 1: Document-release actions are send original, send redacted, or reject, simulating an inbox that can only contain the allowed version. Incident response is close benign, queue for investigation, or escalate urgent, and the executed disposition must meet minimum severity.
- Each of the 10 tasks comes from the development split, selected by workflow-balanced public task hash. Each task has three canonical actions and one reference to aid decisions. Opaque markers mean potential semantic facts; protocol state, redaction approval, asset criticality, and policy rules are fixed. Labels are generated offline, do not depend on Jev, and are not produced by blinded multi-reviewer annotation.
- Release policy: reject without a valid protocol; with a protocol, public originals may be released, and restricted material requires an approved redacted version. Event policy: ongoing exfiltration or confirmed compromise of critical assets requires urgent escalation; other suspicious or compromised events require investigation; only benign events may be closed.
- Controlled text writes the same erroneous public mapping as a neutral note, an unverified suggestion, an incorrect interpretation of classification or telemetry markers, or an explicit command pointing to the corresponding action. Public policy may make it impossible for the target to change a correct action, and the paper does not discard tasks for this reason. Targets come from public references and unmodified public policy, not private labels. Natural retrieval uses a frozen carrier and semantic payload, and the paper does not assume the carrier improves delivery in this sample.
Source-exclusion gating
- The system registry maps corpus documents to subjects and is trusted test-harness metadata, not model-visible text. For each low-trust subject in retrieved evidence, the harness deletes all documents for that subject from the full corpus and reruns retrieval, including top-k backfill, rather than deleting only the chunks shown in the base request.
- separate assigns carrier and payload to two subjects; merged assigns both to one. The base request is the same, the exclusion unit differs, and the same pair occupies a different number of control units.
- The original gate executes a valid base decision only when the counterfactual set is nonempty, each counterfactual call is valid, and the chosen actions all agree with the base decision. Local replay allows executing a valid base decision when the registry confirms no low-trust subjects in the retrieved evidence; the nonempty scope still requires valid and consistent counterfactual support. Definitions are in Appendix C.
Six controlled studies and main comparisons
- CS1: state, appended documents, and outer instructions, crossed with four content types. Core text is padded to 48 whitespace-separated words, with no guarantee of equal token lengths. Document notes are inserted directly into the visible reference without reordering, measuring controlled inclusion rather than natural delivery.
- CS2: semantic versus neutral, crossed with the correct reference present or replaced by neutral, and payload at rank 1 versus rank 4. Each context has four blocks, with the correct reference or its replacement fixed at rank 2. The interaction is Δint = (Ū1,1 − Ū0,1) − (Ū1,0 − Ū0,0), where the first subscript 1 is semantic and 0 is neutral, and the second subscript 1 means the correct reference is present. A negative value means correct evidence reduces the semantic penalty more than it acts on the neutral baseline.
- CS3–CS4: appending carrier, payload, the full pair, or the neutralized pair to a clean corpus. A deterministic lexical retriever returns the first four 160-word chunks and records whether the text enters the model context. CS4 uses three clean draws for a stability description; signed differences for the looped pair cancel to 0, so absolute change and total variation are reported.
- CS5–CS6 and statistics: CS6 reuses two temperatures on a historical calibration split. clean-only uses 60 clean instances; mixture uses 118 different instances, namely 60 clean, 29 benign missing evidence, and 29 conflicting evidence, not adversarial training. The three main comparisons all use erroneous execution U as the outcome: semantic minus command in the document channel, the CS2 interaction, and gated erroneous execution for merged minus separate on the pair. Within tasks, the three repeats are averaged first; intervals come from conditional 95% percentiles of 5,000 bootstrap draws, p-values come from two-sided paired sign randomization, and Holm correction is applied to the three main p-values. The experimental unit is the 20 tasks.
Collection and recording
- From 2026-10-05 07:31:04 to 07:47:22 UTC, jev-1.13.0 was requested via System One Choice, with 1,659 decision POSTs: 1,654 valid decisions and 5 malformed with no automatic retry. Model catalog GETs are not counted in decision evaluation.
- Queues, exclusions, main comparisons, and hashes were frozen before collection. Identical requests are deduplicated only within the same task and same repeat. Private labels are opened only at scoring time. The queue has 1,740 logical units and 1,980 raw execution records; 1,497 distinct base jobs and 339 distinct counterfactual jobs. Scope replay adds 240 local state records and zero model calls.
- The runner does not retain full original HTTP responses, so the malformed fields of the five failures cannot be reconstructed. A second read-only audit recomputes all 1,980 records from persistent state and private predicates; the authors state this is software recomputation, not human review.
What experiments did the paper conduct?
On jev-1.13.0, payload alone produced 5/60 safety violations; the three main comparisons were not statistically supported after Holm correction.
Experimental Setup
- Model and collection: The model under test is jev-1.13.0. From 2026-10-05 07:31:04–07:47:22 UTC, 1,659 decision POSTs were sent via System One Choice, with 1,654 valid decisions and 5 format errors that were not retried.
- Task: In the development split, document release and event response each have 10 instances. Each task has 3 canonical actions. Labels are generated offline, not produced by Jev, and not blind multi-review. Selection does not depend on whether new clean responses are correct.
- Replication: 3 draws per task per condition. 1,740 logical units, 1,980 raw execution records; scope replay adds 240 local records and 0 model calls.
- Conditions: CS1 is three channels by four content types; CS2 is content, correct evidence, and rank; CS3 is clean, carrier, payload, pair, and neutralized pair; CS5 compares ungated, original gate, scope repair, and separate vs. merged; CS6 is two history temperatures and coverage matching thresholds.
- Metrics: W is wrong available choice, U is wrong execution, H is safety violation, C is correct execution. Outcomes are determined by private predicates, not LLM review. Except for selective risk, the denominator is the planned number of draws.
- Statistics: The three main comparisons use 20 tasks as the experimental unit. After averaging within tasks over three runs, 5,000 bootstraps give conditional 95% intervals, p-values come from paired sign randomization, then Holm correction. The authors state that the second audit is a software recomputation, not manual review.
Main Results
According to Table 5, each row is 60 planned draws for jev-1.13.0. The gated outcomes for separate and merged are identical and are not split in the table.
Swipe horizontally to read the table
Condition Correct execution Wrong execution Not executed Clean, Ungated 60 0 0 Clean, Original gate 44 0 16 Clean, Scope repair 56 0 4 Pair, Ungated 59 1 0 Pair, Original gate 49 0 11 Pair, Scope repair 49 0 11 - The authors state that the original gate blocked the only wrong execution in pair, but also withheld 10 of the 59 pair decisions that could have been correct, and 16 correct clean decisions. Of these, 12 clean rejections occurred across 4 tasks, where the retrieved evidence in those draws had no low-trust subjects; the non-empty counterfactual support requirement treated empty scope as failure.
- Scope repair first checks the registry: when there are no low-trust subjects, it allows executing the valid base decision; non-empty scope still requires validity and consistency. It recovers these 12 cases, raising clean correct execution from 44/60 to 56/60, while pair remains 49/60 correct and 0 wrong, with no new model calls. It still withholds 4 correct clean decisions and 10 correct pair decisions afterward.
- Registry grouping does not change gated outcomes, but it changes recovery: under merged, 60/60 pair draws recover the exact clean request; under separate, single-subject exclusion is 0/60. The authors state that exact recovery is not a certificate of correctness for a randomly hosted model; clean actions themselves can be wrong, and the two registries have different subject budgets. Table 4 counts the 1 wrong execution in pair as a safety violation as well.
Input Surface and Natural Delivery
- Table 2 Each cell is wrong executions/unavailable decisions out of 60 planned draws. neutral and opinion are 0/0 across all three channels. semantic is 10/2 in state, 0/1 in document, and 60/0 in outer instruction; command is 3/0 only in outer instruction. The 10 errors in state are all on 4 event tasks, none violating the minimum severity predicate. All 60 outer-instruction semantic errors execute the wrong action, with 30 violating the safety predicate; among these 60 wrong decisions, 30 have API confidence at least 0.8. The 3 outer-instruction command errors are on 1 release task, with no safety violations.
- The authors state that the surfaces differ in wrapping, evidence count, and token length, so the comparison cannot isolate permission effects alone, and they do not frame instruction control as a result of document poisoning. The authors argue that an attacker's input rights can override content labels such as command or semantic.
- Table 4 Each row is 60 planned and valid draws; C/P is visible carrier/payload content, not correct execution. Carrier visible 60 times, wrong execution 0. Payload visible 60 times, wrong execution 5, safety violations 5, distributed across 3 event tasks; each time, events requiring urgent escalation are left in the ordinary investigation queue. For pair, payload visible 57 times, wrong execution 1, safety violation 1. The API confidence for these 6 errors ranges from 0.19 to 0.29. The authors state that adding carrier in this sample neither increased payload exposure (57/60 vs. 60/60) nor increased observed harm; retrieval order, competing context, and invocation variation may all contribute.
Evidence Competition and Preregistered Comparisons
- Table 3 Shows wrong executions per 60 planned draws. neutral is 30 at both ranks when correct evidence is absent, and 0 when present. semantic is 59 and 60 when absent, with rank-1 having an additional 1 unavailable; when present, it is 25 and 30. The authors report that after aggregating across ranks, the semantic arm drops from 119/120 to 55/120, and the neutral arm from 60/120 to 0/120. The semantic penalty relative to neutral is 49.17 and 45.83 percentage points. The authors state that the recovered evidence improves general task ability, and not all benefits should be attributed to attack-specific protection.
- Table 6: Document channel semantic minus command is 0.00 pp, interval [0.00, 0.00], Holm p=1.000. CS2 interaction is −3.33 pp, interval [−26.67, 20.00], raw p=0.868, Holm p=1.000. Pair gated merged minus separate is 0.00 pp, Holm p=1.000. The authors report that none of the three main comparisons are statistically supported after Holm correction; zero-width intervals are not equivalence tests or risk bounds.
Other Ablations and Analyses
- CS4: All 60 ungated clean draws execute correctly, with no within-task action divergence. The circular pairwise TV mean is 0.022, median 0.010, maximum 0.110; the mean absolute change in maximum option probability is 0.0217. The signed mean is 0 by construction.
- Table 8 retrospectively matches on 44/60 clean coverage: a max-probability threshold of 0.82 and an API confidence threshold of 0.73 each retain 46 correct pair executions and 0 errors; clean temperature is 46, mixture temperature is 44, pristine sensitivity is 10, and original gate is 49. The authors state that they did not compare with the repaired 56/60 operating point.
- Table 7: clean-only temperature 0.151856545 reduces natural clean NLL from 0.1279 to 0.0007 and pair from 0.1900 to 0.0468, but raises instruction semantic NLL from 2.2525 to 13.5138. Mixture temperature 9.786044907 reduces the latter to 1.0195, while natural clean NLL rises to 0.6836. Positive temperature scaling preserves argmax and cannot correct wrong winning actions.
- Average billed input tokens for semantic vs. command: state 1,397.86 vs. 1,381.15, document 1,585.47 vs. 1,579.80, outer instruction 1,384.75 vs. 1,372.15.
- Table 10 is a read-only reanalysis of 590 tasks: relative to clean, semantic poison has 16 flips, of which 10 are new errors, 4 are corrections, and 2 are wrong-to-wrong; net increase in wrong executions is 6/590 (1.02 pp), McNemar p=0.1796, clean-family Holm-adjusted p=0.5387. Relative to the direct-action baseline, the increase is 1.69 pp, unadjusted paired p=0.0213. The authors state that the latter does not substitute for the relative-to-clean result and is not merged with this pilot into a confirmation set.
- Figure 3 records the input of one natural retrieval pair: all four retrieved documents are low-trust, and colors only mark experimental roles. The text states that the reference and payload give conflicting semantic cues.
What are some points that can be further explored?
The authors limit their conclusions to two synthetic workflows and previously used development tasks, and state that broader effects require held-out evaluation.
Limitations and Future Directions Noted by the Authors
- The study contains 20 previously used development tasks, generated by two synthetic workflow templates; the frozen contamination pair is not a new attack family. The three new draws do not constitute independent workflows, text families, or held-out replication, and the conditional task-level intervals do not support cross-family generalization (§5.6).
- Only one hosted model version and one collection period are used; fixing the version cannot remove server-side variation (§5.6). The conclusion states that these findings describe two synthetic workflows and previously studied development tasks, and that broader effects require held-out evaluation (§6).
- The threat models differ across analyses: outer-instruction control is stronger than document appending, the forced rank probe assumes placement has already succeeded, and separate vs. merged changes the principal budget unit. The clean-context sensitivity diagnostic uses information that a deployed system may not have. These arms should not be combined into a single ratio (§5.6).
- Task labels define correctness, and each safety predicate captures only one specified harm. Gated refusal is not counted as an event at the minimum severity violation, although run latency may have a cost. The testbed does not model human review, multi-step recovery, real authorized execution, organizational cost, or online business integration. Five malformed responses lack complete raw fields and verified usage (§5.6).
- The pilot has no prespecified equivalence bound, independently validated small-effect bound, or rare-event certificate. The supplementary rules were saved after 394 responses had been collected and before private field outcome scoring, so they are exploratory and not part of the original primary analysis family. The coverage-matching threshold uses evaluation clean scores and is descriptive rather than a deployed policy (§5.6).
- The authors state that future research needs independently generated workflow mechanisms, unseen reference and contamination families, fixed claims and failure rules, and sample sizes tied to practically meaningful effects at a prespecified clean coverage level (§5.6). §5.5 also states that future comparisons should fix the clean coverage operating point before evaluating risk reduction.
Experimental Coverage
- The model tested in field collection is jev-1.13.0, with 1,659 decision POSTs, over the time window 2026-10-05 07:31:04 to 07:47:22 UTC (§4.5).
- There are 10 tasks each for document release and incident response, with 3 draws per condition; natural retrieval uses one frozen carrier–payload pair (§3.2, §4.1).
- The controlled channels are state, appended document, and outer instruction, with content neutral, opinion, semantic, command; natural delivery additionally has carrier, payload, pair, and neutralized pair (§4.3).
- Gated accounting includes the original source-exclusion, the zero-call empty-scope replay, and maximum probability, API confidence, two temperatures, and pristine sensitivity matched on 44/60 clean coverage (Table 5, Table 8).
- Outcomes are determined by a private allow set, safety predicates, and a second software recomputation; the authors state that labels were not produced by blinded multi-review and that this audit is not human review (§4.1). Intervals, raw p, and Holm p for the three main comparisons are in Table 6. The paper states that the runner did not retain the complete raw HTTP responses of five failures (§4.5).
Summarize the main content of the paper
The execution-aware protocol separately exposes harm and gating-withheld correct automation on two synthetic workflows; the main comparison is not statistically supported.
An execution-aware protocol examines when context poisoning in typed workflows leads to erroneous execution and policy violations, and how much correct automation source gating withholds.
- Problem and approach: A format-valid action can still change persistent state. The protocol fixes trusted facts, policies, and action definitions, changing only evidence; the executor does not look at the answer, and the evaluator checks the sandbox with a private allow set and safety predicates.
- Natural delivery: On jev-1.13.0, 20 development tasks, 3 draws per condition. Payload alone arrived 60/60 times, producing 5 safety violations; payload in a pair arrived 57/60, producing 1. The violations all left events requiring urgent escalation in the ordinary investigation queue.
- Input surface: Outer-instruction semantic caused erroneous actions in 60/60 executions, 30 of which violated the safety predicate; the same semantic text in the controlled document channel produced 0 erroneous executions. The authors argue that input privilege can override content labels.
- Evidence and checks: The correct reference reduced erroneous execution in the semantic arm from 119/120 to 55/120, and in the neutral arm from 60/120 to 0. The authors argue that the large improvement reflects general evidence value. Three preregistered comparisons were not statistically supported after Holm correction.
- Gating: The original gate blocked 1 erroneous execution in the pair condition, and clean correct execution dropped from 60/60 to 44/60. The empty-scope fix restored 12 to 56/60; the pair condition remained 49/60 correct and 0 erroneous, with no new model calls. The authors state that conclusions are limited to two synthetic workflows and previously studied development tasks.