Repository navigation
Closed
Labels
enhancementNew feature or requestpriority:mediumFix soonscope:cliCLI and UXscope:coreCore engine worktype:featureNew feature
Milestone
Description
Motivation
Uteke has a memory_type field (default: 'fact') but it's barely used — no filtering, no validation, no auto-inference. GBrain's schema packs make types a first-class concept that threads through every read/write path.
This issue formalizes memory_type into a useful taxonomy — no LLM, pure pattern-based inference.
Proposal
Formal Type Taxonomy
pub enum MemoryType {
Note, // general freeform note
Decision, // a decision that was made (contains "decided", "chose", "will use")
Insight, // a realization or learning (contains "realized", "learned", "discovered")
Reference, // factual reference info (links, specs, docs)
Procedure, // how-to / steps (contains "steps:", "how to", numbered lists)
Preference, // user preference (contains "prefer", "always", "never")
Event, // time-bound event (has explicit date/time)
Fact, // verifiable fact (default, backward compatible)
}Auto-Inference (zero LLM)
Pattern-based inference when user doesn't specify --type:
| Pattern | Inferred Type |
|---|---|
| Contains "decided to", "chose", "will use", "going with" | Decision |
| Contains "realized", "learned", "discovered", "turns out" | Insight |
| Starts with URL or "ref:", "see:", "docs:" | Reference |
| Contains numbered list or "step 1", "how to" | Procedure |
| Contains "always", "never", "prefer", "hate" | Preference |
| Contains ISO date pattern (2026-06-14) + time word | Event |
| Fallback | Note |
CLI Changes
# Explicit type
uteke remember "Decided to use SQLite for local storage" --type decision
# Auto-inferred (no --type flag → pattern matching kicks in)
uteke remember "Decided to use SQLite for local storage"
# → auto-inferred as "decision"
# Filter recall by type
uteke recall "storage" --type decision
uteke list --type reference --namespace work
# Type statistics
uteke stats --by-typeRecall Boost
Memories of type Decision and Preference get a small score boost in recall (they're high-value, long-lived). Type Event gets a recency boost. All configurable.
Scope
- Define
MemoryTypeenum with serde + Display - Implement pattern-based auto-inference function
- Add
--typeflag torememberCLI - Add
--typefilter torecallandlist - Add type-based score boost in recall ranking
- Add
uteke stats --by-typebreakdown - Migration: map existing
'fact'→Fact, others →Note - Tests: inference patterns, filtering, boost, backward compat
Non-Goals
- Custom/user-defined types (fixed enum only for now)
- LLM-based type classification (pattern matching only)
- Schema pack system (GBrain's 14-verb schema authoring — too complex)
References
- GBrain:
gbrain-base-v2schema pack — 15-type taxonomy - Current:
memory_type TEXT NOT NULL DEFAULT 'fact'in store.rs
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestpriority:mediumFix soonscope:cliCLI and UXscope:coreCore engine worktype:featureNew feature
Activity
fix(#349): reference detection with whitespace + drop http:// URL
fix(#349): split remember_typed (explicit) and remember_auto_infer
fix(#349): uppercase URL schemes + multi-digit numbered lists
fix(#349): validate explicit_type in remember_auto_infer
fix(#349): reset counter on parse failure in is_numbered_list
fix(#349): validate month/day ranges in ISO date detection
fix(#349): clippy manual_range_contains in is_iso_date_bytes
fix(#349): per-month day validation in ISO date detection
merge: resolve CHANGELOG conflict with develop (#387)
merge: resolve conflicts with develop (#388)
feat(codecoradev#349): memory type formalization + pattern-based auto…
feat(#349): memory type formalization + pattern-based auto-inference (#…