fix: explicit package schema and exclude infra projects from pulse_check
This commit is contained in:
@@ -3,22 +3,18 @@ description: "Crimson Leaf holding company health scan -- Edgar checks all DB pr
|
|||||||
debug: true
|
debug: true
|
||||||
model: power
|
model: power
|
||||||
system: agent_prompt
|
system: agent_prompt
|
||||||
|
|
||||||
agent_prompt:
|
agent_prompt:
|
||||||
- "= identity.md"
|
- "= identity.md"
|
||||||
|
|
||||||
sections:
|
sections:
|
||||||
- agent
|
- agent
|
||||||
- project
|
- project
|
||||||
- rag
|
- rag
|
||||||
- message
|
- message
|
||||||
- instructions
|
- instructions
|
||||||
|
|
||||||
builders:
|
builders:
|
||||||
message: |
|
message: |
|
||||||
*** PORTFOLIO REPORT ***
|
*** PORTFOLIO REPORT ***
|
||||||
{steps[0].text}
|
{steps[0].text}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# Step 0: pull live data for ALL companies currently in the database
|
# Step 0: pull live data for ALL companies currently in the database
|
||||||
- type: tool
|
- type: tool
|
||||||
@@ -30,24 +26,25 @@ steps:
|
|||||||
max_tokens: 600
|
max_tokens: 600
|
||||||
hint: |
|
hint: |
|
||||||
You are Edgar, CEO of Crimson Leaf Holdings.
|
You are Edgar, CEO of Crimson Leaf Holdings.
|
||||||
|
|
||||||
The portfolio report above lists every company and project registered in the system.
|
The portfolio report above lists every company and project registered in the system.
|
||||||
Extract every ACTIVE project from every subsidiary company (exclude "crimson_leaf" itself).
|
Extract every ACTIVE project from every subsidiary company (exclude "crimson_leaf" itself).
|
||||||
Exclude any project with status "completed" or "archived".
|
Exclude any project with status "completed" or "archived".
|
||||||
|
Exclude any project named "management", "incubation", or "model-testing".
|
||||||
Output ONLY a JSON array on a single line. Each element must be an object with exactly
|
Output ONLY a JSON array on a single line. Each element must be an object with exactly
|
||||||
two keys: "company" (the company slug) and "project" (the project slug).
|
two keys: "company" (the company slug) and "project" (the project slug).
|
||||||
Example:
|
Example:
|
||||||
[{"company":"crimson_leaf_publishing","project":"cypress-bend"},{"company":"crimson_leaf_marketing","project":"book-marketing-agency"}]
|
[{"company":"crimson_leaf_publishing","project":"cypress-bend"},{"company":"crimson_leaf_marketing","project":"book-marketing-agency"}]
|
||||||
|
|
||||||
If there are no active projects, output: []
|
If there are no active projects, output: []
|
||||||
|
|
||||||
# Step 2: package the array so foreach can source it
|
# Step 2: package the array so foreach can source it
|
||||||
- type: package
|
- type: package
|
||||||
schema: '{"projects": "array"}'
|
schema: '{"projects": [{"company": "string", "project": "string"}]}'
|
||||||
hint: |
|
hint: |
|
||||||
The previous step produced a JSON array of project objects.
|
The previous step produced a JSON array like:
|
||||||
Package it as: {"projects": [...array of objects...]}
|
[{"company":"crimson_leaf_publishing","project":"cypress-bend"},{"company":"crimson_leaf_marketing","project":"book-marketing-agency"}]
|
||||||
|
Wrap the entire array as the "projects" value. Copy ALL items exactly as-is.
|
||||||
|
Output: {"projects": <the full array from the input, no changes>}
|
||||||
|
Every item must keep exactly the "company" and "project" keys as strings.
|
||||||
|
|
||||||
# Step 3: dispatch a project_review task to each active project
|
# Step 3: dispatch a project_review task to each active project
|
||||||
- type: foreach
|
- type: foreach
|
||||||
|
|||||||
Reference in New Issue
Block a user