:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
feat(autoresearch): expose training runs, iterations and models as system tables (#110409)
posthog[bot]54499883f68e
diff --git a/posthog/hogql/database/schema/system.py b/posthog/hogql/database/schema/system.pyindex 903c6ea5e84b..f7fcb2c2121f 100644--- a/posthog/hogql/database/schema/system.py+++ b/posthog/hogql/database/schema/system.py@@ -9,6 +9,7 @@ from posthog.hogql.database.lazy_join_tags import TICKET_ASSIGNMENT, TICKET_TAGSfrom posthog.hogql.database.models import (BooleanDatabaseField,DANGEROUS_NoTeamIdCheckTable,+ DateDatabaseField,DateTimeDatabaseField,DecimalDatabaseField,ExpressionField,@@ -1064,6 +1065,159 @@ autoresearch_pipelines: PostgresTable = PostgresTable(},)+autoresearch_training_runs: PostgresTable = PostgresTable(+ name="autoresearch_training_runs",+ postgres_table_name="autoresearch_autoresearchtrainingrun",+ access_scope="autoresearch",+ description="Autoresearch training runs; one row per bounded agent session that searches for a better model for a pipeline.",+ fields={+ "id": UUIDDatabaseField(name="id", description="Training run UUID."),+ "team_id": IntegerDatabaseField(name="team_id", description="Team the training run belongs to."),+ "pipeline_id": UUIDDatabaseField(+ name="pipeline_id", description="Pipeline the run trains for; joins to autoresearch_pipelines.id."+ ),+ "task_id": UUIDDatabaseField(+ name="task_id", nullable=True, description="Task that runs the agent sandbox; joins to tasks.id."+ ),+ "task_run_id": UUIDDatabaseField(+ name="task_run_id", nullable=True, description="Task run of the agent sandbox; joins to task_runs.id."+ ),+ "status": StringDatabaseField(name="status", description="One of pending, running, completed, failed."),+ "iteration_budget": IntegerDatabaseField(+ name="iteration_budget", description="Maximum iterations the run may record."+ ),+ "iteration_count": IntegerDatabaseField(name="iteration_count", description="Iterations the run recorded."),+ "best_holdout_score": FloatDatabaseField(+ name="best_holdout_score",+ nullable=True,+ description="Best holdout AUC (0 to 1) of the run's iterations (NULL before the first scored iteration).",+ ),+ "error": StringDatabaseField(name="error", description="Failure message; blank when the run did not fail."),+ "summary": StringJSONDatabaseField(+ name="summary",+ description="JSON summary written on completion: champion, kept iterations, dead ends, and next steps.",+ ),+ "started_at": DateTimeDatabaseField(+ name="started_at", nullable=True, description="When the run started (NULL while pending)."+ ),+ "completed_at": DateTimeDatabaseField(+ name="completed_at", nullable=True, description="When the run finished (NULL while it is not finished)."+ ),+ "created_at": DateTimeDatabaseField(name="created_at", description="When the run was created."),+ },+)++autoresearch_iterations: PostgresTable = PostgresTable(+ name="autoresearch_iterations",+ postgres_table_name="autoresearch_autoresearchiteration",+ access_scope="autoresearch",+ description="Autoresearch iterations; one row per model attempt inside a training run.",+ fields={+ "id": UUIDDatabaseField(name="id", description="Iteration UUID."),+ "team_id": IntegerDatabaseField(name="team_id", description="Team the iteration belongs to."),+ "pipeline_id": UUIDDatabaseField(+ name="pipeline_id", description="Pipeline of the iteration; joins to autoresearch_pipelines.id."+ ),+ "training_run_id": UUIDDatabaseField(+ name="training_run_id",+ description="Training run that recorded the iteration; joins to autoresearch_training_runs.id.",+ ),+ "iteration_number": IntegerDatabaseField(+ name="iteration_number", description="Position of the iteration in its training run."+ ),+ "recipe_hash": StringDatabaseField(+ name="recipe_hash", description="SHA-256 of the recipe the iteration tried."+ ),+ "model_spec": StringJSONDatabaseField(+ name="model_spec", description="JSON of the model class and hyperparameters the iteration tried."+ ),+ "train_score": FloatDatabaseField(+ name="train_score", nullable=True, description="Training AUC (0 to 1); NULL when not measured."+ ),+ "holdout_score": FloatDatabaseField(+ name="holdout_score", nullable=True, description="Holdout AUC (0 to 1); NULL when not measured."+ ),+ "status": StringDatabaseField(name="status", description="One of kept, discarded, crashed."),+ "agent_description": StringDatabaseField(+ name="agent_description", description="What the agent changed and why; blank when unset."+ ),+ "agent_confidence": FloatDatabaseField(+ name="agent_confidence",+ nullable=True,+ description="Confidence (0 to 1) the agent gave for the iteration; NULL when unset.",+ ),+ "parent_suggestion_id": UUIDDatabaseField(+ name="parent_suggestion_id",+ nullable=True,+ description="Suggestion that started the iteration (NULL when none).",+ ),+ "created_at": DateTimeDatabaseField(name="created_at", description="When the iteration was recorded."),+ },+)++autoresearch_models: PostgresTable = PostgresTable(+ name="autoresearch_models",+ postgres_table_name="autoresearch_autoresearchmodel",+ access_scope="autoresearch",+ description="Autoresearch models; one row per trained model of a pipeline, with role champion, challenger, or archived.",+ fields={+ "id": UUIDDatabaseField(name="id", description="Model UUID."),+ "team_id": IntegerDatabaseField(name="team_id", description="Team the model belongs to."),+ "pipeline_id": UUIDDatabaseField(+ name="pipeline_id", description="Pipeline of the model; joins to autoresearch_pipelines.id."+ ),+ "role": StringDatabaseField(name="role", description="One of champion, challenger, archived."),+ "recipe_hash": StringDatabaseField(name="recipe_hash", description="SHA-256 of the model's recipe."),+ "holdout_score": FloatDatabaseField(+ name="holdout_score", nullable=True, description="Offline holdout AUC (0 to 1); NULL when not measured."+ ),+ "realized_score": FloatDatabaseField(+ name="realized_score",+ nullable=True,+ description="AUC (0 to 1) against real outcomes once labels mature; NULL until then.",+ ),+ "calibration_error": FloatDatabaseField(+ name="calibration_error", nullable=True, description="Calibration error; NULL when not measured."+ ),+ "metrics": StringJSONDatabaseField(+ name="metrics", description="JSON bundle of train, holdout, and realized metrics."+ ),+ "model_explanation": StringJSONDatabaseField(+ name="model_explanation",+ description="JSON of feature importance, direction, stability, and leakage warnings.",+ ),+ "negative_sample_rate": FloatDatabaseField(+ name="negative_sample_rate",+ description="Fraction of negative training rows the fit kept; 1.0 means no sampling.",+ ),+ "source_training_run_id": UUIDDatabaseField(+ name="source_training_run_id",+ nullable=True,+ description="Training run that produced the model; joins to autoresearch_training_runs.id.",+ ),+ "agent_description": StringDatabaseField(+ name="agent_description", description="Agent description of the model; blank when unset."+ ),+ "trained_on_start": DateDatabaseField(+ name="trained_on_start", nullable=True, description="First day of the training data (NULL when unset)."+ ),+ "trained_on_end": DateDatabaseField(+ name="trained_on_end", nullable=True, description="Last day of the training data (NULL when unset)."+ ),+ "is_preliminary": BooleanDatabaseField(+ name="is_preliminary", description="True until at least one realized validation cycle completes."+ ),+ "promoted_at": DateTimeDatabaseField(+ name="promoted_at", nullable=True, description="When the model became champion (NULL when never)."+ ),+ "archived_at": DateTimeDatabaseField(+ name="archived_at", nullable=True, description="When the model was archived (NULL when not archived)."+ ),+ "created_at": DateTimeDatabaseField(name="created_at", description="When the model was created."),+ "updated_at": DateTimeDatabaseField(name="updated_at", description="When the model was last modified."),+ },+)+group_type_mappings: PostgresTable = PostgresTable(name="group_type_mappings",postgres_table_name="posthog_grouptypemapping",@@ -3156,6 +3310,9 @@ class SystemTables(TableNode):"tags": TableNode(name="tags", table=tags),"tasks": TableNode(name="tasks", table=tasks),"autoresearch_pipelines": TableNode(name="autoresearch_pipelines", table=autoresearch_pipelines),+ "autoresearch_training_runs": TableNode(name="autoresearch_training_runs", table=autoresearch_training_runs),+ "autoresearch_iterations": TableNode(name="autoresearch_iterations", table=autoresearch_iterations),+ "autoresearch_models": TableNode(name="autoresearch_models", table=autoresearch_models),"teams": TableNode(name="teams", table=teams),"trace_review_scores": TableNode(name="trace_review_scores", table=trace_review_scores),"trace_reviews": TableNode(name="trace_reviews", table=trace_reviews),diff --git a/posthog/hogql/database/schema/test/test_system_tables.py b/posthog/hogql/database/schema/test/test_system_tables.pyindex 8ce011fd16b3..cb80838bd34b 100644--- a/posthog/hogql/database/schema/test/test_system_tables.py+++ b/posthog/hogql/database/schema/test/test_system_tables.py@@ -350,6 +350,21 @@ def _create_autoresearch_pipeline(team: Team, label: str) -> SimpleNamespace:return SimpleNamespace(pk=autoresearch_testing.create_pipeline(team_id=team.pk, name=f"pipeline_{label}"))+def _create_autoresearch_training_run(team: Team, label: str) -> SimpleNamespace:+ pipeline = _create_autoresearch_pipeline(team, label)+ return SimpleNamespace(pk=autoresearch_testing.create_training_run(pipeline_id=pipeline.pk))+++def _create_autoresearch_iteration(team: Team, label: str) -> SimpleNamespace:+ training_run = _create_autoresearch_training_run(team, label)+ return SimpleNamespace(pk=autoresearch_testing.create_iteration(training_run_id=training_run.pk))+++def _create_autoresearch_model(team: Team, label: str) -> SimpleNamespace:+ pipeline = _create_autoresearch_pipeline(team, label)+ return SimpleNamespace(pk=autoresearch_testing.create_model(pipeline_id=pipeline.pk))++def _create_cohort_calculation_history(team: Team, label: str) -> CohortCalculationHistory:cohort = Cohort.objects.create(team=team, name=f"cohort_for_calc_{label}")return CohortCalculationHistory.objects.create(team=team, cohort=cohort, filters={})@@ -935,7 +950,10 @@ SYSTEM_TABLE_FACTORIES = [("actions", _create_action),("alerts", _create_alert),("annotations", _create_annotation),+ ("autoresearch_iterations", _create_autoresearch_iteration),+ ("autoresearch_models", _create_autoresearch_model),("autoresearch_pipelines", _create_autoresearch_pipeline),+ ("autoresearch_training_runs", _create_autoresearch_training_run),("batch_export_backfills", _create_batch_export_backfill),("batch_export_on_demands", _create_batch_export_on_demand),("batch_export_runs", _create_batch_export_run),diff --git a/posthog/hogql/database/test/__snapshots__/test_database.ambr b/posthog/hogql/database/test/__snapshots__/test_database.ambrindex f4a9a4b67e19..2232c18cef30 100644--- a/posthog/hogql/database/test/__snapshots__/test_database.ambr+++ b/posthog/hogql/database/test/__snapshots__/test_database.ambr@@ -12209,7 +12209,7 @@"row_count": null,"type": "system"},- "system.teams": {+ "system.autoresearch_training_runs": {"certification": null,"fields": {"id": {@@ -12220,65 +12220,135 @@"name": "id","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "name": {+ "pipeline_id": {"chain": null,"fields": null,- "hogql_value": "name",+ "hogql_value": "pipeline_id","id": null,- "name": "name",+ "name": "pipeline_id","schema_valid": true,"table": null,"type": "string"},- "timezone": {+ "task_id": {"chain": null,"fields": null,- "hogql_value": "timezone",+ "hogql_value": "task_id","id": null,- "name": "timezone",+ "name": "task_id","schema_valid": true,"table": null,"type": "string"},- "test_account_filters": {+ "task_run_id": {"chain": null,"fields": null,- "hogql_value": "test_account_filters",+ "hogql_value": "task_run_id","id": null,- "name": "test_account_filters",+ "name": "task_run_id",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "status": {+ "chain": null,+ "fields": null,+ "hogql_value": "status",+ "id": null,+ "name": "status",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "iteration_budget": {+ "chain": null,+ "fields": null,+ "hogql_value": "iteration_budget",+ "id": null,+ "name": "iteration_budget",+ "schema_valid": true,+ "table": null,+ "type": "integer"+ },+ "iteration_count": {+ "chain": null,+ "fields": null,+ "hogql_value": "iteration_count",+ "id": null,+ "name": "iteration_count",+ "schema_valid": true,+ "table": null,+ "type": "integer"+ },+ "best_holdout_score": {+ "chain": null,+ "fields": null,+ "hogql_value": "best_holdout_score",+ "id": null,+ "name": "best_holdout_score",+ "schema_valid": true,+ "table": null,+ "type": "float"+ },+ "error": {+ "chain": null,+ "fields": null,+ "hogql_value": "error",+ "id": null,+ "name": "error",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "summary": {+ "chain": null,+ "fields": null,+ "hogql_value": "summary",+ "id": null,+ "name": "summary","schema_valid": true,"table": null,"type": "json"},- "created_at": {+ "started_at": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "started_at","id": null,- "name": "created_at",+ "name": "started_at","schema_valid": true,"table": null,"type": "datetime"},- "updated_at": {+ "completed_at": {"chain": null,"fields": null,- "hogql_value": "updated_at",+ "hogql_value": "completed_at","id": null,- "name": "updated_at",+ "name": "completed_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ },+ "created_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "created_at",+ "id": null,+ "name": "created_at","schema_valid": true,"table": null,"type": "datetime"}},- "id": "system.teams",- "name": "system.teams",+ "id": "system.autoresearch_training_runs",+ "name": "system.autoresearch_training_runs","row_count": null,"type": "system"},- "system.trace_review_scores": {+ "system.autoresearch_iterations": {"certification": null,"fields": {"id": {@@ -12291,123 +12361,133 @@"table": null,"type": "string"},- "review_id": {+ "pipeline_id": {"chain": null,"fields": null,- "hogql_value": "review_id",+ "hogql_value": "pipeline_id","id": null,- "name": "review_id",+ "name": "pipeline_id","schema_valid": true,"table": null,"type": "string"},- "definition_id": {+ "training_run_id": {"chain": null,"fields": null,- "hogql_value": "definition_id",+ "hogql_value": "training_run_id","id": null,- "name": "definition_id",+ "name": "training_run_id","schema_valid": true,"table": null,"type": "string"},- "definition_version": {+ "iteration_number": {"chain": null,"fields": null,- "hogql_value": "definition_version",+ "hogql_value": "iteration_number","id": null,- "name": "definition_version",+ "name": "iteration_number","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "definition_version_number": {+ "recipe_hash": {"chain": null,"fields": null,- "hogql_value": "definition_version_number",+ "hogql_value": "recipe_hash","id": null,- "name": "definition_version_number",+ "name": "recipe_hash","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "definition_config": {+ "model_spec": {"chain": null,"fields": null,- "hogql_value": "definition_config",+ "hogql_value": "model_spec","id": null,- "name": "definition_config",+ "name": "model_spec","schema_valid": true,"table": null,"type": "json"},- "categorical_values": {+ "train_score": {"chain": null,"fields": null,- "hogql_value": "categorical_values",+ "hogql_value": "train_score","id": null,- "name": "categorical_values",+ "name": "train_score","schema_valid": true,"table": null,- "type": "array"+ "type": "float"},- "numeric_value": {+ "holdout_score": {"chain": null,"fields": null,- "hogql_value": "numeric_value",+ "hogql_value": "holdout_score","id": null,- "name": "numeric_value",+ "name": "holdout_score","schema_valid": true,"table": null,- "type": "decimal"+ "type": "float"},- "boolean_value": {+ "status": {"chain": null,"fields": null,- "hogql_value": "boolean_value",+ "hogql_value": "status","id": null,- "name": "boolean_value",+ "name": "status","schema_valid": true,"table": null,- "type": "boolean"+ "type": "string"},- "created_by_id": {+ "agent_description": {"chain": null,"fields": null,- "hogql_value": "created_by_id",+ "hogql_value": "agent_description","id": null,- "name": "created_by_id",+ "name": "agent_description","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "created_at": {+ "agent_confidence": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "agent_confidence","id": null,- "name": "created_at",+ "name": "agent_confidence","schema_valid": true,"table": null,- "type": "datetime"+ "type": "float"},- "updated_at": {+ "parent_suggestion_id": {"chain": null,"fields": null,- "hogql_value": "updated_at",+ "hogql_value": "parent_suggestion_id","id": null,- "name": "updated_at",+ "name": "parent_suggestion_id",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "created_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "created_at",+ "id": null,+ "name": "created_at","schema_valid": true,"table": null,"type": "datetime"}},- "id": "system.trace_review_scores",- "name": "system.trace_review_scores",+ "id": "system.autoresearch_iterations",+ "name": "system.autoresearch_iterations","row_count": null,"type": "system"},- "system.trace_reviews": {+ "system.autoresearch_models": {"certification": null,"fields": {"id": {@@ -12420,174 +12500,571 @@"table": null,"type": "string"},- "trace_id": {+ "pipeline_id": {"chain": null,"fields": null,- "hogql_value": "trace_id",+ "hogql_value": "pipeline_id","id": null,- "name": "trace_id",+ "name": "pipeline_id","schema_valid": true,"table": null,"type": "string"},- "created_by_id": {+ "role": {"chain": null,"fields": null,- "hogql_value": "created_by_id",+ "hogql_value": "role","id": null,- "name": "created_by_id",+ "name": "role","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "reviewed_by_id": {+ "recipe_hash": {"chain": null,"fields": null,- "hogql_value": "reviewed_by_id",+ "hogql_value": "recipe_hash","id": null,- "name": "reviewed_by_id",+ "name": "recipe_hash","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "comment": {+ "holdout_score": {"chain": null,"fields": null,- "hogql_value": "comment",+ "hogql_value": "holdout_score","id": null,- "name": "comment",+ "name": "holdout_score","schema_valid": true,"table": null,- "type": "string"+ "type": "float"},- "created_at": {+ "realized_score": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "realized_score","id": null,- "name": "created_at",+ "name": "realized_score","schema_valid": true,"table": null,- "type": "datetime"+ "type": "float"},- "updated_at": {+ "calibration_error": {"chain": null,"fields": null,- "hogql_value": "updated_at",+ "hogql_value": "calibration_error","id": null,- "name": "updated_at",+ "name": "calibration_error","schema_valid": true,"table": null,- "type": "datetime"+ "type": "float"},- "deleted": {+ "metrics": {"chain": null,"fields": null,- "hogql_value": "deleted",+ "hogql_value": "metrics","id": null,- "name": "deleted",+ "name": "metrics","schema_valid": true,"table": null,- "type": "integer"+ "type": "json"},- "deleted_at": {+ "model_explanation": {"chain": null,"fields": null,- "hogql_value": "deleted_at",+ "hogql_value": "model_explanation","id": null,- "name": "deleted_at",+ "name": "model_explanation","schema_valid": true,"table": null,- "type": "datetime"- }- },- "id": "system.trace_reviews",- "name": "system.trace_reviews",- "row_count": null,- "type": "system"- },- "system.usage_metrics": {- "certification": null,- "fields": {- "id": {+ "type": "json"+ },+ "negative_sample_rate": {"chain": null,"fields": null,- "hogql_value": "id",+ "hogql_value": "negative_sample_rate","id": null,- "name": "id",+ "name": "negative_sample_rate","schema_valid": true,"table": null,- "type": "string"+ "type": "float"},- "group_type_index": {+ "source_training_run_id": {"chain": null,"fields": null,- "hogql_value": "group_type_index",+ "hogql_value": "source_training_run_id","id": null,- "name": "group_type_index",+ "name": "source_training_run_id","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "name": {+ "agent_description": {"chain": null,"fields": null,- "hogql_value": "name",+ "hogql_value": "agent_description","id": null,- "name": "name",+ "name": "agent_description","schema_valid": true,"table": null,"type": "string"},- "format": {+ "trained_on_start": {"chain": null,"fields": null,- "hogql_value": "format",+ "hogql_value": "trained_on_start","id": null,- "name": "format",+ "name": "trained_on_start","schema_valid": true,"table": null,- "type": "string"+ "type": "date"},- "interval": {+ "trained_on_end": {"chain": null,"fields": null,- "hogql_value": "interval",+ "hogql_value": "trained_on_end","id": null,- "name": "interval",+ "name": "trained_on_end","schema_valid": true,"table": null,- "type": "integer"+ "type": "date"},- "display": {+ "is_preliminary": {"chain": null,"fields": null,- "hogql_value": "display",+ "hogql_value": "is_preliminary","id": null,- "name": "display",+ "name": "is_preliminary","schema_valid": true,"table": null,- "type": "string"+ "type": "boolean"},- "filters": {+ "promoted_at": {"chain": null,"fields": null,- "hogql_value": "filters",+ "hogql_value": "promoted_at","id": null,- "name": "filters",+ "name": "promoted_at","schema_valid": true,"table": null,- "type": "json"+ "type": "datetime"},- "math": {+ "archived_at": {"chain": null,"fields": null,- "hogql_value": "math",+ "hogql_value": "archived_at","id": null,- "name": "math",+ "name": "archived_at","schema_valid": true,"table": null,- "type": "string"+ "type": "datetime"+ },+ "created_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "created_at",+ "id": null,+ "name": "created_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ },+ "updated_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "updated_at",+ "id": null,+ "name": "updated_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ }+ },+ "id": "system.autoresearch_models",+ "name": "system.autoresearch_models",+ "row_count": null,+ "type": "system"+ },+ "system.teams": {+ "certification": null,+ "fields": {+ "id": {+ "chain": null,+ "fields": null,+ "hogql_value": "id",+ "id": null,+ "name": "id",+ "schema_valid": true,+ "table": null,+ "type": "integer"+ },+ "name": {+ "chain": null,+ "fields": null,+ "hogql_value": "name",+ "id": null,+ "name": "name",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "timezone": {+ "chain": null,+ "fields": null,+ "hogql_value": "timezone",+ "id": null,+ "name": "timezone",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "test_account_filters": {+ "chain": null,+ "fields": null,+ "hogql_value": "test_account_filters",+ "id": null,+ "name": "test_account_filters",+ "schema_valid": true,+ "table": null,+ "type": "json"+ },+ "created_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "created_at",+ "id": null,+ "name": "created_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ },+ "updated_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "updated_at",+ "id": null,+ "name": "updated_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ }+ },+ "id": "system.teams",+ "name": "system.teams",+ "row_count": null,+ "type": "system"+ },+ "system.trace_review_scores": {+ "certification": null,+ "fields": {+ "id": {+ "chain": null,+ "fields": null,+ "hogql_value": "id",+ "id": null,+ "name": "id",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "review_id": {+ "chain": null,+ "fields": null,+ "hogql_value": "review_id",+ "id": null,+ "name": "review_id",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "definition_id": {+ "chain": null,+ "fields": null,+ "hogql_value": "definition_id",+ "id": null,+ "name": "definition_id",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "definition_version": {+ "chain": null,+ "fields": null,+ "hogql_value": "definition_version",+ "id": null,+ "name": "definition_version",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "definition_version_number": {+ "chain": null,+ "fields": null,+ "hogql_value": "definition_version_number",+ "id": null,+ "name": "definition_version_number",+ "schema_valid": true,+ "table": null,+ "type": "integer"+ },+ "definition_config": {+ "chain": null,+ "fields": null,+ "hogql_value": "definition_config",+ "id": null,+ "name": "definition_config",+ "schema_valid": true,+ "table": null,+ "type": "json"+ },+ "categorical_values": {+ "chain": null,+ "fields": null,+ "hogql_value": "categorical_values",+ "id": null,+ "name": "categorical_values",+ "schema_valid": true,+ "table": null,+ "type": "array"+ },+ "numeric_value": {+ "chain": null,+ "fields": null,+ "hogql_value": "numeric_value",+ "id": null,+ "name": "numeric_value",+ "schema_valid": true,+ "table": null,+ "type": "decimal"+ },+ "boolean_value": {+ "chain": null,+ "fields": null,+ "hogql_value": "boolean_value",+ "id": null,+ "name": "boolean_value",+ "schema_valid": true,+ "table": null,+ "type": "boolean"+ },+ "created_by_id": {+ "chain": null,+ "fields": null,+ "hogql_value": "created_by_id",+ "id": null,+ "name": "created_by_id",+ "schema_valid": true,+ "table": null,+ "type": "integer"+ },+ "created_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "created_at",+ "id": null,+ "name": "created_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ },+ "updated_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "updated_at",+ "id": null,+ "name": "updated_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ }+ },+ "id": "system.trace_review_scores",+ "name": "system.trace_review_scores",+ "row_count": null,+ "type": "system"+ },+ "system.trace_reviews": {+ "certification": null,+ "fields": {+ "id": {+ "chain": null,+ "fields": null,+ "hogql_value": "id",+ "id": null,+ "name": "id",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "trace_id": {+ "chain": null,+ "fields": null,+ "hogql_value": "trace_id",+ "id": null,+ "name": "trace_id",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "created_by_id": {+ "chain": null,+ "fields": null,+ "hogql_value": "created_by_id",+ "id": null,+ "name": "created_by_id",+ "schema_valid": true,+ "table": null,+ "type": "integer"+ },+ "reviewed_by_id": {+ "chain": null,+ "fields": null,+ "hogql_value": "reviewed_by_id",+ "id": null,+ "name": "reviewed_by_id",+ "schema_valid": true,+ "table": null,+ "type": "integer"+ },+ "comment": {+ "chain": null,+ "fields": null,+ "hogql_value": "comment",+ "id": null,+ "name": "comment",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "created_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "created_at",+ "id": null,+ "name": "created_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ },+ "updated_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "updated_at",+ "id": null,+ "name": "updated_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ },+ "deleted": {+ "chain": null,+ "fields": null,+ "hogql_value": "deleted",+ "id": null,+ "name": "deleted",+ "schema_valid": true,+ "table": null,+ "type": "integer"+ },+ "deleted_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "deleted_at",+ "id": null,+ "name": "deleted_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ }+ },+ "id": "system.trace_reviews",+ "name": "system.trace_reviews",+ "row_count": null,+ "type": "system"+ },+ "system.usage_metrics": {+ "certification": null,+ "fields": {+ "id": {+ "chain": null,+ "fields": null,+ "hogql_value": "id",+ "id": null,+ "name": "id",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "group_type_index": {+ "chain": null,+ "fields": null,+ "hogql_value": "group_type_index",+ "id": null,+ "name": "group_type_index",+ "schema_valid": true,+ "table": null,+ "type": "integer"+ },+ "name": {+ "chain": null,+ "fields": null,+ "hogql_value": "name",+ "id": null,+ "name": "name",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "format": {+ "chain": null,+ "fields": null,+ "hogql_value": "format",+ "id": null,+ "name": "format",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "interval": {+ "chain": null,+ "fields": null,+ "hogql_value": "interval",+ "id": null,+ "name": "interval",+ "schema_valid": true,+ "table": null,+ "type": "integer"+ },+ "display": {+ "chain": null,+ "fields": null,+ "hogql_value": "display",+ "id": null,+ "name": "display",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "filters": {+ "chain": null,+ "fields": null,+ "hogql_value": "filters",+ "id": null,+ "name": "filters",+ "schema_valid": true,+ "table": null,+ "type": "json"+ },+ "math": {+ "chain": null,+ "fields": null,+ "hogql_value": "math",+ "id": null,+ "name": "math",+ "schema_valid": true,+ "table": null,+ "type": "string"},"math_property": {"chain": null,@@ -21317,12 +21794,259 @@"type": "datetime"}},- "id": "system.ingestion_warnings",- "name": "system.ingestion_warnings",+ "id": "system.ingestion_warnings",+ "name": "system.ingestion_warnings",+ "row_count": null,+ "type": "system"+ },+ "system.integrations": {+ "certification": null,+ "fields": {+ "id": {+ "chain": null,+ "fields": null,+ "hogql_value": "id",+ "id": null,+ "name": "id",+ "schema_valid": true,+ "table": null,+ "type": "integer"+ },+ "kind": {+ "chain": null,+ "fields": null,+ "hogql_value": "kind",+ "id": null,+ "name": "kind",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "integration_id": {+ "chain": null,+ "fields": null,+ "hogql_value": "integration_id",+ "id": null,+ "name": "integration_id",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "config": {+ "chain": null,+ "fields": null,+ "hogql_value": "config",+ "id": null,+ "name": "config",+ "schema_valid": true,+ "table": null,+ "type": "json"+ },+ "errors": {+ "chain": null,+ "fields": null,+ "hogql_value": "errors",+ "id": null,+ "name": "errors",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "created_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "created_at",+ "id": null,+ "name": "created_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ },+ "created_by_id": {+ "chain": null,+ "fields": null,+ "hogql_value": "created_by_id",+ "id": null,+ "name": "created_by_id",+ "schema_valid": true,+ "table": null,+ "type": "integer"+ }+ },+ "id": "system.integrations",+ "name": "system.integrations",+ "row_count": null,+ "type": "system"+ },+ "system.message_categories": {+ "certification": null,+ "fields": {+ "id": {+ "chain": null,+ "fields": null,+ "hogql_value": "id",+ "id": null,+ "name": "id",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "key": {+ "chain": null,+ "fields": null,+ "hogql_value": "key",+ "id": null,+ "name": "key",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "name": {+ "chain": null,+ "fields": null,+ "hogql_value": "name",+ "id": null,+ "name": "name",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "description": {+ "chain": null,+ "fields": null,+ "hogql_value": "description",+ "id": null,+ "name": "description",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "public_description": {+ "chain": null,+ "fields": null,+ "hogql_value": "public_description",+ "id": null,+ "name": "public_description",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "category_type": {+ "chain": null,+ "fields": null,+ "hogql_value": "category_type",+ "id": null,+ "name": "category_type",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "deleted": {+ "chain": null,+ "fields": null,+ "hogql_value": "deleted",+ "id": null,+ "name": "deleted",+ "schema_valid": true,+ "table": null,+ "type": "integer"+ },+ "created_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "created_at",+ "id": null,+ "name": "created_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ },+ "updated_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "updated_at",+ "id": null,+ "name": "updated_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ }+ },+ "id": "system.message_categories",+ "name": "system.message_categories",+ "row_count": null,+ "type": "system"+ },+ "system.message_recipient_preferences": {+ "certification": null,+ "fields": {+ "id": {+ "chain": null,+ "fields": null,+ "hogql_value": "id",+ "id": null,+ "name": "id",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "identifier": {+ "chain": null,+ "fields": null,+ "hogql_value": "identifier",+ "id": null,+ "name": "identifier",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "preferences": {+ "chain": null,+ "fields": null,+ "hogql_value": "preferences",+ "id": null,+ "name": "preferences",+ "schema_valid": true,+ "table": null,+ "type": "json"+ },+ "deleted": {+ "chain": null,+ "fields": null,+ "hogql_value": "deleted",+ "id": null,+ "name": "deleted",+ "schema_valid": true,+ "table": null,+ "type": "integer"+ },+ "created_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "created_at",+ "id": null,+ "name": "created_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ },+ "updated_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "updated_at",+ "id": null,+ "name": "updated_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ }+ },+ "id": "system.message_recipient_preferences",+ "name": "system.message_recipient_preferences","row_count": null,"type": "system"},- "system.integrations": {+ "system.integration_repository_cache": {"certification": null,"fields": {"id": {@@ -21333,16 +22057,6 @@"name": "id","schema_valid": true,"table": null,- "type": "integer"- },- "kind": {- "chain": null,- "fields": null,- "hogql_value": "kind",- "id": null,- "name": "kind",- "schema_valid": true,- "table": null,"type": "string"},"integration_id": {@@ -21353,136 +22067,127 @@"name": "integration_id","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "config": {+ "user_integration_id": {"chain": null,"fields": null,- "hogql_value": "config",+ "hogql_value": "user_integration_id","id": null,- "name": "config",+ "name": "user_integration_id","schema_valid": true,"table": null,- "type": "json"+ "type": "integer"},- "errors": {+ "full_name": {"chain": null,"fields": null,- "hogql_value": "errors",+ "hogql_value": "full_name","id": null,- "name": "errors",+ "name": "full_name","schema_valid": true,"table": null,"type": "string"},- "created_at": {+ "description": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "description","id": null,- "name": "created_at",+ "name": "description","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"},- "created_by_id": {+ "topics": {"chain": null,"fields": null,- "hogql_value": "created_by_id",+ "hogql_value": "topics","id": null,- "name": "created_by_id",+ "name": "topics","schema_valid": true,"table": null,- "type": "integer"- }- },- "id": "system.integrations",- "name": "system.integrations",- "row_count": null,- "type": "system"- },- "system.message_categories": {- "certification": null,- "fields": {- "id": {+ "type": "json"+ },+ "archived": {"chain": null,"fields": null,- "hogql_value": "id",+ "hogql_value": "archived","id": null,- "name": "id",+ "name": "archived","schema_valid": true,"table": null,- "type": "string"+ "type": "boolean"},- "key": {+ "fork": {"chain": null,"fields": null,- "hogql_value": "key",+ "hogql_value": "fork","id": null,- "name": "key",+ "name": "fork","schema_valid": true,"table": null,- "type": "string"+ "type": "boolean"},- "name": {+ "primary_language": {"chain": null,"fields": null,- "hogql_value": "name",+ "hogql_value": "primary_language","id": null,- "name": "name",+ "name": "primary_language","schema_valid": true,"table": null,"type": "string"},- "description": {+ "default_branch": {"chain": null,"fields": null,- "hogql_value": "description",+ "hogql_value": "default_branch","id": null,- "name": "description",+ "name": "default_branch","schema_valid": true,"table": null,"type": "string"},- "public_description": {+ "default_branch_sha": {"chain": null,"fields": null,- "hogql_value": "public_description",+ "hogql_value": "default_branch_sha","id": null,- "name": "public_description",+ "name": "default_branch_sha","schema_valid": true,"table": null,"type": "string"},- "category_type": {+ "readme": {"chain": null,"fields": null,- "hogql_value": "category_type",+ "hogql_value": "readme","id": null,- "name": "category_type",+ "name": "readme","schema_valid": true,"table": null,"type": "string"},- "deleted": {+ "tree_paths": {"chain": null,"fields": null,- "hogql_value": "deleted",+ "hogql_value": "tree_paths","id": null,- "name": "deleted",+ "name": "tree_paths","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "created_at": {+ "tree_truncated": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "tree_truncated","id": null,- "name": "created_at",+ "name": "tree_truncated","schema_valid": true,"table": null,- "type": "datetime"+ "type": "boolean"},"updated_at": {"chain": null,@@ -21495,12 +22200,12 @@"type": "datetime"}},- "id": "system.message_categories",- "name": "system.message_categories",+ "id": "system.integration_repository_cache",+ "name": "system.integration_repository_cache","row_count": null,"type": "system"},- "system.message_recipient_preferences": {+ "system.insight_variables": {"certification": null,"fields": {"id": {@@ -21513,63 +22218,63 @@"table": null,"type": "string"},- "identifier": {+ "name": {"chain": null,"fields": null,- "hogql_value": "identifier",+ "hogql_value": "name","id": null,- "name": "identifier",+ "name": "name","schema_valid": true,"table": null,"type": "string"},- "preferences": {+ "type": {"chain": null,"fields": null,- "hogql_value": "preferences",+ "hogql_value": "type","id": null,- "name": "preferences",+ "name": "type","schema_valid": true,"table": null,- "type": "json"+ "type": "string"},- "deleted": {+ "code_name": {"chain": null,"fields": null,- "hogql_value": "deleted",+ "hogql_value": "code_name","id": null,- "name": "deleted",+ "name": "code_name","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "created_at": {+ "values": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "values","id": null,- "name": "created_at",+ "name": "values","schema_valid": true,"table": null,- "type": "datetime"+ "type": "json"},- "updated_at": {+ "default_value": {"chain": null,"fields": null,- "hogql_value": "updated_at",+ "hogql_value": "default_value","id": null,- "name": "updated_at",+ "name": "default_value","schema_valid": true,"table": null,- "type": "datetime"+ "type": "json"}},- "id": "system.message_recipient_preferences",- "name": "system.message_recipient_preferences",+ "id": "system.insight_variables",+ "name": "system.insight_variables","row_count": null,"type": "system"},- "system.integration_repository_cache": {+ "system.logs_alerts": {"certification": null,"fields": {"id": {@@ -21582,135 +22287,175 @@"table": null,"type": "string"},- "integration_id": {+ "name": {"chain": null,"fields": null,- "hogql_value": "integration_id",+ "hogql_value": "name","id": null,- "name": "integration_id",+ "name": "name",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "enabled": {+ "chain": null,+ "fields": null,+ "hogql_value": "enabled",+ "id": null,+ "name": "enabled","schema_valid": true,"table": null,"type": "integer"},- "user_integration_id": {+ "filters": {"chain": null,"fields": null,- "hogql_value": "user_integration_id",+ "hogql_value": "filters","id": null,- "name": "user_integration_id",+ "name": "filters",+ "schema_valid": true,+ "table": null,+ "type": "json"+ },+ "threshold_count": {+ "chain": null,+ "fields": null,+ "hogql_value": "threshold_count",+ "id": null,+ "name": "threshold_count","schema_valid": true,"table": null,"type": "integer"},- "full_name": {+ "threshold_operator": {"chain": null,"fields": null,- "hogql_value": "full_name",+ "hogql_value": "threshold_operator","id": null,- "name": "full_name",+ "name": "threshold_operator","schema_valid": true,"table": null,"type": "string"},- "description": {+ "window_minutes": {"chain": null,"fields": null,- "hogql_value": "description",+ "hogql_value": "window_minutes","id": null,- "name": "description",+ "name": "window_minutes",+ "schema_valid": true,+ "table": null,+ "type": "integer"+ },+ "check_interval_minutes": {+ "chain": null,+ "fields": null,+ "hogql_value": "check_interval_minutes",+ "id": null,+ "name": "check_interval_minutes",+ "schema_valid": true,+ "table": null,+ "type": "integer"+ },+ "state": {+ "chain": null,+ "fields": null,+ "hogql_value": "state",+ "id": null,+ "name": "state","schema_valid": true,"table": null,"type": "string"},- "topics": {+ "evaluation_periods": {"chain": null,"fields": null,- "hogql_value": "topics",+ "hogql_value": "evaluation_periods","id": null,- "name": "topics",+ "name": "evaluation_periods","schema_valid": true,"table": null,- "type": "json"+ "type": "integer"},- "archived": {+ "datapoints_to_alarm": {"chain": null,"fields": null,- "hogql_value": "archived",+ "hogql_value": "datapoints_to_alarm","id": null,- "name": "archived",+ "name": "datapoints_to_alarm","schema_valid": true,"table": null,- "type": "boolean"+ "type": "integer"},- "fork": {+ "cooldown_minutes": {"chain": null,"fields": null,- "hogql_value": "fork",+ "hogql_value": "cooldown_minutes","id": null,- "name": "fork",+ "name": "cooldown_minutes","schema_valid": true,"table": null,- "type": "boolean"+ "type": "integer"},- "primary_language": {+ "snooze_until": {"chain": null,"fields": null,- "hogql_value": "primary_language",+ "hogql_value": "snooze_until","id": null,- "name": "primary_language",+ "name": "snooze_until","schema_valid": true,"table": null,- "type": "string"+ "type": "datetime"},- "default_branch": {+ "next_check_at": {"chain": null,"fields": null,- "hogql_value": "default_branch",+ "hogql_value": "next_check_at","id": null,- "name": "default_branch",+ "name": "next_check_at","schema_valid": true,"table": null,- "type": "string"+ "type": "datetime"},- "default_branch_sha": {+ "last_notified_at": {"chain": null,"fields": null,- "hogql_value": "default_branch_sha",+ "hogql_value": "last_notified_at","id": null,- "name": "default_branch_sha",+ "name": "last_notified_at","schema_valid": true,"table": null,- "type": "string"+ "type": "datetime"},- "readme": {+ "last_checked_at": {"chain": null,"fields": null,- "hogql_value": "readme",+ "hogql_value": "last_checked_at","id": null,- "name": "readme",+ "name": "last_checked_at","schema_valid": true,"table": null,- "type": "string"+ "type": "datetime"},- "tree_paths": {+ "consecutive_failures": {"chain": null,"fields": null,- "hogql_value": "tree_paths",+ "hogql_value": "consecutive_failures","id": null,- "name": "tree_paths",+ "name": "consecutive_failures","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "tree_truncated": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "tree_truncated",+ "hogql_value": "created_at","id": null,- "name": "tree_truncated",+ "name": "created_at","schema_valid": true,"table": null,- "type": "boolean"+ "type": "datetime"},"updated_at": {"chain": null,@@ -21723,12 +22468,12 @@"type": "datetime"}},- "id": "system.integration_repository_cache",- "name": "system.integration_repository_cache",+ "id": "system.logs_alerts",+ "name": "system.logs_alerts","row_count": null,"type": "system"},- "system.insight_variables": {+ "system.logs_views": {"certification": null,"fields": {"id": {@@ -21741,6 +22486,16 @@"table": null,"type": "string"},+ "short_id": {+ "chain": null,+ "fields": null,+ "hogql_value": "short_id",+ "id": null,+ "name": "short_id",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },"name": {"chain": null,"fields": null,@@ -21751,53 +22506,53 @@"table": null,"type": "string"},- "type": {+ "filters": {"chain": null,"fields": null,- "hogql_value": "type",+ "hogql_value": "filters","id": null,- "name": "type",+ "name": "filters","schema_valid": true,"table": null,- "type": "string"+ "type": "json"},- "code_name": {+ "pinned": {"chain": null,"fields": null,- "hogql_value": "code_name",+ "hogql_value": "pinned","id": null,- "name": "code_name",+ "name": "pinned","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "values": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "values",+ "hogql_value": "created_at","id": null,- "name": "values",+ "name": "created_at","schema_valid": true,"table": null,- "type": "json"+ "type": "datetime"},- "default_value": {+ "updated_at": {"chain": null,"fields": null,- "hogql_value": "default_value",+ "hogql_value": "updated_at","id": null,- "name": "default_value",+ "name": "updated_at","schema_valid": true,"table": null,- "type": "json"+ "type": "datetime"}},- "id": "system.insight_variables",- "name": "system.insight_variables",+ "id": "system.logs_views",+ "name": "system.logs_views","row_count": null,"type": "system"},- "system.logs_alerts": {+ "system.insights": {"certification": null,"fields": {"id": {@@ -21808,6 +22563,16 @@"name": "id","schema_valid": true,"table": null,+ "type": "integer"+ },+ "short_id": {+ "chain": null,+ "fields": null,+ "hogql_value": "short_id",+ "id": null,+ "name": "short_id",+ "schema_valid": true,+ "table": null,"type": "string"},"name": {@@ -21820,15 +22585,15 @@"table": null,"type": "string"},- "enabled": {+ "description": {"chain": null,"fields": null,- "hogql_value": "enabled",+ "hogql_value": "description","id": null,- "name": "enabled",+ "name": "description","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},"filters": {"chain": null,@@ -21840,211 +22605,211 @@"table": null,"type": "json"},- "threshold_count": {+ "query": {"chain": null,"fields": null,- "hogql_value": "threshold_count",+ "hogql_value": "query","id": null,- "name": "threshold_count",+ "name": "query","schema_valid": true,"table": null,- "type": "integer"+ "type": "json"},- "threshold_operator": {+ "query_metadata": {"chain": null,"fields": null,- "hogql_value": "threshold_operator",+ "hogql_value": "query_metadata","id": null,- "name": "threshold_operator",+ "name": "query_metadata","schema_valid": true,"table": null,- "type": "string"+ "type": "json"},- "window_minutes": {+ "deleted": {"chain": null,"fields": null,- "hogql_value": "window_minutes",+ "hogql_value": "deleted","id": null,- "name": "window_minutes",+ "name": "deleted","schema_valid": true,"table": null,"type": "integer"},- "check_interval_minutes": {+ "saved": {"chain": null,"fields": null,- "hogql_value": "check_interval_minutes",+ "hogql_value": "saved","id": null,- "name": "check_interval_minutes",+ "name": "saved","schema_valid": true,"table": null,"type": "integer"},- "state": {+ "favorited": {"chain": null,"fields": null,- "hogql_value": "state",+ "hogql_value": "favorited","id": null,- "name": "state",+ "name": "favorited","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "evaluation_periods": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "evaluation_periods",+ "hogql_value": "created_at","id": null,- "name": "evaluation_periods",+ "name": "created_at","schema_valid": true,"table": null,- "type": "integer"+ "type": "datetime"},- "datapoints_to_alarm": {+ "created_by_id": {"chain": null,"fields": null,- "hogql_value": "datapoints_to_alarm",+ "hogql_value": "created_by_id","id": null,- "name": "datapoints_to_alarm",+ "name": "created_by_id","schema_valid": true,"table": null,"type": "integer"},- "cooldown_minutes": {+ "last_modified_at": {"chain": null,"fields": null,- "hogql_value": "cooldown_minutes",+ "hogql_value": "last_modified_at","id": null,- "name": "cooldown_minutes",+ "name": "last_modified_at","schema_valid": true,"table": null,- "type": "integer"+ "type": "datetime"},- "snooze_until": {+ "last_modified_by_id": {"chain": null,"fields": null,- "hogql_value": "snooze_until",+ "hogql_value": "last_modified_by_id","id": null,- "name": "snooze_until",+ "name": "last_modified_by_id","schema_valid": true,"table": null,- "type": "datetime"+ "type": "integer"},- "next_check_at": {+ "updated_at": {"chain": null,"fields": null,- "hogql_value": "next_check_at",+ "hogql_value": "updated_at","id": null,- "name": "next_check_at",+ "name": "updated_at","schema_valid": true,"table": null,"type": "datetime"- },- "last_notified_at": {+ }+ },+ "id": "system.insights",+ "name": "system.insights",+ "row_count": null,+ "type": "system"+ },+ "system.notebooks": {+ "certification": null,+ "fields": {+ "id": {"chain": null,"fields": null,- "hogql_value": "last_notified_at",+ "hogql_value": "id","id": null,- "name": "last_notified_at",+ "name": "id","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"},- "last_checked_at": {+ "short_id": {"chain": null,"fields": null,- "hogql_value": "last_checked_at",+ "hogql_value": "short_id","id": null,- "name": "last_checked_at",+ "name": "short_id","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"},- "consecutive_failures": {+ "title": {"chain": null,"fields": null,- "hogql_value": "consecutive_failures",+ "hogql_value": "title","id": null,- "name": "consecutive_failures",+ "name": "title","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "created_at": {+ "content": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "content","id": null,- "name": "created_at",+ "name": "content","schema_valid": true,"table": null,- "type": "datetime"+ "type": "json"},- "updated_at": {+ "markdown": {"chain": null,"fields": null,- "hogql_value": "updated_at",+ "hogql_value": "markdown","id": null,- "name": "updated_at",+ "name": "markdown","schema_valid": true,"table": null,- "type": "datetime"- }- },- "id": "system.logs_alerts",- "name": "system.logs_alerts",- "row_count": null,- "type": "system"- },- "system.logs_views": {- "certification": null,- "fields": {- "id": {+ "type": "string"+ },+ "text_content": {"chain": null,"fields": null,- "hogql_value": "id",+ "hogql_value": "text_content","id": null,- "name": "id",+ "name": "text_content","schema_valid": true,"table": null,"type": "string"},- "short_id": {+ "deleted": {"chain": null,"fields": null,- "hogql_value": "short_id",+ "hogql_value": "deleted","id": null,- "name": "short_id",+ "name": "deleted","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "name": {+ "visibility": {"chain": null,"fields": null,- "hogql_value": "name",+ "hogql_value": "visibility","id": null,- "name": "name",+ "name": "visibility","schema_valid": true,"table": null,"type": "string"},- "filters": {+ "version": {"chain": null,"fields": null,- "hogql_value": "filters",+ "hogql_value": "version","id": null,- "name": "filters",+ "name": "version","schema_valid": true,"table": null,- "type": "json"+ "type": "integer"},- "pinned": {+ "created_by_id": {"chain": null,"fields": null,- "hogql_value": "pinned",+ "hogql_value": "created_by_id","id": null,- "name": "pinned",+ "name": "created_by_id","schema_valid": true,"table": null,"type": "integer"@@ -22059,23 +22824,23 @@"table": null,"type": "datetime"},- "updated_at": {+ "last_modified_at": {"chain": null,"fields": null,- "hogql_value": "updated_at",+ "hogql_value": "last_modified_at","id": null,- "name": "updated_at",+ "name": "last_modified_at","schema_valid": true,"table": null,"type": "datetime"}},- "id": "system.logs_views",- "name": "system.logs_views",+ "id": "system.notebooks",+ "name": "system.notebooks","row_count": null,"type": "system"},- "system.insights": {+ "system.sandbox_environments": {"certification": null,"fields": {"id": {@@ -22086,17 +22851,17 @@"name": "id","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "short_id": {+ "created_by_id": {"chain": null,"fields": null,- "hogql_value": "short_id",+ "hogql_value": "created_by_id","id": null,- "name": "short_id",+ "name": "created_by_id","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},"name": {"chain": null,@@ -22108,72 +22873,62 @@"table": null,"type": "string"},- "description": {+ "network_access_level": {"chain": null,"fields": null,- "hogql_value": "description",+ "hogql_value": "network_access_level","id": null,- "name": "description",+ "name": "network_access_level","schema_valid": true,"table": null,"type": "string"},- "filters": {- "chain": null,- "fields": null,- "hogql_value": "filters",- "id": null,- "name": "filters",- "schema_valid": true,- "table": null,- "type": "json"- },- "query": {+ "allowed_domains": {"chain": null,"fields": null,- "hogql_value": "query",+ "hogql_value": "allowed_domains","id": null,- "name": "query",+ "name": "allowed_domains","schema_valid": true,"table": null,- "type": "json"+ "type": "array"},- "query_metadata": {+ "include_default_domains": {"chain": null,"fields": null,- "hogql_value": "query_metadata",+ "hogql_value": "include_default_domains","id": null,- "name": "query_metadata",+ "name": "include_default_domains","schema_valid": true,"table": null,- "type": "json"+ "type": "integer"},- "deleted": {+ "repositories": {"chain": null,"fields": null,- "hogql_value": "deleted",+ "hogql_value": "repositories","id": null,- "name": "deleted",+ "name": "repositories","schema_valid": true,"table": null,- "type": "integer"+ "type": "array"},- "saved": {+ "private": {"chain": null,"fields": null,- "hogql_value": "saved",+ "hogql_value": "private","id": null,- "name": "saved",+ "name": "private","schema_valid": true,"table": null,"type": "integer"},- "favorited": {+ "internal": {"chain": null,"fields": null,- "hogql_value": "favorited",+ "hogql_value": "internal","id": null,- "name": "favorited",+ "name": "internal","schema_valid": true,"table": null,"type": "integer"@@ -22188,36 +22943,6 @@"table": null,"type": "datetime"},- "created_by_id": {- "chain": null,- "fields": null,- "hogql_value": "created_by_id",- "id": null,- "name": "created_by_id",- "schema_valid": true,- "table": null,- "type": "integer"- },- "last_modified_at": {- "chain": null,- "fields": null,- "hogql_value": "last_modified_at",- "id": null,- "name": "last_modified_at",- "schema_valid": true,- "table": null,- "type": "datetime"- },- "last_modified_by_id": {- "chain": null,- "fields": null,- "hogql_value": "last_modified_by_id",- "id": null,- "name": "last_modified_by_id",- "schema_valid": true,- "table": null,- "type": "integer"- },"updated_at": {"chain": null,"fields": null,@@ -22229,12 +22954,12 @@"type": "datetime"}},- "id": "system.insights",- "name": "system.insights",+ "id": "system.sandbox_environments",+ "name": "system.sandbox_environments","row_count": null,"type": "system"},- "system.notebooks": {+ "system.review_queue_items": {"certification": null,"fields": {"id": {@@ -22247,55 +22972,55 @@"table": null,"type": "string"},- "short_id": {+ "queue_id": {"chain": null,"fields": null,- "hogql_value": "short_id",+ "hogql_value": "queue_id","id": null,- "name": "short_id",+ "name": "queue_id","schema_valid": true,"table": null,"type": "string"},- "title": {+ "trace_id": {"chain": null,"fields": null,- "hogql_value": "title",+ "hogql_value": "trace_id","id": null,- "name": "title",+ "name": "trace_id","schema_valid": true,"table": null,"type": "string"},- "content": {+ "created_by_id": {"chain": null,"fields": null,- "hogql_value": "content",+ "hogql_value": "created_by_id","id": null,- "name": "content",+ "name": "created_by_id","schema_valid": true,"table": null,- "type": "json"+ "type": "integer"},- "markdown": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "markdown",+ "hogql_value": "created_at","id": null,- "name": "markdown",+ "name": "created_at","schema_valid": true,"table": null,- "type": "string"+ "type": "datetime"},- "text_content": {+ "updated_at": {"chain": null,"fields": null,- "hogql_value": "text_content",+ "hogql_value": "updated_at","id": null,- "name": "text_content",+ "name": "updated_at","schema_valid": true,"table": null,- "type": "string"+ "type": "datetime"},"deleted": {"chain": null,@@ -22307,25 +23032,44 @@"table": null,"type": "integer"},- "visibility": {+ "deleted_at": {"chain": null,"fields": null,- "hogql_value": "visibility",+ "hogql_value": "deleted_at","id": null,- "name": "visibility",+ "name": "deleted_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ }+ },+ "id": "system.review_queue_items",+ "name": "system.review_queue_items",+ "row_count": null,+ "type": "system"+ },+ "system.review_queues": {+ "certification": null,+ "fields": {+ "id": {+ "chain": null,+ "fields": null,+ "hogql_value": "id",+ "id": null,+ "name": "id","schema_valid": true,"table": null,"type": "string"},- "version": {+ "name": {"chain": null,"fields": null,- "hogql_value": "version",+ "hogql_value": "name","id": null,- "name": "version",+ "name": "name","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},"created_by_id": {"chain": null,@@ -22347,111 +23091,111 @@"table": null,"type": "datetime"},- "last_modified_at": {+ "updated_at": {"chain": null,"fields": null,- "hogql_value": "last_modified_at",+ "hogql_value": "updated_at","id": null,- "name": "last_modified_at",+ "name": "updated_at","schema_valid": true,"table": null,"type": "datetime"- }- },- "id": "system.notebooks",- "name": "system.notebooks",- "row_count": null,- "type": "system"- },- "system.sandbox_environments": {- "certification": null,- "fields": {- "id": {+ },+ "deleted": {"chain": null,"fields": null,- "hogql_value": "id",+ "hogql_value": "deleted","id": null,- "name": "id",+ "name": "deleted","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "created_by_id": {+ "deleted_at": {"chain": null,"fields": null,- "hogql_value": "created_by_id",+ "hogql_value": "deleted_at","id": null,- "name": "created_by_id",+ "name": "deleted_at","schema_valid": true,"table": null,- "type": "integer"- },- "name": {+ "type": "datetime"+ }+ },+ "id": "system.review_queues",+ "name": "system.review_queues",+ "row_count": null,+ "type": "system"+ },+ "system.score_definitions": {+ "certification": null,+ "fields": {+ "id": {"chain": null,"fields": null,- "hogql_value": "name",+ "hogql_value": "id","id": null,- "name": "name",+ "name": "id","schema_valid": true,"table": null,"type": "string"},- "network_access_level": {+ "name": {"chain": null,"fields": null,- "hogql_value": "network_access_level",+ "hogql_value": "name","id": null,- "name": "network_access_level",+ "name": "name","schema_valid": true,"table": null,"type": "string"},- "allowed_domains": {+ "description": {"chain": null,"fields": null,- "hogql_value": "allowed_domains",+ "hogql_value": "description","id": null,- "name": "allowed_domains",+ "name": "description","schema_valid": true,"table": null,- "type": "array"+ "type": "string"},- "include_default_domains": {+ "kind": {"chain": null,"fields": null,- "hogql_value": "include_default_domains",+ "hogql_value": "kind","id": null,- "name": "include_default_domains",+ "name": "kind","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "repositories": {+ "archived": {"chain": null,"fields": null,- "hogql_value": "repositories",+ "hogql_value": "archived","id": null,- "name": "repositories",+ "name": "archived","schema_valid": true,"table": null,- "type": "array"+ "type": "boolean"},- "private": {+ "current_version_id": {"chain": null,"fields": null,- "hogql_value": "private",+ "hogql_value": "current_version_id","id": null,- "name": "private",+ "name": "current_version_id","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "internal": {+ "created_by_id": {"chain": null,"fields": null,- "hogql_value": "internal",+ "hogql_value": "created_by_id","id": null,- "name": "internal",+ "name": "created_by_id","schema_valid": true,"table": null,"type": "integer"@@ -22477,12 +23221,12 @@"type": "datetime"}},- "id": "system.sandbox_environments",- "name": "system.sandbox_environments",+ "id": "system.score_definitions",+ "name": "system.score_definitions","row_count": null,"type": "system"},- "system.review_queue_items": {+ "system.session_recording_playlists": {"certification": null,"fields": {"id": {@@ -22493,38 +23237,88 @@"name": "id","schema_valid": true,"table": null,+ "type": "integer"+ },+ "short_id": {+ "chain": null,+ "fields": null,+ "hogql_value": "short_id",+ "id": null,+ "name": "short_id",+ "schema_valid": true,+ "table": null,"type": "string"},- "queue_id": {+ "name": {"chain": null,"fields": null,- "hogql_value": "queue_id",+ "hogql_value": "name","id": null,- "name": "queue_id",+ "name": "name","schema_valid": true,"table": null,"type": "string"},- "trace_id": {+ "derived_name": {"chain": null,"fields": null,- "hogql_value": "trace_id",+ "hogql_value": "derived_name","id": null,- "name": "trace_id",+ "name": "derived_name","schema_valid": true,"table": null,"type": "string"},- "created_by_id": {+ "description": {"chain": null,"fields": null,- "hogql_value": "created_by_id",+ "hogql_value": "description","id": null,- "name": "created_by_id",+ "name": "description",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "pinned": {+ "chain": null,+ "fields": null,+ "hogql_value": "pinned",+ "id": null,+ "name": "pinned",+ "schema_valid": true,+ "table": null,+ "type": "integer"+ },+ "deleted": {+ "chain": null,+ "fields": null,+ "hogql_value": "deleted",+ "id": null,+ "name": "deleted","schema_valid": true,"table": null,"type": "integer"},+ "filters": {+ "chain": null,+ "fields": null,+ "hogql_value": "filters",+ "id": null,+ "name": "filters",+ "schema_valid": true,+ "table": null,+ "type": "json"+ },+ "type": {+ "chain": null,+ "fields": null,+ "hogql_value": "type",+ "id": null,+ "name": "type",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },"created_at": {"chain": null,"fields": null,@@ -22535,43 +23329,43 @@"table": null,"type": "datetime"},- "updated_at": {+ "created_by_id": {"chain": null,"fields": null,- "hogql_value": "updated_at",+ "hogql_value": "created_by_id","id": null,- "name": "updated_at",+ "name": "created_by_id","schema_valid": true,"table": null,- "type": "datetime"+ "type": "integer"},- "deleted": {+ "last_modified_at": {"chain": null,"fields": null,- "hogql_value": "deleted",+ "hogql_value": "last_modified_at","id": null,- "name": "deleted",+ "name": "last_modified_at","schema_valid": true,"table": null,- "type": "integer"+ "type": "datetime"},- "deleted_at": {+ "last_modified_by_id": {"chain": null,"fields": null,- "hogql_value": "deleted_at",+ "hogql_value": "last_modified_by_id","id": null,- "name": "deleted_at",+ "name": "last_modified_by_id","schema_valid": true,"table": null,- "type": "datetime"+ "type": "integer"}},- "id": "system.review_queue_items",- "name": "system.review_queue_items",+ "id": "system.session_recording_playlists",+ "name": "system.session_recording_playlists","row_count": null,"type": "system"},- "system.review_queues": {+ "system.replay_scanners": {"certification": null,"fields": {"id": {@@ -22594,124 +23388,135 @@"table": null,"type": "string"},- "created_by_id": {+ "description": {"chain": null,"fields": null,- "hogql_value": "created_by_id",+ "hogql_value": "description","id": null,- "name": "created_by_id",+ "name": "description","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "created_at": {+ "scanner_type": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "scanner_type","id": null,- "name": "created_at",+ "name": "scanner_type","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"},- "updated_at": {+ "scanner_config": {"chain": null,"fields": null,- "hogql_value": "updated_at",+ "hogql_value": "scanner_config","id": null,- "name": "updated_at",+ "name": "scanner_config","schema_valid": true,"table": null,- "type": "datetime"+ "type": "json"},- "deleted": {+ "query": {"chain": null,"fields": null,- "hogql_value": "deleted",+ "hogql_value": "query","id": null,- "name": "deleted",+ "name": "query","schema_valid": true,"table": null,- "type": "integer"+ "type": "json"},- "deleted_at": {+ "sampling_rate": {"chain": null,"fields": null,- "hogql_value": "deleted_at",+ "hogql_value": "sampling_rate","id": null,- "name": "deleted_at",+ "name": "sampling_rate","schema_valid": true,"table": null,- "type": "datetime"- }- },- "id": "system.review_queues",- "name": "system.review_queues",- "row_count": null,- "type": "system"- },- "system.score_definitions": {- "certification": null,- "fields": {- "id": {+ "type": "float"+ },+ "sampling_mode": {"chain": null,"fields": null,- "hogql_value": "id",+ "hogql_value": "sampling_mode","id": null,- "name": "id",+ "name": "sampling_mode","schema_valid": true,"table": null,"type": "string"},- "name": {+ "model": {"chain": null,"fields": null,- "hogql_value": "name",+ "hogql_value": "model","id": null,- "name": "name",+ "name": "model","schema_valid": true,"table": null,"type": "string"},- "description": {+ "enabled": {"chain": null,"fields": null,- "hogql_value": "description",+ "hogql_value": "enabled","id": null,- "name": "description",+ "name": "enabled","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "kind": {+ "emits_signals": {"chain": null,"fields": null,- "hogql_value": "kind",+ "hogql_value": "emits_signals","id": null,- "name": "kind",+ "name": "emits_signals","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "archived": {+ "scanner_version": {"chain": null,"fields": null,- "hogql_value": "archived",+ "hogql_value": "scanner_version","id": null,- "name": "archived",+ "name": "scanner_version",+ "schema_valid": true,+ "table": null,+ "type": "integer"+ },+ "credit_limit": {+ "chain": null,+ "fields": null,+ "hogql_value": "credit_limit",+ "id": null,+ "name": "credit_limit",+ "schema_valid": true,+ "table": null,+ "type": "integer"+ },+ "estimated_monthly_observations": {+ "chain": null,+ "fields": null,+ "hogql_value": "estimated_monthly_observations",+ "id": null,+ "name": "estimated_monthly_observations","schema_valid": true,"table": null,- "type": "boolean"+ "type": "integer"},- "current_version_id": {+ "last_swept_at": {"chain": null,"fields": null,- "hogql_value": "current_version_id",+ "hogql_value": "last_swept_at","id": null,- "name": "current_version_id",+ "name": "last_swept_at","schema_valid": true,"table": null,- "type": "string"+ "type": "datetime"},"created_by_id": {"chain": null,@@ -22744,12 +23549,12 @@"type": "datetime"}},- "id": "system.score_definitions",- "name": "system.score_definitions",+ "id": "system.replay_scanners",+ "name": "system.replay_scanners","row_count": null,"type": "system"},- "system.session_recording_playlists": {+ "system.session_recordings": {"certification": null,"fields": {"id": {@@ -22760,135 +23565,185 @@"name": "id","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "short_id": {+ "session_id": {"chain": null,"fields": null,- "hogql_value": "short_id",+ "hogql_value": "session_id","id": null,- "name": "short_id",+ "name": "session_id","schema_valid": true,"table": null,"type": "string"},- "name": {+ "distinct_id": {"chain": null,"fields": null,- "hogql_value": "name",+ "hogql_value": "distinct_id","id": null,- "name": "name",+ "name": "distinct_id","schema_valid": true,"table": null,"type": "string"},- "derived_name": {+ "duration": {"chain": null,"fields": null,- "hogql_value": "derived_name",+ "hogql_value": "duration","id": null,- "name": "derived_name",+ "name": "duration","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "description": {+ "active_seconds": {"chain": null,"fields": null,- "hogql_value": "description",+ "hogql_value": "active_seconds","id": null,- "name": "description",+ "name": "active_seconds","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "pinned": {+ "inactive_seconds": {"chain": null,"fields": null,- "hogql_value": "pinned",+ "hogql_value": "inactive_seconds","id": null,- "name": "pinned",+ "name": "inactive_seconds","schema_valid": true,"table": null,"type": "integer"},- "deleted": {+ "start_time": {"chain": null,"fields": null,- "hogql_value": "deleted",+ "hogql_value": "start_time","id": null,- "name": "deleted",+ "name": "start_time",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ },+ "end_time": {+ "chain": null,+ "fields": null,+ "hogql_value": "end_time",+ "id": null,+ "name": "end_time",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ },+ "click_count": {+ "chain": null,+ "fields": null,+ "hogql_value": "click_count",+ "id": null,+ "name": "click_count","schema_valid": true,"table": null,"type": "integer"},- "filters": {+ "keypress_count": {"chain": null,"fields": null,- "hogql_value": "filters",+ "hogql_value": "keypress_count","id": null,- "name": "filters",+ "name": "keypress_count","schema_valid": true,"table": null,- "type": "json"+ "type": "integer"},- "type": {+ "mouse_activity_count": {"chain": null,"fields": null,- "hogql_value": "type",+ "hogql_value": "mouse_activity_count","id": null,- "name": "type",+ "name": "mouse_activity_count","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "created_at": {+ "console_log_count": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "console_log_count","id": null,- "name": "created_at",+ "name": "console_log_count","schema_valid": true,"table": null,- "type": "datetime"+ "type": "integer"},- "created_by_id": {+ "console_warn_count": {"chain": null,"fields": null,- "hogql_value": "created_by_id",+ "hogql_value": "console_warn_count","id": null,- "name": "created_by_id",+ "name": "console_warn_count","schema_valid": true,"table": null,"type": "integer"},- "last_modified_at": {+ "console_error_count": {"chain": null,"fields": null,- "hogql_value": "last_modified_at",+ "hogql_value": "console_error_count","id": null,- "name": "last_modified_at",+ "name": "console_error_count",+ "schema_valid": true,+ "table": null,+ "type": "integer"+ },+ "start_url": {+ "chain": null,+ "fields": null,+ "hogql_value": "start_url",+ "id": null,+ "name": "start_url",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "deleted": {+ "chain": null,+ "fields": null,+ "hogql_value": "deleted",+ "id": null,+ "name": "deleted",+ "schema_valid": true,+ "table": null,+ "type": "integer"+ },+ "created_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "created_at",+ "id": null,+ "name": "created_at","schema_valid": true,"table": null,"type": "datetime"},- "last_modified_by_id": {+ "retention_period_days": {"chain": null,"fields": null,- "hogql_value": "last_modified_by_id",+ "hogql_value": "retention_period_days","id": null,- "name": "last_modified_by_id",+ "name": "retention_period_days","schema_valid": true,"table": null,"type": "integer"}},- "id": "system.session_recording_playlists",- "name": "system.session_recording_playlists",+ "id": "system.session_recordings",+ "name": "system.session_recordings","row_count": null,"type": "system"},- "system.replay_scanners": {+ "system.source_schemas": {"certification": null,"fields": {"id": {@@ -22911,152 +23766,211 @@"table": null,"type": "string"},- "description": {+ "source_id": {"chain": null,"fields": null,- "hogql_value": "description",+ "hogql_value": "source_id","id": null,- "name": "description",+ "name": "source_id","schema_valid": true,"table": null,"type": "string"},- "scanner_type": {+ "table_id": {"chain": null,"fields": null,- "hogql_value": "scanner_type",+ "hogql_value": "table_id","id": null,- "name": "scanner_type",+ "name": "table_id","schema_valid": true,"table": null,"type": "string"},- "scanner_config": {+ "should_sync": {"chain": null,"fields": null,- "hogql_value": "scanner_config",+ "hogql_value": "should_sync","id": null,- "name": "scanner_config",+ "name": "should_sync","schema_valid": true,"table": null,- "type": "json"+ "type": "boolean"},- "query": {+ "status": {"chain": null,"fields": null,- "hogql_value": "query",+ "hogql_value": "status","id": null,- "name": "query",+ "name": "status","schema_valid": true,"table": null,- "type": "json"+ "type": "string"},- "sampling_rate": {+ "sync_type": {"chain": null,"fields": null,- "hogql_value": "sampling_rate",+ "hogql_value": "sync_type","id": null,- "name": "sampling_rate",+ "name": "sync_type","schema_valid": true,"table": null,- "type": "float"+ "type": "string"},- "sampling_mode": {+ "last_synced_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "last_synced_at",+ "id": null,+ "name": "last_synced_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ },+ "latest_error": {+ "chain": null,+ "fields": null,+ "hogql_value": "latest_error",+ "id": null,+ "name": "latest_error",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "created_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "created_at",+ "id": null,+ "name": "created_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ },+ "updated_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "updated_at",+ "id": null,+ "name": "updated_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ },+ "deleted": {+ "chain": null,+ "fields": null,+ "hogql_value": "deleted",+ "id": null,+ "name": "deleted",+ "schema_valid": true,+ "table": null,+ "type": "integer"+ },+ "deleted_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "deleted_at",+ "id": null,+ "name": "deleted_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ }+ },+ "id": "system.source_schemas",+ "name": "system.source_schemas",+ "row_count": null,+ "type": "system"+ },+ "system.source_sync_jobs": {+ "certification": null,+ "fields": {+ "id": {"chain": null,"fields": null,- "hogql_value": "sampling_mode",+ "hogql_value": "id","id": null,- "name": "sampling_mode",+ "name": "id","schema_valid": true,"table": null,"type": "string"},- "model": {+ "pipeline_id": {"chain": null,"fields": null,- "hogql_value": "model",+ "hogql_value": "pipeline_id","id": null,- "name": "model",+ "name": "pipeline_id","schema_valid": true,"table": null,"type": "string"},- "enabled": {+ "schema_id": {"chain": null,"fields": null,- "hogql_value": "enabled",+ "hogql_value": "schema_id","id": null,- "name": "enabled",+ "name": "schema_id","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "emits_signals": {+ "status": {"chain": null,"fields": null,- "hogql_value": "emits_signals",+ "hogql_value": "status","id": null,- "name": "emits_signals",+ "name": "status","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "scanner_version": {+ "rows_synced": {"chain": null,"fields": null,- "hogql_value": "scanner_version",+ "hogql_value": "rows_synced","id": null,- "name": "scanner_version",+ "name": "rows_synced","schema_valid": true,"table": null,"type": "integer"},- "credit_limit": {+ "billable": {"chain": null,"fields": null,- "hogql_value": "credit_limit",+ "hogql_value": "billable","id": null,- "name": "credit_limit",+ "name": "billable","schema_valid": true,"table": null,- "type": "integer"+ "type": "boolean"},- "estimated_monthly_observations": {+ "latest_error": {"chain": null,"fields": null,- "hogql_value": "estimated_monthly_observations",+ "hogql_value": "latest_error","id": null,- "name": "estimated_monthly_observations",+ "name": "latest_error","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "last_swept_at": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "last_swept_at",+ "hogql_value": "created_at","id": null,- "name": "last_swept_at",+ "name": "created_at","schema_valid": true,"table": null,"type": "datetime"},- "created_by_id": {- "chain": null,- "fields": null,- "hogql_value": "created_by_id",- "id": null,- "name": "created_by_id",- "schema_valid": true,- "table": null,- "type": "integer"- },- "created_at": {+ "finished_at": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "finished_at","id": null,- "name": "created_at",+ "name": "finished_at","schema_valid": true,"table": null,"type": "datetime"@@ -23072,12 +23986,12 @@"type": "datetime"}},- "id": "system.replay_scanners",- "name": "system.replay_scanners",+ "id": "system.source_sync_jobs",+ "name": "system.source_sync_jobs","row_count": null,"type": "system"},- "system.session_recordings": {+ "system.support_tickets": {"certification": null,"fields": {"id": {@@ -23090,12 +24004,42 @@"table": null,"type": "string"},- "session_id": {+ "ticket_number": {"chain": null,"fields": null,- "hogql_value": "session_id",+ "hogql_value": "ticket_number","id": null,- "name": "session_id",+ "name": "ticket_number",+ "schema_valid": true,+ "table": null,+ "type": "integer"+ },+ "organization_id": {+ "chain": null,+ "fields": null,+ "hogql_value": "organization_id",+ "id": null,+ "name": "organization_id",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "channel_source": {+ "chain": null,+ "fields": null,+ "hogql_value": "channel_source",+ "id": null,+ "name": "channel_source",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "channel_detail": {+ "chain": null,+ "fields": null,+ "hogql_value": "channel_detail",+ "id": null,+ "name": "channel_detail","schema_valid": true,"table": null,"type": "string"@@ -23110,135 +24054,155 @@"table": null,"type": "string"},- "duration": {+ "status": {"chain": null,"fields": null,- "hogql_value": "duration",+ "hogql_value": "status","id": null,- "name": "duration",+ "name": "status","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "active_seconds": {+ "priority": {"chain": null,"fields": null,- "hogql_value": "active_seconds",+ "hogql_value": "priority","id": null,- "name": "active_seconds",+ "name": "priority","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "inactive_seconds": {+ "anonymous_traits": {"chain": null,"fields": null,- "hogql_value": "inactive_seconds",+ "hogql_value": "anonymous_traits","id": null,- "name": "inactive_seconds",+ "name": "anonymous_traits","schema_valid": true,"table": null,- "type": "integer"+ "type": "json"},- "start_time": {+ "ai_resolved": {"chain": null,"fields": null,- "hogql_value": "start_time",+ "hogql_value": "ai_resolved","id": null,- "name": "start_time",+ "name": "ai_resolved","schema_valid": true,"table": null,- "type": "datetime"+ "type": "integer"},- "end_time": {+ "escalation_reason": {"chain": null,"fields": null,- "hogql_value": "end_time",+ "hogql_value": "escalation_reason","id": null,- "name": "end_time",+ "name": "escalation_reason","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"},- "click_count": {+ "message_count": {"chain": null,"fields": null,- "hogql_value": "click_count",+ "hogql_value": "message_count","id": null,- "name": "click_count",+ "name": "message_count","schema_valid": true,"table": null,"type": "integer"},- "keypress_count": {+ "unread_customer_count": {"chain": null,"fields": null,- "hogql_value": "keypress_count",+ "hogql_value": "unread_customer_count","id": null,- "name": "keypress_count",+ "name": "unread_customer_count","schema_valid": true,"table": null,"type": "integer"},- "mouse_activity_count": {+ "unread_team_count": {"chain": null,"fields": null,- "hogql_value": "mouse_activity_count",+ "hogql_value": "unread_team_count","id": null,- "name": "mouse_activity_count",+ "name": "unread_team_count","schema_valid": true,"table": null,"type": "integer"},- "console_log_count": {+ "last_message_at": {"chain": null,"fields": null,- "hogql_value": "console_log_count",+ "hogql_value": "last_message_at","id": null,- "name": "console_log_count",+ "name": "last_message_at","schema_valid": true,"table": null,- "type": "integer"+ "type": "datetime"},- "console_warn_count": {+ "last_message_text": {"chain": null,"fields": null,- "hogql_value": "console_warn_count",+ "hogql_value": "last_message_text","id": null,- "name": "console_warn_count",+ "name": "last_message_text","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "console_error_count": {+ "email_subject": {"chain": null,"fields": null,- "hogql_value": "console_error_count",+ "hogql_value": "email_subject","id": null,- "name": "console_error_count",+ "name": "email_subject","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "start_url": {+ "email_from": {"chain": null,"fields": null,- "hogql_value": "start_url",+ "hogql_value": "email_from","id": null,- "name": "start_url",+ "name": "email_from","schema_valid": true,"table": null,"type": "string"},- "deleted": {+ "session_id": {"chain": null,"fields": null,- "hogql_value": "deleted",+ "hogql_value": "session_id","id": null,- "name": "deleted",+ "name": "session_id","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"+ },+ "session_context": {+ "chain": null,+ "fields": null,+ "hogql_value": "session_context",+ "id": null,+ "name": "session_context",+ "schema_valid": true,+ "table": null,+ "type": "json"+ },+ "sla_due_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "sla_due_at",+ "id": null,+ "name": "sla_due_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"},"created_at": {"chain": null,@@ -23247,26 +24211,54 @@"id": null,"name": "created_at","schema_valid": true,- "table": null,- "type": "datetime"+ "table": null,+ "type": "datetime"+ },+ "updated_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "updated_at",+ "id": null,+ "name": "updated_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ },+ "tags": {+ "chain": null,+ "fields": [+ "ticket_id",+ "names"+ ],+ "hogql_value": "tags",+ "id": "tags",+ "name": "tags",+ "schema_valid": true,+ "table": "ticket_tags",+ "type": "lazy_table"},- "retention_period_days": {+ "assignee": {"chain": null,- "fields": null,- "hogql_value": "retention_period_days",- "id": null,- "name": "retention_period_days",+ "fields": [+ "ticket_id",+ "user_id",+ "role_id",+ "role_name"+ ],+ "hogql_value": "assignee",+ "id": "assignee",+ "name": "assignee","schema_valid": true,- "table": null,- "type": "integer"+ "table": "ticket_assignment",+ "type": "lazy_table"}},- "id": "system.session_recordings",- "name": "system.session_recordings",+ "id": "system.support_tickets",+ "name": "system.support_tickets","row_count": null,"type": "system"},- "system.source_schemas": {+ "system.surveys": {"certification": null,"fields": {"id": {@@ -23289,75 +24281,65 @@"table": null,"type": "string"},- "source_id": {- "chain": null,- "fields": null,- "hogql_value": "source_id",- "id": null,- "name": "source_id",- "schema_valid": true,- "table": null,- "type": "string"- },- "table_id": {+ "type": {"chain": null,"fields": null,- "hogql_value": "table_id",+ "hogql_value": "type","id": null,- "name": "table_id",+ "name": "type","schema_valid": true,"table": null,"type": "string"},- "should_sync": {+ "questions": {"chain": null,"fields": null,- "hogql_value": "should_sync",+ "hogql_value": "questions","id": null,- "name": "should_sync",+ "name": "questions","schema_valid": true,"table": null,- "type": "boolean"+ "type": "json"},- "status": {+ "appearance": {"chain": null,"fields": null,- "hogql_value": "status",+ "hogql_value": "appearance","id": null,- "name": "status",+ "name": "appearance","schema_valid": true,"table": null,- "type": "string"+ "type": "json"},- "sync_type": {+ "start_date": {"chain": null,"fields": null,- "hogql_value": "sync_type",+ "hogql_value": "start_date","id": null,- "name": "sync_type",+ "name": "start_date","schema_valid": true,"table": null,- "type": "string"+ "type": "datetime"},- "last_synced_at": {+ "end_date": {"chain": null,"fields": null,- "hogql_value": "last_synced_at",+ "hogql_value": "end_date","id": null,- "name": "last_synced_at",+ "name": "end_date","schema_valid": true,"table": null,"type": "datetime"},- "latest_error": {+ "created_by_id": {"chain": null,"fields": null,- "hogql_value": "latest_error",+ "hogql_value": "created_by_id","id": null,- "name": "latest_error",+ "name": "created_by_id","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},"created_at": {"chain": null,@@ -23368,44 +24350,63 @@"schema_valid": true,"table": null,"type": "datetime"+ }+ },+ "id": "system.surveys",+ "name": "system.surveys",+ "row_count": null,+ "type": "system"+ },+ "system.survey_response_archives": {+ "certification": null,+ "fields": {+ "id": {+ "chain": null,+ "fields": null,+ "hogql_value": "id",+ "id": null,+ "name": "id",+ "schema_valid": true,+ "table": null,+ "type": "string"},- "updated_at": {+ "survey_id": {"chain": null,"fields": null,- "hogql_value": "updated_at",+ "hogql_value": "survey_id","id": null,- "name": "updated_at",+ "name": "survey_id","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"},- "deleted": {+ "response_uuid": {"chain": null,"fields": null,- "hogql_value": "deleted",+ "hogql_value": "response_uuid","id": null,- "name": "deleted",+ "name": "response_uuid","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "deleted_at": {+ "archived_at": {"chain": null,"fields": null,- "hogql_value": "deleted_at",+ "hogql_value": "archived_at","id": null,- "name": "deleted_at",+ "name": "archived_at","schema_valid": true,"table": null,"type": "datetime"}},- "id": "system.source_schemas",- "name": "system.source_schemas",+ "id": "system.survey_response_archives",+ "name": "system.survey_response_archives","row_count": null,"type": "system"},- "system.source_sync_jobs": {+ "system.task_runs": {"certification": null,"fields": {"id": {@@ -23418,311 +24419,280 @@"table": null,"type": "string"},- "pipeline_id": {+ "task_id": {"chain": null,"fields": null,- "hogql_value": "pipeline_id",+ "hogql_value": "task_id","id": null,- "name": "pipeline_id",+ "name": "task_id","schema_valid": true,"table": null,"type": "string"},- "schema_id": {+ "branch": {"chain": null,"fields": null,- "hogql_value": "schema_id",+ "hogql_value": "branch","id": null,- "name": "schema_id",+ "name": "branch","schema_valid": true,"table": null,"type": "string"},- "status": {+ "environment": {"chain": null,"fields": null,- "hogql_value": "status",+ "hogql_value": "environment","id": null,- "name": "status",+ "name": "environment","schema_valid": true,"table": null,"type": "string"},- "rows_synced": {+ "stage": {"chain": null,"fields": null,- "hogql_value": "rows_synced",+ "hogql_value": "stage","id": null,- "name": "rows_synced",+ "name": "stage","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "billable": {+ "status": {"chain": null,"fields": null,- "hogql_value": "billable",+ "hogql_value": "status","id": null,- "name": "billable",+ "name": "status","schema_valid": true,"table": null,- "type": "boolean"+ "type": "string"},- "latest_error": {+ "error_message": {"chain": null,"fields": null,- "hogql_value": "latest_error",+ "hogql_value": "error_message","id": null,- "name": "latest_error",+ "name": "error_message","schema_valid": true,"table": null,"type": "string"},- "created_at": {+ "output": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "output","id": null,- "name": "created_at",+ "name": "output","schema_valid": true,"table": null,- "type": "datetime"+ "type": "json"},- "finished_at": {+ "artifacts": {"chain": null,"fields": null,- "hogql_value": "finished_at",+ "hogql_value": "artifacts","id": null,- "name": "finished_at",+ "name": "artifacts","schema_valid": true,"table": null,- "type": "datetime"+ "type": "json"},- "updated_at": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "updated_at",+ "hogql_value": "created_at","id": null,- "name": "updated_at",+ "name": "created_at","schema_valid": true,"table": null,"type": "datetime"- }- },- "id": "system.source_sync_jobs",- "name": "system.source_sync_jobs",- "row_count": null,- "type": "system"- },- "system.support_tickets": {- "certification": null,- "fields": {- "id": {- "chain": null,- "fields": null,- "hogql_value": "id",- "id": null,- "name": "id",- "schema_valid": true,- "table": null,- "type": "string"- },- "ticket_number": {- "chain": null,- "fields": null,- "hogql_value": "ticket_number",- "id": null,- "name": "ticket_number",- "schema_valid": true,- "table": null,- "type": "integer"- },- "organization_id": {- "chain": null,- "fields": null,- "hogql_value": "organization_id",- "id": null,- "name": "organization_id",- "schema_valid": true,- "table": null,- "type": "string"},- "channel_source": {+ "updated_at": {"chain": null,"fields": null,- "hogql_value": "channel_source",+ "hogql_value": "updated_at","id": null,- "name": "channel_source",+ "name": "updated_at","schema_valid": true,"table": null,- "type": "string"+ "type": "datetime"},- "channel_detail": {+ "completed_at": {"chain": null,"fields": null,- "hogql_value": "channel_detail",+ "hogql_value": "completed_at","id": null,- "name": "channel_detail",+ "name": "completed_at","schema_valid": true,"table": null,- "type": "string"- },- "distinct_id": {+ "type": "datetime"+ }+ },+ "id": "system.task_runs",+ "name": "system.task_runs",+ "row_count": null,+ "type": "system"+ },+ "system.tags": {+ "certification": null,+ "fields": {+ "id": {"chain": null,"fields": null,- "hogql_value": "distinct_id",+ "hogql_value": "id","id": null,- "name": "distinct_id",+ "name": "id","schema_valid": true,"table": null,"type": "string"},- "status": {+ "name": {"chain": null,"fields": null,- "hogql_value": "status",+ "hogql_value": "name","id": null,- "name": "status",+ "name": "name","schema_valid": true,"table": null,"type": "string"- },- "priority": {+ }+ },+ "id": "system.tags",+ "name": "system.tags",+ "row_count": null,+ "type": "system"+ },+ "system.tasks": {+ "certification": null,+ "fields": {+ "id": {"chain": null,"fields": null,- "hogql_value": "priority",+ "hogql_value": "id","id": null,- "name": "priority",+ "name": "id","schema_valid": true,"table": null,"type": "string"},- "anonymous_traits": {- "chain": null,- "fields": null,- "hogql_value": "anonymous_traits",- "id": null,- "name": "anonymous_traits",- "schema_valid": true,- "table": null,- "type": "json"- },- "ai_resolved": {+ "created_by_id": {"chain": null,"fields": null,- "hogql_value": "ai_resolved",+ "hogql_value": "created_by_id","id": null,- "name": "ai_resolved",+ "name": "created_by_id","schema_valid": true,"table": null,"type": "integer"},- "escalation_reason": {+ "github_integration_id": {"chain": null,"fields": null,- "hogql_value": "escalation_reason",+ "hogql_value": "github_integration_id","id": null,- "name": "escalation_reason",+ "name": "github_integration_id","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "message_count": {+ "task_number": {"chain": null,"fields": null,- "hogql_value": "message_count",+ "hogql_value": "task_number","id": null,- "name": "message_count",+ "name": "task_number","schema_valid": true,"table": null,"type": "integer"},- "unread_customer_count": {+ "title": {"chain": null,"fields": null,- "hogql_value": "unread_customer_count",+ "hogql_value": "title","id": null,- "name": "unread_customer_count",+ "name": "title","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "unread_team_count": {+ "title_manually_set": {"chain": null,"fields": null,- "hogql_value": "unread_team_count",+ "hogql_value": "title_manually_set","id": null,- "name": "unread_team_count",+ "name": "title_manually_set","schema_valid": true,"table": null,"type": "integer"},- "last_message_at": {+ "description": {"chain": null,"fields": null,- "hogql_value": "last_message_at",+ "hogql_value": "description","id": null,- "name": "last_message_at",+ "name": "description","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"},- "last_message_text": {+ "origin_product": {"chain": null,"fields": null,- "hogql_value": "last_message_text",+ "hogql_value": "origin_product","id": null,- "name": "last_message_text",+ "name": "origin_product","schema_valid": true,"table": null,"type": "string"},- "email_subject": {+ "repository": {"chain": null,"fields": null,- "hogql_value": "email_subject",+ "hogql_value": "repository","id": null,- "name": "email_subject",+ "name": "repository","schema_valid": true,"table": null,"type": "string"},- "email_from": {+ "json_schema": {"chain": null,"fields": null,- "hogql_value": "email_from",+ "hogql_value": "json_schema","id": null,- "name": "email_from",+ "name": "json_schema","schema_valid": true,"table": null,- "type": "string"+ "type": "json"},- "session_id": {+ "internal": {"chain": null,"fields": null,- "hogql_value": "session_id",+ "hogql_value": "internal","id": null,- "name": "session_id",+ "name": "internal","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "session_context": {+ "deleted": {"chain": null,"fields": null,- "hogql_value": "session_context",+ "hogql_value": "deleted","id": null,- "name": "session_context",+ "name": "deleted","schema_valid": true,"table": null,- "type": "json"+ "type": "integer"},- "sla_due_at": {+ "deleted_at": {"chain": null,"fields": null,- "hogql_value": "sla_due_at",+ "hogql_value": "deleted_at","id": null,- "name": "sla_due_at",+ "name": "deleted_at","schema_valid": true,"table": null,"type": "datetime"@@ -23746,42 +24716,14 @@"schema_valid": true,"table": null,"type": "datetime"- },- "tags": {- "chain": null,- "fields": [- "ticket_id",- "names"- ],- "hogql_value": "tags",- "id": "tags",- "name": "tags",- "schema_valid": true,- "table": "ticket_tags",- "type": "lazy_table"- },- "assignee": {- "chain": null,- "fields": [- "ticket_id",- "user_id",- "role_id",- "role_name"- ],- "hogql_value": "assignee",- "id": "assignee",- "name": "assignee",- "schema_valid": true,- "table": "ticket_assignment",- "type": "lazy_table"}},- "id": "system.support_tickets",- "name": "system.support_tickets",+ "id": "system.tasks",+ "name": "system.tasks","row_count": null,"type": "system"},- "system.surveys": {+ "system.autoresearch_pipelines": {"certification": null,"fields": {"id": {@@ -23804,132 +24746,113 @@"table": null,"type": "string"},- "type": {+ "description": {"chain": null,"fields": null,- "hogql_value": "type",+ "hogql_value": "description","id": null,- "name": "type",+ "name": "description","schema_valid": true,"table": null,"type": "string"},- "questions": {+ "target_event": {"chain": null,"fields": null,- "hogql_value": "questions",+ "hogql_value": "target_event","id": null,- "name": "questions",+ "name": "target_event","schema_valid": true,"table": null,- "type": "json"+ "type": "string"},- "appearance": {+ "horizon_days": {"chain": null,"fields": null,- "hogql_value": "appearance",+ "hogql_value": "horizon_days","id": null,- "name": "appearance",+ "name": "horizon_days","schema_valid": true,"table": null,- "type": "json"+ "type": "integer"},- "start_date": {+ "status": {"chain": null,"fields": null,- "hogql_value": "start_date",+ "hogql_value": "status","id": null,- "name": "start_date",+ "name": "status","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"},- "end_date": {+ "iteration_budget": {"chain": null,"fields": null,- "hogql_value": "end_date",+ "hogql_value": "iteration_budget","id": null,- "name": "end_date",+ "name": "iteration_budget","schema_valid": true,"table": null,- "type": "datetime"+ "type": "integer"},- "created_by_id": {+ "iteration_budget_remaining": {"chain": null,"fields": null,- "hogql_value": "created_by_id",+ "hogql_value": "iteration_budget_remaining","id": null,- "name": "created_by_id",+ "name": "iteration_budget_remaining","schema_valid": true,"table": null,"type": "integer"},- "created_at": {- "chain": null,- "fields": null,- "hogql_value": "created_at",- "id": null,- "name": "created_at",- "schema_valid": true,- "table": null,- "type": "datetime"- }- },- "id": "system.surveys",- "name": "system.surveys",- "row_count": null,- "type": "system"- },- "system.survey_response_archives": {- "certification": null,- "fields": {- "id": {+ "output_person_property": {"chain": null,"fields": null,- "hogql_value": "id",+ "hogql_value": "output_person_property","id": null,- "name": "id",+ "name": "output_person_property","schema_valid": true,"table": null,"type": "string"},- "survey_id": {+ "last_scored_at": {"chain": null,"fields": null,- "hogql_value": "survey_id",+ "hogql_value": "last_scored_at","id": null,- "name": "survey_id",+ "name": "last_scored_at","schema_valid": true,"table": null,- "type": "string"+ "type": "datetime"},- "response_uuid": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "response_uuid",+ "hogql_value": "created_at","id": null,- "name": "response_uuid",+ "name": "created_at","schema_valid": true,"table": null,- "type": "string"+ "type": "datetime"},- "archived_at": {+ "updated_at": {"chain": null,"fields": null,- "hogql_value": "archived_at",+ "hogql_value": "updated_at","id": null,- "name": "archived_at",+ "name": "updated_at","schema_valid": true,"table": null,"type": "datetime"}},- "id": "system.survey_response_archives",- "name": "system.survey_response_archives",+ "id": "system.autoresearch_pipelines",+ "name": "system.autoresearch_pipelines","row_count": null,"type": "system"},- "system.task_runs": {+ "system.autoresearch_training_runs": {"certification": null,"fields": {"id": {@@ -23942,6 +24865,16 @@"table": null,"type": "string"},+ "pipeline_id": {+ "chain": null,+ "fields": null,+ "hogql_value": "pipeline_id",+ "id": null,+ "name": "pipeline_id",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },"task_id": {"chain": null,"fields": null,@@ -23952,113 +24885,113 @@"table": null,"type": "string"},- "branch": {+ "task_run_id": {"chain": null,"fields": null,- "hogql_value": "branch",+ "hogql_value": "task_run_id","id": null,- "name": "branch",+ "name": "task_run_id","schema_valid": true,"table": null,"type": "string"},- "environment": {+ "status": {"chain": null,"fields": null,- "hogql_value": "environment",+ "hogql_value": "status","id": null,- "name": "environment",+ "name": "status","schema_valid": true,"table": null,"type": "string"},- "stage": {+ "iteration_budget": {"chain": null,"fields": null,- "hogql_value": "stage",+ "hogql_value": "iteration_budget","id": null,- "name": "stage",+ "name": "iteration_budget","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "status": {+ "iteration_count": {"chain": null,"fields": null,- "hogql_value": "status",+ "hogql_value": "iteration_count","id": null,- "name": "status",+ "name": "iteration_count","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "error_message": {+ "best_holdout_score": {"chain": null,"fields": null,- "hogql_value": "error_message",+ "hogql_value": "best_holdout_score","id": null,- "name": "error_message",+ "name": "best_holdout_score","schema_valid": true,"table": null,- "type": "string"+ "type": "float"},- "output": {+ "error": {"chain": null,"fields": null,- "hogql_value": "output",+ "hogql_value": "error","id": null,- "name": "output",+ "name": "error","schema_valid": true,"table": null,- "type": "json"+ "type": "string"},- "artifacts": {+ "summary": {"chain": null,"fields": null,- "hogql_value": "artifacts",+ "hogql_value": "summary","id": null,- "name": "artifacts",+ "name": "summary","schema_valid": true,"table": null,"type": "json"},- "created_at": {+ "started_at": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "started_at","id": null,- "name": "created_at",+ "name": "started_at","schema_valid": true,"table": null,"type": "datetime"},- "updated_at": {+ "completed_at": {"chain": null,"fields": null,- "hogql_value": "updated_at",+ "hogql_value": "completed_at","id": null,- "name": "updated_at",+ "name": "completed_at","schema_valid": true,"table": null,"type": "datetime"},- "completed_at": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "completed_at",+ "hogql_value": "created_at","id": null,- "name": "completed_at",+ "name": "created_at","schema_valid": true,"table": null,"type": "datetime"}},- "id": "system.task_runs",- "name": "system.task_runs",+ "id": "system.autoresearch_training_runs",+ "name": "system.autoresearch_training_runs","row_count": null,"type": "system"},- "system.tags": {+ "system.autoresearch_iterations": {"certification": null,"fields": {"id": {@@ -24071,280 +25004,301 @@"table": null,"type": "string"},- "name": {+ "pipeline_id": {"chain": null,"fields": null,- "hogql_value": "name",+ "hogql_value": "pipeline_id","id": null,- "name": "name",+ "name": "pipeline_id","schema_valid": true,"table": null,"type": "string"- }- },- "id": "system.tags",- "name": "system.tags",- "row_count": null,- "type": "system"- },- "system.tasks": {- "certification": null,- "fields": {- "id": {+ },+ "training_run_id": {"chain": null,"fields": null,- "hogql_value": "id",+ "hogql_value": "training_run_id","id": null,- "name": "id",+ "name": "training_run_id","schema_valid": true,"table": null,"type": "string"},- "created_by_id": {+ "iteration_number": {"chain": null,"fields": null,- "hogql_value": "created_by_id",+ "hogql_value": "iteration_number","id": null,- "name": "created_by_id",+ "name": "iteration_number","schema_valid": true,"table": null,"type": "integer"},- "github_integration_id": {+ "recipe_hash": {"chain": null,"fields": null,- "hogql_value": "github_integration_id",+ "hogql_value": "recipe_hash","id": null,- "name": "github_integration_id",+ "name": "recipe_hash","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "task_number": {+ "model_spec": {"chain": null,"fields": null,- "hogql_value": "task_number",+ "hogql_value": "model_spec","id": null,- "name": "task_number",+ "name": "model_spec","schema_valid": true,"table": null,- "type": "integer"+ "type": "json"},- "title": {+ "train_score": {"chain": null,"fields": null,- "hogql_value": "title",+ "hogql_value": "train_score","id": null,- "name": "title",+ "name": "train_score","schema_valid": true,"table": null,- "type": "string"+ "type": "float"},- "title_manually_set": {+ "holdout_score": {"chain": null,"fields": null,- "hogql_value": "title_manually_set",+ "hogql_value": "holdout_score","id": null,- "name": "title_manually_set",+ "name": "holdout_score","schema_valid": true,"table": null,- "type": "integer"+ "type": "float"},- "description": {+ "status": {"chain": null,"fields": null,- "hogql_value": "description",+ "hogql_value": "status","id": null,- "name": "description",+ "name": "status","schema_valid": true,"table": null,"type": "string"},- "origin_product": {+ "agent_description": {"chain": null,"fields": null,- "hogql_value": "origin_product",+ "hogql_value": "agent_description","id": null,- "name": "origin_product",+ "name": "agent_description","schema_valid": true,"table": null,"type": "string"},- "repository": {+ "agent_confidence": {"chain": null,"fields": null,- "hogql_value": "repository",+ "hogql_value": "agent_confidence","id": null,- "name": "repository",+ "name": "agent_confidence",+ "schema_valid": true,+ "table": null,+ "type": "float"+ },+ "parent_suggestion_id": {+ "chain": null,+ "fields": null,+ "hogql_value": "parent_suggestion_id",+ "id": null,+ "name": "parent_suggestion_id","schema_valid": true,"table": null,"type": "string"},- "json_schema": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "json_schema",+ "hogql_value": "created_at","id": null,- "name": "json_schema",+ "name": "created_at","schema_valid": true,"table": null,- "type": "json"+ "type": "datetime"+ }+ },+ "id": "system.autoresearch_iterations",+ "name": "system.autoresearch_iterations",+ "row_count": null,+ "type": "system"+ },+ "system.autoresearch_models": {+ "certification": null,+ "fields": {+ "id": {+ "chain": null,+ "fields": null,+ "hogql_value": "id",+ "id": null,+ "name": "id",+ "schema_valid": true,+ "table": null,+ "type": "string"},- "internal": {+ "pipeline_id": {"chain": null,"fields": null,- "hogql_value": "internal",+ "hogql_value": "pipeline_id","id": null,- "name": "internal",+ "name": "pipeline_id","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "deleted": {+ "role": {"chain": null,"fields": null,- "hogql_value": "deleted",+ "hogql_value": "role","id": null,- "name": "deleted",+ "name": "role","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "deleted_at": {+ "recipe_hash": {"chain": null,"fields": null,- "hogql_value": "deleted_at",+ "hogql_value": "recipe_hash","id": null,- "name": "deleted_at",+ "name": "recipe_hash","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"},- "created_at": {+ "holdout_score": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "holdout_score","id": null,- "name": "created_at",+ "name": "holdout_score","schema_valid": true,"table": null,- "type": "datetime"+ "type": "float"},- "updated_at": {+ "realized_score": {"chain": null,"fields": null,- "hogql_value": "updated_at",+ "hogql_value": "realized_score","id": null,- "name": "updated_at",+ "name": "realized_score","schema_valid": true,"table": null,- "type": "datetime"- }- },- "id": "system.tasks",- "name": "system.tasks",- "row_count": null,- "type": "system"- },- "system.autoresearch_pipelines": {- "certification": null,- "fields": {- "id": {+ "type": "float"+ },+ "calibration_error": {"chain": null,"fields": null,- "hogql_value": "id",+ "hogql_value": "calibration_error","id": null,- "name": "id",+ "name": "calibration_error","schema_valid": true,"table": null,- "type": "string"+ "type": "float"},- "name": {+ "metrics": {"chain": null,"fields": null,- "hogql_value": "name",+ "hogql_value": "metrics","id": null,- "name": "name",+ "name": "metrics","schema_valid": true,"table": null,- "type": "string"+ "type": "json"},- "description": {+ "model_explanation": {"chain": null,"fields": null,- "hogql_value": "description",+ "hogql_value": "model_explanation","id": null,- "name": "description",+ "name": "model_explanation","schema_valid": true,"table": null,- "type": "string"+ "type": "json"},- "target_event": {+ "negative_sample_rate": {"chain": null,"fields": null,- "hogql_value": "target_event",+ "hogql_value": "negative_sample_rate","id": null,- "name": "target_event",+ "name": "negative_sample_rate","schema_valid": true,"table": null,- "type": "string"+ "type": "float"},- "horizon_days": {+ "source_training_run_id": {"chain": null,"fields": null,- "hogql_value": "horizon_days",+ "hogql_value": "source_training_run_id","id": null,- "name": "horizon_days",+ "name": "source_training_run_id","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "status": {+ "agent_description": {"chain": null,"fields": null,- "hogql_value": "status",+ "hogql_value": "agent_description","id": null,- "name": "status",+ "name": "agent_description","schema_valid": true,"table": null,"type": "string"},- "iteration_budget": {+ "trained_on_start": {"chain": null,"fields": null,- "hogql_value": "iteration_budget",+ "hogql_value": "trained_on_start","id": null,- "name": "iteration_budget",+ "name": "trained_on_start","schema_valid": true,"table": null,- "type": "integer"+ "type": "date"},- "iteration_budget_remaining": {+ "trained_on_end": {"chain": null,"fields": null,- "hogql_value": "iteration_budget_remaining",+ "hogql_value": "trained_on_end","id": null,- "name": "iteration_budget_remaining",+ "name": "trained_on_end","schema_valid": true,"table": null,- "type": "integer"+ "type": "date"},- "output_person_property": {+ "is_preliminary": {"chain": null,"fields": null,- "hogql_value": "output_person_property",+ "hogql_value": "is_preliminary","id": null,- "name": "output_person_property",+ "name": "is_preliminary","schema_valid": true,"table": null,- "type": "string"+ "type": "boolean"},- "last_scored_at": {+ "promoted_at": {"chain": null,"fields": null,- "hogql_value": "last_scored_at",+ "hogql_value": "promoted_at","id": null,- "name": "last_scored_at",+ "name": "promoted_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ },+ "archived_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "archived_at",+ "id": null,+ "name": "archived_at","schema_valid": true,"table": null,"type": "datetime"@@ -24370,8 +25324,8 @@"type": "datetime"}},- "id": "system.autoresearch_pipelines",- "name": "system.autoresearch_pipelines",+ "id": "system.autoresearch_models",+ "name": "system.autoresearch_models","row_count": null,"type": "system"},diff --git a/products/autoresearch/backend/facade/testing.py b/products/autoresearch/backend/facade/testing.pyindex c1d839c8d3bd..512d76579fca 100644--- a/products/autoresearch/backend/facade/testing.py+++ b/products/autoresearch/backend/facade/testing.py@@ -1,17 +1,49 @@"""Test-support facade for autoresearch.-Suites outside this product plant pipeline rows through here instead of importing the-model. The model is team-scoped and fail-closed, so this opens the scope the insert needs.+Suites outside this product plant rows through here instead of importing the models. The model is team-scoped and fail-closed, so this opens the scope the insert needs."""from uuid import UUIDfrom posthog.models.scoping import team_scope-from products.autoresearch.backend.models import AutoresearchPipeline+from products.autoresearch.backend.models import (+ AutoresearchIteration,+ AutoresearchModel,+ AutoresearchPipeline,+ AutoresearchTrainingRun,+)def create_pipeline(*, team_id: int, name: str, target_event: str = "$pageview") -> UUID:with team_scope(team_id):pipeline = AutoresearchPipeline.objects.create(team_id=team_id, name=name, target_event=target_event)return pipeline.pk+++def create_training_run(*, pipeline_id: UUID) -> UUID:+ pipeline = AutoresearchPipeline.all_teams.get(pk=pipeline_id)+ with team_scope(pipeline.team_id):+ training_run = AutoresearchTrainingRun.objects.create(pipeline=pipeline)+ return training_run.pk+++def create_iteration(*, training_run_id: UUID, iteration_number: int = 1) -> UUID:+ training_run = AutoresearchTrainingRun.all_teams.select_related("pipeline").get(pk=training_run_id)+ with team_scope(training_run.team_id):+ iteration = AutoresearchIteration.objects.create(+ pipeline=training_run.pipeline,+ training_run=training_run,+ iteration_number=iteration_number,+ recipe_hash="0" * 64,+ recipe_snapshot={},+ status=AutoresearchIteration.Status.KEPT,+ )+ return iteration.pk+++def create_model(*, pipeline_id: UUID) -> UUID:+ pipeline = AutoresearchPipeline.all_teams.get(pk=pipeline_id)+ with team_scope(pipeline.team_id):+ model = AutoresearchModel.objects.create(pipeline=pipeline, recipe_hash="0" * 64, model_recipe={})+ return model.pk