docs(planning): duplication audit and consolidation contract - #1273
Draft
joepio wants to merge 2 commits into
Draft
docs(planning): duplication audit and consolidation contract#1273joepio wants to merge 2 commits into
joepio wants to merge 2 commits into
Conversation
Map duplicated logic across Rust, TypeScript, and Flutter, and classify what should stay dual-maintained versus what should merge. Links existing plans instead of restating them. Co-authored-by: joepmeindertsma <joepmeindertsma@gmail.com>
A cleanup is only allowed to land if characterization tests pin the old paths first, then scripts/consolidation-measure.py shows production lines in scope went down. Policy-splits (same shape, different CommitOpts) are called out so they cannot hide a behavior change. Co-authored-by: joepmeindertsma <joepmeindertsma@gmail.com>
3 tasks
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.
Related Issues
Planning-only; no issue closed.
Checklist
scripts/consolidation-measure.py --self-test)Summary
Adds a duplication audit and a consolidation contract: a change that claims to remove a copy is not done until behavior is pinned on the old code and production lines in the declared scope go down.
planning/duplication-and-consolidation.md— map of copiesplanning/consolidation-contract.md— kind (delete-duplicate / policy-split / bind-twins / extract), required sequence, gatesscripts/consolidation-measure.py— numeric gate (production non-blank must drop; largest file and public items must not grow). Tests and generated files are excluded. Unchanged scope fails on purpose.Highest-leverage copies from the audit: three commit-ingest paths, Loro merge written twice,
protocol.rs↔ws-v2.ts, ontology URLs in three places, datatype tags at different times, search/blobs in the server crate, 9883 vs 9885.