4 Commits

Author SHA1 Message Date
Vadim Malanov
6fbc778c1f fix(ingest): flush Document before FK inserts; build fixes; shared-minio overlay
Some checks failed
CI / Backend (lint + tests + compose) (push) Has been cancelled
CI / Frontend (lint + type-check + build) (push) Has been cancelled
2026-07-08 22:33:01 +03:00
Vadim Malanov
79d5fa9fee chore(guardrail): report-only size check and var/ compatibility note
Add scripts/report_module_sizes.py - report-only LOC bands per layer
from the TeamHUB module-size guardrail (CONVENTIONS.md, module
contract p.6). Always exits 0: split-review stays a human decision.
Wire it into CI as a non-blocking step and into the AGENTS.md
baseline checks.

Document data/input + data/work as the deliberate compatibility
exception to the var/ rule of 18_REPO_LAYOUT_STANDARD.md in
docs/structure-map.md (compose mounts and APP_*_DIR depend on the
paths) and ignore var/ for new local runtime output.

Verified: script runs clean on the repo (159 files in scope, zero
flagged); ruff and compileall pass; adversarial review fixed two
classification bugs (frontend shell under frontend/src/app/,
app/api/security.py as infra helper).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-07 10:19:08 +03:00
Vadim Malanov
aa530524a3 build(docker): reliable apt mirror and correct build context
Some checks failed
CI / Backend (lint + tests + compose) (push) Has been cancelled
CI / Frontend (lint + type-check + build) (push) Has been cancelled
- The default deb.debian.org Cloudflare CDN throttled to ~150 kB/s from
  this network and repeatedly dropped the gcc-12/cpp-12 fetch, failing
  the image build twice. Switch apt to mirror.yandex.ru and add
  Acquire retry/timeout options so the system-dependency layer
  (OCRmyPDF, Tesseract rus+eng, Ghostscript, qpdf) builds reliably.
- Copy pyproject.toml, README.md, alembic.ini and the app/scripts
  packages before "pip install -e ." so hatchling's editable build can
  validate the readme and packages (previously failed with
  "Readme file does not exist: README.md").
- Drop README.md from .dockerignore so the build context includes it.
- Ignore local preview launch config (frontend/.claude, .claude/launch.json).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-14 13:42:25 +03:00
Vadim Malanov
7f72171572 chore: bootstrap repository with governance docs
Initialize git, add Apache-2.0 LICENSE, .gitattributes (LF line
endings), AGENTS.md (entry points, stack, discovery order, baseline
checks), RUNBOOK.md (dev boot, prod deploy with overlay, ingestion,
failures, rollback, scaling notes), .env.prod.example with rotated
credential placeholders, and dev-only warnings on .env.example.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-13 16:41:50 +03:00