Skip to content
Developer tooling

There Is No Single Source of Truth for Project Metadata

An agent skill for Codex and Claude Code that finds project metadata drift across local files and aligns those files only when asked.

Get fix-project-metadata-mismatches on npm
2 min read0 comments
Website

Several metadata files compared field by field with one version mismatch reported

Why it was needed

A project's name, version, links, and compatibility claims are repeated across manifests, lockfiles, documentation, deployment configuration, and catalogs, and those copies drift apart. Users then follow broken links, run the wrong install command, or read conflicting compatibility claims. Finding and reconciling every copy by hand is slow and easy to get wrong.

Each metadata field has its own authoritative source, so no single file can be treated as the truth for everything. A human-facing description must match what the project actually does, not just what the manifest says. Permission to synchronize local files does not extend to publishing or changing remote metadata.

How it is built

A source precedence model names the authoritative file for each field, and a deterministic auditor compares every copy against that authority. After any reconciliation, the repository's own validation runs, and the skill itself is distributed through npm.

Define source authority field by field. Names, versions, and URLs each have a different natural owner, so one universal source of truth would overwrite correct values with wrong ones. The cost is a more detailed rule set.

Report ambiguity instead of guessing. When sources disagree and none is clearly authoritative, overwriting would hide the conflict. Leaving the value for manual resolution is slower but keeps the repository honest.

Validate every downstream consumer after edits. A metadata change can break anything that reads the field, so the repository's own checks run after each reconciliation before the change is trusted.

The key decision: Define source authority field by field.

What changed

Encoded the canonical-source rules for each metadata field. Built metadata drift detection. Designed scoped local synchronization and validation reporting. Added safe installation and package tests.

Agents can identify conflicting names, versions, and URLs across a project. Agents repair only the local copies they are authorized to change. Unknown values are preserved for manual resolution instead of being overwritten. Remaining remote actions are reported separately from completed local work.

My role: Agent workflow design and automation engineering. Scope: Agent workflow, validation automation, and packaging.

Working through a similar challenge?

Share your context, constraints, and timeline to start a focused conversation.