Skip to content

Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.

561 B
Raw Blame
/** Share an already-decoded event only inside the proof projection, never in native history. */
const decoded = Symbol('proof event detail');

/** Attach an internal decoded value without adding anything to serialized event records. */
export function decodedProofEvent(event, detail) {
  return { ...event, [decoded]: detail };
}

/** Read an internal projection or decode the original immutable event for legacy readers. */
export function proofEventDetail(event) {
  return Object.hasOwn(event, decoded) ? event[decoded] : JSON.parse(event.event_detail);
}