Skip to content

Refactor Builder to use Shared Kernel (coreason-manifest)#18

Merged
gowthamrao merged 4 commits into
commit11from
refactor/manifest-integration-13045588563407015823
Jan 31, 2026
Merged

Refactor Builder to use Shared Kernel (coreason-manifest)#18
gowthamrao merged 4 commits into
commit11from
refactor/manifest-integration-13045588563407015823

Conversation

@gowthamrao
Copy link
Copy Markdown
Contributor

This PR refactors the coreason-maco-builder to eliminate redundant local schema definitions for RecipeManifest, Node, etc., and instead consumes them from the Shared Kernel (coreason-manifest v0.7.0).

Key changes:

  1. Dependency Update: Bumped coreason-manifest to ^0.7.0.
  2. Compiler Facade: manifest.py now re-exports classes from coreason_manifest, removing local logic.
  3. Assembler Logic: The Weaver class now includes an assemble method that converts a fully resolved RecipeDraft into a RecipeManifest compliant with the kernel.
  4. Tests: Updated tests to reflect the new architecture and ensure correct mapping of domain objects to manifest artifacts.

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

- Updated `pyproject.toml` to require `coreason-manifest = "^0.7.0"`.
- Refactored `src/coreason_maco_builder/core/compiler/manifest.py` to be a facade exporting types from `coreason-manifest`.
- Updated `src/coreason_maco_builder/core/weaver/assembler.py` to implement `assemble` method using kernel types.
- Updated tests to verify assembly logic and manifest exports.
- Ensured strict separation between Builder domain and Kernel artifacts.

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.

- Removed unused `pytest` import.
- Added return type annotation to `test_manifest_facade_exports`.

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

codecov Bot commented Jan 31, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

google-labs-jules Bot and others added 2 commits January 31, 2026 15:29
…e Cases

- Updated `pyproject.toml` to require `coreason-manifest = "^0.7.0"`.
- Refactored `src/coreason_maco_builder/core/compiler/manifest.py` to be a facade exporting types from `coreason-manifest`.
- Updated `src/coreason_maco_builder/core/weaver/assembler.py` to implement `assemble` method using kernel types.
- Added `tests/core/weaver/test_assembler_edge_cases.py` to test empty topology and validation errors.
- Updated `README.md` to document the architectural dependency on the shared kernel.
- Fixed lint/type errors in tests.

Co-authored-by: gowthamrao <13936600+gowthamrao@users.noreply.github.com>
- Applied `ruff format` to fix CI failure.

Co-authored-by: gowthamrao <13936600+gowthamrao@users.noreply.github.com>
@gowthamrao gowthamrao merged commit 1ed7b35 into commit11 Jan 31, 2026
13 checks passed
@gowthamrao gowthamrao deleted the refactor/manifest-integration-13045588563407015823 branch January 31, 2026 16:02
gowthamrao added a commit that referenced this pull request Jan 31, 2026
* Refactor Builder to use Shared Kernel (coreason-manifest)

- Updated `pyproject.toml` to require `coreason-manifest = "^0.7.0"`.
- Refactored `src/coreason_maco_builder/core/compiler/manifest.py` to be a facade exporting types from `coreason-manifest`.
- Updated `src/coreason_maco_builder/core/weaver/assembler.py` to implement `assemble` method using kernel types.
- Updated tests to verify assembly logic and manifest exports.
- Ensured strict separation between Builder domain and Kernel artifacts.

1ed7b35
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