v0.3.0: Shadow Genome, Heuristic Patterns, Trust Dynamics
What's New
Shadow Genome (Failure DNA)
ShadowGenomeStoreProtocol +InMemoryShadowGenomeStorewith 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 resultsclassify_risk()with composableextra_l3_triggersparameter
CBT/KBT/IBT Trust Dynamics
TrustConfigfrozen dataclass with 9 tuning fields- Pure functions:
determine_stage,apply_outcome,is_probationary,calculate_influence_weight,score_to_mesh_trust FailSafeTrustMapper.update_trust()andget_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