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.

505 B
Raw Blame
/** Read-only projection of append-only landing receipts, shared by board operations and clients. */
/** Read the latest append-only snapshot of each landing batch [B3,R3,R2]. */
export function landingBatches(board) {
  const batches = new Map();
  for (const row of board.db.prepare("SELECT event_detail FROM event WHERE event_kind = 'landing_batch' ORDER BY event_id").all()) {
    const { batch } = JSON.parse(row.event_detail);
    batches.set(batch.id, batch);
  }
  return [...batches.values()];
}