LEDGERMACHINE

LM-COMPONENT-002

Find visual drift from shared components

A local component’s visual signature adds or removes values compared with the shared owner of that role.

What Ledgermachine reports

A local component differs from the shared version

Decision, not automatic repair

Bring it back to the shared component or record why this context needs a maintained variant.

Source example

What this finding can look like

The exact candidate comes from the project’s own tokens and repeated values. This example shows the shape of the issue, not a universal replacement.

Flagged source
function LocalButton() {
  return <button className="px-[14px] rounded-[8px]" />;
}
One possible resolution
import { Button } from "@/components/Button";

<Button size="compact" />

Resolution workflow

Fix the source without erasing intent

  1. Inspect

    Review every reported occurrence and the established candidates Ledgermachine found in the same project.

  2. Decide

    Bring it back to the shared component or record why this context needs a maintained variant.

  3. Verify

    Make the change in your editor or coding agent, then rescan. Ledgermachine stays read-only and records whether the finding cleared.

Run it on your source

See the evidence behind this rule.

Open a folder locally, inspect the exact occurrences, and decide whether to repair or preserve the difference.

Open Ledgermachine