Skip to main content

Module alignment_guard

Module alignment_guard 

Source
Expand description

Poisoned-alignment flood detection and contest-abuse guard (§GAP-07 / G30 / G31).

Protects the contributor graph and human-ratification queue from:

  1. Bogus closeMatch proposal floods / Sybil poisoning attempts (G30).
  2. Denial-of-service through bad-faith or spam contest records (G31). Zero-heap hot path.

Structs§

ContestRecord
A contest claim asserting factual, licence, or custodial dispute over a graph triple.

Enums§

AlignmentSecurityError
Errors arising from alignment security evaluation.

Functions§

check_contest_budget
Evaluates contest rate limits to prevent DoS via contest record storms (G31). Zero-heap inspection over caller-supplied slice of recent contests.
detect_poisoned_alignment_flood
Evaluates an alignment proposal against poisoning flood metrics (G30).