Skip to content

[Phase 1] Author the LSP pilot scoping doc — language, actions, SLA, metrics, cost cap, candidate shortlist #840

Closed

Description

@github-actions

Story

As a pr-review pilot owner,
I want a single scoping doc that fixes the LSP pilot's target language, the specific agent actions it covers, the cold-start SLA, the success metrics, the cost cap, and the candidate-server shortlist,
so that the downstream wiring and measurement stories share one unambiguous, agreed definition of done instead of each re-deciding scope.

Acceptance Criteria

  1. A new docs/lsp-pilot.md exists and names the pilot's target language (Shell) and pilot repo (.github-private), with the rationale tied to the discussion (agent's own substrate; lightweight bash-language-server).
  2. The doc enumerates the specific pr-review actions LSP is scoped to (finding-verification via find-references / diagnostics in the deep/audit tiers) and explicitly states LSP is NOT applied to triage or to dev-lead code-writing in this pilot.
  3. The doc states a concrete cold-start SLA (<=30s P95) and the graceful-degradation rule: if cold-start exceeds the SLA the LSP step is auto-skipped, never a workflow failure.
  4. The doc records the initiative success metric (navigation-token reduction target AND no review-quality regression vs the frozen baseline) and the run-count cost cap, consistent with the epic body.
  5. The doc lists the candidate LSP-MCP servers to compare (agent-lsp, Serena, lsp-mcp) with pinned versions, and states that final selection is decided by the comparative pilot, not pre-chosen.

Tasks / Subtasks

Dev Notes

  • This doc is the contract every later story grounds in — keep it tight and decision-dense, not a vendor survey.
  • Reuse, do not re-describe, the existing MCP mechanism: scripts/engine.sh already threads --mcp-config --strict-mcp-config into the deep + rubber-duck tiers via REVIEW_MCP_CONFIG/REVIEW_MCP_ALLOWED_TOOLS, and graceful degradation already emits a ::warning:: on MCP connect/init failure. The SLA auto-skip is an addition layered on that, not a replacement.
  • Mirror the structure of the enhancement comment's suggested scoping doc (docs/lsp-pilot.md) so reviewers can map ACs to the discussion 1:1.
  • Testing: docs-only story — verify links resolve and that the success metric / cost cap text is byte-consistent with the epic body; no shell to shellcheck.

Project Structure Notes

New file under the existing docs/ tree alongside docs/initiatives/mcp-powered-review.md; no script or workflow changes.

References

  • scripts/engine.sh
  • docs/initiatives/mcp-powered-review.md
  • .github/review-mcp.json
  • .github/workflows/pr-review.yml

Likely target surface

  • docs/lsp-pilot.md (new file)

Story prepared by the BMAD Scrum Master (Bob) for epic #839. Status: ready-for-dev.

Activity

  1. don-petry commented on Jun 20, 2026

    @don-petry
    Collaborator

    Dev-Lead Implementation Plan

    Issue: #840 — [Phase 1] Author the LSP pilot scoping doc — language, actions, SLA, metrics, cost cap, candidate shortlist

    Scope

    Author a single decision-dense scoping doc docs/lsp-pilot.md that fixes the LSP pilot's language/repo/tier, in/out-of-scope pr-review actions, the cold-start SLA + auto-skip rule, the success metric, the run-count cost cap (byte-consistent with epic #839), and the pinned candidate-server shortlist with a "selection decided by data" rule.

    Implementation Checklist

    Tests to Write

    Test Command

    bash .dev-lead/scripts/dev-lead-lint.sh

  2. don-petry commented on Jun 20, 2026

    @don-petry
    Collaborator

    Dev-Lead: Implementation Complete

    Plan Execution

    Test Results

    Docs-only story — Phase 2 (TDD) skipped per the prompt's documentation exception (no observable behavioral change, no shell to test). Verification performed instead:

    [lint] shellcheck on 67 file(s)...
    [lint] validating 4 agent profile(s)...
    OK: agents/agentic-workflows.md
    OK: agents/compliance-auditor.md
    OK: agents/feature-ideator.md
    OK: agents/pr-reviewer.md
    [lint] all checks passed
    
    [links] all 6 intra-repo link targets resolve (CLAUDE.md, AGENTS.md,
            docs/initiatives/mcp-powered-review.md, scripts/engine.sh,
            .github/review-mcp.json, .github/workflows/pr-review.yml)
    
    [byte-consistency vs epic #839]
    === METRIC: BYTE-CONSISTENT ===
    === COSTCAP: BYTE-CONSISTENT ===
    

    Files Changed

    • docs/lsp-pilot.md: new scoping doc (the pilot contract) — language/repo/tier, in/out-of-scope actions, cold-start SLA + auto-skip, success metric + cost cap (verbatim from epic), candidate-server shortlist + pinning rule, and cross-links to the existing MCP plumbing.

    Notes

  3. added a commit that references this issue on Jun 21, 2026
  4. added 18 commits that reference this issue on Aug 2, 2026
  5. added a commit that references this issue on Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dev-leadFor dev-lead agent pickupinitiativeEpic / initiative tracking issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions