16 Commits
Author SHA1 Message Date
Artem Filin 85e7ae3acf test: assert canonical prefix output is stored without semantic promotion 2026-10-21 12:05:26 -07:00
Artem Filin 6cef86aece feat: persist prefix-normalized designation in staging ruleset 3.1 2026-10-21 12:05:24 -07:00
Artem Filin b56ad0681d test: verify type-hint coverage metrics 2026-10-21 12:02:26 -07:00
Artem Filin 9c964922a3 report: expose unknown bearing type hints explicitly 2026-10-21 12:02:23 -07:00
Artem Filin 59c2775c40 test: cover numeric prefix in parentheses and ambiguous assemblies 2026-10-21 12:00:14 -07:00
Artem Filin e9d2ae7dc9 fix: recognize parenthesized numeric bearing prefixes 2026-10-21 12:00:12 -07:00
Artem Filin 3a06e1a990 test(everest): verify type-first family parsing and 74-brand staging 2026-10-21 04:25:53 -07:00
Artem Filin 992eb77b6b feat(everest): add provenance-safe type-first normalization of full nomenclature CSV 2026-10-21 04:24:55 -07:00
Claude fa9183413a Fix CI: black formatting, unused imports, ruff E501 per-file ignore
- Run black on all 5 encyclopedia files (reformatted implicit string
  concatenation style)
- Remove unused imports: os, sys, typing.Any, TA_LEFT,
  getSampleStyleSheet, TableOfContents from generate_encyclopedia_pdf.py
  and os from enc_chapters_7_8.py
- Add ruff per-file-ignores for enc_chapters_*.py to suppress E501 on
  intentionally long paragraph text strings (data content, not code)

https://claude.ai/code/session_01XK3QukksvwKVVY4GuHjauJ
2026-05-21 13:36:43 +00:00
Claude 05a82e39b0 Add bearing encyclopedia PDF generator with 10-chapter content
Generates out/encyclopedia_bearings.pdf — a complete 37-page
Russian-language reference book on bearings via ReportLab:

- skills/encyclopedia-pdf/SKILL.md — skill definition and entry point
- tools/scripts/generate_encyclopedia_pdf.py — ReportLab PDF assembler
  with DejaVuSans Cyrillic font, styled tables, TOC, page headers/footers
- tools/scripts/enc_chapters_1_3.py — Introduction, Classification,
  GOST/ISO/DIN designation systems with reference tables
- tools/scripts/enc_chapters_4_6.py — Precision classes/clearances,
  Dimensions/load ratings (series 6200 table), Materials/lubrication
- tools/scripts/enc_chapters_7_8.py — Analogs/interchangeability
  (samples from nomenclature.csv), Manufacturers/brands (60 entries
  from brands.csv loaded at runtime)
- tools/scripts/enc_chapters_9_10.py — Installation/maintenance/
  failure diagnosis, Reference tables (tolerances, fits, TN VED codes)

Appendix A: 200-row catalog fragment from data/nomenclature.csv.

https://claude.ai/code/session_01XK3QukksvwKVVY4GuHjauJ
2026-05-21 13:33:50 +00:00
Claude f64a59e483 Apply ruff auto-fixes to remaining tools/scripts files
Import sorting and other auto-fixable linting issues corrected by ruff --fix.

https://claude.ai/code/session_017v9w8FTSjT5646A2W98DPV
2026-05-18 15:26:32 +00:00
Claude ca7d1a0865 Fix ruff and black linting errors in tools/scripts/
- build_bearings_seed.py: remove unused variable headers (F841);
  rename uppercase locals D_mm/B_mm/D/B/C/C0 to lowercase (N806)
- pdf_extractor_optimized.py: remove trailing whitespace in SQL strings (W291)

https://claude.ai/code/session_017v9w8FTSjT5646A2W98DPV
2026-05-18 15:25:52 +00:00
Claude 2a35f080b5 Fix pre-existing CI failures: wrong paths, broken config validation, and bad test imports
- articles_ci.yml: fix script path (scripts/ → tools/scripts/)
- deduplicate_nomenclature.py, validate_articles_structure.py: fix parents[1] → parents[2]
  so REPO_ROOT resolves to the repo root instead of tools/
- validate/run_validations.py: fix schema_dir to use actual repo root (parents[3]) / data/schemas/
- src/config.py: fix _validate_app_config — all section keys were passed with a dotted
  prefix (e.g. "paths.inbox") as dict lookup keys, causing validation to always fail;
  strip prefix so only the leaf key is used for lookup
- tests/conftest.py: add tools/ to sys.path so scripts.* imports work; fix schemas_dir
  fixture to point to data/schemas/
- tests/test_schemas.py: use absolute path to data/schemas/ instead of relative "schemas"
- tests/test_schema_validation.py: fix schemas_dir to data/schemas/ and update expected
  schema path mappings
- tests/test_processor.py: add missing dimension_patterns, text_normalization to parsing_rules
  fixture; add logging.max_size_mb and logging.backup_count to app.yaml fixture
- tests/test_knowledge_base_builder.py: fix sys.path to point to tools/scripts/ not scripts/
- tests/test_table_scraper.py: fix sources path to src/sources/ not sources/
- CLAUDE.md: clarify schemas location, unique key distinction, coverage scope

https://claude.ai/code/session_017v9w8FTSjT5646A2W98DPV
2026-05-18 15:21:20 +00:00
ArtemFilin1990 7748c89f96 feat: add seed-database workflow with D1-compatible schema
- .github/workflows/seed-database.yml  — GitHub Actions workflow
  Триггеры: push на main (data/**) + workflow_dispatch (dry_run, reset_db)
  Этапы: checkout → build SQL → apply schema → execute seed → verify counts

- tools/scripts/build_bearings_seed.py — генератор seed SQL
  Читает: brands.csv, import_analogs.csv, nomenclature.csv, master_catalog.csv
  Выдаёт: seed/*.sql (батчи 500/1000 строк) + seed/manifest.json

- data/schema/d1_schema.sql — SQLite-совместимая схема для D1
  Таблицы: bearings, manufacturers, analogs, nomenclature, search_history
  Фиксы: SERIAL→INTEGER PRIMARY KEY AUTOINCREMENT, TIMESTAMP→TEXT, DECIMAL→REAL

Secrets required: CLOUDFLARE_API_TOKEN, CLOUDFLARE_ACCOUNT_ID
2026-03-26 14:46:30 +00:00
anthropic-code-agent[bot]andArtemFilin1990 0a42fa910c Fix incomplete script path corrections across repository
- Updated all CI/CD workflow files (.github/workflows/) to use tools/scripts/ paths
- Updated CONTRIBUTING.md and all documentation in docs/ directory
- Updated data/inbox/inbox/ documentation files
- Updated tools/scripts/generate_sources_table.py self-references
- Fixed pr-checks.yml linting paths (black, ruff, mypy, coverage)
- All validations passing with new paths

Co-authored-by: ArtemFilin1990 <221041513+ArtemFilin1990@users.noreply.github.com>
2026-02-05 21:17:37 +00:00
copilot-swe-agent[bot]andArtemFilin1990 fd20fce7fe refactor: migrate files to new directory structure (docs, data, src, tools, config)
Co-authored-by: ArtemFilin1990 <221041513+ArtemFilin1990@users.noreply.github.com>
2026-02-05 08:56:28 +00:00