Skip to content

Сжать и канонизировать активное ядро#67

Open
konard wants to merge 2 commits into
netkeep80:mainfrom
konard:issue-65-b0e2f91ea39b
Open

Сжать и канонизировать активное ядро#67
konard wants to merge 2 commits into
netkeep80:mainfrom
konard:issue-65-b0e2f91ea39b

Conversation

@konard

@konard konard commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Сжатие и канонизация активного ядра

Fixes #65

Расширений нет: удалены устаревшие материалы, мёртвый код и дублирующие тестовые модули. Поведение актуальных инструментов не изменено — все 129 тестов сохранены (переехали в объединённые модули) и проходят.

Таблица артефактов (план = фактический результат)

Артефакт Текущая роль Проблема Действие
README.md, docs/theory/*, docs/specs/*, docs/CONTRIBUTING.md нормативное описание МТС оставить
tests/mtc_formulas.mtc единственный корневой fixture оставить
core/*, converters/* активные модули оставить
archive/ (26 md, 7119 строк) старые редакции той же теории («Черновик МТС», «Чистовой вариант», «Метатеории связей», archive/faq/*) архивный каталог с конкурирующими описаниями тех же понятий удалено (история сохранена в Git)
core/anum_parser.normalize_quaternary_anum обёртка parse+normalize мёртвый код, не используется нигде (CLI вызывает parse_anum_file + normalize_anum_form) удалено
core/anum_parser.SUPPORTED_FORMATS константа не используется удалено
core/mtc_reader.find_top_level_operator «первая позиция оператора» дублирует find_top_level_operators, использовался только собственным тестом удалено, тест переведён на find_top_level_operators
tests/test_issue57_docs.py, tests/test_issue61_abit_protocol_docs.py проверки документационной поверхности два модуля одной ответственности, привязанные к номерам issue объединеныtests/test_docs.py
tests/test_anum_parser.py, test_anum_string_vs_quaternary.py, test_anum_protocol_projection.py, test_anum_deserialization.py проверки практического ядра *.anum четыре модуля одной ответственности объединеныtests/test_anum.py
tests/test_anum_cli.py, test_converters.py, test_mtc_reader.py, test_root_library.py отдельные ответственности (CLI, кодек, reader, корневая библиотека) оставить
.gitkeep служебный файл черновика PR не нужен удалено

Ссылок на archive/ в активных документах и коде не было (проверено grep), локальные ссылки не повреждены. tests/test_docs.py теперь запрещает каталог archive наравне с legacy, old, drafts.

Метрики до и после

Количество файлов до: 98
Количество файлов после: 70

Строк Python до: 2995
Строк Python после: 2960

Строк Markdown до: 9801
Строк Markdown после: 2682

Количество тестов до: 129
Количество тестов после: 129

Создано новых файлов: 2 (tests/test_docs.py, tests/test_anum.py — объединения удалённых модулей, не новые подсистемы)
Удалено файлов: 30

Диффстат: 34 files changed, 270 insertions(+), 7440 deletions(-) — удалено значительно больше, чем добавлено.

Проверки

python -m pytest tests -q          # 129 passed
ruff check converters/ core/ tests/ --ignore E501,F401   # All checks passed!

BLOCKED: требуется решение владельца теории

  • docs/BEST-PRACTICES.md и docs/CI-CD-BEST-PRACTICES.md (493 строки) — общие методички по AI-разработке и CI/CD, они не описывают МТС и ссылаются только друг на друга; из README.md/CONTRIBUTING.md на них ссылок нет. Их роль частично пересекается с docs/CONTRIBUTING.md. Удалять ли их (или свести в CONTRIBUTING.md) — решение владельца, самостоятельно не принято.

konard added 2 commits July 20, 2026 13:49
Adding .gitkeep for PR creation (default mode).
This file will be removed when the task is complete.

Issue: netkeep80#65
@konard konard changed the title [WIP] Сжать и канонизировать активное ядро Сжать и канонизировать активное ядро Jul 20, 2026
@konard
konard marked this pull request as ready for review July 20, 2026 13:56
@konard

konard commented Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

Working session summary

All 7 CI checks pass. PR #67 is now ready for review: #67

Summary of changes:

  • Deleted archive/ (26 markdown files, ~7100 lines of old MTS redactions — history preserved in Git).
  • Deleted dead code: normalize_quaternary_anum, SUPPORTED_FORMATS, find_top_level_operator (unused single-caller wrapper).
  • Merged tests with duplicated responsibilities: 4 test_anum_* modules → test_anum.py; test_issue57_docs.py + test_issue61_abit_protocol_docs.pytest_docs.py. Test count preserved (129 → 129 passing).
  • Removed .gitkeep.
  • Diffstat: 34 files changed, 270 insertions(+), 7440 deletions(-) — deletions vastly exceed additions.
  • No new theoretical concepts, no new subsystems, no archive/legacy/old/deprecated folders introduced; tests/test_docs.py now forbids archive/ alongside the other legacy directories.
  • One BLOCKED: item flagged in PR description (fate of docs/BEST-PRACTICES.md / docs/CI-CD-BEST-PRACTICES.md) — left for the theory owner.

This summary was automatically extracted from the AI working session output.

@konard

konard commented Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

🤖 Solution Draft Log

This log file contains the complete execution trace of the AI solution draft process.

💰 Cost: $2.274121

📊 Context and tokens usage:

Claude Opus 4.8:

  • 67.4K / 1M (7%) input tokens, 12.2K / 128K (10%) output tokens

Total: (57 new + 53.8K cache writes + 1.4M cache reads) input tokens, 12.2K output tokens, $1.554037 cost

Claude Opus 4.7:

  • 70.8K / 1M (7%) input tokens, 478 / 128K (0%) output tokens

Total: (1 new + 70.8K cache writes) input tokens, 478 output tokens, $0.720085 cost

🤖 Models used:

  • Tool: Anthropic Claude Code
  • Requested: opus (claude-opus-4-8)
  • Thinking level: off (disabled)
  • Main model: Claude Opus 4.8 (claude-opus-4-8)
  • Additional models:
    • Claude Opus 4.7 (claude-opus-4-7)

📎 Log file uploaded as Gist (1065KB)


Now working session is ended, feel free to review and add any feedback on the solution draft.

@konard

konard commented Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

✅ Ready to merge

This pull request is now ready to be merged:

  • All CI checks have passed
  • No merge conflicts
  • No pending changes

Monitored by hive-mind with --auto-restart-until-mergeable flag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Сжать и канонизировать активное ядро

1 participant