// lib/process/stages/intake-form.js — defensive shim.
//
// The engine handles intake submission directly via `submitIntake({ case_id,
// payload })`, which records the execution as `pass` and advances. Stages of
// kind `intake_form` should never reach the heartbeat dispatcher; if they do,
// something has skipped the engine's intake routing — throw so the bug is
// visible instead of silently parking the case.

export async function executeStage({ case: c, stage }) {
  throw new Error(
    `intake_form stage "${stage.slug}" reached heartbeat dispatcher for case ${c.id}; ` +
    `intake must flow through engine.submitIntake() and never through runStageExecution().`
  );
}

export const STAGE_KIND = 'intake_form';
