Skip to content

Release v0.1.8 — P2P Bridge & Cortex 0.3.8#21

Merged
ApiliumDevTeam merged 5 commits intomainfrom
dev
Mar 8, 2026
Merged

Release v0.1.8 — P2P Bridge & Cortex 0.3.8#21
ApiliumDevTeam merged 5 commits intomainfrom
dev

Conversation

@ApiliumDevTeam
Copy link
Collaborator

Summary

  • P2P config parsing and sidecar flag forwarding for native QUIC transport
  • CortexClient P2P methods: status, list/add/remove peers, probe
  • Dual sync mode in cortex-sync: native (QUIC gossip) vs polled (REST) with graceful degradation
  • Sync CLI enhancements with native P2P info display
  • Bumped to v0.1.8, requires Cortex >= 0.3.8

Test plan

  • pnpm test — 907 files, 7859 tests all pass
  • Full E2E: Mayros CLI + CortexClient against live Cortex with P2P (8 steps verified)
  • pnpm build clean

…arding

- Add P2pConfig type and parseP2pConfig() with port/seed/peers validation
- Add p2p field to CortexConfig and parseCortexConfig
- Add P2P DTOs (P2pStatusResponse, P2pGossipStats, P2pSyncStats, etc.)
- Add 5 CortexClient methods: p2pStatus, p2pListPeers, p2pAddPeer,
  p2pRemovePeer, p2pProbe (null-safe for graceful degradation)
- Forward --p2p, --p2p-port, --p2p-seed, --p2p-mdns, --p2p-peer flags
  from sidecar config to spawned Cortex process
- Add 21 P2P tests to cortex-client and 4 to cortex-sidecar
- Add nativeP2pPreferred config field (default true) to cortex-sync
- Probe native P2P at startup via p2pProbe(), switch to native mode
  when Cortex reports P2P enabled
- Skip REST polling in native mode (gossip handles sync internally)
- Include P2P status (node ID, peers, gossip/sync stats) in
  cortex_sync_status tool output when in native mode
- Route cortex_sync_pair through p2pAddPeer API in native mode
- Skip polled sync in agent_end/config_change hooks when native
- Graceful degradation: stays in polled mode if P2P unavailable
- Add 11 config tests and 12 bridge integration tests
- Show Native P2P section in `mayros sync status` when P2P is active
  (node ID, port, connected peers, gossip round/known IDs, sync stats)
- Route `mayros sync pair` through p2pAddPeer API when native P2P active
- Show gossip stats in `mayros sync now` when native mode detected
- Graceful fallback to polled mode when P2P probe returns null
- Add 7 CLI integration tests
## Summary
- Add P2P config parsing and sidecar flag forwarding (`--p2p`,
`--p2p-port`, `--p2p-seed`, `--p2p-mdns`, `--p2p-peer`)
- Add CortexClient P2P methods: `p2pStatus`, `p2pListPeers`,
`p2pAddPeer`, `p2pRemovePeer`, `p2pProbe`
- Add dual sync mode in cortex-sync plugin: native (QUIC gossip) vs
polled (REST), with graceful degradation via `p2pProbe()`
- Enhance sync CLI (`sync status/pair/now`) with native P2P info display
- Bump to v0.1.8 and require Cortex >= 0.3.8

## Test plan
- [x] 45 new TypeScript unit tests across B1-B4 deliverables
- [x] `pnpm test` — 907 files, 7859 tests all pass
- [x] Full E2E integration: Mayros CLI + CortexClient against live
Cortex with P2P enabled (8 steps verified)
- [x] `pnpm build` clean
@ApiliumDevTeam ApiliumDevTeam merged commit a79e76c into main Mar 8, 2026
4 of 5 checks passed
ApiliumDevTeam added a commit that referenced this pull request Mar 9, 2026
## Summary
- P2P config parsing and sidecar flag forwarding for native QUIC
transport
- CortexClient P2P methods: status, list/add/remove peers, probe
- Dual sync mode in cortex-sync: native (QUIC gossip) vs polled (REST)
with graceful degradation
- Sync CLI enhancements with native P2P info display
- Bumped to v0.1.8, requires Cortex >= 0.3.8

## Test plan
- [x] `pnpm test` — 907 files, 7859 tests all pass
- [x] Full E2E: Mayros CLI + CortexClient against live Cortex with P2P
(8 steps verified)
- [x] `pnpm build` clean
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