WunderOS · Agent memory · Design in flight

How an agent reads its memory

In WunderOS, agents have wide-ranging access to read their memories as they see fit, primarily by querying that memory with Wunderlog.

In this example, a manufacturer uses agents to connect inspection photographs, quality reports, and maintenance work orders across shifts. A quality engineer asks, “We replaced the housing on A17. Did anyone record a crack at the mounting hole on the new one?”

The agent knows the assembly number. What it remembers of the damage is less precise. It looked like a thin crack at a mounting hole. It can use both clues in one request. “Show me the closest matches to a crack at a mounting hole on A17.” One of the matches is a photograph the agent recognizes. Now it can ask which inspection produced it.

Recall by resemblance

A narrow crack runs rightward from the rim of an empty mounting hole across the machined face of the housing.
A description retrieves an inspection photograph of assembly A17.
Inspect the ranked read ↓

Follow the evidence

INSPECTION 041 · 04 MAR
“Radial fissure at the three o’clock edge of the bore.”
A17 / housing H14 / plate 04
The photograph points to a report. The inspector used different words for the same feature.
Trace the photograph ↓

Reconstruct the history

07 MAR · WORK ORDER 18Housing H32 replaces H14
19 MAR · INSPECTION 052Crack recorded on H32
The work order identifies the new housing. A later inspection records the defect on that part.
Inspect the time boundary ↓
The queries use illustrative inspection records. Literal results show the projected rows in Wunderlog notation. The photograph is generated.

Did the replacement housing crack too?

The engineer asks the question. The agent writes three Wunderlog queries to trace the defect. It uses the photograph returned by the first query to write the second, then uses the inspection and report it found to write the third.

Ranked recall

“Which A17 memories look like this?”

A17 is an exact condition. Within that assembly’s records, the agent asks for the two closest matches to its description. A photograph can match even if the inspector called the crack a “fissure.”

Agent’s query

★(?M, hit, ?R) ←
  ★(?S, assembly, a17),
  ≊{?M, ?S | k = 2, rank = ?R, query = "crack at a mounting hole"}?
Interpretation

The first match is plate 04. The second is an inspector’s note. The agent recognizes the crack at the edge of the hole in plate 04 and uses that photograph’s reference in its next query.

Literal result
★(plate_04, hit, 1)
★(inspectors_note, hit, 2)
Relational query

“Which inspection produced that photograph?”

Plate 04 gives the agent something precise to follow. It looks up the plate in the inspection records for A17. The fourth slot, Context, selects that assembly. The fifth, Lineage, returns the report cited by the capture record.

Agent’s query

★(?I, source_report, ?Report) ←
  ★(plate_04, captured_in, ?I, a17, ?Report)?
Interpretation

Inspection 041 captured plate 04. The capture record cites report 041. The report records a fissure on housing H14 on 4 March. Here plate_04 names the selected memory in the example archive.

Literal result
★(inspection_041, source_report, report_041)
Inspection history

“When did inspectors see the crack again?”

The agent reconstructs three events on A17. An inspector recorded the crack on the old housing, maintenance replaced that housing, and an inspector recorded the same defect on the new part. The last two lines require the replacement date to fall between the two inspection dates.

Agent’s query

★(?New, defect_seen_on, ?SeenOn, a17, ?Report) ←
  ★(inspection_041, observed, ?Defect, a17, report_041),
  ★(inspection_041, inspected_part, ?Old),
  ★(inspection_041, inspection_day, ?FirstSeen),

  ★(?Order, removed, ?Old),
  ★(?Order, installed, ?New),
  ★(?Order, completed_on, ?ReplacedOn),

  ★(?I, inspected_part, ?New),
  ★(?I, observed, ?Defect, a17, ?Report),
  ★(?I, inspection_day, ?SeenOn),
  ?FirstSeen < ?ReplacedOn,
  ?ReplacedOn < ?SeenOn?
Interpretation

Yes. Inspection 052 recorded a crack at the same location on H32, twelve days after installation. Report 041 places the first observation on H14 on 4 March. Work order 18 dates the replacement to 7 March. Report 052 dates the new observation to 19 March.

Literal result
★(h32, defect_seen_on, 20260319, a17, report_052)

What if the agent had asked on installation day?

A time limit

“Does anyone record a crack on H32 in the next 14 days?”

On 7 March, when maintenance installs H32, the agent writes a query that can wait for evidence. The diamond means “at least once.” The interval gives it fourteen days from the time it asks.

Agent’s query · 7 March

◇⟦0, 14d⟧(h32, observed_defect, mounting_hole_crack)?
Interpretation

The question stays open through the first eleven days. On day twelve, report 052 records a crack at the mounting hole on H32. That observation satisfies the query.

Two clocks at shift change

“Could the next shift see that finding at handoff?”

On 19 March, the inspector sees the crack at 14:50. The shift changes at 15:00. Report 052 enters memory at 15:10. All three times are UTC.

The agent can reconstruct what each shift could read. It holds the observation time (Ⓥ) at 14:50 and moves only the knowledge cutoff (Ⓣ). The zero-width interval checks the fact at that single observation time.

Agent’s query · As of handoff

Ⓣ("2026-03-19T15:00:00Z") Ⓥ("2026-03-19T14:50:00Z")
■⟦0,0⟧(h32, observed_defect, ?Defect)?
Interpretation

No matching row. At handoff, the agent had no record of the crack the inspector had already seen.

Agent’s query · After filing

Ⓣ("2026-03-19T15:11:00Z") Ⓥ("2026-03-19T14:50:00Z")
■⟦0,0⟧(h32, observed_defect, ?Defect)?
Interpretation

Now the query returns mounting_hole_crack. Report 052 gives the incoming shift evidence about H32 at 14:50.

How WunderOS reads memory

The agent chooses the question. The Wunderlog engine can answer from stored facts, call ranked recall, or use both in one rule.

The WunderOS memory query subsystem An agent sends a Wunderlog rule through the Query Service to the query engine. Exact reads bind facts in PlatypusDB and can restrict ranked recall. Recall searches images, text, facts, and episodes and combines their ranks. The engine joins bindings and returns projected results to the agent. WUNDEROS Agent Query Service Wunderlog engine Exact reads Ranked recall Combine ranks Project answer PlatypusDB factsContext · Lineage Images · text · factsAssociated episodes rule result bindings A17

One rule can use both paths

Find the photograph. The facts identify records for A17. That condition reaches the recall sources before they choose their closest matches. Image recall can return plate 04 from the agent’s description of the crack. The engine binds the memory reference and its rank.

Trace the photograph. The agent sends plate 04 back in its next rule. The engine follows exact relationships to the inspection, the housing and the cited report. The agent now has the evidence it needs to ask about the replacement.

What agents can remember in WunderOS

With Wunderlog, an agent can query every type of memory available to it.

One photograph can answer two kinds of question
Find by resemblance

“A crack at a mounting hole.”

The agent describes what it remembers. Image recall matches the description to the photograph itself.

The visual match, plate 04, shows a crack extending from the right edge of the bore.Plate 04 · A17
Follow an exact reference

“Which inspection recorded this?”

Inspection
041
Housing
H14
Source
Report 041
Words in records
Find reports and notes that use words from the agent’s description.
Exact concepts
Find facts that mention a specific part, assembly, or other named concept.
Combinations of concepts
Find memories with a similar mix of concepts, such as a housing, a bolt, and a crack.
Similarity in meaning
Find facts that express a similar idea, even when the wording differs.
Extracted facts
Recall facts the system inferred from earlier records, such as an inspection note.
Associated episodes
Recall events connected through shared entities or through earlier events that occurred together.
Images
Retrieve a stored photograph by describing what it shows.

On the next shift, an inspector might describe the damage differently. The agent can use the same records to ask a broader question. “Have we seen damage like this on other replacement housings?”