Concordance Engine

The Four Gates

Every packet passes through four gates in this exact order. The engine halts at the first gate that fails. There is no looping back, no consensus override, no second chance from a louder participant.

RED
Hard · REJECT
Forbidden categories. Attestation that load-bearing constraints hold, AND verification that the artifact actually computes correctly.
FLOOR
Hard · REJECT
Structural rules. Required fields present, witnesses named, fiduciary basis declared, units stated.
BROTHERS
Soft · QUARANTINE
Witness count meets the threshold. Default zero (disabled). Boards configure to require N affirming witnesses.
GOD
Soft · QUARANTINE
Elapsed wait window. Adapter scope: 1 hour. Mesh: 24 hours. Canon: 7 days. Buys time for a critical objection to surface.

Hard gates produce REJECT. Soft gates produce QUARANTINE — the packet isn't bad, it's not yet ready. Soft gates exist because some failures should pause, not refuse.

RED has two layers

This is the keystone. Most consensus systems trust the author when they say their constraints are met. RED separates two concerns:

Attestation

The packet author affirms the load-bearing constraints. Did they say it? A dictionary of declarations, structurally checked against the domain's rule set.

Verification

The engine computes against external standards. Is it actually true? Sympy for math. Scipy for statistics. Atom/charge balance for chemistry. SI unit reduction for physics.

The verifier can REJECT despite a passing attestation. The author may have honestly believed their math was right. The math is wrong regardless of what the author claimed. RED catches both — bad-faith claims (attestation fails) and good-faith errors (verification fails).

One packet, full pipeline

A minimal decision packet looks like this:

{
  "domain": "chemistry",
  "scope": "adapter",
  "created_epoch": 1735000000,
  "CHEM_RED": {
    "mass_conserved": true,
    "charge_balanced": true,
    "elements_consistent": true,
    "phases_specified": true
  },
  "CHEM_VERIFY": {
    "equation": "C3H8 + 5 O2 -> 3 CO2 + 4 H2O",
    "temperature_K": 298.15
  }
}

Run through the engine:

$ concordance validate examples/sample_packet_chemistry_verify.json --now-epoch 9999999999

✓ PASS  (sample_packet_chemistry_verify.json)
    ✓ RED        PASS
          ✓ chemistry.equation: balanced (atoms + charge)
          ✓ chemistry.temperature: 298.15 K positive
    ✓ FLOOR      PASS
    ✓ BROTHERS   PASS
    ✓ GOD        PASS

Change the equation to H2 + O2 -> H2O and RED rejects with the smallest balancing coefficients.

What it does not do

Honest scoping matters more than feature lists.

See what each verifier does → Install