docs: fix supplier ActivityDefinition rule path syntax

Use context.* field paths and {context.*} placeholders to match
activity-core rule evaluator conventions.
This commit is contained in:
2026-06-18 08:11:14 +02:00
parent 7424893758
commit c5798f58e4
3 changed files with 13 additions and 13 deletions

View File

@@ -33,15 +33,15 @@ returns one `scheduled_run` per `(repo, agent)`; this definition selects the
id: run-weekly-coach id: run-weekly-coach
for_each: context.scheduled_runs for_each: context.scheduled_runs
bind_as: r bind_as: r
condition: 'r.agent == "coach" and r.enabled == true' condition: 'context.r.agent == "coach" and context.r.enabled'
action: action:
task_template: "Weekly coach orientation: {{r.repo}}" task_template: "Weekly coach orientation: {context.r.repo}"
description: | description: |
{{r.prepare_command}} {context.r.prepare_command}
Then load agents/agent-coach.md in a coding-agent session, paste the Then load agents/agent-coach.md in a coding-agent session, paste the
prepared bundle, and follow the coach synthesis. At session close: prepared bundle, and follow the coach synthesis. At session close:
kaizen-agentic metrics record coach --success --time <s> --quality <0-1> kaizen-agentic metrics record coach --success --time <s> --quality <0-1>
target_repo: "{{r.repo}}" target_repo: context.r.repo
priority: medium priority: medium
labels: ["kaizen", "agent-run", "coach", "scheduled", "automated"] labels: ["kaizen", "agent-run", "coach", "scheduled", "automated"]
``` ```

View File

@@ -27,13 +27,13 @@ Invokes the kaizen-agentic optimizer CLI per project.
id: run-weekly-optimizer id: run-weekly-optimizer
for_each: context.projects for_each: context.projects
bind_as: p bind_as: p
condition: 'p.has_metrics == true' condition: 'context.p.has_metrics'
action: action:
task_template: "Run kaizen metrics optimize on {{p.repo}}" task_template: "Run kaizen metrics optimize on {context.p.repo}"
description: | description: |
cd {{p.root}} && kaizen-agentic metrics optimize cd {context.p.root} && kaizen-agentic metrics optimize
Optional: kaizen-agentic metrics publish (when artifact-store configured) Optional: kaizen-agentic metrics publish (when artifact-store configured)
target_repo: "{{p.repo}}" target_repo: context.p.repo
priority: medium priority: medium
labels: ["kaizen", "metrics", "optimizer", "automated"] labels: ["kaizen", "metrics", "optimizer", "automated"]
``` ```

View File

@@ -30,16 +30,16 @@ review is evidence-backed.
id: run-weekly-optimization id: run-weekly-optimization
for_each: context.scheduled_runs for_each: context.scheduled_runs
bind_as: r bind_as: r
condition: 'r.agent == "optimization" and r.enabled == true' condition: 'context.r.agent == "optimization" and context.r.enabled'
action: action:
task_template: "Weekly optimization review: {{r.repo}}" task_template: "Weekly optimization review: {context.r.repo}"
description: | description: |
{{r.prepare_command}} {context.r.prepare_command}
kaizen-agentic metrics optimize # refresh evidence kaizen-agentic metrics optimize # refresh evidence
Then load agents/agent-optimization.md, paste the prepared bundle plus the Then load agents/agent-optimization.md, paste the prepared bundle plus the
optimizer report, and act on recommendations. At session close: optimizer report, and act on recommendations. At session close:
kaizen-agentic metrics record optimization --success --time <s> --quality <0-1> kaizen-agentic metrics record optimization --success --time <s> --quality <0-1>
target_repo: "{{r.repo}}" target_repo: context.r.repo
priority: medium priority: medium
labels: ["kaizen", "agent-run", "optimization", "scheduled", "automated"] labels: ["kaizen", "agent-run", "optimization", "scheduled", "automated"]
``` ```