Forge Intelligence

Prompt 14 — Library deduplicator and ontology-patch proposer

Compare each candidate against the target library and propose, but do not apply, an ontology patch.

Updated

Inputs

VALIDATED_CANDIDATES: {{VALIDATED_CANDIDATES_JSON}}
TARGET_LIBRARY_INDEX: {{TARGET_LIBRARY_INDEX_JSON}}
ONTOLOGY_GRAPH: {{ONTOLOGY_GRAPH_JSON}}
HISTORIAN_REFERENCE_INDEX: {{HISTORIAN_REFERENCE_INDEX_OR_NULL}}
MODE: {{MODE}}

Task

Compare each candidate against the target library and propose, but do not apply, an ontology patch.

Possible decisions:

  • add_distinct;
  • alias_existing;
  • equivalent_to_existing;
  • broader_than_existing;
  • narrower_than_existing;
  • overlaps_existing;
  • merge_candidates;
  • split_candidate;
  • new_version;
  • deprecate_candidate;
  • reject_duplicate;
  • inconclusive.

Use formal equivalence where available. Otherwise compare signatures, definitions, examples, counterexamples, operational behavior, dependency neighborhoods, and solver utility.

Preserve separate labels:

  • new_to_agent;
  • new_to_current_library;
  • known_human_equivalent;
  • potentially_unmatched_reference.

Do not use new_to_humanity. That label requires external literature review and expert adjudication outside this prompt.

Return:

  • candidate-by-candidate comparison;
  • confidence and evidence;
  • proposed nodes and edges;
  • migration/alias plan;
  • collision and cycle checks;
  • information-loss risks;
  • unresolved human-review items. Return JSON matching schemas/ontology-patch.schema.json with mode: deduplication.