Skip to content

Sync CGKA ops again!#94

Open
expede wants to merge 4 commits intomainfrom
add-cgka-back
Open

Sync CGKA ops again!#94
expede wants to merge 4 commits intomainfrom
add-cgka-back

Conversation

@expede
Copy link
Copy Markdown
Member

@expede expede commented Mar 18, 2026

No description provided.

@expede expede mentioned this pull request Mar 18, 2026
@expede expede marked this pull request as ready for review March 18, 2026 23:17
@expede expede requested review from alexjg and jtfmumm as code owners March 18, 2026 23:17
Copilot AI review requested due to automatic review settings March 18, 2026 23:17
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Re-enables syncing of Keyhive CGKA operations in the subduction_keyhive protocol, and updates the codebase to use the new keyhive_crypto crate for crypto-related traits/types.

Changes:

  • Migrate crypto-related imports (ContentRef, AsyncSigner, Signed, signing errors) from keyhive_core to keyhive_crypto and add the new dependency where needed.
  • Update sync event enumeration to include CGKA operations again.
  • Add integration tests covering CGKA-op sync convergence.

Reviewed changes

Copilot reviewed 9 out of 10 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
subduction_keyhive_policy/src/lib.rs Switches crypto trait/type imports to keyhive_crypto.
subduction_keyhive_policy/Cargo.toml Adds keyhive_crypto dependency.
subduction_keyhive/src/test_utils.rs Switches MemorySigner import to keyhive_crypto.
subduction_keyhive/src/storage_ops.rs Switches ContentRef/AsyncSigner bounds and imports to keyhive_crypto.
subduction_keyhive/src/signed_message.rs Switches Signed import to keyhive_crypto.
subduction_keyhive/src/protocol.rs Includes CGKA ops in sync event set; adds CGKA-focused sync tests.
subduction_keyhive/src/error.rs Switches signing error source type to keyhive_crypto.
subduction_keyhive/Cargo.toml Adds keyhive_crypto dependency.
Cargo.toml Adds workspace dependency entry for keyhive_crypto (git).
Cargo.lock Adds keyhive_crypto (+ transitive deps) and updates various locked versions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +711 to +718
// CGKA ops
if let Ok(cgka_ops) = keyhive.cgka_ops_reachable_by_agent(agent).await {
ops.extend(cgka_ops.into_iter().map(|cgka_op| {
let event = Event::<Signer, T, L>::CgkaOperation(cgka_op);
let static_event: StaticEvent<T> = event.into();
(Digest::hash(&static_event), static_event)
}));
}
@expede
Copy link
Copy Markdown
Member Author

expede commented Mar 18, 2026

@jtfmumm any reason to not do this?

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.

2 participants