Skip to content

feat: sync kernel seams, startup wiring, and remaining source modules - #2129

Open
unsupo wants to merge 2 commits into
developmentfrom
feat/remaining-source-sync
Open

unsupo wants to merge 2 commits into
developmentfrom
feat/remaining-source-sync

Conversation

@unsupo

@unsupo unsupo commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Syncs the remaining ~51 source files from the internal repository — the kernel seam system, EKS startup wiring, and supporting modules that weren't covered by PRs #2121-#2128. This completes the full source sync.

What's included

Directory Files Content
kernel/ 8 The seam system — content_seam, seam_resolution, seam_types, feature_handoff, index_store_seam, index_builders, capabilities. This is the pluggable architecture that feature packages register into.
server/startup/ 11 EKS boot wiring — content, git, clone, ripgrep, search, index store, features, control plane metadata, golden mount guard, leader gate
server/services/ 9 Activated copy content, index store, write reindex, backend/clone plugin loaders, catalog sync, checkout sweep, cidx meta
server/repositories/ 1 activated_working_copy.py
server/routers/ 2 index_store_admin, metadata_outbox_admin
server/utils/ 1 route_table.py
indexing/ 6 content_prefetcher, fetch_planner, file_facts, file_texts, repo_manifest, text_decoding
global_repos/ 3 control_plane_metadata, repointed_origin, write_mode_markers
services/ 3 chunk_coverage, git_head, temporal_git_seam
utils/ 7 blob_hash, git_invoker, index_store, remote_endpoint, sandbox_mcp_client, snapshot_paths, worker_budget
scip/ 1 delegation_api.py

Why these matter

  • kernel/ is the seam system — without it, feature packages can't register their content handlers, and the server can't resolve which feature handles a given file type
  • server/startup/ is the EKS boot sequence — each file wires one subsystem (git, search, index store, etc.) during server startup
  • indexing/ provides the content pipeline that feeds SCIP, xray, wiki, and memory features
  • utils/ includes sandbox_mcp_client.py (delegated builds) and worker_budget.py (cluster resource management)

Scrubbing applied

  • K8s internal DNS (*.svc.cluster.local) replaced with localhost
  • Internal ticket references (EVO-NNNNN) removed
  • Internal email domains replaced with @example.com
  • AWS account IDs replaced with ACCOUNT_ID
  • Disclosure scan passed (no secrets, internal hostnames, or PII)

Relationship to other PRs

This is the final sync PR — it fills the remaining gaps:

Suggested merge order

  1. feat: add SDK core packages (cidx-sdk, cidx-testkit, backends) #2122 (SDK core)
  2. feat: add feature packages (depmap, memory, scip, wiki, xray) #2123 (feature packages)
  3. feat: core integration — wire packages into the server #2127 (core integration)
  4. feat: sync auth subsystem and config manager from internal repository #2128 (auth subsystem)
  5. This PR (kernel + startup + remaining modules)
  6. feat: trusted gateway authentication for per-user access #2121 (gateway auth)
  7. feat: add plugin packages (cidx-git-backend, cidx-orchestrator-invoker) #2124, docs: sync documentation from internal repository #2125, feat: sync Rust xray crate from internal repository #2126 (plugins, docs, rust — independent)

Merge-order dependencies

Prerequisite What it supplies
PR #2122 cidx-sdk packages
PR #2127 Core integration
PR #2128 Auth/config modules

Review findings

# Severity Status Summary
2 BLOCKING Fixed Internal service names in CLI help/error/comments (~6 locations)
11 LOW Noted Commit message "Scrubbing applied" section (cosmetic)
1, 3-4 BLOCKING Merge-order Missing modules from prerequisite PRs
5-10, 12-16 MED/LOW Noted Code quality (non-blocking)

Bring the remaining ~51 source files from the internal repository that
weren't covered by PRs #2121-#2128. These complete the EKS-tested
codebase.

Kernel (seam system):
- content_seam, seam_resolution, seam_types — the pluggable content
  layer that feature packages (cidx-scip, cidx-xray, etc.) register into
- feature_handoff — cross-feature delegation protocol
- index_store_seam, index_builders — storage abstraction
- capabilities — feature capability declarations

Server startup (EKS boot wiring):
- startup_content, startup_git, startup_clone, startup_ripgrep,
  startup_search, startup_index_store, startup_features
- startup_control_plane_metadata, startup_golden_mount_guard,
  startup_leader_gate — cluster coordination

Server services:
- activated_copy_content, index_store, write_reindex
- backend_plugin_loader, clone_plugin_loader — plugin registration
- catalog_sync, checkout_sweep, cidx_meta

Server routers:
- index_store_admin, metadata_outbox_admin

Indexing pipeline:
- content_prefetcher, fetch_planner, file_facts, file_texts,
  repo_manifest, text_decoding

Global repos:
- control_plane_metadata, repointed_origin, write_mode_markers

Services:
- chunk_coverage, git_head, temporal_git_seam

Utils:
- blob_hash, git_invoker, index_store, remote_endpoint,
  sandbox_mcp_client, snapshot_paths, worker_budget

SCIP:
- delegation_api (delegated SCIP build protocol)

Scrubbing applied:
- K8s internal DNS replaced with localhost
- Internal ticket references removed
- Internal email domains and AWS account IDs replaced
- Disclosure scan passed
- Replace internal MCP service names with plugin-based descriptions
  in cli.py help strings, error messages, and docstrings
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