Skip to content

Refactor Compiler for Strict RecipeManifest Generation (v0.9.0)#21

Open
gowthamrao wants to merge 5 commits into
coreason-manifestfrom
maco-compiler-refactor-16535791145825279386
Open

Refactor Compiler for Strict RecipeManifest Generation (v0.9.0)#21
gowthamrao wants to merge 5 commits into
coreason-manifestfrom
maco-compiler-refactor-16535791145825279386

Conversation

@gowthamrao
Copy link
Copy Markdown
Contributor

This PR refactors the coreason-maco-builder to strictly produce RecipeManifest artifacts defined in the coreason-manifest Shared Kernel (v0.9.0). It introduces a dedicated Compiler module that converts the mutable RecipeDraft into an immutable, hashed RecipeManifest, ensuring alignment with the Runtime's expectations.

Key changes:

  1. Dependency Upgrade: Updated coreason-manifest to ^0.9.0.
  2. Compiler Bridge: Implemented compile_to_manifest and compute_integrity_hash in src/coreason_maco_builder/core/compiler/manifest.py.
  3. Weaver Refactor: Updated Weaver.assemble to delegate artifact creation to the Compiler.
  4. Schema Alignment: Updated domain.py and tests to use CouncilConfig (strategy/voters) and RecipeManifest (topology/interface/state) as defined in v0.9.0.
  5. Testing: Added new tests for the compiler and updated existing tests to pass with the new schema.

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

- Bump `coreason-manifest` dependency to `^0.9.0`.
- Implement `Compiler` bridge in `coreason_maco_builder.core.compiler.manifest` with strict `RecipeManifest` output and integrity hashing.
- Refactor `Weaver.assemble` to use the new Compiler.
- Update internal schemas (e.g., `CouncilConfig`, `RecipeManifest`) to match Shared Kernel v0.9.0.
- Update tests to verify strict manifest generation and new schema structures.
- Bump package version to `0.2.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.

- Add `__all__` to `src/coreason_maco_builder/schemas/domain.py` to fix mypy import errors.
- Add type annotation for `edges` in `tests/core/compiler/test_compiler.py`.
- Fix unused ignore in `tests/schemas/test_domain_complex.py`.
- Apply ruff formatting and whitespace fixes.

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 3 commits February 1, 2026 00:56
- Bump `coreason-manifest` dependency to `^0.9.0`.
- Implement `Compiler` bridge in `coreason_maco_builder.core.compiler.manifest` with strict `RecipeManifest` output and integrity hashing.
- Refactor `Weaver.assemble` to use the new Compiler.
- Update internal schemas (e.g., `CouncilConfig`, `RecipeManifest`) to match Shared Kernel v0.9.0.
- Update tests to verify strict manifest generation and new schema structures.
- Add edge case and complex tests for compiler.
- Add documentation for kernel integration.
- Fix CI issues (mypy exports, formatting).
- Bump package version to `0.2.0`.

Co-authored-by: gowthamrao <13936600+gowthamrao@users.noreply.github.com>
- Create `docs/coreason_manifest_v0.10.0_proposal.md` with detailed requests for schema enhancements (Ad-Hoc Agents, Integrity Hash, Builder Metadata).

Co-authored-by: gowthamrao <13936600+gowthamrao@users.noreply.github.com>
- Create `docs/coreason_manifest_v0.10.0_requirements.md` specifying necessary changes to `AgentNode` and `RecipeManifest` to support ad-hoc agents and round-trip engineering.

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