Skip to content

feat: migrate routing_matrix read to capabilities + document cross-repo E2E testing#134

Open
bkrabach wants to merge 3 commits intomainfrom
feat/migrate-session-state-to-capabilities
Open

feat: migrate routing_matrix read to capabilities + document cross-repo E2E testing#134
bkrabach wants to merge 3 commits intomainfrom
feat/migrate-session-state-to-capabilities

Conversation

@bkrabach
Copy link
Collaborator

Switches routing_matrix read in tool-delegate from session_state to get_capability('session.routing_matrix').

Also documents the new --local-source option for amplifier-core's e2e-smoke-test.sh in testing-patterns.md context.

Testing

  • 881 tests pass, 0 failures

…ility

Replace getattr(coordinator, 'session_state', {}).get('routing_matrix')
with coordinator.get_capability('session.routing_matrix') in the
model_role resolution path of execute().

Update test helper _make_delegate_tool:
- Replace session_state parameter with routing_matrix parameter
- Add 'session.routing_matrix' key to capabilities dict
- Remove direct coordinator.session_state assignment

Update 4 test call sites to pass routing_matrix= directly instead of
session_state= with a nested routing_matrix dict.

Part of: remove session_state from coordinator interface
Adds documentation for the new --local-source option in amplifier-core's e2e-smoke-test.sh. This option allows cross-repo validation by overriding dependencies with local checkouts of CLI, foundation, and modules during E2E testing.

Each --local-source path is copied into the Docker container and installed with pip install --force-reinstall --no-deps, enabling testing of cross-repo changes before pushing.

Includes examples showing how to test bundles with modules in subdirectories (pointing at module path, not bundle root).
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