Skip to content

feat: add feature packages (depmap, memory, scip, wiki, xray) - #2123

Open
unsupo wants to merge 2 commits into
developmentfrom
feat/feature-packages
Open

unsupo wants to merge 2 commits into
developmentfrom
feat/feature-packages

Conversation

@unsupo

@unsupo unsupo commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Adds the feature packages layer — the domain-specific indexing, analysis, and search capabilities that make up cidx's core functionality.

Packages added

Package Purpose
packages/features/cidx-depmap Dependency map analyzer, dashboard, domain service, MCP handlers, web UI
packages/features/cidx-memory Memory store, retrieval pipeline, rate limiter, MCP handlers
packages/features/cidx-scip SCIP indexers (Java/Kotlin, Go, Python, TypeScript, C#), query engine, protobuf, delegation API, build status, reconciliation, self-healing
packages/features/cidx-wiki Wiki service, cache, catalog, templates, static assets, MCP analytics
packages/features/cidx-xray AST engine, search engine, pattern service, graph governor, Rust backend, execution backend, test fixtures for 15+ languages

Security fix: subprocess env allowlisting

All SCIP indexer subprocess.run() calls (java.py, python.py, typescript.py, go.py, csharp.py) previously inherited the full parent environment, which could include secrets like API tokens and passwords. Each indexer now uses an explicit _safe_subprocess_env() allowlist — the same pattern used by xray_subprocess_env() in cidx-xray — passing only the variables build tools actually need (PATH, HOME, JAVA_HOME, GOPATH, etc.).

Scrubbing applied

  • Internal ticket references (EVO-NNNNN) removed from ~51 files
  • Internal MR references (MR !NNN) removed
  • Disclosure scan passed (no secrets, AWS IDs, internal hostnames, or PII)

Relationship to other PRs


Merge-order dependencies

Prerequisite What it supplies
PR #2122 cidx-sdk, cidx-testkit packages
PR #2127 Core entry-point wiring

Review findings

# Severity Status Summary
1 BLOCKING Fixed Internal service names in execution_backend.py docstring
2-3 HIGH Merge-order Missing SDK/testkit packages (PR #2122)
4-10 MED/LOW Noted Code quality, security (tracked privately)

Bring the feature layer from the internal repository:

- cidx-depmap: dependency map analyzer, dashboard, domain service, MCP
  handlers, web UI
- cidx-memory: memory store, retrieval pipeline, rate limiter, MCP
  handlers
- cidx-scip: SCIP indexers (Java/Kotlin, Go, Python, TypeScript, C#),
  query engine, protobuf, delegation API, build status, reconciliation,
  self-healing
- cidx-wiki: wiki service, cache, catalog, templates, static assets,
  MCP analytics
- cidx-xray: AST engine, search engine, pattern service, graph
  governor, Rust backend, execution backend, test fixtures for 15+
  languages

Security fix applied: all SCIP indexer subprocess.run() calls now use an
explicit env= allowlist instead of inheriting the full parent
environment, preventing accidental secret leakage to build-tool
subprocesses (same pattern as xray_subprocess_env in cidx-xray).

Internal ticket references scrubbed.
- Replace internal MCP service references with role-based descriptions
  in execution_backend.py and related feature package files
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