feat(workflows): firewall workflow package; pack.sh builds files-only packages

This commit is contained in:
sam committed 2026-10-04 03:10:06 +11:00
1 parent 7b34ada564
commit 6db3299f15
5 files changed
+86 -9

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
apiVersion: dev.archie.package.v1
displayName: Firewall investigate and contain
description: Investigate a source address from firewall logs, then decide and record containment. Needs a network-investigator agent profile.
version: 1.0.0
contributes:
workflows:
- workflows/firewall-investigate.yaml
- workflows/firewall-contain.yaml
files:
- path: workflows/firewall-investigate.yaml
mode: 420
- path: workflows/firewall-contain.yaml
mode: 420
@@ -0,0 +1,27 @@
# The containment workflow a firewall-investigate run calls:
# firewall-investigate (workflow.call, wait: true) hands its findings upward
# from its declared summary, and this workflow's own agent stage decides and
# records the containment as its own declared outputs. Paste it into the
# dashboard's workflow definitions alongside firewall-investigate.
id: firewall-contain
repository: none
profile: network-investigator
inputs:
src_ip: { type: string, required: true }
outputs:
contained: { type: bool, required: true }
summary: { type: string }
steps:
- type: workflow.call
settings:
workflow: firewall-investigate
wait: true
inputs: { src_ip: "inputs.src_ip" }
outputs: { summary: "outputs.summary" }
- type: agent.run
settings:
mission: >-
Using the investigation summary the called workflow returned, decide
whether the source address in the inputs should be contained. Write
your decision with the contained tool, and a one-line rationale with
the summary tool.
@@ -0,0 +1,25 @@
# A workflow with no repository: a binding on a firewall event type assigns
# src_ip from a mapped parameter and runs one agent mission in a scratch
# workspace under the network-investigator profile. Paste it into the
# dashboard's workflow definitions.
#
# Its declared output (summary) is offered to the agent stages as a capture
# tool named after it; a wait:true caller publishes it as one of its own
# outputs.
id: firewall-investigate
repository: none
profile: network-investigator
inputs:
src_ip: { type: string, required: true }
severity: { type: string }
outputs:
summary: { type: string }
steps:
- type: agent.run
settings:
mission: >-
Investigate the source address in the inputs: who owns it, what it
resolves to, and whether it is reachable. Report what you found and
how serious it looks given the severity, and write your one-line
conclusion with the summary tool.
read_only: true