KnotKeep

Know what your agents did, and whether the grade was right.

KnotKeep is a small engineering practice for teams running LLM agents where mistakes cost something. We make your traces trustworthy, test whether the judges that score them agree with your experts, and attack the agent before your customers do. Then we hand you the numbers.

Write to usRead what we've measured

A trace of one agent conversation drawn as a khipuA primary cord with a separate first cord recording the whole trace, then four groups of hanging cords, one group per reasoning step. Each cord records a span's duration in milliseconds as knots. A full list of the spans follows the figure.

Reading

Point at, tap or tab to a cord to read it. The first cord, set apart on the left, is the whole conversation: 8,594 ms, tied as 8 knots, 5 knots, 9 knots and a long knot of 4 turns.

Fig. 1 One conversation with a synthetic health-plan agent, recorded as a khipu. A caller asks why a claim was denied; the agent makes three tool calls and answers in 8.6 seconds. Each cord is a span, its knots its duration in milliseconds. Red cords are model calls, blue are tool calls, brown are graph steps.
The same record as a table
SpanStartDurationKnots
payerbench.chat0 ms8,594 ms8 single knots in the thousands, 5 single knots in the hundreds, 9 single knots in the tens, a long knot of 4 turns in the units
invoke_agent payerbench0 ms8,593 ms8 single knots in the thousands, 5 single knots in the hundreds, 9 single knots in the tens, a long knot of 3 turns in the units
model1 ms1,318 ms1 single knot in the thousands, 3 single knots in the hundreds, 1 single knot in the tens, a long knot of 8 turns in the units
chat gemma-4-31b-it-8bit1 ms1,317 ms1 single knot in the thousands, 3 single knots in the hundreds, 1 single knot in the tens, a long knot of 7 turns in the units
route1,318 ms0 msno knots (zero)
tools1,319 ms23 ms2 single knots in the tens, a long knot of 3 turns in the units
execute_tool list_claims1,319 ms23 ms2 single knots in the tens, a long knot of 3 turns in the units
model1,343 ms1,324 ms1 single knot in the thousands, 3 single knots in the hundreds, 2 single knots in the tens, a long knot of 4 turns in the units
chat gemma-4-31b-it-8bit1,343 ms1,323 ms1 single knot in the thousands, 3 single knots in the hundreds, 2 single knots in the tens, a long knot of 3 turns in the units
route2,667 ms0 msno knots (zero)
tools2,667 ms1 msa figure-eight knot in the units
execute_tool get_claim2,667 ms1 msa figure-eight knot in the units
model2,668 ms1,450 ms1 single knot in the thousands, 4 single knots in the hundreds, 5 single knots in the tens
chat gemma-4-31b-it-8bit2,668 ms1,449 ms1 single knot in the thousands, 4 single knots in the hundreds, 4 single knots in the tens, a long knot of 9 turns in the units
route4,117 ms0 msno knots (zero)
tools4,118 ms1 msa figure-eight knot in the units
execute_tool search_plan_document4,118 ms1 msa figure-eight knot in the units
model4,119 ms4,475 ms4 single knots in the thousands, 4 single knots in the hundreds, 7 single knots in the tens, a long knot of 5 turns in the units
chat gemma-4-31b-it-8bit4,119 ms4,474 ms4 single knots in the thousands, 4 single knots in the hundreds, 7 single knots in the tens, a long knot of 4 turns in the units
route8,593 ms0 msno knots (zero)

Three jobs, one stream of traces.

Each service stands on its own. They share one input, your OpenTelemetry traces: Trace makes the stream trustworthy, Judge scores it, and Probe attacks the agent and turns every confirmed failure into a new case for Judge.

  1. i

    Trace

    Know what your traces actually hold.

    An OpenTelemetry collector that makes agent traces standard, redacted and portable, and a check of what each of your tools really stored.

    • Maps your spans to the OpenTelemetry GenAI conventions, so no vendor SDK lives in agent code.
    • Redacts PHI and PII in two layers: pattern rules in the collector, entity recognition for free text.
    • Fans one stream out to any mix of Langfuse, Phoenix, Tempo, LangSmith or your own store.
    • Verifies by querying every backend and probing storage for planted synthetic identifiers.

    You keep: Collector config, redaction rules fitted to your data, and a leak-probe report.

  2. ii

    Judge

    Find out whether your scores mean anything.

    A gold set built with your experts, a panel of judges measured against it, and the cheapest judge that agrees with the people who know the work.

    • Builds an evidence packet per run: policy, request, tool calls and results, final answer.
    • Tests typed-decision, local and frontier LLM judges side by side on your data.
    • Reports agreement, fail recall, precision, repeatability, cost and latency for each.
    • Runs online as a cascade: a cheap judge on every trace, a strong one where it is unsure.

    You keep: A gold set, tuned rubric questions, and a judge card you can show an auditor.

  3. iii

    Probe

    Break it here, not in production.

    Adversarial and regression tests written from your own domain and traces, run nightly and gated in CI.

    • Plants instructions in tool results and records to see what the agent obeys.
    • Sweeps identity and relationship phrasing against your privacy rules.
    • Copies good runs and changes one fact, to test whether anything notices.
    • Scores with deterministic detectors, so the suite reruns for free and gives the same answer.

    You keep: Attack success rate by category, ranked findings, and a CI gate that blocks regressions.

What we've measured so far.

Before selling the work we did it on ourselves. PayerBench is a synthetic health-plan member-services agent we built for the purpose: six tools, forty fake members with PHI-shaped records, a local 31B model. These findings come from three studies in September 2026; a fourth, a benchmark on the same agent, followed in October. All four are written up in full under Research. Data and code are available to prospective clients.

  1. 01

    810 or 1

    Input tokens for one LLM call, depending on which tool you ask.

    The same span in four observability backends. Three report the raw prompt; one subtracts cached tokens. On a warm cache, a cross-tool cost dashboard is off by two to three orders of magnitude and neither UI says so.

    Source: Four tracing backends, September 2026

    Trace
  2. 02

    48 → 23

    Attributes kept for that span, from the most faithful backend to the least.

    Most of the difference is attributes promoted into typed columns. One cloud backend dropped every gen_ai.* attribute the collector had added. Telemetry is portable only if you check what arrived.

    Source: Four tracing backends, September 2026

    Trace
  3. 03

    6 leaks

    Times a member’s name reached the cloud backend after the redaction rules had passed their probe.

    Tool results reach the backend as escaped JSON inside JSON, and the rules were written for the unescaped form. Found only by reading the cloud payload. Redact the data, not its serialization, then probe the storage.

    Source: Four tracing backends, September 2026

    Trace
  4. 04

    0.58 → 0.91

    Fail recall of a typed-decision judge after one sentence was added to its question.

    A third wording held recall at 0.92 and brought precision back to 0.92. For these judges the question is the model, which makes wording a calibration lever.

    Source: Judge calibration, September 2026

    Judge
  5. 05

    1/100

    Cost of the tuned small judge relative to a frontier LLM judge, at the same agreement.

    $0.00007 against $0.0056 per verdict, and about a twentieth of the latency. Across 16,050 verdicts from five judges the whole study cost $16.

    Source: Judge calibration, September 2026

    Judge
  6. 06

    0 of 486

    Direct requests for another member’s records that succeeded.

    Every pretext we could write failed. Instructions planted in a prior-auth note, a poisoned tool description and an offhand remark succeeded 3 of 3 times each. The agent told a caller a denied sleep study was approved because a note said so.

    Source: Red-teaming, September 2026

    Probe
  7. 07

    9% → 0%

    Attack success before and after five defenses, at no measurable cost to normal work.

    No single defense covered the surface. Marking tool text as untrusted stopped the planted notes and nothing else; human approval on writes stopped the rest. 1,743 scripted conversations, scored by code, rerun for $0.

    Source: Red-teaming, September 2026

    Probe

Start with a fixed-fee check.

A short engagement that touches all three services tells both of us what is worth building. Customisation lives in configuration (rubric questions, redaction rules, attack seeds), so your setup stays yours and keeps improving.

  1. Check

    2–3 weeks, fixed fee

    A trace audit, a 50-run starter gold set, one judge comparison and one red-team pass against your agent. You get a written report with the fixes ranked.

  2. Build

    4–8 weeks, fixed fee

    We install whichever of Trace, Judge and Probe the Check justified, fitted to your stack and your data, and hand it over working.

  3. Run

    Monthly

    Online scoring, nightly probes, recalibration each month and new attacks each quarter, with the numbers sent to you rather than buried in a dashboard.

Who it's for

  • Teams of roughly 20 to 100 people with an agent in production or close to it.
  • Anyone whose agent can take actions, or can see one person's data while talking to another.
  • Health, finance, legal and other work where a trace cannot go to a vendor unredacted.
  • Teams paying a growing LLM-judge bill for scores nobody quite trusts.

Records kept in cord.

For centuries, Andean peoples recorded numbers in knotted cords, and the Inka state ran its census, tribute and storehouses on them. A khipu hangs pendant cords from a primary cord; knots tied in base ten record quantities, and colour and position carry meaning. The specialists who made and read them were the khipukamayuq, the keepers of the knots. Between thirteen and sixteen hundred khipus survive, most in museum collections.

We took the name because the job is the same one: keep a record of what happened that people can check and trust. Figure 1 at the top of this page is one of our agent traces written in that notation. We draw on khipu as information design, with respect for the people who built it and the scholars and communities who still study it.

Further reading: Open Khipu Repository; Khipu Field Guide; Marcia and Robert Ascher, Code of the Quipu (1981); Gary Urton and Carrie Brezine, “Khipu Accounting in Ancient Peru,” Science (2005); Frank Salomon, The Cord Keepers (2004).

  1. Single knots count tens, hundreds and thousands. Three here make 3 in that place.

  2. A figure-eight knot is 1 in the units place.

  3. A long knot is 2 to 9 in the units, one turn per unit. This one is 4.

  4. No knot in a place is zero.

How to read Fig. 1. The highest place sits nearest the primary cord.

Tell us what your agent does.

And what you would like to be sure of. A short note is plenty; we'll reply with questions or a time to talk.

hello@knotkeep.ai