Skip to content

docs(agents): configure Sol Terra and Luna - #2730

Open
CarlosCastro77 wants to merge 2 commits into
evolution-foundation:mainfrom
CarlosCastro77:carloscastro77-configurar-agentes-sol-terra-luna
Open

CarlosCastro77 wants to merge 2 commits into
evolution-foundation:mainfrom
CarlosCastro77:carloscastro77-configurar-agentes-sol-terra-luna

Conversation

@CarlosCastro77

@CarlosCastro77 CarlosCastro77 commented Sep 15, 2026

Copy link
Copy Markdown

📋 Description

Configures three user-invocable GitHub Copilot custom agents:

  • Sol (gpt-5.6-sol) is the single-entry planner and coordinator: it plans, invokes Terra as an implementation subagent, invokes Luna for independent review, and routes actionable findings back through Terra -> Luna until resolution.
  • Terra (gpt-5.6-terra) performs complete implementation, focused validation, and related documentation.
  • Luna (gpt-5.6-luna) performs independent, severity-ranked review and returns an explicit merge-readiness decision.

Extends the existing root AGENTS.md without replacing project instructions. It documents shared principles, strict role boundaries, handoff criteria, conflict resolution, a maximum of three correction cycles to prevent unlimited loops, and ready-to-run manual Terra/Luna prompts when the current Copilot surface cannot invoke custom-agent subagents.

🔗 Related Issue

N/A

🧪 Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 📚 Documentation update
  • 🔧 Refactoring (no functional changes)
  • ⚡ Performance improvement
  • 🧹 Code cleanup
  • 🔒 Security fix

🧪 Testing

  • Manual testing completed
  • Functionality verified in development environment
  • No breaking changes introduced
  • Tested with different connection types (if applicable)

Validation performed:

  • Parsed all three YAML frontmatter blocks and verified the required keys and model values.
  • Confirmed tools is omitted from every agent definition.
  • Ran git diff --check and reviewed the complete diff.
  • Application tests were intentionally not run because only instruction files changed.

📸 Screenshots (if applicable)

N/A

✅ Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have manually tested my changes thoroughly
  • I have verified the changes work with different scenarios
  • Any dependent changes have been merged and published

📝 Additional Notes

Direct push access to EvolutionAPI/evolution-api was unavailable, so the branch is published from the authenticated CarlosCastro77/evolution-api fork.

Summary by Sourcery

Configure complementary Copilot agents and document their coordinated planning, implementation, and review workflow.

New Features:

  • Add user-invocable Sol, Terra, and Luna GitHub Copilot custom agents for planning, implementation, and independent review.

Enhancements:

  • Define a structured Sol → Terra → Luna workflow with handoff criteria, correction cycles, validation expectations, and conflict-resolution guidance.

Documentation:

  • Extend AGENTS.md with shared principles, agent responsibilities, role boundaries, and workflow instructions.

Copilot AI lite review requested due to automatic review settings September 15, 2026 22:11
@sourcery-ai

sourcery-ai Bot commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Reviewer's Guide

Configures Sol, Terra, and Luna as specialized GitHub Copilot custom agents and extends the root AGENTS.md with their responsibilities, handoff workflow, validation expectations, and conflict-resolution rules.

Flow diagram for the Sol Terra Luna agent workflow

flowchart LR
    Sol[Sol: read-only planning] --> Terra[Terra: implementation and validation]
    Terra --> Luna[Luna: independent review]
    Luna -->|APPROVE| Complete[Complete]
    Luna -->|REQUEST CHANGES| Terra
    Luna -->|BLOCKED| Blocked[Document blocker]
Loading

File-Level Changes

Change Details Files
Adds three user-invocable Copilot agents with distinct planning, implementation, and review responsibilities.
  • Defines Sol as a read-only planning agent with structured implementation handoffs.
  • Defines Terra as an implementation agent responsible for complete changes, focused validation, and related documentation.
  • Defines Luna as an independent reviewer that produces severity-ranked findings and a single merge-readiness decision.
  • Configures each agent with YAML frontmatter, model selection, and explicit operating limits.
.github/agents/sol.agent.md
.github/agents/terra.agent.md
.github/agents/luna.agent.md
Documents the shared agent workflow and governance rules in the root repository instructions.
  • Establishes shared principles covering instruction precedence, tenant isolation, compatibility, scope control, and explicit evidence.
  • Documents Sol-to-Terra-to-Luna responsibilities, handoff criteria, and re-review flow.
  • Defines conflict resolution and decision rules for APPROVE, REQUEST CHANGES, and BLOCKED outcomes.
AGENTS.md

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot 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.

Hey - I've found 1 issue

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path=".github/agents/luna.agent.md" line_range="4" />
<code_context>
+---
+name: Luna
+description: Independently reviews changes, reports severity-ranked findings, and issues a merge-readiness decision.
+model: gpt-5.6-luna
+user-invocable: true
+---
</code_context>
<issue_to_address>
**issue (bug_risk):** The three agent profiles specify `gpt-5.6-luna`, `gpt-5.6-sol`, and `gpt-5.6-terra`, which are not valid GitHub Copilot model identifiers. Copilot cannot resolve these profiles to an available model, so invoking the agents fails or the profiles are rejected despite the YAML parsing check passing.

**Triggers:** When these profiles are loaded or invoked through GitHub Copilot.

**Suggested fix:** Use model identifiers supported by the target Copilot environment, or omit `model` and let Copilot use its configured default.

```suggestion

```
</issue_to_address>

Sourcery assessment

Approval pending. 1 finding to address first.

Blocking findings: .github/agents/luna.agent.md:4


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

---
name: Luna
description: Independently reviews changes, reports severity-ranked findings, and issues a merge-readiness decision.
model: gpt-5.6-luna

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.

issue (bug_risk): The three agent profiles specify gpt-5.6-luna, gpt-5.6-sol, and gpt-5.6-terra, which are not valid GitHub Copilot model identifiers. Copilot cannot resolve these profiles to an available model, so invoking the agents fails or the profiles are rejected despite the YAML parsing check passing.

Triggers: When these profiles are loaded or invoked through GitHub Copilot.

Suggested fix: Use model identifiers supported by the target Copilot environment, or omit model and let Copilot use its configured default.

Suggested change
model: gpt-5.6-luna

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Enforced read-only restrictions are still needed for Sol and Luna.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Configures three GitHub Copilot custom agents for planning, implementation, and independent review, with shared workflow documentation.

Changes:

  • Adds Sol, Terra, and Luna agent definitions.
  • Documents responsibilities, handoffs, and conflict resolution.
  • Extends the root agent guidance.
File summaries
File Description
AGENTS.md Documents the agent workflow and boundaries.
.github/agents/terra.agent.md Defines the implementation agent.
.github/agents/sol.agent.md Defines the planning agent.
.github/agents/luna.agent.md Defines the independent review agent.
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

name: Luna
description: Independently reviews changes, reports severity-ranked findings, and issues a merge-readiness decision.
model: gpt-5.6-luna
user-invocable: true
name: Sol
description: Plans repository changes with read-only investigation and explicit implementation handoffs.
model: gpt-5.6-sol
user-invocable: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants