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

+15 -14
View File
@@ -1,26 +1,27 @@
<script setup lang="ts">
import { onMounted } from "vue";
import { computed, onMounted } from "vue";
import { storeToRefs } from "pinia";
import PageHeader from "@/base/PageHeader.vue";
import { useLiveResource } from "@/stores/live-updates";
import ConfigUnavailable from "./ConfigUnavailable.vue";
import ModelsCard from "./ModelsCard.vue";
import { configUnavailable, loadConfig } from "./state";
import { resourcesForPage, useControlPlaneStore } from "@/stores/control-plane";
import StructuredResourceCard from "./StructuredResourceCard.vue";
/**
* Which model handles each stage of work, and which providers are wired up.
* Nothing on this page is editable from the dashboard: a model role is a
* structured field, and the server keeps those behind its own config path.
*/
useLiveResource(null, () => void loadConfig());
onMounted(loadConfig);
const controlPlane = useControlPlaneStore();
const { catalog, catalogError } = storeToRefs(controlPlane);
const resources = computed(() => resourcesForPage(catalog.value, "models"));
onMounted(controlPlane.load);
</script>
<template>
<div>
<PageHeader title="Models" />
<ConfigUnavailable v-if="configUnavailable" />
<ModelsCard v-else />
<p v-if="catalogError" class="text-sm text-destructive" role="alert">{{ catalogError }}</p>
<StructuredResourceCard
v-for="descriptor in resources"
:key="descriptor.kind"
:descriptor="descriptor"
:root-path="descriptor.kind === 'provider-settings' ? 'providers' : 'roles'"
/>
</div>
</template>