Skip to content

feat: Distributed Mesh — Cross-Machine Squad Coordination #371

Closed

Description

@andikrueger

Distributed Mesh Extension — Cross-Machine Squad Coordination

Summary

This proposal adds the distributed mesh pattern to Squad, enabling squads on different machines to coordinate work through shared context — complementing the existing upstream inheritance model.

Problem

Today, upstream inheritance (upstream.json) provides hierarchical, read-only context flow from parent to child squads. But there's no built-in way for peer squads to coordinate across machines, organizations, or git boundaries.

Proposed Solution

A documentation-and-templates-first approach that introduces three coordination zones:

Zone Scope Transport Auth
Zone 1 Same machine Filesystem OS-level
Zone 2 Same org, different machines Git (shared repo) SSH / PAT
Zone 3 Cross-org HTTPS /.well-known/squad/manifest.json OAuth / API key

Key Design Decisions

  • No code changes to existing SDK modules — this is templates + docs only
  • Complementary to upstream — a squad can have both upstream (policies flowing down) and mesh peers (lateral coordination)
  • Write partitioning — each squad owns a namespace, preventing conflicts
  • Reuses existing building blocks — src/sharing/ (cache, conflicts, versioning) and src/upstream/ (git-based resolution) provide the foundation

Upstream vs Mesh Relationship

Upstream Mesh
Direction Top-down (parent → child) Peer-to-peer (squad ↔ squad)
Access Read-only Read-write (partitioned)
Purpose Org policies, shared context Cross-squad coordination
Config upstream.json mesh.json

What's Included

  • Docs: Full feature page at docs/features/distributed-mesh.md with architecture, zones, security model, and upstream comparison
  • Templates: templates/mesh/ with mesh.json.example, sync scripts (bash + PowerShell), and README
  • Skills: SKILL.md placed in all template directories (SDK, CLI, root) plus runtime skill
  • Cross-references: Updated scenarios/multiple-squads.md and navigation

References

  • Upstream module: packages/squad-sdk/src/upstream/
  • Sharing module: packages/squad-sdk/src/sharing/ (reusable building blocks)
  • Implementation branch: squad/distributed-mesh-integration

Activity

  1. github-actions commented on Mar 13, 2026

    @github-actions
    Contributor

    ⚠️ No squad member found matching label squad:keaton. Check .squad/team.md (or .ai-team/team.md) for valid member names.

  2. github-actions commented on Mar 13, 2026

    @github-actions
    Contributor

    🏗️ Squad Triage — Flight (Lead)

    Issue: #371 — feat: Distributed Mesh — Cross-Machine Squad Coordination
    Assigned to: DSKY (TUI Engineer)
    Reason: Issue relates to frontend/UI work

    @copilot evaluation: 🔴 Not suitable — issue involves work outside the coding agent's capability profile.

    Team roster:

    • Flight (Lead) → label: squad:flight
    • Procedures (Prompt Engineer) → label: squad:procedures
    • EECOM (Core Dev) → label: squad:eecom
    • FIDO (Quality Owner) → label: squad:fido
    • PAO (DevRel) → label: squad:pao
    • CAPCOM (SDK Expert) → label: squad:capcom
    • CONTROL (TypeScript Engineer) → label: squad:control
    • Surgeon (Release Manager) → label: squad:surgeon
    • Booster (CI/CD Engineer) → label: squad:booster
    • GNC (Node.js Runtime) → label: squad:gnc
    • Network (Distribution) → label: squad:network
    • RETRO (Security) → label: squad:retro
    • INCO (CLI UX & Visual Design) → label: squad:inco
    • GUIDO (VS Code Extension) → label: squad:guido
    • Telemetry (Aspire & Observability) → label: squad:telemetry
    • VOX (REPL & Interactive Shell) → label: squad:vox
    • DSKY (TUI Engineer) → label: squad:dsky
    • Sims (E2E Test Engineer) → label: squad:sims
    • Handbook (SDK Usability) → label: squad:handbook
    • Ralph (Work Monitor) → label: squad:ralph
    • @copilot (Coding Agent) → label: squad:copilot

    To reassign, remove the current squad:* label and add the correct one.

  3. github-actions commented on Mar 13, 2026

    @github-actions
    Contributor

    ⚠️ No squad member found matching label squad:fenster. Check .squad/team.md (or .ai-team/team.md) for valid member names.

  4. 14 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    go:needs-researchNeeds investigationpriority:p2Next sprintsquadSquad triage inbox — Lead will assign to a membertype:rfcRFC

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions