malkhut(spec): item 9 — DAAT package (Direction-Anchored Ambiguity Triage)

DaatQuery: 8-feature market state representation
DaatVerdict: KNOWN / MARGINAL / OUT_OF_DISTRIBUTION
daat_classify: cosine RETRIEVE → magnitude GATE → local MODEL
- Cosine finds nearest explored state (directional match)
- Magnitude gate detects out-of-distribution states
- Empty explored set → always OUT_OF_DISTRIBUTION

9 tests covering: known state, OOD, empty explored, marginal, result fields.
No Unicode in code. All tests pass.
This commit is contained in:
Codex
2026-07-14 02:33:31 +02:00
parent eef890a5cc
commit 833f262d12
3 changed files with 209 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
from malkhut.daat.core import DaatQuery, DaatVerdict, daat_classify
__all__ = ["DaatQuery", "DaatVerdict", "daat_classify"]