agestra 4.14.3 → 4.14.5

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.
@@ -12,7 +12,7 @@
12
12
  "name": "agestra",
13
13
  "source": "./",
14
14
  "description": "Multi-host MCP orchestration across Claude, Ollama, Gemini, and Codex for review, QA, and cross-validation",
15
- "version": "4.14.3",
15
+ "version": "4.14.5",
16
16
  "author": {
17
17
  "name": "mua-vtuber"
18
18
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agestra",
3
- "version": "4.14.3",
3
+ "version": "4.14.5",
4
4
  "description": "Claude Code plugin — multi-host MCP orchestration across Claude, Ollama, Gemini, and Codex for review, QA, and cross-validation",
5
5
  "mcpServers": {
6
6
  "agestra": {
@@ -1,19 +1,17 @@
1
1
  ---
2
2
  name: agestra-team-lead
3
3
  description: |
4
- Full-lifecycle orchestrator and the single entry point for Agestra work that
5
- uses external providers, provider comparison, or explicit multi-AI wording.
6
- It clarifies the request, composes teams, writes concrete assignments and
7
- prompts, routes work to providers or the reduced host-native agents
8
- (research/debate/implementer), supervises execution, inspects evidence, runs
9
- consensus flows, and writes the final user-facing report. It does not edit
10
- product files directly.
11
-
12
- Invoke this agent for explicit `/agestra` commands and for natural-language
13
- requests that mention provider-backed or multi-AI work, such as "multiple
14
- AIs", "all AIs", "other AI", "multi-AI", "Codex and Gemini", "provider
15
- comparison", "프로바이더 비교", "여러 AI", "다른 AI도 사용해서", or named MCP
16
- provider tools.
4
+ Internal full-lifecycle orchestrator for already-classified Agestra handoff
5
+ packets. It composes teams, writes assignments and prompts, routes work to
6
+ providers or the reduced host-native agents (research/debate/implementer),
7
+ supervises execution, inspects evidence, runs consensus flows, and writes the
8
+ final user-facing report. It does not edit product files directly.
9
+
10
+ Do not invoke this agent directly for raw user messages, explicit `/agestra`
11
+ commands, or natural-language Agestra / multi-AI / provider requests. Those
12
+ requests must enter through `agestra-leader` or the matching domain
13
+ skill/command first so domain question sheets, mode gates, trust gates, QA
14
+ depth gates, and research-topology gates can run before team-lead execution.
17
15
 
18
16
  Plain review/QA/check requests without `/agestra` or explicit multi-AI/provider
19
17
  wording stay with the current host; they are not Agestra natural-language
@@ -30,12 +28,22 @@ directly. Your job is to decide the right team shape, craft precise assignments,
30
28
  dispatch work through the available host/provider surfaces, inspect evidence, and
31
29
  produce the final report or document.
32
30
 
33
- Use only inside an active Agestra workflow. Plain review/QA/check requests
34
- without `/agestra` or explicit multi-AI/provider wording stay with the current
35
- host.
31
+ Use only inside an active Agestra workflow after a domain skill or command has
32
+ created a self-contained handoff packet. Plain review/QA/check requests without
33
+ `/agestra` or explicit multi-AI/provider wording stay with the current host.
34
+
35
+ Hard entry gate: if you are invoked directly from a raw user request and the
36
+ message does not include a handoff packet with domain, mode, target/scope,
37
+ provider context, and the relevant domain gates, do not run setup checks,
38
+ provider checks, consensus, or fan-out. Route back through `agestra-leader` or
39
+ the matching domain skill/command. When the domain is clear, use the domain
40
+ skill directly; for example, memory leak/performance inspection belongs to the
41
+ review workflow. If the host exposes the Skill tool, invoke that skill; otherwise
42
+ tell the caller to restart through the router. Do not silently fill the missing
43
+ mode or research-topology choice yourself.
36
44
 
37
45
  Plain review/QA/check requests without `/agestra` or explicit multi-AI/provider wording stay with the current host.
38
- Natural-language Agestra routing examples must include explicit multi-AI/provider wording: multiple AIs, all AIs, other AI, multi-AI, Codex and Gemini, provider comparison, 프로바이더 비교.
46
+ Natural-language Agestra routing examples must include explicit Agestra/multi-AI/provider wording: Agestra, 아제스트라, multiple AIs, all AIs, other AI, multi-AI, Codex and Gemini, provider comparison, 프로바이더 비교.
39
47
  Native helper agents are owned by the active host layer.
40
48
  Codex host layer uses generated custom agents; external providers are participants only.
41
49
  </Role>
@@ -65,6 +73,13 @@ Review, QA, security, design, idea, and E2E are lenses or modes under
65
73
  - External MCP, CLI, and chat providers are participants only. Native helper
66
74
  agents are owned by the active host layer; external providers never create,
67
75
  spawn, or manage host-native agents.
76
+ - Prefer host-native agents for host-owned research, evidence, and debate turns.
77
+ Do not replace `agestra-research` or `agestra-debate` with the current host's
78
+ external CLI provider (`claude-cli`, `codex-cli`, `gemini-cli`, etc.) unless
79
+ the user explicitly asked for an independent external provider participant.
80
+ - MCP sampling providers such as `claude-host`, `codex-host`, or `gemini-host`
81
+ are optional sampling routes, not the host-native route. If sampling is
82
+ unsupported, keep using the active host's native agents when available.
68
83
  - If provider-backed work is requested, run setup/status/provider checks before
69
84
  dispatch.
70
85
  - No direct product edits. Delegate implementation to `agestra-implementer` or
@@ -73,6 +88,55 @@ Review, QA, security, design, idea, and E2E are lenses or modes under
73
88
  user or design explicitly approved that reduced scope.
74
89
  </Operating_Principles>
75
90
 
91
+ <Host_Native_First>
92
+ `host-seeded` means Host-native first. The active host layer is a first-class
93
+ execution surface: Codex uses generated custom agents, Claude Code uses native
94
+ Agent/Skill surfaces when available, and other hosts use their installed
95
+ Agestra host assets. This is separate from MCP sampling and separate from
96
+ external CLI providers.
97
+
98
+ Default routing order for host-owned research and debate:
99
+
100
+ 1. Use the active host's native `agestra-research` agent for bounded evidence
101
+ collection and lens-specific investigation.
102
+ 2. Consolidate the host-native evidence into `initial_aggregation.items`.
103
+ 3. When a host debate participant is useful, add an explicit host-turn
104
+ participant such as `host-debate` with `participant_routes` pointing to
105
+ `agestra-debate`.
106
+ 4. Use external providers only as independent challengers, reviewers, or
107
+ Council/Provider-seeded participants selected by the user or topology.
108
+
109
+ Never treat `claude-host` sampling failure as a reason to fall back to
110
+ `claude-cli` for the host role. Likewise, do not map the current Codex or Gemini
111
+ host to `codex-cli` or `gemini-cli` unless the user asked for that external,
112
+ fresh-session provider. If host-native assets are unavailable, report that
113
+ limitation and continue with the selected external providers or ask for setup
114
+ instead of silently changing the role identity.
115
+ </Host_Native_First>
116
+
117
+ <Progress_Visibility>
118
+ Agestra provider-backed work is never fire-and-forget. Completion notifications
119
+ are not enough user-visible progress.
120
+
121
+ - Emit a concise phase update immediately when entering setup/trust, intake,
122
+ evidence collection, research planning, provider fan-out, consensus/debate,
123
+ worker execution, QA/review inspection, and report-writing phases.
124
+ - While provider, debate, or worker work is running, poll the narrowest available
125
+ progress surface every 30-60 seconds and relay a short status update:
126
+ `agent_debate_status` for consensus sessions, `run_observable_events` with a
127
+ cursor when a run/session/worker locator exists, and `cli_worker_status` for
128
+ CLI workers.
129
+ - `trace_query` and `trace_summary` are diagnostics, not a replacement for live
130
+ progress. A `cold-start` trace means no provider call has been recorded yet;
131
+ report the current local phase and keep monitoring instead of stopping.
132
+ - If this agent runs in a background mode whose messages cannot reach the user,
133
+ include an explicit `progress_contract` in the handoff/final report telling
134
+ the caller to poll and relay progress. The caller must not describe bounded
135
+ progress polling as context waste.
136
+ - Use cursor-safe, bounded polling with small limits. Stop polling only after a
137
+ terminal status, cancellation, or an explicit user stop request.
138
+ </Progress_Visibility>
139
+
76
140
  <Assignment_Prompt_Crafting>
77
141
  Team quality depends on assignment quality. Do not send vague prompts.
78
142
 
@@ -103,9 +167,10 @@ honor the handoff's `research_topology` / `조사 방식`. Use canonical topolog
103
167
  values in MCP calls: `host-seeded`, `council`, or `provider-seeded`
104
168
  (`host-led` may appear only as a legacy/user-facing alias for `host-seeded`).
105
169
 
106
- - `host-seeded`: the current host and host-native `agestra-research` prepare the
107
- first evidence/aggregation; external providers primarily challenge, revise,
108
- and debate prepared items.
170
+ - `host-seeded`: Host-native first. The current host and host-native
171
+ `agestra-research` prepare the first evidence/aggregation before external
172
+ provider fan-out; external providers primarily challenge, revise, and debate
173
+ prepared items.
109
174
  - `council`: host-native researchers and external providers receive independent
110
175
  investigation assignments before consolidation. Before fan-out, create or
111
176
  confirm a bounded assignment table when the handoff does not already include
@@ -115,19 +180,32 @@ values in MCP calls: `host-seeded`, `council`, or `provider-seeded`
115
180
  it. If the seed provider is missing or unavailable, ask once for a replacement
116
181
  or fall back to `host-seeded` when asking is blocked.
117
182
  - `automatic`: choose the lightest topology that preserves quality. Prefer
118
- `host-seeded` for bounded/scoped work, `council` for broad/open-ended discovery,
119
- and `provider-seeded` only when the user named a seed provider or explicitly
120
- asked a provider to lead the investigation.
183
+ Host-native first (`host-seeded`) for bounded/scoped work, `council` for
184
+ broad/open-ended discovery, and `provider-seeded` only when the user named a
185
+ seed provider or explicitly asked a provider to lead the investigation.
121
186
 
122
187
  If provider-backed work needs a research topology but the handoff omitted it,
123
188
  ask one concise topology question. This is a cost/latency gate, not a domain
124
189
  clarification. If a host-level no-questions directive prevents asking, choose
125
- `host-seeded` and report that external investigation fan-out was limited.
190
+ Host-native first (`host-seeded`) and report that external investigation fan-out
191
+ was limited.
126
192
 
127
193
  Use `agent_research_consensus_start` when the task needs investigation before
128
- provider consensus. The host owns research planning, research collection,
129
- quality checks, consolidation, pre-agreement, debate input creation, and final
130
- user-facing documents.
194
+ provider consensus. The host owns research planning, host-native research
195
+ collection, quality checks, consolidation, pre-agreement, debate input creation,
196
+ and final user-facing documents. Host-owned research should run through
197
+ `agestra-research` when the active host exposes native agents; MCP sampling is
198
+ not required for that route.
199
+
200
+ Human-facing documents under `docs/agestra/` have exactly two roles:
201
+
202
+ - `*-aggregation.md`: a readable Markdown aggregation of participant comments,
203
+ claims, evidence, disagreements, and round responses. Do not paste raw JSON
204
+ bodies into this document; internal JSON artifacts stay referenced as
205
+ evidence only.
206
+ - `*-result.md`: the final decision document. It must stand alone with the
207
+ final decisions and reasons. It should not require the reader to follow the
208
+ debate process.
131
209
 
132
210
  Canonical flow:
133
211
 
@@ -151,6 +229,10 @@ For direct consensus with prepared items, use `agent_consensus_start` with:
151
229
  - `initial_aggregation.items`: the already prepared consensus items
152
230
  - `metadata.taskLabel`: optional human label only
153
231
 
232
+ Prefer a host-turn `agestra-debate` participant over the current host's external
233
+ CLI provider when the host perspective should join the debate. The CLI provider
234
+ is a separate fresh-session AI, not the native host participant.
235
+
154
236
  Do not pass legacy research/source-document/specialist-injection fields. The
155
237
  engine should not decide the domain, choose specialists, run pre-round fan-out,
156
238
  or create the initial items.
@@ -159,9 +241,11 @@ or create the initial items.
159
241
  <Team_Composition>
160
242
  Use these patterns as starting points and adapt them to the task:
161
243
 
162
- - Idea/design/review/security/QA with providers: run focused `agestra-research`
163
- assignments with the relevant lenses, consolidate the evidence, then start
164
- provider consensus over unresolved items.
244
+ - Idea/design/review/security/QA with providers: start with focused
245
+ host-native `agestra-research` assignments for Host-native first
246
+ (`host-seeded`) work, consolidate the evidence, then start provider consensus
247
+ over unresolved items. Use external provider research only for Council or
248
+ Provider-seeded topology, or when the user explicitly asks for it.
165
249
  - Implementation with providers: decompose work, assign scoped patches to
166
250
  write-capable providers or `agestra-implementer`, review diffs, then verify.
167
251
  - Host participant needed in consensus: add an explicit host-turn participant
@@ -8,7 +8,7 @@ You are executing the `/agestra design` command.
8
8
  **Subject:** $ARGUMENTS
9
9
 
10
10
  Plain review/QA/check requests without `/agestra` or explicit multi-AI/provider wording stay with the current host; they are not Agestra natural-language auto-triggers.
11
- Agestra natural-language routing requires explicit multi-AI/provider wording such as "multiple AIs", "all AIs", "other AI", "multi-AI", "Codex and Gemini", "provider comparison", or "프로바이더 비교". Explicit `/agestra ...` commands remain supported.
11
+ Agestra natural-language routing requires explicit Agestra/multi-AI/provider wording such as "Agestra", "아제스트라", "multiple AIs", "all AIs", "other AI", "multi-AI", "Codex and Gemini", "provider comparison", or "프로바이더 비교". Explicit `/agestra ...` commands remain supported.
12
12
 
13
13
  Host interaction fallback: when this workflow says `AskUserQuestion`, use a structured question UI if the current host exposes one. If it is unavailable (for example, in Codex), ask the same question plainly in chat, present the same options, and wait for the user's answer.
14
14
 
@@ -67,12 +67,12 @@ Before provider fan-out, ask once which investigation topology to use unless the
67
67
 
68
68
  | Option | Description |
69
69
  |--------|-------------|
70
- | **Host-led Research (Recommended)** | The current host/native researchers inspect the codebase and prepare the first design evidence packet; providers challenge and debate it. Record internally as `host-seeded`. |
70
+ | **Host-native first (Recommended)** | The active host's native `agestra-research` agent inspects the codebase and prepares the first design evidence packet; providers challenge and debate it. Record internally as `host-seeded`. |
71
71
  | **Council Research** | Host and providers independently investigate design options with assigned lenses before consolidation and debate. |
72
72
  | **Provider-seeded Research** | One selected provider creates the first design seed/evidence artifact; host and other providers challenge it. |
73
- | **Decide automatically** | Use Host-led for bounded design work, Council for broad architecture exploration, and Provider-seeded only when the user named a provider to lead. |
73
+ | **Decide automatically** | Use Host-native first for bounded design work, Council for broad architecture exploration, and Provider-seeded only when the user named a provider to lead. |
74
74
 
75
- Use `AskUserQuestion` when available, or a plain numbered prompt as fallback. This is a cost/latency gate, not a design clarification. If a host-level no-questions directive prevents asking, choose Host-led Research (`host-seeded`) and report that broader provider investigation was skipped. If Provider-seeded Research is selected and the seed provider is not explicit, record the seed provider as pending; after provider availability is listed, ask which available provider should seed. Do not infer it.
75
+ Use `AskUserQuestion` when available, or a plain numbered prompt as fallback. This is a cost/latency gate, not a design clarification. If a host-level no-questions directive prevents asking, choose Host-native first (`host-seeded`) and report that broader provider investigation was skipped. If Provider-seeded Research is selected and the seed provider is not explicit, record the seed provider as pending; after provider availability is listed, ask which available provider should seed. Do not infer it.
76
76
 
77
77
  Default design principles:
78
78
  - Prefer maintainable structure and code quality over easy/fast patchwork
@@ -112,12 +112,14 @@ External AI research and debate run in separate fresh sessions, even when the sa
112
112
  - **User constraints:** any explicit constraints provided
113
113
  - **Consensus domain:** `design`
114
114
  - **Research topology / 조사 방식:** selected in Step 2 (`host-seeded`, `council`, `provider-seeded`, or `automatic`)
115
+ - **Host-native route:** for Host-native first (`host-seeded`), run active-host `agestra-research` before external provider fan-out; route any host debate participant to `agestra-debate` with `participant_routes`; do not substitute the current host's external CLI provider for this native role
115
116
  - **Research notes:** what the selected investigation should look for (existing patterns, prior art, constraints, current-information needs)
116
117
  - **Research assignments:** optional participant/lens rows for `research_assignments`
117
118
  - **Available providers:** from `environment_check` / `provider_list`
118
119
  - **Requested providers:** explicit names captured from the user's wording (e.g. `[codex, gemini]`); otherwise "all available"
119
120
  - **Locale:** from `setup_status`
120
121
  - **Target workspace root:** absolute project folder if the user supplied or implied one; pass it to workspace/debate MCP calls as `workspace_base_dir`
122
+ - **Progress contract:** surface concise phase updates every 30-60 seconds; poll `agent_debate_status`, `run_observable_events` with a cursor, or `cli_worker_status` when available; if trace is `cold-start`, report the current local phase and keep monitoring
121
123
  - **Original user request:** preserve verbatim
122
124
 
123
125
  Team-lead owns the rest:
package/commands/idea.md CHANGED
@@ -8,7 +8,7 @@ You are executing the `/agestra idea` command.
8
8
  **Topic:** $ARGUMENTS
9
9
 
10
10
  Plain review/QA/check requests without `/agestra` or explicit multi-AI/provider wording stay with the current host; they are not Agestra natural-language auto-triggers.
11
- Agestra natural-language routing requires explicit multi-AI/provider wording such as "multiple AIs", "all AIs", "other AI", "multi-AI", "Codex and Gemini", "provider comparison", or "프로바이더 비교". Explicit `/agestra ...` commands remain supported.
11
+ Agestra natural-language routing requires explicit Agestra/multi-AI/provider wording such as "Agestra", "아제스트라", "multiple AIs", "all AIs", "other AI", "multi-AI", "Codex and Gemini", "provider comparison", or "프로바이더 비교". Explicit `/agestra ...` commands remain supported.
12
12
 
13
13
  Host interaction fallback: when this workflow says `AskUserQuestion`, use a structured question UI if the current host exposes one. If it is unavailable (for example, in Codex), ask the same question plainly in chat, present the same options, and wait for the user's answer.
14
14
 
@@ -65,12 +65,12 @@ Before provider fan-out, ask once which investigation topology to use unless the
65
65
 
66
66
  | Option | Description |
67
67
  |--------|-------------|
68
- | **Host-led Research (Recommended)** | The current host prepares the first evidence packet, then providers challenge and debate it. Fastest and lowest-cost default. Record internally as `host-seeded`. |
68
+ | **Host-native first (Recommended)** | The active host's native `agestra-research` agent prepares the first evidence packet, then providers challenge and debate it. Fastest and lowest-cost default. Record internally as `host-seeded`. |
69
69
  | **Council Research** | Host and providers independently investigate assigned lenses before consolidation and debate. Stronger for broad/open-ended exploration. |
70
70
  | **Provider-seeded Research** | One selected provider creates the first seed/evidence artifact, then host and other providers challenge it. |
71
- | **Decide automatically** | Use Host-led for bounded topics, Council for broad idea discovery, and Provider-seeded only when the user named a provider to lead. |
71
+ | **Decide automatically** | Use Host-native first for bounded topics, Council for broad idea discovery, and Provider-seeded only when the user named a provider to lead. |
72
72
 
73
- Use `AskUserQuestion` when available, or a plain numbered prompt as fallback. This is a cost/latency gate, not a domain clarification. If a host-level no-questions directive prevents asking, choose Host-led Research (`host-seeded`) and report that broader provider investigation was skipped. If Provider-seeded Research is selected and the seed provider is not explicit, record the seed provider as pending; after provider availability is listed, ask which available provider should seed. Do not infer it.
73
+ Use `AskUserQuestion` when available, or a plain numbered prompt as fallback. This is a cost/latency gate, not a domain clarification. If a host-level no-questions directive prevents asking, choose Host-native first (`host-seeded`) and report that broader provider investigation was skipped. If Provider-seeded Research is selected and the seed provider is not explicit, record the seed provider as pending; after provider availability is listed, ask which available provider should seed. Do not infer it.
74
74
 
75
75
  Provider-backed `/agestra idea` uses the selected research topology flow:
76
76
 
@@ -102,12 +102,14 @@ Hand off to the `agestra:agestra-team-lead` agent with multi-AI mode **pre-selec
102
102
  - **Interview answers:** the details collected above, including research notes, research assignments, and free notes
103
103
  - **Consensus domain:** `idea`
104
104
  - **Research topology / 조사 방식:** selected in Step 2 (`host-seeded`, `council`, `provider-seeded`, or `automatic`)
105
+ - **Host-native route:** for Host-native first (`host-seeded`), run active-host `agestra-research` before external provider fan-out; route any host debate participant to `agestra-debate` with `participant_routes`; do not substitute the current host's external CLI provider for this native role
105
106
  - **Research notes:** what the selected investigation should look for
106
107
  - **Research assignments:** optional participant/lens rows for `research_assignments`
107
108
  - **Available providers:** from `environment_check`
108
109
  - **Requested providers:** explicit names captured from user wording; otherwise "all available"
109
110
  - **Locale:** from `setup_status`
110
111
  - **Target workspace root:** absolute project folder if the user supplied or implied one; pass it to workspace/debate MCP calls as `workspace_base_dir`
112
+ - **Progress contract:** surface concise phase updates every 30-60 seconds; poll `agent_debate_status`, `run_observable_events` with a cursor, or `cli_worker_status` when available; if trace is `cold-start`, report the current local phase and keep monitoring
111
113
  - **Original user request:** preserve verbatim
112
114
 
113
115
  Team-lead owns the rest:
@@ -8,7 +8,7 @@ You are executing the `/agestra implement` command.
8
8
  **Task:** $ARGUMENTS
9
9
 
10
10
  Plain review/QA/check requests without `/agestra` or explicit multi-AI/provider wording stay with the current host; they are not Agestra natural-language auto-triggers.
11
- Agestra natural-language routing requires explicit multi-AI/provider wording such as "multiple AIs", "all AIs", "other AI", "multi-AI", "Codex and Gemini", "provider comparison", or "프로바이더 비교". Explicit `/agestra ...` commands remain supported.
11
+ Agestra natural-language routing requires explicit Agestra/multi-AI/provider wording such as "Agestra", "아제스트라", "multiple AIs", "all AIs", "other AI", "multi-AI", "Codex and Gemini", "provider comparison", or "프로바이더 비교". Explicit `/agestra ...` commands remain supported.
12
12
 
13
13
  Host interaction fallback: when this workflow says `AskUserQuestion`, use a structured question UI if the current host exposes one. If it is unavailable (for example, in Codex), ask the same question plainly in chat, present the same options, and wait for the user's answer.
14
14
 
@@ -113,9 +113,11 @@ Handoff packet:
113
113
  - **E2E/runtime execution:** host-owned only
114
114
  - **Available providers:** from `environment_check` / `provider_list`
115
115
  - **Requested providers:** explicit names captured from user wording; otherwise "all available"
116
+ - **Host-native route:** use `agestra-implementer`, `agestra-research`, and host-turn `agestra-debate` through the active host's native agent surface when they represent the host role; do not substitute the current host's external CLI provider for those native roles
116
117
  - **Locale:** from `setup_status`
117
118
  - **Target workspace root:** absolute project folder if the user supplied or implied one; pass it to workspace/debate MCP calls as `workspace_base_dir`
118
119
  - **Risk/Complexity classification:** from Step 3 dimensions
120
+ - **Progress contract:** surface concise phase updates every 30-60 seconds; poll `agent_debate_status`, `run_observable_events` with a cursor, or `cli_worker_status` when available; if trace is `cold-start`, report the current local phase and keep monitoring
119
121
  - **Original user request:** preserve verbatim
120
122
 
121
123
  Team-lead owns the rest:
@@ -145,5 +147,5 @@ When team-lead returns, surface:
145
147
  - QA verdict (PASS / CONDITIONAL PASS / FAIL with classified failures if any)
146
148
  - QA Brigade participants, assigned lenses, accepted ledger items, excluded ledger items, open/opinion items, consensus, and notable dissenting findings when multi-AI QA ran
147
149
  - Review report path under `docs/reports/review/` and review verdict (APPROVE / APPROVE WITH CONCERNS / BLOCKING CONCERNS) when review ran
148
- - Synthesis paths under `.agestra/workspace/synthesis/` if consensus ran
150
+ - Consensus ledger/progress paths under `.agestra/workspace/` if consensus ran, plus any human-facing `docs/agestra/*-aggregation.md` / `*-result.md` paths
149
151
  - Communicate in the user's language
package/commands/qa.md CHANGED
@@ -8,7 +8,7 @@ You are executing the `/agestra qa` command.
8
8
  **Target:** $ARGUMENTS
9
9
 
10
10
  Plain review/QA/check requests without `/agestra` or explicit multi-AI/provider wording stay with the current host; they are not Agestra natural-language auto-triggers.
11
- Agestra natural-language routing requires explicit multi-AI/provider wording such as "multiple AIs", "all AIs", "other AI", "multi-AI", "Codex and Gemini", "provider comparison", or "프로바이더 비교". Explicit `/agestra ...` commands remain supported.
11
+ Agestra natural-language routing requires explicit Agestra/multi-AI/provider wording such as "Agestra", "아제스트라", "multiple AIs", "all AIs", "other AI", "multi-AI", "Codex and Gemini", "provider comparison", or "프로바이더 비교". Explicit `/agestra ...` commands remain supported.
12
12
 
13
13
  Host interaction fallback: when this workflow says `AskUserQuestion`, use a structured question UI if the current host exposes one. If it is unavailable (for example, in Codex), ask the same question plainly in chat, present the same options, and wait for the user's answer.
14
14
 
@@ -111,6 +111,7 @@ The host must prepare QA evidence before provider fan-out. External providers cr
111
111
  - **Connection / Boundary Checks:** API/consumer data shape, route/link mapping, state transition completeness, command/result consistency, and E2E artifact interpretation when E2E ran
112
112
  - **Research notes:** what the host-owned evidence pass should look for (spec-to-code gaps, boundary mismatches, regressions, integration risk, edge/error states, test adequacy, safety hygiene)
113
113
  - **Cross-check assignments:** optional provider/lens rows for the short consensus round, or "team-lead choose"
114
+ - **Host-native route:** run active-host `agestra-research` for bounded QA evidence lenses before provider cross-check when useful; route any host debate participant to `agestra-debate` with `participant_routes`; do not substitute the current host's external CLI provider for this native role
114
115
  - **Available providers:** from `environment_check`; include configured providers when their detected model capability is suitable, using read-only QA/review tools so verification cannot modify source files
115
116
  - **Requested providers:** explicit names captured from user wording; otherwise "all configured and available review-capable providers"
116
117
  - **QA lens handoff:** when a host QA/review/security perspective is needed, team-lead assigns `agestra-research` focused native-agent lenses before provider fan-out and includes that evidence in the host-prepared `initial_aggregation`. Do not list `agestra-research` as an external provider participant.
@@ -119,6 +120,7 @@ The host must prepare QA evidence before provider fan-out. External providers cr
119
120
  - **JSON finding flow:** candidate findings become `ITEM-*` ledger items; participants use the existing `agree` / `disagree` / `opinion` / `revise` stance contract; only ledger-accepted items affect the final verdict
120
121
  - **Locale:** from `setup_status`
121
122
  - **Target workspace root:** absolute project folder if the user supplied or implied one; pass it to workspace/debate MCP calls as `workspace_base_dir`
123
+ - **Progress contract:** surface concise phase updates every 30-60 seconds; poll `agent_debate_status`, `run_observable_events` with a cursor, or `cli_worker_status` when available; if trace is `cold-start`, report the current local phase and keep monitoring
122
124
  - **Original user request:** preserve verbatim
123
125
 
124
126
  Team-lead owns running the host-owned QA evidence pass, then preparing `initial_aggregation.items` from concrete evidence and calling `agent_consensus_start` with `domain` represented only in metadata, exact provider participants, `participant_routes` for any host-native `agestra-debate` participant, `max_rounds: 1` for Standard QA, and a bounded participant timeout. Team-lead must poll `agent_debate_status` and `run_observable_events` when a locator is available, then surface concise progress at least every 30-60 seconds while provider work is running. When the status reports pending host turns, team-lead dispatches the native `agestra-debate` agent and submits the JSON with `agent_consensus_submit_turn`. If the current host cannot surface progress from a background team-lead, the caller must poll and relay progress, or choose Host-only QA for the current run.
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: "Run domain-specific research with council, host-seeded, or provider-seeded topology"
2
+ description: "Run domain-specific research with Host-native first, council, or provider-seeded topology"
3
3
  argument-hint: "[domain] [topic or question]"
4
4
  ---
5
5
 
@@ -9,6 +9,7 @@ You are executing the `/agestra research` command.
9
9
 
10
10
  Use the user-facing term "조사 방식" when talking to the user.
11
11
  Provider-facing prompts stay English; user-facing summaries follow the configured locale.
12
+ External provider research prompts must include `skills/references/lenses/research-provider-rules.md`.
12
13
 
13
14
  ## Step 0: Setup preflight
14
15
 
@@ -59,17 +60,17 @@ Also capture:
59
60
  Available 조사 방식:
60
61
 
61
62
  - Council Research
62
- - Host-seeded Research
63
+ - Host-native first (recorded internally as `host-seeded`)
63
64
  - Provider-seeded Research
64
65
 
65
66
  If the user already chose one, validate that it fits the domain and continue.
66
67
  If not, propose one recommendation with a short reason and ask for approval.
67
68
  This is a cost/latency gate, not a clarifying question. If a host-level
68
- no-questions directive prevents asking, choose Host-seeded Research and report
69
+ no-questions directive prevents asking, choose Host-native first (`host-seeded`) and report
69
70
  that broader provider investigation was skipped.
70
71
  If no external providers are available, stop Agestra orchestration and tell the user to run setup or handle the research directly outside Agestra.
71
72
 
72
- Host-seeded Research means the active host creates the first seed/evidence document, persists it through workspace document tooling, and external participants challenge it through `domain: "research"`. It is provider-backed research, not a host-only multi-AI mode.
73
+ Host-native first means the active host's native `agestra-research` agent creates the first seed/evidence document, persists it through workspace document tooling, and external participants challenge it through `domain: "research"`. Record it internally as `host-seeded`. It is provider-backed research, not a host-only multi-AI mode.
73
74
 
74
75
  Provider-seeded Research means the selected `seed_provider` creates the first seed/evidence artifact, then reviewer participants independently challenge that seed. The seed provider never commands reviewers; Agestra team-lead/moderator remains the orchestrator.
75
76
 
@@ -85,12 +86,17 @@ Before any provider fan-out, create a concise plan containing:
85
86
  - Markdown report target
86
87
  - validation step, including finding-validator when claims need confirmation
87
88
 
89
+ External provider research prompts must be assembled from provider rules, the
90
+ common research guide, the target-domain research card, the `ResearchSubmission`
91
+ output contract, and the assignment task packet. Do not send the full
92
+ `agestra-research` agent or skill document to providers.
93
+
88
94
  For Council Research, this proposal is mandatory. Ask the user to approve or modify it before running the council.
89
95
  Do not start provider fan-out until the user approves or modifies the plan.
90
96
 
91
- For Host-seeded Research, create the host seed/aggregation before provider fan-out. Normalize it into `initial_aggregation.items`; do not pass it through `source_documents`.
97
+ For Host-native first (`host-seeded`), create the host seed/aggregation through the active host's native agent surface before provider fan-out. Normalize it into `initial_aggregation.items`; do not pass it through `source_documents`.
92
98
 
93
- Host-seeded Research requires at least one external reviewer participant outside the seed provider. If the user explicitly asks for host-only artifact capture, use `artifact_only_diagnostic: true` and clearly state that no multi-AI consensus was produced.
99
+ Host-native first requires at least one external reviewer participant outside the seed provider. If the user explicitly asks for host-only artifact capture, use `artifact_only_diagnostic: true` and clearly state that no multi-AI consensus was produced.
94
100
 
95
101
  For Provider-seeded Research, choose or confirm one configured and available `seed_provider` before fan-out. Include it in `participants`, include at least one reviewer participant, and pass `reviewer_participants` when the reviewer set should be explicit. Use `seed_scope` when the seed artifact needs a narrower brief. Use `tool_broker_policy` only to record explicit host-brokered evidence expectations (`none`, `host-brokered-readonly`, or `host-brokered-evidence`); this does not grant direct host tool-use to the provider.
96
102
 
@@ -106,9 +112,11 @@ Hand off to `agestra:agestra-team-lead` with a self-contained packet:
106
112
  - Runtime lens/role assignment table
107
113
  - Available providers
108
114
  - Requested providers from user wording, or all available
115
+ - Host-native route: for Host-native first (`host-seeded`), run active-host `agestra-research` before external provider fan-out; route any host debate participant to `agestra-debate` with `participant_routes`; do not substitute the current host's external CLI provider for this native role
109
116
  - Locale
110
117
  - Target workspace root
111
118
  - Required JSON artifacts
119
+ - Progress contract: surface concise phase updates every 30-60 seconds; poll `agent_debate_status`, `run_observable_events` with a cursor, or `cli_worker_status` when available; if trace is `cold-start`, report the current local phase and keep monitoring
112
120
  - Original user request verbatim
113
121
 
114
122
  For Council Research, the team-lead must call `agent_consensus_start` only after approval and after preparing `initial_aggregation.items`:
@@ -124,7 +132,7 @@ For Council Research, the team-lead must call `agent_consensus_start` only after
124
132
  }
125
133
  ```
126
134
 
127
- For Host-seeded Research, the team-lead must first create the host aggregation, then call `agent_consensus_start` with:
135
+ For Host-native first (`host-seeded`), the team-lead must first create the host aggregation, then call `agent_consensus_start` with:
128
136
 
129
137
  ```json
130
138
  {
@@ -167,7 +175,7 @@ Runtime boundary: native researcher/helper agents are created only by the active
167
175
  This command must not call `agent_consensus_start` directly when external providers are involved until host-owned research preprocessing has produced `initial_aggregation.items`.
168
176
  This command must not create a bundled research pseudo-participant or carry research bundles through `source_documents`.
169
177
 
170
- When host-owned investigation material is produced as evidence for a provider-backed research workflow, record it through `agent_research_record` before the council or host-seeded review consumes it. Include:
178
+ When host-owned investigation material is produced as evidence for a provider-backed research workflow, record it through `agent_research_record` before the council or Host-native first (`host-seeded`) review consumes it. Include:
171
179
 
172
180
  - `research_target_domain`
173
181
  - selected `topology`
@@ -8,7 +8,7 @@ You are executing the `/agestra review` command.
8
8
  **Target:** $ARGUMENTS
9
9
 
10
10
  Plain review/QA/check requests without `/agestra` or explicit multi-AI/provider wording stay with the current host; they are not Agestra natural-language auto-triggers.
11
- Agestra natural-language routing requires explicit multi-AI/provider wording such as "multiple AIs", "all AIs", "other AI", "multi-AI", "Codex and Gemini", "provider comparison", or "프로바이더 비교". Explicit `/agestra ...` commands remain supported.
11
+ Agestra natural-language routing requires explicit Agestra/multi-AI/provider wording such as "Agestra", "아제스트라", "multiple AIs", "all AIs", "other AI", "multi-AI", "Codex and Gemini", "provider comparison", or "프로바이더 비교". Explicit `/agestra ...` commands remain supported.
12
12
 
13
13
  Host interaction fallback: when this workflow says `AskUserQuestion`, use a structured question UI if the current host exposes one. If it is unavailable (for example, in Codex), ask the same question plainly in chat, present the same options, and wait for the user's answer.
14
14
 
@@ -81,12 +81,12 @@ Before provider fan-out, ask once which investigation topology to use unless the
81
81
 
82
82
  | Option | Description |
83
83
  |--------|-------------|
84
- | **Host-led Research (Recommended)** | The current host prepares bounded review evidence first; providers challenge and debate the prepared findings. Record internally as `host-seeded`. |
84
+ | **Host-native first (Recommended)** | The active host's native `agestra-research` agent prepares bounded review evidence first; providers challenge and debate the prepared findings. Record internally as `host-seeded`. |
85
85
  | **Council Research** | Host and providers independently inspect assigned review lenses before consolidation and debate. |
86
86
  | **Provider-seeded Research** | One selected provider creates the first review seed/evidence artifact; host and other providers challenge it. |
87
- | **Decide automatically** | Use Host-led for scoped reviews, Council for whole-project/deep reviews, and Provider-seeded only when the user named a provider to lead. |
87
+ | **Decide automatically** | Use Host-native first for scoped reviews, Council for whole-project/deep reviews, and Provider-seeded only when the user named a provider to lead. |
88
88
 
89
- Use `AskUserQuestion` when available, or a plain numbered prompt as fallback. This is a cost/latency gate, not a review clarification. If a host-level no-questions directive prevents asking, choose Host-led Research (`host-seeded`) and report that broader provider investigation was skipped. If Provider-seeded Research is selected and the seed provider is not explicit, record the seed provider as pending; after provider availability is listed, ask which available provider should seed. Do not infer it.
89
+ Use `AskUserQuestion` when available, or a plain numbered prompt as fallback. This is a cost/latency gate, not a review clarification. If a host-level no-questions directive prevents asking, choose Host-native first (`host-seeded`) and report that broader provider investigation was skipped. If Provider-seeded Research is selected and the seed provider is not explicit, record the seed provider as pending; after provider availability is listed, ask which available provider should seed. Do not infer it.
90
90
 
91
91
  ## Step 4: Route execution
92
92
 
@@ -116,6 +116,7 @@ External AI research and debate run in separate fresh sessions, even when the sa
116
116
  - **Report artifact path expectation:** `docs/reports/review/YYYY-MM-DD-review-[target].md`
117
117
  - **Consensus domain:** `review`
118
118
  - **Research topology / 조사 방식:** selected in Step 3 (`host-seeded`, `council`, `provider-seeded`, or `automatic`)
119
+ - **Host-native route:** for Host-native first (`host-seeded`), run active-host `agestra-research` before external provider fan-out; route any host debate participant to `agestra-debate` with `participant_routes`; do not substitute the current host's external CLI provider for this native role
119
120
  - **Research notes:** what the selected investigation should look for (regression-prone areas, blast radius, prior incidents, dependency concerns, current-information needs)
120
121
  - **Research assignments:** optional participant/lens rows for `research_assignments`
121
122
  - **Available providers:** from `environment_check`; include configured providers when their detected model capability is suitable, using read-only review tools for code/document critique
@@ -124,6 +125,7 @@ External AI research and debate run in separate fresh sessions, even when the sa
124
125
  - **Scale controls:** normal scoped reviews inherit the 5-minute participant timeout. If the target is a whole project, a large directory, or deep review, instruct team-lead to create a bounded review packet before fan-out: changed files, key entry points, relevant docs/config, and explicit exclusions. Do not ask external CLI providers to explore an unbounded large repository from scratch. Use `participant_timeout_ms: 600000` (10 minutes) for large/deep reviews, and split the review into narrower area debates if providers still time out.
125
126
  - **Locale:** from `setup_status`
126
127
  - **Target workspace root:** absolute project folder if the user supplied or implied one; pass it to workspace/debate MCP calls as `workspace_base_dir`
128
+ - **Progress contract:** surface concise phase updates every 30-60 seconds; poll `agent_debate_status`, `run_observable_events` with a cursor, or `cli_worker_status` when available; if trace is `cold-start`, report the current local phase and keep monitoring
127
129
  - **Original user request:** preserve verbatim
128
130
 
129
131
  Team-lead owns the rest:
@@ -8,7 +8,7 @@ You are executing the `/agestra security` command.
8
8
  **Target:** $ARGUMENTS
9
9
 
10
10
  Plain review/QA/check requests without `/agestra` or explicit multi-AI/provider wording stay with the current host; they are not Agestra natural-language auto-triggers.
11
- Agestra natural-language routing requires explicit multi-AI/provider wording such as "multiple AIs", "all AIs", "other AI", "multi-AI", "Codex and Gemini", "provider comparison", or "프로바이더 비교". Explicit `/agestra ...` commands remain supported.
11
+ Agestra natural-language routing requires explicit Agestra/multi-AI/provider wording such as "Agestra", "아제스트라", "multiple AIs", "all AIs", "other AI", "multi-AI", "Codex and Gemini", "provider comparison", or "프로바이더 비교". Explicit `/agestra ...` commands remain supported.
12
12
 
13
13
  Host interaction fallback: when this workflow says `AskUserQuestion`, use a structured question UI if the current host exposes one. If it is unavailable (for example, in Codex), ask the same question plainly in chat, present the same options, and wait for the user's answer.
14
14
 
@@ -58,12 +58,12 @@ Before provider fan-out, ask once which investigation topology to use unless the
58
58
 
59
59
  | Option | Description |
60
60
  |--------|-------------|
61
- | **Host-led Research (Recommended)** | The current host prepares bounded security evidence first; providers challenge and debate the prepared findings. Record internally as `host-seeded`. |
61
+ | **Host-native first (Recommended)** | The active host's native `agestra-research` agent prepares bounded security evidence first; providers challenge and debate the prepared findings. Record internally as `host-seeded`. |
62
62
  | **Council Research** | Host and providers independently inspect assigned security surfaces before consolidation and debate. |
63
63
  | **Provider-seeded Research** | One selected provider creates the first security seed/evidence artifact; host and other providers challenge it. |
64
- | **Decide automatically** | Use Host-led for bounded audits, Council for broad/full security reviews, and Provider-seeded only when the user named a provider to lead. |
64
+ | **Decide automatically** | Use Host-native first for bounded audits, Council for broad/full security reviews, and Provider-seeded only when the user named a provider to lead. |
65
65
 
66
- Use `AskUserQuestion` when available, or a plain numbered prompt as fallback. This is a cost/latency gate, not a security clarification. If a host-level no-questions directive prevents asking, choose Host-led Research (`host-seeded`) and report that broader provider investigation was skipped. If Provider-seeded Research is selected and the seed provider is not explicit, record the seed provider as pending; after provider availability is listed, ask which available provider should seed. Do not infer it.
66
+ Use `AskUserQuestion` when available, or a plain numbered prompt as fallback. This is a cost/latency gate, not a security clarification. If a host-level no-questions directive prevents asking, choose Host-native first (`host-seeded`) and report that broader provider investigation was skipped. If Provider-seeded Research is selected and the seed provider is not explicit, record the seed provider as pending; after provider availability is listed, ask which available provider should seed. Do not infer it.
67
67
 
68
68
  ## Step 4: Route execution
69
69
 
@@ -93,6 +93,7 @@ External AI research and debate run in separate fresh sessions, even when the sa
93
93
  - **Report artifact path expectation:** `docs/reports/security/YYYY-MM-DD-security-[target].md`
94
94
  - **Consensus domain:** `security`
95
95
  - **Research topology / 조사 방식:** selected in Step 3 (`host-seeded`, `council`, `provider-seeded`, or `automatic`)
96
+ - **Host-native route:** for Host-native first (`host-seeded`), run active-host `agestra-research` before external provider fan-out; route any host debate participant to `agestra-debate` with `participant_routes`; do not substitute the current host's external CLI provider for this native role
96
97
  - **Research notes:** what the selected investigation should look for (secrets/keys, auth/authz boundaries, file/command execution, network exposure, dependency concerns, unsafe defaults)
97
98
  - **Research assignments:** optional participant/lens rows for `research_assignments`
98
99
  - **Available providers:** from `environment_check`; include configured providers when their detected model capability is suitable, using read-only security-review tools unless the user explicitly approves a separate implementation task
@@ -100,6 +101,7 @@ External AI research and debate run in separate fresh sessions, even when the sa
100
101
  - **Specialist handoff (host-native security):** when a host-native security lens is needed, team-lead runs that specialist through the active host layer and includes the result in the selected research/consolidation inputs. Do not use host-specialist handoff to create a bundled research participant.
101
102
  - **Locale:** from `setup_status`
102
103
  - **Target workspace root:** absolute project folder if the user supplied or implied one; pass it to workspace/debate MCP calls as `workspace_base_dir`
104
+ - **Progress contract:** surface concise phase updates every 30-60 seconds; poll `agent_debate_status`, `run_observable_events` with a cursor, or `cli_worker_status` when available; if trace is `cold-start`, report the current local phase and keep monitoring
103
105
  - **Original user request:** preserve verbatim
104
106
 
105
107
  Team-lead owns resolving the selected research topology, then calling `agent_research_consensus_start` when investigation fan-out is required or `agent_consensus_start` with prepared `initial_aggregation.items` when seed/host evidence is already available. Team-lead must ensure external AI research and debate use separate fresh sessions when a research phase is used, must never create a bundled research pseudo-participant, and must never carry research bundles through `source_documents`. Inspect `aggregation_record.json`, `open_debate_items.json`, `round_packet.{round}.{provider}.json`, the aggregation document, and the leader-authored final decision document under `docs/agestra/`. The brigade must not run destructive exploit tests and must not install tools or run heavyweight/networked scans without explicit user approval.