Kernel coordination types#1684
Open
ashum9 wants to merge 2 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds the kernel-level “coordination” data contracts for the multi-agent coordination layer, exposing them via agent::components so runtime/governor/coordinator implementations can exchange standardized cognition-transfer payloads.
Changes:
- Introduces
agent::components::coordinationwith core structs/enums for memory refs/objects, handoff packets, tracing context, governance + retry policy, conflict handling, and a typed error. - Re-exports the new coordination contracts from
crates/mofa-kernel/src/agent/components/mod.rsfor ergonomic consumption. - Adds unit tests covering basic serialization and helper-method behavior.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 8 comments.
| File | Description |
|---|---|
| crates/mofa-kernel/src/agent/components/mod.rs | Wires in the new coordination module and re-exports its public contracts. |
| crates/mofa-kernel/src/agent/components/coordination.rs | Implements the coordination data layer types, helpers, serde support, and unit tests. |
70b3c40 to
2e01bd1
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.
Description
so basically this is the Part 2 of the Multi Agent Coordination Infrastructure contribution.
it builds directly on top of the scaffold introduced in Part 1 #1683 by implementing the 12 core data contracts (structs and enums), serialization layers, helper methods, and corresponding unit tests.
these types serve as the pure data layer. they try to define the format of information flowing through the runtime before introducing traits/behavior in the next phase.
what is included
Verification & Unit Tests
All implemented types compile cleanly and are fully covered by unit tests:
: Validatesthiserror` string formatting.