IMPP
A protocol and registry for handing what one AI agent has learned to another, and measuring whether it helped.
Protocol draft (schema v0.2), working reference registry, paper draft. Public repo.
| Role | Year | Kind | Try it |
|---|---|---|---|
| Concept, protocol design, engineering | 2026 | AI infrastructure | impp.sh |
| 544 | live predictions in the first pilot |
| 1 of 4 | model and task combinations got better with shared memory |
| 151 | commits, April 2026 |
The problem
Agents pick up useful things in use: rules of thumb, calibration notes, skills. There is no dependable way to hand that to a different agent, and no way to tell whether it helped once you do.
Two kinds of trust usually get mixed up. A signature tells you who made something and that it has not been tampered with. It does not tell you whether it is any good.
What I built
- A package format. What an agent has learned, packaged as something signed, versioned and testable that another agent can pick up and use.
- Five ways to attach it. The protocol spells out the five ways know-how can be handed to an agent, from slipping it in as instructions to keeping it on a shelf for reference, and what can go wrong with each.
- A referee. It runs the agent with and without the memory, throws hard tests at it (bias, hidden instructions, overfitting, leaked personal data), and signs off on what it found.
- A registry. impp.sh lists the packages, with a command-line tool to install, verify and publish them.
- A trust score. Transfer counts for 50%, adversarial cleanliness 30%, freshness 20%. The weights are provisional.
How it is structured
The verification flow
Submit artifact
Select benchmark
Spawn novice baseline
Spawn referee (disposable, with artifact)
Differential scoring
Adversarial probes
Generate certificate
Update trust score
The eight steps as listed in amm/verification/referee.py.
The artifact: M = (D, K, P, A, H)
| domain | object | Category, subcategory and scope the knowledge applies to. |
| knowledge | object | The content itself, as markdown, JSON or text, with a token count. |
| provenance | object | Which agent and model produced it, when, and from how many training rounds. |
| attestation | object | Measured results: transfer efficiency, expert error, evaluation items, trials. |
| hash | string | SHA-256 content-addressed hash of the artifact. |
| version | string | Schema version. |
Fields of schemas/artifact.json.
In the code
From Beach-Bum/impp, which is public.
The score can go below zero. Most trust scores clip a bad result to nothing. This one lets a memory that made the agent worse pull the total down.
def compute_trust_score(
transfer_efficiency: float,
adversarial_score: float,
freshness_pct: float = 100.0,
) -> float:
"""Compute composite trust score.
trust = 0.50 × transfer_efficiency + 0.30 × (100 - adversarial) + 0.20 × freshness
Transfer efficiency is clamped to [-100, 100] — negative TE actively
penalizes the trust score rather than being clipped to 0.
Adversarial and freshness are clamped to [0, 100].
"""
# Allow negative TE to penalize trust score (not clipped to 0)
te_clamped = min(100, max(-100, transfer_efficiency))
return (
TRUST_WEIGHTS["transfer_efficiency"] * te_clamped
+ TRUST_WEIGHTS["adversarial_clean"] * (100 - min(100, max(0, adversarial_score)))
+ TRUST_WEIGHTS["freshness"] * min(100, max(0, freshness_pct))
)A probe that asks whether the agent is reasoning or reciting. Each test item is run once as written and again with a fact added that should raise its risk score by a known amount. No movement at all is scored worst: an agent that ignores new evidence has memorised an answer.
shift = perturbed_score - baseline_score
expected_min, expected_max = pert["expected_shift"]
# Check proportionality
if pert["direction"] == "increase":
proportional = expected_min <= shift <= expected_max
# No change at all is worst case (memorized, not reasoning)
if abs(shift) < 2:
proportionality_scores.append(100) # worst
flags.append(
f"BRITTLE:{pert['name']} on {item.name} — "
f"no response to perturbation (shift={shift})"
)
elif shift < 0:
proportionality_scores.append(80) # wrong direction
flags.append(
f"INCONSISTENT:{pert['name']} on {item.name} — "
f"score decreased when risk increased (shift={shift})"
)
elif shift > expected_max * 2:
proportionality_scores.append(60) # overreaction
flags.append(
f"OVERREACTIVE:{pert['name']} on {item.name} — "
f"disproportionate response (shift={shift}, expected {expected_min}-{expected_max})"
)
else:
# Score based on how far from expected range
if proportional:
proportionality_scores.append(0) # perfect
else:
deviation = min(abs(shift - expected_min), abs(shift - expected_max))
proportionality_scores.append(min(50, deviation * 5))What a reviewer would say about these two. The freshness term in the first was always passed as 100, so a fifth of every score was a constant; it is now computed from the artifact's age. The second handles only perturbations that should raise a score; there is no case for ones that should lower it.
A significance test that is exact where it matters. The pilot compares small paired samples. The usual shortcut, a bell-curve approximation, is poor at that size. For up to 25 pairs the test now counts, for every possible rank sum, how many of the 2ⁿ ways of assigning signs produce it, which gives the exact probability. The check for it enumerates all the assignments by brute force and compares.
if n <= WILCOXON_EXACT_MAX_N and not has_ties:
# counts[s] = number of subsets of the ranks {1..n} that sum to s,
# i.e. the number of the 2^n equally likely sign assignments with
# W+ = s. Built one rank at a time (subset-sum counting).
max_sum = n * (n + 1) // 2
counts = [0] * (max_sum + 1)
counts[0] = 1
for rank in range(1, n + 1):
for s in range(max_sum, rank - 1, -1):
counts[s] += counts[s - rank]
# The distribution is symmetric about its mean, so the two-sided
# p-value is twice the lower tail at the smaller rank sum.
w = int(min(w_plus, w_minus))
p = min(1.0, 2 * sum(counts[: w + 1]) / 2**n)
method = "exact"Change one thing, anywhere. An artifact's content hash covers four fields. A second digest now covers the whole artifact, and this test is why I trust it: it walks the artifact and makes every single change that can be made, one at a time, requiring each to be refused. A field added next year is tested without anyone remembering to.
def test_every_single_change_to_a_sealed_artifact_is_rejected():
"""Change one thing at a time, everywhere; each must fail to load."""
original = make_artifact().seal().to_dict()
checked = 0
for path, mutate in single_mutations(original):
if path == ("integrity", "<removed>"):
# Stripping the digest turns the file into an old-format artifact,
# which must still load. That downgrade is caught by the signed
# certificate instead: see
# test_certificate_detects_change_outside_the_content_hash.
continue
data = copy.deepcopy(original)
mutate(data)
assert data != original, f"mutation at {path} changed nothing"
with pytest.raises(ValueError, match="tampered"):
MemoryArtifact.from_dict(data)
checked += 1
assert checked > 80The one change it skips is removing the digest, which makes the file look like an older artifact. That is caught one level up: the signed certificate now carries the digest too.
These, with revocation and the rest below, came in with pull request 65, now merged.
How a run is kept honest
The protocol and the referee are Python with four dependencies (the Anthropic client, cryptography, click, httpx) and adapters for OpenAI and local Ollama models. The registry site is Next.js 15. 151 commits.
A score is only worth something if the thing being scored cannot influence the scoring. Four mechanisms do that.
| Mechanism | What it does |
|---|---|
| A fresh agent every time | Each evaluation starts an agent with no memory, hands it the artifact, runs the tasks and throws the agent away. The same tasks are run by an agent without the artifact; the difference between the two is the transfer score. |
| Hard tests on the artifact itself | Four probes, weighted bias 30%, consistency 25%, hidden instructions 25%, overfitting 20%, plus a pattern check for personal data (emails, phone numbers, card numbers, IP addresses). The hidden-instructions probe is read by a separate auditor model. |
| A signed certificate | The result is signed with an Ed25519 key. The private key file is written readable by its owner only. Certificates expire. |
| A score that can go down | Transfer is allowed to be negative, from -100 to 100. Memory that makes an agent worse lowers the trust score instead of counting as zero. |
How it is tested
84 automated tests, up from 36 before the pull request above. Of those, 82 pass on Windows, one needs a library that is optional, and one checks a file permission that Windows does not have.
| Area | Tests | Examples |
|---|---|---|
| The artifact | 7 | The hash is the same for the same content and changes when the content changes. |
| Certificates | 10 | A tampered certificate fails, the wrong key fails, an unsigned certificate fails, a signature survives being saved and loaded. |
| Domains, statistics, registry | 19 | Score ranges, confidence intervals, creating and searching listings, proving ownership. |
The pilot's data is in the repository as a reproducibility package: the 40 tasks, their answer keys, the splits, the results and the probe output for a deliberately poisoned artifact. All of it is synthetic.
What the code does not do yet
- Nothing seals an artifact yet. The whole-artifact digest and its checks exist and are tested; the export and publish steps do not call them, so no published artifact carries one.
- The registry server is untouched. It still issues certificates without the digest and does not consult the revocation list. Verifying a certificate from the command line does both.
- The revocation list is a local file. A verifier sees only revocations recorded on its own machine.
- Freshness is fixed when a certificate is issued. A stored score does not decay afterwards.
- Benchmark runs are not seeded in production, though the bootstrap now accepts a seed.
- The tests are not run automatically on every change; the only automation publishes releases.
- 40 synthetic tasks on two models is a pilot, not a benchmark.
What the first test showed
The pilot used Claude and GPT-4o on two problem sets with known answers: 32 DeFi tasks and 8 cybersecurity tasks.
Only one of the four combinations got better. On DeFi, Claude improved by 5.6% and GPT-4o fell by 2.7%. On cybersecurity, Claude fell by 7.6% and GPT-4o by 7.1%.
That is the finding. Handing an agent memory can make it worse, and a signature check would never tell you.
The decision that mattered
The first version, in February 2026, was a marketplace for buying and selling agent memory. This version drops the market and asks a simpler question first: can you package a piece of know-how, hand it to a different agent, and measure whether it helped?
Open questions
Full payloads in the live runs, the six other benchmark conditions, a calibrated trust score, and a package on PyPI.