sam 9b282177e0 feat(webui): name a workflow's declared inputs on the work-request form
The dashboard could not name a workflow's declared inputs, so POST
/api/work-requests admitted a pr-review task with no pr_number, which then
failed at the workflow's intake stage (archie-core-06nq). The handler now takes
`inputs`, checks it against the workflow's declared interface before admitting
the task, and carries it through SpawnRequest.Inputs -> EnqueueChatTaskRequest;
the form renders one field per declared input, sends a declared number as a
number, and keeps Start disabled while a required input is empty.

Item 2 of the lane brief -- archie-core-afbk.12, review.precision_gate /
review.approve_before_post in the dashboard Config tab -- is deliberately NOT in
this commit. The surface it describes no longer exists in this tree; the
supervisor's decision was to stop it and re-scope it as its own lane, and the
facts it must start from belong in the branch's record:

* The Config-tab components were deleted by b5c98a0c (2026-09-25, "the legacy
  config catalog stops advertising fields the control plane owns"): ConfigSections.vue,
  ConfigRow.vue, ConfigControl.vue, ConfigList.vue, ConfigNotices.vue,
  ConfigUnavailable.vue, config-field.ts and sections.ts all went, because no
  page used them. Descriptor entries in internal/webui/config_schema.go would
  therefore change nothing a person can see: the only consumer of GET /api/config
  is SystemModelsPage reading `catalog`; the per-field `schema` has no renderer.
* The config write seams went earlier, in 295f8d69 (2026-09-21, "delete the
  runtime config overlay"): UpdateConfig, ResetConfig and UpdateRepoField are
  gone and internal/webui/server.go serves only GET /api/config. Configuration
  is written through the control plane.
* No control-plane resource carries review settings. executionSettingsDocument
  (internal/app/controlplane/workflow_settings.go) and workflow.ExecutionSettings
  carry only the four budget fields, and runtimeConfigFrom never layers
  cfg.Review. That is exactly why the budget descriptors survive in the catalog
  and review.* cannot: budgets are saved through workflow-execution-settings,
  edited on the Task-execution page, so those entries match a real write path.
* The brief's precedent name is wrong: TestToolSettingsProjectionCarriesEveryMCPServerField
  does not exist. The precedent is TestToolSettingsProjectionCarriesEveryMirroredField
  (internal/app/controlplane/runtime_config_test.go:349).

Making review.* genuinely editable needs a carrying control-plane resource
(extend workflow-execution-settings or add a review-settings kind), a layering
step in internal/app/archied/control_plane.go, and the round-trip test that
precedent sets -- an unsettled design decision spanning packages this lane does
not own.
2026-09-30 04:00:31 +10:00
2026-09-29 15:41:53 +10:00

Quality

Archie

Event-driven Agentic Automation

Archie connects events from your systems to agents that can investigate, reason, and act. Define what an event means, map its data into a workflow, and give that workflow an agent equipped for the job: its own execution environment, tools, and identity.

The aim is to automate work across system administration, incident response, network operations, service management, and software delivery. You define the process and the access it requires; agents work through its stages, using the context of each event to decide how to accomplish the task.

Archie is under active development. The model below describes the project's approved direction, with implementation progressing across event automation and organisation access control. The event automation design and organisations and access design describe those capabilities and their delivery stages.

From an event to an outcome

Event source → Event type → Mapping → Binding → Workflow → Agent
Concept Purpose
Source Receive events from a system such as a firewall, monitoring stack, service desk, or forge. Configure its endpoint and signing requirements.
Event type Identify which kind of event arrived from its headers and payload. Infer a schema from captured events or a pasted example.
Mapping Extract named, typed parameters from the event. Reuse a mapping across bindings and see how often it matches.
Binding Select a workflow, filter the events that should trigger it, and supply its inputs from mapped values or constants.
Workflow Define the stages of work, their inputs and outputs, and the agent profile to use. Call other workflows when work needs another specialist or process.
Agent Execute the work in a container with the tools for its purpose, acting under its own identity and granted permissions.

A single source can produce several event types. An event type can feed several bindings, and each binding can apply its own conditions. This lets the same incoming data drive different responses without building a custom integration for every workflow.

For example, a firewall sends a blocked-connection event. Archie identifies the event type and maps the source address and severity into an investigation workflow. A network investigator gathers evidence, assesses the activity, and returns its findings. The workflow could then call a separate containment workflow, subject to the permissions and approvals configured for that action.

The same model supports other processes:

  • Infrastructure operations: A monitoring alert starts a diagnostic workflow to inspect a service, collect evidence, and propose or perform an authorised recovery action.
  • Service management: An incoming request supplies the parameters for a triage, investigation, or fulfilment workflow.
  • Software delivery: A forge event starts a review or implementation workflow with the repository's toolchain, validation steps, and pull request as its output.

These are examples of workflows you can build. Their behaviour comes from the workflow, tools, and access you configure.

Agents equipped for their work

An agent profile selects the container image and available tools. You can supply images with the software needed for a particular environment: network utilities for an investigator, operational tooling for a systems agent, or a language runtime and test framework for repository work.

Workflows declare structured inputs and can return structured outputs. They can run with a scratch workspace, require a repository, or accept one optionally. An investigation can finish with a report; a maintenance workflow can finish with an operational result; a coding workflow can finish with a pull request.

Workflows can also call other workflows and pass data between them. Each called workflow has its own run and agent profile. A caller can wait for the result or continue while the called workflow runs independently.

See the firewall investigation example for a workflow that uses typed inputs, a network investigator profile, and no repository.

Organisations, identities, and controlled execution

The approved access model organises automation into organisations and workspaces. An organisation owns its members, agent identities, secrets, profiles, and workflows. Workspaces group sources, mappings, bindings, and runs by team responsibility or environment, such as network operations in production. Each organisation can enable the default workflows it needs and add its own.

Agents act as their own identities. A workflow names the identity it runs as; secrets and permissions are granted to that identity. Starting an agent is an audited action, with a record of the workflow and the event or member that initiated it.

The design combines roles for routine administration with attribute-based policies for resources and execution context. Policies apply from the instance through the organisation, workspace, identity, workflow, and individual object. Lower levels can narrow access, and a denial takes precedence. Organisation and workspace policy also determines which actions require approval from another member.

Authorised runs receive credentials scoped to their identity, workspace, and work. Event data supplies the task's inputs; it cannot grant additional access. The organisations and access design defines this model; it remains an active implementation area.

Building and operating automations

The dashboard brings together event inspection, mappings, bindings, workflows, and task activity. The intended authoring path starts with a real payload or an example: identify its structure, map the fields you need, select a workflow, and approve the binding.

Sources default to signed delivery. The event automation design also allows an explicitly approved unsigned source for systems that cannot sign payloads, with that status visible to operators. Binding changes require re-approval before they can dispatch work.

Playbooks and extension points provide additional orchestration through workflows, modules, channels, and forges. The playbook engine design describes how registered capabilities become actions that event rules can call.

Develop locally

The repository requires Go 1.27, Task, Node.js and npm, and Docker with a running daemon. The development stack starts PostgreSQL 18 through Docker Compose. Install the Go formatting and lint tools listed in CLAUDE.md before running the full quality gate.

task dev

Open http://localhost:5173 for the dashboard with Vite hot reload. task dev starts the daemon, Gateway, State Store, UI service, and frontend development server; it uses deployments/dev.toml as a local configuration overlay. Set credentials and other required settings in your local Archie configuration as needed.

Useful checks:

task build       # build the service and agent binaries in bin/
task test        # run the short Go test suite
task check       # run the repository quality gate

Deploy

Start with the deployment examples. They cover a single GitHub forge, multiple GitHub and Gitea identities, local Ollama, and an external NATS stack. Copy a suitable template to ${XDG_CONFIG_HOME:-~/.config}/archie/config.toml, then set its repository, model, credential, and service settings for your environment. The examples describe the required PostgreSQL connection and how to start each process. A systemd user service guide is available, but systemd is optional.

Documentation

Contributions should follow AGENTS.md, including its testing, generated-file, and commit rules.

License

Copyright 2026 Sam Catlow. Licensed under the Apache License, Version 2.0. Third-party attributions are in NOTICE.

S
Description
Archie connects events from your systems to agents that can investigate, reason, and act. Define what an event means, map its data into a workflow, and give that workflow an agent equipped for the job: its own execution environment, tools, and identity.
https://archie.catlow.cloud
Readme Apache-2.0
133 MiB
0 Stars 1 Watchers 0 Forks
2026-11-10 10:01:23 +00:00
Languages
Go 76.9%
Vue 13.1%
TypeScript 7.7%
JavaScript 1.2%
Shell 0.6%
Other 0.4%