Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
f180b71
feat(spec): add ContextMemory + CreateContextMemory JSON schemas
pmbrull May 18, 2026
9b58623
feat(jdbi3): add ContextMemoryDAO
pmbrull May 18, 2026
7589aec
feat: register contextMemory entity type constant
pmbrull May 18, 2026
8843e5e
feat(service): add ContextMemory repository, resource, mapper
pmbrull May 18, 2026
21f2878
feat(bootstrap): add context_memory table DDL
pmbrull May 18, 2026
79d720d
test(service): ContextMemory resource CRUD test
pmbrull May 18, 2026
f1d79db
fix(context-memory): address review (relationship types, stable FQN, …
pmbrull May 18, 2026
514eaad
test(context-memory): add ContextMemoryIT + SDK ContextMemoryService
pmbrull May 18, 2026
ed50f35
fix(spec): register contextMemory in EntityLink.g4 ENTITY_TYPE grammar
pmbrull May 18, 2026
ba8940b
test(context-memory): override owner ITs for creator-as-owner default
pmbrull May 18, 2026
9afd5f1
Merge branch 'main' into feat/context-memory-entity
pmbrull May 18, 2026
78fd9cb
Update generated TypeScript types
pmbrull May 18, 2026
8485585
fix(context-memory): address review (relationship cleanup, owner scop…
pmbrull May 18, 2026
0f14b9a
fix(context-memory): don't blanket-delete relationships (domain data …
pmbrull May 18, 2026
e7c7d66
chore(bootstrap): move context_memory DDL from 2.0.1 to 2.0.0
pmbrull May 18, 2026
2f7eff4
chore(bootstrap): add ENGINE=InnoDB to context_memory MySQL DDL
pmbrull May 19, 2026
4913d84
Merge branch 'main' into feat/context-memory-entity
pmbrull May 19, 2026
04dad90
fix(context-memory): preserve sanitized/validated fields; validate re…
pmbrull May 19, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions bootstrap/sql/migrations/native/2.0.0/mysql/schemaChanges.sql
Original file line number Diff line number Diff line change
Expand Up @@ -340,3 +340,18 @@ CREATE TABLE IF NOT EXISTS search_index_retry_queue (
KEY idx_search_index_retry_queue_status (status),
KEY idx_search_index_retry_queue_claimed_at (claimedAt)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

-- ContextMemory entity - reusable Context Center memory.
CREATE TABLE IF NOT EXISTS context_memory (
id VARCHAR(36) GENERATED ALWAYS AS (json ->> '$.id') STORED NOT NULL,
name VARCHAR(256) GENERATED ALWAYS AS (json ->> '$.name') STORED NOT NULL,
nameHash VARCHAR(256) NOT NULL COLLATE ascii_bin,
json JSON NOT NULL,
updatedAt BIGINT UNSIGNED GENERATED ALWAYS AS (json ->> '$.updatedAt') STORED NOT NULL,
updatedBy VARCHAR(256) GENERATED ALWAYS AS (json ->> '$.updatedBy') STORED NOT NULL,
deleted BOOLEAN GENERATED ALWAYS AS (json -> '$.deleted') STORED,

PRIMARY KEY (id),
UNIQUE KEY unique_context_memory_name (nameHash),
INDEX idx_context_memory_updated_at (updatedAt)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
Comment thread
pmbrull marked this conversation as resolved.
15 changes: 15 additions & 0 deletions bootstrap/sql/migrations/native/2.0.0/postgres/schemaChanges.sql
Original file line number Diff line number Diff line change
Expand Up @@ -291,3 +291,18 @@ CREATE INDEX IF NOT EXISTS idx_search_index_retry_queue_status
ON search_index_retry_queue (status);
CREATE INDEX IF NOT EXISTS idx_search_index_retry_queue_claimed_at
ON search_index_retry_queue (claimedAt);

-- ContextMemory entity - reusable Context Center memory.
CREATE TABLE IF NOT EXISTS context_memory (
id VARCHAR(36) GENERATED ALWAYS AS (json ->> 'id') STORED NOT NULL,
name VARCHAR(256) GENERATED ALWAYS AS (json ->> 'name') STORED NOT NULL,
nameHash VARCHAR(256) NOT NULL,
json JSONB NOT NULL,
updatedAt BIGINT GENERATED ALWAYS AS ((json ->> 'updatedAt')::bigint) STORED NOT NULL,
updatedBy VARCHAR(256) GENERATED ALWAYS AS (json ->> 'updatedBy') STORED NOT NULL,
deleted BOOLEAN GENERATED ALWAYS AS ((json ->> 'deleted')::boolean) STORED,

PRIMARY KEY (id),
UNIQUE (nameHash)
);
CREATE INDEX IF NOT EXISTS idx_context_memory_updated_at ON context_memory (updatedAt);
Comment thread
pmbrull marked this conversation as resolved.
Loading
Loading