fix: embed host compaction baml#607
Open
neithanmo wants to merge 1 commit into
Open
Conversation
53e9ed5 to
4c79545
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Embeds host compaction BAML into agentium, fixing release/runtime boot failures when baml_src/host is not present on disk.
Issue: host compaction previously loaded BAML from loose files (
BAML_HOST_SCHEMA_DIR,/opt/agentium, or repo fallback). Release tar users do not get those files, and binaries can resolve to build-machine paths. This made users download/copy extra BAML sidecars or required us to add BAML files to release artifacts.This PR opts for embedded BAML via include_str! + in-memory BAML runtime loading. Result: agentium binary is self-contained for host compaction, release tar layout stays binaries-only, and users do not need extra BAML files. BAML_HOST_SCHEMA_DIR still works as override for dev/operator custom BAML.
What's in the diff
crates/baml-rt-quickjs/src/baml_execution.rs
crates/baml-rt-quickjs/src/baml/schema_invoke.rs
crates/baml-rt-a2a/src/host_compaction/mod.rs
crates/baml-rt-a2a/src/lib.rs
crates/baml-agent-runner/src/host_compaction.rs
Dockerfile
Tests
Test plan
Checklist