let d = import "../ontology/defaults/gate.ncl" in

{
  membranes = [

    d.make_membrane {
      id                = "protocol-adoption-gate",
      name              = "Protocol Adoption Gate",
      description       = "Controls which projects are recognized as onref-compliant. A project passes the gate when its .ontology/ validates against the onref schema contract.",
      permeability      = 'Low,
      accepts           = ['EcosystemRelevance],
      protects          = ["protocol stability", "schema versioning guarantees"],
      opening_condition = {
        max_tension_dimensions = 2,
        pending_transitions    = 3,
        core_stable            = true,
        description            = "Project implements the full onref schema contract and exports a valid .ontology/core.ncl.",
      },
      closing_condition = "When the project's .ontology/ fails schema validation after a breaking protocol change.",
      max_duration      = 'Indefinite,
      protocol          = 'Observe,
      active            = false,
    },

  ],
}
