# testdouble/suture

🏥 A Ruby gem that helps you refactor your legacy code

Repository: https://github.com/testdouble/suture
Canonical: https://ross.abutalabs.com/products/testdouble-suture
Language: Ruby
License: MIT
License Family: permissive
Last push: 2023-09-29T00:37:51+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3667, "days_push": 1070, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1409, forks 29 (observed 2026-08-28T04:04:38.744618+00:00)

## What it is
Suture is a Ruby gem that makes it safer to refactor or fully reimplement poorly-understood legacy code. It supports the whole refactor lifecycle by recording calls to a 'seam' and verifying that new implementations match the old behavior in development, staging, and production.

## Use cases
- safely refactor legacy ruby code
- reimplement a code path without breaking behavior
- record and replay production calls to verify a rewrite
- characterization testing for untested code
- create seams around code I don't understand
- verify new implementation matches old one in production

## When to choose
- you need to change or rewrite critical Ruby code with no tests
- you want recorded real-world inputs to validate a reimplementation
- you're doing incremental strangler-style refactors in Ruby

## When to avoid
- your codebase is well-tested and easy to change directly
- you work outside Ruby
- you need active development or new features

## Facets
- artifact type: library
- maturity: maintenance
- function: testing, developer-tools
- domain: developer-tools, programming-languages, testing
- platform: ruby, jvm
- tags: refactoring, characterization-testing, seam, legacy-code, verification-testing, ruby-gem

## Member repositories
- testdouble/suture (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:38.744618+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:38:33.713883+00:00, confidence not recorded.
  - readme: https://github.com/testdouble/suture (fetched 2026-08-28T04:04:38.744618+00:00, sha 4be5f741f656)
- Data as of 2026-08-30T08:39:29.467469+00:00.
