chore(state-store): remove the one-time SQLite import and db_path
Every install serves from Postgres, so the legacyread/legacyimport packages, the archie-state-store import command, the boot gate that refused to serve over unimported SQLite files, and db_path (which only located those files) go. Migration 0010 drops the import_completion table.
This commit is contained in:
1 parent
d61e49b2c9
commit
8c55b5d4e4
65 files changed
+138
-3350
No files matched your search
@@ -16,9 +16,10 @@ 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
|
||||
organization access control. The [event automation design](docs/prds/event-automation.md)
|
||||
and [organizations and access design](docs/prds/orgs-and-access.md) describe
|
||||
those capabilities and their delivery stages.
|
||||
organisation access control. The
|
||||
[event automation design](docs/prds/event-automation.md) and
|
||||
[organisations and access design](docs/prds/orgs-and-access.md) describe those
|
||||
capabilities and their delivery stages.
|
||||
|
||||
## From an event to an outcome
|
||||
|
||||
@@ -26,14 +27,14 @@ those capabilities and their delivery stages.
|
||||
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. |
|
||||
| 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
|
||||
@@ -49,7 +50,7 @@ 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 authorized
|
||||
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.
|
||||
@@ -68,25 +69,26 @@ 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.
|
||||
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](examples/workflows/firewall-investigate.yaml)
|
||||
See the
|
||||
[firewall investigation example](examples/workflows/firewall-investigate.yaml)
|
||||
for a workflow that uses typed inputs, a network investigator profile, and no
|
||||
repository.
|
||||
|
||||
## Organizations, identities, and controlled execution
|
||||
## Organisations, identities, and controlled execution
|
||||
|
||||
The approved access model organizes automation into **organizations** and
|
||||
**workspaces**. An organization owns its members, agent identities, secrets,
|
||||
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 organization can enable the default workflows it needs and add its own.
|
||||
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
|
||||
@@ -95,22 +97,22 @@ 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 organization, workspace, identity, workflow, and individual object.
|
||||
Lower levels can narrow access, and a denial takes precedence. Organization and
|
||||
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.
|
||||
|
||||
Authorized runs receive credentials scoped to their identity, workspace, and
|
||||
Authorised runs receive credentials scoped to their identity, workspace, and
|
||||
work. Event data supplies the task's inputs; it cannot grant additional access.
|
||||
The [organizations and access design](docs/prds/orgs-and-access.md) defines this
|
||||
The [organisations and access design](docs/prds/orgs-and-access.md) 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.
|
||||
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
|
||||
@@ -118,18 +120,26 @@ 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](docs/prds/eda-playbook-engine.md)
|
||||
describes how registered capabilities become actions that event rules can call.
|
||||
workflows, modules, channels, and forges. The
|
||||
[playbook engine design](docs/prds/eda-playbook-engine.md) describes how
|
||||
registered capabilities become actions that event rules can call.
|
||||
|
||||
## Develop locally
|
||||
|
||||
The repository requires Go 1.27, [Task](https://taskfile.dev/), 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](CLAUDE.md#build--test) before running the full quality gate.
|
||||
The repository requires Go 1.27, [Task](https://taskfile.dev/), 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](CLAUDE.md#build--test) before running the full quality gate.
|
||||
|
||||
```bash
|
||||
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`](deployments/dev.toml) as a local configuration overlay. Set credentials and other required settings in your local Archie configuration as needed.
|
||||
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`](deployments/dev.toml) as a local
|
||||
configuration overlay. Set credentials and other required settings in your local
|
||||
Archie configuration as needed.
|
||||
|
||||
Useful checks:
|
||||
|
||||
@@ -141,16 +151,29 @@ task check # run the repository quality gate
|
||||
|
||||
## Deploy
|
||||
|
||||
Start with the [deployment examples](deployments/README.md). 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](deployments/systemd-user-service.md) is available, but systemd is optional.
|
||||
Start with the [deployment examples](deployments/README.md). 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](deployments/systemd-user-service.md) is available,
|
||||
but systemd is optional.
|
||||
|
||||
## Documentation
|
||||
|
||||
- [Event automation](docs/prds/event-automation.md) — sources, schemas, mappings, bindings, workflows, and agent profiles.
|
||||
- [Organizations and access](docs/prds/orgs-and-access.md) — tenancy, identities, permissions, approvals, and audit.
|
||||
- [Playbook engine](docs/prds/eda-playbook-engine.md) — event rules and extensible actions.
|
||||
- [Architecture decisions](docs/prds/01-project-management.md) — approved design and open migration questions.
|
||||
- [Event automation](docs/prds/event-automation.md) — sources, schemas,
|
||||
mappings, bindings, workflows, and agent profiles.
|
||||
- [Organisations and access](docs/prds/orgs-and-access.md) — tenancy,
|
||||
identities, permissions, approvals, and audit.
|
||||
- [Playbook engine](docs/prds/eda-playbook-engine.md) — event rules and
|
||||
extensible actions.
|
||||
- [Architecture decisions](docs/prds/01-project-management.md) — approved design
|
||||
and open migration questions.
|
||||
- [Development guides](docs/development/index.md) — change checklists by area.
|
||||
- [Deployment examples](deployments/README.md) — configuration templates and operating notes.
|
||||
- [Deployment examples](deployments/README.md) — configuration templates and
|
||||
operating notes.
|
||||
- [Release process](RELEASING.md) — how releases are built and published.
|
||||
|
||||
Contributions should follow [CLAUDE.md](CLAUDE.md), including its testing, generated-file, and commit rules.
|
||||
Contributions should follow [AGENTS.md](AGENTS.md), including its testing,
|
||||
generated-file, and commit rules.
|
||||
Reference in new issue
Block a user