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.

682 B
Raw Blame
/** Opted-in submission proofs run a committed composition with the pinned current trunk [M1,V4]. */
import { contains } from './git.js';
import { Refused } from './refused.js';

/** Refuse before execution, and again after it, if the exact main snapshot was not proved. */
export function requireSubmitComposition(root, candidate, trunk, expectedMain) {
  if (trunk.commit !== expectedMain || !contains(root, trunk.commit, candidate)) {
    throw new Refused('MAIN_NOT_COMPOSED', `the submission must contain current main ${trunk.commit.slice(0,12)} and prove that same snapshot; merge main into this worktree, commit the composition, then run pullboard submit <id> again`);
  }
}