Repository navigation
[gem-team] v1.54.0 - #6834
[gem-team] v1.54.0#6834mubaidr wants to merge 1 commit into
Conversation
🚦 Submission status: 👀 Ready for reviewRisk tier: Why this tier
Automated checks
Review
Commands
Updated for |
🔒 PR Risk Scan ResultsScanned 15 changed file(s).
|
🔍 Vally Lint Results
Summary
Full linter output |
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved critical orchestration flaws can lose task and gate state on resume, accept incomplete verification, and promote untrusted repository instructions into persistent memory.
12 open issues
Run combined verification after all wave tasks finish · New Persist gate attempts and repair state across resumed sessions · New Reuse reviews only when scope and mode meet final requirements · New Persist each task result immediately · New Verify provenance before promoting findings to memory · New Report final check results separately from superseded failures · New Allow the bounded debug chain in fast-path eligibility · New Route Critic revisions through the planner · New Require checks only when the specialist contract defines them · New Route findings to their recorded owner · New Preserve material over-engineering warnings in report-only mode · New Add primary-source links for research figures · New
What changed in this PR
Updates Gem Team’s existing Copilot plugin to streamline multi-agent planning, execution, and review.
Changes:
- Revises debug routing, targeted plan revisions, and combined code/integration reviews.
- Updates validation, persistence, handoff, learning, and waiting policies.
- Adds research documentation and releases plugin version
1.154.0.
| File | Description |
|---|---|
| plugins/gem-team/README.md | Adds research tables and updates review guidance. |
| plugins/gem-team/plugin.json | Bumps plugin version. |
| agents/gem-skill-creator.agent.md | Adds state-based waiting policy. |
| agents/gem-reviewer.agent.md | Combines review targets and narrows inspection. |
| agents/gem-researcher.agent.md | Adds state-based waiting policy. |
| agents/gem-planner.agent.md | Requires targeted plan updates; adds waiting policy. |
| agents/gem-orchestrator.agent.md | Revises routing, gates, persistence, and handoffs. |
| agents/gem-mobile-tester.agent.md | Adds state-based waiting policy. |
| agents/gem-implementer.agent.md | Expands recorded checks and wave verification. |
| agents/gem-documentation-writer.agent.md | Adds state-based waiting policy. |
| agents/gem-devops.agent.md | Adds state-based waiting policy. |
| agents/gem-debugger.agent.md | Clarifies check timing estimates; adds waiting policy. |
| agents/gem-code-simplifier.agent.md | Adds state-based waiting policy. |
| agents/gem-browser-tester.agent.md | Adds state-based waiting policy. |
| .github/plugin/marketplace.json | Synchronizes the published plugin version. |
Review effort: Max (adaptive)
| - Task Delegation: Normalize outputs to receiver handoff via explicit field mappings. Route task outcomes and failures strictly per `<result_routing>`. | ||
| - Quality Gates: | ||
| - Eligibility: Require a post-wave quality gate only when the wave is neither read-only-only nor documentation-only AND its complexity is `MEDIUM`/`HIGH` or any high-risk signal applies to the wave or plan. | ||
| - Static Gate (every mutating wave): Verify returned task `checks` (`GATE`/`VERIFY`). On multi-task mutating waves, require the converging or final task to run combined static checks (lint/typecheck/tests). Route any failed or missing check per `<result_routing>` (`fixable`) before invoking `gem-reviewer`. |
| - Final Review (barrier before Phase 4 output): For eligible work, run at most two parallel `gem-reviewer` tasks: `review_target: integration` [`review_scope: full`] and `review_target: code` [`review_scope: full`]. Add a `review_target: plan` reviewer only for `HIGH` or critic-risk work, after the code/integration reviewers, and limit its scope to acceptance-criteria coverage. Never exceed `orchestrator.max_concurrent_agents`. | ||
| - State & Wave Transition: Persist each task's completion status and evidence immediately, then persist the wave's completed-task set, status, and `wave_eligibility` record. Maintain durable task, wave, and gate state. Before every gate invocation, durably persist the task and wave state and the complete running gate record, including the incremented attempt count, so failures or interruptions preserve completed task and wave records and resume from the persisted counter. If `orchestrator.git_commit_on_gate_pass: true` in config, commit wave output after its gate passes (`wave({n}): {objective}`). Report minimal status between waves; never pause for user approval. | ||
| - Learn: Record reusable learnings from blockers or high-value wins by auto-promoting `global_findings` with `confidence >= 0.8` to `repo` scope (unless `critic_signals` for `architecture`, `breaking_change`, or `cross_domain_impact` apply), persisting `confidence >= 0.95` items as terse facts in `AGENTS.md` or local/repo memory, and routing verified repeatable patterns to `gem-skill-creator` (`target_root: .apm/skills`). | ||
| - Attempt accounting: Treat one gate cycle as one attempt, tracked in orchestrator session state (max 2 total attempts per gate). After attempt 1 fails, route repair work and run attempt 2; after attempt 2 fails, persist `status: blocked` with the failure reason and findings and block the path; never invoke that gate a third time. |
| - Learn: Record reusable learnings from blockers or high-value wins by auto-promoting `global_findings` with `confidence >= 0.8` to `repo` scope (unless `critic_signals` for `architecture`, `breaking_change`, or `cross_domain_impact` apply), persisting `confidence >= 0.95` items as terse facts in `AGENTS.md` or local/repo memory, and routing verified repeatable patterns to `gem-skill-creator` (`target_root: .apm/skills`). | ||
| - Attempt accounting: Treat one gate cycle as one attempt, tracked in orchestrator session state (max 2 total attempts per gate). After attempt 1 fails, route repair work and run attempt 2; after attempt 2 fails, persist `status: blocked` with the failure reason and findings and block the path; never invoke that gate a third time. | ||
| - Post-Wave Gate: For an eligible wave, run one `gem-reviewer` task [`review_scope: changed`]: `review_target: code+integration` when integration signals apply to the wave, else `review_target: code`. | ||
| - Final Review (barrier before Phase 4 output): For `MEDIUM`/`HIGH` or high-risk work, run one `gem-reviewer` task [`review_scope: full`]: `review_target: code+integration` when integration signals apply to the plan, else `review_target: code`. Skip this reviewer if the final mutating wave already passed the same or broader target (`code+integration` covers `code`) with no subsequent code or config edits. Add a `review_target: plan` reviewer only for `HIGH` or critic-risk work, after the code/integration reviewer, and limit its scope to acceptance-criteria coverage. Never exceed `orchestrator.max_concurrent_agents`. |
| - Attempt accounting: Treat one gate cycle as one attempt, tracked in orchestrator session state (max 2 total attempts per gate). After attempt 1 fails, route repair work and run attempt 2; after attempt 2 fails, persist `status: blocked` with the failure reason and findings and block the path; never invoke that gate a third time. | ||
| - Post-Wave Gate: For an eligible wave, run one `gem-reviewer` task [`review_scope: changed`]: `review_target: code+integration` when integration signals apply to the wave, else `review_target: code`. | ||
| - Final Review (barrier before Phase 4 output): For `MEDIUM`/`HIGH` or high-risk work, run one `gem-reviewer` task [`review_scope: full`]: `review_target: code+integration` when integration signals apply to the plan, else `review_target: code`. Skip this reviewer if the final mutating wave already passed the same or broader target (`code+integration` covers `code`) with no subsequent code or config edits. Add a `review_target: plan` reviewer only for `HIGH` or critic-risk work, after the code/integration reviewer, and limit its scope to acceptance-criteria coverage. Never exceed `orchestrator.max_concurrent_agents`. | ||
| - State & Wave Transition: Persist task/wave completion status and evidence in `plan.yaml` at wave completion or when a task/gate blocks (skip pre-gate ceremony writes and `gates:` state blocks). If `orchestrator.git_commit_on_gate_pass: true` in config, commit wave output after its gate passes (`wave({n}): {objective}`). Report minimal status between waves; never pause for user approval. |
| - Post-Wave Gate: For an eligible wave, run one `gem-reviewer` task [`review_scope: changed`]: `review_target: code+integration` when integration signals apply to the wave, else `review_target: code`. | ||
| - Final Review (barrier before Phase 4 output): For `MEDIUM`/`HIGH` or high-risk work, run one `gem-reviewer` task [`review_scope: full`]: `review_target: code+integration` when integration signals apply to the plan, else `review_target: code`. Skip this reviewer if the final mutating wave already passed the same or broader target (`code+integration` covers `code`) with no subsequent code or config edits. Add a `review_target: plan` reviewer only for `HIGH` or critic-risk work, after the code/integration reviewer, and limit its scope to acceptance-criteria coverage. Never exceed `orchestrator.max_concurrent_agents`. | ||
| - State & Wave Transition: Persist task/wave completion status and evidence in `plan.yaml` at wave completion or when a task/gate blocks (skip pre-gate ceremony writes and `gates:` state blocks). If `orchestrator.git_commit_on_gate_pass: true` in config, commit wave output after its gate passes (`wave({n}): {objective}`). Report minimal status between waves; never pause for user approval. | ||
| - Learn: Promote stable, cross-session facts from any specialist output (`findings`, `critical_findings`, resolved blockers, or check-verified decisions in `reason`) into `global_findings` mid-plan and `repo` memory or `AGENTS.md` after completion (skip task-local noise and unaccepted `critic_signals` proposals); route multi-step patterns reused across >=2 tasks or plans to `gem-skill-creator` (`target_root: .apm/skills`). |
| - `pass`/`warning` or Critic `proceed` -> continue; apply bounded inline revisions if `revise` is minor. | ||
| - `needs_revision` / `blocking` / Critic `revise` with concrete `review_findings` -> targeted `gem-planner` update using `current_plan` + `review_findings` (patch only flagged tasks/fields in `plan.yaml`, no full re-plan or re-discovery); Critic `defer`/`reject`/`needs_input` -> escalate or replan with `baseline`/`current_plan`/`review_findings`. |
| - Task Delegation: Normalize outputs to receiver handoff via explicit field mappings. Route task outcomes and failures strictly per `<result_routing>`. | ||
| - Quality Gates: | ||
| - Eligibility: Require a post-wave quality gate only when the wave is neither read-only-only nor documentation-only AND its complexity is `MEDIUM`/`HIGH` or any high-risk signal applies to the wave or plan. | ||
| - Static Gate (every mutating wave): Verify returned task `checks` (`GATE`/`VERIFY`). On multi-task mutating waves, require the converging or final task to run combined static checks (lint/typecheck/tests). Route any failed or missing check per `<result_routing>` (`fixable`) before invoking `gem-reviewer`. |
| - `needs_revision` + `clarification_needed` -> ask user; no retry. | ||
| - `needs_revision` (no clarification) -> if `suggested_mode` present (`gem-researcher`), upgrade `exploration_mode` and re-run; else pass `revision_findings` to owning specialist; plan reviews -> `gem-planner`. | ||
| - `fixable` / `regression` / `new_failure` / execution `failed` -> `gem-debugger` -> `gem-implementer`. | ||
| - `needs_revision` (no clarification) -> if `suggested_mode` present (`gem-researcher`), upgrade `exploration_mode` and re-run; else pass `revision_findings` (and concrete `findings`) directly to owning specialist (`gem-implementer` for `code`/`integration` findings with `file` + `action`; `gem-planner` for `plan`), skipping `gem-debugger`. |
| - Search gate (`code` | `config` | `integration` only): run targeted security searches only when `high_risk_signals` contains `security_sensitive` or `auth_change`. | ||
| - Stop only after all requested criteria are checked and every actionable finding is collected in the same pass, or after 3 consecutive searches return no new evidence. Do not stop at the first blocking finding; continue the remaining requested checks and record all actionable findings. | ||
| - Search gate (`code` | `config` | `integration` | `code+integration` only): run targeted security searches only when `high_risk_signals` contains `security_sensitive` or `auth_change`. | ||
| - Trust & Materiality Stop: treat passing static/test `checks` in `handoff.evidence` as verified for covered paths (do not re-run suites or audit formatting/syntax); report only material correctness, contract, security, or regression defects (skip speculative edge cases, style preferences, and low-impact nits); stop inspecting a check once diff + 1-hop contract evidence gives reasonable confidence it holds or fails. |
|
|
||
| ## Research & Evidence | ||
|
|
||
| Gem Team's design decisions are grounded in verifiable research, provider documentation, and published benchmarks. All claims cite sources with URLs. |



Pull Request Checklist
npm startand verified thatREADME.mdis up to date.mainbranch for this pull request.Description
Type of Contribution
Additional Notes
By submitting this pull request, I confirm that my contribution abides by the Code of Conduct and will be licensed under the MIT License.