federation-sync

Synchronize knowledge claims and hypotheses across peer vaults in QMD format.

Updated Jul 3, 2026
One-click install
npx skills add https://github.com/GiorgioRicciardiello/LabBrain --skill federation-sync-giorgioricciardiello
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: federation-sync
Source: https://github.com/GiorgioRicciardiello/LabBrain/tree/main/core/.claude/skills/federation-sync
Command: npx skills add https://github.com/GiorgioRicciardiello/LabBrain --skill federation-sync-giorgioricciardiello

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill enables the export and synchronization of knowledge claims and hypotheses across different vaults in a federated knowledge system, facilitating a shared and collaborative knowledge base.

Core Features & Use Cases

  • Claims Export: Export claims for peer indexing in QMD format.
  • Hypothesis Synchronization: Import and export hypotheses for federated tournaments.
  • Use Case: Imagine you have a knowledge vault and want to synchronize its claims and hypotheses with a peer vault to participate in a cross-vault tournament and enhance your knowledge base.

Quick Start

Run the federation synchronization command: cd _code && python -c "from pathlib import Path; from chronicle_r.federation_config import load_federation_config; from chronicle_r.federation_sync import run_federation_sync; vault = Path('..').resolve(); config = load_federation_config(vault / 'ops' / 'federation.yaml'); result = run_federation_sync(vault, config); print(f'Claims exported: {result.claims_exported}'); print(f'Hypotheses exported: {result.hypotheses_exported}'); for peer, count in result.hypotheses_imported.items(): print(f'Hypotheses imported from {peer}: {count}'); for peer in result.peers_skipped: print(f'Skipped (untrusted): {peer}'); for err in result.errors: print(f'Error: {err}')"

Frequently Asked Questions about federation-sync

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I synchronize knowledge claims and hypotheses across peer vaults?

Knowledge synchronization across peer vaults is achieved by running the federation sync Python script, which exports and imports claims and hypotheses for cross-vault indexing. It requires a configured federation environment defined in a YAML configuration file.

What is federated knowledge base synchronization used for?

Federated knowledge base synchronization enables collaborative sharing of claims and hypotheses across different vaults, allowing peers to participate in cross-vault tournaments and enhance their shared knowledge base.

Do I need Python to export knowledge claims in QMD format for peer indexing?

Python is required to execute the federation synchronization process that exports knowledge claims in QMD format for peer indexing. The Skill runs a Python command that loads the federation configuration and executes the sync operation.

Can I import hypotheses from peer vaults for federated tournaments?

Importing hypotheses from peer vaults for federated tournaments is fully supported by the synchronization command. The script processes the federation configuration, imports hypotheses from trusted peers, and skips untrusted peers while reporting the counts.

How does the federation sync script handle untrusted peers during knowledge synchronization?

During knowledge synchronization, the federation sync script skips untrusted peers and reports them in the output. It also captures any errors encountered during the import and export of claims and hypotheses across the peer network.