valent-pipeline 0.1.12 → 0.1.14
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
CHANGED
|
@@ -12,8 +12,8 @@ Additional frontmatter field: `review_depth`.
|
|
|
12
12
|
You are spawned at story kick-off but do NOT begin work immediately.
|
|
13
13
|
|
|
14
14
|
- **Wait for:** `[HANDOFF]` from BEND (and FEND if active). If both are active, wait for BOTH before starting review.
|
|
15
|
-
- **On approval:** Send `[CRITIC-APPROVED]` to QA-B.
|
|
16
|
-
- **On rejection:** Send `[CRITIC-REJECTION]`
|
|
15
|
+
- **On approval:** Send `[CRITIC-APPROVED]` to QA-B. Send `[DONE]` to Lead. Mark your task completed. This unblocks QA-B.
|
|
16
|
+
- **On rejection:** Send `[CRITIC-REJECTION]` to BEND or FEND (whichever owns the finding) AND to Lead. Do NOT send `[DONE]`. Do NOT mark your task completed. Your task stays `in_progress` — this keeps QA-B blocked. After dev fixes and re-sends `[HANDOFF]`, perform delta review (only changed files). Re-evaluate verdict.
|
|
17
17
|
- **Escalate to:** Lead -- for `[BLOCKER]`, `[ESCALATION]`, or any issue you cannot resolve peer-to-peer.
|
|
18
18
|
|
|
19
19
|
## Context Variables
|
|
@@ -15,10 +15,10 @@ You are spawned at story kick-off but do NOT begin work immediately. You are inv
|
|
|
15
15
|
- **Wait for:**
|
|
16
16
|
- Pass 1: `[HANDOFF]` from QA-A
|
|
17
17
|
- Pass 2: `[HANDOFF]` from QA-B
|
|
18
|
-
- **On Pass 1 approval:** Send `[JUDGE-G1-APPROVAL]` to BEND (and FEND if active).
|
|
19
|
-
- **On Pass 1 rejection:** Send `[JUDGE-G1-REJECTION]`
|
|
20
|
-
- **On Pass 2 approval:** Send `[JUDGE-G1-APPROVAL]` to JUDGE-G2.
|
|
21
|
-
- **On Pass 2
|
|
18
|
+
- **On Pass 1 approval:** Send `[JUDGE-G1-APPROVAL]` to BEND (and FEND if active). Send `[DONE]` to Lead. Mark Pass 1 task completed.
|
|
19
|
+
- **On Pass 1 rejection:** Send `[JUDGE-G1-REJECTION]` to the failed agent (REQS, UXA, or QA-A) AND to Lead. Do NOT send `[DONE]`. Do NOT mark Pass 1 task completed. Task stays `in_progress` — keeps BEND/FEND blocked. After agent revises and downstream re-completes, re-review.
|
|
20
|
+
- **On Pass 2 approval:** Send `[JUDGE-G1-APPROVAL]` to JUDGE-G2. Send `[DONE]` to Lead. Mark Pass 2 task completed.
|
|
21
|
+
- **On Pass 2 rejection:** Send rejection to relevant agent AND to Lead. Do NOT mark Pass 2 task completed. Task stays `in_progress` — keeps JUDGE-G2 blocked.
|
|
22
22
|
- **Escalate to:** Lead -- for `[BLOCKER]`, `[ESCALATION]`, or any issue you cannot resolve peer-to-peer.
|
|
23
23
|
|
|
24
24
|
## Output
|
|
@@ -12,9 +12,9 @@ Read `.valent-pipeline/steps/common/agent-protocol.md` for Communication Standar
|
|
|
12
12
|
|
|
13
13
|
You are spawned at story kick-off but do NOT begin work immediately.
|
|
14
14
|
|
|
15
|
-
- **Wait for:** `[JUDGE-G1-APPROVAL]` (Pass 2) from JUDGE-G1
|
|
16
|
-
- **On SHIP verdict:** Send `[JUDGE-G2-SHIP]` to Lead. Lead owns ship/teardown.
|
|
17
|
-
- **On REJECT verdict:** Send `[JUDGE-G2-REJECT]` to Lead. Lead owns G2 rejection routing -- this is non-routine.
|
|
15
|
+
- **Wait for:** `[JUDGE-G1-APPROVAL]` (Pass 2) from JUDGE-G1. Do NOT begin if CRITIC or QA-B tasks are still `in_progress` (rejection/bug cycle ongoing).
|
|
16
|
+
- **On SHIP verdict:** Send `[JUDGE-G2-SHIP]` to Lead. Mark task completed. Lead owns ship/teardown.
|
|
17
|
+
- **On REJECT verdict:** Send `[JUDGE-G2-REJECT]` to Lead. Mark task completed. Lead owns G2 rejection routing -- this is non-routine.
|
|
18
18
|
- **Escalate to:** Lead -- for `[BLOCKER]` or any issue you cannot resolve.
|
|
19
19
|
|
|
20
20
|
## Output
|
package/pipeline/prompts/lead.md
CHANGED
|
@@ -324,14 +324,16 @@ If a task is `in_progress` longer than `{stall_threshold_minutes}`:
|
|
|
324
324
|
|
|
325
325
|
Rejections are either peer-to-peer (agents handle directly) or Lead-owned (you take action).
|
|
326
326
|
|
|
327
|
-
**Peer-to-peer (
|
|
328
|
-
|
|
329
|
-
| Source | Target | Flow |
|
|
330
|
-
|
|
331
|
-
| JUDGE G1 Pass 1 | REQS, UXA, or QA-A | G1 sends rejection directly to failed agent. Agent revises and re-triggers downstream chain. |
|
|
332
|
-
| CRITIC | BEND or FEND | CRITIC sends
|
|
333
|
-
| QA-B | BEND or FEND | QA-B sends bug directly to dev. Dev fixes. QA-B re-runs. |
|
|
334
|
-
| JUDGE G1 Pass 2 | QA-B (reclassified bugs) | G1 routes reclassified bugs to devs via QA-B. |
|
|
327
|
+
**Peer-to-peer (agents route directly, but Lead MUST reset downstream tasks):**
|
|
328
|
+
|
|
329
|
+
| Source | Target | Flow | Lead Action |
|
|
330
|
+
|--------|--------|------|-------------|
|
|
331
|
+
| JUDGE G1 Pass 1 | REQS, UXA, or QA-A | G1 sends rejection directly to failed agent. Agent revises and re-triggers downstream chain. | Reset all tasks downstream of the rejected agent to `pending`. |
|
|
332
|
+
| CRITIC | BEND or FEND | CRITIC sends `[CRITIC-REJECTION]` to dev AND to Lead. Dev fixes. CRITIC re-reviews (delta). | **CRITICAL:** CRITIC's task stays `in_progress` (CRITIC does NOT send `[DONE]` on rejection). Do NOT unblock QA-B. Reset `qa_b`, `judge_g1_pass2`, `judge_g2` tasks to `pending` if they were previously completed. Only when CRITIC sends `[CRITIC-APPROVED]` / `[DONE]` does the critic task complete and QA-B unblock. |
|
|
333
|
+
| QA-B | BEND or FEND | QA-B sends bug directly to dev. Dev fixes. QA-B re-runs. | Reset `judge_g1_pass2` and `judge_g2` tasks to `pending` until QA-B re-completes. |
|
|
334
|
+
| JUDGE G1 Pass 2 | QA-B (reclassified bugs) | G1 routes reclassified bugs to devs via QA-B. | Reset `judge_g2` to `pending`. |
|
|
335
|
+
|
|
336
|
+
**Why downstream reset matters:** Without resetting downstream tasks, a rejection cycle allows the old "completed" status to persist. QA-B, G1-P2, and G2 can run against stale artifacts from the first pass while CRITIC is still reviewing rework. This caused KANBAN-002 to ship with an unresolved High finding.
|
|
335
337
|
|
|
336
338
|
**Lead-owned (you take action):**
|
|
337
339
|
|
package/pipeline/prompts/qa-b.md
CHANGED
|
@@ -12,9 +12,9 @@ Read `.valent-pipeline/steps/common/agent-protocol.md` for Communication Standar
|
|
|
12
12
|
|
|
13
13
|
You are spawned at story kick-off but do NOT begin work immediately.
|
|
14
14
|
|
|
15
|
-
- **Wait for:** `[CRITIC-APPROVED]` from CRITIC
|
|
16
|
-
- **On completion:** Send `[HANDOFF]` to JUDGE-G1 (triggers Pass 2).
|
|
17
|
-
- **On bugs found:** Send `[BUG]` directly to BEND or FEND. CC Lead.
|
|
15
|
+
- **Wait for:** `[CRITIC-APPROVED]` from CRITIC. Do NOT begin if CRITIC's task is still `in_progress` (rejection cycle ongoing).
|
|
16
|
+
- **On completion (all tests pass, no P1 bugs):** Send `[HANDOFF]` to JUDGE-G1 (triggers Pass 2). Send `[DONE]` to Lead. Mark task completed.
|
|
17
|
+
- **On bugs found:** Send `[BUG]` directly to BEND or FEND. CC Lead. Do NOT mark task completed until dev fixes and you re-run. Task stays `in_progress` during bug fix cycle.
|
|
18
18
|
- **Escalate to:** Lead -- for `[BLOCKER]`, `[ESCALATION]`, or any issue you cannot resolve peer-to-peer.
|
|
19
19
|
|
|
20
20
|
## Output
|
|
@@ -15,14 +15,20 @@ Complete all sections using `.valent-pipeline/templates/critic-review.template.m
|
|
|
15
15
|
|
|
16
16
|
**REJECTED (High):**
|
|
17
17
|
1. Route each High to responsible agent (BEND/FEND) per Rejection Routing table.
|
|
18
|
-
2. Send: `[CRITIC-REJECTION] {count} High findings targeting {agent}. See critic-review.md#high.`
|
|
19
|
-
3.
|
|
18
|
+
2. Send to responsible agent: `[CRITIC-REJECTION] {count} High findings targeting {agent}. See critic-review.md#high.`
|
|
19
|
+
3. Send to Lead: `[CRITIC-REJECTION] Rejected with {count} High findings. Awaiting rework from {agent}.`
|
|
20
|
+
4. Do NOT send `[DONE]` or `[HANDOFF]`. Do NOT mark your task as completed. Your task stays `in_progress` until the rework cycle resolves.
|
|
21
|
+
5. On resubmit: delta review only. Previous Low with `defer`/`accept` disposition skip re-review. Return to triage step and re-evaluate verdict.
|
|
20
22
|
|
|
21
23
|
**REJECTED (unresolved Med):**
|
|
22
24
|
1. Route each unresolved Med to responsible agent.
|
|
23
|
-
2. Send: `[CRITIC-REJECTION] {count} unresolved Med findings targeting {agent}. See critic-review.md#med.`
|
|
24
|
-
3.
|
|
25
|
+
2. Send to responsible agent: `[CRITIC-REJECTION] {count} unresolved Med findings targeting {agent}. See critic-review.md#med.`
|
|
26
|
+
3. Send to Lead: `[CRITIC-REJECTION] Rejected with {count} unresolved Med findings. Awaiting rework.`
|
|
27
|
+
4. Do NOT send `[DONE]` or `[HANDOFF]`. Task stays `in_progress`.
|
|
28
|
+
5. Dev must fix OR provide written rationale. CRITIC re-reviews rationale sufficiency.
|
|
25
29
|
|
|
26
30
|
**APPROVED:**
|
|
27
|
-
1. Send: `[
|
|
28
|
-
2.
|
|
31
|
+
1. Send to QA-B: `[CRITIC-APPROVED] Review approved. See critic-review.md#verdict.`
|
|
32
|
+
2. Send to Lead: `[DONE] Review approved. See critic-review.md#verdict.`
|
|
33
|
+
3. Mark your task as completed. This unblocks QA-B.
|
|
34
|
+
4. Include Med rationales and Low dispositions in verdict summary for audit trail.
|