Skip to content

feat: core integration — wire packages into the server - #2127

Open
unsupo wants to merge 2 commits into
developmentfrom
feat/core-integration
Open

unsupo wants to merge 2 commits into
developmentfrom
feat/core-integration

Conversation

@unsupo

@unsupo unsupo commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

This is the glue PR. PRs B-D delivered the packages; this PR wires them into the server so they actually load and run.

Why this PR exists

Without it:

  • pip install . doesn't know the packages exist (no pyproject.toml entries)
  • The server can't discover or load features (no features/ framework)
  • The CLI doesn't know about feature commands (no cli_features.py)
  • The auth layer doesn't integrate gateway auth (patches not wired)

What this PR brings

Component Files Purpose
server/features/ ~15 Pluggable feature framework — registry, loader, dispatch, capabilities, config, migrations, query modes, search augmenters, index builders, jobs, web, tools
feature_platform.py 1 Bootstraps the feature framework at server start
kernel_wiring.py 1 Wires features into the server kernel
cli_features.py 1 Unified feature CLI (replaces inline cli_scip/cli_xray)
Modified core files ~12 cli.py, config.py, config_manager.py, server/, auth/
pyproject.toml 1 Package dependencies, entry points, Python >=3.10
Root files ~4 Dockerfile, .dockerignore, .gitignore, fast-automation.sh

Breaking changes

  • Python floor raised from 3.9 to 3.10
  • cli_scip.py and cli_xray.py removed — replaced by cli_features.py and the respective packages
  • tree-sitter moved from main deps to cidx-xray package

Scrubbing applied

  • Internal ticket references (EVO-NNNNN) removed
  • K8s internal DNS defaults replaced with localhost
  • Internal GitLab paths replaced
  • AWS account IDs replaced with placeholder
  • Disclosure scan passed

Suggested merge order

  1. PR fix: run CI jobs on PRs into development, add disclosure scan #2120 (CI fix) — merged
  2. PR feat: add SDK core packages (cidx-sdk, cidx-testkit, backends) #2122 (SDK core packages) — base dependency layer
  3. PR feat: add feature packages (depmap, memory, scip, wiki, xray) #2123 (feature packages) — the packages this PR wires in
  4. This PR (core integration) — wires packages into the server
  5. PR feat: trusted gateway authentication for per-user access #2121 (gateway auth) — overlaps config_manager.py and dependencies.py; resolve conflicts by keeping this PR's version
  6. PR feat: add plugin packages (cidx-git-backend, cidx-orchestrator-invoker) #2124 (plugins), docs PR, rust PR — independent, any order

Relationship to other PRs


Merge-order dependencies

Prerequisite What it supplies
PR #2122 cidx-sdk packages
PR #2123 Feature packages
PR #2124 Plugin packages
PR #2125 Lint/docs sync

Review findings

# Severity Status Summary
6 BLOCKING Fixed Internal service names in pyproject.toml and source files
23 LOW Fixed Person-identifying email in pyproject.toml
1-5 BLOCKING Merge-order Missing packages from prerequisite PRs
7-22, 24-32 MED/LOW Noted Code quality, merge-order dependencies

This is the glue PR that makes the packages from PRs B-D work.
Without it, pip install doesn't know they exist and the server
can't load them.

Features framework (new — src/code_indexer/server/features/):
- Pluggable feature loading: registry, loader, dispatch_policy
- Capabilities discovery, config, migrations
- Query mode and search augmenter extensibility
- Index builder and repository event hooks
- Web endpoint and tool registration
- Job scheduling integration

Server integration (new):
- feature_platform.py: bootstraps the feature framework
- kernel_wiring.py: wires features into the server kernel

CLI (new):
- cli_features.py: unified feature CLI replacing inline modules
- Removed cli_scip.py and cli_xray.py (moved to their packages)

Modified core files:
- cli.py: feature-aware CLI dispatch
- config.py / config_manager.py: feature configuration
- server/app_helpers.py, server/__init__.py: feature bootstrap
- auth/dependencies.py: gateway auth dispatch + feature hooks
- auth/user_manager.py, session_manager.py: feature-aware auth
- auth/oauth/routes.py, auth/oidc/oidc_manager.py: auth flow
- server/installer.py, server/logging_utils.py: feature support

Root files:
- pyproject.toml: package dependencies, entry points, Python >=3.10
- Dockerfile, .dockerignore: updated for package structure
- .gitignore: !rust/Cargo.lock exception
- fast-automation.sh: updated for package paths

Internal references scrubbed. Disclosure scan passed.
- Replace internal MCP service names with role-based descriptions
  in pyproject.toml, logging_utils.py, app_helpers.py, cli.py
- Replace person-identifying email with role address in pyproject.toml
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