COMPRESSION_SYSTEM_PROMPT missing observation types #293

Closed
opened 2026-01-25 15:47:12 +00:00 by jack · 1 comment
Owner

Problem

COMPRESSION_SYSTEM_PROMPT in packages/worker/src/handlers/prompts.ts only lists 6 observation types, but ObservationType in packages/types/src/database.ts defines 21 types.

Current State (Line 265-266)

<type>one of: bugfix, feature, refactor, change, discovery, decision</type>

Missing Types

The following types from ObservationType are not documented in the prompt:

Documentation & Config:

  • docs - Documentation changes (README, comments, guides)
  • config - Configuration/environment changes

Quality & Testing:

  • test - Test implementation, coverage improvements
  • security - Security fixes, vulnerability patches
  • performance - Optimization, profiling, speed improvements

Infrastructure:

  • deploy - CI/CD, release, deployment changes
  • infra - Infrastructure, DevOps, cloud resources
  • migration - Database migrations, data transforms

Knowledge Types:

  • research - Investigation, analysis, exploration

Integration:

  • api - API changes, endpoint modifications
  • integration - Third-party service integration
  • dependency - Package updates, dependency changes

Planning & Tasks:

  • task - Todo item, planned work
  • plan - Implementation plan, roadmap

Manual Memory:

  • note - Manual note or bookmark saved via MCP

Session:

  • session-request - User prompt/request tracking

Impact

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_PROMPT with the full ObservationType definition, similar to the fix being applied to OBSERVATION_SYSTEM_PROMPT (Issue #291).

  • Issue #291 - OBSERVATION_SYSTEM_PROMPT sync issue
## Problem `COMPRESSION_SYSTEM_PROMPT` in `packages/worker/src/handlers/prompts.ts` only lists 6 observation types, but `ObservationType` in `packages/types/src/database.ts` defines 21 types. ## Current State (Line 265-266) ``` <type>one of: bugfix, feature, refactor, change, discovery, decision</type> ``` ## Missing Types The following types from `ObservationType` are not documented in the prompt: **Documentation & Config:** - `docs` - Documentation changes (README, comments, guides) - `config` - Configuration/environment changes **Quality & Testing:** - `test` - Test implementation, coverage improvements - `security` - Security fixes, vulnerability patches - `performance` - Optimization, profiling, speed improvements **Infrastructure:** - `deploy` - CI/CD, release, deployment changes - `infra` - Infrastructure, DevOps, cloud resources - `migration` - Database migrations, data transforms **Knowledge Types:** - `research` - Investigation, analysis, exploration **Integration:** - `api` - API changes, endpoint modifications - `integration` - Third-party service integration - `dependency` - Package updates, dependency changes **Planning & Tasks:** - `task` - Todo item, planned work - `plan` - Implementation plan, roadmap **Manual Memory:** - `note` - Manual note or bookmark saved via MCP **Session:** - `session-request` - User prompt/request tracking ## Impact 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_PROMPT` with the full `ObservationType` definition, similar to the fix being applied to `OBSERVATION_SYSTEM_PROMPT` (Issue #291). ## Related - Issue #291 - OBSERVATION_SYSTEM_PROMPT sync issue
Author
Owner

Fixed in commit 6d0e113

Added all 21 observation types to COMPRESSION_SYSTEM_PROMPT, grouped by category.

Fixed in commit 6d0e113 Added all 21 observation types to COMPRESSION_SYSTEM_PROMPT, grouped by category.
jack closed this issue 2026-01-25 15:57:07 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
customable/claude-mem#293
No description provided.