Skip to content

Fix #2668: terraphim_lsp Foundation (workspace member, edition 2024, no-op server)#918

Open
AlexMikhalev wants to merge 13 commits into
task/adf-flow-fix-phase1-automergefrom
task/2668-terraphim-lsp-foundation
Open

Fix #2668: terraphim_lsp Foundation (workspace member, edition 2024, no-op server)#918
AlexMikhalev wants to merge 13 commits into
task/adf-flow-fix-phase1-automergefrom
task/2668-terraphim-lsp-foundation

Conversation

@AlexMikhalev

Copy link
Copy Markdown
Contributor

Restores terraphim_lsp as a compilable workspace member.\n\nChanges:\n- Removes crates/terraphim_lsp from workspace exclude list\n- Deletes orphaned crates/terraphim_lsp/Cargo.lock\n- Aligns crate edition with workspace (2024)\n- Adds minimal dependencies: tower-lsp, tokio, serde_json, terraphim_automata, terraphim_types, terraphim_rolegraph\n- Adds no-op tower-lsp server skeleton and module placeholders for Steps 2 and 3\n\nVerification:\n- cargo check -p terraphim_lsp PASS\n- cargo check --workspace PASS\n- cargo clippy -p terraphim_lsp --all-targets -- -D warnings PASS\n- cargo fmt --all -- --check PASS\n- cargo test -p terraphim_lsp PASS (1 test)\n\nRefs #2668

Test User added 13 commits June 14, 2026 00:03
…#2668

- Remove crates/terraphim_lsp from workspace exclude list
- Delete orphaned crates/terraphim_lsp/Cargo.lock
- Align crate edition with workspace (2024)
- Add minimal dependencies: tower-lsp, tokio, serde_json,
  terraphim_automata, terraphim_types, terraphim_rolegraph
- Add no-op tower-lsp server skeleton and module placeholders
- Verify via cargo check, clippy, fmt, and test
- Add disciplined research/design/implementation/review artefacts
…hind features

- Gate terraphim_agent client VM types and methods behind #[cfg(feature = "firecracker")]
- Gate firecracker executor module and hybrid executor delegation by feature
- Update /sessions REPL command definitions and handler for sessions feature
- Fix hybrid risk assessment test expectation when firecracker is disabled
- Gate VM integration tests behind firecracker feature

Refs #2675
Refs #2674
Refs #2669
- Add document tracking (did_open/did_change/did_close) to TerraphimLspServer
- Implement textDocument/hover using kg_analysis term matches
- Implement textDocument/completion with thesaurus term filtering
- Implement textDocument/diagnostic reporting unknown terms as warnings
- Add completion.rs and diagnostics.rs helper modules
- Fix kg_analysis to fall back to NormalizedTerm.value for descriptions
- Add integration tests and sample markdown fixture

Refs #2670
- Test terraphim_grep with --features code-search in ci-main.yml
- Add benchmark compilation check with code-search feature

Refs #2676
- Add src/main.rs stdio LSP binary
- Register binary in Cargo.toml
- Add crate README with usage, architecture, and test commands
- Validate binary responds to LSP initialize request

Refs #2670
Summarises verification evidence for terraphim_lsp, terraphim_agent, and
terraphim_grep including test results, lint status, CLI command validation,
and outstanding follow-ups.

Refs #2678
…efs #2671

- Add thesaurus field to RlmConfig for term matching during validation
- Wire KnowledgeGraphValidator into Firecracker/Docker/Local executors
- Implement validate() in all executors using shared validator
- Add KG validation to QueryLoop::execute_command with LLM context feedback
- Validation failures feed back to LLM for rephrasing instead of error out
- Add ValidationEvent hooks module for agent learning/security capture
- Add TerraphimRlm::new_with_thesaurus convenience constructor
- Add retry_count, message, escalation_required to executor ValidationResult
- Add feedback_message() builder for LLM context injection
…efs #2671

- Add auto_configure_llm() with 3-tier provider discovery
- Ollama (gemma3:270m local) + OpenRouter (llama-3.2-3b free tier)
- RouterBridgeLlmClient with CapabilityFirst strategy
- Env var overrides: RLM_MODEL, RLM_OPENROUTER_MODEL, RLM_ROUTER_STRATEGY
- OpenRouter API key from 1Password (Terraphim vault, personal account)
- rlm_query now returns real LLM responses (was LlmNotConfigured)
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