CClockMoraine
Product

Product features · Vector-clock causal relations

01

Use vector_clock.py to examine when two event histories are incomparable despite both containing valid counters.

01

Connection

Base URL, credentials and a reachable server.

02

Selection

A model available through the configured endpoint.

03

Capabilities

Context limits and tool support are determined by the model and server.

Vector-clock causal relations

● ● ●ClockMoraine●
A concrete starting point · Vector-clock causal relations ×
def clock_relation(a, b):
    for clock in (a, b):
        if type(clock) is not dict or len(clock) > 64:
            raise ValueError("clock.map")
        if any(type(k) is not str or not 1 <= len(k) <= 32 or type(v) is not int or not 0 <= v <= 10**12 for k, v in clock.items()):
            raise ValueError("clock.entry")
    keys = a.keys() | b.keys()
    less = any(a.get(k, 0) < b.get(k, 0) for k in keys)
    more = any(a.get(k, 0) > b.get(k, 0) for k in keys)
    return "concurrent" if less and more else "before" if less else "after" if more else "equal"
✳Vector-clock causal relations
✓ ChangesReview before applying ↗
Illustrative workspace
AI coding workspace

Your next change starts here.

Get the Windows app ↗