workflow bump
This commit is contained in:
1 parent
e72789fbb1
commit
3b44ae1354
2 files changed
+18
-15
No files matched your search
@@ -2,24 +2,26 @@ name = "journal-triage"
|
|||||||
description = "Collect journald warnings, triage them with Claude Opus against this repo, and write an urgency-ranked report with fixes as repo changes."
|
description = "Collect journald warnings, triage them with Claude Opus against this repo, and write an urgency-ranked report with fixes as repo changes."
|
||||||
|
|
||||||
[inputs.static]
|
[inputs.static]
|
||||||
since = { type = "string", min_length = 1, default = "24 hours ago" }
|
since = { type = "string", description = "How far back to read the journal.", min_length = 1, default = "24 hours ago" }
|
||||||
priority = { type = "enum", values = ["err", "warning", "notice"], default = "warning" }
|
priority = { type = "enum", description = "Lowest log priority to include.", values = ["err", "warning", "notice"], default = "warning" }
|
||||||
host = { type = "string", min_length = 1, default = "fwbook" }
|
host = { type = "string", description = "Name of the host folder under hosts/ to trace issues to.", min_length = 1, default = "fwbook" }
|
||||||
repo = { type = "string", min_length = 1, default = "/home/ari/nixos-setup" }
|
repo = { type = "string", description = "Path of the NixOS config repo.", min_length = 1, default = "/home/ari/nixos-setup" }
|
||||||
|
|
||||||
[[step.collect]]
|
[[step.collect]]
|
||||||
kind = "shell"
|
kind = "shell"
|
||||||
|
description = "Collects journal warnings and failed units into a digest."
|
||||||
cwd = "{{ inputs.repo }}"
|
cwd = "{{ inputs.repo }}"
|
||||||
run = ["sh .agents/workflows/journal-triage/collect.sh {{ inputs.since }} {{ inputs.priority }}"]
|
run = ["sh .agents/workflows/journal-triage/collect.sh {{ inputs.since }} {{ inputs.priority }}"]
|
||||||
|
|
||||||
[step.collect.outputs]
|
[step.collect.outputs]
|
||||||
raw_log = { type = "string" }
|
raw_log = { type = "string", description = "Path of the full raw journal log." }
|
||||||
digest = { type = "string" }
|
digest = { type = "string", description = "Path of the deduplicated digest." }
|
||||||
lines = { type = "int" }
|
lines = { type = "int", description = "Number of raw log lines." }
|
||||||
unique = { type = "int" }
|
unique = { type = "int", description = "Number of distinct messages." }
|
||||||
|
|
||||||
[[step.triage]]
|
[[step.triage]]
|
||||||
kind = "agent"
|
kind = "agent"
|
||||||
|
description = "Has Opus triage the log against the repo and suggest fixes."
|
||||||
needs = ["collect"]
|
needs = ["collect"]
|
||||||
agent = { command = ["claude-agent-acp"], model = "opus" }
|
agent = { command = ["claude-agent-acp"], model = "opus" }
|
||||||
cwd = "{{ inputs.repo }}"
|
cwd = "{{ inputs.repo }}"
|
||||||
@@ -27,11 +29,12 @@ brief = "journal-triage/triage.md"
|
|||||||
failover = "agent"
|
failover = "agent"
|
||||||
|
|
||||||
[step.triage.outputs]
|
[step.triage.outputs]
|
||||||
summary = { type = "string", min_length = 1 }
|
summary = { type = "string", description = "Markdown report ranked by urgency.", min_length = 1 }
|
||||||
issues = { type = "list", items = { title = { type = "string" }, urgency = { type = "enum", values = ["critical", "high", "medium", "low", "noise"] }, fix = { type = "string" }, files = { type = "list" } } }
|
issues = { type = "list", description = "The issues found, with urgency, fix and files.", items = { title = { type = "string" }, urgency = { type = "enum", values = ["critical", "high", "medium", "low", "noise"] }, fix = { type = "string" }, files = { type = "list" } } }
|
||||||
|
|
||||||
[[step.report]]
|
[[step.report]]
|
||||||
kind = "shell"
|
kind = "shell"
|
||||||
|
description = "Writes the report to .tmp/journal-reports."
|
||||||
needs = ["triage"]
|
needs = ["triage"]
|
||||||
run = [
|
run = [
|
||||||
"R={{ inputs.repo }}; mkdir -p \"$R/.tmp/journal-reports\"",
|
"R={{ inputs.repo }}; mkdir -p \"$R/.tmp/journal-reports\"",
|
||||||
@@ -39,4 +42,4 @@ run = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[step.report.outputs]
|
[step.report.outputs]
|
||||||
report = { type = "string" }
|
report = { type = "string", description = "Path of the written report." }
|
||||||
Generated
+4
-4
@@ -2204,11 +2204,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1794324706,
|
"lastModified": 1794330522,
|
||||||
"narHash": "sha256-aa8MBYatnF1OBY1D5Xy1Tj7/Eaf+bYXy19g/PiumQt8=",
|
"narHash": "sha256-iwfrBtoR5303uSDY0SWeYRtd+ekB26jMXPW3rnooucg=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "c7491a0ad13b4e51490a10979d98fc5966ff3d39",
|
"rev": "05afda23236f04d0b182d682b633c053cc051032",
|
||||||
"revCount": 1196,
|
"revCount": 1204,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "ssh://git@github.com/asosnovsky/nbot.git"
|
"url": "ssh://git@github.com/asosnovsky/nbot.git"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user