feat(controlplane): playbooks and agent profiles install from packages; the daemon reads eda-playbooks live
This commit is contained in:
1 parent
5d03513633
commit
f0b34892da
17 files changed
+475
-141
No files matched your search
@@ -1,48 +0,0 @@
|
||||
# Example EDA playbook document (t2db.15 slice).
|
||||
#
|
||||
# Install: copy this file into the configured eda_playbook_dir (default
|
||||
# ~/.config/archie/eda-playbooks) and restart archied. It is loaded at
|
||||
# startup with the reject-at-load rule: any malformed playbook, a mixed
|
||||
# workflow/module action shape, or a `when`/args compile failure aborts
|
||||
# startup with a reported error -- a partially-valid set never runs.
|
||||
#
|
||||
# This file is the workflow playbook shape: exactly one action, position:
|
||||
# workflow. Action playbooks (one or more module actions) load and type-check
|
||||
# but do not execute yet.
|
||||
#
|
||||
# A trigger matches on either axis, and both are checked when both are given:
|
||||
#
|
||||
# kind: the closed workintake routing vocabulary -- bug, feature,
|
||||
# bootstrap, default. It is closed because a kind also addresses the
|
||||
# task's NATS subject; anything else is rejected at load. Set it
|
||||
# when you want the rule to follow archie's own classification.
|
||||
# labels: any labels you like, including ones no kind recognises
|
||||
# ("ops::security-review"). All of them must be present on the
|
||||
# issue. This is the axis an instance defines for itself: it binds
|
||||
# your own taxonomy to a workflow with no code change. See
|
||||
# label-trigger.yaml. The `when` condition is a CEL
|
||||
# expression over `event`.
|
||||
#
|
||||
# A matching playbook decides the task's workflow ahead of the kind/label
|
||||
# binding files, and a workflow it names that is not defined parks the task
|
||||
# rather than falling back. For a forge-discovered task, `event` carries:
|
||||
#
|
||||
# kind routing kind the labels produced (bug/feature/bootstrap/default)
|
||||
# labels the issue's labels, as a list
|
||||
# owner repo owner
|
||||
# repo repo name
|
||||
# number issue number
|
||||
# title issue title
|
||||
# body issue body
|
||||
# source "forge" or "chat"
|
||||
#
|
||||
# Reading a field that is not in that set is an evaluation error, which the
|
||||
# coordinator treats as the condition being false (the playbook is skipped).
|
||||
|
||||
trigger:
|
||||
kind: bug
|
||||
|
||||
actions:
|
||||
- position: workflow
|
||||
workflow: tdd
|
||||
when: '"regression" in event.labels'
|
||||
@@ -1,19 +0,0 @@
|
||||
# Example EDA playbook triggering on an instance-defined label.
|
||||
#
|
||||
# The kind axis (bug/feature/bootstrap/default) is archie's own closed
|
||||
# classification. This file is the other axis: a label set of your own
|
||||
# choosing, matched as a subset of the issue's labels. Every label listed here
|
||||
# must be present on the issue for the playbook to fire.
|
||||
#
|
||||
# A matching playbook decides the task's workflow ahead of the
|
||||
# workflow_routing_file, workflow_labels_file and playbook_dirs bindings. The
|
||||
# workflow it names must be a defined workflow; naming one that is not parks
|
||||
# the task with a reported error rather than quietly running a different one.
|
||||
|
||||
trigger:
|
||||
labels:
|
||||
- ops::security-review
|
||||
|
||||
actions:
|
||||
- position: workflow
|
||||
workflow: feasibility
|
||||
@@ -1,6 +1,6 @@
|
||||
# An agent profile image: the archie-agent image plus network lookup tools,
|
||||
# for a workflow that investigates addresses rather than code. Select it with
|
||||
# [containers.profiles.network-investigator] image = "archie-agent-net:local".
|
||||
# the network-investigator profile package (archipelago: profiles/network-investigator).
|
||||
#
|
||||
# Build: docker compose build agent-net
|
||||
ARG AGENT_IMAGE=ghcr.io/samcharles93/archie-agent:latest
|
||||
|
||||
Reference in new issue
Block a user