earlyink
211 first flagged22 Oct 2026

Compaction Probe: CI tests for provenance loss when agents summarise their own history

Tests and patches agent harnesses so attacker text can't pass as user instructions after compaction. Agent platform vendors pay.

Early · Compaction laundering paper names popular harnesses

Written for: Small startup team

Next step

Call Kartik at Omnara and ask whether their durable agents compact context, how roles survive it, and whether he would run the probe suite against Omnara before his next enterprise sale.

Why now

Durable, long-running agent hosts like Omnara keep agents alive across restarts, and those agents compact more often. MemoryTax suggests raw history plus search beats designed memory, which makes summarisation steps the weak link to test. A probe suite with a typed-message patch can ship in weeks.

What became possible

A paper shows that popular open-source coding agents flatten typed messages into plain '[User]:' labels before summarising, so anything the agent read can come back as a user instruction after context compaction.

Two ways in

  1. Open probe suite

    Plants attacker strings in files, web pages and tool output, forces compaction, and checks whether the planted text comes back as a user instruction. Ships with a reference patch that passes typed roles through the summariser.

    Customer
    Agent harness maintainers and hosted-agent platforms
    Model
    Open-source core, with paid certification reports for vendors selling to banks
  2. Compaction audit for internal agents

    Runs the suite against a fintech's in-house agents and records the results for model-risk files.

    Customer
    Model-risk teams at fintechs with long-running internal agents
    Model
    Fixed-fee audit

Competition

Early

No company I found sells a CI product that forces compaction and checks whether planted text comes back as a user instruction. The research on the open-source side, though, is already about as specific as this product idea.

Full competition notes (8 competitors)

No company I found sells a CI product that forces compaction and checks whether planted text comes back as a user instruction. The research on the open-source side, though, is already about as specific as this product idea. The Compaction Laundering paper covers the attack, a test across nine harnesses, published code, and a code-level fix. So the open probe suite is not new as an idea. What a new entrant could add is turning it into a maintained product. That means a harness-agnostic CI action, attack strings for files, web pages, tool output and MCP that get updated as harnesses change, regression tracking across versions, and patches upstreamed into the five vulnerable harnesses (pi, opencode, Cline, Aider, OpenHands). The risk is that this gets copied easily. Promptfoo or PyRIT could add it as a plugin, and the paper's authors at Pixee already hold the credibility. The open tool works better as a way to win customers than as something people pay for. The fintech model-risk audit has more room. Nobody I found maps compaction testing to model-risk documentation such as SR 11-7-style validation records. Fintech buyers pay for evidence and repeatability, not novelty, so the second idea is probably the stronger business, and the open suite is what earns it credibility. A big caveat is that the attack only works on harnesses that flatten the conversation into one string. Codex, Gemini CLI and the other role-typed harnesses already scored 0 percent, so the market shrinks as harnesses switch to typed roles. To stay relevant past that point, the product would have to cover softer failures too: lost safety constraints, the summarizer being told what to drop, and the model writing instructions into its own summaries.

  • Compaction Laundering paper (Arshan Dabirsiaghi, Pixee)

    This is the closest thing to the probe-suite idea. The paper plants forged [User]: lines in content the agent reads, then measures whether they survive compaction as real user instructions. Across five harnesses that flatten the conversation into a single string (pi, opencode, Cline, Aider, OpenHands), the forged approval survived in 87 to 100 percent of trials. Four role-typed harnesses (Codex, Gemini CLI, Qwen Code, Continue) showed 0 percent. It proposes a code-level provenance check and escaping role labels before flattening. The abstract says code and data are published, so this is effectively an open research version of the suite and the reference patch. Posted very recently, not peer reviewed, and I did not find a product or CI package built from it.

  • Governance Decay paper

    Academic study of a compaction-eviction attack. Attacker content either pads the history to force compaction or tells the summarizer what to drop, so safety constraints quietly disappear. It looks at constraints being lost rather than attacker text being promoted to user instructions, but uses the same attack surface and the same force-compaction method.

  • OpenAI Alignment report on self-generated injections in compaction summaries

    Shows a big lab is watching compaction summaries for instruction-like content, in this case content the model wrote itself. Labs could build this testing in-house for their own harnesses, which makes them less likely to buy it.

  • opencode compaction issues (#27037, #54697) and V2 checkpoint framing

    Harness maintainers are already filing and fixing compaction provenance problems one at a time: compaction requests that look like ordinary user turns, and the full tool set being exposed to the summarizer. One analysis says opencode V2 now wraps the summary as historical context. These are ad-hoc fixes, not a shared test suite.

  • Slipstream: trajectory-grounded compaction validation

    Research on checking whether compaction summaries are faithful to the agent's actual history. It is aimed at summary quality rather than security, but it is nearby work that could grow into provenance checks.

  • MemPoison benchmark

    Benchmark for poisoning an agent's persistent memory. It sits next to compaction laundering but covers memory stores, not compaction inside a session.

  • Unit 42 indirect prompt injection into long-term memory via summarization

    Proof of concept in which a web page manipulates the agent's session summarization so attacker instructions get stored in memory and carry over to later sessions. Shows that security vendors are aware of summarization as an attack path.

  • Promptfoo / PyRIT / garak (general red-teaming tools)

    These are the general CI and red-teaming tools. Promptfoo's database already lists cases where an attacker's text loses its origin by passing through agent summarization. None of the three appears to ship a test that forces compaction and checks provenance, but they are the most likely to add one as a plugin.

Checked 2026-10-22

Risks

  • Maintainers may fix the flattening within weeks, leaving little to sell
  • There are few paying buyers for a narrow test
  • Overlaps existing agent-memory scanning products

Strong buildability; market pull is the weak point (4).

tech 7 · pull 4 · space 7 · fit 7 · build 9

Momentum of its main topic

175 developments this week +33 vs last week
23 Sep: 0 developments24 Sep: 0 developments25 Sep: 0 developments26 Sep: 0 developments27 Sep: 0 developments28 Sep: 0 developments29 Sep: 0 developments30 Sep: 0 developments1 Oct: 0 developments2 Oct: 0 developments3 Oct: 0 developments4 Oct: 0 developments5 Oct: 0 developments6 Oct: 0 developments7 Oct: 0 developments8 Oct: 32 developments9 Oct: 26 developments10 Oct: 13 developments11 Oct: 11 developments12 Oct: 14 developments13 Oct: 19 developments14 Oct: 24 developments15 Oct: 35 developments16 Oct: 31 developments17 Oct: 15 developments18 Oct: 14 developments19 Oct: 23 developments20 Oct: 26 developments21 Oct: 36 developments22 Oct: 30 developments
Stage: Coverage

Sources

  1. Compaction Laundering: Provenance Destruction in Context-Compacting Coding AgentsarXiv
  2. MemoryTax: The Bitter Lesson of Agent MemoryarXiv
  3. Show HN: Omnara – Open-source alternative to Claude Managed AgentsHacker News
  4. Cache Engineering for AgentsHF Daily Papers

Status history

  • 2026-10-22 Flagged as buildable