Reorganize repo structure and standards references

This commit is contained in:
david committed 2026-06-29 05:03:42 +02:00
1 parent 3cb93a81be
commit be2054274d
5885 files changed
+2588 -195

No files matched your search

@@ -0,0 +1,28 @@
-- Phase 06 #23 — durable per-plugin-invocation audit table.
--
-- Capability-use rows already carry `pluginInvocationId`; this table
-- persists the corresponding high-level invocation outcome without raw
-- plugin input/output payloads.
CREATE TABLE "PluginInvocation" (
"id" TEXT NOT NULL,
"tenantId" TEXT NOT NULL,
"pluginId" TEXT NOT NULL,
"version" TEXT NOT NULL,
"hookName" TEXT NOT NULL,
"outcome" TEXT NOT NULL,
"failureReason" TEXT,
"message" TEXT,
"durationMs" INTEGER NOT NULL,
"fuelUsed" INTEGER,
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
CONSTRAINT "PluginInvocation_pkey" PRIMARY KEY ("id")
);
CREATE INDEX "PluginInvocation_tenantId_createdAt_idx"
ON "PluginInvocation" ("tenantId", "createdAt" DESC);
CREATE INDEX "PluginInvocation_tenantId_pluginId_createdAt_idx"
ON "PluginInvocation" ("tenantId", "pluginId", "createdAt" DESC);
CREATE INDEX "PluginInvocation_outcome_createdAt_idx"
ON "PluginInvocation" ("outcome", "createdAt" DESC);