MCPcopy Create free account
hub / github.com/Emmimal/control-layer / write

Method write

tests/test_control_layer.py:450–459  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

448 errors = []
449
450 def write():
451 try:
452 for i in range(10):
453 logger.log(AuditRecord(
454 audit_id=str(i), timestamp="t", prompt_hash="h",
455 attempt=1, failure_mode=FailureMode.NONE, latency_ms=1.0,
456 token_count=10, passed=True, strategy=RetryStrategy.NONE,
457 ))
458 except Exception as e:
459 errors.append(e)
460
461 threads = [threading.Thread(target=write) for _ in range(5)]
462 for t in threads: t.start()

Callers 1

logMethod · 0.80

Calls 2

AuditRecordClass · 0.90
logMethod · 0.80

Tested by

no test coverage detected