cyberneticlibrary

Run code review debates until consensus

codex-debateworkflowsetup L30
srid/smriti
What it does

Codex Debate

Best for

Adversarial debate to uncover contradictions in claims/code.

Inputs
  • · JSON args object
Outputs
  • · verdict string (PASS/WARN/FAIL or yes/partial/no)
  • · findings array with evidence + root causes
  • · markdown comparison table
Requires
  • · agent-orchestration-engine
  • · schema-validation (zod or JSON-schema)
Preconditions
  • · workflow must export meta={name, description, phases}
Failure modes
  • · agent output fails schema validation → workflow errors or graceful downgrade
  • · exception in any agent call propagates up, killing workflow
Trust signals
  • · Structured schemas with required fields and enums
  • · Read-only audit discipline (no mutations)