feat(app): ingest 별칭 생성 hook (flag off 기본, fail-soft)

This commit is contained in:
2026-05-30 03:03:09 +00:00
parent bddcd53688
commit cde4d75f6b
3 changed files with 47 additions and 4 deletions

View File

@@ -109,10 +109,10 @@ fn first_ingest_bumps_corpus_revision() {
let env = TestEnv::lexical_only();
let store_before = kebab_store_sqlite::SqliteStore::open(&env.config).unwrap();
store_before.run_migrations().unwrap();
// V004 seeds 0; V009 migration bumps to 1 to invalidate any pre-V009
// LRU cache (spec §5.2). Baseline before ingest = post-migration value.
// V004 seeds 0; V009 + V010 migrations each bump by 1 to invalidate
// stale LRU caches (spec §5.2). Baseline before ingest = 2.
let baseline = store_before.corpus_revision();
assert_eq!(baseline, 1, "fresh store post-V009 baseline = 1");
assert_eq!(baseline, 2, "fresh store post-V010 baseline = 2");
let report = kebab_app::ingest_with_config(env.config.clone(), env.scope(), true).unwrap();
assert!(