Skip to content

v0.3.0: Shadow Genome, Heuristic Patterns, Trust Dynamics

Choose a tag to compare

@Knapp-Kevin Knapp-Kevin released this 09 Mar 18:05
· 10 commits to main since this release

What's New

Shadow Genome (Failure DNA)

  • ShadowGenomeStore Protocol + InMemoryShadowGenomeStore with thread-safe FIFO eviction
  • 10-variant failure classifier (classify_failure_mode)
  • Negative constraint generation for learning injection (generate_negative_constraint)
  • Per-agent constraint retrieval (get_constraints_for_agent)

CWE-Referenced Heuristic Patterns

  • 10 default patterns: SQL injection (CWE-89), command injection (CWE-78), hardcoded secrets (CWE-798), PII exposure (CWE-359), deep nesting (CWE-1121), weak hash (CWE-328), basic auth (CWE-522), pinned deps (CWE-1104)
  • match_content() scanner with severity-sorted results
  • classify_risk() with composable extra_l3_triggers parameter

CBT/KBT/IBT Trust Dynamics

  • TrustConfig frozen dataclass with 9 tuning fields
  • Pure functions: determine_stage, apply_outcome, is_probationary, calculate_influence_weight, score_to_mesh_trust
  • FailSafeTrustMapper.update_trust() and get_trust_stage() integration methods

Stats

  • 15 source files, 2587 lines
  • 174 tests passing
  • Zero new external dependencies

Full Changelog: v0.2.0...v0.3.0