Repository navigation
feat(merge): expose optional repo aligned with Core merge --repo - #15
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 2: align
sessionflow_mergewith Core main s additivemerge --repo(PR #58). Plugin-only; no Core, Store or Bridge schema change.Compatibility first: Core v1.5.0 (Plugin v1.3.0 baseline) has NO flag-level capability declaration — integration_info capabilities are just op names and schema_version stays 1 — so version strings cannot be trusted to detect this flag. The tool forwards
--repo=<value>safely (array argv, = form, before the -- separator); when an older core rejects it with argparseunrecognized arguments: --repo(exit 2, zero writes), the tool returns an actionable INCOMPATIBLE upgrade hint. The call is NOT merged andrepois never silently dropped. No repo argument -> byte-for-byte old argv.Covers: spaces / Windows / POSIX / CJK paths, dash-leading value, empty/blank/non-string/over-long/NUL repo, new vs reused WorkThread (core semantics: explicit only for new), repo_warning/repo_source pass-through, old-core rejection, --json before --.
Red: 9 new tests failed pre-fix. Green: 36/36 merge-argv, full suite 139/139. Mutation: dropping the repo flag turns 7 tests red. Real-core SYNTHETIC E2E (isolated HOME + temp db) confirmed repo_source=explicit for a new thread and =existing (repo_root unchanged) when reusing. No real user index or home modified.