Private
Public Access
0
0

feat(audit): add 5 enums for the v2 data model

AggregateKind (4 values), MemoryDim (7), AccessPattern (5),
Frequency (7), RecommendedDirection (4). All Literal types
for stable postfix DSL output (string-valued, no enum-name
lookup table needed in the parser).

5 unit tests passing. The 9 supporting dataclasses + the
AggregateProfile central artifact go in Tasks 1.2-1.10.
This commit is contained in:
2026-06-22 00:46:00 -04:00
parent b77f6cca60
commit 5dca69f0d7
2 changed files with 76 additions and 8 deletions
+44 -1
View File
@@ -8,4 +8,47 @@ audit scripts, and emits per-aggregate profiles in the v2 custom
postfix DSL + markdown + prefix tree text. See
conductor/tracks/code_path_audit_20260607/spec_v2.md.
"""
from __future__ import annotations
from __future__ import annotations
from typing import Literal
AggregateKind = Literal[
"typealias",
"dataclass",
"candidate_dataclass",
"builtin",
]
MemoryDim = Literal[
"curation",
"discussion",
"rag",
"knowledge",
"config",
"control",
"unknown",
]
AccessPattern = Literal[
"whole_struct",
"field_by_field",
"hot_cold_split",
"bulk_batched",
"mixed",
]
Frequency = Literal[
"hot",
"per_turn",
"per_discussion",
"per_request",
"cold",
"init",
"unknown",
]
RecommendedDirection = Literal[
"componentize",
"unify",
"hold",
"insufficient_data",
]