Repository navigation
fix(pull): полный pull записывает хеш-память своей базы (#53) - #343
Conversation
- bind change-detection snapshots to their source and infobase - commit staged dump hashes with durable publication recovery - cover identity, cancellation and dump-to-build regressions
- reject dump targets containing canonical workPath state - scan selected source roots while retaining child exclusions - cover aliases, dump-to-build stability and user edits
- merge current upstream master and replace the unsafe publication-intent protocol - scope Designer hashes by named infobase and bind snapshots without credentials or executor choice - prepare staging hashes and record them only after successful full publication for every exporter - preserve dump output on memory errors and restrict workPath containment checks to full pulls - keep EDT export caches shared and add publication, isolation and CLI regression guards - reconcile product rules, architecture notes and runner guidance with the implementation
- refresh source binding after publication can replace a symlink without rescanning staged bytes - normalize whitespace around File connection keys before runtime and snapshot use - distinguish native canonical path names without lock-specific case folding or lossy UTF-8 - guard source symlinks, relative connection spelling and exact path bindings with regressions
- Include the Windows partial-load file ownership fix from #334. - Verify the merged tree with 1652 passing tests and independent reviews.
- Narrow snapshot binding to identity and its seven checks. - Relocate partial hash guarantees and evidence without closing #214 gaps. - Preserve the reintroduction guard in arc42 and validate the rule registry.
- Preserve detached client ownership and updated cancellation probes from master. - Validate full pull snapshots with the complete test suite and independent reviews.
- storage_path returns None for memory-less contexts, so no code can reach the old shared file without handling it - bindings use the stable YAML purpose name and case-insensitive server addresses; address built in config, not change_detection - foreign memory is a typed ChangeDetectionError::ForeignMemory naming both exits: full pull or push --full - publish_full_dump rechecks target, workPath and cancellation before hashing staging; debug log restored - loader File= normalization reuses platform::connection::declared_parameter - guard a_full_pull_records_the_staged_tree_it_publishes; test for the workPath recheck; root-safe staging-scan test - rules, CAPABILITIES, CONFIGURATION, DEEP_DIVE, SKILL, site and arc42 aligned; upgrade note on unmigrated memory Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GBuAmsnz6pUay4rcYs4V4U
…eview notes - publish_full_dump rechecks target and workPath again after hashing staging - server and infobase names in the binding are lowercased beyond ASCII - rule keeps "loading old sources does not repair a failed pull"; CAPABILITIES names the tools.extensions exception with #214 - root-skipped staging-scan test says why it skipped; persists_snapshot documented as storage_path().is_some() Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GBuAmsnz6pUay4rcYs4V4U
- move the #302 root-selection obligation out of the on-demand analysis rule into its own rule with its own check Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GBuAmsnz6pUay4rcYs4V4U
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 🧰 Additional context used📚 Code guidelines (6)No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (40)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe change scopes Designer source hashes to named infobases and source sets. Full Designer pulls prepare hashes from staging and record them after publication. Full pulls also reject targets containing ChangesDesigner Hash Memory and Full Pulls
Priority: ➖ Normal Estimated code review effort: 4 (Complex) | ~45 minutes Change: Bug fix · Severity of issue fixed: Medium Sequence Diagram(s)sequenceDiagram
participant DumpProvider
participant publish_full_dump
participant ChangeDetectionAnalyzer
participant TargetDirectory
participant HashStorage
DumpProvider->>publish_full_dump: Provide staged tree
publish_full_dump->>ChangeDetectionAnalyzer: Prepare snapshot from staging
publish_full_dump->>TargetDirectory: Publish staged tree
publish_full_dump->>ChangeDetectionAnalyzer: Commit snapshot after publication
ChangeDetectionAnalyzer->>HashStorage: Store snapshot with identity
Suggested reviewers: Merge Risk: ⚪ Minimal · up to The change scopes Designer hash memory to a named infobase and source set, and a successful full pull now records the baseline for the next unchanged push. No concrete merge-blocking risk was identified in the supplied evidence. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to Base-specific snapshot ownership and guarded publication reduce wrong-target reuse. No introduced security vulnerability was established in the examined paths, but concurrency enforcement and broader runtime coverage remain incomplete. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 62.70% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 126 functions across 20 files. (20 skipped: 20 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…имени (#351) * fix(change-detection): корень набора с именем служебного каталога анализируется (#302) - тесты: набор с корнем `build` и порождённая копия EDT `workPath/designer/build` анализируются через SourceSetsService, правка в корне видна, а правка в служебном `build` внутри набора — нет - INV.USE-CASES.CHANGES-ARE-DETECTED-ON-DEMAND: служебные и порождённые каталоги пропускаются только внутри набора, корень сканируется всегда; новые тесты в check - тест сканера на выбранный корень перенесён после импортов модуля тестов - сама правка обхода (`depth() == 0` в filter_entry) уже в master с #343 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GaCotKhgD8MYAPKjaPPWKh * spec(rules): корень набора держит одно правило - CHANGES-ARE-DETECTED-ON-DEMAND ссылается на A-SELECTED-ROOT-IS-SCANNED-WHATEVER-ITS-NAME вместо повтора - сквозные тесты корня с именем build и копии EDT перенесены в check правила о корне Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GaCotKhgD8MYAPKjaPPWKh * test(change_detection): pin the generated designer root before the scan - replace the self-fulfilling file assertion with a check that the EDT set named build maps to workPath/designer/build Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GaCotKhgD8MYAPKjaPPWKh --------- Co-authored-by: Claude <noreply@anthropic.com>
Closes #53. Доводит до слияния #109 (@korolevpavel): его коммиты сохранены с авторством, сверху — правки по ревью мейнтейнера.
Что делает #109
pullв форматеDESIGNER(Конфигуратор,ibcmd, агент) записывает хеши опубликованного дерева, и следующийpushбез правок пропускает загрузку.workPath/infobases/<имя>/hashes/<набор>.redb, с привязкой к адресу без учётных данных, каталогу и назначению набора. Чужая память — отказ без запуска исполнителя; база по строке соединения памяти не получает; кеш EDT общий.pullагента всегда выгружает дерево; инкрементальный по-прежнему пропускается по поколению.build,target,tmpне анализируется #302); полныйpullотказывает, если цель содержитworkPath.Правки поверх #109
SourceSetContext::storage_pathвозвращаетOption: у контекста без памяти пути к хранилищу нет, общий файл нельзя открыть, не обработав этот случай.SourceSetPurpose::as_str) вместоDebug; имена сервера и базы на кластере — без учёта регистра.config(AppConfig::infobase_memory_address),change_detectionкplatformне обращается.ChangeDetectionError::ForeignMemory; отказ называет оба выхода:pull --mode fullиpush --full.publish_full_dumpпроверяет цель,workPathи отмену до хеширования staging и ещё раз перед заменой каталога.File=общейplatform::connection::declared_parameter.a_full_pull_records_the_staged_tree_it_publishes, тест перепроверкиworkPath; тест сchmod 000пропускается под root.tools.extensions(feat(memory): память по базе под workPath/infobases/<имя>/ — поколение, хеши, файл версий #214) и то, что первыйpushпосле обновления загружает всё дерево: старые общие хеши не мигрируются.Проверки
cargo test --locked --no-fail-fast: 1667 passed, 2 ignored, 1 failed —platform::git::tests::an_unreadable_subdirectory_is_unknown_not_clean, не из этого PR: падает только под root (контейнер проверки).cargo fmt --check,cargo clippy --all-targets -D warnings— чисто.spec/rules, мутации; повторный проход по правкам.Без живого прогона 1С; сквозные сценарии
tests/cli_pull_memory.rsтолько Unix. Поколение агента, файл версий и слияние по объектам остаются в #214/#215/#217.🤖 Generated with Claude Code
https://claude.ai/code/session_01GBuAmsnz6pUay4rcYs4V4U
Generated by Claude Code
Summary by CodeRabbit