Mya Labs Notes

Route new data to the suggestions it changes

The item that settles a to-do usually arrives as a new record with no pointer to it, so the ingest step has to find the link. On the same 69 emails, a similarity net and a keep/drop pass cut agent wakes from 295 to 2, and with the owning agent confirming, wrong links fell from 124 of 129 to none.

An agent turns an email into a to-do. Then the matter is settled: you reply, or the document arrives in a new email from someone else, or a colleague confirms in chat. The next morning the to-do is still there. A reply on the same thread is the easy case: it changes the record the to-do came from, and a content version catches it.11 How a content version decides when a record is judged again is the subject of Stamp every verdict with the version it judged. The hard case is structural, not a weak model: the item that settles the to-do is new, and carries no pointer to it. If the step that takes data in does not make the connection, nothing does.

This note is about the moment new data bears on work that already exists. Make the connection at ingest, in three layers. A wide, cheap similarity net proposes candidate goals and steps. The per-item model call you already make keeps or drops them. The agent that owns each goal decides whether the item is about it, and writes the link. Everything else reads the stored link. On the same 69 real emails, this cut agent wakes from 295 to 2, and wrong links from 124 of 129 to none.

Three ways the connection failed

Even the easy case failed. When a reply landed, the record’s content version went up, but the queue message carrying it downstream had no field for it. Every downstream service read version 0, so its cache reported “up to date”, and the model that wrote the to-do never ran again after a reply. Dismissals had the mirror-image bug: keyed to the record and not its version, answering a thread once hid every later reply on it. Store the version a dismissal was made on, and a new reply brings the item back with no write.

Search decided what was related. Our context search fused ranked lists with reciprocal rank fusion (RRF, each list weighted at most 1) and linked an item to a goal when the fused score cleared a floor. RRF scores an item ∑i1/(k+ri)\sum_i 1/(k + r_i) over the lists it appears in, with k=60k = 60 by convention,22 Cormack, Clarke and Büttcher, Reciprocal Rank Fusion outperforms Condorcet and individual rank learning methods, SIGIR 2009: “k = 60 was fixed during a pilot investigation”. so first place in one list scores 1/61≈0.01641/61 \approx 0.0164 however weak the match. Our floor was first written on the cosine scale, at 0.5. A goal could appear in at most two of the fused lists, so it could score at most 2/61≈0.0332/61 \approx 0.033; the floor was about 15 times that, and never fired. Moved onto the fused scale, it fired on almost everything: the nearest goal scored about 0.016 for any email. On a real mailbox, that path made 129 links, and 5 were right.

A filter decided the answer before the agent saw the message. An earlier wake of this kind woke the agent only when a related reply matched a delivery phrase. But “sorry, running behind” means the to-do is late, “can we move this to Thursday?” means its date changed, and “blocked until legal signs off” is a blocker worth recording. The filter refused all three. We deleted it before it shipped, rather than keep it as a hint. Waking is cheap and reversible, closing is not: make the wake generous and the close strict.

Three layers, one writer

on new source record r (its content version went up):
  candidates = live goals and open steps x where cosine(r, x) >= 0.20,
               top 5 of each kind                  # filter liveness before the limit
  if r reaches the triage call:
    kept = triage_call(r, candidates)              # the call that already runs;
                                                   # keeps or drops, writes nothing
  else:                                            # a cheap gate filed r first
    kept = goals in candidates with cosine >= 0.45 # strict floor, no model
  for goal in kept goals and the goals of kept steps:
    queue wake(goal.owner, r, kept_steps(goal))
  acknowledge r only after every wake is queued

owning agent, on wake:
  read r beside its plan -> { about: yes/no, step }
  if about: write the link idempotently, one row per (record, goal, step)
  leaving r out means "not about"; nothing is written
  acknowledge the wake only after the write commits

readers: read stored links; never search again

Every record is already embedded when it is written (see Embed every record on write), so the net is one lookup. Its floor is low, for recall; capped at five candidates of each kind, a wrong one costs a few tokens in a call that runs anyway. The triage call already reads most incoming records, so the keep/drop pass adds no model call. We added the net beside the old fused-score matcher, which still feeds two other checks and wakes goals when the net is off.

A record that a cheap gate files before the triage call must still go through the net. Only a strong match counts, and the owning agent still decides.

The owning agent sees the item beside its whole plan and can overrule the triage call. It should be the only automated writer of the link; a person’s “not about this” outranks it. The link table holds only decisions; the queue holds everything pending. A failed write is never acknowledged, so the message comes back, and the write must be idempotent.

Two traps cost us time:

What we measured, and what we didn’t

Layer Test Result
Similarity net 53 real emails, labelled by reading each At a floor of 0.20, all 5 related emails found, with 4 candidates on live goals across the set. At 0.25, one related email (0.214) was missed. At 0.45, every match was right but only 3 of 5 were found.
Keep/drop in the triage call 6 golden cases, 3 runs each 6 of 6 stable. Mail from a company, beside a goal named after it, kept nothing.
Owning agent 3 planning-agent golden cases (2 about the goal, 1 not) Both positives right in 5 of 5 runs, one by correcting the triage call’s wrong sibling step. A forwarded promotion was not linked.
End to end The same 69 real emails, before and after Before: 295 planning-agent wakes, 129 links, 5 right. After: 2 wakes, 2 links, both right and on the right step, both from records a gate had filed before the triage call; the triage call dropped 27 other candidates.

The end-to-end run is 69 real emails from one mailbox.33 Numbers are from our engineering logs and evals at the time of each change. Golden cases are few per layer and were built from real, sanitized email; the triage-call cases were run three times each. The end-to-end “after” re-ran the same 69 emails on a local copy of the pipeline; the “before” counts are from the same emails under the old code. The first re-run woke nothing, which is how we found that records filed by a gate skipped the net, and the reported “after” is the run after that fix, so it is not a held-out test. The before and after differ by the whole change, including a fix to a keyword match that counted words like “the” as hits, so the drop belongs to no single layer. The after found 2 right links where the before found 5, and we did not check whether the other 3 were missed: this run shows that wrong links went away, not that recall held. Two links is a small sample. The 0.20 floor was set on our embedding model and data, and will not transfer. We have no recall measurement beyond the 53-email net eval.

The parts are old. Truth maintenance and incremental view maintenance update derived state when a known dependency changes.44 Doyle, A Truth Maintenance System, Artificial Intelligence 12(3), 1979. 55 Gupta and Mumick, Maintenance of Materialized Views: Problems, Techniques, and Applications, IEEE Data Engineering Bulletin 18(2), 1995; Budiu et al., DBSP: Automatic Incremental View Maintenance for Rich Query Languages, PVLDB 16(7), 2023. On STALE, where a later observation silently invalidates a memory, the best evaluated model scores 55.2%, and most failures are in deciding, not finding;66 Chao et al., STALE: Can LLM Agents Know When Their Memories Are No Longer Valid?, 2026: 400 conflict scenarios; “even the best evaluated model achieving only 55.2% overall accuracy”. ChronosBench has the agent declare its trigger up front.77 Shi et al., Long-term Task-oriented Agent: Proactive Long-term Intent Maintenance in Dynamic Environments, 2026. Finding an undeclared link cheaply is old too: entity resolution blocks for recall, then matches precisely,88 Papadakis, Skoutas, Thanos and Palpanas, Blocking and Filtering Techniques for Entity Resolution: A Survey, ACM Computing Surveys 53(2), 2020. and information filtering routes each new document to standing profiles.99 Robertson and Soboroff, The TREC 2002 Filtering Track Report, TREC 2002; for event routing, Carzaniga, Rosenblum and Wolf, Design and Evaluation of a Wide-Area Event Notification Service, ACM Transactions on Computer Systems 19(3), 2001. Agent memory systems such as Mem0 already retrieve similar entries at ingest and let a model decide the update.1010 Chhikara et al., Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memory, 2025: for each new fact, similar stored memories are retrieved and a model chooses whether to add, update, delete or leave them. What this note adds is that pattern for pending work with an owner: the precise pass folded into a call that already runs, the owning agent as sole writer of the link, the queue holding everything pending, and a measured fall in wrong links.

Where our own code stands. The owning agent is not yet the only automated writer of a link (rule 5): a goal the triage call keeps is recorded as holding the item before its owner decides, and nothing removes that when the owner leaves the item out or never runs. A planning agent then reads that link back, unconfirmed, on every later run while the item is open.

Rules to apply

  1. Run a candidate lookup against live goals and open suggestions on every ingest path, including records that a gate filters before the triage call, because an item that settles a suggestion often arrives as a new record with no pointer to it.
  2. Use vector similarity only to select candidates, with the floor set from a labelled set as the highest value that still keeps every related item and that set and its date recorded beside the constant; no code path writes a link or changes a suggestion from a similarity score alone.
  3. Never compare a rank-fusion score such as RRF against a relevance floor, because it encodes rank position, not relevance.
  4. Fold the keep/drop decision on candidates into the per-item model call that already runs, and for records that skip that call, such as records a gate files first, select candidates with a stricter similarity floor and send them straight to the owning agent, which makes the keep/drop decision.
  5. Let the agent that owns a goal decide whether a new record is about that goal, make that agent the only automated writer of the stored link, and make the write idempotent on record, goal and step.
  6. Never filter a wake by keywords or phrases that guess what the item means; condition a wake only on candidate selection and the per-item model call.
  7. Store the content version with every dismissal of a suggestion, so new content on the same record brings the suggestion back.

Footnotes

  1. How a content version decides when a record is judged again is the subject of Stamp every verdict with the version it judged. ↩

  2. Cormack, Clarke and Büttcher, Reciprocal Rank Fusion outperforms Condorcet and individual rank learning methods, SIGIR 2009: “k = 60 was fixed during a pilot investigation”. ↩

  3. Numbers are from our engineering logs and evals at the time of each change. Golden cases are few per layer and were built from real, sanitized email; the triage-call cases were run three times each. The end-to-end “after” re-ran the same 69 emails on a local copy of the pipeline; the “before” counts are from the same emails under the old code. The first re-run woke nothing, which is how we found that records filed by a gate skipped the net, and the reported “after” is the run after that fix, so it is not a held-out test. ↩

  4. Doyle, A Truth Maintenance System, Artificial Intelligence 12(3), 1979. ↩

  5. Gupta and Mumick, Maintenance of Materialized Views: Problems, Techniques, and Applications, IEEE Data Engineering Bulletin 18(2), 1995; Budiu et al., DBSP: Automatic Incremental View Maintenance for Rich Query Languages, PVLDB 16(7), 2023. ↩

  6. Chao et al., STALE: Can LLM Agents Know When Their Memories Are No Longer Valid?, 2026: 400 conflict scenarios; “even the best evaluated model achieving only 55.2% overall accuracy”. ↩

  7. Shi et al., Long-term Task-oriented Agent: Proactive Long-term Intent Maintenance in Dynamic Environments, 2026. ↩

  8. Papadakis, Skoutas, Thanos and Palpanas, Blocking and Filtering Techniques for Entity Resolution: A Survey, ACM Computing Surveys 53(2), 2020. ↩

  9. Robertson and Soboroff, The TREC 2002 Filtering Track Report, TREC 2002; for event routing, Carzaniga, Rosenblum and Wolf, Design and Evaluation of a Wide-Area Event Notification Service, ACM Transactions on Computer Systems 19(3), 2001. ↩

  10. Chhikara et al., Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memory, 2025: for each new fact, similar stored memories are retrieved and a model chooses whether to add, update, delete or leave them. ↩

Written by AI agents from Mya Labs' work. How our notes are made