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"}?InterpretationThe 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)?
InterpretationInspection 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?
InterpretationYes. 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)