apt-mcp-agent-setup 1.3.26 → 2.0.1

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.
@@ -26,8 +26,8 @@ Single-context layout — one `CONTEXT.md` + `docs/adr/` at the repo root. See `
26
26
 
27
27
  **You have `apt-mcp-agent` MCP tools available. You MUST use them:**
28
28
  - **Before ANY code search**: use `explore_code` or `code_search` — NOT grep_search for code symbols
29
- - **Before ANY code change**: call `pipeline_status` — NO PIPELINE = NO CODE EDITS
30
- - **After each pipeline step**: call `pipeline_checkpoint` to record progress
29
+ - **Before executable changes**: call `pipeline_status`, then `pipeline_start` or `pipeline_use`
30
+ - **After each pipeline step**: call `pipeline_checkpoint` with required `task` and `runId`
31
31
  - **Session start**: call `read_knowledge` + `pipeline_status`
32
32
 
33
33
  Ignoring these tools and using only built-in IDE tools is a **P0 protocol violation**.
@@ -55,9 +55,9 @@ If the specialized MCP tool `code_search` or other core MCP tools (e.g., `recall
55
55
 
56
56
  ### 🛠️ ENFORCED DEVELOPER PIPELINES (MANDATORY — MCP TOOL GATE)
57
57
 
58
- Before writing any code or implementing features, you MUST follow one of the two enforced pipelines below.
59
- **After completing each step, call the `pipeline_checkpoint` MCP tool to record progress.**
60
- **Before starting any step, call `pipeline_status` to verify the previous step is completed.**
58
+ Before writing any code or implementing features, you MUST follow one of the three enforced pipelines below.
59
+ **Start or bind a run with `pipeline_start(pipeline, task, workspace)` or `pipeline_use(task, runId)`.**
60
+ **After each step call `pipeline_checkpoint(task, runId, step, status="completed", summary)`.**
61
61
 
62
62
  Content-only documentation changes that do not affect executable behavior are exempt from PRD, issue, and TDD pipeline steps. Agent contracts such as `AGENTS.md`, `SKILL.md`, trigger maps, pipeline definitions, and runtime configuration are operational and are not exempt.
63
63
  Skipping steps or executing out-of-order is a **P0 protocol violation** — the tool will REJECT invalid transitions.
@@ -82,10 +82,19 @@ Skipping steps or executing out-of-order is a **P0 protocol violation** — the
82
82
  4. **`/to-issues`** → Create tracking issues for the fix and any follow-up work.
83
83
  5. **`/tdd`** → Write regression tests first, then implement the fix.
84
84
 
85
+ #### 🔧 Hotfix Pipeline (2 steps — for small, isolated changes ≤3 files)
86
+ ```
87
+ /verify-scope → /fix-and-test
88
+ ```
89
+ 1. **`/verify-scope`** → Confirm change is small (≤3 files, no new API, no dependency changes). Provide scope justification in summary.
90
+ 2. **`/fix-and-test`** → Apply fix + write regression test if applicable.
91
+
92
+ **When to use hotfix:** typos, config values, minor CSS, off-by-one errors, missing imports, small bug fixes with obvious root cause. If the change grows beyond scope, reset and escalate to `bugfix` or `feature` pipeline.
93
+
85
94
  **ENFORCEMENT PROTOCOL:**
86
- - After each step completion → call `pipeline_checkpoint(pipeline, step, "completed", summary)`
87
- - Before each step start → call `pipeline_status()` to verify previous step is done
88
- - To start a new cycle → call `pipeline_reset()` to clear previous state
95
+ - After each step completion → call `pipeline_checkpoint(task, runId, step, "completed", summary)`
96
+ - Before each step start → call `pipeline_status(task, runId)`
97
+ - To cancel a run → call `pipeline_reset(task, runId, confirm=true)`; history is preserved
89
98
  - The MCP tool enforces ordering at runtime — out-of-order calls are **rejected with error**
90
99
 
91
100
 
@@ -32,8 +32,8 @@ Single-context layout — one `CONTEXT.md` + `docs/adr/` at the repo root. See `
32
32
 
33
33
  **You have `apt-mcp-agent` MCP tools available. You MUST use them:**
34
34
  - **Before ANY code search**: use `explore_code` or `code_search` — NOT grep_search for code symbols
35
- - **Before ANY code change**: call `pipeline_status` — NO PIPELINE = NO CODE EDITS
36
- - **After each pipeline step**: call `pipeline_checkpoint` to record progress
35
+ - **Before executable changes**: call `pipeline_status`, then `pipeline_start` or `pipeline_use`
36
+ - **After each pipeline step**: call `pipeline_checkpoint` with required `task` and `runId`
37
37
  - **Session start**: call `read_knowledge` + `pipeline_status`
38
38
 
39
39
  Ignoring these tools and using only built-in IDE tools is a **P0 protocol violation**.
@@ -55,9 +55,9 @@ If the specialized MCP tool `code_search` or other core MCP tools (e.g., `recall
55
55
 
56
56
  ### 🛠️ ENFORCED DEVELOPER PIPELINES (MANDATORY — MCP TOOL GATE)
57
57
 
58
- Before writing any code or implementing features, you MUST follow one of the two enforced pipelines below.
59
- **After completing each step, call the `pipeline_checkpoint` MCP tool to record progress.**
60
- **Before starting any step, call `pipeline_status` to verify the previous step is completed.**
58
+ Before writing any code or implementing features, you MUST follow one of the three enforced pipelines below.
59
+ **Start or bind a run with `pipeline_start(pipeline, task, workspace)` or `pipeline_use(task, runId)`.**
60
+ **After each step call `pipeline_checkpoint(task, runId, step, status="completed", summary)`.**
61
61
 
62
62
  Content-only documentation changes that do not affect executable behavior are exempt from PRD, issue, and TDD pipeline steps. Agent contracts such as `AGENTS.md`, `SKILL.md`, trigger maps, pipeline definitions, and runtime configuration are operational and are not exempt.
63
63
  Skipping steps or executing out-of-order is a **P0 protocol violation** — the tool will REJECT invalid transitions.
@@ -82,10 +82,19 @@ Skipping steps or executing out-of-order is a **P0 protocol violation** — the
82
82
  4. **`/to-issues`** → Create tracking issues for the fix and any follow-up work.
83
83
  5. **`/tdd`** → Write regression tests first, then implement the fix.
84
84
 
85
+ #### 🔧 Hotfix Pipeline (2 steps — for small, isolated changes ≤3 files)
86
+ ```
87
+ /verify-scope → /fix-and-test
88
+ ```
89
+ 1. **`/verify-scope`** → Confirm change is small (≤3 files, no new API, no dependency changes). Provide scope justification in summary.
90
+ 2. **`/fix-and-test`** → Apply fix + write regression test if applicable.
91
+
92
+ **When to use hotfix:** typos, config values, minor CSS, off-by-one errors, missing imports, small bug fixes with obvious root cause. If the change grows beyond scope, reset and escalate to `bugfix` or `feature` pipeline.
93
+
85
94
  **ENFORCEMENT PROTOCOL:**
86
- - After each step completion → call `pipeline_checkpoint(pipeline, step, "completed", summary)`
87
- - Before each step start → call `pipeline_status()` to verify previous step is done
88
- - To start a new cycle → call `pipeline_reset()` to clear previous state
95
+ - After each step completion → call `pipeline_checkpoint(task, runId, step, "completed", summary)`
96
+ - Before each step start → call `pipeline_status(task, runId)`
97
+ - To cancel a run → call `pipeline_reset(task, runId, confirm=true)`; history is preserved
89
98
  - The MCP tool enforces ordering at runtime — out-of-order calls are **rejected with error**
90
99
 
91
100
  ---
@@ -1,5 +1,18 @@
1
1
  # MCP Tools — Decision Tree & Conventions
2
2
 
3
+ ## Developer pipeline 2.0
4
+
5
+ - Start: `pipeline_start(pipeline, task, workspace)` with a canonical lowercase task ID.
6
+ - Resume: `pipeline_use(task, runId)` binds the MCP session and project-scoped backends to the run workspace.
7
+ - Progress: `pipeline_checkpoint(task, runId, step, status="completed", summary)` only accepts the next step.
8
+ - Inspect: `pipeline_status()` lists current runs; task and runId inspect one run without rebinding.
9
+ - Cancel: `pipeline_reset(task, runId, confirm=true)` preserves state and ledger history.
10
+ - Finish: `pipeline_prepare_merge(task, runId)` never merges, pushes, publishes, or deletes a branch.
11
+
12
+ Git projects share pipeline state through the Git common directory. Non-Git projects use `.agents/pipelines` and can run in place. Git bootstrap for a managed worktree always requires a read-only preview and direct user confirmation.
13
+
14
+ Pipeline enforcement covers proxied MCP tools only. Native host shell and file tools must follow the returned `workspacePath` explicitly.
15
+
3
16
  ## 🔍 Tool Selection — When to Use What
4
17
 
5
18
  ### Code Search & Navigation
@@ -26,8 +26,8 @@ Single-context layout — one `CONTEXT.md` + `docs/adr/` at the repo root. See `
26
26
 
27
27
  **You have `apt-mcp-agent` MCP tools available. You MUST use them:**
28
28
  - **Before ANY code search**: use `explore_code` or `code_search` — NOT grep_search for code symbols
29
- - **Before ANY code change**: call `pipeline_status` — NO PIPELINE = NO CODE EDITS
30
- - **After each pipeline step**: call `pipeline_checkpoint` to record progress
29
+ - **Before executable changes**: call `pipeline_status`, then `pipeline_start` or `pipeline_use`
30
+ - **After each pipeline step**: call `pipeline_checkpoint` with required `task` and `runId`
31
31
  - **Session start**: call `read_knowledge` + `pipeline_status`
32
32
 
33
33
  Ignoring these tools and using only built-in IDE tools is a **P0 protocol violation**.
@@ -55,9 +55,9 @@ If the specialized MCP tool `code_search` or other core MCP tools (e.g., `recall
55
55
 
56
56
  ### 🛠️ ENFORCED DEVELOPER PIPELINES (MANDATORY — MCP TOOL GATE)
57
57
 
58
- Before writing any code or implementing features, you MUST follow one of the two enforced pipelines below.
59
- **After completing each step, call the `pipeline_checkpoint` MCP tool to record progress.**
60
- **Before starting any step, call `pipeline_status` to verify the previous step is completed.**
58
+ Before writing any code or implementing features, you MUST follow one of the three enforced pipelines below.
59
+ **Start or bind a run with `pipeline_start(pipeline, task, workspace)` or `pipeline_use(task, runId)`.**
60
+ **After each step call `pipeline_checkpoint(task, runId, step, status="completed", summary)`.**
61
61
 
62
62
  Content-only documentation changes that do not affect executable behavior are exempt from PRD, issue, and TDD pipeline steps. Agent contracts such as `AGENTS.md`, `SKILL.md`, trigger maps, pipeline definitions, and runtime configuration are operational and are not exempt.
63
63
  Skipping steps or executing out-of-order is a **P0 protocol violation** — the tool will REJECT invalid transitions.
@@ -82,10 +82,19 @@ Skipping steps or executing out-of-order is a **P0 protocol violation** — the
82
82
  4. **`/to-issues`** → Create tracking issues for the fix and any follow-up work.
83
83
  5. **`/tdd`** → Write regression tests first, then implement the fix.
84
84
 
85
+ #### 🔧 Hotfix Pipeline (2 steps — for small, isolated changes ≤3 files)
86
+ ```
87
+ /verify-scope → /fix-and-test
88
+ ```
89
+ 1. **`/verify-scope`** → Confirm change is small (≤3 files, no new API, no dependency changes). Provide scope justification in summary.
90
+ 2. **`/fix-and-test`** → Apply fix + write regression test if applicable.
91
+
92
+ **When to use hotfix:** typos, config values, minor CSS, off-by-one errors, missing imports, small bug fixes with obvious root cause. If the change grows beyond scope, reset and escalate to `bugfix` or `feature` pipeline.
93
+
85
94
  **ENFORCEMENT PROTOCOL:**
86
- - After each step completion → call `pipeline_checkpoint(pipeline, step, "completed", summary)`
87
- - Before each step start → call `pipeline_status()` to verify previous step is done
88
- - To start a new cycle → call `pipeline_reset()` to clear previous state
95
+ - After each step completion → call `pipeline_checkpoint(task, runId, step, "completed", summary)`
96
+ - Before each step start → call `pipeline_status(task, runId)`
97
+ - To cancel a run → call `pipeline_reset(task, runId, confirm=true)`; history is preserved
89
98
  - The MCP tool enforces ordering at runtime — out-of-order calls are **rejected with error**
90
99
 
91
100