Skip to content

[gem-team] v1.152.0 Quality gates rework and add research - #6558

Open
mubaidr wants to merge 5 commits into
github:mainfrom
mubaidr:v1.148.0
Open

mubaidr wants to merge 5 commits into
github:mainfrom
mubaidr:v1.148.0

Conversation

@mubaidr

@mubaidr mubaidr commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Pull Request Checklist

  • I have read and followed the CONTRIBUTING.md guidelines.
  • I have read and followed the Guidance for submissions involving paid services.
  • My contribution adds a new instruction, prompt, agent, skill, workflow, or canvas extension file in the correct directory.
  • The file follows the required naming convention.
  • The content is clearly structured and follows the example format.
  • I have tested my instructions, prompt, agent, skill, workflow, or canvas extension with GitHub Copilot.
  • I have run npm start and verified that README.md is up to date.
  • I am targeting the main branch for this pull request.

Description

  • Unified workflow structure — standardized phase-based workflow across all 13 agents with clearer boundaries, delegation rules, and quality gates
  • Simplified agent definitions — removed redundant directives, consolidated Phase 0–4 workflows into consistent format with explicit routing logic
  • Improved handoff contracts — stricter payload ordering, caching rules, and context injection for task delegation
  • Enhanced quality gates — added post-wave and final plan-wide review gates with configurable review_mode (standard/high/critic) tied to risk signals
  • Clarified result routing — explicit mappings for needs_retry, needs_revision, needs_replan, blocked, flaky, platform_specific, test_bug outcomes
  • Refined planner output — strict acceptance criteria format ("Verify X happens when Y"), decision/assumption tracking, and anti-pattern guidance
  • ** Improved memory usage ** For facts reusages
  • ** Improve quality gates** Update gating for quality tasks
  • ** Enhance rules** Improve batching of tool calls rule

Type of Contribution

  • New instruction file.
  • New prompt file.
  • New agent file.
  • New plugin.
  • New skill file.
  • New agentic workflow.
  • New canvas extension.
  • Update to existing instruction, prompt, agent, plugin, skill, workflow, or canvas extension.
  • Other (please specify):

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.

…ugin to v1.148.0

- **Unified workflow structure** — standardized phase-based workflow across all 13 agents with clearer boundaries, delegation rules, and quality gates
- **Simplified agent definitions** — removed redundant directives, consolidated Phase 0–4 workflows into consistent format with explicit routing logic
- **Improved handoff contracts** — stricter payload ordering, caching rules, and context injection for task delegation
- **Enhanced quality gates** — added post-wave and final plan-wide review gates with configurable `review_mode` (standard/high/critic) tied to risk signals
- **Clarified result routing** — explicit mappings for `needs_retry`, `needs_revision`, `needs_replan`, `blocked`, `flaky`, `platform_specific`, `test_bug` outcomes
- **Refined planner output** — strict acceptance criteria format ("Verify X happens when Y"), decision/assumption tracking, and anti-pattern guidance
- **Updated plugin version** — gem-team plugin bumped to v1.148.0 with synchronized agent definitions
@mubaidr
mubaidr requested review from a team as code owners November 21, 2026 10:20
Copilot AI adaptive review requested due to automatic review settings November 21, 2026 10:20
@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

🚦 Submission status: 👀 Ready for review

Risk tier: merge-risk:medium — New or substantially changed resource without privileged execution
Required to merge: passing submission-gate checks plus 1 approval from reviewers with write access.

Why this tier
  • Changes 1045 lines (low-risk limit is 40)

Automated checks

Check Status Details
Line endings ✅ Passed Passed · logs
Spelling ✅ Passed Passed · logs
Generated README consistency ✅ Passed Passed · logs
Plugin and extension validation ✅ Passed Passed · logs
Plugin structure ✅ Passed Passed · logs
Skill validation ✅ Passed Passed · logs
Skill lint (vally) ✅ Passed Passed · logs
Risk scan ✅ Passed Passed · logs
Contributor reputation ✅ Passed Passed · logs
Duplicate resource scan ✅ Passed Passed · logs
PR quality signal ⏭️ Skipped Skipped by its workflow · logs
Canvas/plugin smoke test ✅ Passed Passed · logs

Review

  • Approvals: 0/1
  • Assigned reviewer: not assigned yet — comment /request-review to ask for one
  • Review target date: not set
  • Still needed: 1 more approval(s)
  • No staffed reviewer pool owns these files yet; any reviewer with write access counts as the domain reviewer.

Commands

Command Who What it does
/rerun-checks PR author, maintainers Re-runs failed or incomplete checks and re-evaluates this gate
/request-review PR author, maintainers Asks the review rotation to assign a reviewer (adds needs-reviewer)

Updated for ce5ac13 · gate run · This comment is maintained automatically — see submission gate docs.

@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

🔒 PR Risk Scan Results

Scanned 15 changed file(s).

Severity Count
🔴 High 0
🟠 Medium 0
ℹ️ Info 0

✅ No matching risk patterns were detected in changed files.

This is an automated soft-gate report. Findings indicate review targets and do not block merge by themselves.

@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

🔍 Vally Lint Results

⚠️ Warnings or advisories found

Scope Checked
Skills 1
Agents 12
Total 13
Severity Count
❌ Errors 0
⚠️ Warnings 0
ℹ️ Advisories 1

Summary

Level Finding
ℹ️ Vally currently lints SKILL.md content. Agent files were detected but skipped:
Full linter output
### Linting skills/gem-devops-guidelines
✅ gem-devops-guidelines (2/2 checks passed)
    ✓ [spec-compliance] All 1 skill(s) are spec-compliant.
        ✓ spec-compliance: All spec checks passed.
    ✓ [valid-refs] All file references across 1 skill(s) are valid.
        ✓ valid-refs: All file references resolve to existing files within the skill directory.

1 skill(s) linted, 1 passed

### Agent files detected (not linted by vally)
ℹ️ Vally currently lints SKILL.md content. Agent files were detected but skipped:
agents/gem-browser-tester.agent.md
agents/gem-code-simplifier.agent.md
agents/gem-debugger.agent.md
agents/gem-devops.agent.md
agents/gem-documentation-writer.agent.md
agents/gem-implementer.agent.md
agents/gem-mobile-tester.agent.md
agents/gem-orchestrator.agent.md
agents/gem-planner.agent.md
agents/gem-researcher.agent.md
agents/gem-reviewer.agent.md
agents/gem-skill-creator.agent.md

@github-actions github-actions Bot added ready-for-review Submission passed intake validation and is ready for maintainer review and removed awaiting-automation labels Nov 21, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Unresolved review-gate, persistence, routing, and handoff defects can cause unbounded repair loops, repeat completed work on resume, or bypass required checks.

13 open issues
What changed in this PR

Updates Gem Team to v1.148.0, reworking quality gates and delegation contracts for its multi-agent development workflow.

Changes:

  • Adds post-wave and final plan-wide reviews with risk-based review intensity and explicit result routing.
  • Separates tool, execution, and output policies across agents and expands structured output contracts.
  • Introduces the implementer’s SPEC/CODE/GATE/VERIFY loop and synchronizes release metadata.
File Description
plugins/​gem-team/​plugin.json Bumps the plugin version to 1.148.0.
agents/​gem-skill-creator.agent.md Separates skill-creation tool, execution, and output policies.
agents/​gem-reviewer.agent.md Reorganizes target-specific checks and review-intensity rules.
agents/​gem-researcher.agent.md Adds stability and evidence fields to research outputs.
agents/​gem-planner.agent.md Consolidates planning constraints and handoff rules.
agents/​gem-orchestrator.agent.md Adds quality gates, recovery routing, and delegation contracts.
agents/​gem-mobile-tester.agent.md Reorganizes mobile-testing policies and evidence constraints.
agents/​gem-implementer.agent.md Defines the test-first SPEC/CODE/GATE/VERIFY workflow.
agents/​gem-documentation-writer.agent.md Separates documentation policies from workflow instructions.
agents/​gem-devops.agent.md Reorganizes operational and evidence-output policies.
agents/​gem-debugger.agent.md Adds an optional fix-recommendation output field.
agents/​gem-code-simplifier.agent.md Inlines refactoring guidance and adds a complexity-delta field.
agents/​gem-browser-tester.agent.md Reorganizes end-to-end testing and consumer-contract validation policies.
.github/​plugin/​marketplace.json Synchronizes the Gem Team marketplace version to 1.148.0.

Review effort: Max (adaptive)

Comment thread agents/gem-debugger.agent.md Resolved
Comment thread agents/gem-implementer.agent.md Resolved
Comment thread agents/gem-implementer.agent.md Resolved
Comment thread agents/gem-orchestrator.agent.md Resolved
Comment thread agents/gem-orchestrator.agent.md Resolved
Comment thread agents/gem-orchestrator.agent.md Resolved
Comment thread agents/gem-orchestrator.agent.md Resolved
Comment thread agents/gem-planner.agent.md Resolved
Comment thread agents/gem-reviewer.agent.md Resolved
Comment thread agents/gem-reviewer.agent.md Resolved
Copilot AI adaptive review requested due to automatic review settings November 25, 2026 19:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The new review gates lack a repair-attempt limit, allowing persistent findings to trigger indefinite agent loops instead of blocking or escalating.

14 open issues
2 previously missed issues

In code that hasn't changed since last review

Medium severity Define and require evidence for complexity_delta

agents/​gem-code-simplifier.agent.md:33

The new complexity_delta has no defined metric or calculation rule, yet gem-reviewer.agent.md:77 uses its sign as a pass criterion. Different simplifier runs can report incomparable values or omit the optional field, leaving the check without verifiable evidence. Define the metric and supporting evidence, and specify when the field must be emitted.

Medium severity Preserve research revision requests and exploration mode

agents/​gem-orchestrator.agent.md:86

This broadens the reviewer's revision_findings contract to every specialist, but gem-researcher has no such field and reports the required exploration mode in its revision request. Re-delegating without applying that mode can repeat the same insufficient scan, including standalone research routed at line 72. Preserve non-reviewer reasons and requested scope/budget changes, obtain authorization when needed, and update the next task's exploration_mode.

Review effort: Max (adaptive)

Comment thread agents/gem-planner.agent.md Resolved
Copilot AI adaptive review requested due to automatic review settings November 26, 2026 12:55
@github-actions github-actions Bot added skills PR touches skills awaiting-automation and removed ready-for-review Submission passed intake validation and is ready for maintainer review labels Nov 26, 2026
@github-actions github-actions Bot added ready-for-review Submission passed intake validation and is ready for maintainer review and removed awaiting-automation labels Nov 26, 2026
@mubaidr mubaidr changed the title [gem-team] v1.148.0 Quality gates rework [gem-team] v1.150.0 Quality gates rework and add research Nov 26, 2026
@github-actions github-actions Bot added awaiting-automation and removed ready-for-review Submission passed intake validation and is ready for maintainer review labels Nov 26, 2026
@github-actions github-actions Bot added ready-for-review Submission passed intake validation and is ready for maintainer review awaiting-automation and removed awaiting-automation ready-for-review Submission passed intake validation and is ready for maintainer review labels Nov 26, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The DevOps approval gate can treat a dry-run or mitigation as sufficient resolution, allowing approval-required operations without explicit user authorization.

11 open issues
13 resolved since last review

Review effort: Max (adaptive)

- Scope: classify workload, provider, environment, criteria. Apply relevant checks: health/graceful shutdown for services with health endpoints; production readiness/rollback/monitoring/approval for production; security/CVE for executable/security-sensitive workloads; mobile signing/store checks only for mobile release.
- Preflight: verify required tools, permissions, resources.
- Approval gate: ask user and stop if `requires_approval`, `devops_security_sensitive`, or production with `devops.approval_required_for`. Never proceed automatically.
- Approval gate: return `blocked` if `requires_approval` or `devops_security_sensitive` is true and cannot be resolved; or production with `devops.approval_required_for` and no approval recorded. Never proceed automatically.
Comment thread agents/gem-browser-tester.agent.md Resolved
- `debug`: `failure`, `expected_behavior`, `evidence`
- Intent priority: `challenge` > `debug` > `research` > `execute` > `discuss`. Highest wins; ask once on ties; `discuss` only if explicit.
- Read only relevant memory.
- Read only task-relevant local/repo memory and AGENTS.md entries, updating or deleting any confirmed stale or invalid entries on touch.
### Phase 1: Route
## Phase 1: Route

- `continue_plan` or `extend`, block and request a valid `plan_id` matching `^[a-z0-9-]+$` for an existing plan rather than inferring, fuzzy-matching, or auto-loading it; then, for `continue_plan`, classify the intent as `resume` (Phase 3) or `revise_scope`/`revise_criteria`/`revise_waves` (Phase 2), asking once if ambiguous.
- Wave Scheduling: Execute waves in stable order. Max `orchestrator.max_concurrent_agents` (default: 2) parallel per wave; queue rest. Independent tasks within a wave run in parallel; dependent tasks run sequentially after dependencies complete. Retries count against cap.
- 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.
- 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.
- `review_mode`: `standard` (`MEDIUM`, no high-risk), `high` (`HIGH` or high-risk signals), `critic` (`architecture` | `breaking_change` | `cross_domain_impact` signals).
- Attempt accounting: Treat one gate cycle as one attempt, regardless of how many reviewers run in that cycle. Increment and persist the gate's `attempt_count` once at the start of that cycle, before any reviewer invocation. Each gate has at most two total attempts across failures and interruptions. After the first failed attempt, durably persist routed repair work and `repair_state: routed`, then run the second attempt. After the second failed attempt, 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 at most two parallel `gem-reviewer` tasks: `review_target: integration` [`review_scope: changed`] and `review_target: code` [`review_scope: changed`].
- 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`).
Comment on lines +107 to +111
plan_context?:
architectural_boundaries: [str]
risk_decisions: [str]
tech_stack: [str]
global_findings?:
- MUST reuse established facts; inspect only for new unknowns, required work, or outcome verification.
- MUST treat baseline objective and baseline acceptance criteria as immutable when reviewing a plan. Report any change as a decision blocker.
- MUST complete all requested criteria in one pass, continue after a blocking finding, and collect every actionable finding before returning.
- Verdict relationship: `status` (task outcome) is distinct from `verdict` (pass/warning/blocking against criteria) and `_critic_mode.critic_verdict` (proceed/revise/defer/reject/needs_input). `verdict: blocking` implies `status: blocked`; `critic_verdict: defer|reject|needs_input` implies `status: needs_revision` or `blocked`.
- Applies to HTTP/network services with health endpoints only. Simple: `GET /health` -> `{ "status": "ok" }`.
- Detailed: dependencies, uptime, version.
- Services MUST expose meaningful health + gracefully handle `SIGTERM` when workload requires it.
- Services MUST expose meaningful health + gracefully handle `SIGTERM` when workload requires it and exposes a health endpoint.
Copilot AI adaptive review requested due to automatic review settings November 26, 2026 16:27
@github-actions github-actions Bot added awaiting-automation and removed ready-for-review Submission passed intake validation and is ready for maintainer review labels Nov 26, 2026
@mubaidr mubaidr changed the title [gem-team] v1.150.0 Quality gates rework and add research [gem-team] v1.151.0 Quality gates rework and add research Nov 26, 2026
@github-actions github-actions Bot added ready-for-review Submission passed intake validation and is ready for maintainer review and removed awaiting-automation labels Nov 26, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- Output: raw JSON per `output_format`. No markdown, no prose.
- Run all applicable checks. Store evidence only when evidence is required.
- On failure: return `failed` (with `failure_type: platform_specific | test_bug | new_failure`), `blocked` if runtime/simulator unavailable, or `needs_retry` only for transient flakiness; include evidence. No platform-specific error recovery.
- Cleanup: stop resources, close task-owned sims, clear artifacts.
@mubaidr mubaidr changed the title [gem-team] v1.151.0 Quality gates rework and add research [gem-team] v1.152.0 Quality gates rework and add research Nov 26, 2026
@github-actions github-actions Bot removed the ready-for-review Submission passed intake validation and is ready for maintainer review label Nov 26, 2026
Copilot AI adaptive review requested due to automatic review settings November 26, 2026 20:37
@github-actions github-actions Bot added ready-for-review Submission passed intake validation and is ready for maintainer review and removed awaiting-automation labels Nov 26, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent PR touches agents merge-risk:medium plugin PR touches plugins ready-for-review Submission passed intake validation and is ready for maintainer review skills PR touches skills

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants