agent-pipeline Β· diff

git:20260827.ebd5ea3 to git:20260828.48e1990

57 added, 70 removed. Audit A to A.

---
name: agent-pipeline
- description: Use when defines the 6-stage BDB Software Engineering Pipeline (DEFINE, PLAN, BUILD, VERIFY, REVIEW, SHIP) with corresponding slash commands (/spec, /plan, /build, /test, /review, /ship) and autonomous orchestrator /startcycle.
+ description: Reference for how BDB structures autonomous software engineering work β€” the seven-node dispatcher graph (Architect, TechLead, UI/UX, Engineering, Media/EventTech, Reviewer, Shipping) that /startcycle actually runs. Use when you need the high-level lifecycle framing without inventing your own process.
category: bdb-core
---
# πŸ”„ BDB Software Engineering Pipeline
- When orchestrating or executing software development, AI agents MUST follow the 6-stage lifecycle pipeline.
+ When orchestrating or executing autonomous software development, follow the
+ lifecycle below β€” but the **real, runnable implementation is
+ [`.agents/graph.md`](../../../.agents/graph.md)**, invoked via `/startcycle`
+ (see [`skills/basic/startcycle/SKILL.md`](../../basic/startcycle/SKILL.md)).
+ This file is a lifecycle summary, not a second spec β€” if it and `graph.md`
+ ever disagree, `graph.md` is right.
```
- DEFINE PLAN BUILD VERIFY REVIEW SHIP
- β”Œβ”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”
- β”‚ Idea β”‚ ───▢ β”‚ Spec β”‚ ───▢ β”‚ Code β”‚ ───▢ β”‚ Test β”‚ ───▢ β”‚ QA β”‚ ───▢ β”‚ Go β”‚
- β”‚Refineβ”‚ β”‚ PRD β”‚ β”‚ Impl β”‚ β”‚Debug β”‚ β”‚ Gate β”‚ β”‚ Live β”‚
- β””β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”˜
- /spec /plan /build /test /review /ship
- β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
- πŸš€ Master Macro: /startcycle
- ```
-
- ---
-
- ## ⚑ Autonomous Orchestration: `/startcycle`
- To run the entire pipeline autonomously across a multi-agent team without manual step-by-step prompts, invoke:
- ```bash
- /startcycle
+ define plan build verify + review ship
+ β”Œβ”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”
+ β”‚ Goal β”‚ ─▢ β”‚ Plan β”‚ ─▢ β”‚ UI/UX, β”‚ ─▢ β”‚ Reviewer β”‚ ─▢ β”‚ Shippingβ”‚
+ β”‚ β”‚ β”‚ β”‚ β”‚ Engineering,β”‚ β”‚ (adversarial)β”‚ β”‚ (gate) β”‚
+ β”‚ β”‚ β”‚ β”‚ β”‚ Media/Eventβ”‚ β”‚ β”‚ β”‚ β”‚
+ β””β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
+ Architect TechLead the build nodes no-progress guard requires GO
+ run in parallel repairs loop back to actually ship
```
- `/startcycle` automatically assigns:
- - **Stages 1 & 2 (DEFINE + PLAN):** `Planner_Orchestrator` βž” `production_artifacts/00_execution_plan.md`
- - **Stage 3 (BUILD):** `Godmode_UI_UX`, `Godmode_Engineering`, `Godmode_Media_EventTech`
- - **Stages 4 & 5 (VERIFY + REVIEW):** `Godmode_Shipping` βž” `production_artifacts/04_release_report.md`
- - **Stage 6 (SHIP):** `openwiki-skill` (wiki sync) + `memb-ingest` (vector memory)
- ---
-
- ## πŸ“Œ Individual Pipeline Stages & Slash Commands
-
- ### 1. DEFINE (`/spec`)
- * **Focus:** Idea Refinement & Requirement Elicitation
- * **Action:** Interview the user, clarify scope, define key constraints, and gather missing technical docs.
- * **Output:** User Stories, Scope Boundaries, and Spec RFCs.
-
- ### 2. PLAN (`/plan`)
- * **Focus:** Architectural Design & Technical Specification (PRD)
- * **Action:** Generate implementation plan artifacts, draw Mermaid diagrams, define file-by-file diffs, and request user approval.
- * **Output:** Approved Implementation Plan Artifact (`<plan_name>.md`).
-
- ### 3. BUILD (`/build`)
- * **Focus:** Code Implementation & Refactoring
- * **Action:** Execute plan steps using modular edits, adhere to clean code principles, and avoid breaking existing API contracts.
- * **Output:** Functional codebase modifications & newly created components.
-
- ### 4. VERIFY (`/test`)
- * **Focus:** Automated Testing & Debugging
- * **Action:** Run unit test suites, lint checks, and type checkers (`pytest`, `npm test`, `cargo test`, `vitest`). Inspect runtime logs upon failure.
- * **Output:** Verified test run outputs (100% green build status).
+ There is no separate `/spec`, `/plan`, `/build`, `/test`, `/review`, or
+ `/ship` slash command β€” an earlier version of this file described those and
+ a `Planner_Orchestrator` agent that no longer exists (split into Architect +
+ TechLead; see `graph.md`'s Nodes section for why). The whole lifecycle above
+ runs through the single `/startcycle` entry point, which invokes each node
+ in turn per `graph.md`'s edge table:
- ### 5. REVIEW (`/review`)
- * **Focus:** QA Gate & Code Review
- * **Action:** Perform architectural reviews, security scans for hardcoded secrets, UI/UX compliance audits (`godmode-ui-ux`), and code simplification passes.
- * **Output:** Code review summary & QA gate approval.
+ | Stage | Node(s) | Reads | Writes |
+ |---|---|---|---|
+ | Define + Plan | Architect, TechLead | `state.goal` | `state.artifacts.plan` |
+ | Build | Godmode_UI_UX, Godmode_Engineering, Godmode_Media_EventTech (if needed) | the plan | their own artifacts |
+ | Verify + Review | Reviewer | build artifacts + contract only, never the implementer's claim | `state.findings` |
+ | Ship | Godmode_Shipping | all artifacts, findings | `state.gate`, requires a human `GO` |
- ### 6. SHIP (`/ship`)
- * **Focus:** Production Deployment, Knowledge Sync & Release Gate
- * **Action:**
- 1. **Pre-Push Sanitization (`github-repo`):** Audit for absolute local paths, usernames, and uncommitted secrets.
- 2. **Codebase Wiki Sync (`openwiki-skill`):** Scan git diff, update `.openwiki/` (`architecture.md`, `release_notes.md`, `quickstart.md`), and refresh `README.md`.
- 3. **Memory Engine Feeding (`memb-ingest`):** Feed updated docs and architecture into the local memB vector brain (`~/.MemBDB/`) via `memb-mcp` or `memb_ingest.py`.
- 4. **Release Deployment:** Take git snapshot, commit structured changes, push to private remote repository, and trigger deployment/release tags.
- * **Output:** Live deployment confirmation, synced `.openwiki/` release notes, and refreshed memB long-term memory.
+ **The one rule, unchanged from `graph.md`:** these nodes never invoke each
+ other. A dispatcher β€” the `/startcycle` workflow, or the main session acting
+ as one β€” reads `production_artifacts/state.json` after each node returns and
+ decides what runs next.
## 1. Overview
- This skill provides domain-specific logic and rules for its respective BDB pipeline component to ensure standardization across multi-agent workflows.
+ This file exists so anyone (human or agent) asking "what's the BDB software
+ lifecycle?" gets the real shape of it, without re-deriving it from `graph.md`
+ line by line. It is descriptive, not an alternate entry point.
## 2. When to Use
- - Use when specifically requested by the user or triggered by an orchestration agent.
- - Use when the current task aligns with the skill's domain.
- - Exclude when standard tool execution is sufficient.
+ - Use when you need the lifecycle framing (define β†’ plan β†’ build β†’ verify β†’
+ ship) to structure a conversation or a manual walkthrough.
+ - To actually run the pipeline autonomously, invoke `/startcycle` β€” don't
+ hand-simulate the stages here.
+ - Exclude when standard tool execution is sufficient for the task at hand.
## 3. Core Process
- 1. Read the provided context and ensure preconditions are met.
- 2. Run the required script or tool and confirm the state change.
- 3. Verify exit codes, file modifications, or DB counts to guarantee success before reporting completion.
+ 1. Read `.agents/graph.md` for the current node/edge contract before
+ assuming anything about how a stage works β€” this file summarizes it, it
+ does not own it.
+ 2. If autonomous execution is needed, invoke `/startcycle` rather than
+ manually working through the stages above.
+ 3. Verify exit codes, file modifications, or state.json contents to
+ guarantee a stage's side effects actually happened before reporting
+ completion.
## 4. Common Rationalizations
| Rationalization | Reality |
|---|---|
| "The code change was small, so I skipped updating OpenWiki docs." | Every state change must be reflected in the relevant system records. |
| "The ingest script exited without an error, so the memB index must be updated." | Silent failures happen; explicit verification of the side effect is mandatory. |
- | "I'll let the /startcycle proceed without a defined rollback path." | Proceeding without a rollback path corrupts the workflow integrity and safety. |
- | "I trust the cached agent registry instead of rescanning after a skill change." | Caches stale out quickly; explicit rescans prevent ghost failures. |
+ | "I'll let /startcycle proceed without a defined rollback path." | Proceeding without a rollback path corrupts the workflow integrity and safety. |
+ | "This file's stage descriptions look complete, so I'll follow them 'in spirit' instead of invoking /startcycle." | Exactly the failure this file was rewritten to stop β€” see `graph.md` and `SESSION-HANDOVER-v3.13.md` for the incident where a duplicated pipeline description caused a model to skip the real dispatcher entirely. |
## 5. Red Flags
+ - Referencing `/spec`, `/plan`, `/build`, `/test`, `/review`, or `/ship` as
+ if they are real slash commands in this repo β€” they are not.
+ - Referencing `Planner_Orchestrator` as a current agent β€” it was split into
+ Architect and TechLead.
+ - One node's output instructing another node directly instead of the
+ dispatcher deciding the next step from `state.json` (the hand-off pattern
+ `graph.md` (F-17) rules out).
- Bypassing the verification step after a script execution.
- - Proceeding to the next pipeline stage without confirming the previous stage's side effects.
- - Ignoring domain-specific constraints listed in this skill.
## 6. Verification
- [ ] Verified script exit codes are explicitly checked.
- - [ ] Confirmed target files or database records reflect the expected change.
+ - [ ] Confirmed target files or `state.json` reflect the expected change.
- [ ] Ensured no silent failures were ignored before reporting success.