Skip to content

Refactor coreason-maco to adhere to coreason-manifest v0.9.0#106

Open
gowthamrao wants to merge 5 commits into
coreason-manifestfrom
migrate-coreason-manifest-v0.9.0-17726364446166677851
Open

Refactor coreason-maco to adhere to coreason-manifest v0.9.0#106
gowthamrao wants to merge 5 commits into
coreason-manifestfrom
migrate-coreason-manifest-v0.9.0-17726364446166677851

Conversation

@gowthamrao
Copy link
Copy Markdown
Contributor

This PR refactors the coreason-maco engine to fully align with coreason-manifest v0.9.0 (Shared Kernel).

Key changes:

  1. Schema Migration: RecipeManifest now expects nodes and edges under a nested topology attribute.
  2. Node Types: Supports AgentNode (with agent_name and council_config), HumanNode, and LogicNode (mapped to TOOL).
  3. Council Strategy: Updated to use the new CouncilConfig schema (voters, strategy).
  4. Strict Typing: Removed local Pydantic model definitions in favor of direct imports from the kernel.
  5. Tests: Extensive updates to the test suite to match the new schema, plus new tests for edge cases and complex workflows.
  6. Documentation: Added docs/coreason-manifest-integration.md as a migration guide.

PR created automatically by Jules for task 17726364446166677851 started by @gowthamrao

- Updated dependencies to coreason-manifest ^0.9.0
- Refactored `src/coreason_maco/events/protocol.py` and `src/coreason_maco/core/manifest.py` to import strictly from kernel.
- Updated `src/coreason_maco/engine/topology.py` to handle nested `topology` structure and `AgentNode` changes.
- Updated `src/coreason_maco/engine/handlers.py` and `src/coreason_maco/engine/runner.py` to support new node types and config structures.
- Refactored `src/coreason_maco/strategies/council.py` to align with new `CouncilConfig`.
- Updated all tests to reflect the new manifest structure and fix breakages.
- Added comprehensive documentation in `docs/coreason-manifest-integration.md` and updated `README.md`.
- Added new edge case and complex workflow tests.
- Bumped version to 0.5.0.

Co-authored-by: gowthamrao <13936600+gowthamrao@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

google-labs-jules Bot and others added 4 commits February 1, 2026 01:33
- Updated dependencies to coreason-manifest ^0.9.0
- Refactored `src/coreason_maco/events/protocol.py` and `src/coreason_maco/core/manifest.py` to import strictly from kernel.
- Updated `src/coreason_maco/engine/topology.py` to handle nested `topology` structure and `AgentNode` changes.
- Updated `src/coreason_maco/engine/handlers.py` and `src/coreason_maco/engine/runner.py` to support new node types and config structures.
- Refactored `src/coreason_maco/strategies/council.py` to align with new `CouncilConfig`.
- Updated all tests to reflect the new manifest structure and fix breakages.
- Fixed linting and formatting issues (Ruff).
- Added comprehensive documentation in `docs/coreason-manifest-integration.md` and updated `README.md`.
- Added new edge case and complex workflow tests.
- Bumped version to 0.5.0.

Co-authored-by: gowthamrao <13936600+gowthamrao@users.noreply.github.com>
- Updated dependencies to coreason-manifest ^0.9.0
- Refactored `src/coreason_maco/events/protocol.py` and `src/coreason_maco/core/manifest.py` to import strictly from kernel.
- Updated `src/coreason_maco/engine/topology.py` to handle nested `topology` structure and `AgentNode` changes.
- Updated `src/coreason_maco/engine/handlers.py` and `src/coreason_maco/engine/runner.py` to support new node types and config structures.
- Refactored `src/coreason_maco/strategies/council.py` to align with new `CouncilConfig`.
- Updated all tests to reflect the new manifest structure and fix breakages.
- Added comprehensive documentation in `docs/coreason-manifest-integration.md` and updated `README.md`.
- Added new edge case and complex workflow tests.
- Bumped version to 0.5.0.
- Fixed linting and formatting issues (Ruff, Mypy).

Co-authored-by: gowthamrao <13936600+gowthamrao@users.noreply.github.com>
- Updated dependencies to coreason-manifest ^0.9.0
- Refactored `src/coreason_maco/events/protocol.py` and `src/coreason_maco/core/manifest.py` to import strictly from kernel.
- Updated `src/coreason_maco/engine/topology.py` to handle nested `topology` structure and `AgentNode` changes.
- Updated `src/coreason_maco/engine/handlers.py` and `src/coreason_maco/engine/runner.py` to support new node types and config structures.
- Refactored `src/coreason_maco/strategies/council.py` to align with new `CouncilConfig`.
- Updated all tests to reflect the new manifest structure and fix breakages.
- Added comprehensive documentation in `docs/coreason-manifest-integration.md` and updated `README.md`.
- Added new edge case and complex workflow tests.
- Bumped version to 0.5.0.
- Fixed linting and formatting issues (Ruff, Mypy).

Co-authored-by: gowthamrao <13936600+gowthamrao@users.noreply.github.com>
- Fixed CI failures:
    - Resolved mypy errors in tests (`unused-ignore`, `call-arg`, `dict-item`).
    - Resolved `CouncilConfig` export issue by importing from `core.manifest`.
    - Added untyped decorator ignores for async tests.
- Added `docs/proposals/manifest_v0.10.0_RFC.md` with recommendations for the next kernel version.
- (Previous changes included in this branch state):
    - Updated dependencies to coreason-manifest ^0.9.0.
    - Refactored core modules (`manifest`, `protocol`, `topology`, `runner`, `handlers`) to strict kernel compliance.
    - Updated `CouncilStrategy` for new config schema.
    - Comprehensive test suite refactoring and expansion.
    - Documentation updates.

Co-authored-by: gowthamrao <13936600+gowthamrao@users.noreply.github.com>
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.

1 participant