fix(factory.yaml): v0.2.0 — interns-mcp + projects-meta-mcp as subdirs of .common, not standalone repos
The `source.type: git` blocks for interns-mcp and projects-meta-mcp pointed to repos that don't exist as standalone (interns-mcp never existed, projects-meta-mcp is archived). Both live as subdirectories of the .common repo. Remove source blocks, keep deps + target + setup_skill + health_check. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -57,39 +57,12 @@ Per-task deep context lives in `.tasks/<task-slug>.md` (created on demand by `us
|
||||
|
||||
---
|
||||
|
||||
## ⚪ [factory-yaml-mcp-subdir-schema] — Bug в `factory.yaml` v0.1.0: компоненты `interns-mcp` (lines 41-53) и `projects-meta-mcp` (lines 27-39) объявлены как отдельные git-репы:
|
||||
## 🔴 [factory-yaml-mcp-subdir-schema] — Bug: `interns-mcp` и `projects-meta-mcp` описаны как standalone git-репы, но реально — поддиректории `.common`. Фикс: drop `source`, bump v0.2.0.
|
||||
|
||||
```yaml
|
||||
- name: interns-mcp
|
||||
source:
|
||||
type: git
|
||||
url: "{git_host}/{git_org}/interns-mcp" # ← репа НЕ существует
|
||||
branch: main
|
||||
target: "{projects_dir}/.common/lib/interns-mcp"
|
||||
```
|
||||
|
||||
Реальная архитектура: `interns-mcp` и `projects-meta-mcp` — **поддиректории единой репы `.common`** (`OpeItcLoc03/common`). Они мигрированы туда per closed task `[migrate-to-common-lib]` (см. `~/projects/projects-meta-mcp/.tasks/STATUS.md` line 127-134). Standalone-репа `projects-meta-mcp` на gitea **архивирована** (sync logs «1 archived skipped»). Standalone-репы `interns-mcp` **никогда не существовало** — она с самого начала жила субдиректорией `.common`.
|
||||
|
||||
Симптом: factory.yaml вводит в заблуждение. Если/когда L1 Go-бинарь будет реализован и попытается клонировать `{git_host}/{git_org}/interns-mcp`, он провалится (404). Сейчас манифест читают только люди (и редко) — но баг ловит и агентов: на 2026-05-07 `setup-interns` агент на свежей машине (stostayer.new) bail-out с предложением «initialize from scratch» вместо clone-`.common`-fallback. И я (meeting-room агент в этой же сессии) тиражировал это во временный wrong workaround `git clone .../interns-mcp.git` — пока юзер не поправил.
|
||||
|
||||
**Связь:** в `claude-skills` параллельно открыта `[setup-interns-clone-fallback]` — фикс L2-скила на правильный clone-`.common` pattern. Эта таска (factory) — фикс L1 manifest на ту же проблему.
|
||||
|
||||
**Status:** ready
|
||||
**Where I stopped:** Created 2026-05-07 после incident на stostayer.new — где `setup-interns` skill bail-out на missing source, и meeting-room агент дал wrong workaround про clone несуществующей `interns-mcp.git` репы. Юзер указал, что это всё растёт из неверного описания в `factory.yaml`. Параллельный фикс L2-скила: `[setup-interns-clone-fallback]` в `claude-skills`.
|
||||
**Next action:** 1) Решить schema-вопрос в `factory.yaml`: как описать «component, который — поддиректория другой репы»? Варианты: (a) дроп `source` блока, явный `deps: [dot-common]` + `health_check` на наличие subdir + `setup_skill: setup-interns` (минимально invasive); (b) ввести новый `source.type: subdir-of`, ссылающийся на parent component; (c) `source.type: dir` с относительным path внутри другой checkout-репы. **Recommendation:** (a) — минимум schema-изменений, semantics уже выражены через `deps`.
|
||||
|
||||
2) Применить (a) к двум компонентам: `interns-mcp` и `projects-meta-mcp` — убрать их `source.type: git` блоки, добавить `deps: [dot-common]` (если не было), оставить `target` + `setup_skill` + `health_check`.
|
||||
|
||||
3) Bump `factory.yaml > version: 0.1.0` → `0.2.0` (MINOR — schema/contract change, breaks naive consumers если они уже что-то парсили).
|
||||
|
||||
4) Если есть проза в `.wiki/concepts/factory-bootstrap.md` про эти компоненты — синхронизировать (упомянуть, что MCP-серверы живут субдирами `.common`, ссылка на `[migrate-to-common-lib]`).
|
||||
|
||||
5) Smoke-test: пройтись по manifest'у глазами, проверить consistency. Когда L1 Go-бинарь реализуется (`[factory-l1-design]`), он будет правильно интерпретировать subdir-компоненты через deps-chain (clone .common → verify subdirs).
|
||||
|
||||
6) Commit `fix(factory.yaml): v0.2.0 — interns-mcp + projects-meta-mcp как subdirs of .common, не standalone репы`.
|
||||
|
||||
7) `tasks_close`.
|
||||
**Branch:** n/a
|
||||
**Status:** active
|
||||
**Where I stopped:** Starting implementation
|
||||
**Next action:** Edit factory.yaml — drop source blocks, bump version
|
||||
**Branch:** master
|
||||
<!-- created-by: OpeItcLoc03@DESKTOP-NSEF0UK / from: meeting-room / 2026-05-07T10:37:18.577Z -->
|
||||
|
||||
---
|
||||
|
||||
23
.tasks/factory-yaml-mcp-subdir-schema.md
Normal file
23
.tasks/factory-yaml-mcp-subdir-schema.md
Normal file
@@ -0,0 +1,23 @@
|
||||
# factory-yaml-mcp-subdir-schema
|
||||
|
||||
## Goal
|
||||
Fix `factory.yaml` v0.1.0 bug: `interns-mcp` and `projects-meta-mcp` declared as standalone git repos, but they're subdirectories of `.common` repo. When L1 Go binary tries `git clone` on these URLs it gets 404.
|
||||
|
||||
## Key files
|
||||
- `factory.yaml` — the manifest with the bug (lines 27-53)
|
||||
- `.wiki/concepts/factory-bootstrap.md` — wiki doc referencing these components
|
||||
|
||||
## Decisions log
|
||||
- 2026-05-07: Chose option (a) — drop `source` block for subdir components, rely on `deps: [dot-common]` for clone semantics. Minimal schema change, semantics already expressed through deps chain.
|
||||
|
||||
## Open questions
|
||||
- [ ] None remaining — option (a) selected
|
||||
|
||||
## Completed steps
|
||||
- [x] Task created, plan defined
|
||||
|
||||
## Notes
|
||||
- Parallel fix in `claude-skills`: `[setup-interns-clone-fallback]` — L2 skill fix
|
||||
- `projects-meta-mcp` standalone repo on gitea is archived
|
||||
- `interns-mcp` standalone repo never existed
|
||||
- Both live as subdirs under `OpeItcLoc03/common`
|
||||
Reference in New Issue
Block a user