1
0
Fork 0
Code Issues Pull requests Projects Releases 2 Packages Wiki Activity Actions Pages

Add function-scoped Logic visualization

This commit is contained in:
Andraxion 2026-07-25 21:08:43 -04:00
parent 9fcafc290c
commit 9b4258c852
22 changed files with 1420 additions and 62 deletions

View file

@ -1,5 +1,27 @@
# Completed slices
## Dev-Rewrite function-scoped Logic
### Changed
- Added a reusable Python AST control-flow analyzer for functions, methods, and nested functions.
- Added dedicated schema-2 SQLite tables for function-scoped logic owners, nodes, and edges without
placing statement-level data in primary graph search or traversal.
- Added the bounded `docforge_get_logic` read tool and a lazy Logic visualization tab.
- Added semantic Entry, Decision, Action, Control, Merge, and Terminal cards with explicit branch,
loop, exception, return, and raise paths.
- Added Logic-specific hiding that bridges retained predecessors and successors with an explicit
omitted path.
- Preserved Release 1 adapters and full projections. Adapters may emit no logic or opt in source by
source through the incremental extraction contract.
### Verification
- Tests cover Python branching, compound booleans, loops, `match`, exceptions, nested functions,
schema persistence, bounded reads, MCP registration, visualization APIs, and Logic UI assets.
- Strict Pyright, Ruff, formatting, compilation, warning-strict tests, web linting, package builds,
dependency audits, and browser QA pass.
## Dev-Rewrite incremental compiler boundary
### Changed