feat: Distributed Mesh — Cross-Machine Squad Coordination#380
feat: Distributed Mesh — Cross-Machine Squad Coordination#380bradygaster merged 5 commits intobradygaster:devfrom
Conversation
…tion Integrates the distributed mesh pattern into Squad, enabling squads on different machines to coordinate via git (Zone 2) and HTTP (Zone 3). Changes: - Add distributed-mesh skill to all template directories (SDK, CLI, root) - Add runtime skill to .squad/skills/distributed-mesh/ - Add mesh scaffolding templates (mesh.json.example, sync scripts) - Add docs page at features/distributed-mesh.md with upstream comparison - Update navigation and docs build tests - Cross-reference from multiple-squads scenario page The distributed mesh is complementary to existing upstream inheritance (hierarchical, read-only) by adding peer-to-peer read-write coordination. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add explicit SCOPE section defining what the skill produces (mesh.json, decision entry, template pointer) and what it does NOT produce (no code, no tests, no scripts). Add deterministic AGENT WORKFLOW with 5-step process ending at STOP. Fix ambiguous language. Add decision template. Expand anti-patterns with code generation and scope creep categories. All 4 SKILL.md copies synced (runtime + 3 templates). Docs page updated with Skill scope section. Refs: bradygaster#371 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Added second commit (d3835ea): Deterministic skill rewrite
This addresses the testing feedback where agents generated 43 tests + a validator instead of just mesh.json. |
Session: 2026-03-14T22-01-14Z-deterministic-skill Requested by: Scribe (background agent) Changes: - Merged 4 distributed mesh decisions from inbox into decisions.md - Propagated team updates to affected agents (flight, network, pao, procedures) - Deduplicated decisions.md (0 exact duplicates, overlapping topics consolidated) - Cleared .squad/decisions/inbox/ after merge - Wrote orchestration logs for Procedures and PAO agents - Wrote session log for deterministic skill pattern work Decisions merged: 1. Deterministic skill pattern (Procedures) 2. Distributed mesh integration architecture (Flight) 3. Distributed mesh template placement (Network) 4. Distributed mesh documentation structure (PAO) Agent histories updated with team update from Procedures, PAO, Flight, Network.
Bundle sync scripts and mesh.json.example directly into the skill directory per the GitHub agent-skills spec. The agent now copies scripts from its own skill dir and runs --init automatically. Zero manual user steps after topology questions. - Bundle sync-mesh.sh, sync-mesh.ps1, mesh.json.example in skill dir - Update SKILL.md workflow: ASK, GENERATE, COPY, INIT, DECIDE, STOP - Add --init flag to sync scripts for state repo scaffolding - Sync all 4 skill locations (runtime + 3 templates) Refs: bradygaster#371, bradygaster#380 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Self-contained skill model (commit a9e9d63)Updated the distributed-mesh skill to follow the GitHub agent-skills spec pattern: What changed:
Before: Agent told user to manually copy scripts from templates/mesh/ 20 files changed, 1362 insertions(+), 126 deletions(-) |
Delete templates/mesh/ and templates/skills/distributed-mesh/ — neither was referenced by SDK/CLI init code. The canonical source is .squad/skills/distributed-mesh/; npm copies live in packages/*/templates/. Add scripts/sync-skill-templates.mjs to keep package template copies in sync with .squad/skills/ at build time. Refs: bradygaster#371, bradygaster#380 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Hey @andikrueger — heads up: the distributed-mesh feature addition introduced a test assertion drift in |
* chore(squad): quality review findings — 7 issues filed Quality audit complete: 5 agents assessed CLI across testing, coverage, stability, accessibility, UX. Results: 4 P0 blockers (bradygaster#365–bradygaster#368), 3 P1 items (bradygaster#369–bradygaster#371). Blocking: Waingro dead sessions, ErrorBoundary, dropped input; Marquez help text consistency. Changes: - Logged session summary to .squad/log/2026-02-24T0205-quality-review-complete.md - Updated .squad/identity/now.md with quality review findings and new issue numbers Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * chore(squad): merge decision — Marquez UX audit findings Quality assessment merged from inbox (Grade B): 11 improvements (3 P0, 4 P1, 4 P2). help text, stub commands, vocabulary, separators, roster. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * docs: update waingro history with hostile test coverage sprint Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix: P0 quality fixes — ErrorBoundary, session eviction, input buffer, stub removal (closes bradygaster#365, closes bradygaster#366, closes bradygaster#367, closes bradygaster#371) - Add ErrorBoundary class component wrapping App in Ink render call (bradygaster#365) Shows friendly message on crash, logs error to stderr - Dead session eviction in dispatchToAgent/dispatchToCoordinator (bradygaster#366) Deletes dead session from Map on error so next attempt creates fresh one - Input buffering while disabled in InputPrompt (bradygaster#367) Buffers keystrokes via useRef, restores on re-enable, no auto-submit - Remove stub commands: loop, hire; wire triage/watch to real runWatch (bradygaster#371) Remove stub help text entries for loop and hire - 10 new tests across repl-ux and cli-shell-comprehensive Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Distributed Mesh Integration
Closes #371
Replaces #372 (closed — had a base branch mismatch that inflated the diff to 697 files)
What This Does
Adds the distributed mesh extension to Squad — enabling cross-machine squad coordination via git (Zone 2: same-org) and HTTP (Zone 3: cross-org). This complements the existing upstream inheritance model with peer-to-peer coordination capabilities.
Changes
Documentation
docs/src/content/docs/features/distributed-mesh.md(298 lines)scenarios/multiple-squads.mddocs/src/navigation.tsTemplates
templates/mesh/— scaffolding for mesh setup:mesh.json.example— configuration template for all 3 zonessync-mesh.sh/sync-mesh.ps1— sync scriptsREADME.md— quick-start guideSKILL.mdin all template directories (SDK, CLI, root) + runtime skillTests
test/docs-build.test.ts— addeddistributed-meshtoEXPECTED_FEATURESarrayDesign Decisions
src/sharing/(cache, conflicts, versioning) andsrc/upstream/(git resolution) provide the foundation for future code implementationHow to Test
npm run buildandnpm testto verify docs build and test assertions passfeatures/distributed-mesh