Dynamic mission domain configuration — remove hardcoded signal lists #78
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Circuit-Forge/peregrine#78
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Currently, mission alignment detection in
scripts/generate_cover_letter.pyhardcodes both the domain keys (music,animal_welfare,education,social_impact) and their signal keyword lists (_MISSION_SIGNALS) in Python source. Adding a new domain requires a code change and redeploy.Problem
user.yamlmission_preferencesalready accepts arbitrary keys but they are silently ignored if not in_MISSION_SIGNALSProposed solution
Move signal configuration to
config/mission_domains.yaml(committed with sensible defaults, overridable per-user viaconfig/mount). Schema:generate_cover_letter.pyloads this file at startup and merges user-defined domains frommission_preferenceskeys not already present in the config file.Acceptance criteria
config/mission_domains.yamlcommitted with current 4 domains + at least 3 new ones (privacy, accessibility, open_source)generate_cover_letter.pyloads domains from YAML; no hardcoded signal lists remain in sourceuser.yamlmission_preferencesthat is not in the YAML config is treated as a user-defined domain with no signal detection (custom note only, triggered manually or skipped)