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.

587 B
Raw Blame
/**
 * A refused move: a rule said no. The code names the rule; the message says what to do next (P4).
 */
export class Refused extends Error {
  /**
   * @param {string} code - The rule that refused, in UPPER_SNAKE, e.g. SELF_VERIFY.
   * @param {string} message - Why, and the next step.
   * @param {string} [next] - A contextual recovery action, when the raise site knows it.
   */
  constructor(code, message, next) {
    super(`[${code}] ${message}`);
    this.name = 'Refused';
    this.code = code;
    if (typeof next === 'string' && next.trim()) this.next = next.trim();
  }
}