feat(core): extract IncrementalAnalysisEngine and prepare 0.23.0 release#162
Merged
Conversation
…ompliance - Add ZenzicDiagnostic frozen dataclass (zenzic.models.diagnostics) - Relocate incoming_links reverse index into VirtualBufferOverlay - LanguageServer reduced to pure transport proxy (ADR-075) - Route.diagnostics: list[ZenzicDiagnostic], single to_lsp_dict() boundary - Incremental _sync_workspace_and_publish with O(1) dependents_of() - Remove validate_single_document_urp (Mirror Law ADR-020) - Add docs/architecture/lsp-integration.md - Add tests/test_lsp_incremental.py - Archive 0.22.x releases to changelogs/v0.22.x.md Signed-off-by: PythonWoods-Dev <gianluca.catalano@gmail.com>
… topology validation Signed-off-by: PythonWoods-Dev <gianluca.catalano@gmail.com>
… redundant imports and whitespace Signed-off-by: PythonWoods-Dev <gianluca.catalano@gmail.com>
…ushing and updating type hints for core adapters and configuration. Signed-off-by: PythonWoods-Dev <gianluca.catalano@gmail.com>
…tion - Add strict VirtualSiteMap type narrowing and assignment. - Implement incremental Z102 cross-file anchor invalidation in URP. - Resolve Z402/Z503 violations in architectural documentation. Signed-off-by: PythonWoods-Dev <gianluca.catalano@gmail.com>
Signed-off-by: PythonWoods-Dev <gianluca.catalano@gmail.com>
Formalize the O(K) topological patching logic into a standalone, transport-agnostic IncrementalAnalysisEngine in zenzic.core.incremental, decoupling it entirely from the Language Server Protocol layer. Engine API: process_changes(vsm, overlay, changed_uris) -> dict[str, list[ZenzicDiagnostic]] - New: zenzic.core.incremental.IncrementalAnalysisEngine (723 lines) - Refactored: LanguageServer reduced from 926 to 470 lines (-49.2%) - Removed: _run_incremental_urp, _to_utf16_col from server - Moved: md_contents_cache, anchors_cache ownership to engine - Added: 8 engine isolation tests (no LSP dependencies) - Verified: mypy --strict clean, <50ms latency, full suite green Preserves: ADR-075, ADR-013, ADR-020, ADR-022, Zero Subprocess, Determinism Ref: AUTHORING-INTELLIGENCE-024-INCREMENTAL-ENGINE Signed-off-by: PythonWoods <gianluca.catalano@gmail.com>
Update LSP integration docs to reflect the extraction of the IncrementalAnalysisEngine, clarifying that the LanguageServer now delegates all O(K) topological patching and validation to the new transport-agnostic engine. Ref: ECOSYSTEM-RELEASE-023-FINAL Signed-off-by: PythonWoods <gianluca.catalano@gmail.com>
Signed-off-by: PythonWoods <gianluca.catalano@gmail.com>
Signed-off-by: PythonWoods <gianluca.catalano@gmail.com>
Signed-off-by: PythonWoods <gianluca.catalano@gmail.com>
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.
Description
This PR finalizes the
0.23.0release. It introduces the extraction of the O(K) topological patching logic into a standalone, transport-agnosticIncrementalAnalysisEngineinzenzic.core.incremental, decoupling it entirely from the Language Server Protocol layer (ADR-075).Key Changes
zenzic.core.incremental.IncrementalAnalysisEngine(723 lines).LanguageServerreduced from 926 to 470 lines (-49.2%), acting strictly as a JSON-RPC transport proxy.md_contents_cacheandanchors_cachemoved to the engine.docs/architecture/lsp-integration.mdto reflect the new update mechanism.0.23.0.Verification
mypy --strictpasses clean.<50mslatency benchmark maintained.uv run --active zenzic check all --strictpasses with 98/100 (0 violations).