COMPRESSION_SYSTEM_PROMPT missing observation types #293
Labels
No labels
good first issue
has-pr
help wanted
idea
priority
critical
priority
high
priority
low
priority
medium
status
blocked
status
in-progress
status
needs-review
status
ready
type
bug
type
docs
type
enhancement
type
feature
type
refactor
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
customable/claude-mem#293
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
COMPRESSION_SYSTEM_PROMPTinpackages/worker/src/handlers/prompts.tsonly lists 6 observation types, butObservationTypeinpackages/types/src/database.tsdefines 21 types.Current State (Line 265-266)
Missing Types
The following types from
ObservationTypeare not documented in the prompt:Documentation & Config:
docs- Documentation changes (README, comments, guides)config- Configuration/environment changesQuality & Testing:
test- Test implementation, coverage improvementssecurity- Security fixes, vulnerability patchesperformance- Optimization, profiling, speed improvementsInfrastructure:
deploy- CI/CD, release, deployment changesinfra- Infrastructure, DevOps, cloud resourcesmigration- Database migrations, data transformsKnowledge Types:
research- Investigation, analysis, explorationIntegration:
api- API changes, endpoint modificationsintegration- Third-party service integrationdependency- Package updates, dependency changesPlanning & Tasks:
task- Todo item, planned workplan- Implementation plan, roadmapManual Memory:
note- Manual note or bookmark saved via MCPSession:
session-request- User prompt/request trackingImpact
Without these types in the prompt, the LLM will misclassify observations when compressing tool outputs, leading to incorrect categorization in the UI and search.
Solution
Sync
COMPRESSION_SYSTEM_PROMPTwith the fullObservationTypedefinition, similar to the fix being applied toOBSERVATION_SYSTEM_PROMPT(Issue #291).Related
Fixed in commit
6d0e113Added all 21 observation types to COMPRESSION_SYSTEM_PROMPT, grouped by category.