Skip to content

feat(proof-lsp): scaffold pilot LSP cartridge (PR 6/12) - #3

Merged
hyperpolymath merged 1 commit into
mainfrom
feat/pilot-port-proof-lsp
May 26, 2026
Merged

hyperpolymath merged 1 commit into
mainfrom
feat/pilot-port-proof-lsp

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Summary

Pilot port — first of 12 polystack LSP halves. Adds cartridges/domains/formal-verification/proof-lsp/ as a sibling to the existing proof-mcp cartridge.

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 .gitkeep files 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 in README.adoc.

What this PR ships

  • cartridge.json — schema-validated manifest, 5 LSP tools, 4 backends (Coq/Lean/Isabelle/Agda), loopback 127.0.0.1:5179
  • README.adoc — port plan + state declaration + lineage table
  • mod.js — manifest export + start() that errors with a pointer to the port plan
  • _source-archive/ — verbatim copy of the Elixir source for reference during port
  • Empty adapter/, abi/, ffi/, panels/ with .gitkeep placeholders

What this PR explicitly does not ship

  • Working LSP server (the Deno port of lsp/server.ex + handlers)
  • Per-backend subprocess managers (port of adapters/*.ex)
  • Idris2 ABI definitions (only required if promoted to Shield tier)
  • VSCode extension (the archived one targets the Elixir backend; a Deno-adapter version comes with the actual port)

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:

  1. The cartridge is discoverable in the registry now.
  2. The port plan is reviewable independently of the implementation.
  3. Subsequent ports of the other 11 polystack LSP halves can reuse this shape exactly.

State scaffolded is declared in the manifest so consumers can filter on cartridge readiness.

Test plan

  • Manifest validates against schemas/cartridge-v1.json (canonical, mirrored from standards#200)
  • Directory structure matches sibling proof-mcp/
  • Loopback port 5179 is free (verified against all existing manifests)
  • Source archive is verbatim from polystack/poly-proof/lsp/lib/
  • Catalog smoke test (deferred — boj-server#158 not yet merged)

References

  • session memory: session_2026_05_26_cartridge_extraction.md — PR 6 (12 LSP ports)
  • standards#200 — canonical cartridge format spec
  • boj-server-cartridges#1 — initial 125-cartridge population
  • boj-server-cartridges#2 — minter tool used to validate this layout

🤖 Generated with Claude Code

…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]>
@hyperpolymath
hyperpolymath merged commit 61195a8 into main May 26, 2026
@hyperpolymath
hyperpolymath deleted the feat/pilot-port-proof-lsp branch May 26, 2026 13:58
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant