Bound semantic worker storage and add verified evidence closeout
This commit is contained in:
@@ -275,3 +275,24 @@ provenance и квитанции; raw в интерфейсе — геометр
|
||||
что продуктовые карты и ручные правки не изменились. Наличие лимита датасетов в
|
||||
одном процессе не означает общей квоты всех исследовательских скриптов.
|
||||
Подробные действующие границы: `docs/STORAGE_RETENTION.md`, раздел аудита 07.11.2026.
|
||||
|
||||
|
||||
## Исполняемый Worker-closeout — 07.11.2026
|
||||
|
||||
Для новых полносценовых заданий `infrastructure_preparer` закрывает данные после
|
||||
остановки собственных контейнеров и подтверждения Core: точный ZIP, SHA всех
|
||||
членов, журнал намерений удаления, затем только собственные неизменившиеся
|
||||
промежуточные файлы. Архив не является scratch. Лимиты профиля: 24 GiB на задание,
|
||||
48 GiB рабочие задания, 128 GiB архив, резерв 40 GiB; переполнение блокирует новый
|
||||
запуск, не удаляет карту или rollback. Незавершённая архивация сохраняет marker и
|
||||
восстанавливается после перезапуска. Старый job без retention-ownership автоматически
|
||||
не удаляется. Learning Store отдельно ограничивает рабочие данные 20 GiB и
|
||||
именованные исследовательские данные 8 GiB, резерв 12 GiB. Внешний исследовательский
|
||||
скрипт по-прежнему обязан соблюдать собственный лимит; это не квота файловой системы.
|
||||
|
||||
Закрытые исторические snapshots можно дедуплицировать по точному плану только при
|
||||
остановленных writers. Сохраняются все пути, байты, права и защищённый CAS-якорь;
|
||||
неизменяемые aliases нельзя открывать для записи. Восстановление для новой работы —
|
||||
независимая копия в новый каталог. Отчёт текущей очистки, индексы и восстановления:
|
||||
`outputs/storage-closeout-20261107/REPORT.md`. Эти операции не являются обучением,
|
||||
приёмкой качества разметки или новым разрешением на управление питанием.
|
||||
|
||||
+57
-10
@@ -344,17 +344,64 @@ by age or remove unknown files. The source-package helper remains source-only;
|
||||
its caller must remove its own transferred staging after remote identity checks.
|
||||
This is an engineering closeout obligation, not an automatic whole-disk quota.
|
||||
|
||||
Worker has different stores with different ownership: learning `datasets`,
|
||||
`inbox`, `sources`, `work`; infrastructure `jobs` and generated source caches;
|
||||
and historical qualification directories. The learning Store's 20 GiB admission
|
||||
quota/12 GiB reserve does not constrain arbitrary research writers. Infrastructure
|
||||
has initial free-space and time checks but currently no aggregate output retention.
|
||||
Container removal does not remove the data mounts. Do not call those stores
|
||||
bounded or erase them wholesale: current maps, shared observations, accepted
|
||||
models/datasets, pending work and rollback require explicit preservation.
|
||||
Worker stores remain separate: learning `datasets`, `inbox`, `sources`, `work`;
|
||||
infrastructure `jobs` and generated source caches; historical qualifications and
|
||||
explicitly pinned archives. Container removal never removes its data mounts.
|
||||
|
||||
The November closeout adds bounded admission and terminal job handling:
|
||||
|
||||
- Learning Store: 20 GiB operational data, 8 GiB explicitly named research roots
|
||||
(`experiments`, `agent-reviews`, `audits`, `archives`, `reviews`, `verification`),
|
||||
12 GiB free-space reserve. Unknown roots count as operational data. Both budgets
|
||||
are checked; exceeding either refuses new data. This is application admission,
|
||||
not a filesystem quota for arbitrary external research scripts.
|
||||
- New infrastructure jobs: 24 GiB per job, 48 GiB aggregate working directory,
|
||||
40 GiB free-space reserve. The coordinator checks output/free space at heartbeat
|
||||
intervals; a writer can overshoot between checks. These are not OS hard quotas.
|
||||
- The separate terminal-job archive has a 128 GiB admission limit. A new job
|
||||
reserves room for its maximum output before starting. Existing results are
|
||||
never silently evicted to admit new work. A full archive blocks admission and
|
||||
requires an explicit retention decision.
|
||||
- `simulation/ai-polygon/evidence_closeout.py` runs only after owned producers
|
||||
stop and Core confirms delivery/rejection and lease release. It creates an
|
||||
archive of the exact inventory, verifies every SHA-256 and member, then retires
|
||||
only unchanged non-kept files through a durable intent journal. Root map,
|
||||
publication request/failure and an archive pointer remain in the job directory.
|
||||
A pending closeout retains its durable marker across coordinator restarts.
|
||||
Pins, links, changed files, invalid journal records and insufficient reserve
|
||||
fail closed. A published ZIP is recoverable even if the following state commit
|
||||
was interrupted. Archives are persistent data, not another disposable cache.
|
||||
- Previously created jobs do not acquire cleanup authority retroactively. Failed
|
||||
learning work and legacy experiments require their own explicit inventory,
|
||||
stopped-owner proof, archival check and receipt. Accepted datasets/models,
|
||||
shared sources, pending edits and required rollback remain protected.
|
||||
|
||||
`scripts/compact_closed_evidence.py` is a separate maintenance tool for explicitly
|
||||
closed immutable historical snapshots. It groups only eligible NPZ/PNG/JPG files
|
||||
by full bytes and identical permissions, anchors one NTFS inode in a pinned store
|
||||
and keeps every original path as a read-only hardlink. It changes neither logical
|
||||
content nor reference paths; logical byte totals and application quotas therefore
|
||||
remain unchanged. It refuses reparse paths, foreign links, alternate streams,
|
||||
changed files and cross-volume stores. Read-only is an accidental-write guard,
|
||||
not a security boundary: owners must not clear it and edit a shared snapshot.
|
||||
The full plan retains original identity/mtime/mode and a per-alias receipt.
|
||||
Recovery creates a NEW independent file; it never unlocks the shared inode.
|
||||
Windows restoration verifies owner/group/ACEs/protection, allowing only the
|
||||
recomputed `SE_DACL_AUTO_INHERITED` bookkeeping bit. CAS aliases themselves keep
|
||||
the original raw descriptor exactly. Keep the canonical store pinned outside
|
||||
all job/scratch cleanup roots. This same-volume optimization is optional;
|
||||
ordinary copies on another filesystem retain the data but may use more space.
|
||||
|
||||
ZIP/JSON datasets and results remain portable. Storage paths and byte limits live
|
||||
in the worker profile. Coordinators are immutable source releases using the
|
||||
existing Windows Python/Scheduled Tasks; heavyweight inference runs in pinned
|
||||
Docker images with external persistent data. Runtime-only patch activation
|
||||
preserves credentials, task settings, network and the previous release for rollback.
|
||||
|
||||
The audit/cleanup index is `outputs/semantic-storage-audit-20261107/REPORT.md`.
|
||||
The 19 October content-addressed experiment archive remains protected; November
|
||||
cleanup retires only extra Mac copies verified against that archive, with a
|
||||
one-file restoration helper. No Worker datasets or qualifications are deleted
|
||||
by this local cleanup.
|
||||
one-file restoration helper. That local-only audit did not delete Worker datasets or qualifications. The
|
||||
subsequent explicit closeout is indexed separately at
|
||||
`outputs/storage-closeout-20261107/REPORT.md`; do not add the two cleanup totals
|
||||
without checking their distinct manifests.
|
||||
|
||||
Reference in New Issue
Block a user