//! Node identity keys.
//!
//! Every node has a stable, unique `key`. Notes are identified by their
//! relative file path (`note:<path>`), while all other nodes (entities,
//! tags, directories) are identified by their label (`node:<label>`).
//!
//! These helpers centralise the key format so that the schema migration,
//! the graph builder and the demo seed all agree on it.
/// Identity key for a note node, derived from its relative file path.
/// Identity key for a non-note node (entity, tag, directory), derived
/// from its label.