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
for_each: context.scheduled_runs
bind_as: r
condition: 'r.agent == "coach" and r.enabled == true'
condition: 'context.r.agent == "coach" and context.r.enabled'
action:
task_template: "Weekly coach orientation: {{r.repo}}"
task_template: "Weekly coach orientation: {context.r.repo}"
description: |
{{r.prepare_command}}
{context.r.prepare_command}
Then load agents/agent-coach.md in a coding-agent session, paste the
prepared bundle, and follow the coach synthesis. At session close:
kaizen-agentic metrics record coach --success --time <s> --quality <0-1>
target_repo: "{{r.repo}}"
target_repo: context.r.repo
priority: medium
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
for_each: context.projects
bind_as: p
condition: 'p.has_metrics == true'
condition: 'context.p.has_metrics'
action:
task_template: "Run kaizen metrics optimize on {{p.repo}}"
task_template: "Run kaizen metrics optimize on {context.p.repo}"
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)
target_repo: "{{p.repo}}"
target_repo: context.p.repo
priority: medium
labels: ["kaizen", "metrics", "optimizer", "automated"]
```
@@ -41,4 +41,4 @@ action:
**Activation:** sync this definition into activity-core via `make sync-activity-definitions`
after enabling the shell resolver for `discover_kaizen_projects`.
**CLI mapping:** `kaizen-agentic metrics optimize` (no agent filter = all agents with metrics).
**CLI mapping:** `kaizen-agentic metrics optimize` (no agent filter = all agents with metrics).

View File

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