The promotion gates
When the engine evaluates a diff withcheck_promotion, it applies layer-specific gates.
Layer 0 to Layer 1
An L0 diff promotes to L1 only when all of these hold:- its cell type is one of Decision, Pattern, Constraint, or Lesson (the L0→L1 eligible types),
delivery_count >= 5within the same scene, andcontradictions == 0.
Fact, Risk, Task, Preference, or Context cell stays at Layer 0 no matter how often it is delivered.
Layer 1 to Layer 2
An L1 diff promotes to L2 only if its cell type is Decision or Constraint — thel1_to_l2_eligible_types. Layer 2 is reserved for the kinds of knowledge that shape everyone’s work.
Promotion into Layer 2 is the strictest gate. Beyond requiring a Decision or Constraint cell type, the diff must also have proven cross-context reach — delivered across at least three distinct scenes, with high salience and still zero contradictions. The full conditions are in the mesh-layer spec.
Promotion is trust-gated
Reach is a privilege, not a right. A diff whose source agent has trust belowmin_trust_to_promote = 0.4 is never promoted, no matter how many times it has been delivered. This stops a low-trust or adversarial source from pushing knowledge up the hierarchy simply by generating volume.
What executing a promotion does
When a diff is promoted, the engine re-inserts it at the higher layer and re-energises it so the more important version reaches farther:- adds
promotion_energy_bonus = 5.0to its initial energy, - resets
hop_count = 0and clears the visitedpath, and - re-propagates it through the mesh as a
Promoteddiff.
Contradictions push knowledge back down
Promotion is not one-way. If a promoted diff is later contradicted, the engine can demote or supersede it: the contradiction takes priority on the nextcheck_promotion, and the correction is itself re-propagated with the same energy bonus and a reset path, so the demotion reaches everywhere the original promotion did. The mesh self-corrects rather than entrenching a claim that turned out to be wrong.
How this connects to the rest of the system
Promotion sits on top of gossip propagation (it counts deliveries and re-propagates), the HNSW mesh (it moves nodes up the layer hierarchy), the energy model (it grants the energy bonus), and trust and provenance (it gates on the source’s trust).Source
This page is a teaching restatement of the HyphaeDB specifications. It does not define new behaviour.- mesh-layer spec §6.3 (FR-5 / FR-6) — promotion gates, trust gating, the promotion energy bonus and re-propagation, and demotion / supersession.