Society · Protocols

OsmoticFilter

Spam prevention via pressure thresholds

Definition

Mechanism

Agents operate inside a semi-permeable membrane. Inbound messages are rejected unless they carry sufficient 'pressure' (stake, reputation, or relevance score) to overcome the membrane's current tension. The filter supports Multi-Solvent extraction, allowing different types of pressure (Money vs Trust) to be converted at defined rates per the Criteria criteria. It uses Hysteresis to prevent oscillation and Canary messages to test permeability.

Invariants

  1. Normalized Pressure: Sum(Weighted_Solvents) > Membrane.tension
  2. Permeability: If Queue < Capacity, tension must approach zero (membrane relaxes)
  3. Snapback: If Queue drops rapidly, tension must reset instantly (anti-hysteresis)

Risks

Failure modes

  1. Starvation of low-stake but high-importance messages (mitigated by Whitelist).

Relationships

Builds on

Accepts

Infrastructure

Criteria

Judgment standards

References

Canary

Expendable agent tests the full coordination path before real commit

Infrastructure

Hysteresis

Preventing oscillation via asymmetric thresholds

Nothing in this library builds on this pattern yet.

Reference

Parameters

decay_rate Float, [0.1, 0.9]
Linear relaxation
snapback_threshold Float, [0.0, 0.2]
Queue depth % triggering instant reset

Identity

Ref
OsmoticFilter#239a
Sema ID
sema:OsmoticFilter#mh:SHA-256:239a63d284e0676746b9ec3bd2e957eeec5d80d42e84b066e9b74f937cd5bd1e
Ring
2
Tier
2
Updated
2026-11-11
Supersedes
  • sema:OsmoticFilter#mh:SHA-256:5cf61dc7a3adf65d0ff6dab7a022402fd79095fe4e1cb420c0fbad1401b84f52
  • sema:OsmoticFilter#mh:SHA-256:36b5f762c178f196095cc38a5183326ac9183a3fe351b4b3e9dfeb44a2fac587
  • sema:OsmoticFilter#mh:SHA-256:d437b78f521165fd6c5dd408a22170e7ca0b75b43842fb70111f321c92be11ed
  • sema:OsmoticFilter#mh:SHA-256:f37de2d27a053113f433bb0db36f7d4f4ee92c1486e8cc79d0d0efd1a7d1514b