valent-pipeline 0.2.6 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/pipeline/prompts/embed.md +1 -1
- package/pipeline/prompts/knowledge.md +7 -7
- package/pipeline/prompts/lead.md +6 -4
- package/pipeline/steps/orchestration/adopt-lead-and-create-team.md +9 -1
- package/pipeline/steps/orchestration/sprint-groom.md +2 -2
- package/pipeline/steps/orchestration/sprint-init.md +1 -1
- package/pipeline/steps/orchestration/sprint-review.md +1 -1
- package/pipeline/steps/readiness/sprint-review.md +1 -1
- package/skills/valent-setup-backlog/SKILL.md +2 -2
package/package.json
CHANGED
|
@@ -30,7 +30,7 @@ Verify `{story_output_dir}/embed-instructions.md` exists. If missing, send `[BLO
|
|
|
30
30
|
**If `{knowledge_mode}` is `sqlite` (recommended):**
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
|
-
|
|
33
|
+
node .valent-pipeline/bin/cli.js db embed {story_output_dir}/embed-instructions.md \
|
|
34
34
|
--curated-path {curated_files_path}
|
|
35
35
|
```
|
|
36
36
|
|
|
@@ -38,7 +38,7 @@ Read all files in `{curated_files_path}`. Build in-memory index of file names, s
|
|
|
38
38
|
**If `{knowledge_mode}` is `sqlite`:**
|
|
39
39
|
Verify the database is accessible by running:
|
|
40
40
|
```bash
|
|
41
|
-
|
|
41
|
+
node .valent-pipeline/bin/cli.js db query-stories
|
|
42
42
|
```
|
|
43
43
|
If it returns results or "No stories in database", the DB is accessible. If the command fails, operate in curated-only mode.
|
|
44
44
|
|
|
@@ -53,12 +53,12 @@ For each incoming query:
|
|
|
53
53
|
1. Search correction directives for relevant entries
|
|
54
54
|
2. Search curated knowledge files for matching sections
|
|
55
55
|
3. If database connected (SQLite mode): query using the CLI tool and read stdout for results:
|
|
56
|
-
- Fetch a specific artifact: `
|
|
57
|
-
- Fetch directives for an agent: `
|
|
58
|
-
- Full-text search: `
|
|
59
|
-
- List artifacts for a story: `
|
|
60
|
-
- List all stories: `
|
|
61
|
-
- Cross-story bug search: `
|
|
56
|
+
- Fetch a specific artifact: `node .valent-pipeline/bin/cli.js db query-artifact --story KANBAN-001 --type reqs-brief`
|
|
57
|
+
- Fetch directives for an agent: `node .valent-pipeline/bin/cli.js db query-directives --agent BEND`
|
|
58
|
+
- Full-text search: `node .valent-pipeline/bin/cli.js db search --query "acceptance criteria"`
|
|
59
|
+
- List artifacts for a story: `node .valent-pipeline/bin/cli.js db query-list --story KANBAN-001`
|
|
60
|
+
- List all stories: `node .valent-pipeline/bin/cli.js db query-stories`
|
|
61
|
+
- Cross-story bug search: `node .valent-pipeline/bin/cli.js db query-bugs-since --since 2026-03-01`
|
|
62
62
|
If ChromaDB mode: use collection query (ChromaDB)
|
|
63
63
|
4. Compose response: targeted, SHORT (aim ~200 tokens, max 500)
|
|
64
64
|
5. Include source reference: `Source: curated/{file}#section` or `Source: sqlite:artifacts/{story_id}/{type}` or `Source: correction-directives#{directive-id}`
|
package/pipeline/prompts/lead.md
CHANGED
|
@@ -389,9 +389,11 @@ From the manifest `reads_from` / `writes_to`, build the execution order for this
|
|
|
389
389
|
|
|
390
390
|
### Step 5: Spawn Teammates
|
|
391
391
|
|
|
392
|
-
|
|
392
|
+
**Do NOT read agent prompt files or step files yourself.** Use the spawn template — substitute variables and pass it to the Agent tool. Each teammate reads its own prompt and steps after spawning. This keeps your context lean.
|
|
393
|
+
|
|
394
|
+
For each agent in the roster, spawn a teammate with the filled spawn template containing:
|
|
393
395
|
- Role assignment from manifest
|
|
394
|
-
- Prompt
|
|
396
|
+
- Prompt path from manifest `prompt_template` (the teammate reads it, not you)
|
|
395
397
|
- Shared context references: story_id, story_output_dir, tech stack values, correction directives
|
|
396
398
|
- Task assignment with dependency information
|
|
397
399
|
|
|
@@ -493,7 +495,7 @@ This runs PMCP in parallel with QA-B's test execution, removing it from the crit
|
|
|
493
495
|
When `{knowledge_mode}` is `sqlite` and you receive a `[HANDOFF]` from an agent that produces an output file, index the artifact into the SQLite database so downstream agents can query it via Knowledge:
|
|
494
496
|
|
|
495
497
|
```bash
|
|
496
|
-
|
|
498
|
+
node .valent-pipeline/bin/cli.js db index-handoff --file {story_output_dir}/{artifact_file} \
|
|
497
499
|
--story-id {story_id} \
|
|
498
500
|
--agent {agent_name} \
|
|
499
501
|
--artifact-type {type}
|
|
@@ -588,7 +590,7 @@ Tear down all per-story teammates. Send `shutdown_request` to each individually.
|
|
|
588
590
|
If `{knowledge_mode}` is `sqlite`, record story actuals to the calibration table for future estimation accuracy:
|
|
589
591
|
|
|
590
592
|
```bash
|
|
591
|
-
|
|
593
|
+
node .valent-pipeline/bin/cli.js db record-calibration \
|
|
592
594
|
--story-id {story_id} \
|
|
593
595
|
--ac-count {ac_count_from_reqs_brief} \
|
|
594
596
|
--surface {project_type} \
|
|
@@ -75,7 +75,15 @@ This file is appended to incrementally during monitoring as agents complete phas
|
|
|
75
75
|
|
|
76
76
|
**IMPORTANT: Use the Agent tool to spawn teammates onto the team — NOT subagents.** Every pipeline agent must be a named teammate so it can send and receive inbox messages with other teammates. Use the `name` parameter on the Agent tool to set the teammate's addressable name (e.g., `name: "REQS"`).
|
|
77
77
|
|
|
78
|
-
|
|
78
|
+
**DO NOT read the agent's prompt files, step files, or templates yourself.** The spawn template tells the teammate to read its own prompt and steps. Your job is ONLY to:
|
|
79
|
+
1. Read the spawn template (a short 15-line template)
|
|
80
|
+
2. Substitute `{{variables}}` with resolved values from config and the task graph
|
|
81
|
+
3. Pass the filled template as the Agent tool's `prompt` parameter
|
|
82
|
+
4. The teammate reads its own prompt, step files, and inputs after it starts
|
|
83
|
+
|
|
84
|
+
This keeps the main thread lightweight. If you read every agent's prompt and steps before spawning, you waste context window on content that only the teammate needs.
|
|
85
|
+
|
|
86
|
+
Read the spawn templates (these are short variable templates, NOT the agent prompts):
|
|
79
87
|
- `.valent-pipeline/spawn-templates/knowledge-spawn.template.md` -- for the Knowledge Agent
|
|
80
88
|
- `.valent-pipeline/spawn-templates/agent-spawn.template.md` -- for all other agents
|
|
81
89
|
|
|
@@ -20,7 +20,7 @@ For each story in grooming candidates (up to `{groom_target}` from sprint-init):
|
|
|
20
20
|
4. On UXA handoff → update status to `test-case-development` → QA-A writes `qa-test-spec.md`
|
|
21
21
|
5. On QA-A handoff → index all artifacts to SQLite **working table**:
|
|
22
22
|
```bash
|
|
23
|
-
|
|
23
|
+
node .valent-pipeline/bin/cli.js db index-working \
|
|
24
24
|
--story-id {story_id} \
|
|
25
25
|
--sprint-id {current_sprint_id}
|
|
26
26
|
```
|
|
@@ -46,7 +46,7 @@ After every `{sprint_max_groom_batch}` stories (default: 10), kill and respawn P
|
|
|
46
46
|
After all stories groomed:
|
|
47
47
|
|
|
48
48
|
```bash
|
|
49
|
-
|
|
49
|
+
node .valent-pipeline/bin/cli.js db flush-working \
|
|
50
50
|
--sprint-id {current_sprint_id}
|
|
51
51
|
```
|
|
52
52
|
|
|
@@ -34,7 +34,7 @@ Update `sprint-{n}-status.yaml`:
|
|
|
34
34
|
For each shipped story, ensure the calibration table has complete data:
|
|
35
35
|
|
|
36
36
|
```bash
|
|
37
|
-
|
|
37
|
+
node .valent-pipeline/bin/cli.js db record-calibration \
|
|
38
38
|
--story-id {story_id} \
|
|
39
39
|
--story-points {fibonacci_estimate} \
|
|
40
40
|
--estimated-points {fibonacci_estimate} \
|
|
@@ -9,7 +9,7 @@ These steps run AFTER the standalone review (Steps 1-8) passes. If the standalon
|
|
|
9
9
|
Query the SQLite working table for specs from other stories groomed in this sprint batch:
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
|
|
12
|
+
node .valent-pipeline/bin/cli.js db query-working \
|
|
13
13
|
--sprint-id {current_sprint_id} \
|
|
14
14
|
--exclude-story {story_id}
|
|
15
15
|
```
|
|
@@ -173,8 +173,8 @@ If the repo is empty or brand new (no source code yet), skip the subagents and c
|
|
|
173
173
|
### Step 7b: Initialize and Populate Knowledge Database
|
|
174
174
|
|
|
175
175
|
After writing the curated knowledge files:
|
|
176
|
-
1. Run `valent-pipeline db init` to create the SQLite database if it doesn't exist
|
|
177
|
-
2. Run `
|
|
176
|
+
1. Run `node .valent-pipeline/bin/cli.js db init` to create the SQLite database if it doesn't exist
|
|
177
|
+
2. Run `node .valent-pipeline/bin/cli.js db rebuild` to index any existing story artifacts
|
|
178
178
|
3. The database is now ready for the Knowledge Agent to query during story execution
|
|
179
179
|
|
|
180
180
|
## Step 8: Report
|