Skip to content

feat(core): extract IncrementalAnalysisEngine and prepare 0.23.0 release#162

Merged
PythonWoods-Dev merged 11 commits into
mainfrom
release/0.23.x
Jul 18, 2026
Merged

feat(core): extract IncrementalAnalysisEngine and prepare 0.23.0 release#162
PythonWoods-Dev merged 11 commits into
mainfrom
release/0.23.x

Conversation

@PythonWoods-Dev

Copy link
Copy Markdown
Contributor

Description

This PR finalizes the 0.23.0 release. It introduces the extraction of 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 (ADR-075).

Key Changes

  • New Module: zenzic.core.incremental.IncrementalAnalysisEngine (723 lines).
  • Refactoring: LanguageServer reduced from 926 to 470 lines (-49.2%), acting strictly as a JSON-RPC transport proxy.
  • Cache Ownership: md_contents_cache and anchors_cache moved to the engine.
  • Tests: 8 new engine isolation tests.
  • Documentation: Updated docs/architecture/lsp-integration.md to reflect the new update mechanism.
  • Changelog: Finalized entries for 0.23.0.

Verification

  • mypy --strict passes clean.
  • <50ms latency benchmark maintained.
  • Full regression suite is green (21/21 LSP/Engine tests).
  • uv run --active zenzic check all --strict passes with 98/100 (0 violations).

…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>
@PythonWoods-Dev
PythonWoods-Dev merged commit a9a1c07 into main Jul 18, 2026
7 checks passed
@PythonWoods-Dev
PythonWoods-Dev deleted the release/0.23.x branch July 18, 2026 15:04
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