feat(controlplane): runtime administration over the State Store's gRPC server

The Web UI and messaging channels now read and write Archie's runtime
settings through one versioned, audited control-plane API hosted on the
State Store's existing gRPC server: catalog, query, command, watch. Each
feature owns its resource, validation and commands; storage only writes
versions and audit records.

Workflows move with it. Definitions become portable YAML compiled through
a closed, typed step registry and stored as a control-plane resource, so
the yaegi interpretation paths (internal/gate, wfeval, wfextract,
gateeval, gateextract, skillbuild) are deleted rather than carried.

The UI process reads definitions as data: the JSON projection lives in
internal/domain/workflow/task so a dashboard decodes the stored
collection without linking the workflow engine, which cmd/archie-ui's
deletion gate forbids. Shipped definitions ride the catalog descriptor
rather than a bespoke REST route, keeping the API to its four operations.

archie-messaging gains -state-store-target/-state-store-token and reads
channel settings from the database, failing closed when the State Store
is unreachable: the database is authoritative for those settings.
This commit is contained in:
sam committed 2026-09-21 08:17:42 +10:00
1 parent 2e172c679c
commit 924b02a1b0
131 files changed
+8510 -3371

No files matched your search

+6 -1
View File
@@ -6,10 +6,12 @@ import { Card, CardContent } from "@/components/ui/card";
import { Empty, EmptyDescription, EmptyHeader, EmptyTitle } from "@/components/ui/empty";
import { api } from "@/lib/api";
import { useLiveResource } from "@/stores/live-updates";
import { useControlPlaneStore } from "@/stores/control-plane";
import StartWorkForm from "./StartWorkForm.vue";
import type { StageStats } from "./stages";
import StagesSection from "./StagesSection.vue";
import WorkflowTable from "./WorkflowTable.vue";
import WorkflowDefinitionsCard from "./WorkflowDefinitionsCard.vue";
import type { WorkflowDefinition, WorkflowStats } from "./workflow-rows";
interface WorkflowsResponse {
@@ -22,6 +24,7 @@ const definitions = ref<WorkflowDefinition[]>([]);
const workflows = ref<WorkflowStats[]>([]);
const stages = ref<StageStats[]>([]);
const error = ref<string | null>(null);
const controlPlane = useControlPlaneStore();
async function load() {
try {
@@ -36,13 +39,15 @@ async function load() {
}
useLiveResource("tasks", () => void load(), 500);
onMounted(load);
onMounted(async () => { await Promise.all([load(), controlPlane.load()]); });
</script>
<template>
<div>
<PageHeader title="Workflows" />
<WorkflowDefinitionsCard />
<!-- Starting work needs a definition to start: with none served, the form
could only be submitted to fail. -->
<StartWorkForm v-if="definitions.length" :definitions="definitions" />