diff options
Diffstat (limited to 'src/domain/README.md')
| -rw-r--r-- | src/domain/README.md | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/domain/README.md b/src/domain/README.md index 0d359af..a30039e 100644 --- a/src/domain/README.md +++ b/src/domain/README.md @@ -1,8 +1,11 @@ # Domain layer -This directory is reserved for the conversation-memory domain model and its -business rules. Conversation, message, retention, and search contracts will be -defined here only after the next design phase. +`message.h` defines immutable Message and metadata concepts, role/tier enums, +input limits, deep-copy ownership, and UTF-8 validation. This layer has no mcpc +or Win32 dependency. -The domain layer must not depend on mcpc or on a concrete storage engine. +`search.h` owns the ASCII-case-folded Unicode codepoint 2/3-gram inverted index, +collision verification, candidate selection, and deterministic relevance score. +`memory_tier` is descriptive in v1. Retention, summarization, and automatic tier +transitions are intentionally not domain behaviors yet. |
