feat: domain-aware normalizer for assumption validation (Phase 2)#72
Open
82deutschmark wants to merge 5 commits intoPlanExeOrg:mainfrom
Open
feat: domain-aware normalizer for assumption validation (Phase 2)#7282deutschmark wants to merge 5 commits intoPlanExeOrg:mainfrom
82deutschmark wants to merge 5 commits intoPlanExeOrg:mainfrom
Conversation
- Loads domain profiles (Carpenter, Dentist, Personal) from YAML - Auto-detects domain from assumption signals (currency, units, keywords) - Normalizes currency to domain default + EUR equivalent - Normalizes units to metric (with conversion tables) - Re-assesses confidence per domain keywords - Batch normalization support - Unit tests cover detection, normalization, conversions Addresses Simon's feedback on hardcoded lists + Mark's requirement for clean, domain-aware outputs for AI agents.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 2: Domain-Aware Assumption Normalizer
What this does
Adds a
DomainNormalizerthat auto-detects the domain of a plan (carpenter, dentist, personal, startup, non-profit) and normalizes QuantifiedAssumptions accordingly:Why it matters
PlanExe's role in 2026 is as a trusted auditing layer for autonomous agents — not just plan generation. Agents run in bubbles and hallucinate assumptions. This normalizer ensures FermiSanityCheck speaks the right language for each domain before flagging assumptions as sane or suspect.
Test results
11/11 tests pass (8 normalizer + 3 FermiSanityCheck).
DAG placement
MakeAssumptions → FermiSanityCheck → DomainNormalizer → DistillAssumptionsRelated