This policy covers cross-component contract compatibility for:
- hyperedge member roles
- analysis result keys
- metadata keys consumed by analyzers/renderers/MCP tools
Canonical names are defined in homer-core/src/contracts.rs and are the only
names writers should emit.
Legacy read aliases remain supported during the current migration window:
- Imports:
source/target(legacy) map toimporter/imported. - Documents:
entity/subject(legacy) map tocode_entity. - Contributor concentration:
top_contributor_pct(legacy) maps totop_contributor_share. - Document metadata:
type(legacy) maps todoc_typewhere needed.
Legacy aliases may be removed only when all of the following are true:
homer-coreschema has advanced by at least one major migration from the canonical-contract baseline (schema version2).- Contract regression tests pass with legacy fixtures removed.
- Release notes include explicit migration guidance and fallback steps.
Until those criteria are met, compatibility read paths are required and treated as part of the public behavior contract.