Repository navigation
feat(proof-lsp): scaffold pilot LSP cartridge (PR 6/12) - #3
Merged
Merged
Conversation
…k source Adds cartridges/domains/formal-verification/proof-lsp/ — a scaffolded LSP cartridge sibling to proof-mcp. Manifest validates against the canonical cartridge-v1 schema and declares the LSP capability surface (initialize, textDocument/diagnostic, textDocument/hover, textDocument/completion, workspace/executeCommand) across Coq, Lean, Isabelle, and Agda backends. State: scaffolded. The adapter/, abi/, ffi/, panels/ directories carry .gitkeep placeholders documenting their intended contents. mod.js exports the manifest plus a start() that errors with a pointer to the port plan. The original Elixir LSP from the archived polystack/poly-proof/lsp/ (12 modules, 1552 LOC) is preserved verbatim under _source-archive/ for the follow-up port effort. The port plan — Deno LSP framing replacing lsp/server.ex, per-method handlers in adapter/handlers/, per-backend subprocess managers in adapter/backends/ — is documented in README.adoc. This is the first of 12 polystack-LSP-half ports tracked in session_2026_05_26_cartridge_extraction.md. proof-lsp picked as pilot for its small surface area and clean fit with the existing proof-mcp sibling. Loopback port 5179 assigned (next free after the 5173-5178 range used by existing cartridges). Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
This was referenced May 26, 2026
hyperpolymath
added a commit
that referenced
this pull request
May 26, 2026
… (batch 2) (#5) Batch 2 of 11 remaining polystack LSP scaffolds. Completes the LSP-port coverage of the 10 polystack components (the 11th, poly-orchestrator-lsp, is a separate fleet-mcp redesign concern). Combined with #3 (proof-lsp pilot) and #4 (batch 1: cloud/container/database/k8s), this PR brings the LSP cartridge count from 0 → 11. | Cartridge | Domain | Loopback | Backends | |----------------|-----------------|------------------|-----------------------------------------------------------| | git-lsp | development | 127.0.0.1:5184 | github, gitlab, gitea, bitbucket | | iac-lsp | infrastructure | 127.0.0.1:5185 | opentofu, pulumi | | observe-lsp | observability | 127.0.0.1:5186 | prometheus, loki, grafana, jaeger | | queues-lsp | messaging | 127.0.0.1:5187 | nats, rabbitmq, redis_streams | | secrets-lsp | security | 127.0.0.1:5188 | vault, sops | | ssg-lsp | web | 127.0.0.1:5189 | hugo, mdbook, zola, hakyll, franklin, casket-ssg | ssg-lsp note: the polystack source includes `jekyll.ex` (preserved in _source-archive/), but Jekyll is banned estate-wide per the no-Jekyll policy. The new cartridge declares `casket-ssg` as the replacement backend; users with Jekyll projects should migrate per the policy. All 6 manifests validate against the canonical cartridge-v1 schema. state="scaffolded"; ~8243 LOC archived across the 6 _source-archive/ directories. Same shape as #3 + #4: cartridge.json + mod.js + README.adoc + .gitkeep placeholders in adapter/abi/ffi/panels/. Remaining LSP work: per-cartridge adapter implementations (Deno LSP server + per-backend subprocess managers), tracked as follow-up PRs per cartridge. The poly-orchestrator-lsp → fleet-mcp redesign remains as a separate PR. Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Pilot port — first of 12 polystack LSP halves. Adds
cartridges/domains/formal-verification/proof-lsp/as a sibling to the existingproof-mcpcartridge.This is a scaffold, not an implementation. The cartridge manifest validates against the canonical schema (standards#200) and declares the full LSP capability surface, but the Deno adapter / Idris2 ABI / Zig FFI / panels are intentionally empty — placeholder
.gitkeepfiles document intended contents.The original Elixir LSP (12 modules, 1552 LOC from
polystack/poly-proof/lsp/) is preserved verbatim under_source-archive/elixir-lib/for the follow-up port. The port plan is inREADME.adoc.What this PR ships
cartridge.json— schema-validated manifest, 5 LSP tools, 4 backends (Coq/Lean/Isabelle/Agda), loopback127.0.0.1:5179README.adoc— port plan + state declaration + lineage tablemod.js— manifest export +start()that errors with a pointer to the port plan_source-archive/— verbatim copy of the Elixir source for reference during portadapter/,abi/,ffi/,panels/with.gitkeepplaceholdersWhat this PR explicitly does not ship
lsp/server.ex+ handlers)adapters/*.ex)Why a scaffold instead of full port
A faithful 1552-LOC Elixir-to-Deno port preserving OTP supervision-tree semantics is a multi-session task. Shipping the scaffold first means:
State
scaffoldedis declared in the manifest so consumers can filter on cartridge readiness.Test plan
schemas/cartridge-v1.json(canonical, mirrored from standards#200)proof-mcp/5179is free (verified against all existing manifests)polystack/poly-proof/lsp/lib/References
session_2026_05_26_cartridge_extraction.md— PR 6 (12 LSP ports)🤖 Generated with Claude Code