Files
admin/.tasks/NEXT_SESSION.md

50 lines
5.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
_last_updated_: 2026-05-25T13:00:00+03:00
session_id: 2026-05-25-es-windows-to-books-vds
---
# Next session handoff
## Recent commits
- `tasks(iis-migration-to-ruvds): 🟢 closed Phase 1 per user decision` (`2eba1c5c`) — close.
- `tasks(NEXT_SESSION): refresh handoff after ES migration commit` (`d746d3bd`)
- `tasks(migrate-elasticsearch-to-books-vds): 🟢 closed — 3 indices Windows→books VDS` (`3246dabb`)
- `tasks(NEXT_SESSION): finalize handoff at session close` (`97757b89`)
- `tasks(books-vds-stacks-to-portainer): close 🟢 — 6 stacks migrated SSH-compose → Portainer` (`86c44c3d`)
## Open треки
| Трек | Готовность | Entry-point |
|---|---|---|
| `stateful-split-volume-copy` ⚪ | not started; lean playbook готов | `.tasks/stateful-split-volume-copy.md` |
| `infra-inventory` ⚪ | ready, books VDS factsheet свежий (ES + 6 Portainer стэков) — момент удачный для ingest | `.tasks/infra-inventory.md` |
| `books-bookva-user-whitelist-gathering` ⚪ | ready, long-lead gathering (email-based) | `.tasks/books-bookva-user-whitelist-gathering.md` |
| `books-vds-bookva-bootstrap` 🔵 | blocked on tenant-split Phase 4 | `.tasks/books-vds-bookva-bootstrap.md` |
| `books-dns-cutover-bookva` 🔵 | blocked on books-vds-bookva-bootstrap | `.tasks/books-dns-cutover-bookva.md` |
| `books-stateful-split-execution` 🔵 | blocked on dev-prep + per-tenant-backup-and-observability в victor/books | `.tasks/STATUS.md` |
## Спроси user'а
- **«потом миграции буут»** — user в этой сессии анонсировал ещё migration round. Какие конкретно? Возможные пункты исходя из контекста — другие сервисы с windows host → books VDS / vds-kzntsv (mssql? minio? ozon-seller-api-gateway?). Ask before starting.
- **Backup re-fire post-ES-migration** — статус? (был triggered в 12:48 после ES migration close, polling task bt`btlfijyi6` ожидался). Verify через ntfy/email + log tail `/var/log/books-vds-backup/2026-05-25.log`. Если success → cron 06:00 auto-run завтра не нужен ad-hoc.
- **iis-migration descoped items** — нет tracker tasks для 14 plan-to-migrate hostnames, source IIS decommission, LE renewal до 2026-07-22, cleanup, wiki concept updates. Создать ⚪ tasks или оставить в Closure note? (User в этой сессии явно отказался от 3-way split.)
## Не делать (preemptive guards)
- **Не plод follow-up tasks для iis-migration descoped items** без явного user request — user в этой сессии отверг 3-way split, всё в Closure note таски.
- **Не trigger reg.ru DNS swap для 14 plan-to-migrate hostnames** — нет API key в pass, ручная операция user'а.
- **Не decommission source Windows IIS** (port 8089 + traefik routes) — 16 hostnames всё ещё указывают на 94.19.247.14, decommission = downtime для них.
- **Не выключать Windows ES** (`docker stop elasticsearch` на windows host) — source держится per user request как rollback после ES migration.
- **Не редактировать `/opt/books/<svc>/config/default.json`** напрямую без `cp <file>.bak-<date>` перед — bind-mounted, change live для приложения.
- **Не push без grant в next session** — auto-push grant был session-only (Rule 4). В этой сессии user разово grant'нул на `пуш` (single commit) — следующий push потребует нового grant.
- **Не trust `https://elasticsearch.kzntsv.site/`** без basicAuth — endpoint behind traefik middleware. Pwd живёт в `/opt/books/api/config/default.json` (НЕ в pass entry).
## Memory updates за сессию
- **Учить:** на closure-time всегда run актуальный DNS probe для migration tasks с DNS scope — task file может lag user'ского background swap'а (в этой сессии user silently swap'нул 5 пар hostnames между `2026-05-24` cutover и `2026-05-25` closure, task file showed 2 swapped, real was 9).
- **Учить:** ES kreknin daily snapshot `daily-<date>` — script `set -e` fails если `daily-<date>` уже exists в repo (idempotent НЕ). Re-fire backup в тот же день → `DELETE _snapshot/kreknin/daily-<date>?pretty` сначала.
- **Учить:** user pattern для «закрой хорошо» = **finish properly, descope cleanly в Closure note** (НЕ create follow-up tasks). Несколько раз: ES migration close + iis-migration close — same shape. Closure notes capture what's NOT done без proliferating board state.
- **Reference:** [[../.tasks/iis-migration-to-ruvds]] § Closure note — descope details для 5 categories of remaining work + rollback recipe.
- **Reference:** [[../.tasks/migrate-elasticsearch-to-books-vds]] § Closure note — rollback recipe.