Skip to content

docs(planning): duplication audit and consolidation contract - #1273

Draft
joepio wants to merge 2 commits into
developfrom
cursor/duplication-consolidation-audit-88f8
Draft

docs(planning): duplication audit and consolidation contract#1273
joepio wants to merge 2 commits into
developfrom
cursor/duplication-consolidation-audit-88f8

Conversation

@joepio

@joepio joepio commented Aug 15, 2026

Copy link
Copy Markdown
Member

Related Issues

Planning-only; no issue closed.

Checklist

  • Add changelog entry linking to issue, describe API changes
  • Add or update tests if needed (scripts/consolidation-measure.py --self-test)
  • Update docs if needed

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 copies
  • planning/consolidation-contract.md — kind (delete-duplicate / policy-split / bind-twins / extract), required sequence, gates
  • scripts/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.rsws-v2.ts, ontology URLs in three places, datatype tags at different times, search/blobs in the server crate, 9883 vs 9885.

Open in Web Open in Cursor 

cursoragent and others added 2 commits August 15, 2026 16:18
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>
@cursor cursor Bot changed the title docs(planning): duplication and consolidation audit docs(planning): duplication audit and consolidation contract Aug 15, 2026
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.

2 participants