Repository navigation
Conversation
G5: install root is MSCODEBASE_INSTALL_ROOT (legacy Zed path stays default),
Zed adapter is imported lazily and is optional (--no-zed), and
--print-config --client {generic,opencode,zed,claude-code,cursor} prints a
copy-paste stdio snippet. scripts/verify_client_snippets.py launches each
snippet and completes an MCP initialize + tools/list (5/5 PASS, tools=17).
G6: --doctor [--json] reports versions, paths, sizes and chunk count per
layer; --clean [--dry-run] [--yes] removes install root, data root and
project artifacts with path guards and a residual check. Models are opt-in
(--with-models); the default install is text-first and offline.
G7: docs/{en,ru,zh}/DATA_MAP.md documents every path with measured sizes and
retention policies; scripts/check_docs_vs_installer.py fails when docs name
an installer flag or client that does not exist; PR template carries the
docs-to-code checklist.
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
added 9 commits
November 11, 2026 21:54
Owner
Author
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.
What changed
Цель 2 целиком: установка отвязана от Zed (G5), появились инвентарь и полное
удаление данных (G6), документация приведена к коду и получила механический guard
(G7). Все части правят один
install.py, поэтому один PR с тремя разделами.CI: 7/7 jobs success — run
43092017919на head20f287b(
testubuntu + windows,clean-state,manifest-parity,secret-scan,docker-build,transport-equiv-e2e).G5 — универсальная установка
install.pyv3.2:MSCODEBASE_INSTALL_ROOT+resolve_install_root()— каталогустановки отвязан от Zed (исторический путь остаётся default).
step_zed/step_zedcfgделаютленивый импорт, отказ адаптера не роняет установку,
--no-zed— нейтральный режим.install.py --print-config --client {generic,opencode,zed,claude-code,cursor}печатает один JSON: команда
<install-root>/venv/Scripts/mscodebase-mcp.exe -u -m src.main,PYTHONPATH,PROJECT_PATH,PYTHONUTF8=1. Формы конвертов —adapters/clients/snippets.py(Zed-ключи сверены с
adapters/zed/zed_config.py::_make_server_entry).scripts/verify_client_snippets.pyзапускает каждый сниппет и делает MCPinitialize+tools/list. В CI это отдельный шаг на чистом раннере.Локальный замер (2026-11-12):
tools=17— профильcore.G6 — гигиена данных
install.py --doctor [--json]: python/venv, install root, data root, проектныеартефакты, число чанков в
chunks.db, размеры черезos.walk, без создания каталогов.install.py --clean [--dry-run] [--yes] [--json]: удаление по слоям(install root / data root /
.mscodebase/.codebase_indices/.codebase/.codebase_models), guard'ы на исходный чекаут, корень ФС, домашний каталог;exit 1при остатке (заблокированные файлы).models_enabled()+--with-models; дефолт text-first и без сети.--skip-models/--no-modelsсовместимы.docs/{en,ru,zh}/DATA_MAP.md: каждый путь, владелец, назначение, размер, политика.Реальный прогон
--doctor(2026-11-12):Политики из кода: логи 2 MB × 3 файла, 7 дней (
log_manager._MAX_LOG_BYTES,_MAX_LOG_FILES,_LOG_RETENTION_DAYS); телеметрия 90 д, неактивные проектныепапки 30 д (
artifact_gc.DEFAULT_*); клоны репозиториев LRU(5) + 24 ч(
git_url.DEFAULT_MAX_ENTRIES,DEFAULT_TTL_SEC).G7 — документация = код
scripts/check_docs_vs_installer.py: каждыйinstall.py --flagи--client Xв README/docs обязан существовать в
install.py/adapters/clients/snippets.py;пустой корпус =
exit 2(«не доказано»). Сейчас:162 flag reference(s) checked, 0 problem(s). На дореформенномdocs/en/INSTALL.mdизmainтот же guard печатает✗ unknown installer flag --uninstall..github/pull_request_template.md: таблица «изменённая строка docs → файл:символ»,обязательная колонка Entry point.
AGENTS.md §8: правило + ссылка на guard.Documentation = code
docs/*/INSTALL.md§7:--clean --yesвместо--uninstallinstall.py::_mode_from_argv(флага--uninstallнет)python install.py --help; guard на старом файле →✗ --uninstalldocs/*/INSTALL.md,INSTALL_MODELS.md,SYSTEM_REQUIREMENTS.md,CONTRIBUTING.md,FAQ.md: модели только по--with-modelsinstall.py::models_enabled,step_models,step_gguftests/test_install_cli.py::test_models_are_opt_in,test_text_first_default_skips_downloadsREADME.md/docs/*/README.md: quick start и 4 слоя данныхinstall.py::_print_config,_doctor_report;src/core/artifact_paths.py--print-configи--doctorвышеdocs/*/CLIENTS.md: секции 5 клиентовadapters/clients/snippets.py::snapshotscripts/verify_client_snippets.py(5/5 PASS)adapters/clients/*.json:PROJECT_PATH,PYTHONUTF8,<install-root>install.py::_print_configenv--print-config --client claude-code;tests/test_cli.py(контракт адаптера сохранён)adapters/clients/README.md:cwd→PROJECT_PATHsrc/main.pyчитаетMSCODEBASE_PROJECT_PATH/PROJECT_PATHsrc/main.py, env сниппетаAI_INSTALLATION_PROMPT.md: баннер «Zed-специфичный, актуальное — INSTALL.md»install.pyv3.2--help, guardGates
Tests that can fail (red first)
test_print_config_is_valid_json_per_client[*]— мутацияPYTHONPATH→ 5 красных.test_clean_yes_leaves_zero_residue— мутация «не удалять» →assert 1 == 0.test_real_sync_install_then_doctor_then_clean_leaves_zero— реальный--sync-only(871 файл / 18.7 MB / 3.1 s) →--doctor→--clean --yes→remaining_bytes == 0.tests/test_docs_vs_installer.py— 5 тестов, включая «пустой корпус ≠ pass».Risks / not verified
Client snippets cold start (G5), а не вручную на новой ОС.--cleanв реальном профиле удаляет кэши всех проектов — задумано, требует--dry-run/--yes.только флаги/имена клиентов, не формулировки.