feat(soul): Layer 2 — stewardship.el #7
Reference in New Issue
Block a user
Delete Branch "feat/layer-stewardship"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implements Layer 2 (Stewardship) — the structural guarantee between L1 (Safety) and L3 (Imprint). steward_align() checks every request for mission-conflict signals before it reaches the imprint. steward_validate_imprint() enforces which tools an imprint is authorized to use. steward_cgi_check() gates any self-modification or capability-expansion actions behind CGI governance review. All stewardship events logged to engram as StewardshipEvent nodes.
Added: behavioral profiling and continuity detection
Four new functions:
steward_fingerprint_session()— extracts a 6-dimension behavioral fingerprint from each message: vocabulary complexity, punctuation style, message length, question ratio, formality, time-of-daysteward_build_baseline()— loads last 20 BehaviorSample nodes from engram, computes mode for each dimension as the user baselinesteward_check_continuity()— compares current fingerprint against baseline: consistent / drift / discontinuity / anomalysteward_session_check()— convenience wrapper, called from the composition layer each turnWhy this matters: The system distinguishes between gradual drift (same person, different state — respond with attentiveness) and sharp discontinuity / anomaly (possibly different person using the account — gentle identity check). Safety layer (L1) handles acute crisis signals; stewardship handles pattern-level continuity. The baseline lives in engram on-device, never leaves, user can inspect or clear it.