Repository navigation
Add namespace analysis tool for ThemisDB codebase - #168
Merged
Merged
Conversation
Co-authored-by: makr-code <[email protected]>
Co-authored-by: makr-code <[email protected]>
…documentation Co-authored-by: makr-code <[email protected]>
Copilot
AI
changed the title
[WIP] Analyze namespaces, classes, functions, and variables in Themis DB
Add namespace analysis tool for ThemisDB codebase
Dec 27, 2025
makr-code
approved these changes
Dec 27, 2025
makr-code
marked this pull request as ready for review
December 27, 2025 12:33
8 tasks
6 of 14 tasks
Merged
11 of 25 tasks
Copilot AI
added a commit
that referenced
this pull request
May 6, 2026
- Add FlareRetrieval (include/rag/flare_retrieval.h + src/rag/flare_retrieval.cpp): per-token log-probability gating, sliding-window token history, uncertain-token masking in buildQuery(), FlareStats, max_retrieval_steps cap, cooldown - Add GgmlTensorBridge implementation (src/storage/ggml_tensor_bridge.cpp): gated by THEMIS_ENABLE_GGML_BRIDGE; map()/mapAdapter()/prefetch()/releaseAll()/ stats() wired; FakeTensor proxy + registerGgmlTypeTT() placeholder (stub #169) - Add FR-01..FR-10 tests to tests/test_tensor_phase3.cpp - Add THEMIS_ENABLE_GGML_BRIDGE CMake option; add flare_retrieval.cpp to core sources - Mark FLARE as resolved in src/tensor/ROADMAP.md Phase 3 checklist - Register STUB #168 (FlareRetrieval::buildQuery string mode) and STUB #169 (GgmlTensorBridge FakeTensor proxy) in src/STUB_INVENTORY.md Agent-Logs-Url: https://github.com/makr-code/ThemisDB/sessions/72dcfd1e-ec61-4f70-9ab8-c48b1c848288 Co-authored-by: makr-code <[email protected]>
11 of 25 tasks
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.
Implements Python-based static analysis tool to map ThemisDB's namespace structure, entities, and temporal evolution via git metadata.
Implementation
Core analyzer (
tools/namespace_analyzer.py, 1000+ LOC)Analysis results (ThemisDB v1.3.3)
Usage
Output
Generates reports in
namespace_analysis/:namespace_analysis.json- Full structured data for automationnamespace_analysis.md- Hierarchical report with statisticsnamespaces.csv,classes.csv,functions.csv- Tabular exportsTop namespaces by entity count:
themis: 2,369 entitiesthemis::query::functions: 1,986 entitiesthemis::llm: 1,247 entitiesDocumentation
tools/NAMESPACE_ANALYZER_README.md- Complete usage guidetools/NAMESPACE_ANALYSIS_RESULTS.md- Analysis insightstools/example_namespace_analysis.sh- Usage examplesOriginal prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.