Add Experience V1 schema migration and agent-run completion extractor.
Extend h5_experience with structured fields, wire mindspace-agent-runner and agent-run-gateway to persist task_outcome records with provenance, and add local migration and verification scripts. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+11
@@ -1311,9 +1311,20 @@ CREATE TABLE IF NOT EXISTS h5_experience (
|
||||
source_user_id CHAR(36) NULL,
|
||||
use_count BIGINT NOT NULL DEFAULT 0,
|
||||
embedding JSON NULL,
|
||||
problem VARCHAR(512) NULL,
|
||||
environment_json JSON NULL,
|
||||
hypothesis VARCHAR(512) NULL,
|
||||
action_json JSON NULL,
|
||||
result ENUM('success','partial','failure','unknown') NULL,
|
||||
confidence DECIMAL(4,3) NULL,
|
||||
evidence_json JSON NULL,
|
||||
parent_experience_id CHAR(36) NULL,
|
||||
supersedes_id CHAR(36) NULL,
|
||||
status ENUM('active','archived','deleted') NOT NULL DEFAULT 'active',
|
||||
created_at BIGINT NOT NULL,
|
||||
updated_at BIGINT NOT NULL,
|
||||
KEY idx_h5_experience_scope_updated (scope, updated_at),
|
||||
KEY idx_h5_experience_status_updated (status, updated_at),
|
||||
FULLTEXT KEY ftx_h5_experience (title, body)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user