Same kitchen

debate

Run a consensus debate. Then write the result on the same task.

ganda task work <id> --routine debate

Select a node, or run the path that the host uses.

How you write it

You write the routine in C#. Each call adds one node. Build makes the intermediate representation.

public static RoutineDefinition Build()
{
  return Routine.Named(RoutineId)
    .Oracle<TaskWork.Continue>("debate", schema: "Continue.ClosedEnum", pack: Pack.None, budget: Budget.Small)
    .Compute("fold-in", TaskWork.FoldIn)
    .Build();
}

The file is source/timewarp-taratibu/routines/debate/debate.cs. Taratibu master 53de8c4.

Why this shape

The shape is the same as rfc. The oracle body is different. Consensus must not make a second kitchen for “apply consensus”.

What you get

  • tw-consensus-debate is the body of the debate node.
  • fold-in is a compute node. The write is not optional text.

Rules

  • You must give a task id.
  • The run ends at fold-in. There is no pull request and no gate.

The drawing follows the D2 file in the repo. Node ids do not change. Ganda connects the commands. Ganda does not change the graph.