Skip to content

feat(lsp): scaffold cloud/container/database/k8s LSP cartridges (batch 1 of remaining 11) - #4

Merged
hyperpolymath merged 1 commit into
mainfrom
feat/lsp-scaffolds-batch-1
May 26, 2026
Merged

hyperpolymath merged 1 commit into
mainfrom
feat/lsp-scaffolds-batch-1

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Summary

Batch 1 of 11 remaining polystack LSP scaffolds, following the shape proven by proof-lsp (#3). Four new scaffolded cartridges, all schema-validated, all state=scaffolded:

Cartridge Domain Loopback Backends Polystack source
cloud-lsp cloud 127.0.0.1:5180 aws, azure, gcp, digitalocean poly-cloud (1640 LOC)
container-lsp container 127.0.0.1:5181 docker, podman, nerdctl poly-container (1150 LOC)
database-lsp database 127.0.0.1:5182 postgresql, mysql, sqlite, redis, mongodb, neo4j poly-db (1635 LOC)
k8s-lsp container 127.0.0.1:5183 kubectl, helm, kustomize poly-k8s (1184 LOC)

Total: ~5609 LOC archived across 46 Elixir modules under _source-archive/elixir-lib/ per cartridge.

What this PR ships per cartridge

  • cartridge.json — schema-validated manifest, 5 LSP tools (initialize, diagnostic, hover, completion, executeCommand), per-cartridge backends array, loopback port
  • README.adoc — port plan + per-file LOC inventory of archived source
  • mod.js — manifest export + start() error stub pointing to the port plan
  • _source-archive/elixir-lib/ — verbatim polystack source
  • Empty adapter/, abi/, ffi/, panels/ with .gitkeep placeholders

What this PR does not ship

Same as #3: working LSP adapters. The Deno port of each lsp/server.ex + per-method handlers + per-backend subprocess managers comes in per-cartridge follow-up PRs after #3 and this PR establish the scaffold pattern.

Test plan

  • All 4 manifests validate against schemas/cartridge-v1.json (canonical, mirrored from standards#200)
  • Loopback ports 5180-5183 are free (assigned sequentially after proof-lsp at 5179)
  • Source archives are verbatim from polystack/poly-*/lsp/lib/
  • Same directory shape as proof-lsp/ (sibling cartridge from feat(proof-lsp): scaffold pilot LSP cartridge (PR 6/12) #3)

Remaining LSP scaffolds (7)

git-lsp, iac-lsp, observe-lsp, queues-lsp, secrets-lsp, ssg-lsp + the poly-orchestrator-lsp → fleet-mcp redesign (separate PR per session_2026_05_26_cartridge_extraction).

References

🤖 Generated with Claude Code

Batch 1 of 11 remaining polystack LSP scaffolds, following the shape proven
by proof-lsp (boj-server-cartridges#3). All four manifests validate against
the canonical cartridge-v1 schema; state="scaffolded"; polystack Elixir
source preserved verbatim under _source-archive/.

| Cartridge      | Domain     | Loopback         | Backends                                            |
|----------------|------------|------------------|-----------------------------------------------------|
| cloud-lsp      | cloud      | 127.0.0.1:5180   | aws, azure, gcp, digitalocean                       |
| container-lsp  | container  | 127.0.0.1:5181   | docker, podman, nerdctl                             |
| database-lsp   | database   | 127.0.0.1:5182   | postgresql, mysql, sqlite, redis, mongodb, neo4j    |
| k8s-lsp        | container  | 127.0.0.1:5183   | kubectl, helm, kustomize                            |

Total polystack source archived: ~5609 LOC across 46 Elixir modules.

Adapter / abi / ffi / panels directories carry .gitkeep placeholders. mod.js
exports the manifest plus a start() that errors with a pointer to the port
plan. Each cartridge's README.adoc lists the source files + LOC inventory.

Remaining LSP scaffolds (7): git-lsp, iac-lsp, observe-lsp, queues-lsp,
secrets-lsp, ssg-lsp + the poly-orchestrator-lsp → fleet-mcp redesign
(separate concern, planned as PR 7 in session_2026_05_26_cartridge_extraction).

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@hyperpolymath
hyperpolymath merged commit 1165acf into main May 26, 2026
@hyperpolymath
hyperpolymath deleted the feat/lsp-scaffolds-batch-1 branch May 26, 2026 14:41
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