Skip to content

docs: sync documentation from internal repository - #2125

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

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

Conversation

@unsupo

@unsupo unsupo commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Syncs the documentation tree from the internal repository — architecture docs, user guides, CLI reference, error codes, ADRs, and invariants.

What's included

Section Files Content
docs/architecture/ ~30 System architecture, seams, feature SDK, query path, storage, xray
docs/architecture/invariants/ 14 Behavioral invariants (auth, cluster, golden repos, xray, etc.)
docs/adr/ 4 Architecture Decision Records
docs/getting-started/ 5 Installation, configuration, operating modes, MCP, teach-AI
docs/guides/ 7 Embedding, forge tools, meta-repo, query, SCIP, temporal search, xray cookbook
docs/reference/cli/ 17 CLI command reference
docs/reference/error-codes/ 12 Error code reference by category
docs/archive/ 4 Migration history, empirical studies
Root files 9 CONTRIBUTING, CODE_OF_CONDUCT, SECURITY, lint configs, gitleaks

What's excluded

  • docs/content-seam-*.md (7 files) — internal fork-process deployment docs not relevant to the public project

Scrubbing applied

  • Internal ticket references (EVO-NNNNN) removed
  • Internal MR references (MR !NNN) removed
  • Internal GitLab repository URLs replaced with placeholder
  • Disclosure scan passed (no secrets, AWS IDs, internal hostnames, or PII)

Relationship to other PRs


Merge-order dependencies

This PR must merge after the PRs that supply the paths and packages it references:

Prerequisite What it supplies
PR #2123 (feat/feature-packages) packages/features/cidx-{xray,scip,wiki,memory,depmap} for lint.sh
PR #2129 (feat/remaining-source-sync) scripts/check_import_contracts.py + ratchet baseline
PR #2124 (feat/plugins) cidx_git_backend, cidx_orchestrator_invoker root packages
PR #2127 (feat/core-integration) import-linter in pyproject.toml
PR #2122 (feat/sdk-packages-core) cidx_testkit, cidx_backend_workspace, cidx_backend_git

Review findings

# Severity Status Summary
1 HIGH Merge-order lint.sh runs ruff/mypy on packages/features/* (need #2123 first)
2 HIGH Merge-order lint.sh calls scripts/check_import_contracts.py (need #2129 first)
3 MEDIUM Merge-order .importlinter names root packages from #2122, #2124, #2130
4 MEDIUM Merge-order CI lint environment needs import-linter from #2127
5 LOW Fixed cidx-scip linted by ruff but missing mypy block — replaced with loop
6 LOW Fixed import-linter in mypy pre-commit hook where nothing runs it — removed

Bring the documentation tree from the internal repository:

Architecture docs:
- Architecture overview, seams, feature-sdk, indexing, query-path,
  storage, cluster, config-state, repository lifecycle, refresh
  recovery, background work distribution, jobs and cluster state
- Architecture Decision Records (ADR-001 through ADR-003)
- Invariants: auth, auto-update, chunk-storage, cluster-and-jobs,
  depmap-and-description-refresh, fault-injection, global-alias,
  golden-repos, import-contracts, indexing-and-migrations, query-path,
  server-runtime, shared-storage, xray
- X-Ray architecture, graph-binder internals, sandbox

Feature package docs:
- cidx-depmap, cidx-memory, cidx-scip, cidx-wiki, cidx-xray

User-facing docs:
- Getting started: installation, configuration, operating modes,
  MCP registration, teach-AI guide
- Guides: embedding providers, forge and write tools, meta-repo
  discovery, query, remote CLI, SCIP, temporal search, xray cookbook
- CLI reference: 17 command groups
- Error code reference: 12 categories
- Archive: migration history, HNSW temporal orphans, query cache study

Supporting files:
- git-seam-guard, index-store cross-pod, dependency-map reference
- Root: CONTRIBUTING.md, CODE_OF_CONDUCT.md, SECURITY.md
- Config: .gitleaks.toml, .importlinter, .pre-commit-config.yaml
- Scripts: lint.sh, lint-strict.sh, setup-test-environment.sh

Excluded: 7 content-seam-*.md files (internal fork-process docs).
Internal references scrubbed.
…rt-linter dep

- lint.sh: replace four hand-copied per-feature mypy blocks with a loop
  that also includes cidx-scip (was linted by ruff but never type-checked)
- .pre-commit-config.yaml: remove import-linter from mypy hook where
  nothing invokes it (contract checks are in lint.sh, not pre-commit)
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