synap-git 2.1.7__tar.gz → 2.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {synap_git-2.1.7 → synap_git-2.3.1}/.gitignore +5 -0
- {synap_git-2.1.7 → synap_git-2.3.1}/CHANGELOG.md +86 -4
- {synap_git-2.1.7 → synap_git-2.3.1}/PKG-INFO +134 -107
- {synap_git-2.1.7 → synap_git-2.3.1}/README.md +132 -106
- {synap_git-2.1.7 → synap_git-2.3.1}/pyproject.toml +1 -0
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/__init__.py +1 -1
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/cli/main.py +98 -30
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/git/state.py +64 -40
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/indexer/daemon.py +101 -44
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/indexer/engine.py +28 -3
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/indexer/scanner.py +2 -0
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/parser/registry.py +46 -0
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/provider/anthropic.py +6 -5
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/provider/openrouter.py +6 -2
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/retrieval/engine.py +9 -4
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/storage/sqlite.py +14 -0
- {synap_git-2.1.7 → synap_git-2.3.1}/.synap.example/README.md +0 -0
- {synap_git-2.1.7 → synap_git-2.3.1}/LICENSE.md +0 -0
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/api/__init__.py +0 -0
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/api/app.py +0 -0
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/api/static/index.html +0 -0
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/cli/__init__.py +0 -0
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/cli/__main__.py +0 -0
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/cli/checkpoint.py +0 -0
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/cli/lessons.py +0 -0
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/cli/memory.py +0 -0
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/cli/usage.py +0 -0
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/cli/wiki.py +0 -0
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/config.py +0 -0
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/diagnostics/__init__.py +0 -0
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/diagnostics/logger.py +0 -0
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/diagnostics/tracing.py +0 -0
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/embeddings/__init__.py +0 -0
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/git/__init__.py +0 -0
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/indexer/__init__.py +0 -0
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/indexer/wiki.py +0 -0
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/mcp/__init__.py +0 -0
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/mcp/server.py +0 -0
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/parser/__init__.py +0 -0
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/provider/__init__.py +0 -0
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/provider/base.py +0 -0
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/provider/factory.py +0 -0
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/provider/gemini.py +0 -0
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/provider/ollama.py +0 -0
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/provider/openai.py +0 -0
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/py.typed +0 -0
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/retrieval/__init__.py +0 -0
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/retrieval/memory.py +0 -0
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/security/__init__.py +0 -0
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/security/redactor.py +0 -0
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/security/sanitizer.py +0 -0
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/security/validator.py +0 -0
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/storage/__init__.py +0 -0
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/utils/__init__.py +0 -0
- {synap_git-2.1.7 → synap_git-2.3.1}/src/synap_git/utils/serialization.py +0 -0
- {synap_git-2.1.7 → synap_git-2.3.1}/website/README.md +0 -0
|
@@ -5,22 +5,74 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [2.2.0] - 2026-08-03
|
|
9
|
+
|
|
10
|
+
## [2.3.1] - 2026-08-03
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **Git state detection**: normalized branch resolution and improved dirty-state detection during runtime bootstrap.
|
|
15
|
+
- **Incremental indexing**: skipped reindex when HEAD commit is already indexed to restore zero-change performance.
|
|
16
|
+
|
|
17
|
+
### Chore
|
|
18
|
+
|
|
19
|
+
- **Bumped package version** to `2.3.1`.
|
|
20
|
+
|
|
21
|
+
## [2.3.0] - 2026-08-03
|
|
22
|
+
|
|
23
|
+
### Added
|
|
24
|
+
|
|
25
|
+
- **CLI Cost & Usage Command**: Expose `synap cost` (alias `synap usage`) to show aggregated LLM calls, token counts, and estimated USD cost in the terminal.
|
|
26
|
+
- **Web UI: CLI Cost Integration**: The website CLI playground now surfaces an estimated cost line for sample commands so visitors can see token/cost economics.
|
|
27
|
+
|
|
28
|
+
### Changed
|
|
29
|
+
|
|
30
|
+
- **Frontend Defensive Rendering**: Guarded several UI paths against undefined symbol objects to prevent runtime errors in production (fixed `.type` property reads).
|
|
31
|
+
|
|
32
|
+
### Chore
|
|
33
|
+
|
|
34
|
+
- **Bumped package version** to `2.3.0`.
|
|
35
|
+
- **Release automation**: prepared changelog and release tag for GitHub release `v2.3.0`.
|
|
36
|
+
|
|
37
|
+
## [2.2.0] - 2026-08-03
|
|
38
|
+
|
|
39
|
+
### Added
|
|
40
|
+
|
|
41
|
+
- **AST Symbol Parser Expansion (AUD-02)**: Implemented Tree-sitter AST symbol extraction handlers for C#, PHP, Kotlin, Scala, and C.
|
|
42
|
+
- **Event-Driven File Watcher (AUD-03)**: Replaced continuous 2s subprocess polling with `watchdog` filesystem event tracking, reducing idle CPU usage to near-zero.
|
|
43
|
+
- **Daemon REST API Diagnostic Checks (AUD-06)**: Added daemon port availability and REST API endpoint status checks to `synap doctor`.
|
|
44
|
+
- **Wiki Task Requeue Subcommand (AUD-08)**: Added `synap wiki retry` CLI subcommand and `retry_failed_wiki_queue` storage method to requeue permanently failed wiki tasks back to pending state.
|
|
45
|
+
|
|
46
|
+
### Changed
|
|
47
|
+
|
|
48
|
+
- **CLI `synap start` Control Flow (AUD-01)**: Fixed `synap start` so it exits cleanly when a daemon is already running unless `--foreground` is explicitly passed.
|
|
49
|
+
- **SQLite WAL Performance Rationale (AUD-07)**: Documented `PRAGMA synchronous=NORMAL` in WAL mode as an intentional architectural tradeoff balancing write throughput and self-healing index recovery.
|
|
50
|
+
|
|
51
|
+
### Fixed
|
|
52
|
+
|
|
53
|
+
- **Graceful Embedding Provider Fallback (AUD-04)**: Configured Anthropic and OpenRouter providers to log a warning and return empty embedding vectors instead of raising unhandled `NotImplementedError`.
|
|
54
|
+
- **Symbol Preservation on File Renames (AUD-05)**: Added `-M` rename detection to `git diff-tree` in incremental indexing to preserve file symbol history and edges across renames.
|
|
55
|
+
|
|
8
56
|
## [2.1.7] - 2026-07-29
|
|
9
57
|
|
|
10
58
|
### Added
|
|
59
|
+
|
|
11
60
|
- **AI Engineer Rules**: Created standardized agent rulesets across `AGENTS.md`, `.cursorrules`, `.windsurfrules`, and `.github/copilot-instructions.md`.
|
|
12
61
|
|
|
13
62
|
### Fixed
|
|
63
|
+
|
|
14
64
|
- **Daemon Branch Switching Test Stability**: Resolved timing race condition in daemon branch checkout verification.
|
|
15
65
|
- **CLI Setup Connectivity**: Fixed setup connectivity verification and non-TTY prompt fallback handling.
|
|
16
66
|
|
|
17
67
|
## [2.1.6] - 2026-06-29
|
|
18
68
|
|
|
19
69
|
### Added
|
|
70
|
+
|
|
20
71
|
- **Universal Language Expansion**: Expanded tree-sitter AST parsing support from 4 hardcoded languages to dynamically supporting over ~50 languages using `tree-sitter-languages`. Also added dynamic shebang detection (`#!`) to parse extensionless scripts as python, ruby, node, and bash scripts.
|
|
21
72
|
- **API Rate Limiting**: Implemented a global `RateLimitedProvider` to throttle LLM and embedding calls to 3 requests per second to mitigate resource exhaustion on the diagnostic API.
|
|
22
73
|
|
|
23
74
|
### Fixed
|
|
75
|
+
|
|
24
76
|
- **Broad Exception Handling**: Eradicated remaining `except Exception:` blocks across diagnostics, daemon execution, indexer scanning, and module resolution, and replaced them with `OSError`, `sqlite3.Error`, and specific errors to prevent silent data corruption.
|
|
25
77
|
- **Async Sleep Compatibility**: Fixed thread-blocking `time.sleep()` in LLM retries by delegating to `anyio.from_thread.run(anyio.sleep)` if invoked inside FastMCP worker threads.
|
|
26
78
|
- **Edge Resolution & Source Paths**: Added support for resolving Javascript, Java, C++, Ruby, and more during import/edge resolution.
|
|
@@ -29,38 +81,45 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
29
81
|
- **Metadata Fixes**: Corrected repository URLs in `pyproject.toml` to correctly point to `synapse` instead of `synap-git`.
|
|
30
82
|
|
|
31
83
|
### Refactored
|
|
84
|
+
|
|
32
85
|
- **Daemon Teardown**: Refactored the forceful SIGTERM daemon teardown logic to safely toggle via `force_exit=True` rather than a blanket catch-all. Makes programmatic `daemon.stop()` safer without blocking terminal UI interactions.
|
|
33
86
|
|
|
34
87
|
## [2.1.4] - 2026-06-11
|
|
35
88
|
|
|
36
89
|
### Fixed
|
|
90
|
+
|
|
37
91
|
- **Graceful Shutdown Hang**: Fixed an edge case where `synap stop` would time out and forcefully terminate due to `concurrent.futures` threads preventing immediate python process exit when handling embeddings. The CLI now safely flushes databases and exits instantly.
|
|
38
92
|
|
|
39
93
|
## [2.1.3] - 2026-06-11
|
|
40
94
|
|
|
41
95
|
### Changed
|
|
96
|
+
|
|
42
97
|
- **CLI Interactivity Enhancement**: Wrapped all long-running `synap` CLI commands (`init`, `start`, `stop`, `rollback`, `repair`) with interactive rich status spinners to ensure users never stare at an empty screen.
|
|
43
98
|
- **Incremental Indexing Progress**: Added a rich progress status to the `_incremental_index` background loop to provide visibility into parsing tasks during cache hits.
|
|
44
99
|
|
|
45
100
|
## [2.1.2] - 2026-06-11
|
|
46
101
|
|
|
47
102
|
### Fixed
|
|
103
|
+
|
|
48
104
|
- **CRITICAL: Daemon Thread Explosion**: Patched a massive concurrency edge case in `SynapRuntime` where large repository indexing would trigger unbounded `threading.Thread` loops for LLM embeddings. A bounded `ThreadPoolExecutor` has been introduced to prevent OOMs, OS thread starvation, and rate-limit hits during first-run indexing.
|
|
49
105
|
- **Daemon Lifecycle**: Ensure `embedding_executor` shuts down cleanly without leaking background threads when the daemon loop receives SIGTERM.
|
|
50
106
|
|
|
51
107
|
## [2.1.1] - 2026-06-11
|
|
52
108
|
|
|
53
109
|
### Fixed
|
|
110
|
+
|
|
54
111
|
- **CRITICAL: MCP StdIO Stream Corruption**: Fixed a bug where `synap mcp start` and `signal_low_context` would accidentally print progress bars or notifications to `sys.stdout` instead of `sys.stderr`, which corrupted the MCP protocol stream and disconnected IDEs like Cursor/Windsurf.
|
|
55
112
|
- **UX Improvements**: Improved the silence logic in CLI initialization to prevent unnecessary rich formatting in JSON/MCP environments.
|
|
56
113
|
|
|
57
114
|
## [2.1.0] - 2026-05-29
|
|
58
115
|
|
|
59
116
|
### Added
|
|
117
|
+
|
|
60
118
|
- **CLI `search` command**: New user-facing command for executing hybrid structural searches directly from the terminal.
|
|
61
119
|
- **`embed_provider` configuration**: Added explicit control over the vector embedding provider via `SYNAP_EMBED_PROVIDER` or `config.toml`.
|
|
62
120
|
|
|
63
121
|
### Fixed
|
|
122
|
+
|
|
64
123
|
- **CRITICAL: Metadata Nullability Bug**: Resolved a type mismatch in `CodeSymbol` where `metadata=None` caused background worker crashes. Enforced strict `dict` contract with `default_factory`.
|
|
65
124
|
- **CRITICAL: Exception Swallowing**: Eradicated 26 instances of silent failure (`except Exception: pass`) across all core subsystems (API, Indexer, Storage, Retrieval, MCP, Providers). Replaced with structured, traceback-aware logging.
|
|
66
125
|
- **CRITICAL: SQLite Schema Integrity**: Fixed `NOT NULL` constraint failure in `llm_calls` table by aligning schema with insertion logic and adding `cost_usd` support.
|
|
@@ -71,10 +130,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
71
130
|
## [2.0.0] - 2026-05-29
|
|
72
131
|
|
|
73
132
|
### Added
|
|
133
|
+
|
|
74
134
|
- **.synapignore Support**: Implemented context-aware filtering to prevent traversing symlinks, binary files, and files listed in `.synapignore` or `.gitignore`.
|
|
75
135
|
- **FTS5 Integration**: Shifted semantic full-text search directly to SQLite FTS5 with bounding limits (`LIMIT 50`) for `O(1)` lexical retrieval scaling on 10,000+ file monorepos.
|
|
76
136
|
|
|
77
137
|
### Fixed
|
|
138
|
+
|
|
78
139
|
- **LLM Hangs in Test Suite**: Isolated testing environment by strictly bypassing real LLM provider configs (`SYNAP_LLM_PROVIDER=""`) preventing test CI suite hangs.
|
|
79
140
|
- **Repository Path Scoping in Hybrid Engine**: Fixed a bug where `repo_path` initialization mistakenly truncated the path to `/tmp` in tests, failing contextual snippet aggregation.
|
|
80
141
|
- **Unbounded BM25 Expansion**: Bounded full-text search token extraction and BM25 results, preventing out-of-memory cascading in CTE traversal during monorepo indexing.
|
|
@@ -82,24 +143,29 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
82
143
|
## [1.2.3] - 2026-05-28
|
|
83
144
|
|
|
84
145
|
### Added
|
|
146
|
+
|
|
85
147
|
- **Architecture Documentation Consolidation:** Merged duplicate `docs/architecture.md` into the root-level `ARCHITECTURE.md` to ensure a single, consistent source of architectural truth.
|
|
86
148
|
|
|
87
149
|
### Fixed
|
|
150
|
+
|
|
88
151
|
- **Release Version Sync:** Bumped package version in `src/synap_git/__init__.py` to `1.2.3` and updated configuration metadata to align with the release tag validation check in the pipeline.
|
|
89
152
|
|
|
90
153
|
## [1.1.2] - 2026-05-28
|
|
91
154
|
|
|
92
155
|
### Added
|
|
156
|
+
|
|
93
157
|
- **Technical Documentation (`docs/`):** Added detailed manuals for architecture, CLI reference, configuration fields, MCP tools schemas, two-path indexing, wiki queues, and memory lifecycles.
|
|
94
158
|
- **Main README:** Completely rewrote the `README.md` from scratch to align strictly with the implemented features, CLI commands, configuration options, and integration paths.
|
|
95
159
|
|
|
96
160
|
### Removed
|
|
161
|
+
|
|
97
162
|
- **Obsolete Docs:** Purged stale `quickstart.md`, `retrieval.md`, `roadmap.md`, `diagnostics.md`, `performance.md`, `benchmarks.md`, and `security.md` documents.
|
|
98
163
|
- **Draft Files:** Removed unreferenced root files `SYNAPSE_AUDIT_REPORT.md` and `SYNAPSE_AGENT_PROMPT.md `.
|
|
99
164
|
|
|
100
165
|
## [1.1.1] - 2026-05-28
|
|
101
166
|
|
|
102
167
|
### Fixed
|
|
168
|
+
|
|
103
169
|
- **CRITICAL: N+1 query loop during edge resolution:** Migrated structural edge resolution to bulk FETCH queries, eliminating thousands of database calls per indexing run.
|
|
104
170
|
- **CRITICAL: SQLite Synchronous Pragma:** Enforced \`PRAGMA synchronous=NORMAL\` on every connection, multiplying write throughput by 10x-100x.
|
|
105
171
|
- **SPEC: Content-Scoped File IDs:** Updated \`file_id\` formula to \`sha256(path + content_hash)\` ensuring temporal version isolation in the graph.
|
|
@@ -110,6 +176,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
110
176
|
- **LOW: Checkpoint Validation:** MCP \`create_checkpoint\` tool now validates all input fields to prevent malformed data.
|
|
111
177
|
|
|
112
178
|
### Added
|
|
179
|
+
|
|
113
180
|
- **Interactive Review Flow:** New CLI command \`synap lessons review\` for interactive management of agent-proposed lessons.
|
|
114
181
|
- **Context Monitoring:** New MCP tool \`signal_low_context\` for proactive agent context window monitoring.
|
|
115
182
|
- **Configurable Maintenance:** Added \`checkpoint_threshold\` and \`lesson_expiry_days\` to \`config.toml\`.
|
|
@@ -117,35 +184,40 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
117
184
|
- **Onboarding Guidance:** \`synap init\` now provides explicit next steps for starting the system.
|
|
118
185
|
|
|
119
186
|
### Removed
|
|
187
|
+
|
|
120
188
|
- **Mock LLM Mode:** \`MockLLMProvider\` removed from the production codebase to maintain strict operational integrity.
|
|
121
189
|
|
|
122
190
|
## [1.1.0] - 2026-05-28
|
|
123
191
|
|
|
124
192
|
### Added — Git-Snapshot Projection & Performance Refactoring
|
|
193
|
+
|
|
125
194
|
- **Split Two-Path Indexing:** Separated initialization and incremental indexing into `_first_run_index` (full scan, CPU-parallelized) and `_incremental_index` (Git delta change detector).
|
|
126
195
|
- **Asynchronous Wiki Generation Queue:** Decoupled slow, non-deterministic LLM wiki generation from structural indexing using a persistent database queue (`wiki_queue`) processed asynchronously by a daemon worker.
|
|
127
196
|
- **Lazy Wiki Caching:** Added synchronous wiki generation fallback to CLI (`wiki show`), Web API, and MCP tools to dynamically build missing or stale pages on-demand.
|
|
128
197
|
- **Process Pool Parallel Parsing:** Parallelized Tree-sitter parsing on first run across all CPU cores utilizing process-based concurrency with independent parser instances.
|
|
129
198
|
- **SQLite Performance Hardening:**
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
199
|
+
- WAL mode and NORMAL synchronous configuration enabled during writes.
|
|
200
|
+
- Multi-row symbol and edge inserts batched into a single transaction via `executemany`.
|
|
201
|
+
- Dot-separated `module_key` pre-computation and indexing for $O(1)$ module resolution.
|
|
202
|
+
- SQLite FTS5 index integration for fast sub-millisecond symbol searches, avoiding full-table scans.
|
|
134
203
|
- **Web API Lazy Refreshes:** Updated the `/wiki/{filepath}` GET endpoint to perform lazy refreshes on stale or missing pages before returning content.
|
|
135
204
|
|
|
136
205
|
### Fixed
|
|
206
|
+
|
|
137
207
|
- **FTS5 Cascade Delete:** Added database trigger `tgr_symbols_delete` to automatically clean up virtual `symbols_fts` entries when parent symbols are deleted.
|
|
138
208
|
- **Duplicate File ID Collision:** Handled unique, path-scoped file identifier generation ensuring files with identical content (like empty `__init__.py`) do not conflict.
|
|
139
209
|
|
|
140
210
|
## [0.2.1] - 2026-05-27
|
|
141
211
|
|
|
142
212
|
### Added — Final Production Hardening & Release Execution
|
|
213
|
+
|
|
143
214
|
- `synap rollback --commit <ref>` option: directly target a commit by hash/reference without interactive selection prompt.
|
|
144
215
|
- `synap rollback --yes` / `-y` option: suppress confirmation prompt for non-interactive and scripted rollback flows.
|
|
145
216
|
- Non-interactive guard in `synap rollback`: fails fast with a clear error when used in piped/CI contexts without `--commit` or `--yes`.
|
|
146
217
|
- `synap rollback` invalid commit detection: validates commit reference via `git rev-parse --verify` and rejects unknown refs with a clear message.
|
|
147
218
|
|
|
148
219
|
### Fixed
|
|
220
|
+
|
|
149
221
|
- **SQLite migration short-circuit bug**: legacy un-versioned databases (user_version = 0) incorrectly skipped `CREATE TABLE IF NOT EXISTS` execution, leaving the `symbols` table and others uninitialized. The premature short-circuit is removed; all schema tables are now created correctly before bumping to version 1.
|
|
150
222
|
- **Python `import_from_statement` missing symbol extraction**: Tree-sitter AST parser only extracted the module identifier from `from X import Y` statements, discarding `Y`. Now correctly emits `module:symbol` pairs for all imported names, aliases, and grouped imports.
|
|
151
223
|
- **Namespace-aware call edge resolution**: Pass 2 import resolver now splits `module:symbol` import entries to narrow edge targets to the correct module file, eliminating false-positive dependency edges to duplicate class names in sibling namespaces.
|
|
@@ -154,11 +226,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
154
226
|
- **Degraded mode retry logic**: confirmed 2-stage exponential backoff and graceful structural fallback under fully-offline and timeout conditions.
|
|
155
227
|
|
|
156
228
|
### Changed
|
|
229
|
+
|
|
157
230
|
- Daemon resilience test (`test_daemon_resilience.py`) hardened against race condition where `SIGKILL` test read a stale PID from a prior run that had already exited.
|
|
158
231
|
|
|
159
232
|
## [0.2.0] - 2026-05-26
|
|
160
233
|
|
|
161
234
|
### Added — Final Polish & Release Readiness
|
|
235
|
+
|
|
162
236
|
- CLI usage management: `synap usage show` (displays Rich aggregated usage table and summary panel) and `synap usage clear`.
|
|
163
237
|
- CLI wiki management: `synap wiki list` and `synap wiki show <filepath>` (renders page in terminal via Rich Markdown).
|
|
164
238
|
- LLM call database logging: records `prompt_tokens`, `completion_tokens` for retrieval and wiki generation passes.
|
|
@@ -168,6 +242,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
168
242
|
- Clean Typer execution wrapper: intercepts configuration and credential exceptions to output actionable suggestions (e.g. `synap setup`) instead of tracebacks.
|
|
169
243
|
|
|
170
244
|
### Added — Hardening Loop 2: MCP Stability & Protocol Polish
|
|
245
|
+
|
|
171
246
|
- Deterministic MCP JSON envelope: every tool response carries `ok`, `data`, `warnings`, `trace_id`, `dirty_tree`.
|
|
172
247
|
- Structured error objects with `code`, `message`, and `suggestion` fields for all failure paths.
|
|
173
248
|
- `dirty_tree` propagation: agents are warned when the working tree is ahead of the index.
|
|
@@ -175,6 +250,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
175
250
|
- `synap mcp verify` command to assert full protocol contract compliance.
|
|
176
251
|
|
|
177
252
|
### Added — Hardening Loop 3: Lesson System Trust & Memory Lifecycle
|
|
253
|
+
|
|
178
254
|
- Formal `LessonStatus` enum enforcing explicit state machine: `PENDING → APPROVED/REJECTED`, `APPROVED → EXPIRED`.
|
|
179
255
|
- Retrieval gating: only `APPROVED`, non-expired lessons are injected into LLM context as `# APPROVED SYSTEM MEMORY`.
|
|
180
256
|
- `prune_expired_lessons()` transitions stale lessons to `EXPIRED` state on demand.
|
|
@@ -185,6 +261,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
185
261
|
- `synap lessons approve <id>` and `synap lessons reject <id>` — explicit human governance over pending lessons.
|
|
186
262
|
|
|
187
263
|
### Added — Hardening Loop 4: Tracing, Git Compliance & Release Hardening
|
|
264
|
+
|
|
188
265
|
- `GitIgnoreSpec` glob-to-regex parser in `RepositoryScanner` respects `.gitignore` patterns.
|
|
189
266
|
- Auto-protection: `SynapRuntime.bootstrap()` automatically adds `.synap/` to `.gitignore`.
|
|
190
267
|
- Enhanced binary file detection via extension blocklist + control-character ratio analysis.
|
|
@@ -200,18 +277,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
200
277
|
- `py.typed` marker for PEP 561 compliance.
|
|
201
278
|
|
|
202
279
|
### Changed
|
|
280
|
+
|
|
203
281
|
- CI pipeline split into 4 focused jobs: `lint`, `test`, `benchmark` (main only), `release-validation`.
|
|
204
282
|
- Release validation now runs `synap init` before `synap doctor` to ensure a valid Synap DB context.
|
|
205
283
|
- `pytest` configured with `asyncio_default_fixture_loop_scope = "function"` to eliminate deprecation warnings.
|
|
206
284
|
- Benchmark tests gated behind `benchmark` marker; skipped in fast PR CI passes.
|
|
207
285
|
|
|
208
286
|
### Fixed
|
|
287
|
+
|
|
209
288
|
- `synap doctor` in CI release validation step previously ran against an uninitialized directory.
|
|
210
289
|
- `ruff format` drift in `cli/main.py` and `indexer/daemon.py` resolved.
|
|
211
290
|
|
|
212
291
|
## [0.1.0] - 2026-05-25
|
|
213
292
|
|
|
214
293
|
### Added
|
|
294
|
+
|
|
215
295
|
- Core deterministic indexing engine using Tree-sitter and Git content hashes.
|
|
216
296
|
- 4-stage hybrid retrieval pipeline (Temporal, Structural, Lexical, Semantic).
|
|
217
297
|
- Model Context Protocol (MCP) server for IDE integration.
|
|
@@ -221,11 +301,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
221
301
|
- Diagnostic UI dashboard.
|
|
222
302
|
|
|
223
303
|
### Changed
|
|
304
|
+
|
|
224
305
|
- Refactored entire architecture from event-sourcing to deterministic Git projections.
|
|
225
306
|
- Consolidated storage into unified SQLite schema with Recursive CTE support.
|
|
226
307
|
- Upgraded documentation to production infrastructure standards.
|
|
227
308
|
|
|
228
309
|
### Removed
|
|
310
|
+
|
|
229
311
|
- Legacy "cognitive OS" and "graph operating system" abstractions.
|
|
230
312
|
- Speculative async priority queues and replay engines.
|
|
231
313
|
- Brittle regex-based parsers.
|