OrmaosDocs

Concepts

Addresses

Every call, exception, I/O event and logging record in a recording has a short address that is stable inside that recording.

View as Markdown
FormExampleMeaning
r<N>r1a recording, the folder .ormaos/r1
r<N>:c<K>r1:c130a call
r<N>:e<K>r1:e1an exception
r<N>:i<K>r1:i3an I/O event
r<N>:l<K>r1:l2a logging record
lastlast:e1the newest recording, and an address inside it

Numbering#

Each kind has its own numbers, starting at 1 in each recording: r1:c1 is the first call, r1:e1 the first exception. In a listing, a group of I/O events or logging records is shown with the address of one of its events, and ormaos io r1:i3 or ormaos logs r1:l2 tells that event. ormaos diff also takes a recording number alone (3 for r3).

Stable inside one recording#

An address never changes: reading a recording again gives the same addresses. It belongs to one recording only. The same code, run again, can give other numbers: Python versions differ in how many calls they make to build a dataclass, for example, and an input that changes changes the order.

Matching across recordings#

ormaos diff never matches by address. It matches by code origin (file, function, line) and by order among the events at the same place, and prints the addresses of both sides:

text
check_order at validate.py:47: 36 calls in both; 6 raised in r1, none in r3; call 7 raised in r1 and returned in r3  [r1:c161 r3:c167]

Every answer ends with addresses#

Every answer ends with next: and, in JSON, with next (addresses) and next_commands. See Addresses for agents.