Decision Record Database Table (mysql/V203__decision_record.sql)

mateclaw · mateclaw-server/src/main/resources/db/migration/mysql/V203__decision_record.sql · sql · Apache-2.0
database, infra, analytics

Stores AI agent decision payloads and policy metadata in MySQL. Use when tracking autonomous agent traces and evaluation metrics.

-- Source: https://github.com/mateaix/mateclaw | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
-- Provided via justclaw.it.com; keep this notice with the code.
-- Decision payloads deliberately exclude facts, evidence, descriptions and error messages.
CREATE TABLE mate_decision_record (
    id VARCHAR(36) PRIMARY KEY,
    decision_type VARCHAR(40) NOT NULL,
    workspace_id BIGINT,
    subject_id BIGINT,
    run_id BIGINT,
    conversation_id VARCHAR(128),
    attempt_id VARCHAR(128),
    phase VARCHAR(80) NOT NULL,
    question_version VARCHAR(80) NOT NULL,
    policy_version VARCHAR(80) NOT NULL,
    mode VARCHAR(16) NOT NULL,
    provider VARCHAR(80) NOT NULL,
    provider_version VARCHAR(80) NOT NULL,
    value_kind VARCHAR(16) NOT NULL,
  

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key