01
Ordered by design
Partitions preserve the sequence that makes agent decisions explainable.
Agent Primitives /Log = Durable transport
Publish commands, events, and results to an ordered log that survives process restarts. Consumers can follow live, resume from an offset, or replay the full history.
const shop = laser.stream("shop")
const topic = shop.topic("orders")
await topic.ensure(2)
for (const order of ORDERS) {
await topic.publish().json(order).send()
}
// one typed handle: Order in, Order out
const replay = await topic
.json(ORDER_CODEC)
.records("log-example")
const batch = await replay.poll()
for (const result of batch) {
if (result.kind === "record") {
console.log(result.record.value.total)
}
}Primitive guarantees
01
Partitions preserve the sequence that makes agent decisions explainable.
02
Rebuild state, investigate failures, or run a new consumer over existing history.
03
Services and agents move at their own pace without duplicating the source of truth.
Explore the system
Combine transport, prompt assembly, recall, relationships, and live views without stitching together disconnected systems.