feat: add orchestrator shadow observability

This commit is contained in:
john
2026-07-24 21:44:21 +08:00
parent 24336d0178
commit 3e57f85d3a
18 changed files with 992 additions and 9 deletions
+7
View File
@@ -351,9 +351,16 @@ export async function migrateSchema(pool) {
data_json JSON NULL,
created_at BIGINT NOT NULL,
KEY idx_h5_agent_run_event_run (run_id, created_at),
KEY idx_h5_agent_run_event_type_time (event_type, created_at),
CONSTRAINT fk_h5_agent_run_event_run FOREIGN KEY (run_id) REFERENCES h5_agent_runs(id) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
`);
if (!(await indexExists(pool, 'h5_agent_run_events', 'idx_h5_agent_run_event_type_time'))) {
await pool.query(
`ALTER TABLE h5_agent_run_events
ADD KEY idx_h5_agent_run_event_type_time (event_type, created_at)`,
);
}
// MindSpace conversation packages: additive provenance tables for grouping
// images, files, pages, and publications created during a chat session.