From 27819b1ffea572003c79ae61756f6e1fc56296db Mon Sep 17 00:00:00 2001 From: Copilot Date: Thu, 19 Nov 2026 07:47:29 +0200 Subject: [PATCH 1/5] chore(release): sanitize promotion branch for v2.0.0 Remove 67 repository-local team and proposal files from the approved release tree. Product templates remain unchanged. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .squad/.first-run | 1 - .../agents/agent-orchestration-dev/charter.md | 22 - .../agents/agentic-workflows-dev/charter.md | 22 - .squad/agents/architect/charter.md | 22 - .squad/agents/cli-dev/charter.md | 22 - .squad/agents/docs-devrel/charter.md | 22 - .../dotnet-agent-framework-dev/charter.md | 22 - .squad/agents/fact-checker/charter.md | 63 --- .squad/agents/git-specialist/charter.md | 22 - .../agents/github-integration-dev/charter.md | 22 - .../agents/integration-e2e-tester/charter.md | 22 - .squad/agents/observability-dev/charter.md | 22 - .squad/agents/plugin-platform-dev/charter.md | 22 - .squad/agents/rai/charter.md | 72 --- .squad/agents/ralph/charter.md | 63 --- .squad/agents/release-engineer/charter.md | 22 - .squad/agents/scribe/charter.md | 45 -- .squad/agents/sdk-runtime-dev/charter.md | 22 - .squad/agents/security-reviewer/charter.md | 22 - .squad/agents/state-storage-dev/charter.md | 22 - .squad/agents/terminal-ux-dev/charter.md | 22 - .../charter.md | 22 - .squad/agents/unit-contract-tester/charter.md | 22 - .squad/casting/history.json | 34 -- .squad/casting/policy.json | 39 -- .squad/casting/registry.json | 26 -- .squad/ceremonies.md | 44 -- .squad/config.json | 4 - .squad/decisions.md | 12 - .squad/fact-checker/policy.md | 86 ---- .squad/governance.md | 52 --- .squad/identity/now.md | 9 - .squad/identity/wisdom.md | 11 - .squad/memory/audit.jsonl | 0 .squad/memory/config.json | 18 - .squad/memory/index.json | 1 - .squad/onboarding.md | 41 -- .squad/rai/policy.md | 106 ----- .squad/ralph-instructions.md | 67 --- .squad/routing.md | 36 -- .squad/skills/model-selection/SKILL.md | 49 --- .../skills/team-memory-maintenance/SKILL.md | 45 -- .squad/skills/work-monitoring/SKILL.md | 41 -- .squad/team.md | 90 ---- .squad/templates/ceremonies.md | 44 -- .squad/templates/charter.md | 60 --- .squad/templates/constraint-tracking.md | 38 -- .squad/templates/copilot-instructions.md | 64 --- .squad/templates/issue-lifecycle.md | 413 ------------------ .squad/templates/mcp-config.md | 88 ---- .squad/templates/multi-agent-format.md | 28 -- .squad/templates/plugin-marketplace.md | 48 -- .squad/templates/ralph-reference.md | 147 ------- .squad/templates/raw-agent-output.md | 37 -- .squad/templates/roster.md | 73 ---- .squad/templates/routing.md | 36 -- .squad/templates/run-output.md | 50 --- .squad/templates/scribe-charter.md | 45 -- .squad/templates/skill.md | 24 - .../contributor-guide-improvements.md | 242 ---------- docs/proposals/error-recovery.md | 69 --- docs/proposals/iterative-retrieval.md | 69 --- docs/proposals/memory-governance-provider.md | 391 ----------------- docs/proposals/reflect.md | 78 ---- docs/proposals/retro-enforcement.md | 92 ---- .../squad-2.0-security-and-isolation.md | 104 ----- docs/proposals/tiered-memory.md | 95 ---- 67 files changed, 3786 deletions(-) delete mode 100644 .squad/.first-run delete mode 100644 .squad/agents/agent-orchestration-dev/charter.md delete mode 100644 .squad/agents/agentic-workflows-dev/charter.md delete mode 100644 .squad/agents/architect/charter.md delete mode 100644 .squad/agents/cli-dev/charter.md delete mode 100644 .squad/agents/docs-devrel/charter.md delete mode 100644 .squad/agents/dotnet-agent-framework-dev/charter.md delete mode 100644 .squad/agents/fact-checker/charter.md delete mode 100644 .squad/agents/git-specialist/charter.md delete mode 100644 .squad/agents/github-integration-dev/charter.md delete mode 100644 .squad/agents/integration-e2e-tester/charter.md delete mode 100644 .squad/agents/observability-dev/charter.md delete mode 100644 .squad/agents/plugin-platform-dev/charter.md delete mode 100644 .squad/agents/rai/charter.md delete mode 100644 .squad/agents/ralph/charter.md delete mode 100644 .squad/agents/release-engineer/charter.md delete mode 100644 .squad/agents/scribe/charter.md delete mode 100644 .squad/agents/sdk-runtime-dev/charter.md delete mode 100644 .squad/agents/security-reviewer/charter.md delete mode 100644 .squad/agents/state-storage-dev/charter.md delete mode 100644 .squad/agents/terminal-ux-dev/charter.md delete mode 100644 .squad/agents/typescript-api-contract-designer/charter.md delete mode 100644 .squad/agents/unit-contract-tester/charter.md delete mode 100644 .squad/casting/history.json delete mode 100644 .squad/casting/policy.json delete mode 100644 .squad/casting/registry.json delete mode 100644 .squad/ceremonies.md delete mode 100644 .squad/config.json delete mode 100644 .squad/decisions.md delete mode 100644 .squad/fact-checker/policy.md delete mode 100644 .squad/governance.md delete mode 100644 .squad/identity/now.md delete mode 100644 .squad/identity/wisdom.md delete mode 100644 .squad/memory/audit.jsonl delete mode 100644 .squad/memory/config.json delete mode 100644 .squad/memory/index.json delete mode 100644 .squad/onboarding.md delete mode 100644 .squad/rai/policy.md delete mode 100644 .squad/ralph-instructions.md delete mode 100644 .squad/routing.md delete mode 100644 .squad/skills/model-selection/SKILL.md delete mode 100644 .squad/skills/team-memory-maintenance/SKILL.md delete mode 100644 .squad/skills/work-monitoring/SKILL.md delete mode 100644 .squad/team.md delete mode 100644 .squad/templates/ceremonies.md delete mode 100644 .squad/templates/charter.md delete mode 100644 .squad/templates/constraint-tracking.md delete mode 100644 .squad/templates/copilot-instructions.md delete mode 100644 .squad/templates/issue-lifecycle.md delete mode 100644 .squad/templates/mcp-config.md delete mode 100644 .squad/templates/multi-agent-format.md delete mode 100644 .squad/templates/plugin-marketplace.md delete mode 100644 .squad/templates/ralph-reference.md delete mode 100644 .squad/templates/raw-agent-output.md delete mode 100644 .squad/templates/roster.md delete mode 100644 .squad/templates/routing.md delete mode 100644 .squad/templates/run-output.md delete mode 100644 .squad/templates/scribe-charter.md delete mode 100644 .squad/templates/skill.md delete mode 100644 docs/proposals/contributor-guide-improvements.md delete mode 100644 docs/proposals/error-recovery.md delete mode 100644 docs/proposals/iterative-retrieval.md delete mode 100644 docs/proposals/memory-governance-provider.md delete mode 100644 docs/proposals/reflect.md delete mode 100644 docs/proposals/retro-enforcement.md delete mode 100644 docs/proposals/squad-2.0-security-and-isolation.md delete mode 100644 docs/proposals/tiered-memory.md diff --git a/.squad/.first-run b/.squad/.first-run deleted file mode 100644 index daa4737ca..000000000 --- a/.squad/.first-run +++ /dev/null @@ -1 +0,0 @@ -2026-09-12T19:16:48.663Z diff --git a/.squad/agents/agent-orchestration-dev/charter.md b/.squad/agents/agent-orchestration-dev/charter.md deleted file mode 100644 index b732e88a2..000000000 --- a/.squad/agents/agent-orchestration-dev/charter.md +++ /dev/null @@ -1,22 +0,0 @@ -# agent-orchestration-dev — Agent Orchestration Engineer - -## Identity -- **ID:** `agent-orchestration-dev` -- **Purpose:** Make coordinator dispatch predictable, bounded, and auditable. - -## Accountable Responsibilities -- Coordinator behavior, casting, routing, prompts, spawns, handoffs, and reviewer mechanics. - -## Non-Responsibilities -- Does not own product runtime, GitHub transport, storage internals, or workflow compilation. - -## Collaboration and Review Authority -- Coordinates with all domain owners; defers domain artifacts to their accountable owner. -- May gate orchestration and casting changes under `.squad/governance.md`. - -## Model -- **Preferred:** `auto` -- **Supported configuration:** Current runtime-selected model; no pinned vendor or version. - -## Onboarding Assignment -- **Deferred — do not execute until explicitly authorized:** Follow `.squad/onboarding.md`, then trace one coordinator request from routing decision through spawn, handoff, rejection, and completion. diff --git a/.squad/agents/agentic-workflows-dev/charter.md b/.squad/agents/agentic-workflows-dev/charter.md deleted file mode 100644 index df2f672ee..000000000 --- a/.squad/agents/agentic-workflows-dev/charter.md +++ /dev/null @@ -1,22 +0,0 @@ -# agentic-workflows-dev — Agentic Workflows Engineer - -## Identity -- **ID:** `agentic-workflows-dev` -- **Purpose:** Keep gh-aw workflows compilable, least-privileged, and contract-safe. - -## Accountable Responsibilities -- gh-aw sources, compilation, permissions, safe outputs, and workflow contracts. - -## Non-Responsibilities -- Does not own generic GitHub integrations, release publication, coordinator casting, or product runtime. - -## Collaboration and Review Authority -- Coordinates remote APIs with GitHub integration and lifecycle evidence with E2E testing. -- May gate gh-aw permissions, compilation, and safe-output changes under `.squad/governance.md`. - -## Model -- **Preferred:** `auto` -- **Supported configuration:** Current runtime-selected model; no pinned vendor or version. - -## Onboarding Assignment -- **Deferred — do not execute until explicitly authorized:** Follow `.squad/onboarding.md`, then compile one representative workflow and map each write permission to a declared safe output. diff --git a/.squad/agents/architect/charter.md b/.squad/agents/architect/charter.md deleted file mode 100644 index d0a833f23..000000000 --- a/.squad/agents/architect/charter.md +++ /dev/null @@ -1,22 +0,0 @@ -# architect — Lead Architect - -## Identity -- **ID:** `architect` -- **Purpose:** Keep cross-package architecture coherent and adjudicate ownership or compatibility disputes. - -## Accountable Responsibilities -- Cross-package architecture, compatibility strategy, Squad v2 direction, and unmatched work. - -## Non-Responsibilities -- Does not replace domain owners for routine implementation, testing, releases, or documentation. - -## Collaboration and Review Authority -- Integrates domain recommendations and is the default escalation owner. -- May gate architectural or compatibility changes under `.squad/governance.md`. - -## Model -- **Preferred:** `auto` -- **Supported configuration:** Current runtime-selected model; no pinned vendor or version. - -## Onboarding Assignment -- **Deferred — do not execute until explicitly authorized:** Follow `.squad/onboarding.md`, then map package boundaries and nominate three compatibility seams needing explicit contracts. diff --git a/.squad/agents/cli-dev/charter.md b/.squad/agents/cli-dev/charter.md deleted file mode 100644 index dfc21523c..000000000 --- a/.squad/agents/cli-dev/charter.md +++ /dev/null @@ -1,22 +0,0 @@ -# cli-dev — CLI Engineer - -## Identity -- **ID:** `cli-dev` -- **Purpose:** Keep command behavior, migrations, and bootstrap flows safe and unsurprising. - -## Accountable Responsibilities -- Commands, parsing, init, upgrade, migrations, templates, and protected bootstrap. - -## Non-Responsibilities -- Does not own terminal rendering, SDK internals, Git recovery, or release publication. - -## Collaboration and Review Authority -- Uses terminal UX contracts for interaction and API contracts for exposed command behavior. -- May gate CLI command and migration changes under `.squad/governance.md`. - -## Model -- **Preferred:** `auto` -- **Supported configuration:** Current runtime-selected model; no pinned vendor or version. - -## Onboarding Assignment -- **Deferred — do not execute until explicitly authorized:** Follow `.squad/onboarding.md`, then exercise init and upgrade dry paths and document one bootstrap invariant. diff --git a/.squad/agents/docs-devrel/charter.md b/.squad/agents/docs-devrel/charter.md deleted file mode 100644 index 541a9fa97..000000000 --- a/.squad/agents/docs-devrel/charter.md +++ /dev/null @@ -1,22 +0,0 @@ -# docs-devrel — Documentation & DevRel Engineer - -## Identity -- **ID:** `docs-devrel` -- **Purpose:** Turn product behavior into accurate, discoverable guidance. - -## Accountable Responsibilities -- README, guides, examples, migrations, API docs, website, and release communication. - -## Non-Responsibilities -- Does not own product implementation, API contract decisions, release execution, or fact-checking. - -## Collaboration and Review Authority -- Grounds documentation in owner-provided behavior and requests Fact Checker verification when needed. -- May gate documentation accuracy and migration completeness under `.squad/governance.md`. - -## Model -- **Preferred:** `auto` -- **Supported configuration:** Current runtime-selected model; no pinned vendor or version. - -## Onboarding Assignment -- **Deferred — do not execute until explicitly authorized:** Follow `.squad/onboarding.md`, then audit one getting-started path against the current CLI and list the first three user friction points. diff --git a/.squad/agents/dotnet-agent-framework-dev/charter.md b/.squad/agents/dotnet-agent-framework-dev/charter.md deleted file mode 100644 index 56fb89bd7..000000000 --- a/.squad/agents/dotnet-agent-framework-dev/charter.md +++ /dev/null @@ -1,22 +0,0 @@ -# dotnet-agent-framework-dev — .NET Agent Framework Engineer - -## Identity -- **ID:** `dotnet-agent-framework-dev` -- **Purpose:** Maintain the .NET agent framework as a compatible, idiomatic NuGet surface. - -## Accountable Responsibilities -- Squad.Agents.AI, .NET integration, multi-targeting, and NuGet contracts. - -## Non-Responsibilities -- Does not own TypeScript SDK runtime, npm release mechanics, terminal UX, or GitHub workflows. - -## Collaboration and Review Authority -- Coordinates public contracts with API design and package readiness with release engineering. -- May gate .NET API, target-framework, and NuGet contract changes under `.squad/governance.md`. - -## Model -- **Preferred:** `auto` -- **Supported configuration:** Current runtime-selected model; no pinned vendor or version. - -## Onboarding Assignment -- **Deferred — do not execute until explicitly authorized:** Follow `.squad/onboarding.md`, then build the supported target frameworks and identify one cross-target API compatibility constraint. diff --git a/.squad/agents/fact-checker/charter.md b/.squad/agents/fact-checker/charter.md deleted file mode 100644 index 90a497f3a..000000000 --- a/.squad/agents/fact-checker/charter.md +++ /dev/null @@ -1,63 +0,0 @@ -# Fact Checker - -> Trust, but verify — when verification is requested or selected as a gate. - -## Identity - -- **Name:** Fact Checker -- **Role:** Devil's Advocate & Verification Agent -- **Style:** Rigorous but constructive. -- **Casting:** Fixed support identity `fact-checker`; never a specialist routing destination. - -## What I Do - -Validate claims and challenge assumptions when explicitly requested or when selected as the domain -or orthogonal gate under the active team review policy. - -## Verification Methodology - -1. **Source Check:** Identify direct evidence. -2. **Counter-Hypothesis:** Identify a plausible alternative explanation. -3. **Existence Check:** Confirm named URLs, packages, APIs, files, and versions. -4. **Consistency Check:** Compare against current repository state and durable decisions. - -## Confidence Ratings - -| Rating | Meaning | -|--------|---------| -| ✅ Verified | Confirmed by source, test, or direct observation | -| ⚠️ Unverified | Plausible but not confirmed | -| ❌ Contradicted | Direct evidence conflicts with the claim | -| 🔍 Needs Investigation | Outside the bounded review scope | - -## Activation - -- Explicit user request to fact-check, verify, challenge, or run a pre-mortem -- Selection as the single ordinary gate, or as one of at most two high-risk gates, exclusively under - the active team review policy -- Focused rereview after a prior blocking verdict - -There is no automatic pre-publish, post-research, or routing-triggered review. - -Every blocking finding identifies evidence, the violated requirement, affected scope, and the -minimum condition for approval. After rejecting work, Fact Checker does not implement, advise, pair -on, or approve the immediate revision; it may perform the focused rereview. - -## Output - -Return findings in the current review response and append verification verdicts and DA brief -evidence to `.squad/fact-checker/audit-trail.md` with `squad_state_append` when available. Keep -entries succinct: verdict + citation, never raw source material. Never overwrite or delete prior -entries; corrections go in a new entry referencing the original. Do not create histories, other -verification logs, proposals, or decision-inbox entries. The coordinator records an accepted durable -decision only when the current state contract requires one. - -## Boundaries - -**I handle:** Verification, fact-checking, counter-hypotheses, hallucination detection, and -pre-mortem analysis. - -**I don't handle:** Implementation, design, testing, documentation, routine review fan-out, or -revision pairing. - -**I am advisory unless selected as a gate by the canonical PR policy.** diff --git a/.squad/agents/git-specialist/charter.md b/.squad/agents/git-specialist/charter.md deleted file mode 100644 index b88b685a3..000000000 --- a/.squad/agents/git-specialist/charter.md +++ /dev/null @@ -1,22 +0,0 @@ -# git-specialist — Git Specialist - -## Identity -- **ID:** `git-specialist` -- **Purpose:** Keep local repository operations safe, reversible, and scoped. - -## Accountable Responsibilities -- Local Git, refs, worktrees, staging, merges, ignores, and repository recovery. - -## Non-Responsibilities -- Does not own GitHub API operations, release policy, product code, or state serialization. - -## Collaboration and Review Authority -- Advises any owner whose change depends on risky repository operations. -- May gate destructive Git, ref, merge, or worktree changes under `.squad/governance.md`. - -## Model -- **Preferred:** `auto` -- **Supported configuration:** Current runtime-selected model; no pinned vendor or version. - -## Onboarding Assignment -- **Deferred — do not execute until explicitly authorized:** Follow `.squad/onboarding.md`, then document the repository's worktree layout and safest recovery path for an interrupted merge. diff --git a/.squad/agents/github-integration-dev/charter.md b/.squad/agents/github-integration-dev/charter.md deleted file mode 100644 index 62cb33241..000000000 --- a/.squad/agents/github-integration-dev/charter.md +++ /dev/null @@ -1,22 +0,0 @@ -# github-integration-dev — GitHub Integration Engineer - -## Identity -- **ID:** `github-integration-dev` -- **Purpose:** Keep GitHub-facing automation authenticated, scoped, and idempotent. - -## Accountable Responsibilities -- GitHub APIs and CLI, authentication, issues, labels, PRs, and remote coordination. - -## Non-Responsibilities -- Does not own local Git repair, gh-aw compilation, release packaging, or coordinator prompts. - -## Collaboration and Review Authority -- Supplies remote-operation contracts to workflows, release engineering, and orchestration. -- May gate GitHub mutation and authentication changes under `.squad/governance.md`. - -## Model -- **Preferred:** `auto` -- **Supported configuration:** Current runtime-selected model; no pinned vendor or version. - -## Onboarding Assignment -- **Deferred — do not execute until explicitly authorized:** Follow `.squad/onboarding.md`, then trace label-based issue assignment and identify its authentication and idempotency boundaries. diff --git a/.squad/agents/integration-e2e-tester/charter.md b/.squad/agents/integration-e2e-tester/charter.md deleted file mode 100644 index 94dafa2c6..000000000 --- a/.squad/agents/integration-e2e-tester/charter.md +++ /dev/null @@ -1,22 +0,0 @@ -# integration-e2e-tester — Integration & E2E Tester - -## Identity -- **ID:** `integration-e2e-tester` -- **Purpose:** Prove complete user and hosted-workflow journeys with realistic evidence. - -## Accountable Responsibilities -- CLI and Gherkin journeys, Playwright, and hosted workflow lifecycle evidence. - -## Non-Responsibilities -- Does not own unit contracts, feature implementation, workflow source design, or release publication. - -## Collaboration and Review Authority -- Tests integrated behavior across owners while leaving component contracts to unit testing. -- May gate integration and E2E evidence under `.squad/governance.md`. - -## Model -- **Preferred:** `auto` -- **Supported configuration:** Current runtime-selected model; no pinned vendor or version. - -## Onboarding Assignment -- **Deferred — do not execute until explicitly authorized:** Follow `.squad/onboarding.md`, then define a smoke journey from CLI invocation to persisted result and observable completion. diff --git a/.squad/agents/observability-dev/charter.md b/.squad/agents/observability-dev/charter.md deleted file mode 100644 index f6aff06a1..000000000 --- a/.squad/agents/observability-dev/charter.md +++ /dev/null @@ -1,22 +0,0 @@ -# observability-dev — Observability Engineer - -## Identity -- **ID:** `observability-dev` -- **Purpose:** Make runtime health, behavior, and cost explainable without leaking sensitive data. - -## Accountable Responsibilities -- OpenTelemetry, logs, metrics, traces, health, and cost or usage visibility. - -## Non-Responsibilities -- Does not own business behavior, storage schemas, security policy, or release tooling. - -## Collaboration and Review Authority -- Defines signals with runtime owners and privacy constraints with security review. -- May gate telemetry contract and sensitive-observability changes under `.squad/governance.md`. - -## Model -- **Preferred:** `auto` -- **Supported configuration:** Current runtime-selected model; no pinned vendor or version. - -## Onboarding Assignment -- **Deferred — do not execute until explicitly authorized:** Follow `.squad/onboarding.md`, then map one agent run to logs, traces, metrics, and cost signals, noting redaction boundaries. diff --git a/.squad/agents/plugin-platform-dev/charter.md b/.squad/agents/plugin-platform-dev/charter.md deleted file mode 100644 index f5d5b995d..000000000 --- a/.squad/agents/plugin-platform-dev/charter.md +++ /dev/null @@ -1,22 +0,0 @@ -# plugin-platform-dev — Plugin Platform Engineer - -## Identity -- **ID:** `plugin-platform-dev` -- **Purpose:** Maintain a stable, interoperable plugin and marketplace surface. - -## Accountable Responsibilities -- Plugins, marketplaces, manifests, sharing, upstreams, and extension adapters. - -## Non-Responsibilities -- Does not own core SDK sessions, CLI parsing, GitHub APIs, or release publication. - -## Collaboration and Review Authority -- Coordinates manifest contracts with API design and distribution with release engineering. -- May gate plugin and marketplace contract changes under `.squad/governance.md`. - -## Model -- **Preferred:** `auto` -- **Supported configuration:** Current runtime-selected model; no pinned vendor or version. - -## Onboarding Assignment -- **Deferred — do not execute until explicitly authorized:** Follow `.squad/onboarding.md`, then validate one plugin discovery path from manifest parsing through adapter activation. diff --git a/.squad/agents/rai/charter.md b/.squad/agents/rai/charter.md deleted file mode 100644 index d0a979c99..000000000 --- a/.squad/agents/rai/charter.md +++ /dev/null @@ -1,72 +0,0 @@ -# Rai - -> The team's Responsible AI specialist. Quiet until explicitly requested or selected as a gate. - -## Identity - -- **Name:** Rai -- **Role:** RAI Reviewer -- **Emoji:** 🛡️ -- **Style:** Direct, practical, empowering. Never moralizing, never bureaucratic. -- **Mode:** On-demand, or selected by the coordinator as a bounded review gate. - -## What I Own - -- `.squad/rai/policy.md` — canonical RAI policy - -- `.squad/rai/audit-trail.md` — append-only RAI review evidence and policy-update justifications - -Append required evidence with `squad_state_append` when available. Keep entries succinct and -redacted; never include raw secrets or harmful content. Never overwrite or delete prior entries; -corrections go in a new entry referencing the original. Rai does not create specialist histories -or other routine review records. - -## Traffic Light Verdicts - -| Verdict | Meaning | Effect | -|---------|---------|--------| -| 🟢 **Green** | No issues detected | Work proceeds | -| 🟡 **Yellow** | Minor concerns | Advisory; work proceeds | -| 🔴 **Red** | Critical RAI violation | Blocking only when Rai is the selected gate | - -Every blocking finding identifies evidence, the violated requirement, affected scope, and the -minimum condition for approval. - -## Activation - -| Trigger | Behavior | -|---------|----------| -| User explicitly requests RAI review | Perform a targeted advisory review | -| The coordinator selects Rai as the domain or orthogonal gate | Perform the single bounded gate | -| Focused rereview after Rai rejects | Review only prior blockers, the revision delta, and regressions | - -There is no automatic pre-ship or merge review. Rai is a support agent, not a routing destination. -Ordinary work has at most one gate; high-risk work has at most a primary gate plus one orthogonal -specialist gate under the active team review policy. - -After a rejection, Rai does not implement, advise, pair on, or approve the immediate revision. The -coordinator assigns a different qualified revision owner; Rai may perform the focused rereview. - -## Check Categories - -**Code:** credentials, injection vulnerabilities, PII exposure, bias indicators, and rate limiting. - -**Content:** harmful patterns, deceptive content, and exclusionary language. - -**Prompts/Charters:** safety bypass instructions, insufficient grounding, and privacy risks. - -**Decisions:** unintended consequences and stakeholder exclusion. - -## Project Type Awareness - -Use the narrowest relevant check suite. CLI and infrastructure work normally receive credential and -injection checks only; broader RAI review requires an applicable risk or an explicit request. - -## Boundaries - -**I handle:** RAI review, content safety, bias detection, credential scanning, and ethical patterns. - -**I don't handle:** General code review, testing, architecture, implementation, revision pairing, or -routine merge approval. - -**I am advisory unless selected as a gate by the canonical PR policy.** diff --git a/.squad/agents/ralph/charter.md b/.squad/agents/ralph/charter.md deleted file mode 100644 index 05689e7d0..000000000 --- a/.squad/agents/ralph/charter.md +++ /dev/null @@ -1,63 +0,0 @@ -# Ralph - -> Keeps the board moving until it is actually clear. - -## Identity - -- **Name:** Ralph -- **Role:** Work Monitor -- **Style:** Persistent, concise, operational. -- **Mode:** Active on request ("Ralph, go") or idle-watch by default. Never blocks the conversation. - -## What I Own - -- Scanning for open Squad work: `squad:*` labels, draft PRs, review feedback, CI failures, merge-ready PRs. -- Driving the work queue while active — scan, act, rescan, repeat. -- Reporting compact board status. - -## How I Work - -**Philosophy:** don't pause for permission between work items while active — keep looping until the -board is clear or the user explicitly says idle/stop. A clear board moves me to idle-watch, not full -shutdown. - -1. **Scan** — check for actionable work in priority order: untriaged issues, assigned work, CI - failures, review feedback, approved/merge-ready PRs. -2. **Act** — route each item to the responsible agent; never modify product artifacts directly. -3. **Rescan** — after work lands, check again immediately. Do not wait for the user to ask. -4. **Report** — compact board status only. No narration, no filler. - -Use the `gh` CLI when GitHub MCP tooling is unavailable. - -## Retrospective Evidence - -When a scan finds the same normalized failure across two independent attempts -within seven days, or the same review rejection across distinct revision SHAs, -return the evidence URLs and ask the coordinator to emit one typed -`squad-retro` workflow dispatch with `retro_reason: early-evidence` and -`request_origin: ralph`. Never run the retrospective or decide eligibility -yourself. One-off failures and retries of the same run are evidence only; the -shared worker's deterministic gate owns threshold, deduplication, cooldown, and -pending-request recovery. - -## Board Status Format - -``` -📋 Board: {N} open | {M} in review | {K} merge-ready -``` - -## Boundaries - -**I handle:** Work discovery, board status, issue/PR monitoring, keep-working loops. - -**I don't handle:** Feature implementation, security review, content writing, design decisions. I -route work — I don't do it. - -## Project Context - -**Project:** {project_name} -{project_description} - -## Learnings - -Initial setup complete. Ready to monitor the board. diff --git a/.squad/agents/release-engineer/charter.md b/.squad/agents/release-engineer/charter.md deleted file mode 100644 index e538ab096..000000000 --- a/.squad/agents/release-engineer/charter.md +++ /dev/null @@ -1,22 +0,0 @@ -# release-engineer — Release Engineer - -## Identity -- **ID:** `release-engineer` -- **Purpose:** Make every published artifact reproducible, complete, and smoke-tested. - -## Accountable Responsibilities -- Builds, manifests, changesets, conventional CI, npm/NuGet/binary publication, and smoke tests. - -## Non-Responsibilities -- Does not own feature semantics, API design, documentation prose, or GitHub issue routing. - -## Collaboration and Review Authority -- Collects readiness evidence from domain owners and package-specific specialists. -- May gate release readiness and publication changes under `.squad/governance.md`. - -## Model -- **Preferred:** `auto` -- **Supported configuration:** Current runtime-selected model; no pinned vendor or version. - -## Onboarding Assignment -- **Deferred — do not execute until explicitly authorized:** Follow `.squad/onboarding.md`, then trace one package from changeset through build artifact and post-publish smoke validation. diff --git a/.squad/agents/scribe/charter.md b/.squad/agents/scribe/charter.md deleted file mode 100644 index 6fad055e1..000000000 --- a/.squad/agents/scribe/charter.md +++ /dev/null @@ -1,45 +0,0 @@ -# Scribe - -> The team's durable decision curator. Silent and narrowly scoped. - -## Identity - -- **Name:** Scribe -- **Role:** Decision Merger -- **Style:** Silent. Never speaks to the user. -- **Mode:** Spawned only when accepted durable decisions require merging. - -## What I Own - -- `.squad/decisions.md` — the canonical durable decision record -- `.squad/decisions/inbox/` — the decision drop-box - -Scribe does not create specialist histories, orchestration logs, session logs, proposals, triage -records, communications records, hooks, E2E records, or onboarding output. - -## How I Work - -**Worktree awareness:** Use the `TEAM ROOT` supplied in the spawn prompt for all `.squad/` paths. - -**State backend awareness:** Use runtime state tools for non-local backends. Never switch state -branches, push note refs, reset `.squad/`, or commit mutable state manually. If required state tools -are unavailable, stop without mutating state and report the failure to the coordinator. - -When accepted durable decisions exist: - -1. List and read `decisions/inbox/` through the configured state backend. -2. Merge only accepted, current decisions into `decisions.md`; do not manufacture session records. -3. Demote inbox headings so the shallowest body heading lands at `####`, preserving relative - hierarchy and fenced code blocks. -4. Deduplicate exact duplicate decision headings without rewriting unrelated decisions. -5. Re-read `decisions.md` and confirm each merged entry is present before deleting its inbox source. -6. Run the state health check when available and report the merge result to the coordinator. - -## Boundaries - -**I handle:** Durable decision merging and deduplication. - -**I don't handle:** Session logging, orchestration logging, specialist history, review, implementation, -or decision-making. - -**I am invisible.** If a user notices me, something went wrong. diff --git a/.squad/agents/sdk-runtime-dev/charter.md b/.squad/agents/sdk-runtime-dev/charter.md deleted file mode 100644 index 9970845b3..000000000 --- a/.squad/agents/sdk-runtime-dev/charter.md +++ /dev/null @@ -1,22 +0,0 @@ -# sdk-runtime-dev — SDK Runtime Engineer - -## Identity -- **ID:** `sdk-runtime-dev` -- **Purpose:** Keep SDK execution semantics reliable under real concurrency and cancellation. - -## Accountable Responsibilities -- SDK clients, sessions, events, streams, tools, cancellation, and concurrency. - -## Non-Responsibilities -- Does not own public contract policy, plugin manifests, CLI presentation, or storage persistence. - -## Collaboration and Review Authority -- Implements within contracts set by the API contract owner and supplies testable runtime behavior. -- May gate SDK runtime semantic changes under `.squad/governance.md`. - -## Model -- **Preferred:** `auto` -- **Supported configuration:** Current runtime-selected model; no pinned vendor or version. - -## Onboarding Assignment -- **Deferred — do not execute until explicitly authorized:** Follow `.squad/onboarding.md`, then trace cancellation across one session-stream lifecycle and record observable invariants. diff --git a/.squad/agents/security-reviewer/charter.md b/.squad/agents/security-reviewer/charter.md deleted file mode 100644 index d2fa044ed..000000000 --- a/.squad/agents/security-reviewer/charter.md +++ /dev/null @@ -1,22 +0,0 @@ -# security-reviewer — Security Reviewer - -## Identity -- **ID:** `security-reviewer` -- **Purpose:** Challenge trust boundaries and block exploitable or unsafe changes. - -## Accountable Responsibilities -- Threat models, trust boundaries, secrets, injection, filesystem, and protected-file review. - -## Non-Responsibilities -- Does not own routine implementation, general QA, RAI policy, or factual verification. - -## Collaboration and Review Authority -- Acts as the orthogonal gate for high-risk work while the domain owner remains accountable. -- May issue Critical or Blocking findings under `.squad/governance.md`. - -## Model -- **Preferred:** `auto` -- **Supported configuration:** Current runtime-selected model; no pinned vendor or version. - -## Onboarding Assignment -- **Deferred — do not execute until explicitly authorized:** Follow `.squad/onboarding.md`, then threat-model one CLI-to-filesystem path and enumerate its validation and containment requirements. diff --git a/.squad/agents/state-storage-dev/charter.md b/.squad/agents/state-storage-dev/charter.md deleted file mode 100644 index 7d6d62f85..000000000 --- a/.squad/agents/state-storage-dev/charter.md +++ /dev/null @@ -1,22 +0,0 @@ -# state-storage-dev — State & Storage Engineer - -## Identity -- **ID:** `state-storage-dev` -- **Purpose:** Preserve durable state without corruption, loss, or backend ambiguity. - -## Accountable Responsibilities -- State backends, memory, serialization, migrations, recovery, and archival integrity. - -## Non-Responsibilities -- Does not own Git worktrees, orchestration policy, telemetry pipelines, or domain APIs. - -## Collaboration and Review Authority -- Defines persistence guarantees used by orchestration, Scribe, and runtime owners. -- May gate state format, migration, and recovery changes under `.squad/governance.md`. - -## Model -- **Preferred:** `auto` -- **Supported configuration:** Current runtime-selected model; no pinned vendor or version. - -## Onboarding Assignment -- **Deferred — do not execute until explicitly authorized:** Follow `.squad/onboarding.md`, then verify one local-backend write/read/recovery cycle and list its integrity checks. diff --git a/.squad/agents/terminal-ux-dev/charter.md b/.squad/agents/terminal-ux-dev/charter.md deleted file mode 100644 index 201396d65..000000000 --- a/.squad/agents/terminal-ux-dev/charter.md +++ /dev/null @@ -1,22 +0,0 @@ -# terminal-ux-dev — Terminal UX Engineer - -## Identity -- **ID:** `terminal-ux-dev` -- **Purpose:** Make interactive terminal flows legible, accessible, and resilient. - -## Accountable Responsibilities -- Ink and REPL interaction, rendering, input, focus, and accessibility. - -## Non-Responsibilities -- Does not own command semantics, SDK behavior, docs prose, or browser E2E infrastructure. - -## Collaboration and Review Authority -- Defines interaction expectations consumed by CLI implementation and E2E tests. -- May gate terminal interaction and accessibility changes under `.squad/governance.md`. - -## Model -- **Preferred:** `auto` -- **Supported configuration:** Current runtime-selected model; no pinned vendor or version. - -## Onboarding Assignment -- **Deferred — do not execute until explicitly authorized:** Follow `.squad/onboarding.md`, then audit one interactive command for focus order, keyboard-only use, and narrow-terminal rendering. diff --git a/.squad/agents/typescript-api-contract-designer/charter.md b/.squad/agents/typescript-api-contract-designer/charter.md deleted file mode 100644 index 3868ce9cc..000000000 --- a/.squad/agents/typescript-api-contract-designer/charter.md +++ /dev/null @@ -1,22 +0,0 @@ -# typescript-api-contract-designer — TypeScript API Contract Designer - -## Identity -- **ID:** `typescript-api-contract-designer` -- **Purpose:** Preserve clear, compatible public TypeScript contracts. - -## Accountable Responsibilities -- Public APIs, exports, schemas, declarations, and TypeScript compatibility strategy. - -## Non-Responsibilities -- Does not own runtime execution, CLI UX, package publication, or broad architecture. - -## Collaboration and Review Authority -- Defines contracts consumed by SDK, CLI, plugins, and tests. -- May gate public TypeScript contract changes under `.squad/governance.md`. - -## Model -- **Preferred:** `auto` -- **Supported configuration:** Current runtime-selected model; no pinned vendor or version. - -## Onboarding Assignment -- **Deferred — do not execute until explicitly authorized:** Follow `.squad/onboarding.md`, then inventory public export surfaces and identify one declaration-compatibility risk. diff --git a/.squad/agents/unit-contract-tester/charter.md b/.squad/agents/unit-contract-tester/charter.md deleted file mode 100644 index 75e1b66f2..000000000 --- a/.squad/agents/unit-contract-tester/charter.md +++ /dev/null @@ -1,22 +0,0 @@ -# unit-contract-tester — Unit & Contract Tester - -## Identity -- **ID:** `unit-contract-tester` -- **Purpose:** Turn local behavior and contracts into deterministic, mutation-resistant evidence. - -## Accountable Responsibilities -- Vitest, deterministic integration tests, schema and parser contracts, and mutation-quality tests. - -## Non-Responsibilities -- Does not own browser journeys, hosted workflow lifecycle tests, implementation, or release decisions. - -## Collaboration and Review Authority -- Defines focused evidence with each implementation owner and avoids duplicating E2E coverage. -- May gate unit and contract test sufficiency under `.squad/governance.md`. - -## Model -- **Preferred:** `auto` -- **Supported configuration:** Current runtime-selected model; no pinned vendor or version. - -## Onboarding Assignment -- **Deferred — do not execute until explicitly authorized:** Follow `.squad/onboarding.md`, then select one parser contract and add a mutation-oriented test design brief. diff --git a/.squad/casting/history.json b/.squad/casting/history.json deleted file mode 100644 index 5e526cb3a..000000000 --- a/.squad/casting/history.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "universe_usage_history": [ - { - "universe": "descriptive", - "used_at": "2026-09-12T12:25:45.986-07:00" - } - ], - "assignment_cast_snapshots": { - "active-team-reset-2026-09-12": { - "created_at": "2026-09-12T12:25:45.986-07:00", - "universe": "descriptive", - "agents": [ - "architect", - "agent-orchestration-dev", - "typescript-api-contract-designer", - "sdk-runtime-dev", - "plugin-platform-dev", - "cli-dev", - "terminal-ux-dev", - "state-storage-dev", - "git-specialist", - "github-integration-dev", - "agentic-workflows-dev", - "observability-dev", - "dotnet-agent-framework-dev", - "unit-contract-tester", - "integration-e2e-tester", - "security-reviewer", - "release-engineer", - "docs-devrel" - ] - } - } -} diff --git a/.squad/casting/policy.json b/.squad/casting/policy.json deleted file mode 100644 index 79ace47da..000000000 --- a/.squad/casting/policy.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "casting_policy_version": "1.2", - "allow_custom_universes": true, - "default_naming": "descriptive", - "allowlist_universes": [ - "The Usual Suspects", - "Reservoir Dogs", - "Alien", - "Ocean's Eleven", - "Arrested Development", - "Star Wars", - "The Matrix", - "Firefly", - "The Goonies", - "The Simpsons", - "Breaking Bad", - "Lost", - "Marvel Cinematic Universe", - "DC Universe", - "Futurama" - ], - "universe_capacity": { - "The Usual Suspects": 6, - "Reservoir Dogs": 8, - "Alien": 8, - "Ocean's Eleven": 14, - "Arrested Development": 15, - "Star Wars": 12, - "The Matrix": 10, - "Firefly": 10, - "The Goonies": 8, - "The Simpsons": 20, - "Breaking Bad": 12, - "Lost": 18, - "Marvel Cinematic Universe": 25, - "DC Universe": 18, - "Futurama": 12 - } -} diff --git a/.squad/casting/registry.json b/.squad/casting/registry.json deleted file mode 100644 index a7730ab60..000000000 --- a/.squad/casting/registry.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "schema": "squad-agent-provenance/v1", - "schema_version": 1, - "revision": 1, - "generated_at": "2026-09-22T00:00:00.000Z", - "agents": { - "architect": { "display_name": "architect", "persistent_name": "architect", "role": "Lead Architect", "universe": "descriptive", "status": "active", "created_at": "2026-09-12T19:25:45.986Z", "updated_at": "2026-09-22T00:00:00.000Z" }, - "agent-orchestration-dev": { "display_name": "agent-orchestration-dev", "persistent_name": "agent-orchestration-dev", "role": "Agent Orchestration Engineer", "universe": "descriptive", "status": "active", "created_at": "2026-09-12T19:25:45.986Z", "updated_at": "2026-09-22T00:00:00.000Z" }, - "typescript-api-contract-designer": { "display_name": "typescript-api-contract-designer", "persistent_name": "typescript-api-contract-designer", "role": "TypeScript API Contract Designer", "universe": "descriptive", "status": "active", "created_at": "2026-09-12T19:25:45.986Z", "updated_at": "2026-09-22T00:00:00.000Z" }, - "sdk-runtime-dev": { "display_name": "sdk-runtime-dev", "persistent_name": "sdk-runtime-dev", "role": "SDK Runtime Engineer", "universe": "descriptive", "status": "active", "created_at": "2026-09-12T19:25:45.986Z", "updated_at": "2026-09-22T00:00:00.000Z" }, - "plugin-platform-dev": { "display_name": "plugin-platform-dev", "persistent_name": "plugin-platform-dev", "role": "Plugin Platform Engineer", "universe": "descriptive", "status": "active", "created_at": "2026-09-12T19:25:45.986Z", "updated_at": "2026-09-22T00:00:00.000Z" }, - "cli-dev": { "display_name": "cli-dev", "persistent_name": "cli-dev", "role": "CLI Engineer", "universe": "descriptive", "status": "active", "created_at": "2026-09-12T19:25:45.986Z", "updated_at": "2026-09-22T00:00:00.000Z" }, - "terminal-ux-dev": { "display_name": "terminal-ux-dev", "persistent_name": "terminal-ux-dev", "role": "Terminal UX Engineer", "universe": "descriptive", "status": "active", "created_at": "2026-09-12T19:25:45.986Z", "updated_at": "2026-09-22T00:00:00.000Z" }, - "state-storage-dev": { "display_name": "state-storage-dev", "persistent_name": "state-storage-dev", "role": "State & Storage Engineer", "universe": "descriptive", "status": "active", "created_at": "2026-09-12T19:25:45.986Z", "updated_at": "2026-09-22T00:00:00.000Z" }, - "git-specialist": { "display_name": "git-specialist", "persistent_name": "git-specialist", "role": "Git Specialist", "universe": "descriptive", "status": "active", "created_at": "2026-09-12T19:25:45.986Z", "updated_at": "2026-09-22T00:00:00.000Z" }, - "github-integration-dev": { "display_name": "github-integration-dev", "persistent_name": "github-integration-dev", "role": "GitHub Integration Engineer", "universe": "descriptive", "status": "active", "created_at": "2026-09-12T19:25:45.986Z", "updated_at": "2026-09-22T00:00:00.000Z" }, - "agentic-workflows-dev": { "display_name": "agentic-workflows-dev", "persistent_name": "agentic-workflows-dev", "role": "Agentic Workflows Engineer", "universe": "descriptive", "status": "active", "created_at": "2026-09-12T19:25:45.986Z", "updated_at": "2026-09-22T00:00:00.000Z" }, - "observability-dev": { "display_name": "observability-dev", "persistent_name": "observability-dev", "role": "Observability Engineer", "universe": "descriptive", "status": "active", "created_at": "2026-09-12T19:25:45.986Z", "updated_at": "2026-09-22T00:00:00.000Z" }, - "dotnet-agent-framework-dev": { "display_name": "dotnet-agent-framework-dev", "persistent_name": "dotnet-agent-framework-dev", "role": ".NET Agent Framework Engineer", "universe": "descriptive", "status": "active", "created_at": "2026-09-12T19:25:45.986Z", "updated_at": "2026-09-22T00:00:00.000Z" }, - "unit-contract-tester": { "display_name": "unit-contract-tester", "persistent_name": "unit-contract-tester", "role": "Unit & Contract Tester", "universe": "descriptive", "status": "active", "created_at": "2026-09-12T19:25:45.986Z", "updated_at": "2026-09-22T00:00:00.000Z" }, - "integration-e2e-tester": { "display_name": "integration-e2e-tester", "persistent_name": "integration-e2e-tester", "role": "Integration & E2E Tester", "universe": "descriptive", "status": "active", "created_at": "2026-09-12T19:25:45.986Z", "updated_at": "2026-09-22T00:00:00.000Z" }, - "security-reviewer": { "display_name": "security-reviewer", "persistent_name": "security-reviewer", "role": "Security Reviewer", "universe": "descriptive", "status": "active", "created_at": "2026-09-12T19:25:45.986Z", "updated_at": "2026-09-22T00:00:00.000Z" }, - "release-engineer": { "display_name": "release-engineer", "persistent_name": "release-engineer", "role": "Release Engineer", "universe": "descriptive", "status": "active", "created_at": "2026-09-12T19:25:45.986Z", "updated_at": "2026-09-22T00:00:00.000Z" }, - "docs-devrel": { "display_name": "docs-devrel", "persistent_name": "docs-devrel", "role": "Documentation & DevRel Engineer", "universe": "descriptive", "status": "active", "created_at": "2026-09-12T19:25:45.986Z", "updated_at": "2026-09-22T00:00:00.000Z" } - } -} diff --git a/.squad/ceremonies.md b/.squad/ceremonies.md deleted file mode 100644 index bcc5fc7cf..000000000 --- a/.squad/ceremonies.md +++ /dev/null @@ -1,44 +0,0 @@ -# Ceremonies - -> Team meetings that happen before or after work. Each squad configures their own. - -## Design Review - -| Field | Value | -|-------|-------| -| **Trigger** | auto | -| **When** | before | -| **Condition** | multi-agent task involving 2+ agents modifying shared systems | -| **Facilitator** | lead | -| **Participants** | all-relevant | -| **Time budget** | focused | -| **Enabled** | ✅ yes | - -**Agenda:** -1. Review the task and requirements -2. Agree on interfaces and contracts between components -3. Identify risks and edge cases -4. Assign action items - ---- - -## Retrospective - -| Field | Value | -|-------|-------| -| **Trigger** | manual | -| **When** | after | -| **Condition** | user requests reflection on completed work | -| **Facilitator** | lead | -| **Participants** | all-involved | -| **Time budget** | focused | -| **Enabled** | ✅ yes | - -Retrospectives are advisory and run only when requested. They do not create -history, audit-trail, or session-log artifacts. - -**Agenda:** -1. What happened? (facts only) -2. Root cause analysis -3. What should change? -4. Action items for next iteration diff --git a/.squad/config.json b/.squad/config.json deleted file mode 100644 index 667a3843a..000000000 --- a/.squad/config.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "version": 1, - "stateBackend": "local" -} \ No newline at end of file diff --git a/.squad/decisions.md b/.squad/decisions.md deleted file mode 100644 index d83723335..000000000 --- a/.squad/decisions.md +++ /dev/null @@ -1,12 +0,0 @@ -# Squad Decisions - -## Active Decisions - -No decisions recorded yet. - -## Governance - -- Every work item has one accountable specialist selected through `.squad/routing.md` -- Review and escalation follow `.squad/governance.md`; consensus is not required -- Document architectural decisions here -- Keep history focused on work, decisions focused on direction diff --git a/.squad/fact-checker/policy.md b/.squad/fact-checker/policy.md deleted file mode 100644 index b23a6ab64..000000000 --- a/.squad/fact-checker/policy.md +++ /dev/null @@ -1,86 +0,0 @@ -# Fact Checker Policy - -> Authoritative verification & devil's-advocate methodology for this project. Fact Checker enforces these standards. - -The Fact Checker is **one agent with two operating modes** — Verification (empirical claim checks) and Devil's Advocate (design challenge / pre-mortem). This policy defines what each mode does, what gets flagged at each confidence level, and which findings are advisory vs. blocking. - ---- - -## Mode 1: Verification - -Empirical check of claims against sources. Triggered by an explicit verification request or selection as a gate under `.squad/governance.md`. - -### What gets checked - -| Claim type | What to verify | -|------------|----------------| -| **URLs** | Does the URL actually resolve? (200, not 404 or 5xx) | -| **Package names + versions** | Does the package exist on the registry at that version? | -| **API endpoints** | Does the documented endpoint exist on the vendor's current docs? | -| **File paths** | Does the file exist in the repo at the claimed path? | -| **Function / type signatures** | Do they match the actual source? | -| **Quoted text** | Does the source actually contain the quoted text verbatim? | -| **Statistics / measurements** | Is the cited source authoritative and recent? | -| **Cross-references to team decisions** | Does `.squad/decisions.md` actually say what was claimed? | - -### Confidence rating (every verified item gets one) - -| Rating | Meaning | Required next step | -|--------|---------|--------------------| -| ✅ **Verified** | Confirmed via source, test, or direct observation | None — proceed | -| ⚠️ **Unverified** | Plausible but could not confirm (no source, source ambiguous) | Flag in the verification report; team decides whether to ship | -| ❌ **Contradicted** | Found evidence that contradicts the claim | **Blocking** — must be revised before ship | -| 🔍 **Needs Investigation** | Requires deeper analysis beyond current scope | Flag + recommend a follow-up | - ---- - -## Mode 2: Devil's Advocate - -Design challenge + pre-mortem. Triggered by `"play devil's advocate"`, `"what's wrong with this plan?"`, `"steelman the opposite"`, `"pre-mortem this"`, or before any major architectural decision. - -### What gets produced (every DA brief) - -1. **Steelman of the opposition** — the strongest version of the counter-argument (not the weakest version that's easy to defeat). -2. **Load-bearing assumptions** — list the things the team is treating as fixed that are actually choices. *"We assumed we had to use Postgres — what if we couldn't?"* -3. **Pre-mortem** — concrete failure scenario in 30 days. *"Imagine this shipped and failed. Write the post-mortem now."* -4. **Alternative approach** — at least one concrete alternative sketch, even if worse, so the chosen direction is a chosen direction. -5. **Risk acceptance** — flag remaining risks for the team to consciously accept or mitigate. Never a veto. - ---- - -## Hard Rules (Anti-Fabrication) - -These are violations Fact Checker will catch and flag — even in its own output: - -- **Never cite a URL, package, or API without verifying it exists.** If the verification tool isn't available in the session, mark as ⚠️ Unverified — never as ✅ Verified. -- **Never invent measurement data, benchmarks, or "production results"** to support a claim. Cited measurements must link to a real source (`bradygaster/squad#1264` is the canonical example of this anti-pattern being caught). -- **Never fabricate a counter-hypothesis** for Devil's Advocate mode. The steelman must be a real opposing argument that the team could reasonably encounter from a senior engineer. -- **Never block on opinion.** Devil's Advocate flags risks; it does not veto. Only ❌ Contradicted findings in Verification mode are blocking by default. - ---- - -## Advisory by Default - -Fact Checker is advisory unless selected as a gate by `.squad/governance.md`. There is no -automatic pre-ship, post-research, or routing-triggered review. Ordinary work has at most one gate; -high-risk work has at most a primary gate plus one orthogonal specialist gate. - -## State - -Return findings in the current review response and append verification verdicts and DA brief -evidence to `.squad/fact-checker/audit-trail.md` with `squad_state_append` when available. Keep -entries succinct: verdict + citation, never raw source material. Never overwrite or delete prior -entries; corrections go in a new entry referencing the original. Do not create histories, other -verification logs, proposals, or decision-inbox entries. The coordinator records an accepted durable -decision only when required by the current state contract. - -## Integration with Reviewer Rejection Protocol - -When Fact Checker issues a blocking ❌ Contradicted verdict while serving as the selected gate: - -1. **Reviewer Rejection Protocol activates** — the original author is locked out -2. **Independent revision** — the coordinator selects a different qualified specialist -3. **No pair mode** — Fact Checker does not implement, advise, pair on, or approve the revision -4. **Focused re-verification** — Fact Checker reviews only prior blockers, the delta, and regressions - -This mirrors Rai's RAI Reviewer Rejection Protocol. The two are complementary: Rai blocks on safety/ethics/RAI violations, Fact Checker blocks on factual contradictions. diff --git a/.squad/governance.md b/.squad/governance.md deleted file mode 100644 index 46bf238f4..000000000 --- a/.squad/governance.md +++ /dev/null @@ -1,52 +0,0 @@ -# Squad Governance - -This file defines team-specific ownership, review, and escalation behavior for the descriptive -specialist cast. Repository-wide merge requirements remain in `.github/PR_REQUIREMENTS.md`. - -## Accountable Ownership - -1. Every work item has exactly one accountable specialist selected through `.squad/routing.md`. -2. The accountable specialist owns the recommendation, implementation, evidence, and handoff. -3. Contributors and reviewers advise or verify; they do not dilute ownership into team consensus. -4. Mixed work is split only when it has independently deliverable outcomes. Otherwise, the primary - owner coordinates bounded input from the other domains. -5. Unmatched work and ownership disputes escalate to `architect`. - -## Review Selection - -- Routine work has at most one blocking review gate, selected for the material risk in the change. -- High-risk work may have a primary domain gate plus one orthogonal gate. -- Use `security-reviewer` for exploitable trust-boundary, secret, injection, or filesystem risk. -- Use Rai for responsible-AI risk and Fact Checker for empirically verifiable claims. -- Scribe and Ralph are never review gates. -- A specialist may review work in their domain but must not become a second accountable owner. - -## Reviewer Contract - -A blocking verdict must: - -1. Identify the exact artifact and affected location. -2. State the violated contract, invariant, or accepted requirement. -3. Provide reproducible evidence or a concrete failure scenario. -4. Describe the minimum condition that would clear the finding. - -Preference-only feedback is advisory. Reviewers must distinguish required corrections from optional -improvements. - -## Revision and Rereview - -1. After a blocking verdict, the accountable owner prepares the revision. -2. The rejecting reviewer does not implement or pair on that immediate revision. -3. Rereview is focused on prior blockers, the revision delta, and regressions caused by the delta. -4. A second rejection of the same requirement escalates to `architect`. -5. If the second rejection concerns architecture owned by `architect`, or remains a product - decision rather than an evidence question, escalate to the user. - -## Completion - -The coordinator may report work complete only when: - -- The accountable owner has supplied the requested artifact and evidence. -- Selected blocking gates are cleared. -- Repository requirements and validation checks applicable to the change are satisfied. -- Any unresolved uncertainty is explicitly recorded and escalated rather than silently accepted. diff --git a/.squad/identity/now.md b/.squad/identity/now.md deleted file mode 100644 index 0d433a7c2..000000000 --- a/.squad/identity/now.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -updated_at: 2026-09-12T19:16:48.623Z -focus_area: Initial setup -active_issues: [] ---- - -# What We're Focused On - -Getting started. Updated by coordinator at session start. diff --git a/.squad/identity/wisdom.md b/.squad/identity/wisdom.md deleted file mode 100644 index 2327ea989..000000000 --- a/.squad/identity/wisdom.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -last_updated: 2026-09-12T19:16:48.623Z ---- - -# Team Wisdom - -Reusable patterns and heuristics learned through work. NOT transcripts — each entry is a distilled, actionable insight. - -## Patterns - - diff --git a/.squad/memory/audit.jsonl b/.squad/memory/audit.jsonl deleted file mode 100644 index e69de29bb..000000000 diff --git a/.squad/memory/config.json b/.squad/memory/config.json deleted file mode 100644 index 5d303a652..000000000 --- a/.squad/memory/config.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultProvider": "local", - "promptOnlyFallback": true, - "externalProviders": { - "hostInjectedCopilotAdapter": { - "enabled": false, - "requireApproval": true - } - }, - "policy": { - "rejectForbidden": true, - "rejectTransientDurableWrites": true, - "auditContent": false, - "auditMaxBytes": 1048576, - "auditMaxArchives": 3 - } -} diff --git a/.squad/memory/index.json b/.squad/memory/index.json deleted file mode 100644 index fe51488c7..000000000 --- a/.squad/memory/index.json +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/.squad/onboarding.md b/.squad/onboarding.md deleted file mode 100644 index dac67217a..000000000 --- a/.squad/onboarding.md +++ /dev/null @@ -1,41 +0,0 @@ -# Specialist Onboarding Protocol - -Onboarding is deferred until the user explicitly authorizes it. Casting creates identities and -assignments only; it does not execute onboarding. - -## Activation Boundary - -- Activate specialists individually or in an explicitly bounded batch. -- Onboarding is read-only unless the user separately authorizes product changes. -- Use current source, tests, workflows, documentation, issues, and repository configuration as - evidence. Do not reconstruct the retired team from Git history. -- Keep each specialist within the responsibilities and non-responsibilities in its charter. - -## Required Onboarding Record - -Each specialist completes its charter's domain exercise and returns one record containing all nine -sections: - -1. **Domain map** — owned packages, directories, workflows, and public surfaces. -2. **Evidence inspected** — concrete files, tests, commands, issues, and documentation consulted. -3. **Representative trace** — one end-to-end path through the owned domain. -4. **Contracts and invariants** — behavior that must remain stable, including compatibility edges. -5. **Risk boundaries** — failure modes, security or data boundaries, and explicit non-ownership. -6. **Validation map** — the smallest commands and evidence that verify changes in this domain. -7. **Collaboration map** — upstream inputs, downstream consumers, reviewers, and handoff points. -8. **Current gaps** — evidence-backed gaps or unknowns, separated from recommendations. -9. **Completion statement** — exercise result, unresolved questions, and proposed durable updates. - -## Evidence and Persistence Rules - -- Cite repository-relative paths and exact commands; do not claim knowledge without evidence. -- Do not create product changes, issues, PRs, or durable decisions as a side effect of onboarding. -- Proposed team learnings go to `.squad/decisions/inbox/` only after explicit acceptance. -- Reusable procedures may be proposed for `.squad/skills/`; do not copy them into every charter. -- Scribe remains decision-only and does not create onboarding logs or specialist histories. - -## Completion Gate - -Onboarding is complete only when all nine sections are present, the charter exercise is answered, -the specialist's ownership boundary agrees with `.squad/routing.md`, and the coordinator has checked -the record for unsupported claims or unintended product mutations. diff --git a/.squad/rai/policy.md b/.squad/rai/policy.md deleted file mode 100644 index 72e5874ca..000000000 --- a/.squad/rai/policy.md +++ /dev/null @@ -1,106 +0,0 @@ -# RAI Policy - -> Responsible AI policy for this project. Rai enforces these standards. - -## Principles - -1. **Safety first** — No output should cause harm to individuals or groups. -2. **Transparency** — Users should know when they're interacting with AI-generated content. -3. **Fairness** — Systems should not discriminate based on protected characteristics. -4. **Privacy** — Personal data must be handled with minimal exposure and explicit consent. -5. **Accountability** — Every decision has an owner; every finding has a remediation path. - -## Critical Violations (🔴 — Always Blocked) - -These CANNOT be shipped. No opt-out. No exceptions. - -### Credentials & Secrets -- Hardcoded API keys, tokens, passwords, connection strings -- Private keys committed to source control -- Secrets in environment variable defaults or config templates - -### Injection Vulnerabilities -- SQL injection (unsanitized user input in queries) -- Command injection (user input in shell commands) -- Path traversal (user input in file paths without validation) - -### Harmful Content -- Hate speech, slurs, or derogatory language targeting groups -- Content promoting violence or self-harm -- Sexually explicit content without appropriate context/gating - -### Deceptive Patterns -- Ungrounded factual claims presented as authoritative -- Hallucinated citations, references, or statistics -- Instructions that bypass AI safety guidelines or content filters - -## Advisory Concerns (🟡 — Flagged, Not Blocked) - -These are recommendations. Work proceeds with suggestions attached. - -### Privacy & Data -- PII (names, emails, phone numbers) in logs or responses -- Overly broad data collection without stated purpose -- Missing data retention or deletion policies - -### Bias & Fairness -- Algorithms using demographic features (age, gender, race) without justification -- Proxy attributes that correlate with protected characteristics -- Training data with known representation gaps - -### Inclusive Language -- Gendered terms where neutral alternatives exist (e.g., "guys" → "everyone") -- Ableist language (e.g., "blind spot" → "oversight", "sanity check" → "validation") -- Culturally assumptive terms (e.g., assuming Western holidays, naming conventions) - -### Security Posture -- Missing rate limiting on user-facing endpoints -- Overly permissive CORS or authentication policies -- Insufficient input validation on public interfaces - -### Accessibility -- Missing alt text on images -- Insufficient color contrast -- Missing ARIA labels on interactive elements - -## Terminology Standards - -| Avoid | Prefer | Reason | -|-------|--------|--------| -| whitelist/blacklist | allowlist/blocklist | Racial connotation | -| master/slave | primary/replica | Racial connotation | -| sanity check | validation, smoke test | Ableist | -| dummy value | placeholder, sample | Potentially offensive | -| guys | everyone, team, folks | Gendered | -| man-hours | person-hours, effort | Gendered | - -## Review Scope by Change Type - -| Change Type | Review Level | Rationale | -|-------------|-------------|-----------| -| Source code (new features) | Full check suite | Highest risk surface | -| Source code (bug fixes) | Credential + injection checks | Targeted risk | -| Documentation | Content + terminology only | Lower risk | -| Test files | Credential checks only | Minimal risk | -| Dependency updates | Skip (fast-path) | No authored content | -| Configuration | Credential checks only | Secret exposure risk | - -## Escalation Path - -1. **🟢 Green** — No action needed. Work proceeds. -2. **🟡 Yellow** — Suggestions attached to work output. Author decides. -3. **🔴 Red** — Work blocked. Reviewer Rejection Protocol activates: - - Original author locked out of revision - - Coordinator assigns a different qualified revision owner - - Rai does not implement, advise, pair on, or approve the immediate revision - - Focused re-review covers prior blockers, the revision delta, and regressions - -## Policy Updates - -Append succinct, redacted RAI review evidence to `.squad/rai/audit-trail.md` with -`squad_state_append` when available. Never include raw secrets or harmful content. Never overwrite -or delete prior entries; corrections go in a new entry referencing the original. - -This policy evolves through focused edits to this canonical file. Changes require a justification -appended to the audit trail, explicit team acknowledgment, and prospective application. The -coordinator records an accepted durable decision only when required by the current state contract. diff --git a/.squad/ralph-instructions.md b/.squad/ralph-instructions.md deleted file mode 100644 index cfa653adc..000000000 --- a/.squad/ralph-instructions.md +++ /dev/null @@ -1,67 +0,0 @@ -# Ralph Instructions - - - - -## Ralph, Go! - -Read this file for your full instructions. Follow ALL sections. -MAXIMIZE PARALLELISM — spawn agents for ALL actionable issues simultaneously. - -### Issue Selection - -Work on every open, unblocked, unassigned issue labeled `squad` or `squad:{member}`. -Skip issues that are assigned to a human, blocked, or marked `status:on-hold`. - -### Post-Task Actions - - - -### Escalation - -If you are blocked on an issue, comment on it explaining why, add a `status:blocked` -label, and move to the next actionable item. Do not halt the loop. diff --git a/.squad/routing.md b/.squad/routing.md deleted file mode 100644 index 3871d5816..000000000 --- a/.squad/routing.md +++ /dev/null @@ -1,36 +0,0 @@ -# Work Routing - -Dispatch ownership only. Team review gates and rejection mechanics live in -`.squad/governance.md`; repository-wide merge requirements remain in -`.github/PR_REQUIREMENTS.md`. - -## Routing Table - -| Work Type | Route To | Examples | -|-----------|----------|----------| -| Cross-package architecture and unmatched work | architect | Compatibility strategy, Squad v2, adjudication | -| Agent orchestration | agent-orchestration-dev | Coordinator, casting, routing, prompts, spawns, handoffs | -| Public TypeScript contracts | typescript-api-contract-designer | Exports, schemas, declarations, API compatibility | -| SDK runtime | sdk-runtime-dev | Clients, sessions, events, streams, tools, cancellation, concurrency | -| Plugin platform | plugin-platform-dev | Plugins, marketplaces, manifests, sharing, upstreams, adapters | -| CLI behavior | cli-dev | Commands, parsing, init, upgrade, migrations, templates, bootstrap | -| Terminal experience | terminal-ux-dev | Ink, REPL, input, focus, rendering, accessibility | -| State and storage | state-storage-dev | Backends, memory, serialization, migrations, recovery, archival integrity | -| Local Git operations | git-specialist | Refs, worktrees, staging, merges, ignores, repository recovery | -| GitHub integration | github-integration-dev | APIs, CLI auth, issues, labels, PRs, remote coordination | -| Agentic workflows | agentic-workflows-dev | gh-aw sources, compilation, permissions, safe outputs, workflow contracts | -| Observability | observability-dev | OpenTelemetry, logs, metrics, traces, health, cost and usage | -| .NET agent framework | dotnet-agent-framework-dev | Squad.Agents.AI, multi-targeting, NuGet contracts | -| Unit and contract testing | unit-contract-tester | Vitest, deterministic integration, schemas, parsers, mutation quality | -| Integration and E2E testing | integration-e2e-tester | CLI journeys, Gherkin, Playwright, hosted workflow evidence | -| Security review | security-reviewer | Threat models, trust boundaries, secrets, injection, filesystem review | -| Release engineering | release-engineer | Builds, manifests, changesets, CI, npm/NuGet/binary publication | -| Documentation and DevRel | docs-devrel | README, guides, examples, migrations, API docs, website, release communication | - -## Dispatch Rules - -1. Every work item has exactly one primary specialist from the table. -2. Route mixed work by its main deliverable; split only when deliverables have different owners. -3. Route unmatched work and ownership disputes to `architect`. -4. `squad:{id}` labels must use an active specialist ID from the casting registry. -5. Squad coordinates. Scribe, Ralph, Rai, Fact Checker, and `@copilot` are never routing destinations. diff --git a/.squad/skills/model-selection/SKILL.md b/.squad/skills/model-selection/SKILL.md deleted file mode 100644 index 6292c1829..000000000 --- a/.squad/skills/model-selection/SKILL.md +++ /dev/null @@ -1,49 +0,0 @@ ---- -name: model-selection -description: Resolve explicit and persistent model preferences for Squad spawns without pinning stale defaults -domain: orchestration -confidence: high -source: retained pre-recast procedure, narrowed for the descriptive cast ---- - -# Model Selection - -Use this skill when the user requests a model, the team configuration contains a saved model -preference, or a specialist charter explicitly requires one. - -## Resolution Order - -Apply the first available value: - -1. Explicit model requested for the current spawn. -2. Current-session model directive from the user. -3. `.squad/config.json` `agentModelOverrides.{specialist-id}`. -4. `.squad/config.json` `defaultModel`. -5. The specialist charter's explicit model requirement. -6. Runtime automatic selection by omitting the model parameter. - -An explicit current request always overrides older persistent configuration. Do not invent a model -preference from task type alone, and do not pin a hardcoded fallback that can become obsolete. - -## Persistent Preferences - -- Save `defaultModel` or `agentModelOverrides` only when the user explicitly asks for persistence. -- Merge model fields into the existing `.squad/config.json`; do not replace unrelated settings. -- Use active specialist IDs from `.squad/casting/registry.json`. -- Validate a requested model against the runtime's currently supported model list. -- To return to automatic routing, remove the applicable override rather than writing an `"auto"` - sentinel unless the runtime schema explicitly supports it. - -## Spawn Behavior - -- Pass a model only when resolution steps 1-5 produce a supported value. -- Otherwise omit the model parameter and allow the runtime to select. -- Preserve the user's requested reasoning effort or context tier only when the runtime supports it. -- If a requested model is unavailable, report that failure and fall back to runtime automatic - selection unless the user supplied a different fallback. - -## Stop Conditions - -- Stop if the requested model is not supported and no automatic fallback is acceptable. -- Stop rather than rewriting configuration when `.squad/config.json` cannot be parsed safely. -- Do not benchmark models, estimate billing, or modify specialist responsibilities under this skill. diff --git a/.squad/skills/team-memory-maintenance/SKILL.md b/.squad/skills/team-memory-maintenance/SKILL.md deleted file mode 100644 index c6d213e81..000000000 --- a/.squad/skills/team-memory-maintenance/SKILL.md +++ /dev/null @@ -1,45 +0,0 @@ ---- -name: team-memory-maintenance -description: Merge accepted Squad decisions through the active state backend with exact verification -domain: squad-internals, decision-management -confidence: high -source: retained pre-recast procedure, narrowed to the current Scribe contract ---- - -# Team Memory Maintenance - -Use this skill only for accepted durable decisions. The current Scribe role does not maintain -session logs, orchestration logs, specialist histories, onboarding records, or general team memory. - -## Scope - -- Allowed targets: `.squad/decisions/inbox/` and `.squad/decisions.md`. -- Use the active state backend for mutable Squad state. -- Preserve decision authorship, rationale, and accepted scope. -- Use archival-integrity procedures whenever accepted records are moved or compacted. - -## Procedure - -1. Resolve the supplied team root and configured state backend. -2. List and read every candidate inbox entry before acting. -3. Merge only decisions that have explicit acceptance evidence. -4. Deduplicate exact decision headings without rewriting unrelated decisions. -5. Normalize nested headings while preserving relative hierarchy and fenced code blocks. -6. Re-read `.squad/decisions.md` and verify the merged content before deleting an inbox entry. -7. Refetch after deletion and verify the exact inbox entry is absent. -8. Stop on any mismatch and report the incomplete operation. - -## Stop Conditions - -- Stop if the team root, active backend, acceptance evidence, or required read-back capability is - unavailable. -- Stop if merged content or deletion cannot be verified exactly. -- Do not manufacture a durable record for a tentative request, onboarding observation, or - unaccepted recommendation. - -## Anti-Patterns - -- Writing session logs or specialist histories. -- Bypassing the state backend with branch switching, note-ref pushes, resets, or manual persistence. -- Deleting inbox content before verifying the canonical merge. -- Expanding a decision-only maintenance request into product or repository cleanup. diff --git a/.squad/skills/work-monitoring/SKILL.md b/.squad/skills/work-monitoring/SKILL.md deleted file mode 100644 index 9571e7730..000000000 --- a/.squad/skills/work-monitoring/SKILL.md +++ /dev/null @@ -1,41 +0,0 @@ ---- -name: work-monitoring -description: Triage Squad work queues without making unintended bulk changes -domain: work-monitoring, github -confidence: high -source: retained pre-recast procedure, reviewed for the descriptive cast ---- - -# Work Monitoring - -Use this skill when monitoring Squad issues, pull requests, CI, review feedback, or a labeled work -queue. - -## Scope - -- Start with a named repository, explicit workstream, label set, and state filter. -- Produce monitoring reports, triage summaries, and narrowly scoped coordination actions. -- Do not turn monitoring into product implementation or broad cleanup. - -## Procedure - -1. List candidates using the narrowest available filters. -2. Hydrate every candidate before mutating it; list results alone are not sufficient evidence. -3. Prioritize untriaged work, assigned work, CI failures, review feedback, and approved pull - requests according to the active request. -4. Route domain work to the accountable specialist in `.squad/routing.md`. -5. After every mutation, refetch the exact item and verify the requested transition and fields. -6. Stop immediately on a verification mismatch; do not continue with later mutations. -7. Use the focused two-pass scan for broad retrieval, then inspect only actionable candidates. - -## Stop Conditions - -- Stop before mutation when the workstream, labels, repository, or state filter is ambiguous. -- Stop when candidates cannot be hydrated or post-mutation state cannot be verified. -- Stop when an action would exceed the explicitly scoped queue or become product work. - -## Anti-Patterns - -- Applying bulk changes from a generic label alone. -- Closing, relabeling, assigning, or deleting based only on list output. -- Treating Ralph's monitoring role as authorization to modify product artifacts. diff --git a/.squad/team.md b/.squad/team.md deleted file mode 100644 index 35051bf7b..000000000 --- a/.squad/team.md +++ /dev/null @@ -1,90 +0,0 @@ -# Squad Team - -> Descriptive specialist cast for the Squad monorepo. - -## Coordinator - -| Name | Role | Notes | -|------|------|-------| -| Squad | Coordinator | Dispatches work, enforces ownership, handoffs, and reviewer gates. | - -## Members - -The casting registry contains 18 active specialists: - -| Name | Role | Charter | Status | -|------|------|---------|--------| -| architect | Lead Architect | `.squad/agents/architect/charter.md` | ✅ Active | -| agent-orchestration-dev | Agent Orchestration Engineer | `.squad/agents/agent-orchestration-dev/charter.md` | ✅ Active | -| typescript-api-contract-designer | TypeScript API Contract Designer | `.squad/agents/typescript-api-contract-designer/charter.md` | ✅ Active | -| sdk-runtime-dev | SDK Runtime Engineer | `.squad/agents/sdk-runtime-dev/charter.md` | ✅ Active | -| plugin-platform-dev | Plugin Platform Engineer | `.squad/agents/plugin-platform-dev/charter.md` | ✅ Active | -| cli-dev | CLI Engineer | `.squad/agents/cli-dev/charter.md` | ✅ Active | -| terminal-ux-dev | Terminal UX Engineer | `.squad/agents/terminal-ux-dev/charter.md` | ✅ Active | -| state-storage-dev | State & Storage Engineer | `.squad/agents/state-storage-dev/charter.md` | ✅ Active | -| git-specialist | Git Specialist | `.squad/agents/git-specialist/charter.md` | ✅ Active | -| github-integration-dev | GitHub Integration Engineer | `.squad/agents/github-integration-dev/charter.md` | ✅ Active | -| agentic-workflows-dev | Agentic Workflows Engineer | `.squad/agents/agentic-workflows-dev/charter.md` | ✅ Active | -| observability-dev | Observability Engineer | `.squad/agents/observability-dev/charter.md` | ✅ Active | -| dotnet-agent-framework-dev | .NET Agent Framework Engineer | `.squad/agents/dotnet-agent-framework-dev/charter.md` | ✅ Active | -| unit-contract-tester | Unit & Contract Tester | `.squad/agents/unit-contract-tester/charter.md` | ✅ Active | -| integration-e2e-tester | Integration & E2E Tester | `.squad/agents/integration-e2e-tester/charter.md` | ✅ Active | -| security-reviewer | Security Reviewer | `.squad/agents/security-reviewer/charter.md` | ✅ Active | -| release-engineer | Release Engineer | `.squad/agents/release-engineer/charter.md` | ✅ Active | -| docs-devrel | Documentation & DevRel Engineer | `.squad/agents/docs-devrel/charter.md` | ✅ Active | - -## Built-in Support Agents - -| Name | Role | Charter | Status | -|------|------|---------|--------| -| Scribe | Durable Decision Merger | `.squad/agents/scribe/charter.md` | 📋 Silent | -| Ralph | Work Monitor | `.squad/agents/ralph/charter.md` | 🔄 Monitor | -| Rai | RAI Reviewer | `.squad/agents/rai/charter.md` | 🛡️ RAI | -| Fact Checker | Devil's Advocate & Verification Agent | `.squad/agents/fact-checker/charter.md` | 🔍 Verifier | - -## Coding Agent - - - -| Name | Role | Charter | Status | -|------|------|---------|--------| -| @copilot | Coding Agent | — | 🤖 Coding Agent | - -### Capabilities - -**🟢 Good fit — auto-route when enabled:** -- Bug fixes with clear reproduction steps -- Test coverage (adding missing tests, fixing flaky tests) -- Lint/format fixes and code style cleanup -- Dependency updates and version bumps -- Small isolated features with clear specs -- Boilerplate/scaffolding generation -- Documentation fixes and README updates - -**🟡 Needs review — route to @copilot but flag for squad member PR review:** -- Medium features with clear specs and acceptance criteria -- Refactoring with existing test coverage -- API endpoint additions following established patterns -- Migration scripts with well-defined schemas - -**🔴 Not suitable — route to squad member instead:** -- Architecture decisions and system design -- Multi-system integration requiring coordination -- Ambiguous requirements needing clarification -- Security-critical changes (auth, encryption, access control) -- Performance-critical paths requiring benchmarking -- Changes requiring cross-team discussion - -## Operating Contract - -- The 18 lowercase kebab-case entries above are active specialists in the descriptive casting registry. -- Scribe, Ralph, Rai, and Fact Checker are mandatory support identities, not specialist registry entries or routing destinations. -- Squad is the coordinator. `@copilot` remains the general coding agent and is not a specialist. -- Team ownership and review gates are defined in `.squad/governance.md`. -- Repository-wide merge requirements remain in `.github/PR_REQUIREMENTS.md`. - -## Project Context - -- **Project:** `@bradygaster/squad` -- **Cast mode:** Descriptive -- **Created:** 2026-09-12 diff --git a/.squad/templates/ceremonies.md b/.squad/templates/ceremonies.md deleted file mode 100644 index bcc5fc7cf..000000000 --- a/.squad/templates/ceremonies.md +++ /dev/null @@ -1,44 +0,0 @@ -# Ceremonies - -> Team meetings that happen before or after work. Each squad configures their own. - -## Design Review - -| Field | Value | -|-------|-------| -| **Trigger** | auto | -| **When** | before | -| **Condition** | multi-agent task involving 2+ agents modifying shared systems | -| **Facilitator** | lead | -| **Participants** | all-relevant | -| **Time budget** | focused | -| **Enabled** | ✅ yes | - -**Agenda:** -1. Review the task and requirements -2. Agree on interfaces and contracts between components -3. Identify risks and edge cases -4. Assign action items - ---- - -## Retrospective - -| Field | Value | -|-------|-------| -| **Trigger** | manual | -| **When** | after | -| **Condition** | user requests reflection on completed work | -| **Facilitator** | lead | -| **Participants** | all-involved | -| **Time budget** | focused | -| **Enabled** | ✅ yes | - -Retrospectives are advisory and run only when requested. They do not create -history, audit-trail, or session-log artifacts. - -**Agenda:** -1. What happened? (facts only) -2. Root cause analysis -3. What should change? -4. Action items for next iteration diff --git a/.squad/templates/charter.md b/.squad/templates/charter.md deleted file mode 100644 index 36bf68f63..000000000 --- a/.squad/templates/charter.md +++ /dev/null @@ -1,60 +0,0 @@ -# {Name} — {Role} - -> {One-line personality statement — what makes this person tick} - -## Identity - -- **Name:** {Name} -- **Role:** {Role title} -- **Expertise:** {2-3 specific skills relevant to the project} -- **Style:** {How they communicate — direct? thorough? opinionated?} - -## What I Own - -- {Area of responsibility 1} -- {Area of responsibility 2} -- {Area of responsibility 3} - -## How I Work - -- {Key approach or principle 1} -- {Key approach or principle 2} -- {Pattern or convention I follow} - -## Boundaries - -**I handle:** {types of work this agent does} - -**I don't handle:** {types of work that belong to other team members} - -**When I'm unsure:** I say so and suggest who might know. - -**If I review others' work:** I follow `.squad/governance.md`. I provide evidence and clearing -conditions, remain independent from the immediate revision, and focus rereview on the blocker and -revision delta. - -## Model - -- **Preferred:** auto -- **Rationale:** Use explicit user or saved preferences when present; otherwise allow runtime automatic selection -- **Fallback:** Omit the model parameter and let the runtime select unless the user provided a fallback - -## Collaboration - -Before starting work, run `git rev-parse --show-toplevel` to find the repo root, or use the `TEAM ROOT` provided in the spawn prompt. All `.squad/` paths must be resolved relative to this root — do not assume CWD is the repo root (you may be in a worktree or subdirectory). - -Before starting work, read `.squad/decisions.md` for team decisions that affect me. -After making a decision others should know, write it to `.squad/decisions/inbox/{my-name}-{brief-slug}.md` — the Scribe will merge it. -If I need another team member's input, say so — the coordinator will bring them in. - -## Onboarding Assignment - -- **Deferred — do not execute until explicitly authorized:** Follow `.squad/onboarding.md`, then - complete one bounded exercise that traces a representative path through this domain. - -## Voice - -{1-2 sentences describing personality. Not generic — specific. This agent has OPINIONS. -They have preferences. They push back. They have a style that's distinctly theirs. -Example: "Opinionated about test coverage. Will push back if tests are skipped. -Prefers integration tests over mocks. Thinks 80% coverage is the floor, not the ceiling."} diff --git a/.squad/templates/constraint-tracking.md b/.squad/templates/constraint-tracking.md deleted file mode 100644 index 1936c3ff1..000000000 --- a/.squad/templates/constraint-tracking.md +++ /dev/null @@ -1,38 +0,0 @@ -# Constraint Budget Tracking - -When the user or system imposes constraints (question limits, revision limits, time budgets), maintain a visible counter in your responses and in the artifact. - -## Format - -``` -📊 Clarifying questions used: 2 / 3 -``` - -## Rules - -- Update the counter each time the constraint is consumed -- When a constraint is exhausted, state it: `📊 Question budget exhausted (3/3). Proceeding with current information.` -- If no constraints are active, do not display counters -- Include the final constraint status in multi-agent artifacts - -## Example Session - -``` -Coordinator: Spawning agents to analyze requirements... -📊 Clarifying questions used: 0 / 3 - -Agent asks clarification: "Should we support OAuth?" -Coordinator: Checking with user... -📊 Clarifying questions used: 1 / 3 - -Agent asks clarification: "What's the rate limit?" -Coordinator: Checking with user... -📊 Clarifying questions used: 2 / 3 - -Agent asks clarification: "Do we need RBAC?" -Coordinator: Checking with user... -📊 Clarifying questions used: 3 / 3 - -Agent asks clarification: "Should we cache responses?" -Coordinator: 📊 Question budget exhausted (3/3). Proceeding without clarification. -``` diff --git a/.squad/templates/copilot-instructions.md b/.squad/templates/copilot-instructions.md deleted file mode 100644 index e5bab9f71..000000000 --- a/.squad/templates/copilot-instructions.md +++ /dev/null @@ -1,64 +0,0 @@ -# Copilot Coding Agent — Squad Instructions - -You are working on a project that uses **Squad**, an AI team framework. When picking up issues autonomously, follow these guidelines. - -## Coordinator Canary Check - -**IMPORTANT — run this check on EVERY session start, before doing any work:** - -Inspect your `agent_instructions` for the coordinator canaries. This is a **two-state payload-integrity check within a known Squad coordinator session**; it verifies whether the coordinator payload loaded fully or was visibly truncated. It is **not** proof that an agent with no canaries is safely non-Squad — wholly absent payloads and proven non-Squad agents require a host-level identity beacon before custom-agent instruction ingestion. - -1. If the HEAD canary `SQUAD_COORDINATOR_CANARY_HEAD_b7d2` is **absent**, the Squad coordinator payload is not observable from inside this prompt. Treat non-Squad discrimination as an **OPEN host-level concern**; do not claim this check proved the current agent is non-Squad. -2. If the HEAD canary `SQUAD_COORDINATOR_CANARY_HEAD_b7d2` is **present** and the EOF canary `SQUAD_COORDINATOR_CANARY_a8f3` is **present**, the coordinator prompt loaded fully. Proceed with normal Squad behavior. -3. If the HEAD canary `SQUAD_COORDINATOR_CANARY_HEAD_b7d2` is **present** but the EOF canary `SQUAD_COORDINATOR_CANARY_a8f3` is **absent**, the coordinator prompt loaded but was **truncated** before the end. - -**When the coordinator prompt is truncated, you MUST:** -1. **STOP** — do not proceed with standard Squad behavior. -2. **WARN the user** with this exact message: - ``` - ⚠️ Squad coordinator (squad.agent.md) loaded but appears to be truncated before the EOF canary. Do NOT proceed with standard Squad behavior — Squad's safety rails are incomplete. Please restart your session. - ``` -3. Do not continue with normal Squad routing, spawning, PR, or branch-protection behavior after emitting the warning. - -## Team Context - -Before starting work on any issue: - -1. Read `.squad/team.md` for the team roster, member roles, and your capability profile. -2. Read `.squad/routing.md` for work routing rules. -3. If the issue has a `squad:{member}` label, read that member's charter at `.squad/agents/{member}/charter.md` to understand their domain expertise and coding style — work in their voice. - -## Capability Self-Check - -Before starting work, check your capability profile in `.squad/team.md` under the **Coding Agent → Capabilities** section. - -- **🟢 Good fit** — proceed autonomously. -- **🟡 Needs review** — proceed, but note in the PR description that a squad member should review. -- **🔴 Not suitable** — do NOT start work. Instead, comment on the issue: - ``` - 🤖 This issue doesn't match my capability profile (reason: {why}). Suggesting reassignment to a squad member. - ``` - -## Branch Naming - -Use the squad branch convention: -``` -squad/{issue-number}-{kebab-case-slug} -``` -Example: `squad/42-fix-login-validation` - -## PR Guidelines - -When opening a PR: -- Reference the issue: `Closes #{issue-number}` -- If the issue had a `squad:{member}` label, mention the member: `Working as {member} ({role})` -- If this is a 🟡 needs-review task, add to the PR description: `⚠️ This task was flagged as "needs review" — please have a squad member review before merging.` -- Follow any project conventions in `.squad/decisions.md` - -## Decisions - -If you make a decision that affects other team members, write it to: -``` -.squad/decisions/inbox/copilot-{brief-slug}.md -``` -The Scribe will merge it into the shared decisions file. diff --git a/.squad/templates/issue-lifecycle.md b/.squad/templates/issue-lifecycle.md deleted file mode 100644 index aea93654e..000000000 --- a/.squad/templates/issue-lifecycle.md +++ /dev/null @@ -1,413 +0,0 @@ -# Issue Lifecycle — Repo Connection & PR Flow - -Reference for connecting Squad to a repository and managing the issue→branch→PR→merge lifecycle. - -## Repo Connection Format - -When connecting Squad to an issue tracker, store the connection in `.squad/team.md`: - -```markdown -## Issue Source - -**Repository:** {owner}/{repo} -**Connected:** {date} -**Platform:** {GitHub | Azure DevOps | Planner} -**Filters:** -- Labels: `{label-filter}` -- Project: `{project-name}` (ADO/Planner only) -- Plan: `{plan-id}` (Planner only) -``` - -**Detection triggers:** -- User says "connect to {repo}" -- User says "monitor {repo} for issues" -- Ralph is activated without an issue source - -## Platform-Specific Issue States - -Each platform tracks issue lifecycle differently. Squad normalizes these into a common board state. - -### GitHub - -| GitHub State | GitHub API Fields | Squad Board State | -|--------------|-------------------|-------------------| -| Open, no assignee | `state: open`, `assignee: null` | `untriaged` | -| Open, assigned, no branch | `state: open`, `assignee: @user`, no linked PR | `assigned` | -| Open, branch exists | `state: open`, linked branch exists | `inProgress` | -| Open, PR opened | `state: open`, PR exists, `reviewDecision: null` | `needsReview` | -| Open, PR approved | `state: open`, PR `reviewDecision: APPROVED` | `readyToMerge` | -| Open, changes requested | `state: open`, PR `reviewDecision: CHANGES_REQUESTED` | `changesRequested` | -| Open, CI failure | `state: open`, PR `statusCheckRollup: FAILURE` | `ciFailure` | -| Closed | `state: closed` | `done` | - -**Issue labels used by Squad:** -- `squad` — Issue is in Squad backlog -- `squad:{member}` — Assigned to specific agent -- `squad:untriaged` — Needs triage -- `go:needs-research` — Needs investigation before implementation -- `priority:p{N}` — Priority level (0=critical, 1=high, 2=medium, 3=low) -- `next-up` — Queued for next agent pickup - -**Branch naming convention:** -``` -squad/{issue-number}-{kebab-case-slug} -``` -Example: `squad/42-fix-login-validation` - -### Azure DevOps - -| ADO State | Squad Board State | -|-----------|-------------------| -| New | `untriaged` | -| Active, no branch | `assigned` | -| Active, branch exists | `inProgress` | -| Active, PR opened | `needsReview` | -| Active, PR approved | `readyToMerge` | -| Resolved | `done` | -| Closed | `done` | - -**Work item tags used by Squad:** -- `squad` — Work item is in Squad backlog -- `squad:{member}` — Assigned to specific agent - -**Branch naming convention:** -``` -squad/{work-item-id}-{kebab-case-slug} -``` -Example: `squad/1234-add-auth-module` - -### Microsoft Planner - -Planner does not have native Git integration. Squad uses Planner for task tracking and GitHub/ADO for code management. - -| Planner Status | Squad Board State | -|----------------|-------------------| -| Not Started | `untriaged` | -| In Progress, no PR | `inProgress` | -| In Progress, PR opened | `needsReview` | -| Completed | `done` | - -**Planner→Git workflow:** -1. Task created in Planner bucket -2. Agent reads task from Planner -3. Agent creates branch in GitHub/ADO repo -4. Agent opens PR referencing Planner task ID in description -5. Agent marks task as "Completed" when PR merges - -## Issue → Branch → PR → Merge Lifecycle - -### 1. Issue Assignment (Triage) - -**Trigger:** Ralph detects an untriaged issue or user manually assigns work. - -**Actions:** -1. Read `.squad/routing.md` to determine which agent should handle the issue -2. Apply `squad:{member}` label (GitHub) or tag (ADO) -3. Transition issue to `assigned` state -4. Optionally spawn agent immediately if issue is high-priority - -**Issue read command:** -```bash -# GitHub -gh issue view {number} --json number,title,body,labels,assignees - -# Azure DevOps -az boards work-item show --id {id} --output json -``` - -### 2. Branch Creation (Start Work) - -**Trigger:** Agent accepts issue assignment and begins work. - -**Actions:** -1. Ensure working on latest base branch (usually `main` or `dev`) -2. Create feature branch using Squad naming convention -3. Transition issue to `inProgress` state - -**Branch creation commands:** - -**Standard (single-agent, no parallelism):** -```bash -git checkout main && git pull && git checkout -b squad/{issue-number}-{slug} -``` - -**Worktree (parallel multi-agent):** -```bash -git worktree add ../worktrees/{issue-number} -b squad/{issue-number}-{slug} -cd ../worktrees/{issue-number} -``` - -> **Note:** Worktree support is in progress (#525). Current implementation uses standard checkout. - -### 3. Implementation & Commit - -**Actions:** -1. Agent makes code changes -2. Commits reference the issue number -3. Pushes branch to remote - -**Commit message format:** -``` -{type}({scope}): {description} (#{issue-number}) - -{detailed explanation if needed} - -{breaking change notice if applicable} - -Closes #{issue-number} - -Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> -``` - -**Commit types:** `feat`, `fix`, `docs`, `refactor`, `test`, `chore`, `perf`, `style`, `build`, `ci` - -**Push command:** -```bash -git push -u origin squad/{issue-number}-{slug} -``` - -### 4. PR Creation - -**Trigger:** Agent completes implementation and is ready for review. - -**Actions:** -1. Open PR from feature branch to base branch -2. Reference issue in PR description -3. Apply labels if needed -4. Transition issue to `needsReview` state - -**PR creation commands:** - -**GitHub:** -```bash -gh pr create --title "{title}" \ - --body "Closes #{issue-number}\n\n{description}" \ - --head squad/{issue-number}-{slug} \ - --base main -``` - -**Azure DevOps:** -```bash -az repos pr create --title "{title}" \ - --description "Closes #{work-item-id}\n\n{description}" \ - --source-branch squad/{work-item-id}-{slug} \ - --target-branch main -``` - -**PR description template:** -```markdown -Closes #{issue-number} - -## Summary -{what changed} - -## Changes -- {change 1} -- {change 2} - -## Testing -{how this was tested} - -{If working as a squad member:} -Working as {member} ({role}) - -{If needs human review:} -⚠️ This task was flagged as "needs review" — please have a squad member review before merging. -``` - -### 5. PR Review & Updates - -**Review states:** -- **Approved** → `readyToMerge` -- **Changes requested** → `changesRequested` -- **CI failure** → `ciFailure` - -**When changes are requested:** -1. Agent addresses feedback -2. Commits fixes to the same branch -3. Pushes updates -4. Requests re-review - -**Update workflow:** -```bash -# Make changes -# ⚠️ NEVER use `git add .` or `git add -A` — only stage files you intentionally changed -git add -- {specific files you modified} -git commit -m "fix: address review feedback" -git push -``` - -**Re-request review (GitHub):** -```bash -gh pr ready {pr-number} -``` - -### 6. PR Merge - -**Trigger:** PR is approved and CI passes. - -**Merge strategies:** - -**GitHub (merge commit):** -```bash -gh pr merge {pr-number} --merge --delete-branch -``` - -**GitHub (squash):** -```bash -gh pr merge {pr-number} --squash --delete-branch -``` - -**Azure DevOps:** -```bash -az repos pr update --id {pr-id} --status completed --delete-source-branch true -``` - -**Post-merge actions:** -1. Issue automatically closes (if "Closes #{number}" is in PR description) -2. Feature branch is deleted -3. Squad board state transitions to `done` -4. Worktree cleanup (if worktree was used — #525) - -### 7. Cleanup - -**Standard workflow cleanup:** -```bash -git checkout main -git pull -git branch -d squad/{issue-number}-{slug} -``` - -**Worktree cleanup (future, #525):** -```bash -cd {original-cwd} -git worktree remove ../worktrees/{issue-number} -``` - -## Spawn Prompt Additions for Issue Work - -When spawning an agent to work on an issue, include this context block: - -```markdown -## ISSUE CONTEXT - -**Issue:** #{number} — {title} -**Platform:** {GitHub | Azure DevOps | Planner} -**Repository:** {owner}/{repo} -**Assigned to:** {member} - -**Description:** -{issue body} - -**Labels/Tags:** -{labels} - -**Acceptance Criteria:** -{criteria if present in issue} - -**Branch:** `squad/{issue-number}-{slug}` - -**Your task:** -{specific directive to the agent} - -**After completing work:** -1. Commit with message referencing issue number -2. Push branch -3. Open PR using: - ``` - gh pr create --title "{title}" --body "Closes #{number}\n\n{description}" --head squad/{issue-number}-{slug} --base {base-branch} - ``` -4. Report PR URL to coordinator -``` - -## Ralph's Role in Issue Lifecycle - -Ralph (the work monitor) continuously checks issue and PR state: - -1. **Triage:** Detects untriaged issues, assigns `squad:{member}` labels -2. **Spawn:** Launches agents for assigned issues -3. **Monitor:** Tracks PR state transitions (needsReview → changesRequested → readyToMerge) -4. **Merge:** Automatically merges approved PRs -5. **Cleanup:** Marks issues as done when PRs merge - -**Ralph's work-check cycle:** -``` -Scan → Categorize → Dispatch → Watch → Report → Loop -``` - -See `.squad/templates/ralph-reference.md` for Ralph's full lifecycle. - -## PR Review Handling - -### Automated Approval (CI-only projects) - -If the project has no human reviewers configured: -1. PR opens -2. CI runs -3. If CI passes, Ralph auto-merges -4. Issue closes - -### Human Review Required - -If the project requires human approval: -1. PR opens -2. Human reviewer is notified (GitHub/ADO notifications) -3. Reviewer approves or requests changes -4. If approved + CI passes, Ralph merges -5. If changes requested, agent addresses feedback - -### Squad Member Review - -If the issue was assigned to a squad member and they authored the PR: -1. Another squad member reviews (conflict of interest avoidance) -2. Original author is locked out from re-working rejected code (rejection lockout) -3. Reviewer can approve edits or reject outright - -## Common Issue Lifecycle Patterns - -### Pattern 1: Quick Fix (Single Agent, No Review) -``` -Issue created → Assigned to agent → Branch created → Code fixed → -PR opened → CI passes → Auto-merged → Issue closed -``` - -### Pattern 2: Feature Development (Human Review) -``` -Issue created → Assigned to agent → Branch created → Feature implemented → -PR opened → Human reviews → Changes requested → Agent fixes → -Re-reviewed → Approved → Merged → Issue closed -``` - -### Pattern 3: Research-Then-Implement -``` -Issue created → Labeled `go:needs-research` → Research agent spawned → -Research documented → Research PR merged → Implementation issue created → -Implementation agent spawned → Feature built → PR merged -``` - -### Pattern 4: Parallel Multi-Agent (Future, #525) -``` -Epic issue created → Decomposed into sub-issues → Each sub-issue assigned → -Multiple agents work in parallel worktrees → PRs opened concurrently → -All PRs reviewed → All PRs merged → Epic closed -``` - -## Anti-Patterns - -- ❌ Creating branches without linking to an issue -- ❌ Committing without issue reference in message -- ❌ Opening PRs without "Closes #{number}" in description -- ❌ Merging PRs before CI passes -- ❌ Leaving feature branches undeleted after merge -- ❌ Using `checkout -b` when parallel agents are active (causes working directory conflicts) -- ❌ Manually transitioning issue states — let the platform and Squad automation handle it -- ❌ Skipping the branch naming convention — breaks Ralph's tracking logic - -## Migration Notes - -**v0.8.x → v0.9.x (Worktree Support):** -- `checkout -b` → `git worktree add` for parallel agents -- Worktree cleanup added to post-merge flow -- `TEAM_ROOT` passing to agents to support worktree-aware state resolution - -This template will be updated as worktree lifecycle support lands in #525. diff --git a/.squad/templates/mcp-config.md b/.squad/templates/mcp-config.md deleted file mode 100644 index f38425e4c..000000000 --- a/.squad/templates/mcp-config.md +++ /dev/null @@ -1,88 +0,0 @@ -# MCP Integration — Configuration and Samples - -MCP (Model Context Protocol) servers extend Squad with tools for external services — Trello, Aspire dashboards, Azure, Notion, and more. The user configures MCP servers in their environment; Squad discovers and uses them. - -## Config File Locations - -Users configure MCP servers at these locations (checked in priority order): -1. **Repository-level:** `.copilot/mcp-config.json` (team-shared, committed to repo) -2. **Workspace-level:** `.vscode/mcp.json` (VS Code workspaces) -3. **User-level:** `~/.copilot/mcp-config.json` (personal) -4. **CLI override:** `--additional-mcp-config` flag (session-specific) - -## Sample Config — Trello - -```json -{ - "mcpServers": { - "trello": { - "command": "npx", - "args": ["-y", "@trello/mcp-server"], - "env": { - "TRELLO_API_KEY": "${TRELLO_API_KEY}", - "TRELLO_TOKEN": "${TRELLO_TOKEN}" - } - } - } -} -``` - -## Sample Config — GitHub - -```json -{ - "mcpServers": { - "github": { - "command": "npx", - "args": ["-y", "@modelcontextprotocol/server-github"], - "env": { - "GITHUB_TOKEN": "${GITHUB_TOKEN}" - } - } - } -} -``` - -## Sample Config — Azure - -```json -{ - "mcpServers": { - "azure": { - "command": "npx", - "args": ["-y", "@azure/mcp-server"], - "env": { - "AZURE_SUBSCRIPTION_ID": "${AZURE_SUBSCRIPTION_ID}", - "AZURE_CLIENT_ID": "${AZURE_CLIENT_ID}", - "AZURE_CLIENT_SECRET": "${AZURE_CLIENT_SECRET}", - "AZURE_TENANT_ID": "${AZURE_TENANT_ID}" - } - } - } -} -``` - -## Sample Config — Aspire - -```json -{ - "mcpServers": { - "aspire": { - "command": "npx", - "args": ["-y", "@aspire/mcp-server"], - "env": { - "ASPIRE_DASHBOARD_URL": "${ASPIRE_DASHBOARD_URL}" - } - } - } -} -``` - -## Authentication Notes - -- **GitHub MCP requires a separate token** from the `gh` CLI auth. Generate at https://github.com/settings/tokens -- **Trello requires API key + token** from https://trello.com/power-ups/admin -- **Azure requires service principal credentials** — see Azure docs for setup -- **Aspire uses the dashboard URL** — typically `http://localhost:18888` during local dev - -Auth is a real blocker for some MCP servers. Users need separate tokens for GitHub MCP, Azure MCP, Trello MCP, etc. This is a documentation problem, not a code problem. diff --git a/.squad/templates/multi-agent-format.md b/.squad/templates/multi-agent-format.md deleted file mode 100644 index b655ee942..000000000 --- a/.squad/templates/multi-agent-format.md +++ /dev/null @@ -1,28 +0,0 @@ -# Multi-Agent Artifact Format - -When multiple agents contribute to a final artifact (document, analysis, design), use this format. The assembled result must include: - -- Termination condition -- Constraint budgets (if active) -- Reviewer verdicts (if any) -- Raw agent outputs appendix - -## Assembly Structure - -The assembled result goes at the top. Below it, include: - -``` -## APPENDIX: RAW AGENT OUTPUTS - -### {Name} ({Role}) — Raw Output -{Paste agent's verbatim response here, unedited} - -### {Name} ({Role}) — Raw Output -{Paste agent's verbatim response here, unedited} -``` - -## Appendix Rules - -This appendix is for diagnostic integrity. Do not edit, summarize, or polish the raw outputs. The Coordinator may not rewrite raw agent outputs; it may only paste them verbatim and assemble the final artifact above. - -See `.squad/templates/run-output.md` for the complete output format template. diff --git a/.squad/templates/plugin-marketplace.md b/.squad/templates/plugin-marketplace.md deleted file mode 100644 index 574421f37..000000000 --- a/.squad/templates/plugin-marketplace.md +++ /dev/null @@ -1,48 +0,0 @@ -# Plugin Marketplace - -Plugins are curated agent templates, skills, instructions, and prompts shared by the community via GitHub repositories (e.g., `github/awesome-copilot`, `anthropics/skills`). They provide ready-made expertise for common domains — cloud platforms, frameworks, testing strategies, etc. - -## Marketplace State - -Registered marketplace sources are stored in `.squad/plugins/marketplaces.json`: - -```json -{ - "marketplaces": [ - { - "name": "awesome-copilot", - "source": "github/awesome-copilot", - "added_at": "2026-02-14T00:00:00Z" - } - ] -} -``` - -## CLI Commands - -Users manage marketplaces via the CLI: -- `squad plugin marketplace add {owner/repo}` — Register a GitHub repo as a marketplace source -- `squad plugin marketplace remove {name}` — Remove a registered marketplace -- `squad plugin marketplace list` — List registered marketplaces -- `squad plugin marketplace browse {name}` — List available plugins in a marketplace - -## When to Browse - -During the **Adding Team Members** flow, AFTER allocating a name but BEFORE generating the charter: - -1. Read `.squad/plugins/marketplaces.json`. If the file doesn't exist or `marketplaces` is empty, skip silently. -2. For each registered marketplace, search for plugins whose name or description matches the new member's role or domain keywords. -3. Present matching plugins to the user: *"Found '{plugin-name}' in {marketplace} marketplace — want me to install it as a skill for {CastName}?"* -4. If the user accepts, install the plugin (see below). If they decline or skip, proceed without it. - -## How to Install a Plugin - -1. Read the plugin content from the marketplace repository (the plugin's `SKILL.md` or equivalent). -2. Copy it into the agent's skills directory: `.squad/skills/{plugin-name}/SKILL.md` -3. If the plugin includes charter-level instructions (role boundaries, tool preferences), merge those into the agent's `charter.md`. - -## Graceful Degradation - -- **No marketplaces configured:** Skip the marketplace check entirely. No warning, no prompt. -- **Marketplace unreachable:** Warn the user (*"⚠ Couldn't reach {marketplace} — continuing without it"*) and proceed with team member creation normally. -- **No matching plugins:** Inform the user (*"No matching plugins found in configured marketplaces"*) and proceed. diff --git a/.squad/templates/ralph-reference.md b/.squad/templates/ralph-reference.md deleted file mode 100644 index b1b13d877..000000000 --- a/.squad/templates/ralph-reference.md +++ /dev/null @@ -1,147 +0,0 @@ -# Ralph Reference - -## Ralph — Work Monitor - -Ralph is a built-in squad member whose job is keeping tabs on work. **Ralph is monitor/triage-only:** it scans, categorizes, and reports work so the coordinator can keep the queue moving. Ralph does not implement changes, dispatch agents, approve or merge pull requests, or close issues. - -**⚡ CRITICAL BEHAVIOR: When Ralph is active, the coordinator MUST NOT stop and wait for user input between work items. Ralph runs a continuous monitoring loop — scan for work, report findings to the coordinator, scan again, repeat — until the board is empty or the user explicitly says "idle" or "stop". This is not optional. If work exists, keep coordinating it. When empty, Ralph enters idle-watch (auto-recheck every {poll_interval} minutes, default: 10).** - -**Between checks:** Ralph's in-session loop runs while work exists. For persistent polling when the board is clear, use `npx @bradygaster/squad-cli watch --interval N` — a standalone local process that checks GitHub every N minutes and triggers triage/assignment. See [Watch Mode](#watch-mode-squad-watch). - -**On-demand reference:** Read `.squad/templates/ralph-reference.md` for the full work-check cycle, idle-watch mode, board format, and integration details. - -### Roster Entry - -Ralph always appears in `team.md`: `| Ralph | Work Monitor | — | 🔄 Monitor |` - -### Triggers - -| User says | Action | -|-----------|--------| -| "Ralph, go" / "Ralph, start monitoring" / "keep working" | Activate work-check loop | -| "Ralph, status" / "What's on the board?" / "How's the backlog?" | Run one work-check cycle, report results, don't loop | -| "Ralph, check every N minutes" | Set idle-watch polling interval | -| "Ralph, idle" / "Take a break" / "Stop monitoring" | Fully deactivate (stop loop + idle-watch) | -| "Ralph, scope: just issues" / "Ralph, skip CI" | Adjust what Ralph monitors this session | -| References PR feedback or changes requested | Report it to the coordinator for routing to the PR author agent | -| "merge PR #N" / "merge it" (recent context) | Report the PR status to the coordinator; only a human may merge | - -These are intent signals, not exact strings — match meaning, not words. - -When Ralph is active, run this check cycle after every batch of coordinator-managed agent work completes (or immediately on activation): - -**Step 1 — Scan for work** (run these in parallel): - -```bash -# Untriaged issues (labeled squad but no squad:{member} sub-label) -gh issue list --label "squad" --state open --json number,title,labels,assignees --limit 20 - -# Member-assigned issues (labeled squad:{member}, still open) -gh issue list --state open --json number,title,labels,assignees --limit 20 | # filter for squad:* labels - -# Open PRs from squad members -gh pr list --state open --json number,title,author,labels,isDraft,reviewDecision --limit 20 - -# Draft PRs (agent work in progress) -gh pr list --state open --draft --json number,title,author,labels,checks --limit 20 -``` - -**Step 2 — Categorize findings:** - -| Category | Signal | Action | -|----------|--------|--------| -| **Untriaged issues** | `squad` label, no `squad:{member}` label | Report to the coordinator for triage and assignment | -| **Assigned but unstarted** | `squad:{member}` label, no assignee or no PR | Report to the coordinator for agent dispatch | -| **Draft PRs** | PR in draft from squad member | Report status; the coordinator decides whether the agent should continue | -| **Review feedback** | PR has `CHANGES_REQUESTED` review | Report feedback to the coordinator for routing to the PR author agent | -| **CI failures** | PR checks failing | Report to the coordinator to route a fix or create a fix issue | -| **Approved PRs** | PR approved, CI green, ready for pre-merge review | Report readiness to the coordinator for verification and hand-off to a human; Ralph does not merge or close issues | -| **No work found** | All clear | Report: "📋 Board is clear. Ralph is idling." Suggest `npx @bradygaster/squad-cli watch` for persistent polling. | - -### Authority boundaries - -- **Ralph is monitor/triage-only.** It detects, categorizes, and reports work; it does not dispatch agents, approve or merge pull requests, or close issues. -- **The coordinator owns pre-merge readiness and hand-off.** The coordinator verifies repository requirements, reviews, checks, and feedback, then presents a ready pull request to a human. The coordinator does not merge. -- **Only a human may merge pull requests.** After a human merge, the coordinator follows repository issue-closing policy; Ralph only reports status and never closes the issue. - -**Step 3 — Report and continue monitoring:** -- Report one category at a time, highest priority first (untriaged > assigned > CI failures > review feedback > approved PRs) -- The coordinator triages, assigns, dispatches agents, and coordinates follow-up work; Ralph reports what it detects. -- **⚡ CRITICAL: After the coordinator collects results, DO NOT stop. DO NOT wait for user input. IMMEDIATELY go back to Step 1 and scan again.** This is a loop — Ralph keeps monitoring until the board is clear or the user says "idle". Each cycle is one "round". -- If multiple items exist in the same category, report them together so the coordinator can process them in parallel. - -**Step 4 — Periodic check-in** (every 3-5 rounds): - -After every 3-5 rounds, pause and report before continuing: - -``` -🔄 Ralph: Round {N} complete. - ✅ {X} follow-ups reported, {Y} PRs handed off for human review - 📋 {Z} items remaining: {brief list} - Continuing... (say "Ralph, idle" to stop) -``` - -**Do NOT ask for permission to continue.** Just report and keep going. The user must explicitly say "idle" or "stop" to break the loop. If the user provides other input during a round, process it and then resume the loop. - -### Watch Mode (`squad watch`) - -Ralph's in-session loop processes work while it exists, then idles. For **persistent polling** between sessions or when you're away from the keyboard, use the `squad watch` CLI command: - -```bash -npx @bradygaster/squad-cli watch # polls every 10 minutes (default) -npx @bradygaster/squad-cli watch --interval 5 # polls every 5 minutes -npx @bradygaster/squad-cli watch --interval 30 # polls every 30 minutes -``` - -This runs as a standalone local process (not inside Copilot) that: -- Checks GitHub every N minutes for untriaged squad work -- Auto-triages issues based on team roles and keywords -- Assigns @copilot to `squad:copilot` issues (if auto-assign is enabled) -- Runs until Ctrl+C - -**Three layers of Ralph:** - -| Layer | When | How | -|-------|------|-----| -| **In-session** | You're at the keyboard | "Ralph, go" — active loop while work exists | -| **Local watchdog** | You're away but machine is on | `npx @bradygaster/squad-cli watch --interval 10` | -| **Cloud heartbeat** | Fully unattended | `squad-heartbeat.yml` — event-based only (cron disabled) | - -### Ralph State - -Ralph's state is session-scoped (not persisted to disk): -- **Active/idle** — whether the loop is running -- **Round count** — how many check cycles completed -- **Scope** — what categories to monitor (default: all) -- **Stats** — findings reported and items handed off this session - -### Ralph on the Board - -When Ralph reports status, use this format: - -``` -🔄 Ralph — Work Monitor -━━━━━━━━━━━━━━━━━━━━━━ -📊 Board Status: - 🔴 Untriaged: 2 issues need triage - 🟡 In Progress: 3 issues assigned, 1 draft PR - 🟢 Ready: 1 PR approved, awaiting merge - ✅ Reported: 5 findings reported this session - -Next action: Coordinator triages #42 — "Fix auth endpoint timeout" -``` - -### Integration with Follow-Up Work - -After the coordinator's step 6 ("Immediately assess: Does anything trigger follow-up work?"), if Ralph is active, the coordinator MUST automatically run Ralph's monitoring cycle. **Do NOT return control to the user.** This creates a continuous pipeline: - -1. User activates Ralph → work-check cycle runs -2. Ralph reports findings → coordinator triages and coordinates work -3. Coordinator-managed agents work → results collected and follow-up assessed -4. Ralph scans GitHub again (Step 1) → IMMEDIATELY, no pause -5. More work found → coordinator acts on it; Ralph continues monitoring -6. No more work → "📋 Board is clear. Ralph is idling." (suggest `npx @bradygaster/squad-cli watch` for persistent polling) - -**Ralph does NOT ask "should I continue?" — Ralph KEEPS MONITORING.** Only stops on explicit "idle"/"stop" or session end. A clear board → idle-watch, not full stop. For persistent monitoring after the board clears, use `npx @bradygaster/squad-cli watch`. - -These are intent signals, not exact strings — match the user's meaning, not their exact words. diff --git a/.squad/templates/raw-agent-output.md b/.squad/templates/raw-agent-output.md deleted file mode 100644 index fa0068243..000000000 --- a/.squad/templates/raw-agent-output.md +++ /dev/null @@ -1,37 +0,0 @@ -# Raw Agent Output — Appendix Format - -> This template defines the format for the `## APPENDIX: RAW AGENT OUTPUTS` section -> in any multi-agent artifact. - -## Rules - -1. **Verbatim only.** Paste the agent's response exactly as returned. No edits. -2. **No summarizing.** Do not condense, paraphrase, or rephrase any part of the output. -3. **No rewriting.** Do not fix typos, grammar, formatting, or style. -4. **No code fences around the entire output.** The raw output is pasted as-is, not wrapped in ``` blocks. -5. **One section per agent.** Each agent that contributed gets its own heading. -6. **Order matches work order.** List agents in the order they were spawned. -7. **Include all outputs.** Even if an agent's work was rejected, include their output for diagnostic traceability. - -## Format - -```markdown -## APPENDIX: RAW AGENT OUTPUTS - -### {Name} ({Role}) — Raw Output - -{Paste agent's verbatim response here, unedited} - -### {Name} ({Role}) — Raw Output - -{Paste agent's verbatim response here, unedited} -``` - -## Why This Exists - -The appendix provides diagnostic integrity. It lets anyone verify: -- What each agent actually said (vs. what the Coordinator assembled) -- Whether the Coordinator faithfully represented agent work -- What was lost or changed in synthesis - -Without raw outputs, multi-agent collaboration is unauditable. diff --git a/.squad/templates/roster.md b/.squad/templates/roster.md deleted file mode 100644 index 10933d565..000000000 --- a/.squad/templates/roster.md +++ /dev/null @@ -1,73 +0,0 @@ -# Team Roster - -> {One-line project description} - -## Coordinator - -| Name | Role | Notes | -|------|------|-------| -| Squad | Coordinator | Routes work, enforces handoffs and reviewer gates. Does not generate domain artifacts. | - -## Members - -| Name | Role | Charter | Status | -|------|------|---------|--------| -| {Name} | {Role} | `.squad/agents/{name}/charter.md` | ✅ Active | -| {Name} | {Role} | `.squad/agents/{name}/charter.md` | ✅ Active | -| {Name} | {Role} | `.squad/agents/{name}/charter.md` | ✅ Active | -| {Name} | {Role} | `.squad/agents/{name}/charter.md` | ✅ Active | - -## Built-in Support Agents - -| Name | Role | Charter | Status | -|------|------|---------|--------| -| Scribe | Durable Decision Merger | `.squad/agents/scribe/charter.md` | 📋 Silent | -| Ralph | Work Monitor | `.squad/agents/ralph/charter.md` | 🔄 Monitor | -| Rai | RAI Reviewer | `.squad/agents/rai/charter.md` | 🛡️ RAI | -| Fact Checker | Verification Agent | `.squad/agents/fact-checker/charter.md` | 🔍 Verifier | - -## Coding Agent - - - -| Name | Role | Charter | Status | -|------|------|---------|--------| -| @copilot | Coding Agent | — | 🤖 Coding Agent | - -### Capabilities - -**🟢 Good fit — auto-route when enabled:** -- Bug fixes with clear reproduction steps -- Test coverage (adding missing tests, fixing flaky tests) -- Lint/format fixes and code style cleanup -- Dependency updates and version bumps -- Small isolated features with clear specs -- Boilerplate/scaffolding generation -- Documentation fixes and README updates - -**🟡 Needs review — route to @copilot but flag for squad member PR review:** -- Medium features with clear specs and acceptance criteria -- Refactoring with existing test coverage -- API endpoint additions following established patterns -- Migration scripts with well-defined schemas - -**🔴 Not suitable — route to squad member instead:** -- Architecture decisions and system design -- Multi-system integration requiring coordination -- Ambiguous requirements needing clarification -- Security-critical changes (auth, encryption, access control) -- Performance-critical paths requiring benchmarking -- Changes requiring cross-team discussion - -## Project Context - -- **Owner:** {user name} -- **Stack:** {languages, frameworks, tools} -- **Description:** {what the project does, in one sentence} -- **Created:** {timestamp} - -## Operating Contract - -- Team ownership, review selection, revision, and escalation follow `.squad/governance.md`. -- Repository-wide merge requirements remain in `.github/PR_REQUIREMENTS.md`. -- Specialist onboarding remains deferred until explicitly authorized and follows `.squad/onboarding.md`. diff --git a/.squad/templates/routing.md b/.squad/templates/routing.md deleted file mode 100644 index 9bfb1a5eb..000000000 --- a/.squad/templates/routing.md +++ /dev/null @@ -1,36 +0,0 @@ -# Work Routing - -How to decide who handles what. - -## Routing Table - -| Work Type | Route To | Examples | -|-----------|----------|----------| - -Preset installation adds concrete routes for the configured team. Add or edit rows -here only when their agent names also exist in the casting registry. - -## Issue Routing - -| Label | Action | Who | -|-------|--------|-----| -| `squad` | Triage: analyze issue, assign `squad:{member}` label | Lead | -| `squad:{name}` | Pick up issue and complete the work | Named member | - -### How Issue Assignment Works - -1. When a GitHub issue gets the `squad` label, the **Lead** triages it — analyzing content, assigning the right `squad:{member}` label, and commenting with triage notes. -2. When a `squad:{member}` label is applied, that member picks up the issue in their next session. -3. Members can reassign by removing their label and adding another member's label. -4. The `squad` label is the "inbox" — untriaged issues waiting for Lead review. - -## Rules - -1. **One accountable owner** — select exactly one primary specialist for each work item. -2. **Bounded collaboration** — request input only from specialists whose domain is materially needed. -3. **Quick facts → coordinator answers directly.** Don't spawn an agent for "what port does the server run on?" -4. **When two agents could handle it**, pick the one whose domain is the primary deliverable. -5. **Split only independent deliverables.** Do not fan out multiple owners over the same artifact. -6. **Scribe is decision-only.** Spawn Scribe only when accepted durable decisions require merging. -7. **Issue-labeled work** — when a `squad:{member}` label is applied to an issue, route to that member. The Lead handles all `squad` (base label) triage. -8. **Review and escalation** — follow `.squad/governance.md`. diff --git a/.squad/templates/run-output.md b/.squad/templates/run-output.md deleted file mode 100644 index 8a9efbcdc..000000000 --- a/.squad/templates/run-output.md +++ /dev/null @@ -1,50 +0,0 @@ -# Run Output — {task title} - -> Final assembled artifact from a multi-agent run. - -## Termination Condition - -**Reason:** {One of: User accepted | Reviewer approved | Constraint budget exhausted | Deadlock — escalated to user | User cancelled} - -## Constraint Budgets - - - -| Constraint | Used | Max | Status | -|------------|------|-----|--------| -| Clarifying questions | 📊 {n} | {max} | {Active / Exhausted} | -| Revision cycles | 📊 {n} | {max} | {Active / Exhausted} | - -## Result - -{Assembled final artifact goes here. This is the Coordinator's synthesis of agent outputs.} - ---- - -## Reviewer Verdict - - - -### Review by {Name} ({Role}) - -| Field | Value | -|-------|-------| -| **Verdict** | {Approved / Rejected} | -| **What's wrong** | {Specific issue — not vague} | -| **Why it matters** | {Impact if not fixed} | -| **Who fixes it** | {Name of agent assigned to revise — MUST NOT be the original author} | -| **Revision budget** | 📊 {used} / {max} revision cycles remaining | - ---- - -## APPENDIX: RAW AGENT OUTPUTS - - - -### {Name} ({Role}) — Raw Output - -{Paste agent's verbatim response here, unedited} - -### {Name} ({Role}) — Raw Output - -{Paste agent's verbatim response here, unedited} diff --git a/.squad/templates/scribe-charter.md b/.squad/templates/scribe-charter.md deleted file mode 100644 index 6fad055e1..000000000 --- a/.squad/templates/scribe-charter.md +++ /dev/null @@ -1,45 +0,0 @@ -# Scribe - -> The team's durable decision curator. Silent and narrowly scoped. - -## Identity - -- **Name:** Scribe -- **Role:** Decision Merger -- **Style:** Silent. Never speaks to the user. -- **Mode:** Spawned only when accepted durable decisions require merging. - -## What I Own - -- `.squad/decisions.md` — the canonical durable decision record -- `.squad/decisions/inbox/` — the decision drop-box - -Scribe does not create specialist histories, orchestration logs, session logs, proposals, triage -records, communications records, hooks, E2E records, or onboarding output. - -## How I Work - -**Worktree awareness:** Use the `TEAM ROOT` supplied in the spawn prompt for all `.squad/` paths. - -**State backend awareness:** Use runtime state tools for non-local backends. Never switch state -branches, push note refs, reset `.squad/`, or commit mutable state manually. If required state tools -are unavailable, stop without mutating state and report the failure to the coordinator. - -When accepted durable decisions exist: - -1. List and read `decisions/inbox/` through the configured state backend. -2. Merge only accepted, current decisions into `decisions.md`; do not manufacture session records. -3. Demote inbox headings so the shallowest body heading lands at `####`, preserving relative - hierarchy and fenced code blocks. -4. Deduplicate exact duplicate decision headings without rewriting unrelated decisions. -5. Re-read `decisions.md` and confirm each merged entry is present before deleting its inbox source. -6. Run the state health check when available and report the merge result to the coordinator. - -## Boundaries - -**I handle:** Durable decision merging and deduplication. - -**I don't handle:** Session logging, orchestration logging, specialist history, review, implementation, -or decision-making. - -**I am invisible.** If a user notices me, something went wrong. diff --git a/.squad/templates/skill.md b/.squad/templates/skill.md deleted file mode 100644 index c747db9d8..000000000 --- a/.squad/templates/skill.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -name: "{skill-name}" -description: "{what this skill teaches agents}" -domain: "{e.g., testing, api-design, error-handling}" -confidence: "low|medium|high" -source: "{how this was learned: manual, observed, earned}" -tools: - # Optional — declare MCP tools relevant to this skill's patterns - # - name: "{tool-name}" - # description: "{what this tool does}" - # when: "{when to use this tool}" ---- - -## Context -{When and why this skill applies} - -## Patterns -{Specific patterns, conventions, or approaches} - -## Examples -{Code examples or references} - -## Anti-Patterns -{What to avoid} diff --git a/docs/proposals/contributor-guide-improvements.md b/docs/proposals/contributor-guide-improvements.md deleted file mode 100644 index 53d756d47..000000000 --- a/docs/proposals/contributor-guide-improvements.md +++ /dev/null @@ -1,242 +0,0 @@ -# Proposal: Contributor Guide Improvements - -> **Author:** Flight (Lead) -> **Date:** 2025-07-24 -> **Status:** Draft — awaiting team review -> **Goal:** External contributors can be successful with issues and PRs without requiring repeated guidance from Brady and Tamir. - ---- - -## Executive Summary - -Squad has strong internal process documentation (CONTRIBUTING.md, PR_REQUIREMENTS.md, PR template) but significant gaps for **external contributors** — people who discover the project, want to help, and need to find their footing without hand-holding. This proposal identifies 8 gaps and recommends 7 concrete deliverables, prioritized by impact on maintainer time savings. - ---- - -## 1. Current State Audit - -### What Exists Today (dev branch) - -| File | Status | Quality | -|------|--------|---------| -| `CONTRIBUTING.md` | ✅ Exists | **Strong** — 300 lines covering setup, build, test, branch strategy, changesets, code style, common tasks. Well-structured. | -| `CONTRIBUTORS.md` | ✅ Exists | **Good** — lists AI team, community contributors, Insider Program. Good recognition. | -| `.github/PULL_REQUEST_TEMPLATE.md` | ✅ Exists | **Strong** — What/Why/How/Testing/Docs/Exports/Breaking/Waivers sections with checkboxes. | -| `.github/PR_REQUIREMENTS.md` | ✅ Exists | **Excellent** — 240 lines, canonical spec for PR requirements by category (a–f), waivers, exceptions. | -| `SECURITY.md` | ✅ Exists | **Adequate** — directs to GitHub Private Vulnerability Reporting. Minor typo ("manor" → "manner"). | -| `.github/copilot-instructions.md` | ✅ Exists | **Strong** — git safety rules, team context, capability self-check for Copilot coding agent. | -| `README.md` | ✅ Exists | **Good** — quick start, install, usage. Points to CONTRIBUTING.md. | -| `docs/proposals/` | ✅ Exists | 7 existing proposals. Healthy proposal-first culture. | - -### What's Missing - -| Gap | Impact | Who Suffers | -|-----|--------|-------------| -| **No issue templates** (`.github/ISSUE_TEMPLATE/`) | Contributors file unstructured issues; maintainers spend time asking for reproduction steps, versions, environment | Brady, Tamir, triagers | -| **No CODE_OF_CONDUCT.md** | Standard OSS expectation missing. Some contributors may hesitate without one. GitHub community profile incomplete | Community trust | -| **No "good first issue" issues** | Label exists (`good first issue`) but **zero issues** currently tagged. New contributors have no on-ramp | New contributors | -| **No `.squad/` explainer in contributor docs** | External contributors don't know what `.squad/` is, why it exists, or that they should never modify it in PRs | External contributors who include `.squad/` changes | -| **Branch strategy buried** | Branch info is in CONTRIBUTING.md §Branch Strategy but easy to miss. PR #633 (external) was opened against wrong base — empty body, zero comments, closed | External contributors | -| **No contributor FAQ / troubleshooting** | Common stumbling blocks (changeset prompts, fork sync, CI failures) require maintainer intervention | All external contributors | -| **PR #639 pattern** | External contributor submitted quality work but it targeted a feature being removed (#665). No way for contributors to know what's "safe to work on" | Contributors who pick up work | -| **`status:contributor-invited` label underused** | 8 issues tagged historically, only 2 currently open. No documented workflow for how contributors claim these | Contributors looking for work | - -### Friction Patterns from Community PRs - -Only **4 external PRs** in the last 100 (out of 100 total) — very low external contribution rate: - -| PR | Contributor | Outcome | Friction | -|----|------------|---------|----------| -| #608 | @eric-vanartsdalen | ✅ Merged | Clean — security policy revision | -| #592 | @joniba | ✅ Merged | Clean — hiring wiring guide, high-quality | -| #639 | @gaburn | ❌ Closed | Worked on REPL feature being removed (#665). No way to know. Brady redirected kindly but work was wasted. | -| #633 | @JerrettDavis | ❌ Closed | Empty PR body, no description, opened against `dev` — likely a test PR or confusion about process | - -**Key insight:** The successful external PRs (#608, #592) came from contributors who already had context. The failed ones (#639, #633) show the "cold start" problem — new contributors lack the context to pick good work and submit correctly. - ---- - -## 2. Proposed Changes - -### P1 — High Impact, Low Effort (do first) - -#### 2a. GitHub Issue Templates (`.github/ISSUE_TEMPLATE/`) - -**What:** Create 4 structured issue templates: -- `bug_report.yml` — version, environment, reproduction steps, expected vs actual behavior -- `feature_request.yml` — problem statement, proposed solution, alternatives considered -- `documentation.yml` — what's missing or wrong, where, suggested improvement -- `config.yml` — blank issue escape hatch + links to Discussions for questions - -**Who it helps:** Brady and Tamir (fewer clarification round-trips), triagers (structured data), reporters (guided through what to include). - -**Effort:** ~2 hours. YAML form-based templates (GitHub native). - -**Details:** -- Use YAML form format (not markdown) for required fields — GitHub enforces completion -- Bug template: require version (`squad version` output), Node version, OS, reproduction steps -- Feature template: require problem statement before solution (prevents "just add X" issues) -- Add `type:bug`, `type:feature`, `type:docs` auto-labels per template - ---- - -#### 2b. "Good First Issue" Curation Sprint - -**What:** Audit open issues and tag 5–10 with `good first issue`. Create a documented workflow for maintaining the label. - -**Who it helps:** New contributors looking for an on-ramp. Reduces "where do I start?" questions. - -**Effort:** ~1 hour to tag + 30 min to document the curation workflow. - -**Details:** -- Candidates: documentation gaps, typo fixes, test additions, small CLI improvements -- Each `good first issue` should include a "Getting Started" comment with: - - Which files to look at - - What the acceptance criteria are - - Which squad member to tag for questions -- Document the curation workflow in CONTRIBUTING.md: who tags, when, criteria - ---- - -#### 2c. `.squad/` Directory Explainer Section in CONTRIBUTING.md - -**What:** Add a clear section explaining what `.squad/` is, why it exists in the repo, and that **external contributors should never modify `.squad/` files in their PRs**. - -**Who it helps:** Every external contributor. Prevents accidental `.squad/` changes in PRs. - -**Effort:** ~30 minutes. - -**Proposed content:** -```markdown -## The .squad/ Directory - -The `.squad/` directory contains Squad's AI team state — agent charters, decision history, -routing rules, and accumulated learnings. It is managed exclusively by the Squad team. - -**For external contributors:** -- ❌ Do NOT modify any files in `.squad/` in your PRs -- ❌ Do NOT include `.squad/` changes in your commits -- ✅ You can READ `.squad/decisions.md` to understand team conventions -- ✅ You can READ agent charters to understand domain ownership - -If your PR includes `.squad/` changes, you'll be asked to remove them before review. -``` - ---- - -### P2 — Medium Impact, Medium Effort - -#### 2d. CODE_OF_CONDUCT.md - -**What:** Adopt the Contributor Covenant (v2.1), the standard for OSS projects. Customized with Squad-specific enforcement contacts. - -**Who it helps:** Community trust. GitHub community profile completion. Sets behavioral expectations. - -**Effort:** ~30 minutes (adopt standard, customize contact info). - -**Details:** -- Use Contributor Covenant v2.1 (industry standard, used by Node.js, Rails, etc.) -- Enforcement: Brady as primary contact -- Link from CONTRIBUTING.md and README.md - ---- - -#### 2e. Contributor FAQ / Troubleshooting Section - -**What:** Add a "Common Issues" section to CONTRIBUTING.md covering the questions maintainers answer repeatedly. - -**Who it helps:** All external contributors. Direct time savings for Brady and Tamir. - -**Effort:** ~1 hour. - -**Proposed topics:** -- "My PR CI is failing" — how to read CI output, common causes (missing changeset, build errors, lint failures) -- "Which branch do I target?" — always `dev`, never `main`. With a bold callout box. -- "Do I need a changeset?" — yes, always. How `npx changeset add` works. What to pick for patch/minor/major. -- "How do I know what's safe to work on?" — look for `good first issue`, `status:contributor-invited`, `help wanted` labels. Avoid issues with `squad:*` labels (team-internal). Check the issue isn't already assigned. -- "My fork is out of date" — step-by-step rebase instructions (already in CONTRIBUTING.md, but worth a FAQ entry pointing to it) -- "What's the `.squad/` directory?" — link to the explainer section - ---- - -#### 2f. "Contributing" Section Enhancement in README.md - -**What:** Expand the README's contributor section beyond just linking to CONTRIBUTING.md. Add a quick "Ways to Contribute" section. - -**Who it helps:** Discovery — README is the first file most people read. - -**Effort:** ~30 minutes. - -**Proposed content:** -```markdown -## Contributing - -We welcome contributions! Here's how to get involved: - -- 🐛 **Report bugs** — [Open an issue](link) using the bug report template -- 💡 **Suggest features** — [Open an issue](link) using the feature request template -- 🔧 **Fix something** — Look for [`good first issue`](link) or [`help wanted`](link) labels -- 📖 **Improve docs** — Typos, clarity, missing examples — all welcome - -**Before you start coding**, read [CONTRIBUTING.md](CONTRIBUTING.md) for setup, branch strategy, and PR requirements. - -All PRs target the `dev` branch. See [Branch Strategy](CONTRIBUTING.md#branch-strategy) for details. -``` - ---- - -### P3 — Nice to Have - -#### 2g. SECURITY.md Typo Fix - -**What:** Fix "manor" → "manner" (line 19). Minor but noticed during audit. - -**Who it helps:** Professional appearance. - -**Effort:** 30 seconds. - ---- - -## 3. Priority Order - -| Priority | Deliverable | Effort | Maintainer Time Saved | Ship With | -|----------|-------------|--------|----------------------|-----------| -| **P1** | Issue templates (2a) | 2 hrs | High — structured reports reduce back-and-forth | This PR or immediate follow-up | -| **P1** | Good first issue curation (2b) | 1.5 hrs | High — gives contributors a clear on-ramp | Separate task (requires issue audit) | -| **P1** | `.squad/` explainer (2c) | 30 min | Medium — prevents common PR mistake | This PR or immediate follow-up | -| **P2** | CODE_OF_CONDUCT.md (2d) | 30 min | Low direct, high trust signal | This PR or immediate follow-up | -| **P2** | Contributor FAQ (2e) | 1 hr | High — answers repeated questions | This PR or immediate follow-up | -| **P2** | README contributing section (2f) | 30 min | Medium — improves discovery | This PR or immediate follow-up | -| **P3** | SECURITY.md typo (2g) | 30 sec | None | Any PR | - -**Recommended execution:** Items 2a + 2c + 2e + 2f + 2g can be shipped in a single PR (estimated 4 hours total). Item 2b (good first issue curation) is a separate task requiring issue-by-issue audit. Item 2d (CODE_OF_CONDUCT) can ship standalone. - ---- - -## 4. Success Criteria - -After these changes ship: - -1. **A new contributor can go from "I found this repo" to "my PR is ready for review" using only the docs** — no DMs, no repeated questions to Brady/Tamir. -2. **Every bug report includes version, OS, and reproduction steps** — enforced by issue template required fields. -3. **Contributors know what to work on** — `good first issue` and `status:contributor-invited` labels are actively maintained with 5+ open issues at all times. -4. **No PRs include `.squad/` changes** — explainer section makes the boundary clear. -5. **Brady and Tamir can respond to contributor questions with links** — "See [FAQ: Which branch do I target?](CONTRIBUTING.md#faq)" instead of writing the answer each time. - ---- - -## 5. What This Does NOT Cover - -- **Automated PR checks for `.squad/` changes** — that's a CI gate (separate issue) -- **Contributor license agreement (CLA)** — Squad uses MIT, no CLA needed currently -- **Discord/Slack community** — out of scope, GitHub Discussions is the channel -- **Docs site contributor guide** — the Astro docs site (`docs/`) has its own needs; this proposal focuses on repo-level contributor docs - ---- - -## 6. Open Questions for Team - -1. **Who should be the CODE_OF_CONDUCT enforcement contact?** Brady as repo owner is the default, but should we list a backup? -2. **Should we add a `.github/FUNDING.yml`?** Not strictly contributor guidance but often expected in OSS. -3. **Should `status:contributor-invited` be renamed to `help wanted`?** GitHub surfaces `help wanted` specially in search and explore. We have both labels — should we consolidate? -4. **PR #639 pattern prevention:** Should we add a "Do Not Contribute" label or a "being removed" label for features that are being deprecated? This would prevent contributors from wasting effort on doomed features. diff --git a/docs/proposals/error-recovery.md b/docs/proposals/error-recovery.md deleted file mode 100644 index 9661c6ea5..000000000 --- a/docs/proposals/error-recovery.md +++ /dev/null @@ -1,69 +0,0 @@ -# Proposal: Error Recovery Skill - -**Issue:** bradygaster/squad#623 -**Author:** tamirdresher -**Date:** 2026-03-26 -**Status:** Proposal - ---- - -## Problem Statement - -When a Squad agent fails (model timeout, tool error, invalid output, context overflow), there is -no standardized recovery pattern. Individual coordinators implement ad-hoc retry logic or simply -fail the task. This causes inconsistent user experience and missed opportunities for graceful -degradation across the squad. - ---- - -## Proposed Approach - -A skill library providing five recovery patterns an agent can apply when it encounters a failure: - -| Pattern | When to use | -|---------|-------------| -| **retry** | Transient errors (rate limit, timeout) — wait and retry same approach | -| **fallback** | Primary approach consistently fails — switch to alternative method | -| **diagnose** | Unclear failure cause — gather diagnostics before deciding | -| **escalate** | Blocked beyond agent capability — surface to coordinator/human | -| **degrade** | Full functionality unavailable — deliver partial result with caveat | - -The skill provides a selection guide table mapping error symptoms to the appropriate pattern, -plus prompt templates for each pattern that agents can use in their reasoning. - ---- - -## Fit with Existing Architecture - -- **Complements** existing gent-conduct skill (which covers behavior) — this skill covers failure states -- **No code changes** — template-only, agents apply this via their prompt reasoning -- **Coordinator-agnostic** — works with any existing coordinator style -- **Consistent with** the 3-cycle protocol from iterative-retrieval skill - ---- - -## What Changes - -- New skill: packages/squad-cli/templates/skills/error-recovery/SKILL.md -- New skill: packages/squad-sdk/templates/skills/error-recovery/SKILL.md -- New changeset: .changeset/error-recovery-skill.md - -## What Stays the Same - -- No existing skills modified -- No CLI or SDK runtime code changed - ---- - -## Risks and Mitigations - -| Risk | Likelihood | Impact | Mitigation | -|------|-----------|--------|------------| -| Agents over-apply retry (masking root causes) | Low | Medium | Skill explicitly limits retry to 3 attempts max | -| Conflicts with future built-in error handling | Low | Low | Template-only — superseded naturally if runtime handles it | - ---- - -## References - -- Issue: bradygaster/squad#623 diff --git a/docs/proposals/iterative-retrieval.md b/docs/proposals/iterative-retrieval.md deleted file mode 100644 index 705ba669b..000000000 --- a/docs/proposals/iterative-retrieval.md +++ /dev/null @@ -1,69 +0,0 @@ -# Proposal: Iterative Retrieval Skill - -**Issue:** bradygaster/squad#622 -**Author:** tamirdresher -**Date:** 2026-03-26 -**Status:** Proposal - ---- - -## Problem Statement - -Agents that spawn sub-agents or issue retrieval operations have no standardized protocol for -how many cycles are acceptable before escalating. This leads to: -- Unbounded loops when agents keep spawning without convergence -- Missed escalations when 1 cycle is insufficient but the agent gives up -- Inconsistent behavior across coordinators - ---- - -## Proposed Approach - -A structured 3-cycle protocol for iterative information retrieval with mandatory checkpoints: - -**Cycle 1:** Broad scan — identify the domain, key files, and initial findings -**Cycle 2:** Targeted retrieval — follow up on specific gaps identified in Cycle 1 -**Cycle 3 (max):** Final fill — address remaining gaps only. If still incomplete, escalate - -The skill provides: -- Spawn prompt templates for each cycle (what to include, what to stop) -- A coordinator validation checklist (did previous cycle produce actionable output?) -- Issue deduplication logic (don't spawn for issues already in progress) -- Good/bad example spawn prompts to calibrate agent behavior - ---- - -## Fit with Existing Architecture - -- **Complements** error-recovery skill (escalate pattern is the fallback at cycle 3) -- **No code changes** — template-only skill -- **Coordinator-agnostic** — works with any existing Ralph or custom coordinator -- **Consistent with** the 3-round Ralph pattern already used in production - ---- - -## What Changes - -- New skill: packages/squad-cli/templates/skills/iterative-retrieval/SKILL.md -- New skill: packages/squad-sdk/templates/skills/iterative-retrieval/SKILL.md -- New changeset: .changeset/iterative-retrieval-skill.md - -## What Stays the Same - -- No existing skills modified -- No CLI or SDK runtime code changed - ---- - -## Risks and Mitigations - -| Risk | Likelihood | Impact | Mitigation | -|------|-----------|--------|------------| -| 3-cycle limit is too restrictive for complex tasks | Low | Medium | Skill explicitly allows coordinator to extend with justification | -| Conflicts with future built-in spawn limiting | Low | Low | Template-only — naturally superseded | - ---- - -## References - -- Issue: bradygaster/squad#622 diff --git a/docs/proposals/memory-governance-provider.md b/docs/proposals/memory-governance-provider.md deleted file mode 100644 index 8089703cc..000000000 --- a/docs/proposals/memory-governance-provider.md +++ /dev/null @@ -1,391 +0,0 @@ -# Proposal: Memory Governance Provider - -**Issue:** bradygaster/squad#600 -**Author:** tamirdresher -**Date:** 2026-05-18 -**Status:** Design - ---- - -## Problem Statement - -Squad currently treats memory as files under `.squad/` loaded through state and storage -helpers. That is the right default for local worktrees, but it blurs three different -concerns: - -1. Persisting bytes somewhere. -2. Deciding which memories are safe and useful to keep. -3. Retrieving the right memory for a task. - -As provider work expands, especially around Copilot Memory and external memory systems, -Squad needs a higher-level memory governance layer without turning `StorageProvider` into -a semantic database, policy engine, or agent behavior system. - ---- - -## Design Principles - -### StorageProvider stays dumb - -`StorageProvider` remains the low-level persistence abstraction. It should read, write, -list, and delete file/blob-like content. It should not: - -- classify memories -- decide retention policy -- understand semantic similarity -- call LLMs -- enforce durable-memory safety rules -- know whether content is a decision, directive, policy, or transient note - -This keeps the existing storage abstraction portable across local disk, worktree state, -remote blobs, and future plugin-backed state backends. - -### Memory governance sits above state and storage - -A new `MemoryGovernanceProvider` / `MemoryStore` should sit above `SquadState` and -`StorageProvider`. - -```text -Agents / CLI / MCP tools - | - v -MemoryStore / MemoryGovernanceProvider - | - +--> classification, policy, routing, retrieval, promotion - | - v -SquadState - | - v -StorageProvider -``` - -`SquadState` remains the structured state surface for `.squad/` data. The governance -provider decides what should become memory, where it belongs, and whether it is allowed -to become durable. - ---- - -## Memory Classes - -Every proposed memory write should be classified before persistence. - -| Class | Meaning | Default destination | -|-------|---------|---------------------| -| `TRANSIENT` | Short-lived task state, CI/PR status, scratch observations, temporary blockers | Do not persist as durable memory | -| `LOCAL` | Repo-specific context useful in this worktree, such as conventions, file locations, and implementation notes | `.squad/agents/{name}/history.md` or local inbox | -| `DECISION` | User-approved or team-relevant decision that should guide future work | `.squad/decisions/inbox/` then `decisions.md` | -| `POLICY` | Durable directive, security rule, workflow rule, or governance constraint | `.squad/decisions.md` / policy section | -| `COPILOT_MEMORY` | Safe, durable semantic memory intended for Copilot Memory or another semantic provider | Optional external semantic memory provider | -| `FORBIDDEN` | Secrets, PII, topology, raw logs, credentials, or other disallowed data | Reject and do not persist | - -Classification should prefer safety over recall. If content is ambiguous, keep it local -or transient rather than writing to durable semantic memory. - ---- - -## Provider Roles - -### Worktree/local memory remains the default - -For `squad init` and Copilot custom agents, local worktree memory remains the default: - -- `.squad/decisions.md` -- `.squad/decisions/inbox/` -- `.squad/agents/{name}/history.md` -- `.copilot/skills/{name}/SKILL.md` - -This keeps Squad usable offline, reviewable in Git, and compatible with existing teams. -It also preserves the current prompt-only behavior for Copilot custom agents: when no -tool bridge is available, agents write `.squad/` files directly. - -`StorageProvider` participates when Squad is running through SDK or runtime abstractions -that load state through provider-backed services. It is not automatically exercised by -`squad init` plus a Copilot CLI custom agent in prompt-only mode; that path relies on the -agent instructions and local `.squad/` files unless a CLI/MCP bridge is installed. - -### Copilot Memory is optional semantic memory - -Copilot Memory is not a `StorageProvider`. It is an optional semantic durable memory -destination behind `MemoryGovernanceProvider`. - -The governance layer may route selected `COPILOT_MEMORY` entries to Copilot Memory when: - -- the user or team has enabled it -- classification marks the content safe -- the entry is stable enough to be useful across sessions -- the write path supports auditability and deletion - -The local `.squad/` files remain the source of truth unless a future configuration -explicitly selects another governance provider. - -Current implementation does not include a real callable Copilot Memory API. Squad does not -ship, discover, or emulate a Copilot Memory service client, and `provider=copilot` fails -with an explicit "real Copilot Memory API unavailable" error unless a concrete provider -module is added. The only current bridge is named `hostInjectedCopilotAdapter`; hosts that -have access to a real API can inject a `CopilotMemoryProviderClient` into the governed -memory layer. When `.squad/memory/config.json` enables -`externalProviders.hostInjectedCopilotAdapter` but no client is supplied, writes, searches, -and deletes fail closed with clear errors and no fake persistence. - -The provider path still goes through governance: - -- `COPILOT_MEMORY` writes are classified before the provider is called. -- forbidden, transient, unapproved, or disabled-provider writes are rejected before any - external call. -- audits record action, class, provider, ids, paths, reasons, and actor, but never raw - memory content. -- deletes call the provider delete operation, mark the governed index entry deleted, and - write a local tombstone for auditability. -- `squad memory provider` reports that real Copilot Memory is unavailable locally, whether - `hostInjectedCopilotAdapter` is enabled, and whether the current process has a - host-injected client. - -### Tool bridge is required for pluggable providers - -Copilot custom agents cannot reliably use pluggable memory providers through prompt -instructions alone. A CLI/MCP/tool bridge is needed so agents can call explicit -operations such as: - -- `memory.classify` -- `memory.write` -- `memory.search` -- `memory.promote` -- `memory.delete` -- `memory.audit` - -Without that bridge, the fallback is prompt-only local writes to `.squad/` files. That -fallback is intentionally limited: it preserves current behavior but cannot guarantee -provider routing, semantic indexing, policy enforcement, or remote deletion. - ---- - -## Agent Responsibilities - -Squad should not assume every team has the same named agents. Only the default team -roles should be required by the memory governance path; richer teams can add specialist -reviewers by capability. - -| Role | Availability | Responsibility | -|------|--------------|----------------| -| Scribe | Default | Owns memory stewardship: consolidates inbox entries, summarizes local history, proposes promotions, detects directive conflicts, prepares candidate durable entries, and records audit metadata. | -| Ralph | Default | Monitors stale work, recurring failures, and backlog signals that may indicate missing or outdated memory. Ralph can suggest memory review, but does not approve policy-sensitive writes. | -| Domain/research specialist | Optional | Validates sources, retrieves historical context, distinguishes durable facts from transient findings, and identifies when the user should approve promotion. | -| Safety/review specialist | Optional | Enforces safety boundaries: rejects `FORBIDDEN` writes, reviews security-sensitive memory, and defines redaction requirements. | -| Framework/architecture specialist | Optional | Owns provider boundaries, schemas, classification taxonomy, tool bridge contracts, and compatibility with state backends. | -| Team lead/coordinator | Optional | Coordinates team-level policy and final decisions: approves governance defaults, user-facing behavior, and rollout sequencing. | - -For example, Tamir's project Squad maps those optional capabilities to agents such as -Seven, Worf, Data, and Picard. That mapping is an implementation of the capability model, -not a requirement for every Squad installation. - -### Default role decision - -The governance model does not require a new always-created memory role at `squad init` -time. Scribe is already the default durable-record role, so memory governance should extend -Scribe's responsibilities and give it explicit tools, classification rules, and audit -obligations. A future `Memory Steward` template may be useful for larger teams, but it -should be optional unless Scribe's role becomes too broad in practice. - ---- - -## Relationship to Existing Work - -### Tiered memory (#600) - -This design extends [Tiered Agent Memory](tiered-memory.md). The hot/cold/wiki model -describes context loading and promotion. Memory governance defines the provider boundary -and safety rules that decide what may enter those tiers or an external semantic memory. - -The two designs are compatible: - -- hot memory maps mostly to `TRANSIENT` and recent `LOCAL` -- cold memory maps to summarized `LOCAL` -- wiki memory maps to stable `DECISION`, `POLICY`, and selected durable knowledge -- semantic memory maps only to explicitly safe `COPILOT_MEMORY` - -### State backend and plugin work - -Provider work for state backends should stay focused on where bytes live. Memory -governance should decide what bytes are worth writing, how they are classified, and which -provider receives them. - -This avoids coupling the memory policy model to any one runtime plugin, including the -separate mempalace runtime provider worktree. - ---- - -## Upgrade Story - -`squad upgrade` is the user-facing path that makes the new model usable in existing -repositories. The upgrade must be non-destructive, idempotent, and safe to re-run. - -The upgrade should: - -- detect the existing `.squad/` version, layout, and any memory/governance config -- preserve existing `decisions.md`, agent histories, skills, routing, `team.md`, and - ceremony files -- create or migrate `.squad/memory/config.json` or an equivalent policy file with a - local-only default -- add default memory governance policy without overwriting user-authored edits -- update Scribe's charter responsibilities for memory stewardship through a managed - block, patch, or migration note pattern rather than replacing custom charter text -- preserve Ralph's role as a monitor for stale work and repeated rediscovery, not as the - owner of memory policy -- add CLI/MCP bridge configuration only when the bridge is installed and available -- leave prompt-only local `.squad/` fallback in place when no bridge exists -- keep external semantic providers, including Copilot Memory, disabled unless explicitly - opted in by the user or repository policy -- produce a migration report that lists created, changed, skipped, and manually required - actions - -Before changing existing files, `squad upgrade` should create a rollback point: either a -timestamped backup of changed `.squad/` files, a reversible migration journal, or a clear -Git-friendly migration report when the worktree itself is the rollback mechanism. The -rollback story must cover policy config, managed charter updates, and bridge config. - ---- - -## E2E Validation Story - -This model is not complete when the taxonomy, unit tests, or proposal text pass review. -It is complete only after a real human-style Squad workflow validates upgrade, fallback, -tool-backed memory, rejection, promotion, deletion, and audit behavior end to end. - -The required scenario is: - -1. Start with an existing repository that already has a `.squad/` directory from current - or older Squad. -2. Run `squad upgrade`. -3. Verify the upgrade preserves existing `decisions.md`, agent histories, skills, routing, - `team.md`, and ceremonies. -4. Verify the upgrade adds memory governance config and default local-only policy without - overwriting user edits. -5. Select the Squad custom agent in Copilot CLI. -6. In prompt-only mode, verify the agent continues to use local `.squad/` memory safely. -7. With CLI/MCP memory tools installed and enabled, verify the agent uses - `memory.classify`, `memory.write`, `memory.search`, `memory.promote`, - `memory.delete`, and `memory.audit` rather than relying only on prompt instructions. -8. Verify Scribe proposes and promotes memory according to policy. -9. Verify Ralph detects repeated rediscovery or stale work and suggests memory review - while leaving policy ownership with Scribe/governance. -10. Verify optional specialists participate only when configured by the team. -11. Attempt to store forbidden memory such as secrets, PII, topology, raw logs, or - transient CI/PR status; verify the write is rejected and audited. -12. Attempt to store durable semantic memory; verify Copilot Memory or any external - semantic provider is used only after opt-in and required approval. -13. Verify deletion removes or tombstones governed memory through the configured provider - and that `memory.audit` reports writes, promotions, rejections, and deletes. - -The E2E test should be run from the user's perspective: clone/open repo, upgrade, select -the Squad agent, perform normal work, observe what memory is proposed, and inspect the -resulting local files and audit output. - ---- - -## Security and Retention Rules - -The governance provider must not write the following to durable memory: - -- secrets, credentials, tokens, keys, connection strings -- PII or customer data -- internal network topology or sensitive infrastructure details -- raw logs, traces, dumps, or telemetry payloads -- transient CI status, PR status, build output, or one-time task progress -- unreviewed vulnerability details that would increase risk if retained - -Allowed durable memory should be distilled: decisions, policies, stable conventions, -safe architectural summaries, and reusable workflow knowledge. - -### Provider guarantees - -Any provider used behind `MemoryGovernanceProvider` must document its operational -guarantees before it is enabled by default: - -- tenant and repository isolation -- path traversal and namespace confinement -- encryption expectations for local and remote storage -- atomic writes or explicit conflict behavior -- locking/concurrency behavior for concurrent Squad sessions -- deletion and rollback behavior -- audit records for durable writes, promotions, rejections, and deletes -- migration compatibility between provider versions - -Prompt instructions are not enough for these guarantees. Prompt-only fallback is useful -for compatibility, but tool-backed or runtime-backed providers need deterministic checks, -tests, and audit output. - ---- - -## Implementation Phases - -### Phase 0: Documentation and taxonomy - -- Document provider boundaries and memory classes. -- Add public-facing wording that local worktree memory remains the default. -- Cross-link the tiered memory proposal. - -### Phase 1: Local governance shim - -- Add a local-only `MemoryStore` facade over `SquadState`. -- Classify writes before they land in `.squad/`. -- Keep `StorageProvider` unchanged. -- Preserve prompt-only fallback for Copilot custom agents. - -### Phase 2: CLI/MCP bridge - -- Expose memory operations through CLI and MCP tools. -- Let Copilot custom agents call tool-backed classification, search, and writes. -- Add audit output so users can inspect what was stored and why. - -### Phase 3: Optional semantic provider - -- Add an opt-in provider adapter for Copilot Memory or another semantic memory system. -- Route only `COPILOT_MEMORY` entries after safety checks. -- Keep local `.squad/` memory as the default and fallback. -- Implemented only as an explicit `hostInjectedCopilotAdapter` contract; real - `provider=copilot` remains blocked until a concrete callable API exists locally, and - missing host clients fail closed rather than pretending to persist semantic memory. - -### Phase 4: Promotion and lifecycle automation - -- Let Scribe propose promotions from local/cold memory to wiki or semantic durable memory. -- Add retention, expiration, deletion, and conflict resolution flows. -- Validate behavior against tiered-memory context budgets. - ---- - -## Acceptance Criteria - -- `StorageProvider` remains a file/blob persistence interface. -- A higher-level `MemoryGovernanceProvider` / `MemoryStore` boundary is documented before runtime implementation. -- `squad init` and Copilot custom agents keep local worktree memory as the default. -- Copilot Memory is documented as optional semantic durable memory, not as storage. -- Prompt-only custom agents can still write `.squad/` files when no bridge exists. -- Tool-backed custom agents have a clear CLI/MCP bridge direction for pluggable providers. -- `squad upgrade` is non-destructive, idempotent, detects existing `.squad/` state, and - preserves decisions, histories, skills, routing, `team.md`, and ceremonies. -- `squad upgrade` creates or migrates local-only memory governance policy without - overwriting user edits and reports changed, skipped, and manual migration actions. -- Scribe receives memory stewardship responsibilities through managed updates or - migration notes, while Ralph remains a monitor rather than policy owner. -- CLI/MCP bridge config is added only when available; otherwise prompt-only local - `.squad/` fallback remains valid. -- External semantic providers, including Copilot Memory, require explicit opt-in and - approval before durable semantic writes. -- Memory writes are classified as `TRANSIENT`, `LOCAL`, `DECISION`, `POLICY`, `COPILOT_MEMORY`, or `FORBIDDEN`. -- Durable memory rejects secrets, PII, topology, raw logs, and transient CI/PR status. -- Providers document isolation, deletion, audit, concurrency, and migration guarantees. -- Tests cover redaction, denied persistence, provider conformance, rollback/delete, and concurrent-write behavior. -- E2E validation covers an existing repo upgraded with `squad upgrade`, Copilot CLI - custom-agent use, prompt-only fallback, tool-backed memory operations, Scribe/Ralph - behavior, forbidden-memory rejection, semantic opt-in/approval, deletion, and audit. -- The relationship to #600 and state-backend/plugin work is explicit. - ---- - -## References - -- Issue: bradygaster/squad#600 -- Related proposal: [Tiered Agent Memory](tiered-memory.md) -- Internal format: [Squad Entry Markdown Format](../_internal/specs/memory-format.md) diff --git a/docs/proposals/reflect.md b/docs/proposals/reflect.md deleted file mode 100644 index 1847b133e..000000000 --- a/docs/proposals/reflect.md +++ /dev/null @@ -1,78 +0,0 @@ -# Proposal: Reflect Skill - -**Issue:** bradygaster/squad#621 -**Author:** tamirdresher -**Date:** 2026-03-26 -**Status:** Proposal - ---- - -## Problem Statement - -Agents repeat mistakes that were already identified in the same session. When an approach fails -or a user provides corrective feedback, agents lack a standardized mechanism to: -1. Capture the learning before continuing -2. Check captured learnings before attempting similar actions -3. Prevent recurrence without human intervention - -This is different from the history-hygiene skill (which covers cross-session history writing). -Reflect targets in-session learning capture during active work. - ---- - -## Proposed Approach - -A structured reflection protocol triggered by failure or feedback events: - -**Trigger classification:** -- HIGH: Agent makes same error twice, user explicitly says "that's wrong again" -- MED: Tool error after a previous warning, misunderstood requirement after clarification -- LOW: Minor adjustment requested, first-time error with clear cause - -**Reflect protocol (HIGH/MED triggers):** -1. Write a ## Reflection entry to current session context -2. State: what failed, why, what changes for next attempt -3. Check reflection notes before any action of the same category -4. If same failure occurs after reflection: escalate (do not retry silently) - -**Confidence threshold table:** Maps trigger severity to required escalation path - ---- - -## Fit with Existing Architecture - -- **Complements** history-hygiene skill (history.md captures final outcomes; reflect captures - in-flight corrections before the outcome is known) -- **Complements** error-recovery skill (recover handles the failure response; reflect captures - the learning to prevent recurrence) -- **Integrates** with .squad/decisions.md for persistent pattern learnings -- **No code changes** — template-only - ---- - -## What Changes - -- New skill: packages/squad-cli/templates/skills/reflect/SKILL.md -- New skill: packages/squad-sdk/templates/skills/reflect/SKILL.md -- New changeset: .changeset/reflect-skill.md - -## What Stays the Same - -- history-hygiene skill behavior unchanged -- error-recovery skill behavior unchanged -- No CLI or SDK runtime code changed - ---- - -## Risks and Mitigations - -| Risk | Likelihood | Impact | Mitigation | -|------|-----------|--------|------------| -| Reflect overhead slows agents | Low | Low | Only triggered by HIGH/MED events, not routine actions | -| Overlaps with history-hygiene | Low | Low | Different scope (in-session corrections vs final outcomes) | - ---- - -## References - -- Issue: bradygaster/squad#621 diff --git a/docs/proposals/retro-enforcement.md b/docs/proposals/retro-enforcement.md deleted file mode 100644 index 57c1aeec5..000000000 --- a/docs/proposals/retro-enforcement.md +++ /dev/null @@ -1,92 +0,0 @@ -# Proposal: Retro Enforcement Skill - -**Issue:** bradygaster/squad#601 -**Author:** tamirdresher -**Date:** 2026-03-26 -**Status:** Proposal - ---- - -## Problem Statement - -Retrospectives have a 0% action item completion rate when tracked as markdown checklists. -Measured across 6 consecutive retrospectives in production (tamirdresher/tamresearch1): -- Markdown checkboxes: 0/24 action items completed -- GitHub Issues: 85%+ completion rate for equivalent work - -The problem is structural, not behavioral. Markdown checklists have no assignee, no notifications, -no close events, and no query surface. They rely entirely on human memory to re-check. GitHub Issues -have all of these built in. - -This skill addresses the root cause: standardizing the retro ceremony to use GitHub Issues for -action items and providing coordinator integration to enforce the retro cadence itself. - ---- - -## Proposed Approach - -### 1. Test-RetroOverdue — Retro Cadence Enforcement - -A PowerShell function that checks whether a retrospective has occurred within the current window -(default: 7 days). The coordinator calls this at the start of every round and blocks other work -if the retro is overdue. - -`powershell -if (Test-RetroOverdue -LogDir ".squad/log" -WindowDays 7) { - # Spawn retro facilitator, wait for log, then resume -} -` - -Detection: checks .squad/log/ for *retrospective* files dated within the window. - -### 2. Action Item Enforcement - -Every retro action item MUST be a GitHub Issue. The skill provides: -- Verification logic to detect markdown checkboxes (anti-pattern) -- Verification logic to confirm Issue references exist in retro logs -- Example Issue format with required fields (title, body, assignee, labels) - -### 3. Ceremonies Template Update - -Updates .squad-templates/ceremonies.md with an enforcement-aware Retrospective definition -that documents the enforcement behavior, cadence, and required output format. - ---- - -## Fit with Existing Architecture - -- **Complements** the existing ceremonies template (additive, not replacing) -- **Integrates** with existing .squad/log/ pattern used by Scribe and coordinators -- **No new dependencies** — uses PowerShell, GitHub Issues, and existing file conventions -- **Coordinator integration** is optional and additive — existing coordinators continue to work - ---- - -## What Changes - -- New skill: packages/squad-cli/templates/skills/retro-enforcement/SKILL.md -- New skill: packages/squad-sdk/templates/skills/retro-enforcement/SKILL.md -- Updated: .squad-templates/ceremonies.md (Retrospective section enhanced) -- New changeset: .changeset/retro-enforcement.md - -## What Stays the Same - -- Existing ceremonies template sections (Design Review, etc.) unchanged -- Existing .squad/log/ format unchanged -- No changes to CLI or SDK runtime code — template/skills only - ---- - -## Risks and Mitigations - -| Risk | Likelihood | Impact | Mitigation | -|------|-----------|--------|------------| -| Coordinator blocks on retro check when no .squad/log/ dir exists | Medium | Low | Test-RetroOverdue handles SilentlyContinue for missing dirs | -| Teams don't want weekly enforcement | Low | Low | Cadence is configurable (-WindowDays param) | - ---- - -## References - -- Issue: bradygaster/squad#601 -- Production data: tamirdresher/tamresearch1 (0% vs 85%+ completion, 6 retrospectives) diff --git a/docs/proposals/squad-2.0-security-and-isolation.md b/docs/proposals/squad-2.0-security-and-isolation.md deleted file mode 100644 index 3af420d8d..000000000 --- a/docs/proposals/squad-2.0-security-and-isolation.md +++ /dev/null @@ -1,104 +0,0 @@ -# Squad 2.0 — Security, Threat Model & Isolation - -**Status:** Proposal, partially implemented · **Owner:** Worf (Security & Reliability) · **Scope:** Client/Backend decoupling and multi-client projections (Claude Code, Kiro, OpenCode, Cursor, GitHub Copilot, OpenAI Codex, Google Antigravity) plus the `DurableSquad` remote backend. -**Contract suite:** `test/squad-20-security-contracts.test.ts` exercises the shipped product modules (`@bradygaster/squad-sdk/backend`, `@bradygaster/squad-sdk/client`, `squad-cli/core/backend-mcp`) for every property marked **Implemented** below. Properties marked **Not implemented** have no test on purpose; they are design intent, not shipped behavior. - -## 1. Trust model - -| Actor | Trust | Notes | -|---|---|---| -| Client / harness (any of the seven hosts: `copilot`, `claude`, `kiro`, `opencode`, `cursor`, `codex`, `antigravity`) | **Untrusted caller** | Prompt-injectable; may replay, reorder, or tamper with requests. | -| Projected files (`.claude/`, `.kiro/`, `.opencode/`, `.cursor/`, `.codex/`, `.github/`, `.agents/`, `.squad/`, MCP configs) | **Untrusted input** | Writable by the user, other tools, and cloned repos. | -| Control Plane / Broker (`LocalSquadBackend`) | **Trusted process** | Owns conversation state, admission, approvals and lease epochs. Today it runs in the same process (or the same user account) as its callers, so it is a correctness boundary, not a privilege boundary. | -| `DurableSquad` remote backend | Trusted through its bearer token and TLS | Network is hostile; replays and partitions are expected. | - -### Control Plane / Broker — what is shipped - -- **B1 (Implemented)** Clients never write `.squad/backend/**` directly; every mutation goes through a `SquadBackend` method and a lock-protected read-modify-write of the conversation snapshot. -- **B2 (Implemented, weaker than originally proposed)** Approval binding is an **opaque echo**. The harness supplies `ApprovalRequest.hash` when it raises an approval; the broker stores it and `respondApproval` succeeds only when the response echoes the exact same string (`approval-hash-mismatch` otherwise). The broker does **not** compute or verify the hash: its meaning (SHA-256 of a canonical payload, a nonce, anything) is entirely up to the harness. -- **B3 (Implemented)** Approvals are single-use. A decided approval is `version: 2` and any later decision — identical or different — is rejected with `approval-not-pending`. The same `(runId, seq)` message replays as `duplicate: true`; a different payload under the same key is a `conflict`. -- **B4 (Not implemented — see §4)** The broker **does** trust client-supplied epochs. Anything the broker receives (ids, epochs, hashes) is validated for shape only, never re-derived from an authenticated identity. -- **B5 (Partially implemented)** The MCP bridge returns a generic message for non-contract failures so absolute paths and stack details do not leak to the host; `normalizeClientIds` redacts values that look sensitive. There is no general secret scrubber for logs or projections. - -## 2. Safe MCP configuration merging (Implemented) - -Targets: `.mcp.json`, `.kiro/settings/mcp.json`, `opencode.json` (key `mcp`), `.cursor/mcp.json`. Implementation: `mergeMcpServer` and `applyProjection` in `packages/squad-sdk/src/client/adapters/`. - -- **M1** Merge is additive and scoped to the Squad-owned `squad_state` entry; unrelated servers and top-level keys are preserved. -- **M2** Existing user `env` and any custom field on the `squad_state` entry are kept; Squad only owns the launch fields (`command`, `args`). -- **M3** Malformed JSON and non-object roots or containers abort that file with an `error` result and no write (never "repair by overwrite"). -- **M4** Existing `__proto__` keys are copied as plain data and never pollute `Object.prototype`. -- **M5 (Not implemented)** There is no validation of `command`/`args` content (shell metacharacters, interpreters, `https`-only `url`). Squad writes the launch spec it is given. -- **M6 (Partially implemented)** Writes are idempotent (`unchanged` when nothing differs) and validated before touching disk, but they are plain `writeFileSync`, not temp-file + rename. -- **M7** Secrets are never inlined by Squad; the projected `env` is `{}` unless the user already had one. - -## 3. Path, symlink & reparse-point guards (Implemented) - -Two independent guards exist and are tested: - -- `createFileStateStore` (backend state under `.squad/backend/`): rejects any key whose resolved path leaves the state root, walks every path component with `lstat`, and refuses symlinks/junctions anywhere between the root (and its `.squad` parent) and the target. The check runs on read, write, lock and again after `mkdir -p` so a link introduced between the two calls is still caught. -- `resolveInsideRoot` (client projections): rejects absolute paths and `..` segments, then walks every component and refuses symlinked components, including a client directory that was itself replaced by a link. - -Conversation ids are restricted to `[A-Za-z0-9._-]{1,128}` and Windows reserved device names (`CON`, `NUL`, `COM1`…) are rejected. Guards rely on Node reporting junctions as symbolic links; a real `mklink /J` junction is exercised on Windows. - -## 4. State-backend isolation and lease epochs - -- **S1 (Implemented)** Each `.squad` directory is its own state namespace; conversations are `.squad/backend/conversations/.json`, locks are `.squad/backend/locks/.lock`. Both paths are git-ignored by `squad upgrade`. -- **S2 / S3 (Implemented as cooperative fencing)** A conversation carries a single integer `epoch`. A writer may present an epoch: a lower one is rejected with `stale-epoch`, and once any writer has presented one the conversation is *fenced* and omitting the epoch is also rejected. Harness output tagged with an older epoch is dropped and leaves a `harness.epoch-rejected` control event. -- **Not a security boundary.** Epochs are **client-asserted**. There is no lease holder identity, no broker-issued token and no expiry: *any* caller presenting a larger integer takes over the conversation and fences everybody else. This protects against a crashed or paused writer resuming with stale state; it does not protect against a malicious or buggy co-tenant. Treat it like an optimistic-concurrency version, not like a lock. -- **S4 (Implemented)** Messages are addressed by `(runId, seq)`; duplicates are idempotent replays and payload changes are conflicts. Gaps in `seq` are not rejected. -- **S5 (Implemented)** A fenced writer has to learn the current epoch (returned on every admission) and present it; it cannot "resume" an old one. - -Cross-process mutual exclusion uses `wx` lock files with owner tokens, a bounded wait, and stale-lock recovery. The lock root is deterministic: the `.squad` directory for the local backend, a file-backed state backend's own root, or — for backends whose data lives outside the working tree (git-notes, orphan) — a machine-local directory derived from the backend identity, so a configured state backend never materializes `.squad/backend/` in the team directory. `createStateBackendStore` refuses to run with a backend that cannot provide one rather than falling back to a per-process temp directory. Lock waits in the async backend methods are timer based so a contended conversation never stalls the MCP server's event loop. - -## 5. Contract suite - -`test/squad-20-security-contracts.test.ts` is organized by the gates below. It is part of the normal test run; it is not a release gate on its own and does not run a Windows junction case outside Windows. - -| Gate | What the suite exercises (product code) | -|---|---| -| G1 | Path containment: `createFileStateStore` and `resolveInsideRoot` reject escapes, symlinks and junctions; id validation | -| G2 | `mergeMcpServer` / `installClients`: additive merge, user env preserved, malformed JSON left untouched, prototype safety, idempotence | -| G3 | `(runId, seq)` idempotency and conflict detection, across a backend restart | -| G4 | `intersectCapabilities` / `negotiate()` / `resolveEffectiveCapabilityTokens` strict intersection; `normalizeClientIds` redaction | -| G5 | Cooperative epoch fencing incl. the documented take-over behavior and fenced harness output | -| G6 | Opaque approval hash echo, single-use decisions, `cancelRun` by `runId` closing pending approvals, no revival of terminal runs | -| G7 | Cursors: cross-conversation and malformed cursors rejected, unresumable position reported, no lease material in pages | -| G8 | MCP bridge: explicit opt-in, canonical `BackendErrorInfo`, generic message for non-contract failures, refusal without a harness | -| G9 | `DurableHttpSquadBackend`: `https` only (plain `http` for loopback), `redirect: 'error'`, per-attempt timeouts, token sent only to the configured origin | - -## 6. Configured vs. negotiated capabilities (Implemented) - -Persisted `clients[]` in `.squad/config.json` is **projection config only**. It decides which client files are generated; it never grants execution authority. - -- **C1** `effectiveCapabilities = clientCapabilities ∩ backendCapabilities ∩ policyCapabilities`, computed by `negotiate()` (backend) and `resolveEffectiveCapabilityTokens` (client), never at config load. -- **C2** Unknown capability tokens are dropped silently (there is no per-token reason reporting). -- **C3** Widening `clients[]` on disk cannot widen `effectiveCapabilities`. -- **C4 / C5** `normalizeClientIds` keeps only canonical client slugs and reports everything else as `unknown` or `sensitive` (redacted); `assertPortableClients` throws without echoing the offending values. - -## 7. Approvals & `runId` cancellation (Implemented) - -An approval record is `{ approvalId, version, scope, action, hash, payload?, state, runId, requestedAt, decidedAt?, decision?, reason? }`. - -- **A1** `version` is 1 while pending and incremented on the decision (or on cancellation of the run). -- **A2** `hash` is the opaque string supplied by the harness; a response with a different string is rejected without state change. There is no `payloadHash`, no canonicalization and no `version` check on the response. -- **A3** Decided or cancelled approvals are terminal; replaying the decision is `approval-not-pending`. -- **A5** Cancellation targets the stable `runId` across all its turns, is idempotent, and is a no-op once terminal. A late harness `state`/`message` for a cancelled run is ignored. -- **A6** Same `(runId, seq)` is an idempotent replay; `seq` is not an identifier for control operations. - -## 8. Cursors and loss tolerance - -- **L3 (Implemented, unsigned)** Cursors are opaque `base64url("c1::")`. The broker validates the conversation id and the numeric form; a cursor ahead of the log yields `resumable: false`. Cursors are **not signed**: a client can mint a cursor for any position of a conversation it can already read. Pages expose only `events`, `nextCursor`, `lastAcceptedSeq` and `resumable`. -- **L1 / L2 (Not implemented)** There is no loss-tolerant projection layer for unknown event kinds and no separate telemetry channel in the SDK backend. - -## 9. Future work / not implemented - -Earlier drafts of this proposal described the following as shipped. They are not, and the contract suite does not pretend otherwise: - -- broker-computed approval hashes (`sha256(canon({runId, action, args, epoch}))`), `payloadHash`, `expiresAt` and version-checked decisions; -- broker-issued leases with holder identity, so a client cannot fence others by asserting a larger epoch; -- signed or forgery-resistant cursors and cursor expiry; -- `command`/`args`/`url` validation in MCP config merges (M5) and atomic temp-file writes (M6); -- a general secret scrubber for diagnostics and projections (B5 beyond the MCP error surface); -- loss-tolerant projection of unknown event kinds and a separate telemetry stream (L1/L2); -- a bundled execution harness: the `squad_backend_*` MCP tools are a transcript/event-log surface, `squad_backend_send_message` is refused with `unavailable` while no harness is registered, and `health`/`negotiate` report `executionAvailable: false`. diff --git a/docs/proposals/tiered-memory.md b/docs/proposals/tiered-memory.md deleted file mode 100644 index 2397f97f6..000000000 --- a/docs/proposals/tiered-memory.md +++ /dev/null @@ -1,95 +0,0 @@ -# Proposal: Tiered Agent Memory Skill - -**Issue:** bradygaster/squad#600 -**Author:** tamirdresher -**Date:** 2026-03-26 -**Status:** Proposal - ---- - -> **Related follow-up:** [Memory Governance Provider](memory-governance-provider.md) -> extends this tiered-memory proposal with provider boundaries, memory classification, -> Copilot Memory positioning, and safety rules. This document still describes the -> hot/cold/wiki context model for bradygaster/squad#600. - ---- - -## Problem Statement - -Squad agents load their full conversation history on every spawn. In production, top agents carry: - -| Agent | Context Size | Old Noise % | -|-------|-------------|-------------| -| Picard | 74KB / 18,500 tokens | 96% | -| Scribe | 52KB / 13,000 tokens | 91% | -| Data | 43KB / 10,700 tokens | 88% | -| Ralph | 38KB / 9,500 tokens | 85% | -| Worf | 34KB / 8,500 tokens | 82% | - -82-96% of each agent's context is "old noise" — past decisions, completed tasks, and ended -conversations. This wastes tokens, increases spawn latency, and risks agents hallucinating -stale context as current fact. - ---- - -## Proposed Approach - -Replace monolithic context loading with a three-tier model: - -**Hot Tier (~2-4KB, always loaded):** Current session context only. Task description, active -decisions this session, last 3-5 actions, current blockers. - -**Cold Tier (~8-12KB, on-demand):** Summarized cross-session history compressed by Scribe -(~10:1 compression). Load with --include-cold when task needs history. - -**Wiki Tier (variable, selective read):** Durable structured knowledge — ADRs, stable -conventions, API contracts, agent charters. Load with --include-wiki. - -**Result:** 20-55% context reduction per spawn with better relevance. - -### Scribe Integration - -Scribe automates tier promotion: -- End of session: Scribe compresses Hot → Cold summary -- After 30 days: Scribe promotes Cold → Wiki for aged stable decisions -- On-demand: Any agent can request a wiki entry with scribe:wiki-write - ---- - -## Fit with Existing Architecture - -- **Complements** Scribe's existing session summary role (formalizes it with structured output) -- **No changes to existing agents** — coordinators opt in by including cold/wiki sections -- **File layout** uses existing .squad/ directory convention -- **No code changes** — template-only skill, spawn templates are guidelines - ---- - -## What Changes - -- New skill: packages/squad-cli/templates/skills/tiered-memory/SKILL.md -- New skill: packages/squad-sdk/templates/skills/tiered-memory/SKILL.md -- New changeset: .changeset/tiered-memory.md - -## What Stays the Same - -- Existing spawn templates unchanged (opt-in) -- Scribe charter not modified (skill provides guidance, Scribe charter update is separate) -- No CLI or SDK runtime code changed - ---- - -## Risks and Mitigations - -| Risk | Likelihood | Impact | Mitigation | -|------|-----------|--------|------------| -| Cold tier grows stale without Scribe automation | Medium | Low | Skill documents TTL; manual promotion works too | -| Wiki tier becomes a dumping ground | Low | Medium | Skill explicitly scopes Wiki to stable facts only | -| Cold compression loses important context | Low | Medium | Scribe keeps 10% verbosity; agents can load raw cold if needed | - ---- - -## References - -- Issue: bradygaster/squad#600 -- Production measurements: tamirdresher/tamresearch1 (June 2025) From c85547beb68094f92a9b611d452a2ddbe12a761b Mon Sep 17 00:00:00 2001 From: Copilot Date: Thu, 19 Nov 2026 09:53:10 +0200 Subject: [PATCH 2/5] fix(test): isolate terminal acceptance squad fixtures Use temporary project squads for status and doctor success scenarios so sanitized release checkouts do not depend on live repository state. Preserve the existing no-squad failure checks. Relates to #2540. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> (cherry picked from commit 7b42f36bc8a3ee17f86056f7a2c2a68dc77340c6) --- .../acceptance/features/hostile-pipe-mode.feature | 1 + .../features/hostile-tiny-terminal.feature | 2 ++ test/acceptance/hostile.test.ts | 5 +++-- test/acceptance/steps/cli-steps.ts | 2 +- test/acceptance/steps/hostile-steps.ts | 7 +++++-- test/ux-gates.test.ts | 15 +++++++++++++-- 6 files changed, 25 insertions(+), 7 deletions(-) diff --git a/test/acceptance/features/hostile-pipe-mode.feature b/test/acceptance/features/hostile-pipe-mode.feature index 937730627..4461939c6 100644 --- a/test/acceptance/features/hostile-pipe-mode.feature +++ b/test/acceptance/features/hostile-pipe-mode.feature @@ -14,6 +14,7 @@ Feature: Hostile — Non-TTY pipe mode Scenario: Status works when piped (non-TTY) Given a non-TTY environment + And the current directory has a ".squad" directory When I run "squad status" in non-TTY mode Then the output contains "Squad Status" And the exit code is 0 diff --git a/test/acceptance/features/hostile-tiny-terminal.feature b/test/acceptance/features/hostile-tiny-terminal.feature index 80debafde..d86677079 100644 --- a/test/acceptance/features/hostile-tiny-terminal.feature +++ b/test/acceptance/features/hostile-tiny-terminal.feature @@ -14,12 +14,14 @@ Feature: Hostile — Tiny terminal (40x10) Scenario: Status command works at 40x10 Given a terminal size of 40 columns by 10 rows + And the current directory has a ".squad" directory When I run "squad status" with that terminal size Then the output contains "Squad Status" And the exit code is 0 Scenario: Doctor command works at 40x10 Given a terminal size of 40 columns by 10 rows + And the current directory has a ".squad" directory When I run "squad doctor" with that terminal size Then the exit code is 0 diff --git a/test/acceptance/hostile.test.ts b/test/acceptance/hostile.test.ts index 2b5653706..fdb7a00cd 100644 --- a/test/acceptance/hostile.test.ts +++ b/test/acceptance/hostile.test.ts @@ -6,7 +6,7 @@ import { afterEach } from 'vitest'; import { join } from 'node:path'; import { createRegistry, runFeature } from './support/runner.js'; -import { registerCLISteps } from './steps/cli-steps.js'; +import { cleanupAcceptanceTempDirs, registerCLISteps } from './steps/cli-steps.js'; import { registerHostileSteps } from './steps/hostile-steps.js'; import { TerminalHarness } from './harness.js'; @@ -16,7 +16,7 @@ const registry = createRegistry(); registerHostileSteps(registry); registerCLISteps(registry); -// Cleanup harnesses after each test +// Cleanup harnesses and temp dirs after each test afterEach(async (context) => { const harness = (context as Record).harness as TerminalHarness | undefined; if (harness) { @@ -26,6 +26,7 @@ afterEach(async (context) => { if (rapidHarnesses) { await Promise.all(rapidHarnesses.map(h => h.close())); } + cleanupAcceptanceTempDirs(); }); const featuresDir = join(__dirname, 'features'); diff --git a/test/acceptance/steps/cli-steps.ts b/test/acceptance/steps/cli-steps.ts index 1179f8378..0c75850b5 100644 --- a/test/acceptance/steps/cli-steps.ts +++ b/test/acceptance/steps/cli-steps.ts @@ -40,7 +40,7 @@ export function registerCLISteps(registry: StepDefinitions): void { // #2015 isolation). Mirrors the sibling "without a .squad directory" // step's use of an isolated temp dir, and downstream "I run" steps pick // up context.tempDir automatically. - const tempDir = mkdtempSync(join(tmpdir(), 'squad-e2e-')); + const tempDir = makeTempDir(); // consult/check commands gate on "is this a git repo" before the // .squad check, so the sandbox must actually be a git repo (same // convention as test/cli/consult.test.ts, test/sdk/consult.test.ts). diff --git a/test/acceptance/steps/hostile-steps.ts b/test/acceptance/steps/hostile-steps.ts index 0274fef31..a179837ac 100644 --- a/test/acceptance/steps/hostile-steps.ts +++ b/test/acceptance/steps/hostile-steps.ts @@ -93,9 +93,10 @@ export function registerHostileSteps(registry: StepDefinitions): void { const args = command.replace(/^squad\s*/, '').split(/\s+/).filter(Boolean); const cols = context.terminalCols as number; const rows = context.terminalRows as number; + const cwd = context.tempDir as string | undefined; - const harness = await TerminalHarness.spawnWithArgs(args, { cols, rows }); - try { await harness.waitForExit(5000); } catch { /* timeout ok */ } + const harness = await TerminalHarness.spawnWithArgs(args, { cols, rows, cwd }); + try { await harness.waitForExit(15000); } catch { /* timeout ok */ } context.harness = harness; context.output = harness.getOutput(); context.exitCode = harness.getExitCode(); @@ -111,9 +112,11 @@ export function registerHostileSteps(registry: StepDefinitions): void { if (!match) throw new Error('Pattern match failed'); const command = match[1]; const args = command.replace(/^squad\s*/, '').split(/\s+/).filter(Boolean); + const cwd = context.tempDir as string | undefined; // Force non-TTY via env const harness = await TerminalHarness.spawnWithArgs(args, { + cwd, env: { TERM: 'dumb', NO_COLOR: '1', FORCE_COLOR: '0' } }); try { await harness.waitForExit(5000); } catch { /* timeout ok */ } diff --git a/test/ux-gates.test.ts b/test/ux-gates.test.ts index 0ff81c1f0..1c4b0f7cf 100644 --- a/test/ux-gates.test.ts +++ b/test/ux-gates.test.ts @@ -4,16 +4,24 @@ */ import { describe, it, expect, afterEach } from 'vitest'; +import { mkdtempSync, mkdirSync, rmSync, writeFileSync } from 'node:fs'; +import { tmpdir } from 'node:os'; +import { join } from 'node:path'; import { TerminalHarness } from './acceptance/harness.js'; describe('UX Gates', () => { let harness: TerminalHarness | null = null; + let projectDir: string | null = null; afterEach(async () => { if (harness) { await harness.close(); harness = null; } + if (projectDir) { + rmSync(projectDir, { recursive: true, force: true }); + projectDir = null; + } }); it('No overflow beyond terminal width (80 chars)', async () => { @@ -64,8 +72,11 @@ describe('UX Gates', () => { }); it('Status command shows clear output structure', async () => { - harness = await TerminalHarness.spawnWithArgs(['status']); - await harness.waitForExit(5000); + projectDir = mkdtempSync(join(tmpdir(), 'squad-ux-gates-')); + mkdirSync(join(projectDir, '.squad')); + writeFileSync(join(projectDir, '.squad', 'team.md'), '# UX test team\n'); + harness = await TerminalHarness.spawnWithArgs(['status'], { cwd: projectDir }); + expect(await harness.waitForExit(5000)).toBe(0); const output = harness.captureFrame(); From 2d651a1a9a32fdf970ff8dac30e83b8dad817975 Mon Sep 17 00:00:00 2001 From: Tamir Dresher Date: Thu, 19 Nov 2026 14:53:59 +0200 Subject: [PATCH 3/5] fix: harden Squad release inputs Relates to #2538 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .../workflows/squad-standalone-release.yml | 12 +- .github/workflows/squad-workflow-lint.yml | 4 +- .../docs/reference/host-feature-matrix.md | 8 +- docs/src/content/docs/scenarios/upgrading.md | 112 +++++++----------- packages/squad-cli/src/cli/commands/doctor.ts | 2 +- .../squad-cli/src/cli/commands/migrate.ts | 6 +- packages/squad-cli/src/cli/core/team-md.ts | 9 +- packages/squad-cli/src/cli/core/upgrade.ts | 15 +-- packages/squad-cli/src/cli/shell/index.ts | 7 +- packages/squad-sdk/src/agents/onboarding.ts | 29 +++-- .../src/backend/durable-http-backend.ts | 4 +- .../src/casting/handwritten-registry.ts | 19 ++- .../squad-sdk/src/client/adapters/apply.ts | 15 ++- .../src/client/adapters/coordinator.ts | 7 +- packages/squad-sdk/src/config/init.ts | 60 +++++++--- .../squad-sdk/src/config/team-capabilities.ts | 30 ++++- .../squad-sdk/src/platform/comms-teams.ts | 20 +++- packages/squad-sdk/src/platform/detect.ts | 19 ++- packages/squad-sdk/src/ralph/triage.ts | 32 +++-- packages/squad-sdk/src/resolution.ts | 18 ++- packages/squad-sdk/src/state-backend.ts | 12 +- .../src/storage/in-memory-storage-provider.ts | 3 +- scripts/pr-readiness.mjs | 1 + scripts/release/build-manifest.mjs | 3 +- scripts/release/check-release-scripts.mjs | 2 +- scripts/render-host-feature-matrix.mjs | 9 +- scripts/render-upgrade-matrix.mjs | 6 +- .../spec/suite-v0.2/upgrade-matrix.json | 7 +- test/actionlint-config.test.ts | 17 +++ test/clients.test.ts | 2 +- test/comms-teams.test.ts | 5 + test/gh-aw-command-authorization.test.ts | 43 ++++++- test/init-scaffolding.test.ts | 2 + test/init-sdk.test.ts | 27 +++++ test/platform-adapter.test.ts | 17 +++ test/pr-readiness.test.ts | 1 + test/release-script-policy.test.ts | 6 + test/specification-suite.test.ts | 20 +++- test/squad-20-preview-tarball-matrix.test.ts | 16 ++- test/squad-20-upgrade-matrix.test.ts | 26 +++- test/standalone-release-workflow.test.ts | 8 +- test/team-capabilities.test.ts | 4 + workflows/shared/squad-command-contract.mjs | 24 +++- workflows/squad-workflows.manifest.json | 2 +- 44 files changed, 512 insertions(+), 179 deletions(-) diff --git a/.github/workflows/squad-standalone-release.yml b/.github/workflows/squad-standalone-release.yml index b85a0b311..60c6d962f 100644 --- a/.github/workflows/squad-standalone-release.yml +++ b/.github/workflows/squad-standalone-release.yml @@ -116,7 +116,7 @@ jobs: steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #v7 with: - ref: ${{ inputs.source_sha }} + ref: ${{ github.sha }} fetch-depth: 0 - name: Validate inputs id: validate @@ -231,7 +231,7 @@ jobs: steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #v7 with: - ref: ${{ inputs.source_sha }} + ref: ${{ github.sha }} fetch-depth: 0 - name: Verify exact source checkout @@ -363,7 +363,7 @@ jobs: steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #v7 with: - ref: ${{ inputs.source_sha }} + ref: ${{ github.sha }} fetch-depth: 0 - name: Verify exact source checkout env: @@ -514,7 +514,7 @@ jobs: steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #v7 with: - ref: ${{ inputs.source_sha }} + ref: ${{ github.sha }} fetch-depth: 0 - name: Verify exact source checkout @@ -587,7 +587,7 @@ jobs: steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #v7 with: - ref: ${{ inputs.source_sha }} + ref: ${{ github.sha }} fetch-depth: 0 path: release-source - name: Verify exact source checkout @@ -770,7 +770,7 @@ jobs: steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #v7 with: - ref: ${{ inputs.source_sha }} + ref: ${{ github.sha }} fetch-depth: 0 path: release-source - name: Verify exact source checkout diff --git a/.github/workflows/squad-workflow-lint.yml b/.github/workflows/squad-workflow-lint.yml index 994e8e2e8..2e23705bd 100644 --- a/.github/workflows/squad-workflow-lint.yml +++ b/.github/workflows/squad-workflow-lint.yml @@ -53,8 +53,10 @@ jobs: if: github.event_name == 'workflow_dispatch' env: SOURCE_SHA: ${{ inputs.sha }} + DISPATCH_SHA: ${{ github.sha }} run: | [[ "$SOURCE_SHA" =~ ^[0-9a-f]{40}$ ]] || { echo "::error::sha must be a full lowercase 40-hex SHA, got '$SOURCE_SHA'"; exit 1; } + [ "$SOURCE_SHA" = "$DISPATCH_SHA" ] || { echo "::error::sha must match the selected workflow ref"; exit 1; } - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #v7 if: github.event_name != 'workflow_dispatch' @@ -62,7 +64,7 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #v7 if: github.event_name == 'workflow_dispatch' with: - ref: ${{ inputs.sha }} + ref: ${{ github.sha }} fetch-depth: 0 - name: Assert checkout is exactly the requested SHA diff --git a/docs/src/content/docs/reference/host-feature-matrix.md b/docs/src/content/docs/reference/host-feature-matrix.md index 61057e21c..ba7e3ffe6 100644 --- a/docs/src/content/docs/reference/host-feature-matrix.md +++ b/docs/src/content/docs/reference/host-feature-matrix.md @@ -667,9 +667,9 @@ Depends on: **a, b, c** · docs: [features/dual-mode-deployment](/squad/docs/fea | Host | Capability | Validation | Mechanism | Evidence | |------|------------|------------|-----------|----------| | `copilot` | ✅ supported | 🧪 validated-test | CLI writes `config.json.teamRoot`; state-mcp resolves `mode: remote`; canonical step 3 loads `team.md` from the team root; the digest's **Linked team** rule reads team files only through `squad_state`. | `validated-test:test/resolution.test.ts::*`
`validated-test:test/claude-linked-team.test.ts::every coordinator digest reads a linked team through squad_state`
`validated-test:test/squad-20-host-feature-matrix.test.ts::state-mcp follows config.json teamRoot from a satellite repo (remote mode)`
`validated-test:test/clients.test.ts::coordinator digest vs. host feature matrix`
`static-only` | -| `claude` | ✅ supported | 🖥️ validated-live | `squad link` / `init --mode remote` write `config.json.teamRoot`; `squad init` and `squad upgrade` then scaffold no local roster, routing, charters or casting, and project the member subagents from the linked team (they read their charters with `squad_state_read`). The state bridge follows `teamRoot`, and the digest's **Linked team** rule reads team files only through `squad_state`. _Live (2026-11-13): roster and routing read from the linked team via `squad_state_read`, API work routed to Dallas, and the projected `dallas` subagent read its charter through `squad_state`; no local team files, no denials. Earlier run: roster served from `..\\base`; no casting attempted._ | `validated-test:test/claude-linked-team.test.ts::init and upgrade use the linked team: no local roster, members projected from the team`
`validated-test:test/resolution.test.ts::*`
`validated-test:test/claude-linked-team.test.ts::every coordinator digest reads a linked team through squad_state`
`validated-manual:lab:satellite-remote@2026-10-22`
`validated-test:test/squad-20-host-feature-matrix.test.ts::state-mcp follows config.json teamRoot from a satellite repo (remote mode)`
`validated-test:test/clients.test.ts::coordinator digest vs. host feature matrix`
`static-only`
`validated-manual:lab:satellite-linked-members@2026-11-13` | +| `claude` | ✅ supported | 🖥️ validated-live | `squad link` / `init --mode remote` write `config.json.teamRoot`; `squad init` and `squad upgrade` then scaffold no local roster, routing, charters or casting, and project the member subagents from the linked team (they read their charters with `squad_state_read`). The state bridge follows `teamRoot`, and the digest's **Linked team** rule reads team files only through `squad_state`. _Live (2026-11-13): roster and routing read from the linked team via `squad_state_read`, API work routed to Dallas, and the projected `dallas` subagent read its charter through `squad_state`; no local team files, no denials. Earlier run: roster served from `..\\\\base`; no casting attempted._ | `validated-test:test/claude-linked-team.test.ts::init and upgrade use the linked team: no local roster, members projected from the team`
`validated-test:test/resolution.test.ts::*`
`validated-test:test/claude-linked-team.test.ts::every coordinator digest reads a linked team through squad_state`
`validated-manual:lab:satellite-remote@2026-10-22`
`validated-test:test/squad-20-host-feature-matrix.test.ts::state-mcp follows config.json teamRoot from a satellite repo (remote mode)`
`validated-test:test/clients.test.ts::coordinator digest vs. host feature matrix`
`static-only`
`validated-manual:lab:satellite-linked-members@2026-11-13` | | `kiro` | ✅ supported | 🧪 validated-test | State tools follow `teamRoot` transparently, but the digest reads `.squad/team.md` literally and never mentions `teamRoot`/`stateLocation`, so a satellite repo may look like Init Mode to the host coordinator; the digest's **Linked team** rule reads team files only through `squad_state`. _Finding F4 candidate — validate. Live run blocked on 2026-10-22: kiro quota/usage limit reached on the reference machine. Expected-fail digest gap (per-host it.fails in test/clients.test.ts): unsupported on this host until the section ships._ | `validated-test:test/resolution.test.ts::*`
`validated-test:test/claude-linked-team.test.ts::every coordinator digest reads a linked team through squad_state`
`validated-test:test/squad-20-host-feature-matrix.test.ts::state-mcp follows config.json teamRoot from a satellite repo (remote mode)`
`validated-test:test/clients.test.ts::coordinator digest vs. host feature matrix`
`static-only` | -| `opencode` | ✅ supported | 🧪 validated-test | The state bridge follows `config.json.teamRoot`, so the host coordinator read the team-root roster via `squad_state_read` and did not enter Init Mode, even though the digest has no team-root section; the digest's **Linked team** rule reads team files only through `squad_state`. _Live: roster served from `..\base`; no casting attempted._ | `validated-test:test/resolution.test.ts::*`
`validated-test:test/claude-linked-team.test.ts::every coordinator digest reads a linked team through squad_state`
`validated-manual:lab:satellite-remote@2026-10-22`
`validated-test:test/squad-20-host-feature-matrix.test.ts::state-mcp follows config.json teamRoot from a satellite repo (remote mode)`
`validated-test:test/clients.test.ts::coordinator digest vs. host feature matrix`
`static-only` | +| `opencode` | ✅ supported | 🧪 validated-test | The state bridge follows `config.json.teamRoot`, so the host coordinator read the team-root roster via `squad_state_read` and did not enter Init Mode, even though the digest has no team-root section; the digest's **Linked team** rule reads team files only through `squad_state`. _Live: roster served from `..\\base`; no casting attempted._ | `validated-test:test/resolution.test.ts::*`
`validated-test:test/claude-linked-team.test.ts::every coordinator digest reads a linked team through squad_state`
`validated-manual:lab:satellite-remote@2026-10-22`
`validated-test:test/squad-20-host-feature-matrix.test.ts::state-mcp follows config.json teamRoot from a satellite repo (remote mode)`
`validated-test:test/clients.test.ts::coordinator digest vs. host feature matrix`
`static-only` | | `cursor` | ✅ supported | 🧪 validated-test | State tools follow `teamRoot` transparently, but the digest reads `.squad/team.md` literally and never mentions `teamRoot`/`stateLocation`, so a satellite repo may look like Init Mode to the host coordinator; the digest's **Linked team** rule reads team files only through `squad_state`. _Finding F4 candidate — validate. Live run blocked on 2026-10-22: cursor quota/usage limit reached on the reference machine. Expected-fail digest gap (per-host it.fails in test/clients.test.ts): unsupported on this host until the section ships._ | `validated-test:test/resolution.test.ts::*`
`validated-test:test/claude-linked-team.test.ts::every coordinator digest reads a linked team through squad_state`
`validated-test:test/squad-20-host-feature-matrix.test.ts::state-mcp follows config.json teamRoot from a satellite repo (remote mode)`
`validated-test:test/clients.test.ts::coordinator digest vs. host feature matrix`
`static-only` | | `codex` | ✅ supported | 🧪 validated-test | State tools follow `teamRoot` transparently, but the digest reads `.squad/team.md` literally and never mentions `teamRoot`/`stateLocation`, so a satellite repo may look like Init Mode to the host coordinator; the digest's **Linked team** rule reads team files only through `squad_state`. _Finding F4 candidate — validate. No Codex binary or ChatGPT/API auth on the reference machine; static-only. Expected-fail digest gap (per-host it.fails in test/clients.test.ts): unsupported on this host until the section ships._ | `validated-test:test/resolution.test.ts::*`
`validated-test:test/claude-linked-team.test.ts::every coordinator digest reads a linked team through squad_state`
`validated-test:test/squad-20-host-feature-matrix.test.ts::state-mcp follows config.json teamRoot from a satellite repo (remote mode)`
`validated-test:test/clients.test.ts::coordinator digest vs. host feature matrix`
`static-only` | | `antigravity` | ✅ supported | 🧪 validated-test | State tools follow `teamRoot` transparently, but the digest reads `.squad/team.md` literally and never mentions `teamRoot`/`stateLocation`, so a satellite repo may look like Init Mode to the host coordinator; the digest's **Linked team** rule reads team files only through `squad_state`. _Finding F4 candidate — validate. Live run blocked on 2026-10-22: antigravity quota/usage limit reached on the reference machine. Expected-fail digest gap (per-host it.fails in test/clients.test.ts): unsupported on this host until the section ships._ | `validated-test:test/resolution.test.ts::*`
`validated-test:test/claude-linked-team.test.ts::every coordinator digest reads a linked team through squad_state`
`validated-test:test/squad-20-host-feature-matrix.test.ts::state-mcp follows config.json teamRoot from a satellite repo (remote mode)`
`validated-test:test/clients.test.ts::coordinator digest vs. host feature matrix`
`static-only` | @@ -1021,7 +1021,7 @@ Headless real-CLI runs behind the `validated-manual:lab:` evidence ent | 2026-10-22 | `claude` | upstream | ✅ pass | `mcp__squad_state__squad_state_read`, `Bash` | Found SEVEN-SECOND-TIMEOUT decision and ORG-LOG-PREFIX skill by reading the upstream path from upstream.json. | | 2026-10-22 | `claude` | cross-squad | ✅ pass | `Read`, `Bash` | Loaded cross-squad + cross-squad-communication skills, read squad-registry.json and peer manifest, prepared `squad delegate peer-b …`, no issue created, no ad-hoc subagents. | | 2026-10-22 | `claude` | mono-subfolder | ✅ pass | `mcp__squad_state__squad_state_read` | From packages/api with --mcp-config /.mcp.json; natively the server is "Pending approval" (F5). | -| 2026-10-22 | `claude` | satellite-remote | ✅ pass | `mcp__squad_state__squad_state_read`, `Read` | Roster served from teamRoot ..\base; no Init Mode. | +| 2026-10-22 | `claude` | satellite-remote | ✅ pass | `mcp__squad_state__squad_state_read`, `Read` | Roster served from teamRoot ..\\base; no Init Mode. | | 2026-10-22 | `claude` | ado-platform | ✅ pass | `Bash`, `Read` | Detected Azure DevOps from the remote; consulted issue-lifecycle.md; proposed az boards/az repos commands; ran only read-only checks. | | 2026-10-22 | `claude` | github-issues-readonly | ✅ pass | `Bash`, `mcp__squad_state__squad_state_read` | gh prerequisites checked; 5 squad-labelled issues listed read-only and routed via routing.md (Lead triages unknown squad:* labels). | | 2026-10-22 | `claude` | state-orphan | ✅ pass | `mcp__squad_state__squad_state_health`, `mcp__squad_state__squad_decide`, `mcp__squad_state__squad_state_list` | Decision committed to the squad-state orphan branch; working tree untouched; health reported the storage class, not "orphan" (F6). | @@ -1037,7 +1037,7 @@ Headless real-CLI runs behind the `validated-manual:lab:` evidence ent | 2026-10-22 | `opencode` | upstream | ⚠️ partial | `squad_state_squad_state_read`, `Bash` | Found the upstream decision; missed the `.copilot/skills` skill living beside the upstream `.squad/`. | | 2026-10-22 | `opencode` | cross-squad | ✅ pass | `Read`, `Bash` | Loaded cross-squad + cross-squad-communication skills, read squad-registry.json and peer manifest, prepared `squad delegate peer-b …`, no issue created, no ad-hoc subagents. | | 2026-10-22 | `opencode` | mono-subfolder | ✅ pass | `squad_state_squad_state_read` | From packages/api; opencode.json and agent resolved from the repo root. | -| 2026-10-22 | `opencode` | satellite-remote | ✅ pass | `squad_state_squad_state_read`, `Read` | Roster served from teamRoot ..\base; no Init Mode. | +| 2026-10-22 | `opencode` | satellite-remote | ✅ pass | `squad_state_squad_state_read`, `Read` | Roster served from teamRoot ..\\base; no Init Mode. | | 2026-10-22 | `opencode` | ado-platform | ✅ pass | `Bash`, `Read` | Detected Azure DevOps from the remote; consulted issue-lifecycle.md; proposed az boards/az repos commands; ran only read-only checks. | | 2026-10-22 | `opencode` | github-issues-readonly | ✅ pass | `Bash`, `squad_state_squad_state_read` | gh prerequisites checked; 5 squad-labelled issues listed read-only and routed via routing.md (Lead triages unknown squad:* labels). | | 2026-10-22 | `opencode` | state-orphan | ✅ pass | `squad_state_squad_state_health`, `squad_state_squad_decide`, `squad_state_squad_state_list` | Decision committed to the squad-state orphan branch; working tree untouched; health reported the storage class, not "orphan" (F6). | diff --git a/docs/src/content/docs/scenarios/upgrading.md b/docs/src/content/docs/scenarios/upgrading.md index 697fe54f0..b84b849fc 100644 --- a/docs/src/content/docs/scenarios/upgrading.md +++ b/docs/src/content/docs/scenarios/upgrading.md @@ -183,12 +183,9 @@ Every row below is a pinned, published artifact of an older Squad release driven ### Runs -All recorded runs executed against **one tree**, commit `9b254ba858abc19ef62e513993d9802312bfe34c`, with harness hash `a9713d320fdb479c…` (sha256 over the suite, renderer, workflow, fs hook and this fixture minus `runs`; the integrity test refuses a recorded run whose harness differs from the committed one, so folding results may change nothing but the runs data). +_No runs recorded yet. The CI workflow `squad-upgrade-matrix.yml` records a run per OS at the tree under test; fold both artifacts with `node scripts/render-upgrade-matrix.mjs --merge `._ -| Platform | Arch | Node | Target | Tree (targetSha) | Trigger | Recorded | Outcome | -|----------|------|------|--------|------------------|---------|----------|---------| -| Linux (`linux`) | x64 | v22.23.4 | v2.0.0-preview.4 | `9b254ba858ab` | [pull_request](https://github.com/github/squad/actions/runs/43147851248) | 2026-11-12 | 35 rows passed all non-xfail assertions; 4 of them carry a known expected failure (F3: Squad 0.9.1 squad upgrade --dry-run is not dry); 0 rows failed; 7 rows are structurally inapplicable (listed below). | -| Windows (`win32`) | x64 | v22.23.4 | v2.0.0-preview.4 | `9b254ba858ab` | [pull_request](https://github.com/github/squad/actions/runs/43147851248) | 2026-11-12 | 35 rows passed all non-xfail assertions; 4 of them carry a known expected failure (F3: Squad 0.9.1 squad upgrade --dry-run is not dry); 0 rows failed; 7 rows are structurally inapplicable (listed below). | +_Earlier runs remain in `historicalRuns` in the fixture; they do not attest the current harness._ ### Producers (pinned, immutable provenance) @@ -217,50 +214,50 @@ npm tarballs are fetched by exact version through the registry npm is configured ### Results (version × shape × OS) -| Producer | Provenance | Shape | Linux | Windows | -|----------|------------|-------|---|---| -| **0.9.1** | npm | `default` | ✅⚠️ pass WITH known destructive downgrade-probe failure (F3) | ✅⚠️ pass WITH known destructive downgrade-probe failure (F3) | -| **0.9.1** | npm | `profile` | ✅⚠️ pass WITH known destructive downgrade-probe failure (F3) | ✅⚠️ pass WITH known destructive downgrade-probe failure (F3) | -| **0.9.1** | npm | `legacy-casting` | ✅⚠️ pass WITH known destructive downgrade-probe failure (F3) | ✅⚠️ pass WITH known destructive downgrade-probe failure (F3) | -| **0.9.1** | npm | `orphan` | ⏭️ not applicable — `@bradygaster/squad-cli@0.9.1` has no `--state-backend` flag (first shipped in 0.13.x), so an orphan-backend project cannot be produced by it. | ⏭️ not applicable — `@bradygaster/squad-cli@0.9.1` has no `--state-backend` flag (first shipped in 0.13.x), so an orphan-backend project cannot be produced by it. | -| **0.9.1** | npm | `two-layer` | ⏭️ not applicable — `@bradygaster/squad-cli@0.9.1` has no `--state-backend` flag (first shipped in 0.13.x), so a two-layer-backend project cannot be produced by it. | ⏭️ not applicable — `@bradygaster/squad-cli@0.9.1` has no `--state-backend` flag (first shipped in 0.13.x), so a two-layer-backend project cannot be produced by it. | -| **0.9.1** | npm | `ai-team` | ✅⚠️ pass WITH known destructive downgrade-probe failure (F3) | ✅⚠️ pass WITH known destructive downgrade-probe failure (F3) | -| **0.9.1** | npm | `upstream` | ⏭️ not applicable — Upstream inheritance (`.squad/upstream.json`, `squad upstream add`) is a Squad 2.0 feature; 0.9.1 cannot declare an upstream, so there is nothing for the upgrade to preserve. | ⏭️ not applicable — Upstream inheritance (`.squad/upstream.json`, `squad upstream add`) is a Squad 2.0 feature; 0.9.1 cannot declare an upstream, so there is nothing for the upgrade to preserve. | -| **0.13.1** | npm | `default` | ✅ pass | ✅ pass | -| **0.13.1** | npm | `profile` | ✅ pass | ✅ pass | -| **0.13.1** | npm | `legacy-casting` | ✅ pass | ✅ pass | -| **0.13.1** | npm | `orphan` | ✅ pass | ✅ pass | -| **0.13.1** | npm | `two-layer` | ✅ pass | ✅ pass | -| **0.13.1** | npm | `ai-team` | ✅ pass | ✅ pass | -| **0.13.1** | npm | `upstream` | ⏭️ not applicable — Upstream inheritance (`.squad/upstream.json`, `squad upstream add`) is a Squad 2.0 feature; 0.13.1 cannot declare an upstream, so there is nothing for the upgrade to preserve. | ⏭️ not applicable — Upstream inheritance (`.squad/upstream.json`, `squad upstream add`) is a Squad 2.0 feature; 0.13.1 cannot declare an upstream, so there is nothing for the upgrade to preserve. | -| **1.0.0** | npm | `default` | ✅ pass | ✅ pass | -| **1.0.0** | npm | `profile` | ✅ pass | ✅ pass | -| **1.0.0** | npm | `legacy-casting` | ✅ pass | ✅ pass | -| **1.0.0** | npm | `orphan` | ✅ pass | ✅ pass | -| **1.0.0** | npm | `two-layer` | ✅ pass | ✅ pass | -| **1.0.0** | npm | `ai-team` | ✅ pass | ✅ pass | -| **1.0.0** | npm | `upstream` | ⏭️ not applicable — Upstream inheritance (`.squad/upstream.json`, `squad upstream add`) is a Squad 2.0 feature; 1.0.0 cannot declare an upstream, so there is nothing for the upgrade to preserve. | ⏭️ not applicable — Upstream inheritance (`.squad/upstream.json`, `squad upstream add`) is a Squad 2.0 feature; 1.0.0 cannot declare an upstream, so there is nothing for the upgrade to preserve. | -| **1.0.1** | GitHub Release | `default` | ✅ pass | ✅ pass | -| **1.0.1** | GitHub Release | `profile` | ✅ pass | ✅ pass | -| **1.0.1** | GitHub Release | `legacy-casting` | ✅ pass | ✅ pass | -| **1.0.1** | GitHub Release | `orphan` | ✅ pass | ✅ pass | -| **1.0.1** | GitHub Release | `two-layer` | ✅ pass | ✅ pass | -| **1.0.1** | GitHub Release | `ai-team` | ✅ pass | ✅ pass | -| **1.0.1** | GitHub Release | `upstream` | ⏭️ not applicable — Upstream inheritance (`.squad/upstream.json`, `squad upstream add`) is a Squad 2.0 feature; 1.0.1 cannot declare an upstream, so there is nothing for the upgrade to preserve. | ⏭️ not applicable — Upstream inheritance (`.squad/upstream.json`, `squad upstream add`) is a Squad 2.0 feature; 1.0.1 cannot declare an upstream, so there is nothing for the upgrade to preserve. | -| **1.1.0** | GitHub Release | `default` | ✅ pass | ✅ pass | -| **1.1.0** | GitHub Release | `profile` | ✅ pass | ✅ pass | -| **1.1.0** | GitHub Release | `legacy-casting` | ✅ pass | ✅ pass | -| **1.1.0** | GitHub Release | `orphan` | ✅ pass | ✅ pass | -| **1.1.0** | GitHub Release | `two-layer` | ✅ pass | ✅ pass | -| **1.1.0** | GitHub Release | `ai-team` | ✅ pass | ✅ pass | -| **1.1.0** | GitHub Release | `upstream` | ⏭️ not applicable — Upstream inheritance (`.squad/upstream.json`, `squad upstream add`) is a Squad 2.0 feature; 1.1.0 cannot declare an upstream, so there is nothing for the upgrade to preserve. | ⏭️ not applicable — Upstream inheritance (`.squad/upstream.json`, `squad upstream add`) is a Squad 2.0 feature; 1.1.0 cannot declare an upstream, so there is nothing for the upgrade to preserve. | -| **HEAD** | local HEAD (pack) | `default` | ✅ pass | ✅ pass | -| **HEAD** | local HEAD (pack) | `profile` | ✅ pass | ✅ pass | -| **HEAD** | local HEAD (pack) | `legacy-casting` | ✅ pass | ✅ pass | -| **HEAD** | local HEAD (pack) | `orphan` | ✅ pass | ✅ pass | -| **HEAD** | local HEAD (pack) | `two-layer` | ✅ pass | ✅ pass | -| **HEAD** | local HEAD (pack) | `ai-team` | ✅ pass | ✅ pass | -| **HEAD** | local HEAD (pack) | `upstream` | ✅ pass | ✅ pass | +| Producer | Provenance | Shape | (no runs yet) | +|----------|------------|-------|---| +| **0.9.1** | npm | `default` | — | +| **0.9.1** | npm | `profile` | — | +| **0.9.1** | npm | `legacy-casting` | — | +| **0.9.1** | npm | `orphan` | ⏭️ not applicable (see below) | +| **0.9.1** | npm | `two-layer` | ⏭️ not applicable (see below) | +| **0.9.1** | npm | `ai-team` | — | +| **0.9.1** | npm | `upstream` | ⏭️ not applicable (see below) | +| **0.13.1** | npm | `default` | — | +| **0.13.1** | npm | `profile` | — | +| **0.13.1** | npm | `legacy-casting` | — | +| **0.13.1** | npm | `orphan` | — | +| **0.13.1** | npm | `two-layer` | — | +| **0.13.1** | npm | `ai-team` | — | +| **0.13.1** | npm | `upstream` | ⏭️ not applicable (see below) | +| **1.0.0** | npm | `default` | — | +| **1.0.0** | npm | `profile` | — | +| **1.0.0** | npm | `legacy-casting` | — | +| **1.0.0** | npm | `orphan` | — | +| **1.0.0** | npm | `two-layer` | — | +| **1.0.0** | npm | `ai-team` | — | +| **1.0.0** | npm | `upstream` | ⏭️ not applicable (see below) | +| **1.0.1** | GitHub Release | `default` | — | +| **1.0.1** | GitHub Release | `profile` | — | +| **1.0.1** | GitHub Release | `legacy-casting` | — | +| **1.0.1** | GitHub Release | `orphan` | — | +| **1.0.1** | GitHub Release | `two-layer` | — | +| **1.0.1** | GitHub Release | `ai-team` | — | +| **1.0.1** | GitHub Release | `upstream` | ⏭️ not applicable (see below) | +| **1.1.0** | GitHub Release | `default` | — | +| **1.1.0** | GitHub Release | `profile` | — | +| **1.1.0** | GitHub Release | `legacy-casting` | — | +| **1.1.0** | GitHub Release | `orphan` | — | +| **1.1.0** | GitHub Release | `two-layer` | — | +| **1.1.0** | GitHub Release | `ai-team` | — | +| **1.1.0** | GitHub Release | `upstream` | ⏭️ not applicable (see below) | +| **HEAD** | local HEAD (pack) | `default` | — | +| **HEAD** | local HEAD (pack) | `profile` | — | +| **HEAD** | local HEAD (pack) | `legacy-casting` | — | +| **HEAD** | local HEAD (pack) | `orphan` | — | +| **HEAD** | local HEAD (pack) | `two-layer` | — | +| **HEAD** | local HEAD (pack) | `ai-team` | — | +| **HEAD** | local HEAD (pack) | `upstream` | — | ### Not-applicable cells, each explained @@ -389,23 +386,6 @@ Observed: `idempotent-second-upgrade` fails with exactly `.github/agents/squad.a Resolved: Fixed on squad2-c @ 50afa91a (PR #2279): `runUpgrade` runs `preflightCastingPair()` (ensureCastingDefaults) before `writeAgentTemplate` in both the already-current and the normal path, so a 0.9.x project with an empty `.squad/casting/` gets the `` block on the first upgrade and the second upgrade is byte-identical (C test: `test/upgrade-profile-teamroot.test.ts` › "F4: a 0.9.x project (empty casting/) upgrades in ONE pass"). Verified by this matrix: with the pin still in place, `idempotent-second-upgrade` produced `xpass` on exactly 0.9.1 × default/profile/ai-team; the pin is removed. -### Unsupported downgrade — what each old CLI does to an upgraded repository - -Recorded by the `downgrade-probe` check (dry-run on a copy; the only assertion is "modified nothing"). This is **not** a supported path — see the warning at the top of this section. - -| Platform | Producer | Shapes | Observed | -|----------|----------|--------|----------| -| `linux` | 0.9.1 | all 4 shapes | exit 0, last lines "✓ refreshed .squad/templates/ \| Upgrade complete: v2.0.0-preview.4 → v0.9.1 \| Preserves user state: team.md, decisions/, agents/*/history.md"; MODIFIED 68 files (20 coordinator/templates/workflows, e.g. .copilot/skills/agent-collaboration/SKILL.md, .copilot/skills/agent-conduct/SKILL.md, .copilot/skills/architectural-proposals/SKILL.md …) | -| `linux` | 0.13.1 | all 6 shapes | exit 0, last lines "overwrite ../.github/workflows/squad-triage.yml \| overwrite ../.github/workflows/sync-squad-labels.yml \| Run without --dry-run to apply."; modified nothing | -| `linux` | 1.0.0 | all 6 shapes | exit 0, last lines "overwrite ../.github/workflows/squad-triage.yml \| overwrite ../.github/workflows/sync-squad-labels.yml \| Run without --dry-run to apply."; modified nothing | -| `linux` | 1.0.1 | all 6 shapes | exit 0, last lines "overwrite ../.github/workflows/squad-triage.yml \| overwrite ../.github/workflows/sync-squad-labels.yml \| Run without --dry-run to apply."; modified nothing | -| `linux` | 1.1.0 | all 6 shapes | exit 0, last lines "overwrite ../.github/workflows/squad-triage.yml \| overwrite ../.github/workflows/sync-squad-labels.yml \| Run without --dry-run to apply."; modified nothing | -| `win32` | 0.9.1 | all 4 shapes | exit 0, last lines "✓ refreshed .squad/templates/ \| Upgrade complete: v2.0.0-preview.4 → v0.9.1 \| Preserves user state: team.md, decisions/, agents/*/history.md"; MODIFIED 67 files (20 coordinator/templates/workflows, e.g. .copilot/skills/agent-collaboration/SKILL.md, .copilot/skills/agent-conduct/SKILL.md, .copilot/skills/architectural-proposals/SKILL.md …) | -| `win32` | 0.13.1 | all 6 shapes | exit 0, last lines "overwrite ../.github/workflows/squad-triage.yml \| overwrite ../.github/workflows/sync-squad-labels.yml \| Run without --dry-run to apply."; modified nothing | -| `win32` | 1.0.0 | all 6 shapes | exit 0, last lines "overwrite ../.github/workflows/squad-triage.yml \| overwrite ../.github/workflows/sync-squad-labels.yml \| Run without --dry-run to apply."; modified nothing | -| `win32` | 1.0.1 | all 6 shapes | exit 0, last lines "overwrite ../.github/workflows/squad-triage.yml \| overwrite ../.github/workflows/sync-squad-labels.yml \| Run without --dry-run to apply."; modified nothing | -| `win32` | 1.1.0 | all 6 shapes | exit 0, last lines "overwrite ../.github/workflows/squad-triage.yml \| overwrite ../.github/workflows/sync-squad-labels.yml \| Run without --dry-run to apply."; modified nothing | - --- diff --git a/packages/squad-cli/src/cli/commands/doctor.ts b/packages/squad-cli/src/cli/commands/doctor.ts index 8df11ad03..9a1d14e21 100644 --- a/packages/squad-cli/src/cli/commands/doctor.ts +++ b/packages/squad-cli/src/cli/commands/doctor.ts @@ -101,7 +101,7 @@ function detectMode(cwd: string): ModeInfo { export function teamRootIsThisProject(cwd: string, teamRoot: string): boolean { const resolved = path.resolve(cwd, teamRoot); const normalize = (p: string) => { - const n = path.resolve(p).replace(/[\\/]+$/, ''); + const n = path.resolve(p).replace(/[\\/]$/, ''); return process.platform === 'win32' ? n.toLowerCase() : n; }; const target = normalize(resolved); diff --git a/packages/squad-cli/src/cli/commands/migrate.ts b/packages/squad-cli/src/cli/commands/migrate.ts index 952a4689d..97d8479d6 100644 --- a/packages/squad-cli/src/cli/commands/migrate.ts +++ b/packages/squad-cli/src/cli/commands/migrate.ts @@ -373,10 +373,12 @@ function generateSquadConfig( } /** - * Escape single quotes in string literals + * Escape content for a single-quoted JavaScript string literal. */ function escapeString(str: string): string { - return str.replace(/'/g, "\\'").replace(/\n/g, '\\n'); + return str.replace(/\\/g, '\\\\').replace(/'/g, "\\'") + .replace(/\r/g, '\\r').replace(/\n/g, '\\n') + .replace(/\u2028/g, '\\u2028').replace(/\u2029/g, '\\u2029'); } /** diff --git a/packages/squad-cli/src/cli/core/team-md.ts b/packages/squad-cli/src/cli/core/team-md.ts index 5eff469c8..d61d49673 100644 --- a/packages/squad-cli/src/cli/core/team-md.ts +++ b/packages/squad-cli/src/cli/core/team-md.ts @@ -90,7 +90,14 @@ export function insertCopilotSection(content: string, autoAssign: boolean = fals * Remove @copilot section from team.md */ export function removeCopilotSection(content: string): string { - return content.replace(/\n## Coding Agent\n[\s\S]*?(?=\n## |\n*$)/, ''); + const heading = '\n## Coding Agent\n'; + const start = content.indexOf(heading); + if (start === -1) return content; + const nextSection = content.indexOf('\n## ', start + heading.length); + if (nextSection !== -1) return content.slice(0, start) + content.slice(nextSection); + let end = content.length; + while (end > start + heading.length && content[end - 1] === '\n') end--; + return content.slice(0, start) + content.slice(end); } /** diff --git a/packages/squad-cli/src/cli/core/upgrade.ts b/packages/squad-cli/src/cli/core/upgrade.ts index 4b336c62c..7e7101a64 100644 --- a/packages/squad-cli/src/cli/core/upgrade.ts +++ b/packages/squad-cli/src/cli/core/upgrade.ts @@ -10,6 +10,7 @@ import { fileURLToPath, pathToFileURL } from 'node:url'; import { FSStorageProvider, stripTeamCapabilitiesBlock, syncTeamCapabilities } from '@bradygaster/squad-sdk'; import { clearResolveSquadCache, isRetiredProfileTeamRoot } from '@bradygaster/squad-sdk/resolution'; import { squadRepoLauncherScript } from '@bradygaster/squad-sdk/client'; +import { detectPlatformFromUrl } from '@bradygaster/squad-sdk/platform'; import { backfillCastingRegistryFromTeam, detectHistoricalCastingSchema, @@ -271,8 +272,7 @@ function detectIsGitHubForMcp(dest: string, config: Record): bo try { const remoteUrl = execFileSync('git', ['remote', 'get-url', 'origin'], { cwd: dest, encoding: 'utf-8', stdio: ['pipe', 'pipe', 'pipe'] }).trim(); - const remoteUrlLower = remoteUrl.toLowerCase(); - if (remoteUrlLower.includes('dev.azure.com') || remoteUrlLower.includes('visualstudio.com') || remoteUrlLower.includes('ssh.dev.azure.com')) { + if (detectPlatformFromUrl(remoteUrl) === 'azure-devops') { return false; } } catch { @@ -332,7 +332,7 @@ function stripRetiredProfileTeamRoot(squadDir: string, dest: string, dryRun: boo */ export function stripAgentStamps(s: string): string { return s - .replace(/\n?/g, '') + .replace(/\n?/g, '') .replace(//g, '') .replace(/- \*\*Version:\*\* \S+/g, '- **Version:** X') .replace(/`Squad v[^`]+`/g, '`Squad vX`') @@ -1893,11 +1893,12 @@ export function detectSelfUpgradeTag(currentVersion: string): SelfUpgradeTag { /** The exact command `selfUpgradeCli` runs for a package manager and dist-tag. */ export function selfUpgradeCommand(packageManager: SelfUpgradePackageManager, insiderOrTag: boolean | SelfUpgradeTag): string { const tag: SelfUpgradeTag = typeof insiderOrTag === 'boolean' ? (insiderOrTag ? 'insider' : 'latest') : insiderOrTag; - const pkg = `@bradygaster/squad-cli@${tag}`; + if (tag !== 'latest' && tag !== 'insider') throw new Error('Invalid self-upgrade tag'); switch (packageManager) { - case 'pnpm': return `pnpm add -g ${pkg}`; - case 'yarn': return `yarn global add ${pkg}`; - default: return `npm install -g ${pkg}`; + case 'pnpm': return tag === 'insider' ? 'pnpm add -g @bradygaster/squad-cli@insider' : 'pnpm add -g @bradygaster/squad-cli@latest'; + case 'yarn': return tag === 'insider' ? 'yarn global add @bradygaster/squad-cli@insider' : 'yarn global add @bradygaster/squad-cli@latest'; + case 'npm': return tag === 'insider' ? 'npm install -g @bradygaster/squad-cli@insider' : 'npm install -g @bradygaster/squad-cli@latest'; + default: throw new Error('Invalid self-upgrade package manager'); } } diff --git a/packages/squad-cli/src/cli/shell/index.ts b/packages/squad-cli/src/cli/shell/index.ts index 7c87f1946..1ce5621d7 100644 --- a/packages/squad-cli/src/cli/shell/index.ts +++ b/packages/squad-cli/src/cli/shell/index.ts @@ -1275,9 +1275,14 @@ export async function runShell(): Promise { recordShellError('dispatch', err instanceof Error ? err.constructor.name : 'unknown'); const errorMsg = err instanceof Error ? err.message : String(err); if (shellApi) { + const quotaExceeded = errorMsg.toLowerCase().split(/[\r\n\u2028\u2029]/).some((line) => { + const quota = line.indexOf('quota'); + return quota !== -1 && line.indexOf('exceed', quota + 5) !== -1; + }); const isRateLimit = err instanceof RateLimitError || - /rate.?limit|quota.*exceed|429/i.test(errorMsg); + /rate.?limit|429/i.test(errorMsg) || + quotaExceeded; let guidance; if (isRateLimit) { const retryAfter = diff --git a/packages/squad-sdk/src/agents/onboarding.ts b/packages/squad-sdk/src/agents/onboarding.ts index fe4433c6d..30d476c18 100644 --- a/packages/squad-sdk/src/agents/onboarding.ts +++ b/packages/squad-sdk/src/agents/onboarding.ts @@ -444,6 +444,24 @@ export async function onboardAgent( * @param role - Agent role * @returns True if config was updated, false if not found or JSON format */ +function findRulesArray(content: string): { start: number; end: number; entries: string } | undefined { + const start = /rules:\s*\[/.exec(content); + if (!start) return undefined; + const entriesStart = start.index + start[0].length; + let cursor = entriesStart; + while (cursor < content.length) { + const close = content.indexOf(']', cursor); + if (close === -1) return undefined; + let after = close + 1; + while (after < content.length && /\s/.test(content[after]!)) after++; + if (after < content.length && ',})'.includes(content[after]!)) { + return { start: start.index, end: close + 1, entries: content.slice(entriesStart, close) }; + } + cursor = close + 1; + } + return undefined; +} + export async function addAgentToConfig( teamRoot: string, agentName: string, @@ -527,21 +545,18 @@ export async function addAgentToConfig( if (workType) { const workTypePattern = new RegExp(`workType:\\s*['"]${workType}['"]`); if (!workTypePattern.test(updatedContent)) { - const rulesPattern = /rules:\s*\[([\s\S]*?)\](?=\s*[,}\)])/; - const rulesMatch = updatedContent.match(rulesPattern); + const rulesMatch = findRulesArray(updatedContent); if (rulesMatch) { const newRule = ` { workType: '${workType}', agents: ['@${agentName}'], confidence: 'high' }`; - const existingRules = rulesMatch[1]!.trimEnd(); + const existingRules = rulesMatch.entries.trimEnd(); const separator = existingRules.trim() ? ',\n' : '\n'; const updatedRules = existingRules + separator + newRule; - updatedContent = updatedContent.replace( - rulesPattern, - `rules: [${updatedRules}\n ]` - ); + updatedContent = updatedContent.slice(0, rulesMatch.start) + + `rules: [${updatedRules}\n ]` + updatedContent.slice(rulesMatch.end); modified = true; } } diff --git a/packages/squad-sdk/src/backend/durable-http-backend.ts b/packages/squad-sdk/src/backend/durable-http-backend.ts index 97bd878db..154c93588 100644 --- a/packages/squad-sdk/src/backend/durable-http-backend.ts +++ b/packages/squad-sdk/src/backend/durable-http-backend.ts @@ -232,7 +232,9 @@ export function validateBaseUrl(baseUrl: string | undefined): string { `baseUrl must use https:// (plain http:// is allowed only for localhost / 127.0.0.1 / ::1); got '${url.protocol}//${url.host}'`, 400); } if (url.username || url.password) throw new BackendError('invalid-request', 'baseUrl must not embed credentials', 400); - return baseUrl.replace(/\/+$/, ''); + let end = baseUrl.length; + while (end > 0 && baseUrl[end - 1] === '/') end--; + return baseUrl.slice(0, end); } function toError(res: Response, text: string): BackendError { diff --git a/packages/squad-sdk/src/casting/handwritten-registry.ts b/packages/squad-sdk/src/casting/handwritten-registry.ts index 98dcaf319..03a83efe9 100644 --- a/packages/squad-sdk/src/casting/handwritten-registry.ts +++ b/packages/squad-sdk/src/casting/handwritten-registry.ts @@ -66,7 +66,7 @@ export function toAgentId(value: string): string { .replace(/[\u0300-\u036f]/g, '') .toLowerCase() .replace(/[^a-z0-9]+/g, '-') - .replace(/^-+|-+$/g, ''); + .replace(/^-|-$/g, ''); } export interface DroppedRecord { name: string; reason: string } @@ -757,13 +757,24 @@ export interface TeamRosterMember { charterId?: string; } -const UNIVERSE_LINE = /^\s*(?:[-*]\s+)?\*{0,2}universe\*{0,2}\s*:\s*\*{0,2}\s*([^\n|*]+?)\s*$/im; -const UNIVERSE_CELL = /^\s*\|\s*\*{0,2}universe\*{0,2}\s*\|\s*([^|\n]+?)\s*\|/im; +const UNIVERSE_LINE = /^(?:[-*]\s+)?\*{0,2}universe\*{0,2}\s*:(.*)$/i; +const UNIVERSE_CELL = /^\|\s*\*{0,2}universe\*{0,2}\s*\|([^|]+)\|/i; /** Parse specialist rows from `team.md` (`## Members` table, else the first Name/Role table). */ export function parseTeamRoster(teamMd: string): { members: TeamRosterMember[]; universe?: string } { - const universe = (UNIVERSE_LINE.exec(teamMd)?.[1] ?? UNIVERSE_CELL.exec(teamMd)?.[1])?.replace(/[*_`]/g, '').trim(); const lines = teamMd.split(/\r?\n/); + let universeLine: string | undefined; + let universeCell: string | undefined; + for (const line of lines) { + const text = line.trim(); + const lineMatch = UNIVERSE_LINE.exec(text); + if (universeLine === undefined && lineMatch) { + const candidate = lineMatch[1]!.trimStart().replace(/^\*{0,2}/, '').trimStart(); + if (candidate && !/[*|]/.test(candidate)) universeLine = candidate; + } + if (universeCell === undefined) universeCell = UNIVERSE_CELL.exec(text)?.[1]; + } + const universe = (universeLine ?? universeCell)?.replace(/[*_`]/g, '').trim(); const membersHeading = lines.findIndex((l) => /^##\s+members\b/i.test(l.trim())); const scope = membersHeading === -1 ? lines diff --git a/packages/squad-sdk/src/client/adapters/apply.ts b/packages/squad-sdk/src/client/adapters/apply.ts index cea7e096c..eacbb6910 100644 --- a/packages/squad-sdk/src/client/adapters/apply.ts +++ b/packages/squad-sdk/src/client/adapters/apply.ts @@ -73,7 +73,16 @@ export function removeLines(existing: string, lines: readonly string[], id: stri return rows.join('\n'); } -const SECTION_RE = /^\s*(\[\[?)\s*([^\]\r\n]+?)\s*(\]\]?)\s*(?:#.*)?$/; +const SECTION_RE = /^\s*(\[\[?)([^\]\r\n]+)(\]\]?)\s*(?:#.*)?$/; + +function withoutTrailingLineBreaks(value: string): string { + let end = value.length; + while (end > 0 && value[end - 1] === '\n') { + end--; + if (end > 0 && value[end - 1] === '\r') end--; + } + return value.slice(0, end); +} function segmentsEqual(a: readonly string[], b: readonly string[]): boolean { return a.length === b.length && a.every((s, idx) => s === b[idx]); @@ -471,7 +480,7 @@ export function upsertTomlTable( if (!(k in merged)) merged[k] = v; } const body = Object.entries(merged).map(([k, v]) => `${k} = ${v}`); - const cleanedExisting = lines.join(nl).replace(/(\r?\n)*$/, ''); + const cleanedExisting = withoutTrailingLineBreaks(lines.join(nl)); const prefix = cleanedExisting === '' ? '' : cleanedExisting + nl + nl; return `${prefix}${[header, ...body].join(nl)}${nl}`; } @@ -798,7 +807,7 @@ export function removeTomlTable(existing: string, table: string): string { } if (!changed) return existing; const joined = lines.join(nl); - return joined.trim() === '' ? '' : joined.replace(/(\r?\n)*$/, nl); + return joined.trim() === '' ? '' : withoutTrailingLineBreaks(joined) + nl; } const MCP_CONTAINERS = ['mcpServers', 'mcp', 'servers']; diff --git a/packages/squad-sdk/src/client/adapters/coordinator.ts b/packages/squad-sdk/src/client/adapters/coordinator.ts index 3db15aa4c..818c0bdaf 100644 --- a/packages/squad-sdk/src/client/adapters/coordinator.ts +++ b/packages/squad-sdk/src/client/adapters/coordinator.ts @@ -62,8 +62,11 @@ export const CANONICAL_COORDINATOR_HEADINGS = [ export function extractCanonicalCoordinatorHeadings(markdown: string): string[] { const headings: string[] = []; for (const line of markdown.split(/\r?\n/)) { - const m = /^#{2,3}\s+(.+?)\s*$/.exec(line); - if (m) headings.push(m[1]!); + const count = line.startsWith('###') ? 3 : line.startsWith('##') ? 2 : 0; + if (count && /\s/.test(line.charAt(count))) { + const heading = line.slice(count).trim(); + if (heading) headings.push(heading); + } } return headings; } diff --git a/packages/squad-sdk/src/config/init.ts b/packages/squad-sdk/src/config/init.ts index 417a2d5e4..a9097454a 100644 --- a/packages/squad-sdk/src/config/init.ts +++ b/packages/squad-sdk/src/config/init.ts @@ -22,6 +22,7 @@ import { ensureMemoryGovernanceDefaults } from '../memory/index.js'; import { addSquadStateGitignoreBlock, removeSquadStateGitignoreBlock } from './gitignore-state.js'; import { syncTeamCapabilities } from './team-capabilities.js'; import { ensureCastingRegistryPair } from '../casting/durable-registry.js'; +import { detectPlatformFromUrl } from '../platform/detect.js'; // ============================================================================ // Manifest-Curated Skills (must stay in sync with TEMPLATE_MANIFEST in CLI) @@ -259,6 +260,16 @@ function formatModelArray(chain: readonly string[]): string { return `[${chain.map(m => `'${m}'`).join(', ')}]`; } +function escapeSingleQuotedString(value: string): string { + return value.replace(/\\/g, '\\\\').replace(/'/g, "\\'") + .replace(/\r/g, '\\r').replace(/\n/g, '\\n') + .replace(/\u2028/g, '\\u2028').replace(/\u2029/g, '\\u2029'); +} + +function docCommentText(value: string): string { + return value.replace(/\*\//g, '* /').replace(/\r\n?|\n/g, '\n * '); +} + /** * Generate TypeScript config file content. */ @@ -268,8 +279,8 @@ function generateTypeScriptConfig(options: InitOptions): string { return `import type { SquadConfig } from '@bradygaster/squad'; /** - * Squad Configuration for ${projectName} - * ${projectDescription ? `\n * ${projectDescription}` : ''} + * Squad Configuration for ${docCommentText(projectName)} + * ${projectDescription ? `\n * ${docCommentText(projectDescription)}` : ''} */ const config: SquadConfig = { version: '1.0.0', @@ -427,9 +438,9 @@ function generateSDKBuilderConfig(options: InitOptions): string { // Generate imports let code = `import {\n defineSquad,\n defineTeam,\n defineAgent,\n} from '@bradygaster/squad-sdk';\n\n`; - code += `/**\n * Squad Configuration — ${projectName}\n`; + code += `/**\n * Squad Configuration — ${docCommentText(projectName)}\n`; if (projectDescription) { - code += ` *\n * ${projectDescription}\n`; + code += ` *\n * ${docCommentText(projectDescription)}\n`; } code += ` */\n`; @@ -448,9 +459,9 @@ function generateSDKBuilderConfig(options: InitOptions): string { code += `export default defineSquad({\n`; code += ` version: '1.0.0',\n\n`; code += ` team: defineTeam({\n`; - code += ` name: '${projectName}',\n`; + code += ` name: '${escapeSingleQuotedString(projectName)}',\n`; if (projectDescription) { - code += ` description: '${projectDescription.replace(/'/g, "\\'")}',\n`; + code += ` description: '${escapeSingleQuotedString(projectDescription)}',\n`; } code += ` members: [${agents.map(a => `'${a.name}'`).join(', ')}],\n`; code += ` }),\n\n`; @@ -496,9 +507,9 @@ function generateSDKBuilderConfigWithRoles(options: InitOptions): string { let code = `import {\n${imports.map(i => ` ${i},`).join('\n')}\n} from '@bradygaster/squad-sdk';\n\n`; - code += `/**\n * Squad Configuration — ${projectName}\n`; + code += `/**\n * Squad Configuration — ${docCommentText(projectName)}\n`; if (projectDescription) { - code += ` *\n * ${projectDescription}\n`; + code += ` *\n * ${docCommentText(projectDescription)}\n`; } code += ` *\n * Uses built-in base roles from the role catalog.\n`; code += ` * Customize names and overrides for your project.\n`; @@ -536,9 +547,9 @@ function generateSDKBuilderConfigWithRoles(options: InitOptions): string { code += `export default defineSquad({\n`; code += ` version: '1.0.0',\n\n`; code += ` team: defineTeam({\n`; - code += ` name: '${projectName}',\n`; + code += ` name: '${escapeSingleQuotedString(projectName)}',\n`; if (projectDescription) { - code += ` description: '${projectDescription.replace(/'/g, "\\'")}',\n`; + code += ` description: '${escapeSingleQuotedString(projectDescription)}',\n`; } code += ` members: [${allNames.join(', ')}],\n`; code += ` }),\n\n`; @@ -632,6 +643,23 @@ function titleCase(str: string): string { * Stamp version into squad.agent.md content. * Replaces three locations: HTML comment, Identity Version line, and {version} placeholder. */ +function isSemVer(value: string): boolean { + const [withoutBuild, build, ...extraBuild] = value.split('+'); + if (extraBuild.length > 0) return false; + const validIdentifiers = (text: string, prerelease: boolean): boolean => + text.split('.').every((part) => + /^[0-9A-Za-z-]+$/.test(part) && + !(prerelease && /^\d+$/.test(part) && part.length > 1 && part.startsWith('0')) + ); + if (build !== undefined && !validIdentifiers(build, false)) return false; + const dash = withoutBuild!.indexOf('-'); + const core = dash === -1 ? withoutBuild! : withoutBuild!.slice(0, dash); + const prerelease = dash === -1 ? undefined : withoutBuild!.slice(dash + 1); + if (prerelease !== undefined && !validIdentifiers(prerelease, true)) return false; + const numbers = core.split('.'); + return numbers.length === 3 && numbers.every((part) => /^(?:0|[1-9]\d*)$/.test(part)); +} + function stampVersionInContent(content: string, version: string): string { // HTML comment: content = content.replace( @@ -645,8 +673,10 @@ function stampVersionInContent(content: string, version: string): string { ); // Greeting placeholder or an already-resolved valid SemVer literal. content = content.replace( - /`Squad v(?:\{version\}|(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)(?:-(?:0|[1-9]\d*|[0-9A-Za-z-]*[A-Za-z-][0-9A-Za-z-]*)(?:\.(?:0|[1-9]\d*|[0-9A-Za-z-]*[A-Za-z-][0-9A-Za-z-]*))*)?(?:\+[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?)`/g, - `\`Squad v${version}\``, + /`Squad v(\{version\}|[0-9A-Za-z.+-]+)`/g, + (match, existing: string) => existing === '{version}' || isSemVer(existing) + ? `\`Squad v${version}\`` + : match, ); return content; } @@ -1065,8 +1095,7 @@ All findings logged to \`.squad/fact-checker/audit-trail.md\` (append-only, succ let detectedPlatform: string | undefined; try { const remoteUrl = execFileSync('git', ['remote', 'get-url', 'origin'], { cwd: teamRoot, encoding: 'utf-8', stdio: ['pipe', 'pipe', 'pipe'] }).trim(); - const remoteUrlLower = remoteUrl.toLowerCase(); - if (remoteUrlLower.includes('dev.azure.com') || remoteUrlLower.includes('visualstudio.com') || remoteUrlLower.includes('ssh.dev.azure.com')) { + if (detectPlatformFromUrl(remoteUrl) === 'azure-devops') { detectedPlatform = 'azure-devops'; } } catch { @@ -1463,8 +1492,7 @@ ${projectDescription ? `- **Description:** ${projectDescription}\n` : ''}- **Cre let isGitHub = true; try { const remoteUrl = execFileSync('git', ['remote', 'get-url', 'origin'], { cwd: teamRoot, encoding: 'utf-8', stdio: ['pipe', 'pipe', 'pipe'] }).trim(); - const remoteUrlLower = remoteUrl.toLowerCase(); - if (remoteUrlLower.includes('dev.azure.com') || remoteUrlLower.includes('visualstudio.com') || remoteUrlLower.includes('ssh.dev.azure.com')) { + if (detectPlatformFromUrl(remoteUrl) === 'azure-devops') { isGitHub = false; } } catch { diff --git a/packages/squad-sdk/src/config/team-capabilities.ts b/packages/squad-sdk/src/config/team-capabilities.ts index 4050672fb..2e121cac4 100644 --- a/packages/squad-sdk/src/config/team-capabilities.ts +++ b/packages/squad-sdk/src/config/team-capabilities.ts @@ -170,6 +170,26 @@ const INJECTION_PATTERNS: readonly RegExp[] = [ * @param maxLength - Maximum rendered length (ellipsis added when clamped). * @returns A single-line, structure-safe string. */ +function withoutHtmlComments(value: string): string { + const parts: string[] = []; + let cursor = 0; + while (cursor < value.length) { + const open = value.indexOf('', close)) { close += 3; break; } + if (value.startsWith('--!>', close)) { close += 4; break; } + close++; + } + if (close === -1) return parts.join(''); + cursor = close; + } + parts.push(value.slice(cursor)); + return parts.join(''); +} + export function sanitizeMetadataText(raw: unknown, maxLength: number = MAX_SUMMARY_LENGTH): string { if (typeof raw !== 'string' || raw.length === 0) return ''; @@ -181,8 +201,8 @@ export function sanitizeMetadataText(raw: unknown, maxLength: number = MAX_SUMMA text = text.replace(CONTROL_CHARS, ' '); // HTML comments can smuggle markers, canaries, or directives. - text = text.replace(//g, ' '); - text = text.replace(//g, ' '); + text = withoutHtmlComments(text); + text = text.replace(//g, ' ').replace(/--!>/g, ' '); // Then remove tag-shaped content and escape residual opening brackets. text = text.replace(/<[^<>\n]{0,200}>/g, ' '); text = text.replace(/#*+=~-]+/, ''); text = text.replace(/\s+/g, ' ').trim(); @@ -205,7 +225,9 @@ export function sanitizeMetadataText(raw: unknown, maxLength: number = MAX_SUMMA if (text.length > limit) { text = text.slice(0, Math.max(1, limit - 1)).trimEnd(); // Never leave a dangling escape from a clipped `\|`. - text = text.replace(/\\+$/, '').trimEnd(); + let end = text.length; + while (end > 0 && text[end - 1] === '\\') end--; + text = text.slice(0, end).trimEnd(); text += '…'; } return text; diff --git a/packages/squad-sdk/src/platform/comms-teams.ts b/packages/squad-sdk/src/platform/comms-teams.ts index c364cf52a..796be2d9b 100644 --- a/packages/squad-sdk/src/platform/comms-teams.ts +++ b/packages/squad-sdk/src/platform/comms-teams.ts @@ -778,7 +778,25 @@ function escapeHtml(s: string): string { } function stripHtml(html: string): string { - return html.replace(/<[^>]+>/g, '').replace(/ /g, ' ').replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"').trim(); + const parts: string[] = []; + let cursor = 0; + while (cursor < html.length) { + const open = html.indexOf('<', cursor); + if (open === -1) break; + const close = html.indexOf('>', open + 1); + if (close === -1) break; + if (close === open + 1) { + parts.push(html.slice(cursor, close + 1)); + } else { + parts.push(html.slice(cursor, open)); + } + cursor = close + 1; + } + parts.push(html.slice(cursor)); + const entities: Record = { + ' ': ' ', '&': '&', '<': '<', '>': '>', '"': '"', + }; + return parts.join('').replace(/&(?:nbsp|amp|lt|gt|quot);/g, (entity) => entities[entity]!).trim(); } export { diff --git a/packages/squad-sdk/src/platform/detect.ts b/packages/squad-sdk/src/platform/detect.ts index 9620574c4..b54af80ed 100644 --- a/packages/squad-sdk/src/platform/detect.ts +++ b/packages/squad-sdk/src/platform/detect.ts @@ -66,6 +66,8 @@ function decodeSegment(value: string): string { * https://org.visualstudio.com/project/_git/repo */ export function parseAzureDevOpsRemote(url: string): AzureDevOpsRemoteInfo | null { + if (detectPlatformFromUrl(url) !== 'azure-devops') return null; + // Repo capture allows dots in repo names; the literal `/_git/` segment keeps // the match anchored unambiguously. // HTTPS dev.azure.com: https://dev.azure.com/org/project/_git/repo @@ -104,8 +106,21 @@ export function parseAzureDevOpsRemote(url: string): AzureDevOpsRemoteInfo | nul * Defaults to 'github' if unrecognized. */ export function detectPlatformFromUrl(url: string): PlatformType { - if (/github\.com/i.test(url)) return 'github'; - if (/dev\.azure\.com/i.test(url) || /\.visualstudio\.com/i.test(url) || /ssh\.dev\.azure\.com/i.test(url)) { + const scpRemote = url.match(/^(?:[^@\s/:]+@)?([^:/\s]+):(?=[^/])/); + let hostname: string; + if (scpRemote) { + hostname = scpRemote[1]!.toLowerCase(); + } else { + try { + const parsed = new URL(url); + if (!['http:', 'https:', 'ssh:', 'git:'].includes(parsed.protocol)) return 'github'; + hostname = parsed.hostname.toLowerCase(); + } catch { + return 'github'; + } + } + if (hostname === 'dev.azure.com' || hostname === 'ssh.dev.azure.com' || + (hostname.endsWith('.visualstudio.com') && hostname.length > '.visualstudio.com'.length)) { return 'azure-devops'; } return 'github'; diff --git a/packages/squad-sdk/src/ralph/triage.ts b/packages/squad-sdk/src/ralph/triage.ts index d1fa71df1..ccbf628ea 100644 --- a/packages/squad-sdk/src/ralph/triage.ts +++ b/packages/squad-sdk/src/ralph/triage.ts @@ -283,11 +283,30 @@ function findColumnIndex(headers: string[], candidates: string[]): number { return -1; } +function stripMarkdownLinks(value: string): string { + const parts: string[] = []; + let cursor = 0; + while (cursor < value.length) { + const open = value.indexOf('[', cursor); + if (open === -1) break; + const close = value.indexOf(']', open + 1); + if (close === -1) break; + if (close === open + 1 || value[close + 1] !== '(' || value[close + 2] === ')') { + parts.push(value.slice(cursor, close + 1)); + cursor = close + 1; + continue; + } + const end = value.indexOf(')', close + 2); + if (end === -1) break; + parts.push(value.slice(cursor, open), value.slice(open + 1, close)); + cursor = end + 1; + } + parts.push(value.slice(cursor)); + return parts.join(''); +} + function cleanCell(value: string): string { - return value - .replace(/`/g, '') - .replace(/\[([^\]]+)\]\([^)]+\)/g, '$1') - .trim(); + return stripMarkdownLinks(value.replace(/`/g, '')).trim(); } function splitKeywords(examplesCell: string | undefined): string[] { @@ -321,8 +340,7 @@ function normalizeName(value: string): string { } function normalizeRouteDestination(value: string): string { - return value - .replace(/\[([^\]]+)\]\([^)]+\)/g, '$1') + return stripMarkdownLinks(value) .replace(/[*_`]/g, '') .replace(/\p{Extended_Pictographic}/gu, '') .replace(/[\u200d\ufe0f]/g, '') @@ -389,7 +407,7 @@ function routeMatch( 'specialist', 'system', 'work', ]); const tokens = (value: string): string[] => - value.toLowerCase().match(/[a-z0-9]+(?:[+#.][a-z0-9+#.]*)?(? needle.length > 0 && needle.length <= haystack.length && diff --git a/packages/squad-sdk/src/resolution.ts b/packages/squad-sdk/src/resolution.ts index 0e3e5f16d..aa91e2129 100644 --- a/packages/squad-sdk/src/resolution.ts +++ b/packages/squad-sdk/src/resolution.ts @@ -772,15 +772,22 @@ export function scratchFile(squadRoot: string, prefix: string, ext: string = '.t * @param projectDir - Absolute path to the project root. * @returns A sanitized, lowercase project key suitable for use as a directory name. */ +function withoutEdgeHyphens(value: string): string { + let start = 0; + let end = value.length; + while (start < end && value[start] === '-') start++; + while (end > start && value[end - 1] === '-') end--; + return value.slice(start, end); +} + export function deriveProjectKey(projectDir: string): string { const normalized = projectDir.replace(/\\/g, '/'); const base = path.basename(normalized); if (!base) return 'unknown-project'; - const sanitized = base + const sanitized = withoutEdgeHyphens(base .toLowerCase() - .replace(/[^a-z0-9._-]/g, '-') - .replace(/^-+|-+$/g, ''); + .replace(/[^a-z0-9._-]/g, '-')); return sanitized || 'unknown-project'; } @@ -807,10 +814,9 @@ export function resolveExternalStateDir(projectKey: string, create: boolean = tr } // Sanitize: replace path separators and unsafe chars with dashes - const sanitized = projectKey + const sanitized = withoutEdgeHyphens(projectKey .replace(/[/\\]/g, '-') - .replace(/[^a-zA-Z0-9._-]/g, '-') - .replace(/^-+|-+$/g, ''); + .replace(/[^a-zA-Z0-9._-]/g, '-')); if (!sanitized) { throw new Error('Invalid project key'); diff --git a/packages/squad-sdk/src/state-backend.ts b/packages/squad-sdk/src/state-backend.ts index 228c4bc48..a8f312154 100644 --- a/packages/squad-sdk/src/state-backend.ts +++ b/packages/squad-sdk/src/state-backend.ts @@ -502,8 +502,14 @@ export function validateStateKey(key: string): void { } +function withoutTrailingSlashes(value: string): string { + let end = value.length; + while (end > 0 && value[end - 1] === '/') end--; + return value.slice(0, end); +} + function normalizeKey(relativePath: string): string { - const normalized = relativePath.replace(/\\/g, '/').replace(/^\/+/, '').replace(/\/+$/, ''); + const normalized = withoutTrailingSlashes(relativePath.replace(/\\/g, '/').replace(/^\/+/, '')); // Empty string after normalization means "root" — valid for list() operations if (normalized.length > 0) { validateStateKey(normalized); @@ -1225,9 +1231,7 @@ export class StateBackendStorageAdapter implements StorageProvider { } if (!path.isAbsolute(filePath)) { - const relative = slashPath - .replace(/^(?:\.\/)+/, '') - .replace(/\/+$/, ''); + const relative = withoutTrailingSlashes(slashPath.replace(/^(?:\.\/)+/, '')); return relative.length === 0 ? this.resolveRoot(options) : relative; } diff --git a/packages/squad-sdk/src/storage/in-memory-storage-provider.ts b/packages/squad-sdk/src/storage/in-memory-storage-provider.ts index 0053249cb..cd66e1efe 100644 --- a/packages/squad-sdk/src/storage/in-memory-storage-provider.ts +++ b/packages/squad-sdk/src/storage/in-memory-storage-provider.ts @@ -16,7 +16,8 @@ export class InMemoryStorageProvider implements StorageProvider { private norm(p: string): string { // Convert Windows backslashes to forward slashes before POSIX normalization // so that paths from path.join() on Windows match stored POSIX keys. - return posix.normalize(p.replace(/\\/g, '/')).replace(/\/+$/, ''); + const normalized = posix.normalize(p.replace(/\\/g, '/')); + return normalized.endsWith('/') ? normalized.slice(0, -1) : normalized; } async createIfAbsent(filePath: string, data: string): Promise { diff --git a/scripts/pr-readiness.mjs b/scripts/pr-readiness.mjs index 2c1459903..4cefe4922 100644 --- a/scripts/pr-readiness.mjs +++ b/scripts/pr-readiness.mjs @@ -321,6 +321,7 @@ export const MAX_FILE_LIST = 50; */ export function sanitizeFilename(name) { return name + .replace(/\\/g, '\\\\') .replace(/\|/g, '\\|') .replace(/`/g, "'") .replace(/[\r\n]+/g, ' '); diff --git a/scripts/release/build-manifest.mjs b/scripts/release/build-manifest.mjs index b98443308..1956d8e45 100644 --- a/scripts/release/build-manifest.mjs +++ b/scripts/release/build-manifest.mjs @@ -173,6 +173,7 @@ export function buildManifest(opts) { } export function renderMarkdown(m) { + const escapeCell = (value) => String(value).replace(/\\/g, '\\\\').replace(/\|/g, '\\|'); let md = `# Squad 2.0 verification manifest — \`${m.target.commit.slice(0, 8)}\` (${m.target.version})\n\nGenerated ${m.generatedAt} by \`${m.generator.script}\` (sha256 \`${m.generator.scriptSha256.slice(0, 12)}…\`, ${m.generator.mode}). Schema \`${m.schemaVersion}\`. Presence facts (carried / anchorPresent / contentEvidencePresent) and behavioral evidence (tree equality, cited CI run, regression tests) are reported separately.\n\n`; md += `## Target\n\n- Commit \`${m.target.commit}\` on \`${m.target.branch ?? '?'}\`\n- Tree \`${m.target.tree}\`\n- Verify: \`${m.target.immutableVerification.commitCommand}\`; \`${m.target.immutableVerification.treeCommand}\`\n\n`; md += `## Stack #${m.stack.id}\n\n| Layer | PR | Head tree | Squash tree | Equal |\n|---|---:|---|---|---|\n`; @@ -183,7 +184,7 @@ export function renderMarkdown(m) { md += `\n## Lockfiles\n\n${m.lockfiles.files} lockfiles, ${m.lockfiles.registryEntries} registry entries, **${m.lockfiles.violations} violations** (denied: ${m.lockfiles.deniedPatterns.map((d) => `\`${d}\``).join(', ')}).${m.lockfiles.externalNpmCi ? ` External \`npm ci\`: \`${m.lockfiles.externalNpmCi.command}\` → exit ${m.lockfiles.externalNpmCi.exitCode}.` : ''}\n\n`; md += `## Tests\n\n${m.tests.source}: total ${m.tests.numTotalTests}; ${Object.entries(m.tests.byStatus).map(([k, v]) => `${v} ${k}`).join(', ')}; categories ${JSON.stringify(m.tests.byCategory)}; counts sum: **${m.tests.countsSum}**; unlisted: **${m.tests.unlistedTests}**; skipped files: ${m.tests.skippedFiles.join(', ') || 'none'}.\n\n`; md += `## Closure matrix\n\n**${m.closure.carried}/${m.closure.trackedItems} carried** (${m.closure.notCarried} not carried); **${m.closure.contentEvidencePresent} with code-level evidence**, ${m.closure.presenceOnly} presence-only; anchors present: ${m.closure.anchorPresent}.\n\n| ID | Anchor | Kind | Implementation symbol | Regression tests (defined / executed) | Carried | Content evidence |\n|---|---|---|---|---|---|---|\n`; - for (const i of m.closure.items) md += `| ${i.id} | \`${String(i.anchor ?? '—').replace(/\|/g, '\\|')}\` in \`${i.anchorLocation ?? '—'}\` | ${i.anchorKind} | ${i.implementationSymbol ? `\`${i.implementationSymbol.symbol}\` in \`${i.implementationSymbol.file}\`` : '—'} | ${i.regressionTests.length ? i.regressionTests.map((t) => `${t.definedIn ? '✓' : '✗'}/${t.executedInCitedReport === null ? '?' : t.executedInCitedReport ? '✓' : '✗'} ${t.title.replace(/\|/g, '\\|')}`).join('
') : '—'} | ${i.carried ? 'yes' : 'NO'} | ${i.contentEvidencePresent ? 'yes' : i.presenceOnly ? 'presence-only' : 'NO'} |\n`; + for (const i of m.closure.items) md += `| ${i.id} | \`${escapeCell(i.anchor ?? '—')}\` in \`${i.anchorLocation ?? '—'}\` | ${i.anchorKind} | ${i.implementationSymbol ? `\`${i.implementationSymbol.symbol}\` in \`${i.implementationSymbol.file}\`` : '—'} | ${i.regressionTests.length ? i.regressionTests.map((t) => `${t.definedIn ? '✓' : '✗'}/${t.executedInCitedReport === null ? '?' : t.executedInCitedReport ? '✓' : '✗'} ${escapeCell(t.title)}`).join('
') : '—'} | ${i.carried ? 'yes' : 'NO'} | ${i.contentEvidencePresent ? 'yes' : i.presenceOnly ? 'presence-only' : 'NO'} |\n`; md += `\n## Behavioral evidence\n\n- Tree equality: ${m.behavioralEvidence.treeEquality.layersEqual}/${m.behavioralEvidence.treeEquality.layersChecked} layers equal (${m.behavioralEvidence.treeEquality.layersUnavailable} unavailable in this clone)\n- Cited CI run: ${m.behavioralEvidence.citedCiRun.url} at \`${m.behavioralEvidence.citedCiRun.headSha.slice(0, 8)}\` (matches target: ${m.behavioralEvidence.citedCiRun.matchesTarget})\n- Regression tests: ${m.behavioralEvidence.regressionTests.titlesDefinedInTree}/${m.behavioralEvidence.regressionTests.titlesCited} cited titles defined in the tree; ${m.behavioralEvidence.regressionTests.reportAvailable ? `${m.behavioralEvidence.regressionTests.titlesExecutedInReport} executed in the cited report` : 'no vitest report available to this generator (executed = unknown)'}\n\n`; if (m.comparison.baselineCommit) md += `## Comparison\n\nBaseline \`${m.comparison.baselineCommit.slice(0, 8)}\`${m.comparison.diffStat ? `: ${m.comparison.diffStat.raw}` : ''}. ${m.comparison.verdict ?? ''}\n\n${(m.comparison.firstParentCommits ?? []).map((c) => `- \`${c.sha.slice(0, 8)}\` ${c.subject}`).join('\n')}\n`; return md; diff --git a/scripts/release/check-release-scripts.mjs b/scripts/release/check-release-scripts.mjs index d3f7a9a2d..23de73e8b 100644 --- a/scripts/release/check-release-scripts.mjs +++ b/scripts/release/check-release-scripts.mjs @@ -54,7 +54,7 @@ function quotedArgumentSpansNewline(source, start) { export function findWorkflowJavaScriptViolations(text, file = '') { const violations = []; - const evalPattern = /\bnode(?:\.exe)?(?:(?:[ \t]+|\\\r?\n[ \t]*)+--[A-Za-z0-9-]+(?:=[^ \t\r\n]+)?)*(?:[ \t]+|\\\r?\n[ \t]*)+(?:--eval|--print|-(?:pe|ep|e|p))(?=[ \t=\\\r\n"']|$)/g; + const evalPattern = /\bnode(?:\.exe)?(?:(?:[ \t]|\\\r?\n)+--[A-Za-z0-9-]+(?:=[^ \t\r\n]+)?)*(?:[ \t]|\\\r?\n)+(?:--eval|--print|-(?:pe|ep|e|p))(?=[ \t=\\\r\n"']|$)/g; const heredocPattern = /\bnode(?:\.exe)?\s+(?:-\s+)?<<['"]?[A-Za-z_][A-Za-z0-9_]*['"]?/g; for (const scalar of runScalars(text, file)) { for (const match of scalar.source.matchAll(heredocPattern)) { diff --git a/scripts/render-host-feature-matrix.mjs b/scripts/render-host-feature-matrix.mjs index 31fddc0a5..854d3e949 100644 --- a/scripts/render-host-feature-matrix.mjs +++ b/scripts/render-host-feature-matrix.mjs @@ -24,6 +24,7 @@ export const CAPABILITIES = ['supported', 'degraded', 'unsupported', 'n/a']; export const VALIDATION_LEVELS = ['validated-live', 'validated-test', 'static-only', 'untested', 'blocked']; const CAPABILITY_ICON = { supported: '✅', degraded: '⚠️', unsupported: '❌', 'n/a': '—' }; const VALIDATION_ICON = { 'validated-live': '🖥️', 'validated-test': '🧪', 'static-only': '📄', untested: '❔', blocked: '⛔' }; +const escapeTableCell = (value) => value.replace(/\\/g, '\\\\').replace(/\|/g, '\\|'); export function evidenceKind(entry) { return entry.split(':')[0]; @@ -122,7 +123,7 @@ export function render(matrix) { lines.push('| Feature | Test (title; each generated test appends the host as `[]`) | Hosts | Meaning |'); lines.push('|---------|-----------------------------|-------|---------|'); for (const e of matrix.expectedFailures) { - lines.push(`| [${e.featureId}](#${e.featureId}) | \`${e.test.replace(/\|/g, '\\|')}\` (${e.kind}${e.perHost ? ', per host' : ''}) | ${(e.hosts ?? []).map((h) => `\`${h}\``).join(' ')} | ${e.meaning} |`); + lines.push(`| [${e.featureId}](#${e.featureId}) | \`${escapeTableCell(e.test)}\` (${e.kind}${e.perHost ? ', per host' : ''}) | ${(e.hosts ?? []).map((h) => `\`${h}\``).join(' ')} | ${e.meaning} |`); } lines.push(''); } @@ -145,7 +146,7 @@ export function render(matrix) { const c = f.cells[h]; return `${CAPABILITY_ICON[c.capability]} ${VALIDATION_ICON[c.validation]}`; }); - lines.push(`| [${f.name.replace(/\|/g, '\\|')}](#${f.id}) | ${f.dependsOn.join(', ')}${f.hostIndependent ? ' (host-independent)' : ''} | ${cells.join(' | ')} |`); + lines.push(`| [${escapeTableCell(f.name)}](#${f.id}) | ${f.dependsOn.join(', ')}${f.hostIndependent ? ' (host-independent)' : ''} | ${cells.join(' | ')} |`); } lines.push(''); } @@ -167,7 +168,7 @@ export function render(matrix) { const notes = c.notes ? ` _${c.notes}_` : ''; const flags = [c.expectedFailure ? ' (expected failure)' : '', c.blockedReason ? ` — ${c.blockedReason}` : ''].join(''); const evidence = c.evidence.map((v) => `\`${v}\``).join('
') || '—'; - lines.push(`| \`${h}\` | ${CAPABILITY_ICON[c.capability]} ${c.capability} | ${VALIDATION_ICON[c.validation]} ${c.validation}${flags.replace(/\|/g, '\\|')} | ${c.mechanism.replace(/\|/g, '\\|')}${notes.replace(/\|/g, '\\|')} | ${evidence.replace(/\|/g, '\\|')} |`); + lines.push(`| \`${h}\` | ${CAPABILITY_ICON[c.capability]} ${c.capability} | ${VALIDATION_ICON[c.validation]} ${c.validation}${escapeTableCell(flags)} | ${escapeTableCell(c.mechanism)}${escapeTableCell(notes)} | ${escapeTableCell(evidence)} |`); } lines.push(''); } @@ -179,7 +180,7 @@ export function render(matrix) { lines.push('| Date | Host | Scenario | Outcome | Observed tools | Notes |'); lines.push('|------|------|----------|---------|----------------|-------|'); const OUTCOME = { pass: '✅ pass', partial: '⚠️ partial', fail: '🔴 fail', blocked: '⛔ blocked' }; - for (const r of matrix.liveRuns) lines.push(`| ${r.date} | \`${r.host}\` | ${r.scenario} | ${OUTCOME[r.outcome] ?? r.outcome} | ${(r.observedTools ?? []).map((t) => `\`${t}\``).join(', ') || '—'} | ${(r.notes ?? '').replace(/\|/g, '\\|')} |`); + for (const r of matrix.liveRuns) lines.push(`| ${r.date} | \`${r.host}\` | ${r.scenario} | ${OUTCOME[r.outcome] ?? r.outcome} | ${(r.observedTools ?? []).map((t) => `\`${t}\``).join(', ') || '—'} | ${escapeTableCell(r.notes ?? '')} |`); lines.push(''); } return lines.join('\n') + '\n'; diff --git a/scripts/render-upgrade-matrix.mjs b/scripts/render-upgrade-matrix.mjs index d1eb0e267..67e375fe0 100644 --- a/scripts/render-upgrade-matrix.mjs +++ b/scripts/render-upgrade-matrix.mjs @@ -25,7 +25,7 @@ export const END = ''; const PLATFORM_LABEL = { win32: 'Windows', linux: 'Linux', darwin: 'macOS' }; const STATUS_ICON = { pass: '✅', fail: '🔴', skipped: '⏭️' }; -const esc = (s) => String(s ?? '').replace(/\|/g, '\\|').replace(/\r?\n/g, ' '); +const esc = (s) => String(s ?? '').replace(/\\/g, '\\\\').replace(/\|/g, '\\|').replace(/\r?\n/g, ' '); export function platformsOf(matrix) { return [...new Set(matrix.runs.map((r) => r.platform))].sort(); @@ -158,6 +158,10 @@ export function renderSection(matrix) { } lines.push(''); } + if (matrix.historicalRuns?.length) { + lines.push('_Earlier runs remain in `historicalRuns` in the fixture; they do not attest the current harness._'); + lines.push(''); + } lines.push('### Producers (pinned, immutable provenance)'); lines.push(''); lines.push('| Version | Provenance | Artifact pins | Why it is in the matrix | `--state-backend` |'); diff --git a/test-fixtures/spec/suite-v0.2/upgrade-matrix.json b/test-fixtures/spec/suite-v0.2/upgrade-matrix.json index b4730598e..144e81eb0 100644 --- a/test-fixtures/spec/suite-v0.2/upgrade-matrix.json +++ b/test-fixtures/spec/suite-v0.2/upgrade-matrix.json @@ -1,6 +1,6 @@ { "protocol": "upgrade-matrix/v1", - "description": "Record of real old-release → Squad 2.0 upgrade runs. Produced by test/squad-20-upgrade-matrix.test.ts (SQUAD_UPGRADE_MATRIX=1) in CI at the recorded targetSha, merged with `node scripts/render-upgrade-matrix.mjs --merge `, rendered into docs/src/content/docs/scenarios/upgrading.md. Producers are pinned, immutable artifacts: npm tarballs by exact version + sha1 shasum + sha512 integrity (fetched through the registry npm is configured for; integrity mismatch fails closed), or GitHub Release assets by release tag + asset id + sha256 (downloaded by asset id; mismatch fails closed). Each recorded run carries the harnessHash of the suite/renderer/workflow/fixture it ran with; the integrity test refuses runs whose harness differs from the committed one, so a fold commit may change only the runs data.", + "description": "Record of real old-release → Squad 2.0 upgrade runs. Produced by test/squad-20-upgrade-matrix.test.ts (SQUAD_UPGRADE_MATRIX=1) in CI at the recorded targetSha, merged with `node scripts/render-upgrade-matrix.mjs --merge `, rendered into docs/src/content/docs/scenarios/upgrading.md. Producers are pinned, immutable artifacts: npm tarballs by exact version + sha1 shasum + sha512 integrity (fetched through the registry npm is configured for; integrity mismatch fails closed), or GitHub Release assets by release tag + asset id + sha256 (downloaded by asset id; mismatch fails closed). Current runs carry the harnessHash of the suite/renderer/workflow/fixture they used; the integrity test refuses runs whose harness differs from the committed one. Earlier results are preserved separately in historicalRuns and are not evidence for the current harness.", "concepts": { "upgrade": "`squad upgrade` with the current CLI: refreshes Squad-owned files, migrates casting/state, preserves user state. The only supported direction.", "projection uninstall": "`uninstallClients()` from `@bradygaster/squad-sdk/client`: removes generated host projections and restores shared files byte-exact. Does not change the installed CLI, `.squad/` state, or the repository's Squad version.", @@ -322,7 +322,7 @@ "platforms": "*" } ], - "runs": [ + "historicalRuns": [ { "platform": "linux", "arch": "x64", @@ -6019,5 +6019,6 @@ } ] } - ] + ], + "runs": [] } diff --git a/test/actionlint-config.test.ts b/test/actionlint-config.test.ts index 0ba969eb0..6e3cdd6b7 100644 --- a/test/actionlint-config.test.ts +++ b/test/actionlint-config.test.ts @@ -118,4 +118,21 @@ describe('actionlint config (#1827)', () => { expect(workflow).not.toMatch(/automatically generated\|DO NOT EDIT/i); expect(workflow).toMatch(/actionlint \.github\/workflows\/\*\.yml/); }); + + it('binds a manually requested SHA to the selected ref before checkout', () => { + const workflow = parse(readFileSync(LINT_WORKFLOW_PATH, 'utf8')); + const steps = workflow.jobs.actionlint.steps as Array<{ + name?: string; + if?: string; + env?: Record; + run?: string; + with?: Record; + }>; + const validate = steps.find((step) => step.name === 'Validate requested SHA'); + const checkout = steps.find((step) => step.if === "github.event_name == 'workflow_dispatch'" && step.with?.ref); + expect(validate?.env?.DISPATCH_SHA).toBe('${{ github.sha }}'); + expect(validate?.run).toContain('[ "$SOURCE_SHA" = "$DISPATCH_SHA" ]'); + expect(checkout?.with?.ref).toBe('${{ github.sha }}'); + expect(steps.indexOf(validate!)).toBeLessThan(steps.indexOf(checkout!)); + }); }); diff --git a/test/clients.test.ts b/test/clients.test.ts index baf01571f..d09b0fce7 100644 --- a/test/clients.test.ts +++ b/test/clients.test.ts @@ -216,7 +216,7 @@ describe('shared files and TOML helper', () => { it('upsertTomlTable creates, updates and keeps neighbors', () => { expect(upsertTomlTable('', 't.x', { a: '"1"' })).toBe('[t.x]\na = "1"\n'); const out = upsertTomlTable('k = 1\n[t.x]\na = "0"\nz = 2\n[t.y]\nq = 3\n', 't.x', { a: '"1"', b: '[]' }); - expect(out).toBe('k = 1\n[t.x]\na = "1"\nz = 2\nb = []\n[t.y]\nq = 3\n'.replace(/\n$/, '\n')); + expect(out).toBe('k = 1\n[t.x]\na = "1"\nz = 2\nb = []\n[t.y]\nq = 3\n'); }); it('all expands to every client including codex and antigravity', () => { expect(parseClients('all')).toEqual(expect.arrayContaining(['codex', 'antigravity'])); diff --git a/test/comms-teams.test.ts b/test/comms-teams.test.ts index 5dd427f73..e754ae7cc 100644 --- a/test/comms-teams.test.ts +++ b/test/comms-teams.test.ts @@ -81,6 +81,11 @@ describe('stripHtml', () => { it('handles combined tags and entities', () => { expect(stripHtml('

Tom & Jerry <3

')).toBe('Tom & Jerry <3'); }); + + it('decodes entities once and does not assemble a tag when stripping nested markup', () => { + expect(stripHtml('&lt;script&gt;')).toBe('<script>'); + expect(stripHtml('hello <script>')).toBe('hello script>'); + }); }); // ─── formatTeamsMessage ────────────────────────────────────────────── diff --git a/test/gh-aw-command-authorization.test.ts b/test/gh-aw-command-authorization.test.ts index 8f6f7612f..93cf3dfc8 100644 --- a/test/gh-aw-command-authorization.test.ts +++ b/test/gh-aw-command-authorization.test.ts @@ -273,7 +273,10 @@ async function writeComments(items: Item[]) { describe('compiled Squad command authorization boundary (#2185)', () => { it('kills a live-source mutation that checks only HTML-comment-stripped authority', async () => { const source = readFileSync(join(trusted, 'squad-command-contract.mjs'), 'utf8'); - const mutated = source.replace('const bodies = [rawBody, rawBody.replace(', 'const bodies = [rawBody.replace('); + const mutated = source.replace( + 'const bodies = [rawBody, withoutCommentsForInspection(rawBody)];', + 'const bodies = [withoutCommentsForInspection(rawBody)];', + ); expect(mutated).not.toBe(source); const mutantPath = join(trusted, 'squad-command-contract-stripped-mutant.mjs'); writeFileSync(mutantPath, mutated); @@ -315,6 +318,44 @@ describe('compiled Squad command authorization boundary (#2185)', () => { expect(direct.writes).toEqual([]); }); + it.each([ + '**State:** Activated', + '-- hidden -->', + ])('fails closed on alternate or reconstructed HTML comments: %s', async (body) => { + const guarded = await runGuard({ + payload: payloadFor('triage'), + permission: 'admin', + items: [{ type: 'upsert_lifecycle_state', body }], + }); + expect(guarded.failures).toHaveLength(1); + expect(guarded.mutations).toEqual([]); + }); + + it('rejects comment-split lifecycle authority when the live contract is mutated', async () => { + const body = '**State:** Activated'; + const guarded = await runGuard({ + payload: payloadFor('triage'), + permission: 'admin', + items: [{ type: 'upsert_lifecycle_state', body }], + }); + expect(guarded.failures.join('\n')).toMatch(/trusted writer/); + expect(guarded.mutations).toEqual([]); + + const source = readFileSync(join(trusted, 'squad-command-contract.mjs'), 'utf8'); + const mutated = source.replace( + 'const bodies = [rawBody, withoutCommentsForInspection(rawBody)];', + 'const bodies = [rawBody];', + ); + expect(mutated).not.toBe(source); + const mutantPath = join(trusted, 'squad-command-contract-raw-mutant.mjs'); + writeFileSync(mutantPath, mutated); + const mutant = await import(pathToFileURL(mutantPath).href); + await expect(mutant.enforceSquadCommandContract({ + payload: payloadFor('triage'), eventName: 'issue_comment', actor: 'maintainer', + resolvePermission: async () => 'admin', agentOutputPath: outputPath, createComment: vi.fn(), + })).resolves.toMatchObject({ status: 'accepted' }); + }); + it('executes the documented pinned index createIssue export and validates its actual API result', async () => { const job = Object.values(dispatcher.jobs).find(job => job.steps.some(step => step.name === 'Setup pinned issue creation API'))!; diff --git a/test/init-scaffolding.test.ts b/test/init-scaffolding.test.ts index 97d84aefc..1775086be 100644 --- a/test/init-scaffolding.test.ts +++ b/test/init-scaffolding.test.ts @@ -427,6 +427,8 @@ describe('squad.agent.md template handling (#730)', () => { '`Squad velocity`', '`Squad v1.2`', '`Squad v01.2.3`', + '`Squad v1.2.3-01`', + '`Squad v1.2.3+build..7`', ]; const templateStorage = new Proxy(realStorage, { diff --git a/test/init-sdk.test.ts b/test/init-sdk.test.ts index 1aa57e4ee..bc4d03d0d 100644 --- a/test/init-sdk.test.ts +++ b/test/init-sdk.test.ts @@ -14,6 +14,7 @@ import { mkdtemp, rm, readFile, readdir, access } from 'fs/promises'; import { join } from 'path'; import { tmpdir } from 'os'; import { existsSync } from 'fs'; +import ts from 'typescript'; // Import initSquad from SDK // Note: initSquad lives at packages/squad-sdk/src/config/init.ts @@ -256,6 +257,32 @@ describe('squad init --sdk flag', () => { expect(configContent).toContain('Test Squad'); }); + it.each([false, true])('escapes project metadata in SDK config (roles=%s)', async (roles) => { + const projectName = "Team\\'name"; + const projectDescription = "Line \\'one\n*/ globalThis.injected = true; /*\u2028next"; + await initSquad({ + teamRoot: tempDir, + projectName, + projectDescription, + agents: [{ name: 'edie', role: 'Engineer' }], + configFormat: 'sdk', + roles, + }); + + const content = await readFile(join(tempDir, 'squad.config.ts'), 'utf-8'); + const parsed = ts.createSourceFile('squad.config.ts', content, ts.ScriptTarget.Latest, true); + const literals: string[] = []; + const visit = (node: ts.Node) => { + if (ts.isStringLiteral(node)) literals.push(node.text); + ts.forEachChild(node, visit); + }; + visit(parsed); + expect(ts.transpileModule(content, { reportDiagnostics: true }).diagnostics).toEqual([]); + expect(literals).toContain(projectName); + expect(literals).toContain(projectDescription); + expect(content).toContain('* / globalThis.injected'); + }); + // ── --sdk --roles integration (#378) ──────────────────────────────── it('init --sdk --roles uses useRole() instead of defineAgent()', async () => { diff --git a/test/platform-adapter.test.ts b/test/platform-adapter.test.ts index 1deec6678..e6f3dd4fb 100644 --- a/test/platform-adapter.test.ts +++ b/test/platform-adapter.test.ts @@ -44,6 +44,23 @@ describe('detectPlatformFromUrl', () => { expect(detectPlatformFromUrl('https://myorg.visualstudio.com/myproject/_git/myrepo')).toBe('azure-devops'); }); + it.each([ + 'https://dev.azure.com.attacker.example/org/project/_git/repo', + 'https://attacker.example/dev.azure.com/org/project/_git/repo', + 'https://dev.azure.com@attacker.example/org/project/_git/repo', + 'git@ssh.dev.azure.com.attacker.example:v3/org/project/repo', + 'https://attacker-visualstudio.com/project/_git/repo', + 'file://dev.azure.com/org/project/_git/repo', + ])('does not trust Azure-looking text outside the remote host: %s', (url) => { + expect(detectPlatformFromUrl(url)).toBe('github'); + expect(parseAzureDevOpsRemote(url)).toBeNull(); + }); + + it('detects an SSH URL with a port and a GitHub-looking path on Azure', () => { + expect(detectPlatformFromUrl('ssh://git@ssh.dev.azure.com:22/v3/org/project/repo')).toBe('azure-devops'); + expect(detectPlatformFromUrl('https://dev.azure.com/org/github.com/_git/repo')).toBe('azure-devops'); + }); + it('defaults to github for unknown remotes', () => { expect(detectPlatformFromUrl('https://gitlab.com/owner/repo.git')).toBe('github'); }); diff --git a/test/pr-readiness.test.ts b/test/pr-readiness.test.ts index d84c9d0e9..6cda94c2d 100644 --- a/test/pr-readiness.test.ts +++ b/test/pr-readiness.test.ts @@ -707,6 +707,7 @@ describe('buildFileList', () => { describe('sanitizeFilename', () => { it('escapes pipe characters', () => { expect(sanitizeFilename('a|b|c')).toBe('a\\|b\\|c'); + expect(sanitizeFilename('a\\|b')).toBe('a\\\\\\|b'); }); it('replaces backticks with single quotes', () => { diff --git a/test/release-script-policy.test.ts b/test/release-script-policy.test.ts index 839c44417..685275328 100644 --- a/test/release-script-policy.test.ts +++ b/test/release-script-policy.test.ts @@ -63,4 +63,10 @@ describe('release script policy', () => { ])('allows single-line inline JavaScript via %s', (_name, workflow) => { expect(findWorkflowJavaScriptViolations(workflow, 'fixture.yml')).toEqual([]); }); + + it('handles long whitespace without backtracking while detecting a continued eval', () => { + const gap = '\t'.repeat(10_000); + expect(findWorkflowJavaScriptViolations(`run: |\n node${gap}--no-warnings${gap}-e "a\n b"\n`)) + .not.toEqual([]); + }); }); diff --git a/test/specification-suite.test.ts b/test/specification-suite.test.ts index 0d3ccd94c..1459f6227 100644 --- a/test/specification-suite.test.ts +++ b/test/specification-suite.test.ts @@ -74,16 +74,30 @@ async function markdownFiles(root: string): Promise { return nested.flat().sort(); } +function withoutHeadingTags(value: string): string { + const parts: string[] = []; + let cursor = 0; + while (cursor < value.length) { + const open = value.indexOf('<', cursor); + if (open === -1) break; + const close = value.indexOf('>', open + 1); + if (close === -1) break; + parts.push(value.slice(cursor, close === open + 1 ? close + 1 : open)); + cursor = close + 1; + } + parts.push(value.slice(cursor)); + return parts.join(''); +} + function markdownHeadingAnchors(content: string): Set { const anchors = new Set(); const counts = new Map(); for (const match of content.matchAll(/^#{1,6}\s+(.+?)\s*#*\s*$/gm)) { - const heading = match[1] + const heading = withoutHeadingTags(match[1] .replace(/`([^`]+)`/g, '$1') .replace(/!\[([^\]]*)\]\([^)]+\)/g, '$1') - .replace(/\[([^\]]+)\]\([^)]+\)/g, '$1') - .replace(/<[^>]+>/g, '') + .replace(/\[([^\]]+)\]\([^)]+\)/g, '$1')) .replace(/[*_~]/g, '') .trim(); const base = heading diff --git a/test/squad-20-preview-tarball-matrix.test.ts b/test/squad-20-preview-tarball-matrix.test.ts index 8e32213e0..9a3a65ffd 100644 --- a/test/squad-20-preview-tarball-matrix.test.ts +++ b/test/squad-20-preview-tarball-matrix.test.ts @@ -339,6 +339,12 @@ describe('upgrade-matrix.json integrity', () => { // ─── harness guards (always on) ───────────────────────────────────────────── describe('upgrade-matrix harness guards', () => { + it('passes metacharacters in npm arguments literally', async () => { + const prefix = path.join(ROOT, 'matrix test & literal'); + const result = await npmCmd(['config', 'get', 'prefix', '--prefix', prefix], ROOT, process.env); + expect(result.code, result.stderr).toBe(0); + expect(result.stdout.trim()).toBe(prefix); + }); const fakeSpec = (over: Partial = {}): ProducerSpec => ({ version: '0.0.0-guard', source: 'github-release', why: 'guard test', supports: { stateBackend: true, dryRun: true }, artifacts: { release: { repository: 'bradygaster/squad', tag: 'v0.0.0-guard', assets: {} } }, @@ -686,12 +692,10 @@ async function fetchBuffer(url: string, headers: Record = {}): P } async function npmCmd(args: string[], cwd: string, env: NodeJS.ProcessEnv): Promise { - const npm = PLATFORM === 'win32' ? 'npm.cmd' : 'npm'; - // Absolute tarball paths: a bare `dir/file.tgz` would be read by npm as a GitHub `owner/repo` shorthand. - const quoted = args.map((a) => (/\s/.test(a) ? `"${a}"` : a)); - return PLATFORM === 'win32' - ? run(process.env['ComSpec'] ?? 'cmd.exe', ['/d', '/s', '/c', `${npm} ${quoted.join(' ')}`], { cwd, env, timeout: 600_000 }) - : run(npm, args, { cwd, env, timeout: 600_000 }); + if (PLATFORM !== 'win32') return run('npm', args, { cwd, env, timeout: 600_000 }); + const npmCli = path.join(path.dirname(process.execPath), 'node_modules', 'npm', 'bin', 'npm-cli.js'); + if (!fs.existsSync(npmCli)) throw new Error(`npm CLI not found beside Node: ${npmCli}`); + return run(process.execPath, [npmCli, ...args], { cwd, env, timeout: 600_000 }); } /** diff --git a/test/squad-20-upgrade-matrix.test.ts b/test/squad-20-upgrade-matrix.test.ts index 30e5caa28..5a1434c4a 100644 --- a/test/squad-20-upgrade-matrix.test.ts +++ b/test/squad-20-upgrade-matrix.test.ts @@ -96,6 +96,7 @@ interface Matrix { inapplicable: Inapplicable[]; expectedFailures: ExpectedFailure[]; findings: Finding[]; + historicalRuns?: Run[]; runs: Run[]; } @@ -274,6 +275,15 @@ describe('upgrade-matrix.json integrity', () => { } }); + it('retains previous runs with their original attribution', () => { + for (const run of matrix.historicalRuns ?? []) { + expect(run.targetSha).toMatch(/^[0-9a-f]{40}$/); + expect(run.harnessHash).toMatch(/^[0-9a-f]{64}$/); + expect(run.runUrl).toMatch(/^https:\/\/github\.com\/github\/squad\/actions\/runs\/\d+$/); + expect(run.results.length).toBeGreaterThan(0); + } + }); + it('the "Tested upgrade paths" section of upgrading.md is up to date with the JSON', async () => { const { renderSection, extractSection } = (await import(RENDERER)) as { renderSection: (m: unknown) => string; @@ -288,6 +298,12 @@ describe('upgrade-matrix.json integrity', () => { // ─── harness guards (always on) ───────────────────────────────────────────── describe('upgrade-matrix harness guards', () => { + it('passes metacharacters in npm arguments literally', async () => { + const prefix = path.join(ROOT, 'matrix test & literal'); + const result = await npmCmd(['config', 'get', 'prefix', '--prefix', prefix], ROOT, process.env); + expect(result.code, result.stderr).toBe(0); + expect(result.stdout.trim()).toBe(prefix); + }); const fakeSpec = (over: Partial = {}): ProducerSpec => ({ version: '0.0.0-guard', source: 'github-release', why: 'guard test', supports: { stateBackend: true, dryRun: true }, artifacts: { release: { repository: 'bradygaster/squad', tag: 'v0.0.0-guard', assets: {} } }, @@ -593,12 +609,10 @@ async function fetchBuffer(url: string, headers: Record = {}): P } async function npmCmd(args: string[], cwd: string, env: NodeJS.ProcessEnv): Promise { - const npm = PLATFORM === 'win32' ? 'npm.cmd' : 'npm'; - // Absolute tarball paths: a bare `dir/file.tgz` would be read by npm as a GitHub `owner/repo` shorthand. - const quoted = args.map((a) => (/\s/.test(a) ? `"${a}"` : a)); - return PLATFORM === 'win32' - ? run(process.env['ComSpec'] ?? 'cmd.exe', ['/d', '/s', '/c', `${npm} ${quoted.join(' ')}`], { cwd, env, timeout: 600_000 }) - : run(npm, args, { cwd, env, timeout: 600_000 }); + if (PLATFORM !== 'win32') return run('npm', args, { cwd, env, timeout: 600_000 }); + const npmCli = path.join(path.dirname(process.execPath), 'node_modules', 'npm', 'bin', 'npm-cli.js'); + if (!fs.existsSync(npmCli)) throw new Error(`npm CLI not found beside Node: ${npmCli}`); + return run(process.execPath, [npmCli, ...args], { cwd, env, timeout: 600_000 }); } /** diff --git a/test/standalone-release-workflow.test.ts b/test/standalone-release-workflow.test.ts index ae3a3915a..cc7b5d149 100644 --- a/test/standalone-release-workflow.test.ts +++ b/test/standalone-release-workflow.test.ts @@ -331,17 +331,19 @@ describe('standalone release handoff', () => { expect(standaloneWorkflow.on?.release).toBeUndefined(); }); - it('pins every standalone checkout and cross-job artifact to source_sha', () => { + it('checks out the trusted dispatch SHA and binds it and cross-job artifacts to source_sha', () => { for (const [jobName, job] of Object.entries(standaloneWorkflow.jobs)) { const steps = job.steps ?? []; for (const [index, step] of steps.entries()) { if (!step.uses?.startsWith('actions/checkout@')) continue; - expect(step.with?.ref, `${jobName} checkout ref`).toBe('${{ inputs.source_sha }}'); + expect(step.with?.ref, `${jobName} checkout ref`).toBe('${{ github.sha }}'); const verify = steps[index + 1]; if (jobName === 'guard') { const validate = stepNamed(job, 'Validate inputs').run ?? ''; expect(validate).toContain('head_sha="$(git rev-parse HEAD)"'); expect(validate).toContain('test "$head_sha" = "$SOURCE_SHA"'); + expect(validate).toContain('test "$DISPATCH_SHA" = "$SOURCE_SHA"'); + expect(validate).toContain('test "$WORKFLOW_SHA" = "$SOURCE_SHA"'); expect(validate).toContain('echo "Verified checkout HEAD: ${head_sha}"'); } else { expect(verify?.name, `${jobName} checkout verification`).toBe( @@ -919,7 +921,7 @@ describe('automated package publication', () => { const checkout = standaloneWorkflow.jobs[jobName].steps?.find((step) => step.uses?.startsWith('actions/checkout@'), ); - expect(checkout?.with?.ref, jobName).toBe('${{ inputs.source_sha }}'); + expect(checkout?.with?.ref, jobName).toBe('${{ github.sha }}'); } }); diff --git a/test/team-capabilities.test.ts b/test/team-capabilities.test.ts index 0bc242abc..1b58d4313 100644 --- a/test/team-capabilities.test.ts +++ b/test/team-capabilities.test.ts @@ -517,6 +517,7 @@ describe('#1608 — malformed, empty and unknown metadata', () => { describe('#1608 — sanitization of untrusted metadata', () => { it('escapes table pipes so a hostile value cannot forge columns', () => { expect(sanitizeMetadataText('a | b')).toBe('a \\| b'); + expect(sanitizeMetadataText('a\\|b')).toBe('a\\\\\\|b'); }); it('strips HTML comments, tags, and canary/marker tokens', () => { @@ -526,6 +527,9 @@ describe('#1608 — sanitization of untrusted metadata', () => { // Tags are removed; any inert inner text survives as plain prose. expect(sanitizeMetadataText('done')).toBe('x done'); expect(sanitizeMetadataText('SQUAD:TEAM-CAPABILITIES:END')).toBe('[redacted]'); + expect(sanitizeMetadataText('safe tail')).toBe('safe tail'); + expect(sanitizeMetadataText('safe tail')).toBe('safe tail'); + expect(sanitizeMetadataText('safe ', close)) { close += 3; break; } + if (body.startsWith('--!>', close)) { close += 4; break; } + close++; + } + if (close === -1) throw new Error('Unclosed HTML comment in agent output; refusing ambiguous authority.'); + cursor = close; + } + parts.push(body.slice(cursor)); + const normalized = parts.join(''); + if (normalized.includes('/g, '')]; + const bodies = [rawBody, withoutCommentsForInspection(rawBody)]; if (activationArtifacts.has(item.data?.squad_artifact) || bodies.some(body => /Activation (?:bindings|reconciliation):/i.test(body) || /squad-activation-(?:pending|finalization)\/v1/.test(body) || diff --git a/workflows/squad-workflows.manifest.json b/workflows/squad-workflows.manifest.json index 67773a410..5abec80e8 100644 --- a/workflows/squad-workflows.manifest.json +++ b/workflows/squad-workflows.manifest.json @@ -177,7 +177,7 @@ "package_destination": ".github/workflows/shared/squad-command-contract.mjs", "destination": ".github/workflows/shared/squad-command-contract.mjs", "ownership": "manifest", - "sha256": "9f044d9ab402d893f58eb0477e3d3620540f0b992056ed3a61d090daa50aea4a" + "sha256": "6b88503b4f510314b74a361491705cae715f279960d1445f405baacc6298ec17" }, { "path": "shared/squad-evidence-provider.mjs", From 8c2b93d569f15e41d2737e57dcfa5247c2c816c4 Mon Sep 17 00:00:00 2001 From: Tamir Dresher Date: Thu, 19 Nov 2026 15:03:48 +0200 Subject: [PATCH 4/5] fix: address remaining promotion CodeQL findings Relates to #2538 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .../squad-sdk/src/config/team-capabilities.ts | 2 +- packages/squad-sdk/src/platform/detect.ts | 12 ++++++---- packages/squad-sdk/src/ralph/triage.ts | 22 +++++++++++++++++-- test/platform-adapter.test.ts | 10 +++++++++ test/ralph-triage.test.ts | 9 ++++++++ 5 files changed, 48 insertions(+), 7 deletions(-) diff --git a/packages/squad-sdk/src/config/team-capabilities.ts b/packages/squad-sdk/src/config/team-capabilities.ts index 2e121cac4..b6e3a31c8 100644 --- a/packages/squad-sdk/src/config/team-capabilities.ts +++ b/packages/squad-sdk/src/config/team-capabilities.ts @@ -202,7 +202,7 @@ export function sanitizeMetadataText(raw: unknown, maxLength: number = MAX_SUMMA // HTML comments can smuggle markers, canaries, or directives. text = withoutHtmlComments(text); - text = text.replace(//g, ' ').replace(/--!>/g, ' '); + text = text.replaceAll('', ' ').replaceAll('--!>', ' '); // Then remove tag-shaped content and escape residual opening brackets. text = text.replace(/<[^<>\n]{0,200}>/g, ' '); text = text.replace(/ 4 && repo.toLowerCase().endsWith('.git') ? repo.slice(0, -4) : repo; +} + /** * Parse a GitHub remote URL into owner/repo. * Supports HTTPS and SSH formats: @@ -37,9 +41,9 @@ export function parseGitHubRemote(url: string): GitHubRemoteInfo | null { } // SSH: git@github.com:owner/repo.git - const sshMatch = url.match(/github\.com:([^/]+)\/([^/]+?)(?:\.git)?$/i); + const sshMatch = url.match(/^(?:[^@\s/:]+@)?github\.com:([^/]+)\/([^/]+)$/i); if (sshMatch) { - return { owner: sshMatch[1]!, repo: sshMatch[2]! }; + return { owner: sshMatch[1]!, repo: stripGitSuffix(sshMatch[2]!) }; } return null; @@ -91,10 +95,10 @@ export function parseAzureDevOpsRemote(url: string): AzureDevOpsRemoteInfo | nul // (Org subdomain keeps the no-dot constraint — the `.visualstudio.com` anchor // requires it. Only the repo capture is widened.) const vsMatch = url.match( - /([^/.]+)\.visualstudio\.com\/([^/]+)\/_git\/([^/]+?)(?:\.git)?$/i, + /^(?:https?|ssh|git):\/\/([^/.]+)\.visualstudio\.com\/([^/]+)\/_git\/([^/]+)$/i, ); if (vsMatch) { - return { org: decodeSegment(vsMatch[1]!), project: decodeSegment(vsMatch[2]!), repo: decodeSegment(vsMatch[3]!) }; + return { org: decodeSegment(vsMatch[1]!), project: decodeSegment(vsMatch[2]!), repo: decodeSegment(stripGitSuffix(vsMatch[3]!)) }; } return null; diff --git a/packages/squad-sdk/src/ralph/triage.ts b/packages/squad-sdk/src/ralph/triage.ts index ccbf628ea..615a2d46c 100644 --- a/packages/squad-sdk/src/ralph/triage.ts +++ b/packages/squad-sdk/src/ralph/triage.ts @@ -406,8 +406,26 @@ function routeMatch( 'agent', 'engineer', 'engineering', 'management', 'owner', 'specialist', 'system', 'work', ]); - const tokens = (value: string): string[] => - value.toLowerCase().match(/[a-z0-9][a-z0-9+#.]*(? { + const text = value.toLowerCase(); + const result: string[] = []; + const isAlphanumeric = (code: number) => + (code >= 48 && code <= 57) || (code >= 97 && code <= 122); + let cursor = 0; + while (cursor < text.length) { + if (!isAlphanumeric(text.charCodeAt(cursor))) { + cursor++; + continue; + } + const start = cursor++; + while (cursor < text.length && + (isAlphanumeric(text.charCodeAt(cursor)) || '+#.'.includes(text[cursor]!))) cursor++; + let end = cursor; + while (end > start && text[end - 1] === '.') end--; + result.push(text.slice(start, end)); + } + return result; + }; const containsPhrase = (haystack: string[], needle: string[]): boolean => needle.length > 0 && needle.length <= haystack.length && diff --git a/test/platform-adapter.test.ts b/test/platform-adapter.test.ts index e6f3dd4fb..b8744ca15 100644 --- a/test/platform-adapter.test.ts +++ b/test/platform-adapter.test.ts @@ -97,6 +97,10 @@ describe('parseGitHubRemote', () => { expect(result).toEqual({ owner: 'owner', repo: 'repo' }); }); + it('does not parse an SSH host that merely ends with github.com', () => { + expect(parseGitHubRemote('git@notgithub.com:owner/repo.git')).toBeNull(); + }); + it('returns null for non-GitHub URLs', () => { expect(parseGitHubRemote('https://dev.azure.com/org/project/_git/repo')).toBeNull(); }); @@ -168,6 +172,12 @@ describe('parseAzureDevOpsRemote', () => { expect(result).toEqual({ org: 'contoso', project: 'WebApp', repo: 'frontend' }); }); + it('parses a long legacy organization without backtracking', () => { + const org = 'a'.repeat(10_000); + const result = parseAzureDevOpsRemote(`https://${org}.visualstudio.com/WebApp/_git/frontend.git`); + expect(result).toEqual({ org, project: 'WebApp', repo: 'frontend' }); + }); + it('returns null for GitHub URLs', () => { expect(parseAzureDevOpsRemote('https://github.com/owner/repo.git')).toBeNull(); }); diff --git a/test/ralph-triage.test.ts b/test/ralph-triage.test.ts index c7efb3f76..e7490ba70 100644 --- a/test/ralph-triage.test.ts +++ b/test/ralph-triage.test.ts @@ -368,6 +368,15 @@ describe('triageIssue()', () => { expect(decision?.source).toBe('routing-rule'); }); + it.each(['C++', 'C#', 'Node.js'])('matches punctuated technology keywords: %s', (keyword) => { + const technologyRule: RoutingRule[] = [ + { workType: 'Technology', agentName: 'Runtime Engineer', keywords: [keyword] }, + ]; + const decision = triageIssue(issue(`Investigate ${keyword}...`), technologyRule, [], roster); + expect(decision?.source).toBe('routing-rule'); + expect(decision?.agent.name).toBe('Runtime Engineer'); + }); + it('prefers longer module path match (src/ralph/ over src/)', () => { const customModules: ModuleOwnership[] = [ { modulePath: 'src/', primary: 'Team Lead', secondary: null }, From becfb8b897e97be2550bb940850acc4e0e7e5a57 Mon Sep 17 00:00:00 2001 From: Tamir Dresher Date: Thu, 19 Nov 2026 15:14:54 +0200 Subject: [PATCH 5/5] test: record verified promotion upgrade matrix Relates to #2538 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- docs/src/content/docs/scenarios/upgrading.md | 112 +- .../spec/suite-v0.2/upgrade-matrix.json | 5699 ++++++++++++++++- 2 files changed, 5765 insertions(+), 46 deletions(-) diff --git a/docs/src/content/docs/scenarios/upgrading.md b/docs/src/content/docs/scenarios/upgrading.md index b84b849fc..1e007a512 100644 --- a/docs/src/content/docs/scenarios/upgrading.md +++ b/docs/src/content/docs/scenarios/upgrading.md @@ -183,7 +183,12 @@ Every row below is a pinned, published artifact of an older Squad release driven ### Runs -_No runs recorded yet. The CI workflow `squad-upgrade-matrix.yml` records a run per OS at the tree under test; fold both artifacts with `node scripts/render-upgrade-matrix.mjs --merge `._ +All recorded runs executed against **one tree**, commit `8c2b93d569f15e41d2737e57dcfa5247c2c816c4`, with harness hash `6ec033a4d3b76600…` (sha256 over the suite, renderer, workflow, fs hook and this fixture minus `runs`; the integrity test refuses a recorded run whose harness differs from the committed one, so folding results may change nothing but the runs data). + +| Platform | Arch | Node | Target | Tree (targetSha) | Trigger | Recorded | Outcome | +|----------|------|------|--------|------------------|---------|----------|---------| +| Linux (`linux`) | x64 | v22.23.5 | v2.0.0 | `8c2b93d569f1` | [pull_request](https://github.com/github/squad/actions/runs/44529782520) | 2026-11-19 | 35 rows passed all non-xfail assertions; 4 of them carry a known expected failure (F3: Squad 0.9.1 squad upgrade --dry-run is not dry); 0 rows failed; 7 rows are structurally inapplicable (listed below). | +| Windows (`win32`) | x64 | v22.23.4 | v2.0.0 | `8c2b93d569f1` | [pull_request](https://github.com/github/squad/actions/runs/44529782520) | 2026-11-19 | 35 rows passed all non-xfail assertions; 4 of them carry a known expected failure (F3: Squad 0.9.1 squad upgrade --dry-run is not dry); 0 rows failed; 7 rows are structurally inapplicable (listed below). | _Earlier runs remain in `historicalRuns` in the fixture; they do not attest the current harness._ @@ -214,50 +219,50 @@ npm tarballs are fetched by exact version through the registry npm is configured ### Results (version × shape × OS) -| Producer | Provenance | Shape | (no runs yet) | -|----------|------------|-------|---| -| **0.9.1** | npm | `default` | — | -| **0.9.1** | npm | `profile` | — | -| **0.9.1** | npm | `legacy-casting` | — | -| **0.9.1** | npm | `orphan` | ⏭️ not applicable (see below) | -| **0.9.1** | npm | `two-layer` | ⏭️ not applicable (see below) | -| **0.9.1** | npm | `ai-team` | — | -| **0.9.1** | npm | `upstream` | ⏭️ not applicable (see below) | -| **0.13.1** | npm | `default` | — | -| **0.13.1** | npm | `profile` | — | -| **0.13.1** | npm | `legacy-casting` | — | -| **0.13.1** | npm | `orphan` | — | -| **0.13.1** | npm | `two-layer` | — | -| **0.13.1** | npm | `ai-team` | — | -| **0.13.1** | npm | `upstream` | ⏭️ not applicable (see below) | -| **1.0.0** | npm | `default` | — | -| **1.0.0** | npm | `profile` | — | -| **1.0.0** | npm | `legacy-casting` | — | -| **1.0.0** | npm | `orphan` | — | -| **1.0.0** | npm | `two-layer` | — | -| **1.0.0** | npm | `ai-team` | — | -| **1.0.0** | npm | `upstream` | ⏭️ not applicable (see below) | -| **1.0.1** | GitHub Release | `default` | — | -| **1.0.1** | GitHub Release | `profile` | — | -| **1.0.1** | GitHub Release | `legacy-casting` | — | -| **1.0.1** | GitHub Release | `orphan` | — | -| **1.0.1** | GitHub Release | `two-layer` | — | -| **1.0.1** | GitHub Release | `ai-team` | — | -| **1.0.1** | GitHub Release | `upstream` | ⏭️ not applicable (see below) | -| **1.1.0** | GitHub Release | `default` | — | -| **1.1.0** | GitHub Release | `profile` | — | -| **1.1.0** | GitHub Release | `legacy-casting` | — | -| **1.1.0** | GitHub Release | `orphan` | — | -| **1.1.0** | GitHub Release | `two-layer` | — | -| **1.1.0** | GitHub Release | `ai-team` | — | -| **1.1.0** | GitHub Release | `upstream` | ⏭️ not applicable (see below) | -| **HEAD** | local HEAD (pack) | `default` | — | -| **HEAD** | local HEAD (pack) | `profile` | — | -| **HEAD** | local HEAD (pack) | `legacy-casting` | — | -| **HEAD** | local HEAD (pack) | `orphan` | — | -| **HEAD** | local HEAD (pack) | `two-layer` | — | -| **HEAD** | local HEAD (pack) | `ai-team` | — | -| **HEAD** | local HEAD (pack) | `upstream` | — | +| Producer | Provenance | Shape | Linux | Windows | +|----------|------------|-------|---|---| +| **0.9.1** | npm | `default` | ✅⚠️ pass WITH known destructive downgrade-probe failure (F3) | ✅⚠️ pass WITH known destructive downgrade-probe failure (F3) | +| **0.9.1** | npm | `profile` | ✅⚠️ pass WITH known destructive downgrade-probe failure (F3) | ✅⚠️ pass WITH known destructive downgrade-probe failure (F3) | +| **0.9.1** | npm | `legacy-casting` | ✅⚠️ pass WITH known destructive downgrade-probe failure (F3) | ✅⚠️ pass WITH known destructive downgrade-probe failure (F3) | +| **0.9.1** | npm | `orphan` | ⏭️ not applicable — `@bradygaster/squad-cli@0.9.1` has no `--state-backend` flag (first shipped in 0.13.x), so an orphan-backend project cannot be produced by it. | ⏭️ not applicable — `@bradygaster/squad-cli@0.9.1` has no `--state-backend` flag (first shipped in 0.13.x), so an orphan-backend project cannot be produced by it. | +| **0.9.1** | npm | `two-layer` | ⏭️ not applicable — `@bradygaster/squad-cli@0.9.1` has no `--state-backend` flag (first shipped in 0.13.x), so a two-layer-backend project cannot be produced by it. | ⏭️ not applicable — `@bradygaster/squad-cli@0.9.1` has no `--state-backend` flag (first shipped in 0.13.x), so a two-layer-backend project cannot be produced by it. | +| **0.9.1** | npm | `ai-team` | ✅⚠️ pass WITH known destructive downgrade-probe failure (F3) | ✅⚠️ pass WITH known destructive downgrade-probe failure (F3) | +| **0.9.1** | npm | `upstream` | ⏭️ not applicable — Upstream inheritance (`.squad/upstream.json`, `squad upstream add`) is a Squad 2.0 feature; 0.9.1 cannot declare an upstream, so there is nothing for the upgrade to preserve. | ⏭️ not applicable — Upstream inheritance (`.squad/upstream.json`, `squad upstream add`) is a Squad 2.0 feature; 0.9.1 cannot declare an upstream, so there is nothing for the upgrade to preserve. | +| **0.13.1** | npm | `default` | ✅ pass | ✅ pass | +| **0.13.1** | npm | `profile` | ✅ pass | ✅ pass | +| **0.13.1** | npm | `legacy-casting` | ✅ pass | ✅ pass | +| **0.13.1** | npm | `orphan` | ✅ pass | ✅ pass | +| **0.13.1** | npm | `two-layer` | ✅ pass | ✅ pass | +| **0.13.1** | npm | `ai-team` | ✅ pass | ✅ pass | +| **0.13.1** | npm | `upstream` | ⏭️ not applicable — Upstream inheritance (`.squad/upstream.json`, `squad upstream add`) is a Squad 2.0 feature; 0.13.1 cannot declare an upstream, so there is nothing for the upgrade to preserve. | ⏭️ not applicable — Upstream inheritance (`.squad/upstream.json`, `squad upstream add`) is a Squad 2.0 feature; 0.13.1 cannot declare an upstream, so there is nothing for the upgrade to preserve. | +| **1.0.0** | npm | `default` | ✅ pass | ✅ pass | +| **1.0.0** | npm | `profile` | ✅ pass | ✅ pass | +| **1.0.0** | npm | `legacy-casting` | ✅ pass | ✅ pass | +| **1.0.0** | npm | `orphan` | ✅ pass | ✅ pass | +| **1.0.0** | npm | `two-layer` | ✅ pass | ✅ pass | +| **1.0.0** | npm | `ai-team` | ✅ pass | ✅ pass | +| **1.0.0** | npm | `upstream` | ⏭️ not applicable — Upstream inheritance (`.squad/upstream.json`, `squad upstream add`) is a Squad 2.0 feature; 1.0.0 cannot declare an upstream, so there is nothing for the upgrade to preserve. | ⏭️ not applicable — Upstream inheritance (`.squad/upstream.json`, `squad upstream add`) is a Squad 2.0 feature; 1.0.0 cannot declare an upstream, so there is nothing for the upgrade to preserve. | +| **1.0.1** | GitHub Release | `default` | ✅ pass | ✅ pass | +| **1.0.1** | GitHub Release | `profile` | ✅ pass | ✅ pass | +| **1.0.1** | GitHub Release | `legacy-casting` | ✅ pass | ✅ pass | +| **1.0.1** | GitHub Release | `orphan` | ✅ pass | ✅ pass | +| **1.0.1** | GitHub Release | `two-layer` | ✅ pass | ✅ pass | +| **1.0.1** | GitHub Release | `ai-team` | ✅ pass | ✅ pass | +| **1.0.1** | GitHub Release | `upstream` | ⏭️ not applicable — Upstream inheritance (`.squad/upstream.json`, `squad upstream add`) is a Squad 2.0 feature; 1.0.1 cannot declare an upstream, so there is nothing for the upgrade to preserve. | ⏭️ not applicable — Upstream inheritance (`.squad/upstream.json`, `squad upstream add`) is a Squad 2.0 feature; 1.0.1 cannot declare an upstream, so there is nothing for the upgrade to preserve. | +| **1.1.0** | GitHub Release | `default` | ✅ pass | ✅ pass | +| **1.1.0** | GitHub Release | `profile` | ✅ pass | ✅ pass | +| **1.1.0** | GitHub Release | `legacy-casting` | ✅ pass | ✅ pass | +| **1.1.0** | GitHub Release | `orphan` | ✅ pass | ✅ pass | +| **1.1.0** | GitHub Release | `two-layer` | ✅ pass | ✅ pass | +| **1.1.0** | GitHub Release | `ai-team` | ✅ pass | ✅ pass | +| **1.1.0** | GitHub Release | `upstream` | ⏭️ not applicable — Upstream inheritance (`.squad/upstream.json`, `squad upstream add`) is a Squad 2.0 feature; 1.1.0 cannot declare an upstream, so there is nothing for the upgrade to preserve. | ⏭️ not applicable — Upstream inheritance (`.squad/upstream.json`, `squad upstream add`) is a Squad 2.0 feature; 1.1.0 cannot declare an upstream, so there is nothing for the upgrade to preserve. | +| **HEAD** | local HEAD (pack) | `default` | ✅ pass | ✅ pass | +| **HEAD** | local HEAD (pack) | `profile` | ✅ pass | ✅ pass | +| **HEAD** | local HEAD (pack) | `legacy-casting` | ✅ pass | ✅ pass | +| **HEAD** | local HEAD (pack) | `orphan` | ✅ pass | ✅ pass | +| **HEAD** | local HEAD (pack) | `two-layer` | ✅ pass | ✅ pass | +| **HEAD** | local HEAD (pack) | `ai-team` | ✅ pass | ✅ pass | +| **HEAD** | local HEAD (pack) | `upstream` | ✅ pass | ✅ pass | ### Not-applicable cells, each explained @@ -386,6 +391,23 @@ Observed: `idempotent-second-upgrade` fails with exactly `.github/agents/squad.a Resolved: Fixed on squad2-c @ 50afa91a (PR #2279): `runUpgrade` runs `preflightCastingPair()` (ensureCastingDefaults) before `writeAgentTemplate` in both the already-current and the normal path, so a 0.9.x project with an empty `.squad/casting/` gets the `` block on the first upgrade and the second upgrade is byte-identical (C test: `test/upgrade-profile-teamroot.test.ts` › "F4: a 0.9.x project (empty casting/) upgrades in ONE pass"). Verified by this matrix: with the pin still in place, `idempotent-second-upgrade` produced `xpass` on exactly 0.9.1 × default/profile/ai-team; the pin is removed. +### Unsupported downgrade — what each old CLI does to an upgraded repository + +Recorded by the `downgrade-probe` check (dry-run on a copy; the only assertion is "modified nothing"). This is **not** a supported path — see the warning at the top of this section. + +| Platform | Producer | Shapes | Observed | +|----------|----------|--------|----------| +| `linux` | 0.9.1 | all 4 shapes | exit 0, last lines "✓ refreshed .squad/templates/ \| Upgrade complete: v2.0.0 → v0.9.1 \| Preserves user state: team.md, decisions/, agents/*/history.md"; MODIFIED 68 files (20 coordinator/templates/workflows, e.g. .copilot/skills/agent-collaboration/SKILL.md, .copilot/skills/agent-conduct/SKILL.md, .copilot/skills/architectural-proposals/SKILL.md …) | +| `linux` | 0.13.1 | all 6 shapes | exit 0, last lines "overwrite ../.github/workflows/squad-triage.yml \| overwrite ../.github/workflows/sync-squad-labels.yml \| Run without --dry-run to apply."; modified nothing | +| `linux` | 1.0.0 | all 6 shapes | exit 0, last lines "overwrite ../.github/workflows/squad-triage.yml \| overwrite ../.github/workflows/sync-squad-labels.yml \| Run without --dry-run to apply."; modified nothing | +| `linux` | 1.0.1 | all 6 shapes | exit 0, last lines "overwrite ../.github/workflows/squad-triage.yml \| overwrite ../.github/workflows/sync-squad-labels.yml \| Run without --dry-run to apply."; modified nothing | +| `linux` | 1.1.0 | all 6 shapes | exit 0, last lines "overwrite ../.github/workflows/squad-triage.yml \| overwrite ../.github/workflows/sync-squad-labels.yml \| Run without --dry-run to apply."; modified nothing | +| `win32` | 0.9.1 | all 4 shapes | exit 0, last lines "✓ refreshed .squad/templates/ \| Upgrade complete: v2.0.0 → v0.9.1 \| Preserves user state: team.md, decisions/, agents/*/history.md"; MODIFIED 67 files (20 coordinator/templates/workflows, e.g. .copilot/skills/agent-collaboration/SKILL.md, .copilot/skills/agent-conduct/SKILL.md, .copilot/skills/architectural-proposals/SKILL.md …) | +| `win32` | 0.13.1 | all 6 shapes | exit 0, last lines "overwrite ../.github/workflows/squad-triage.yml \| overwrite ../.github/workflows/sync-squad-labels.yml \| Run without --dry-run to apply."; modified nothing | +| `win32` | 1.0.0 | all 6 shapes | exit 0, last lines "overwrite ../.github/workflows/squad-triage.yml \| overwrite ../.github/workflows/sync-squad-labels.yml \| Run without --dry-run to apply."; modified nothing | +| `win32` | 1.0.1 | all 6 shapes | exit 0, last lines "overwrite ../.github/workflows/squad-triage.yml \| overwrite ../.github/workflows/sync-squad-labels.yml \| Run without --dry-run to apply."; modified nothing | +| `win32` | 1.1.0 | all 6 shapes | exit 0, last lines "overwrite ../.github/workflows/squad-triage.yml \| overwrite ../.github/workflows/sync-squad-labels.yml \| Run without --dry-run to apply."; modified nothing | + --- diff --git a/test-fixtures/spec/suite-v0.2/upgrade-matrix.json b/test-fixtures/spec/suite-v0.2/upgrade-matrix.json index 144e81eb0..e4b65aea0 100644 --- a/test-fixtures/spec/suite-v0.2/upgrade-matrix.json +++ b/test-fixtures/spec/suite-v0.2/upgrade-matrix.json @@ -6020,5 +6020,5702 @@ ] } ], - "runs": [] + "runs": [ + { + "platform": "linux", + "arch": "x64", + "node": "v22.23.5", + "target": "2.0.0", + "targetSha": "8c2b93d569f15e41d2737e57dcfa5247c2c816c4", + "harnessHash": "6ec033a4d3b76600ddd8430926b3ca81623131dc268c84e51122b21fc4a6f268", + "event": "pull_request", + "runUrl": "https://github.com/github/squad/actions/runs/44529782520", + "recordedAt": "2026-11-19T13:05:47.722Z", + "results": [ + { + "producer": "0.9.1", + "source": "npm", + "shape": "orphan", + "status": "skipped", + "reason": "`@bradygaster/squad-cli@0.9.1` has no `--state-backend` flag (first shipped in 0.13.x), so an orphan-backend project cannot be produced by it.", + "provenance": "npm: @bradygaster/squad-cli@0.9.1 sha512-TcZqRbJk3XBg4N8Y5/5OWJeA52ARAMuzk4MGtB0bfdr87e7iJRV6lJEw8+OIYz9IQ+1JxN/Q30dZDALMOcdi2w==; @bradygaster/squad-sdk@0.9.1 sha512-1KqZ2N6Lt/B4uYlU/Su9JjA1s/7ng0OAEb9CZrkRk19YSPi6tg7K5QWdTKl5gY/gp8zPAJqfjVffOwrZwGlzmw==", + "checks": [], + "notes": [] + }, + { + "producer": "0.9.1", + "source": "npm", + "shape": "two-layer", + "status": "skipped", + "reason": "`@bradygaster/squad-cli@0.9.1` has no `--state-backend` flag (first shipped in 0.13.x), so a two-layer-backend project cannot be produced by it.", + "provenance": "npm: @bradygaster/squad-cli@0.9.1 sha512-TcZqRbJk3XBg4N8Y5/5OWJeA52ARAMuzk4MGtB0bfdr87e7iJRV6lJEw8+OIYz9IQ+1JxN/Q30dZDALMOcdi2w==; @bradygaster/squad-sdk@0.9.1 sha512-1KqZ2N6Lt/B4uYlU/Su9JjA1s/7ng0OAEb9CZrkRk19YSPi6tg7K5QWdTKl5gY/gp8zPAJqfjVffOwrZwGlzmw==", + "checks": [], + "notes": [] + }, + { + "producer": "0.9.1", + "source": "npm", + "shape": "upstream", + "status": "skipped", + "reason": "Upstream inheritance (`.squad/upstream.json`, `squad upstream add`) is a Squad 2.0 feature; 0.9.1 cannot declare an upstream, so there is nothing for the upgrade to preserve.", + "provenance": "npm: @bradygaster/squad-cli@0.9.1 sha512-TcZqRbJk3XBg4N8Y5/5OWJeA52ARAMuzk4MGtB0bfdr87e7iJRV6lJEw8+OIYz9IQ+1JxN/Q30dZDALMOcdi2w==; @bradygaster/squad-sdk@0.9.1 sha512-1KqZ2N6Lt/B4uYlU/Su9JjA1s/7ng0OAEb9CZrkRk19YSPi6tg7K5QWdTKl5gY/gp8zPAJqfjVffOwrZwGlzmw==", + "checks": [], + "notes": [] + }, + { + "producer": "0.13.1", + "source": "npm", + "shape": "default", + "status": "pass", + "provenance": "npm: @bradygaster/squad-cli@0.13.1 sha512-ogfx2nhyx6fqMyqlaI5tDnOzUbRdh+a6Uh/rMQ0aNJwAXnvQp4N37Xp/eOTyB5CxcB7E34NBtAfCxyXbWSiS8w==; @bradygaster/squad-sdk@0.13.1 sha512-1Jt6c9kahJq1JCcE77j/50D79YcXVG6Rt1genuLJ3O9J2SKTZKemlbvHgftkc5LgGH22DkWqHh5zLNEQ/p+ukA==", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 153 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+149)", + "old 0.13.1 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "0.9.1", + "source": "npm", + "shape": "default", + "status": "pass", + "provenance": "npm: @bradygaster/squad-cli@0.9.1 sha512-TcZqRbJk3XBg4N8Y5/5OWJeA52ARAMuzk4MGtB0bfdr87e7iJRV6lJEw8+OIYz9IQ+1JxN/Q30dZDALMOcdi2w==; @bradygaster/squad-sdk@0.9.1 sha512-1KqZ2N6Lt/B4uYlU/Su9JjA1s/7ng0OAEb9CZrkRk19YSPi6tg7K5QWdTKl5gY/gp8zPAJqfjVffOwrZwGlzmw==", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "xfail", + "detail": "dry-run MODIFIED 68 files (20 coordinator/templates/workflows, e.g. .copilot/skills/agent-collaboration/SKILL.md, .copilot/skills/agent-conduct/SKILL.md, .copilot/skills/architectural-proposals/SKILL.md …)" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 230 working-tree path(s), all Squad-owned: .copilot/skills/agent-collaboration/SKILL.md, .copilot/skills/agent-conduct/SKILL.md, .copilot/skills/architectural-proposals/SKILL.md, .copilot/skills/ci-validation-gates/SKILL.md … (+226)", + "old 0.9.1 upgrade --dry-run on upgraded project: exit 0, last lines \"\u001b[32m✓\u001b[0m refreshed .squad/templates/ | Upgrade complete: v2.0.0 → v0.9.1 | \u001b[2mPreserves user state: team.md, decisions/, agents/*/history.md\u001b[0m\"; MODIFIED 68 files (20 coordinator/templates/workflows, e.g. .copilot/skills/agent-collaboration/SKILL.md, .copilot/skills/agent-conduct/SKILL.md, .copilot/skills/architectural-proposals/SKILL.md …)", + "downgrade-probe: F3" + ] + }, + { + "producer": "0.9.1", + "source": "npm", + "shape": "legacy-casting", + "status": "pass", + "provenance": "npm: @bradygaster/squad-cli@0.9.1 sha512-TcZqRbJk3XBg4N8Y5/5OWJeA52ARAMuzk4MGtB0bfdr87e7iJRV6lJEw8+OIYz9IQ+1JxN/Q30dZDALMOcdi2w==; @bradygaster/squad-sdk@0.9.1 sha512-1KqZ2N6Lt/B4uYlU/Su9JjA1s/7ng0OAEb9CZrkRk19YSPi6tg7K5QWdTKl5gY/gp8zPAJqfjVffOwrZwGlzmw==", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "xfail", + "detail": "dry-run MODIFIED 68 files (20 coordinator/templates/workflows, e.g. .copilot/skills/agent-collaboration/SKILL.md, .copilot/skills/agent-conduct/SKILL.md, .copilot/skills/architectural-proposals/SKILL.md …)" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 231 working-tree path(s), all Squad-owned: .copilot/skills/agent-collaboration/SKILL.md, .copilot/skills/agent-conduct/SKILL.md, .copilot/skills/architectural-proposals/SKILL.md, .copilot/skills/ci-validation-gates/SKILL.md … (+227)", + "old 0.9.1 upgrade --dry-run on upgraded project: exit 0, last lines \"\u001b[32m✓\u001b[0m refreshed .squad/templates/ | Upgrade complete: v2.0.0 → v0.9.1 | \u001b[2mPreserves user state: team.md, decisions/, agents/*/history.md\u001b[0m\"; MODIFIED 68 files (20 coordinator/templates/workflows, e.g. .copilot/skills/agent-collaboration/SKILL.md, .copilot/skills/agent-conduct/SKILL.md, .copilot/skills/architectural-proposals/SKILL.md …)", + "downgrade-probe: F3" + ] + }, + { + "producer": "0.9.1", + "source": "npm", + "shape": "ai-team", + "status": "pass", + "provenance": "npm: @bradygaster/squad-cli@0.9.1 sha512-TcZqRbJk3XBg4N8Y5/5OWJeA52ARAMuzk4MGtB0bfdr87e7iJRV6lJEw8+OIYz9IQ+1JxN/Q30dZDALMOcdi2w==; @bradygaster/squad-sdk@0.9.1 sha512-1KqZ2N6Lt/B4uYlU/Su9JjA1s/7ng0OAEb9CZrkRk19YSPi6tg7K5QWdTKl5gY/gp8zPAJqfjVffOwrZwGlzmw==", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "pass" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "xfail", + "detail": "dry-run MODIFIED 68 files (20 coordinator/templates/workflows, e.g. .copilot/skills/agent-collaboration/SKILL.md, .copilot/skills/agent-conduct/SKILL.md, .copilot/skills/architectural-proposals/SKILL.md …)" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 230 working-tree path(s), all Squad-owned: .copilot/skills/agent-collaboration/SKILL.md, .copilot/skills/agent-conduct/SKILL.md, .copilot/skills/architectural-proposals/SKILL.md, .copilot/skills/ci-validation-gates/SKILL.md … (+226)", + "old 0.9.1 upgrade --dry-run on upgraded project: exit 0, last lines \"\u001b[32m✓\u001b[0m refreshed .squad/templates/ | Upgrade complete: v2.0.0 → v0.9.1 | \u001b[2mPreserves user state: team.md, decisions/, agents/*/history.md\u001b[0m\"; MODIFIED 68 files (20 coordinator/templates/workflows, e.g. .copilot/skills/agent-collaboration/SKILL.md, .copilot/skills/agent-conduct/SKILL.md, .copilot/skills/architectural-proposals/SKILL.md …)", + "downgrade-probe: F3" + ] + }, + { + "producer": "0.9.1", + "source": "npm", + "shape": "profile", + "status": "pass", + "provenance": "npm: @bradygaster/squad-cli@0.9.1 sha512-TcZqRbJk3XBg4N8Y5/5OWJeA52ARAMuzk4MGtB0bfdr87e7iJRV6lJEw8+OIYz9IQ+1JxN/Q30dZDALMOcdi2w==; @bradygaster/squad-sdk@0.9.1 sha512-1KqZ2N6Lt/B4uYlU/Su9JjA1s/7ng0OAEb9CZrkRk19YSPi6tg7K5QWdTKl5gY/gp8zPAJqfjVffOwrZwGlzmw==", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "xfail", + "detail": "dry-run MODIFIED 68 files (20 coordinator/templates/workflows, e.g. .copilot/skills/agent-collaboration/SKILL.md, .copilot/skills/agent-conduct/SKILL.md, .copilot/skills/architectural-proposals/SKILL.md …)" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "pass" + } + ], + "notes": [ + "plain upgrade changed 230 working-tree path(s), all Squad-owned: .copilot/skills/agent-collaboration/SKILL.md, .copilot/skills/agent-conduct/SKILL.md, .copilot/skills/architectural-proposals/SKILL.md, .copilot/skills/ci-validation-gates/SKILL.md … (+226)", + "old 0.9.1 upgrade --dry-run on upgraded project: exit 0, last lines \"\u001b[32m✓\u001b[0m refreshed .squad/templates/ | Upgrade complete: v2.0.0 → v0.9.1 | \u001b[2mPreserves user state: team.md, decisions/, agents/*/history.md\u001b[0m\"; MODIFIED 68 files (20 coordinator/templates/workflows, e.g. .copilot/skills/agent-collaboration/SKILL.md, .copilot/skills/agent-conduct/SKILL.md, .copilot/skills/architectural-proposals/SKILL.md …)", + "downgrade-probe: F3" + ] + }, + { + "producer": "0.13.1", + "source": "npm", + "shape": "profile", + "status": "pass", + "provenance": "npm: @bradygaster/squad-cli@0.13.1 sha512-ogfx2nhyx6fqMyqlaI5tDnOzUbRdh+a6Uh/rMQ0aNJwAXnvQp4N37Xp/eOTyB5CxcB7E34NBtAfCxyXbWSiS8w==; @bradygaster/squad-sdk@0.13.1 sha512-1Jt6c9kahJq1JCcE77j/50D79YcXVG6Rt1genuLJ3O9J2SKTZKemlbvHgftkc5LgGH22DkWqHh5zLNEQ/p+ukA==", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "pass" + } + ], + "notes": [ + "producer wrote teamRoot=/squad at init", + "plain upgrade changed 154 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+150)", + "old 0.13.1 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "0.13.1", + "source": "npm", + "shape": "upstream", + "status": "skipped", + "reason": "Upstream inheritance (`.squad/upstream.json`, `squad upstream add`) is a Squad 2.0 feature; 0.13.1 cannot declare an upstream, so there is nothing for the upgrade to preserve.", + "provenance": "npm: @bradygaster/squad-cli@0.13.1 sha512-ogfx2nhyx6fqMyqlaI5tDnOzUbRdh+a6Uh/rMQ0aNJwAXnvQp4N37Xp/eOTyB5CxcB7E34NBtAfCxyXbWSiS8w==; @bradygaster/squad-sdk@0.13.1 sha512-1Jt6c9kahJq1JCcE77j/50D79YcXVG6Rt1genuLJ3O9J2SKTZKemlbvHgftkc5LgGH22DkWqHh5zLNEQ/p+ukA==", + "checks": [], + "notes": [] + }, + { + "producer": "0.13.1", + "source": "npm", + "shape": "ai-team", + "status": "pass", + "provenance": "npm: @bradygaster/squad-cli@0.13.1 sha512-ogfx2nhyx6fqMyqlaI5tDnOzUbRdh+a6Uh/rMQ0aNJwAXnvQp4N37Xp/eOTyB5CxcB7E34NBtAfCxyXbWSiS8w==; @bradygaster/squad-sdk@0.13.1 sha512-1Jt6c9kahJq1JCcE77j/50D79YcXVG6Rt1genuLJ3O9J2SKTZKemlbvHgftkc5LgGH22DkWqHh5zLNEQ/p+ukA==", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "pass" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 153 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+149)", + "old 0.13.1 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "0.13.1", + "source": "npm", + "shape": "two-layer", + "status": "pass", + "provenance": "npm: @bradygaster/squad-cli@0.13.1 sha512-ogfx2nhyx6fqMyqlaI5tDnOzUbRdh+a6Uh/rMQ0aNJwAXnvQp4N37Xp/eOTyB5CxcB7E34NBtAfCxyXbWSiS8w==; @bradygaster/squad-sdk@0.13.1 sha512-1Jt6c9kahJq1JCcE77j/50D79YcXVG6Rt1genuLJ3O9J2SKTZKemlbvHgftkc5LgGH22DkWqHh5zLNEQ/p+ukA==", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 151 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+147); squad-state blobs for 3 seeded path(s) identical", + "old 0.13.1 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "0.13.1", + "source": "npm", + "shape": "orphan", + "status": "pass", + "provenance": "npm: @bradygaster/squad-cli@0.13.1 sha512-ogfx2nhyx6fqMyqlaI5tDnOzUbRdh+a6Uh/rMQ0aNJwAXnvQp4N37Xp/eOTyB5CxcB7E34NBtAfCxyXbWSiS8w==; @bradygaster/squad-sdk@0.13.1 sha512-1Jt6c9kahJq1JCcE77j/50D79YcXVG6Rt1genuLJ3O9J2SKTZKemlbvHgftkc5LgGH22DkWqHh5zLNEQ/p+ukA==", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 151 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+147); squad-state blobs for 3 seeded path(s) identical", + "old 0.13.1 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "0.13.1", + "source": "npm", + "shape": "legacy-casting", + "status": "pass", + "provenance": "npm: @bradygaster/squad-cli@0.13.1 sha512-ogfx2nhyx6fqMyqlaI5tDnOzUbRdh+a6Uh/rMQ0aNJwAXnvQp4N37Xp/eOTyB5CxcB7E34NBtAfCxyXbWSiS8w==; @bradygaster/squad-sdk@0.13.1 sha512-1Jt6c9kahJq1JCcE77j/50D79YcXVG6Rt1genuLJ3O9J2SKTZKemlbvHgftkc5LgGH22DkWqHh5zLNEQ/p+ukA==", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 153 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+149)", + "old 0.13.1 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "1.0.0", + "source": "npm", + "shape": "default", + "status": "pass", + "provenance": "npm: @bradygaster/squad-cli@1.0.0 sha512-mnZXnA+GAtp4KSLf7a4Zw0BpeOaHFAxYV5oxAy58ancZ9C2LguUGbcTxWIG0djM96XWET8K9fcncif3Vm6Z9RQ==; @bradygaster/squad-sdk@1.0.0 sha512-9f4NthJaQDq6ifXU3f6VfsZz2bbWs2u57fHhXKtDgDMSvZ3Xq8FPjMvddxhRvseWqaSlkYcWsag3M/lzTtKaJA==", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 89 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+85)", + "old 1.0.0 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "1.0.0", + "source": "npm", + "shape": "profile", + "status": "pass", + "provenance": "npm: @bradygaster/squad-cli@1.0.0 sha512-mnZXnA+GAtp4KSLf7a4Zw0BpeOaHFAxYV5oxAy58ancZ9C2LguUGbcTxWIG0djM96XWET8K9fcncif3Vm6Z9RQ==; @bradygaster/squad-sdk@1.0.0 sha512-9f4NthJaQDq6ifXU3f6VfsZz2bbWs2u57fHhXKtDgDMSvZ3Xq8FPjMvddxhRvseWqaSlkYcWsag3M/lzTtKaJA==", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "pass" + } + ], + "notes": [ + "producer wrote teamRoot=/squad at init", + "plain upgrade changed 90 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+86)", + "old 1.0.0 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "1.0.0", + "source": "npm", + "shape": "upstream", + "status": "skipped", + "reason": "Upstream inheritance (`.squad/upstream.json`, `squad upstream add`) is a Squad 2.0 feature; 1.0.0 cannot declare an upstream, so there is nothing for the upgrade to preserve.", + "provenance": "npm: @bradygaster/squad-cli@1.0.0 sha512-mnZXnA+GAtp4KSLf7a4Zw0BpeOaHFAxYV5oxAy58ancZ9C2LguUGbcTxWIG0djM96XWET8K9fcncif3Vm6Z9RQ==; @bradygaster/squad-sdk@1.0.0 sha512-9f4NthJaQDq6ifXU3f6VfsZz2bbWs2u57fHhXKtDgDMSvZ3Xq8FPjMvddxhRvseWqaSlkYcWsag3M/lzTtKaJA==", + "checks": [], + "notes": [] + }, + { + "producer": "1.0.0", + "source": "npm", + "shape": "legacy-casting", + "status": "pass", + "provenance": "npm: @bradygaster/squad-cli@1.0.0 sha512-mnZXnA+GAtp4KSLf7a4Zw0BpeOaHFAxYV5oxAy58ancZ9C2LguUGbcTxWIG0djM96XWET8K9fcncif3Vm6Z9RQ==; @bradygaster/squad-sdk@1.0.0 sha512-9f4NthJaQDq6ifXU3f6VfsZz2bbWs2u57fHhXKtDgDMSvZ3Xq8FPjMvddxhRvseWqaSlkYcWsag3M/lzTtKaJA==", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 94 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+90)", + "old 1.0.0 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "1.0.0", + "source": "npm", + "shape": "orphan", + "status": "pass", + "provenance": "npm: @bradygaster/squad-cli@1.0.0 sha512-mnZXnA+GAtp4KSLf7a4Zw0BpeOaHFAxYV5oxAy58ancZ9C2LguUGbcTxWIG0djM96XWET8K9fcncif3Vm6Z9RQ==; @bradygaster/squad-sdk@1.0.0 sha512-9f4NthJaQDq6ifXU3f6VfsZz2bbWs2u57fHhXKtDgDMSvZ3Xq8FPjMvddxhRvseWqaSlkYcWsag3M/lzTtKaJA==", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 87 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+83); squad-state blobs for 3 seeded path(s) identical", + "old 1.0.0 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "1.0.0", + "source": "npm", + "shape": "two-layer", + "status": "pass", + "provenance": "npm: @bradygaster/squad-cli@1.0.0 sha512-mnZXnA+GAtp4KSLf7a4Zw0BpeOaHFAxYV5oxAy58ancZ9C2LguUGbcTxWIG0djM96XWET8K9fcncif3Vm6Z9RQ==; @bradygaster/squad-sdk@1.0.0 sha512-9f4NthJaQDq6ifXU3f6VfsZz2bbWs2u57fHhXKtDgDMSvZ3Xq8FPjMvddxhRvseWqaSlkYcWsag3M/lzTtKaJA==", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 87 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+83); squad-state blobs for 3 seeded path(s) identical", + "old 1.0.0 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "1.0.0", + "source": "npm", + "shape": "ai-team", + "status": "pass", + "provenance": "npm: @bradygaster/squad-cli@1.0.0 sha512-mnZXnA+GAtp4KSLf7a4Zw0BpeOaHFAxYV5oxAy58ancZ9C2LguUGbcTxWIG0djM96XWET8K9fcncif3Vm6Z9RQ==; @bradygaster/squad-sdk@1.0.0 sha512-9f4NthJaQDq6ifXU3f6VfsZz2bbWs2u57fHhXKtDgDMSvZ3Xq8FPjMvddxhRvseWqaSlkYcWsag3M/lzTtKaJA==", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "pass" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 89 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+85)", + "old 1.0.0 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "1.0.1", + "source": "github-release", + "shape": "default", + "status": "pass", + "provenance": "github-release: github/squad@v1.0.1 asset squad-linux-x64.tar.gz id 610330551 sha256 283a1893be9ddad11056dcc8bd0673eff6b48a789bbf523b3f7ec31994d27ac7 (bundled node 22.20.0)", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 89 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+85)", + "old 1.0.1 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "1.0.1", + "source": "github-release", + "shape": "profile", + "status": "pass", + "provenance": "github-release: github/squad@v1.0.1 asset squad-linux-x64.tar.gz id 610330551 sha256 283a1893be9ddad11056dcc8bd0673eff6b48a789bbf523b3f7ec31994d27ac7 (bundled node 22.20.0)", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "pass" + } + ], + "notes": [ + "producer wrote teamRoot=/squad at init", + "plain upgrade changed 90 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+86)", + "old 1.0.1 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "1.0.1", + "source": "github-release", + "shape": "upstream", + "status": "skipped", + "reason": "Upstream inheritance (`.squad/upstream.json`, `squad upstream add`) is a Squad 2.0 feature; 1.0.1 cannot declare an upstream, so there is nothing for the upgrade to preserve.", + "provenance": "github-release: github/squad@v1.0.1 asset squad-linux-x64.tar.gz id 610330551 sha256 283a1893be9ddad11056dcc8bd0673eff6b48a789bbf523b3f7ec31994d27ac7 (bundled node 22.20.0)", + "checks": [], + "notes": [] + }, + { + "producer": "1.0.1", + "source": "github-release", + "shape": "legacy-casting", + "status": "pass", + "provenance": "github-release: github/squad@v1.0.1 asset squad-linux-x64.tar.gz id 610330551 sha256 283a1893be9ddad11056dcc8bd0673eff6b48a789bbf523b3f7ec31994d27ac7 (bundled node 22.20.0)", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 94 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+90)", + "old 1.0.1 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "1.0.1", + "source": "github-release", + "shape": "orphan", + "status": "pass", + "provenance": "github-release: github/squad@v1.0.1 asset squad-linux-x64.tar.gz id 610330551 sha256 283a1893be9ddad11056dcc8bd0673eff6b48a789bbf523b3f7ec31994d27ac7 (bundled node 22.20.0)", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 87 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+83); squad-state blobs for 3 seeded path(s) identical", + "old 1.0.1 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "1.0.1", + "source": "github-release", + "shape": "two-layer", + "status": "pass", + "provenance": "github-release: github/squad@v1.0.1 asset squad-linux-x64.tar.gz id 610330551 sha256 283a1893be9ddad11056dcc8bd0673eff6b48a789bbf523b3f7ec31994d27ac7 (bundled node 22.20.0)", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 87 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+83); squad-state blobs for 3 seeded path(s) identical", + "old 1.0.1 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "1.0.1", + "source": "github-release", + "shape": "ai-team", + "status": "pass", + "provenance": "github-release: github/squad@v1.0.1 asset squad-linux-x64.tar.gz id 610330551 sha256 283a1893be9ddad11056dcc8bd0673eff6b48a789bbf523b3f7ec31994d27ac7 (bundled node 22.20.0)", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "pass" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 89 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+85)", + "old 1.0.1 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "1.1.0", + "source": "github-release", + "shape": "default", + "status": "pass", + "provenance": "github-release: github/squad@v1.1.0 asset squad-linux-x64.tar.gz id 659607641 sha256 2de647a3feaef334051eb1b3084acba37a511818aad029a16abfe32fadb41aff (bundled node 22.20.0)", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 59 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+55)", + "old 1.1.0 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "1.1.0", + "source": "github-release", + "shape": "profile", + "status": "pass", + "provenance": "github-release: github/squad@v1.1.0 asset squad-linux-x64.tar.gz id 659607641 sha256 2de647a3feaef334051eb1b3084acba37a511818aad029a16abfe32fadb41aff (bundled node 22.20.0)", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "pass" + } + ], + "notes": [ + "producer wrote teamRoot=/squad at init", + "plain upgrade changed 60 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+56)", + "old 1.1.0 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "1.1.0", + "source": "github-release", + "shape": "upstream", + "status": "skipped", + "reason": "Upstream inheritance (`.squad/upstream.json`, `squad upstream add`) is a Squad 2.0 feature; 1.1.0 cannot declare an upstream, so there is nothing for the upgrade to preserve.", + "provenance": "github-release: github/squad@v1.1.0 asset squad-linux-x64.tar.gz id 659607641 sha256 2de647a3feaef334051eb1b3084acba37a511818aad029a16abfe32fadb41aff (bundled node 22.20.0)", + "checks": [], + "notes": [] + }, + { + "producer": "1.1.0", + "source": "github-release", + "shape": "legacy-casting", + "status": "pass", + "provenance": "github-release: github/squad@v1.1.0 asset squad-linux-x64.tar.gz id 659607641 sha256 2de647a3feaef334051eb1b3084acba37a511818aad029a16abfe32fadb41aff (bundled node 22.20.0)", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 64 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+60)", + "old 1.1.0 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "HEAD", + "source": "pack", + "shape": "default", + "status": "pass", + "provenance": "pack: npm pack of packages/squad-sdk + packages/squad-cli at 8c2b93d569f15e41d2737e57dcfa5247c2c816c4 (v2.0.0)", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "skipped", + "detail": "producer is the target version" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 12 working-tree path(s), all Squad-owned: .github/workflows/squad-ci.yml, .github/workflows/squad-docs.yml, .github/workflows/squad-insider-release.yml, .github/workflows/squad-label-enforce.yml … (+8)" + ] + }, + { + "producer": "1.1.0", + "source": "github-release", + "shape": "ai-team", + "status": "pass", + "provenance": "github-release: github/squad@v1.1.0 asset squad-linux-x64.tar.gz id 659607641 sha256 2de647a3feaef334051eb1b3084acba37a511818aad029a16abfe32fadb41aff (bundled node 22.20.0)", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "pass" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 59 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+55)", + "old 1.1.0 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "1.1.0", + "source": "github-release", + "shape": "orphan", + "status": "pass", + "provenance": "github-release: github/squad@v1.1.0 asset squad-linux-x64.tar.gz id 659607641 sha256 2de647a3feaef334051eb1b3084acba37a511818aad029a16abfe32fadb41aff (bundled node 22.20.0)", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 57 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+53); squad-state blobs for 3 seeded path(s) identical", + "old 1.1.0 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "1.1.0", + "source": "github-release", + "shape": "two-layer", + "status": "pass", + "provenance": "github-release: github/squad@v1.1.0 asset squad-linux-x64.tar.gz id 659607641 sha256 2de647a3feaef334051eb1b3084acba37a511818aad029a16abfe32fadb41aff (bundled node 22.20.0)", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 57 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+53); squad-state blobs for 3 seeded path(s) identical", + "old 1.1.0 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "HEAD", + "source": "pack", + "shape": "profile", + "status": "pass", + "provenance": "pack: npm pack of packages/squad-sdk + packages/squad-cli at 8c2b93d569f15e41d2737e57dcfa5247c2c816c4 (v2.0.0)", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "skipped", + "detail": "producer is the target version" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "pass" + } + ], + "notes": [ + "plain upgrade changed 12 working-tree path(s), all Squad-owned: .github/workflows/squad-ci.yml, .github/workflows/squad-docs.yml, .github/workflows/squad-insider-release.yml, .github/workflows/squad-label-enforce.yml … (+8)" + ] + }, + { + "producer": "HEAD", + "source": "pack", + "shape": "legacy-casting", + "status": "pass", + "provenance": "pack: npm pack of packages/squad-sdk + packages/squad-cli at 8c2b93d569f15e41d2737e57dcfa5247c2c816c4 (v2.0.0)", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "skipped", + "detail": "producer is the target version" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 17 working-tree path(s), all Squad-owned: .github/workflows/squad-ci.yml, .github/workflows/squad-docs.yml, .github/workflows/squad-insider-release.yml, .github/workflows/squad-label-enforce.yml … (+13)" + ] + }, + { + "producer": "HEAD", + "source": "pack", + "shape": "orphan", + "status": "pass", + "provenance": "pack: npm pack of packages/squad-sdk + packages/squad-cli at 8c2b93d569f15e41d2737e57dcfa5247c2c816c4 (v2.0.0)", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "skipped", + "detail": "producer is the target version" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 15 working-tree path(s), all Squad-owned: .github/workflows/squad-ci.yml, .github/workflows/squad-docs.yml, .github/workflows/squad-insider-release.yml, .github/workflows/squad-label-enforce.yml … (+11); squad-state blobs for 3 seeded path(s) identical" + ] + }, + { + "producer": "HEAD", + "source": "pack", + "shape": "ai-team", + "status": "pass", + "provenance": "pack: npm pack of packages/squad-sdk + packages/squad-cli at 8c2b93d569f15e41d2737e57dcfa5247c2c816c4 (v2.0.0)", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "pass" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "skipped", + "detail": "producer is the target version" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 12 working-tree path(s), all Squad-owned: .github/workflows/squad-ci.yml, .github/workflows/squad-docs.yml, .github/workflows/squad-insider-release.yml, .github/workflows/squad-label-enforce.yml … (+8)" + ] + }, + { + "producer": "HEAD", + "source": "pack", + "shape": "two-layer", + "status": "pass", + "provenance": "pack: npm pack of packages/squad-sdk + packages/squad-cli at 8c2b93d569f15e41d2737e57dcfa5247c2c816c4 (v2.0.0)", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "skipped", + "detail": "producer is the target version" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 15 working-tree path(s), all Squad-owned: .github/workflows/squad-ci.yml, .github/workflows/squad-docs.yml, .github/workflows/squad-insider-release.yml, .github/workflows/squad-label-enforce.yml … (+11); squad-state blobs for 3 seeded path(s) identical" + ] + }, + { + "producer": "HEAD", + "source": "pack", + "shape": "upstream", + "status": "pass", + "provenance": "pack: npm pack of packages/squad-sdk + packages/squad-cli at 8c2b93d569f15e41d2737e57dcfa5247c2c816c4 (v2.0.0)", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "skipped", + "detail": "producer is the target version" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 12 working-tree path(s), all Squad-owned: .github/workflows/squad-ci.yml, .github/workflows/squad-docs.yml, .github/workflows/squad-insider-release.yml, .github/workflows/squad-label-enforce.yml … (+8)" + ] + } + ] + }, + { + "platform": "win32", + "arch": "x64", + "node": "v22.23.4", + "target": "2.0.0", + "targetSha": "8c2b93d569f15e41d2737e57dcfa5247c2c816c4", + "harnessHash": "6ec033a4d3b76600ddd8430926b3ca81623131dc268c84e51122b21fc4a6f268", + "event": "pull_request", + "runUrl": "https://github.com/github/squad/actions/runs/44529782520", + "recordedAt": "2026-11-19T13:08:39.867Z", + "results": [ + { + "producer": "0.9.1", + "source": "npm", + "shape": "orphan", + "status": "skipped", + "reason": "`@bradygaster/squad-cli@0.9.1` has no `--state-backend` flag (first shipped in 0.13.x), so an orphan-backend project cannot be produced by it.", + "provenance": "npm: @bradygaster/squad-cli@0.9.1 sha512-TcZqRbJk3XBg4N8Y5/5OWJeA52ARAMuzk4MGtB0bfdr87e7iJRV6lJEw8+OIYz9IQ+1JxN/Q30dZDALMOcdi2w==; @bradygaster/squad-sdk@0.9.1 sha512-1KqZ2N6Lt/B4uYlU/Su9JjA1s/7ng0OAEb9CZrkRk19YSPi6tg7K5QWdTKl5gY/gp8zPAJqfjVffOwrZwGlzmw==", + "checks": [], + "notes": [] + }, + { + "producer": "0.9.1", + "source": "npm", + "shape": "two-layer", + "status": "skipped", + "reason": "`@bradygaster/squad-cli@0.9.1` has no `--state-backend` flag (first shipped in 0.13.x), so a two-layer-backend project cannot be produced by it.", + "provenance": "npm: @bradygaster/squad-cli@0.9.1 sha512-TcZqRbJk3XBg4N8Y5/5OWJeA52ARAMuzk4MGtB0bfdr87e7iJRV6lJEw8+OIYz9IQ+1JxN/Q30dZDALMOcdi2w==; @bradygaster/squad-sdk@0.9.1 sha512-1KqZ2N6Lt/B4uYlU/Su9JjA1s/7ng0OAEb9CZrkRk19YSPi6tg7K5QWdTKl5gY/gp8zPAJqfjVffOwrZwGlzmw==", + "checks": [], + "notes": [] + }, + { + "producer": "0.9.1", + "source": "npm", + "shape": "upstream", + "status": "skipped", + "reason": "Upstream inheritance (`.squad/upstream.json`, `squad upstream add`) is a Squad 2.0 feature; 0.9.1 cannot declare an upstream, so there is nothing for the upgrade to preserve.", + "provenance": "npm: @bradygaster/squad-cli@0.9.1 sha512-TcZqRbJk3XBg4N8Y5/5OWJeA52ARAMuzk4MGtB0bfdr87e7iJRV6lJEw8+OIYz9IQ+1JxN/Q30dZDALMOcdi2w==; @bradygaster/squad-sdk@0.9.1 sha512-1KqZ2N6Lt/B4uYlU/Su9JjA1s/7ng0OAEb9CZrkRk19YSPi6tg7K5QWdTKl5gY/gp8zPAJqfjVffOwrZwGlzmw==", + "checks": [], + "notes": [] + }, + { + "producer": "0.9.1", + "source": "npm", + "shape": "ai-team", + "status": "pass", + "provenance": "npm: @bradygaster/squad-cli@0.9.1 sha512-TcZqRbJk3XBg4N8Y5/5OWJeA52ARAMuzk4MGtB0bfdr87e7iJRV6lJEw8+OIYz9IQ+1JxN/Q30dZDALMOcdi2w==; @bradygaster/squad-sdk@0.9.1 sha512-1KqZ2N6Lt/B4uYlU/Su9JjA1s/7ng0OAEb9CZrkRk19YSPi6tg7K5QWdTKl5gY/gp8zPAJqfjVffOwrZwGlzmw==", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "pass" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "xfail", + "detail": "dry-run MODIFIED 67 files (20 coordinator/templates/workflows, e.g. .copilot/skills/agent-collaboration/SKILL.md, .copilot/skills/agent-conduct/SKILL.md, .copilot/skills/architectural-proposals/SKILL.md …)" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 230 working-tree path(s), all Squad-owned: .copilot/skills/agent-collaboration/SKILL.md, .copilot/skills/agent-conduct/SKILL.md, .copilot/skills/architectural-proposals/SKILL.md, .copilot/skills/ci-validation-gates/SKILL.md … (+226)", + "old 0.9.1 upgrade --dry-run on upgraded project: exit 0, last lines \"\u001b[32m✓\u001b[0m refreshed .squad/templates/ | Upgrade complete: v2.0.0 → v0.9.1 | \u001b[2mPreserves user state: team.md, decisions/, agents/*/history.md\u001b[0m\"; MODIFIED 67 files (20 coordinator/templates/workflows, e.g. .copilot/skills/agent-collaboration/SKILL.md, .copilot/skills/agent-conduct/SKILL.md, .copilot/skills/architectural-proposals/SKILL.md …)", + "downgrade-probe: F3" + ] + }, + { + "producer": "0.9.1", + "source": "npm", + "shape": "profile", + "status": "pass", + "provenance": "npm: @bradygaster/squad-cli@0.9.1 sha512-TcZqRbJk3XBg4N8Y5/5OWJeA52ARAMuzk4MGtB0bfdr87e7iJRV6lJEw8+OIYz9IQ+1JxN/Q30dZDALMOcdi2w==; @bradygaster/squad-sdk@0.9.1 sha512-1KqZ2N6Lt/B4uYlU/Su9JjA1s/7ng0OAEb9CZrkRk19YSPi6tg7K5QWdTKl5gY/gp8zPAJqfjVffOwrZwGlzmw==", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "xfail", + "detail": "dry-run MODIFIED 67 files (20 coordinator/templates/workflows, e.g. .copilot/skills/agent-collaboration/SKILL.md, .copilot/skills/agent-conduct/SKILL.md, .copilot/skills/architectural-proposals/SKILL.md …)" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "pass" + } + ], + "notes": [ + "plain upgrade changed 230 working-tree path(s), all Squad-owned: .copilot/skills/agent-collaboration/SKILL.md, .copilot/skills/agent-conduct/SKILL.md, .copilot/skills/architectural-proposals/SKILL.md, .copilot/skills/ci-validation-gates/SKILL.md … (+226)", + "old 0.9.1 upgrade --dry-run on upgraded project: exit 0, last lines \"\u001b[32m✓\u001b[0m refreshed .squad/templates/ | Upgrade complete: v2.0.0 → v0.9.1 | \u001b[2mPreserves user state: team.md, decisions/, agents/*/history.md\u001b[0m\"; MODIFIED 67 files (20 coordinator/templates/workflows, e.g. .copilot/skills/agent-collaboration/SKILL.md, .copilot/skills/agent-conduct/SKILL.md, .copilot/skills/architectural-proposals/SKILL.md …)", + "downgrade-probe: F3" + ] + }, + { + "producer": "0.9.1", + "source": "npm", + "shape": "legacy-casting", + "status": "pass", + "provenance": "npm: @bradygaster/squad-cli@0.9.1 sha512-TcZqRbJk3XBg4N8Y5/5OWJeA52ARAMuzk4MGtB0bfdr87e7iJRV6lJEw8+OIYz9IQ+1JxN/Q30dZDALMOcdi2w==; @bradygaster/squad-sdk@0.9.1 sha512-1KqZ2N6Lt/B4uYlU/Su9JjA1s/7ng0OAEb9CZrkRk19YSPi6tg7K5QWdTKl5gY/gp8zPAJqfjVffOwrZwGlzmw==", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "xfail", + "detail": "dry-run MODIFIED 67 files (20 coordinator/templates/workflows, e.g. .copilot/skills/agent-collaboration/SKILL.md, .copilot/skills/agent-conduct/SKILL.md, .copilot/skills/architectural-proposals/SKILL.md …)" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 231 working-tree path(s), all Squad-owned: .copilot/skills/agent-collaboration/SKILL.md, .copilot/skills/agent-conduct/SKILL.md, .copilot/skills/architectural-proposals/SKILL.md, .copilot/skills/ci-validation-gates/SKILL.md … (+227)", + "old 0.9.1 upgrade --dry-run on upgraded project: exit 0, last lines \"\u001b[32m✓\u001b[0m refreshed .squad/templates/ | Upgrade complete: v2.0.0 → v0.9.1 | \u001b[2mPreserves user state: team.md, decisions/, agents/*/history.md\u001b[0m\"; MODIFIED 67 files (20 coordinator/templates/workflows, e.g. .copilot/skills/agent-collaboration/SKILL.md, .copilot/skills/agent-conduct/SKILL.md, .copilot/skills/architectural-proposals/SKILL.md …)", + "downgrade-probe: F3" + ] + }, + { + "producer": "0.13.1", + "source": "npm", + "shape": "default", + "status": "pass", + "provenance": "npm: @bradygaster/squad-cli@0.13.1 sha512-ogfx2nhyx6fqMyqlaI5tDnOzUbRdh+a6Uh/rMQ0aNJwAXnvQp4N37Xp/eOTyB5CxcB7E34NBtAfCxyXbWSiS8w==; @bradygaster/squad-sdk@0.13.1 sha512-1Jt6c9kahJq1JCcE77j/50D79YcXVG6Rt1genuLJ3O9J2SKTZKemlbvHgftkc5LgGH22DkWqHh5zLNEQ/p+ukA==", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 153 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+149)", + "old 0.13.1 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "0.9.1", + "source": "npm", + "shape": "default", + "status": "pass", + "provenance": "npm: @bradygaster/squad-cli@0.9.1 sha512-TcZqRbJk3XBg4N8Y5/5OWJeA52ARAMuzk4MGtB0bfdr87e7iJRV6lJEw8+OIYz9IQ+1JxN/Q30dZDALMOcdi2w==; @bradygaster/squad-sdk@0.9.1 sha512-1KqZ2N6Lt/B4uYlU/Su9JjA1s/7ng0OAEb9CZrkRk19YSPi6tg7K5QWdTKl5gY/gp8zPAJqfjVffOwrZwGlzmw==", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "xfail", + "detail": "dry-run MODIFIED 67 files (20 coordinator/templates/workflows, e.g. .copilot/skills/agent-collaboration/SKILL.md, .copilot/skills/agent-conduct/SKILL.md, .copilot/skills/architectural-proposals/SKILL.md …)" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 230 working-tree path(s), all Squad-owned: .copilot/skills/agent-collaboration/SKILL.md, .copilot/skills/agent-conduct/SKILL.md, .copilot/skills/architectural-proposals/SKILL.md, .copilot/skills/ci-validation-gates/SKILL.md … (+226)", + "old 0.9.1 upgrade --dry-run on upgraded project: exit 0, last lines \"\u001b[32m✓\u001b[0m refreshed .squad/templates/ | Upgrade complete: v2.0.0 → v0.9.1 | \u001b[2mPreserves user state: team.md, decisions/, agents/*/history.md\u001b[0m\"; MODIFIED 67 files (20 coordinator/templates/workflows, e.g. .copilot/skills/agent-collaboration/SKILL.md, .copilot/skills/agent-conduct/SKILL.md, .copilot/skills/architectural-proposals/SKILL.md …)", + "downgrade-probe: F3" + ] + }, + { + "producer": "0.13.1", + "source": "npm", + "shape": "profile", + "status": "pass", + "provenance": "npm: @bradygaster/squad-cli@0.13.1 sha512-ogfx2nhyx6fqMyqlaI5tDnOzUbRdh+a6Uh/rMQ0aNJwAXnvQp4N37Xp/eOTyB5CxcB7E34NBtAfCxyXbWSiS8w==; @bradygaster/squad-sdk@0.13.1 sha512-1Jt6c9kahJq1JCcE77j/50D79YcXVG6Rt1genuLJ3O9J2SKTZKemlbvHgftkc5LgGH22DkWqHh5zLNEQ/p+ukA==", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "pass" + } + ], + "notes": [ + "producer wrote teamRoot=\\squad at init", + "plain upgrade changed 154 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+150)", + "old 0.13.1 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "0.13.1", + "source": "npm", + "shape": "upstream", + "status": "skipped", + "reason": "Upstream inheritance (`.squad/upstream.json`, `squad upstream add`) is a Squad 2.0 feature; 0.13.1 cannot declare an upstream, so there is nothing for the upgrade to preserve.", + "provenance": "npm: @bradygaster/squad-cli@0.13.1 sha512-ogfx2nhyx6fqMyqlaI5tDnOzUbRdh+a6Uh/rMQ0aNJwAXnvQp4N37Xp/eOTyB5CxcB7E34NBtAfCxyXbWSiS8w==; @bradygaster/squad-sdk@0.13.1 sha512-1Jt6c9kahJq1JCcE77j/50D79YcXVG6Rt1genuLJ3O9J2SKTZKemlbvHgftkc5LgGH22DkWqHh5zLNEQ/p+ukA==", + "checks": [], + "notes": [] + }, + { + "producer": "0.13.1", + "source": "npm", + "shape": "legacy-casting", + "status": "pass", + "provenance": "npm: @bradygaster/squad-cli@0.13.1 sha512-ogfx2nhyx6fqMyqlaI5tDnOzUbRdh+a6Uh/rMQ0aNJwAXnvQp4N37Xp/eOTyB5CxcB7E34NBtAfCxyXbWSiS8w==; @bradygaster/squad-sdk@0.13.1 sha512-1Jt6c9kahJq1JCcE77j/50D79YcXVG6Rt1genuLJ3O9J2SKTZKemlbvHgftkc5LgGH22DkWqHh5zLNEQ/p+ukA==", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 153 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+149)", + "old 0.13.1 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "0.13.1", + "source": "npm", + "shape": "ai-team", + "status": "pass", + "provenance": "npm: @bradygaster/squad-cli@0.13.1 sha512-ogfx2nhyx6fqMyqlaI5tDnOzUbRdh+a6Uh/rMQ0aNJwAXnvQp4N37Xp/eOTyB5CxcB7E34NBtAfCxyXbWSiS8w==; @bradygaster/squad-sdk@0.13.1 sha512-1Jt6c9kahJq1JCcE77j/50D79YcXVG6Rt1genuLJ3O9J2SKTZKemlbvHgftkc5LgGH22DkWqHh5zLNEQ/p+ukA==", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "pass" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 153 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+149)", + "old 0.13.1 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "0.13.1", + "source": "npm", + "shape": "orphan", + "status": "pass", + "provenance": "npm: @bradygaster/squad-cli@0.13.1 sha512-ogfx2nhyx6fqMyqlaI5tDnOzUbRdh+a6Uh/rMQ0aNJwAXnvQp4N37Xp/eOTyB5CxcB7E34NBtAfCxyXbWSiS8w==; @bradygaster/squad-sdk@0.13.1 sha512-1Jt6c9kahJq1JCcE77j/50D79YcXVG6Rt1genuLJ3O9J2SKTZKemlbvHgftkc5LgGH22DkWqHh5zLNEQ/p+ukA==", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 151 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+147); squad-state blobs for 3 seeded path(s) identical", + "old 0.13.1 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "0.13.1", + "source": "npm", + "shape": "two-layer", + "status": "pass", + "provenance": "npm: @bradygaster/squad-cli@0.13.1 sha512-ogfx2nhyx6fqMyqlaI5tDnOzUbRdh+a6Uh/rMQ0aNJwAXnvQp4N37Xp/eOTyB5CxcB7E34NBtAfCxyXbWSiS8w==; @bradygaster/squad-sdk@0.13.1 sha512-1Jt6c9kahJq1JCcE77j/50D79YcXVG6Rt1genuLJ3O9J2SKTZKemlbvHgftkc5LgGH22DkWqHh5zLNEQ/p+ukA==", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 151 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+147); squad-state blobs for 3 seeded path(s) identical", + "old 0.13.1 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "1.0.0", + "source": "npm", + "shape": "default", + "status": "pass", + "provenance": "npm: @bradygaster/squad-cli@1.0.0 sha512-mnZXnA+GAtp4KSLf7a4Zw0BpeOaHFAxYV5oxAy58ancZ9C2LguUGbcTxWIG0djM96XWET8K9fcncif3Vm6Z9RQ==; @bradygaster/squad-sdk@1.0.0 sha512-9f4NthJaQDq6ifXU3f6VfsZz2bbWs2u57fHhXKtDgDMSvZ3Xq8FPjMvddxhRvseWqaSlkYcWsag3M/lzTtKaJA==", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 90 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+86)", + "old 1.0.0 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "1.0.0", + "source": "npm", + "shape": "profile", + "status": "pass", + "provenance": "npm: @bradygaster/squad-cli@1.0.0 sha512-mnZXnA+GAtp4KSLf7a4Zw0BpeOaHFAxYV5oxAy58ancZ9C2LguUGbcTxWIG0djM96XWET8K9fcncif3Vm6Z9RQ==; @bradygaster/squad-sdk@1.0.0 sha512-9f4NthJaQDq6ifXU3f6VfsZz2bbWs2u57fHhXKtDgDMSvZ3Xq8FPjMvddxhRvseWqaSlkYcWsag3M/lzTtKaJA==", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "pass" + } + ], + "notes": [ + "producer wrote teamRoot=\\squad at init", + "plain upgrade changed 91 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+87)", + "old 1.0.0 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "1.0.0", + "source": "npm", + "shape": "upstream", + "status": "skipped", + "reason": "Upstream inheritance (`.squad/upstream.json`, `squad upstream add`) is a Squad 2.0 feature; 1.0.0 cannot declare an upstream, so there is nothing for the upgrade to preserve.", + "provenance": "npm: @bradygaster/squad-cli@1.0.0 sha512-mnZXnA+GAtp4KSLf7a4Zw0BpeOaHFAxYV5oxAy58ancZ9C2LguUGbcTxWIG0djM96XWET8K9fcncif3Vm6Z9RQ==; @bradygaster/squad-sdk@1.0.0 sha512-9f4NthJaQDq6ifXU3f6VfsZz2bbWs2u57fHhXKtDgDMSvZ3Xq8FPjMvddxhRvseWqaSlkYcWsag3M/lzTtKaJA==", + "checks": [], + "notes": [] + }, + { + "producer": "1.0.0", + "source": "npm", + "shape": "legacy-casting", + "status": "pass", + "provenance": "npm: @bradygaster/squad-cli@1.0.0 sha512-mnZXnA+GAtp4KSLf7a4Zw0BpeOaHFAxYV5oxAy58ancZ9C2LguUGbcTxWIG0djM96XWET8K9fcncif3Vm6Z9RQ==; @bradygaster/squad-sdk@1.0.0 sha512-9f4NthJaQDq6ifXU3f6VfsZz2bbWs2u57fHhXKtDgDMSvZ3Xq8FPjMvddxhRvseWqaSlkYcWsag3M/lzTtKaJA==", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 95 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+91)", + "old 1.0.0 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "1.0.0", + "source": "npm", + "shape": "orphan", + "status": "pass", + "provenance": "npm: @bradygaster/squad-cli@1.0.0 sha512-mnZXnA+GAtp4KSLf7a4Zw0BpeOaHFAxYV5oxAy58ancZ9C2LguUGbcTxWIG0djM96XWET8K9fcncif3Vm6Z9RQ==; @bradygaster/squad-sdk@1.0.0 sha512-9f4NthJaQDq6ifXU3f6VfsZz2bbWs2u57fHhXKtDgDMSvZ3Xq8FPjMvddxhRvseWqaSlkYcWsag3M/lzTtKaJA==", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 88 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+84); squad-state blobs for 3 seeded path(s) identical", + "old 1.0.0 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "1.0.0", + "source": "npm", + "shape": "two-layer", + "status": "pass", + "provenance": "npm: @bradygaster/squad-cli@1.0.0 sha512-mnZXnA+GAtp4KSLf7a4Zw0BpeOaHFAxYV5oxAy58ancZ9C2LguUGbcTxWIG0djM96XWET8K9fcncif3Vm6Z9RQ==; @bradygaster/squad-sdk@1.0.0 sha512-9f4NthJaQDq6ifXU3f6VfsZz2bbWs2u57fHhXKtDgDMSvZ3Xq8FPjMvddxhRvseWqaSlkYcWsag3M/lzTtKaJA==", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 88 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+84); squad-state blobs for 3 seeded path(s) identical", + "old 1.0.0 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "1.0.1", + "source": "github-release", + "shape": "default", + "status": "pass", + "provenance": "github-release: github/squad@v1.0.1 asset squad-win32-x64.zip id 610330559 sha256 f38a8f85e60982dba340187b761488f01de1aec68ea50c1b85725783d32df2fe (bundled node 22.20.0)", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 90 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+86)", + "old 1.0.1 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "1.0.0", + "source": "npm", + "shape": "ai-team", + "status": "pass", + "provenance": "npm: @bradygaster/squad-cli@1.0.0 sha512-mnZXnA+GAtp4KSLf7a4Zw0BpeOaHFAxYV5oxAy58ancZ9C2LguUGbcTxWIG0djM96XWET8K9fcncif3Vm6Z9RQ==; @bradygaster/squad-sdk@1.0.0 sha512-9f4NthJaQDq6ifXU3f6VfsZz2bbWs2u57fHhXKtDgDMSvZ3Xq8FPjMvddxhRvseWqaSlkYcWsag3M/lzTtKaJA==", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "pass" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 90 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+86)", + "old 1.0.0 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "1.0.1", + "source": "github-release", + "shape": "profile", + "status": "pass", + "provenance": "github-release: github/squad@v1.0.1 asset squad-win32-x64.zip id 610330559 sha256 f38a8f85e60982dba340187b761488f01de1aec68ea50c1b85725783d32df2fe (bundled node 22.20.0)", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "pass" + } + ], + "notes": [ + "producer wrote teamRoot=\\squad at init", + "plain upgrade changed 91 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+87)", + "old 1.0.1 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "1.0.1", + "source": "github-release", + "shape": "upstream", + "status": "skipped", + "reason": "Upstream inheritance (`.squad/upstream.json`, `squad upstream add`) is a Squad 2.0 feature; 1.0.1 cannot declare an upstream, so there is nothing for the upgrade to preserve.", + "provenance": "github-release: github/squad@v1.0.1 asset squad-win32-x64.zip id 610330559 sha256 f38a8f85e60982dba340187b761488f01de1aec68ea50c1b85725783d32df2fe (bundled node 22.20.0)", + "checks": [], + "notes": [] + }, + { + "producer": "1.0.1", + "source": "github-release", + "shape": "legacy-casting", + "status": "pass", + "provenance": "github-release: github/squad@v1.0.1 asset squad-win32-x64.zip id 610330559 sha256 f38a8f85e60982dba340187b761488f01de1aec68ea50c1b85725783d32df2fe (bundled node 22.20.0)", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 95 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+91)", + "old 1.0.1 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "1.0.1", + "source": "github-release", + "shape": "ai-team", + "status": "pass", + "provenance": "github-release: github/squad@v1.0.1 asset squad-win32-x64.zip id 610330559 sha256 f38a8f85e60982dba340187b761488f01de1aec68ea50c1b85725783d32df2fe (bundled node 22.20.0)", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "pass" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 90 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+86)", + "old 1.0.1 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "1.1.0", + "source": "github-release", + "shape": "default", + "status": "pass", + "provenance": "github-release: github/squad@v1.1.0 asset squad-win32-x64.zip id 659607643 sha256 571d734f7ae718fefefdfa9864f9f82a3d1fb1546f01ec8bf8866fa7e1829c57 (bundled node 22.20.0)", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 63 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+59)", + "old 1.1.0 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "1.0.1", + "source": "github-release", + "shape": "two-layer", + "status": "pass", + "provenance": "github-release: github/squad@v1.0.1 asset squad-win32-x64.zip id 610330559 sha256 f38a8f85e60982dba340187b761488f01de1aec68ea50c1b85725783d32df2fe (bundled node 22.20.0)", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 88 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+84); squad-state blobs for 3 seeded path(s) identical", + "old 1.0.1 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "1.0.1", + "source": "github-release", + "shape": "orphan", + "status": "pass", + "provenance": "github-release: github/squad@v1.0.1 asset squad-win32-x64.zip id 610330559 sha256 f38a8f85e60982dba340187b761488f01de1aec68ea50c1b85725783d32df2fe (bundled node 22.20.0)", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 88 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+84); squad-state blobs for 3 seeded path(s) identical", + "old 1.0.1 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "1.1.0", + "source": "github-release", + "shape": "profile", + "status": "pass", + "provenance": "github-release: github/squad@v1.1.0 asset squad-win32-x64.zip id 659607643 sha256 571d734f7ae718fefefdfa9864f9f82a3d1fb1546f01ec8bf8866fa7e1829c57 (bundled node 22.20.0)", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "pass" + } + ], + "notes": [ + "producer wrote teamRoot=\\squad at init", + "plain upgrade changed 64 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+60)", + "old 1.1.0 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "1.1.0", + "source": "github-release", + "shape": "upstream", + "status": "skipped", + "reason": "Upstream inheritance (`.squad/upstream.json`, `squad upstream add`) is a Squad 2.0 feature; 1.1.0 cannot declare an upstream, so there is nothing for the upgrade to preserve.", + "provenance": "github-release: github/squad@v1.1.0 asset squad-win32-x64.zip id 659607643 sha256 571d734f7ae718fefefdfa9864f9f82a3d1fb1546f01ec8bf8866fa7e1829c57 (bundled node 22.20.0)", + "checks": [], + "notes": [] + }, + { + "producer": "1.1.0", + "source": "github-release", + "shape": "legacy-casting", + "status": "pass", + "provenance": "github-release: github/squad@v1.1.0 asset squad-win32-x64.zip id 659607643 sha256 571d734f7ae718fefefdfa9864f9f82a3d1fb1546f01ec8bf8866fa7e1829c57 (bundled node 22.20.0)", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 68 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+64)", + "old 1.1.0 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "1.1.0", + "source": "github-release", + "shape": "ai-team", + "status": "pass", + "provenance": "github-release: github/squad@v1.1.0 asset squad-win32-x64.zip id 659607643 sha256 571d734f7ae718fefefdfa9864f9f82a3d1fb1546f01ec8bf8866fa7e1829c57 (bundled node 22.20.0)", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "pass" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 63 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+59)", + "old 1.1.0 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "1.1.0", + "source": "github-release", + "shape": "two-layer", + "status": "pass", + "provenance": "github-release: github/squad@v1.1.0 asset squad-win32-x64.zip id 659607643 sha256 571d734f7ae718fefefdfa9864f9f82a3d1fb1546f01ec8bf8866fa7e1829c57 (bundled node 22.20.0)", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 61 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+57); squad-state blobs for 3 seeded path(s) identical", + "old 1.1.0 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "HEAD", + "source": "pack", + "shape": "default", + "status": "pass", + "provenance": "pack: npm pack of packages/squad-sdk + packages/squad-cli at 8c2b93d569f15e41d2737e57dcfa5247c2c816c4 (v2.0.0)", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "skipped", + "detail": "producer is the target version" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 17 working-tree path(s), all Squad-owned: .github/workflows/squad-ci.yml, .github/workflows/squad-docs.yml, .github/workflows/squad-heartbeat.yml, .github/workflows/squad-insider-release.yml … (+13)" + ] + }, + { + "producer": "HEAD", + "source": "pack", + "shape": "profile", + "status": "pass", + "provenance": "pack: npm pack of packages/squad-sdk + packages/squad-cli at 8c2b93d569f15e41d2737e57dcfa5247c2c816c4 (v2.0.0)", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "skipped", + "detail": "producer is the target version" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "pass" + } + ], + "notes": [ + "plain upgrade changed 17 working-tree path(s), all Squad-owned: .github/workflows/squad-ci.yml, .github/workflows/squad-docs.yml, .github/workflows/squad-heartbeat.yml, .github/workflows/squad-insider-release.yml … (+13)" + ] + }, + { + "producer": "1.1.0", + "source": "github-release", + "shape": "orphan", + "status": "pass", + "provenance": "github-release: github/squad@v1.1.0 asset squad-win32-x64.zip id 659607643 sha256 571d734f7ae718fefefdfa9864f9f82a3d1fb1546f01ec8bf8866fa7e1829c57 (bundled node 22.20.0)", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "pass" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 61 working-tree path(s), all Squad-owned: .gitattributes, .github/agents/squad.agent.md, .github/agents/squad.agent.md.local-backup, .github/skills/coordinator-response-mode/SKILL.md … (+57); squad-state blobs for 3 seeded path(s) identical", + "old 1.1.0 upgrade --dry-run on upgraded project: exit 0, last lines \"overwrite ../.github/workflows/squad-triage.yml | overwrite ../.github/workflows/sync-squad-labels.yml | Run without --dry-run to apply.\"; modified nothing" + ] + }, + { + "producer": "HEAD", + "source": "pack", + "shape": "legacy-casting", + "status": "pass", + "provenance": "pack: npm pack of packages/squad-sdk + packages/squad-cli at 8c2b93d569f15e41d2737e57dcfa5247c2c816c4 (v2.0.0)", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "skipped", + "detail": "producer is the target version" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 21 working-tree path(s), all Squad-owned: .github/workflows/squad-ci.yml, .github/workflows/squad-docs.yml, .github/workflows/squad-heartbeat.yml, .github/workflows/squad-insider-release.yml … (+17)" + ] + }, + { + "producer": "HEAD", + "source": "pack", + "shape": "ai-team", + "status": "pass", + "provenance": "pack: npm pack of packages/squad-sdk + packages/squad-cli at 8c2b93d569f15e41d2737e57dcfa5247c2c816c4 (v2.0.0)", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "pass" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "skipped", + "detail": "producer is the target version" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 17 working-tree path(s), all Squad-owned: .github/workflows/squad-ci.yml, .github/workflows/squad-docs.yml, .github/workflows/squad-heartbeat.yml, .github/workflows/squad-insider-release.yml … (+13)" + ] + }, + { + "producer": "HEAD", + "source": "pack", + "shape": "orphan", + "status": "pass", + "provenance": "pack: npm pack of packages/squad-sdk + packages/squad-cli at 8c2b93d569f15e41d2737e57dcfa5247c2c816c4 (v2.0.0)", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "skipped", + "detail": "producer is the target version" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 20 working-tree path(s), all Squad-owned: .github/workflows/squad-ci.yml, .github/workflows/squad-docs.yml, .github/workflows/squad-heartbeat.yml, .github/workflows/squad-insider-release.yml … (+16); squad-state blobs for 3 seeded path(s) identical" + ] + }, + { + "producer": "HEAD", + "source": "pack", + "shape": "upstream", + "status": "pass", + "provenance": "pack: npm pack of packages/squad-sdk + packages/squad-cli at 8c2b93d569f15e41d2737e57dcfa5247c2c816c4 (v2.0.0)", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "skipped", + "detail": "producer is the target version" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 17 working-tree path(s), all Squad-owned: .github/workflows/squad-ci.yml, .github/workflows/squad-docs.yml, .github/workflows/squad-heartbeat.yml, .github/workflows/squad-insider-release.yml … (+13)" + ] + }, + { + "producer": "HEAD", + "source": "pack", + "shape": "two-layer", + "status": "pass", + "provenance": "pack: npm pack of packages/squad-sdk + packages/squad-cli at 8c2b93d569f15e41d2737e57dcfa5247c2c816c4 (v2.0.0)", + "checks": [ + { + "id": "producer-artifact-verified", + "status": "pass" + }, + { + "id": "producer-init", + "status": "pass" + }, + { + "id": "upgrade-plain", + "status": "pass" + }, + { + "id": "coordinator-is-new-template", + "status": "pass" + }, + { + "id": "user-state-preserved", + "status": "pass" + }, + { + "id": "casting-pair-valid", + "status": "pass" + }, + { + "id": "state-backend-preserved", + "status": "pass" + }, + { + "id": "ai-team-migrated", + "status": "skipped", + "detail": "not an .ai-team shape" + }, + { + "id": "team-root-absent", + "status": "pass" + }, + { + "id": "idempotent-second-upgrade", + "status": "pass" + }, + { + "id": "downgrade-probe", + "status": "skipped", + "detail": "producer is the target version" + }, + { + "id": "clients-projected", + "status": "pass" + }, + { + "id": "user-config-preserved", + "status": "pass" + }, + { + "id": "doctor", + "status": "pass" + }, + { + "id": "projection-uninstall-byte-exact", + "status": "pass" + }, + { + "id": "profile-untouched", + "status": "skipped", + "detail": "no profile squad seeded in this shape" + } + ], + "notes": [ + "plain upgrade changed 20 working-tree path(s), all Squad-owned: .github/workflows/squad-ci.yml, .github/workflows/squad-docs.yml, .github/workflows/squad-heartbeat.yml, .github/workflows/squad-insider-release.yml … (+16); squad-state blobs for 3 seeded path(s) identical" + ] + } + ] + } + ] }