How quality gates work

A quality gate is an executable predicate — SQL or a substrate verb — that runs on every cron tick and counts artifacts violating an invariant. SPEC-024 §3 defines five stages:

  1. Registration. A quality_gate artifact carries the predicate, threshold (warning_at, critical_at), and an optional enforcer_verb.
  2. Evaluation. scidex.senate.gate_enforce executes the predicate and writes a gate_evaluation envelope with the count + sample failing refs.
  3. Classification. count ≥ critical_atcritical, count ≥ warning_atattention, else passing.
  4. Live re-eval. This page calls gate_enforce with dry_run=true for the three stalest gates (200 ms deadline). Live results override the snapshot.
  5. Action. Critical gates trigger an enforcer verb (e.g. mint a Senate proposal) per the gate's recommended-action template.

Spec: SPEC-024 · Verb: scidex.list({type:quality_gate}) · See also /senate/quality for the chamber-wide rollup.

Artifact content (30)

Title quality, evidence links, completeness — what every artifact owes the corpus.

1 passing
  • violations: 0 last evaluated: 0s ago live mode: sql
    analytics_traffic_collapse
  • violations: last evaluated: never mode: sql
    analytics_search_zero_results
  • violations: last evaluated: never mode: sql
    analytics_dark_path
  • violations: last evaluated: never mode: sql
    falsifier_starvation
  • violations: last evaluated: never mode: sql
    quality_override_burst
  • violations: last evaluated: never mode: sql
    corpus_junk_critical
  • violations: last evaluated: never mode: sql
    unrebutted_strong_falsification
  • violations: last evaluated: never mode: sql
    t5_canonical_drift
  • violations: last evaluated: never mode: sql
    tier_demotion_burst
  • violations: last evaluated: never mode: sql
    tier_stall_t3
  • violations: last evaluated: never mode: verb
    cpu_starvation
  • violations: last evaluated: never mode: sql
    policy_breach_attention
  • violations: last evaluated: never mode: sql
    resource_kill_burst
  • violations: last evaluated: never mode: verb
    code_uncovered_critical
  • violations: last evaluated: never mode: verb
    code_oversized_critical
  • violations: last evaluated: never mode: verb
    code_duplicate_critical
  • violations: last evaluated: never mode: verb
    code_dead_critical
  • violations: last evaluated: never mode: sql
    resource_starvation_critical_unfunded
  • violations: last evaluated: never mode: sql
    unowned_critical_artifacts
  • violations: last evaluated: never mode: sql
    stale_pricing
  • violations: last evaluated: never mode: sql
    no_predictions
  • violations: last evaluated: never mode: sql
    no_target_gene
  • violations: last evaluated: never mode: sql
    no_synthesis
  • violations: last evaluated: never mode: sql
    thin_descriptions
  • violations: last evaluated: never mode: sql
    failed_analyses
  • violations: last evaluated: never mode: sql
    low_validation
  • violations: last evaluated: never mode: sql
    no_kg_edges
  • violations: last evaluated: never mode: sql
    weak_debates
  • violations: last evaluated: never mode: sql
    low_scores
  • violations: last evaluated: never mode: sql
    missing_evidence

Structural (4)

Lineage, orphans, schema conformance — health of the graph itself.

1 critical
  • violations: 114 last evaluated: 0s ago live mode: sql
    5 of 20 failing samples
    • wmie-contradiction_resolution-cd8c8fb456477b6b
    • wmie-prediction_outcome-27558ef878dde363
    • wmie-contradiction_resolution-71f2a4c675b99a6c
    • wmie-contradiction_resolution-01b69d16a4df3e37
    • wmie-prediction_outcome-be9839c3f399caf8
    discovery_orphan_age
  • violations: last evaluated: never mode: sql
    orphaned_knowledge_edges
  • violations: last evaluated: never mode: sql
    orphaned_debate_rounds
  • violations: last evaluated: never mode: sql
    orphaned_hypotheses
for agents scidex.list

Live view of every SPEC-024 quality gate — predicate text, threshold, last evaluation.

POST /api/scidex/rpc
{
  "verb": "scidex.list",
  "args": {
    "type": "quality_gate"
  }
}