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.
JavaScript agentic-codingai-agentsai-governanceautonomous-agentsclaude-codeclicode-reviewcodexcoding-agentsdeveloper-toolsgit-hooksllmlocal-firstmulti-agentsoftware-factoryspec-driven-developmentverificationvibe-coding
/** Derived landing waiver reads; ordered waiver receipts retain their released shape [B3,R3,H16]. */
import { PERSON } from './board.js';
import { landingBatches } from './landing-batch-history.js';
import { landingWaiverCovers } from './landing-exceptions.js';
import { landingWaiverKind } from './landing-exceptions.js';
import { quarantineWaivers } from './quarantine.js';
/** Read every person waiver, retaining expired entries as evidence [B3,R3]. */
export function landingWaivers(board) {
return board.db.prepare("SELECT event_by,event_detail FROM event WHERE event_kind = 'landing_waiver' ORDER BY event_id").all()
.filter((row) => row.event_by === PERSON)
.map((row) => JSON.parse(row.event_detail).waiver).concat(quarantineWaivers(board)); // A proven flake's quarantine, when on [C7,D1].
}
/** Find a live person's waiver and derive its match kind without rewriting history [B3,R3,H16]. */
export function landingWaiverFor(board, failure) {
const waiver = landingWaivers(board).findLast((entry) => Date.parse(entry.until) > board.clock.now().getTime()
&& landingWaiverCovers(entry, failure));
return waiver ? { ...waiver, kind: waiver.kind ?? landingWaiverKind(waiver.test) } : null;
}
/** Validate a distinct waived landing proof without creating an ordinary gate stamp [B3,R3]. */
export function waivedLandingProof(board, tree) {
return landingBatches(board).findLast((batch) => ['ready', 'pushed', 'landed'].includes(batch.state)
&& batch.proof?.tree === tree && Array.isArray(batch.proof.failures) && batch.proof.failures.length > 0
&& batch.proof.failures.every((failure) => {
const waiver = landingWaivers(board).find((entry) => entry.id === failure.waiver);
return waiver && Date.parse(waiver.until) > board.clock.now().getTime()
&& landingWaiverCovers(waiver, failure);
})) ?? null;
}