@equationalapplications/core-llm-wiki 9.6.0 → 9.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -329,6 +329,24 @@ interface LibrarianConfig {
329
329
  guidanceForEntity?: (entityId: string) => string | undefined;
330
330
  }
331
331
  interface WikiConfig {
332
+ /**
333
+ * Context-budget section (specs/context-budget). Absent, or
334
+ * `budget: 'legacy'`, keeps today's caps byte-identical.
335
+ * `budget: 'declared'` requires `contextWindowTokens` and derives the
336
+ * per-op prompt caps from the host's declared window; invalid values throw
337
+ * at construction (fail-fast, never fall back to legacy).
338
+ */
339
+ context?: {
340
+ budget: 'legacy' | 'declared';
341
+ /** Required under `budget: 'declared'`. */
342
+ contextWindowTokens?: number;
343
+ /** Chars per token for the host's tokenizer. Default 4. */
344
+ charsPerToken?: number;
345
+ /** Fraction of the derived window usable for prompts. Default 0.9. */
346
+ safetyFraction?: number;
347
+ /** Tokens held back for the model's reply. Default 4000. */
348
+ outputReserveTokens?: number;
349
+ };
332
350
  /** Source-store limits (spec source-store section 9). Defaults live in SourceStoreService. */
333
351
  sourceStore?: {
334
352
  maxCharsPerSource?: number;
@@ -924,7 +942,7 @@ type WikiDiagnosticSeverity = 'info' | 'warn' | 'error';
924
942
  * Closed for this release series, but new codes are added in minor versions:
925
943
  * hosts must tolerate codes they do not recognize.
926
944
  */
927
- type WikiDiagnosticCode = 'ingest_chunk_failed' | 'fact_rejected' | 'task_rejected' | 'fact_deduplicated' | 'edge_dropped' | 'embedding_failed' | 'hook_failed' | 'background_job_failed' | 'heal_skipped' | 'grounding_missing' | 'grounding_failed' | 'classification_low_confidence' | 'classification_invalid' | 'classification_abstained' | 'node_type_assigned' | 'context_overflow_skipped' | 'llm_usage' | 'librarian_gate' | 'librarian_op_rejected' | 'contradicts_document' | 'ontology_backfill_held' | 'resolve_failed' | 'read_budget' | 'event_retention_held' | 'prune_checkpoint_incomplete' | 'erase_secure_delete_off' | 'erase_entity_skipped' | 'erase_retired_vtab_undroppable' | 'erase_fts_orphan_cleared' | 'erase_retired_remaining' | 'erase_tombstones_remaining' | 'erase_retired_read_failed' | 'erase_registry_sweep_skipped' | 'import_tombstone_skipped' | 'event_created_at_clamped' | 'event_created_at_restamped' | 'external_deletion_pending' | 'external_deletion_discarded' | 'guidance_too_long' | 'guidance_resolver_failed' | 'source_pointer_unresolved' | 'source_pointer_invalid' | 'source_store_source_too_large' | 'source_store_budget_exceeded' | 'source_store_hash_mismatch' | 'source_store_duplicate_hash' | 'source_store_text_not_storable';
945
+ type WikiDiagnosticCode = 'ingest_chunk_failed' | 'fact_rejected' | 'task_rejected' | 'fact_deduplicated' | 'edge_dropped' | 'embedding_failed' | 'hook_failed' | 'background_job_failed' | 'heal_skipped' | 'grounding_missing' | 'grounding_failed' | 'classification_low_confidence' | 'classification_invalid' | 'classification_abstained' | 'node_type_assigned' | 'context_overflow_skipped' | 'llm_usage' | 'librarian_gate' | 'librarian_op_rejected' | 'contradicts_document' | 'ontology_backfill_held' | 'resolve_failed' | 'read_budget' | 'event_retention_held' | 'prune_checkpoint_incomplete' | 'erase_secure_delete_off' | 'erase_entity_skipped' | 'erase_retired_vtab_undroppable' | 'erase_fts_orphan_cleared' | 'erase_retired_remaining' | 'erase_tombstones_remaining' | 'erase_retired_read_failed' | 'erase_registry_sweep_skipped' | 'import_tombstone_skipped' | 'event_created_at_clamped' | 'event_created_at_restamped' | 'external_deletion_pending' | 'external_deletion_discarded' | 'guidance_too_long' | 'guidance_resolver_failed' | 'source_pointer_unresolved' | 'source_pointer_invalid' | 'source_store_source_too_large' | 'source_store_budget_exceeded' | 'source_store_hash_mismatch' | 'source_store_duplicate_hash' | 'source_store_text_not_storable' | 'node_type_dropped' | 'node_type_folded' | 'ontology_update_rejected' | 'ingest_zero_facts';
928
946
  /** The service run that emitted the diagnostic. */
929
947
  type WikiDiagnosticOperation = 'ingest' | 'upsertGraph' | 'librarian' | 'heal' | 'ontologyBackfill' | 'reembed' | 'importDump' | 'write' | 'supersede' | 'remember' | 'read' | 'prune' | 'externalDeletion' | 'sourceStore' | 'erase';
930
948
  /** `'auto'` when a write threshold started the run (auto-librarian / auto-heal); `'call'` when the host did. */
@@ -945,10 +963,6 @@ interface WikiDiagnosticDetail {
945
963
  itemIndex?: number;
946
964
  /** Machine-readable sub-reason, e.g. `'target_not_found'`. */
947
965
  reason?: string;
948
- /** `node_type_assigned` only: the manifest slug applied to the fact. */
949
- okfType?: string;
950
- /** Typing receipts only: which path produced the outcome. */
951
- writer?: 'classifier' | 'llm';
952
966
  /** Aggregated `ingest_chunk_failed` only; the first 20 failed chunk indexes. */
953
967
  chunkIndexes?: number[];
954
968
  /** Aggregated emissions only. */
@@ -981,6 +995,22 @@ interface WikiDiagnosticDetail {
981
995
  guidanceSource?: 'per_entity' | 'default';
982
996
  /** `erase_retired_remaining` only: retired FTS table names still present after reclamation. */
983
997
  tables?: string[];
998
+ /** `node_type_dropped` / `node_type_folded` only: the manifest slug involved (slug only, ≤ 64 chars). */
999
+ nodeType?: string;
1000
+ /** `node_type_folded` only: the slug as supplied, before normalization (≤ 64 chars). */
1001
+ from?: string;
1002
+ /** `node_type_folded` only: the manifest's canonical slug (≤ 64 chars). */
1003
+ to?: string;
1004
+ /** `node_type_folded` only: always `'normalize'`. */
1005
+ via?: 'normalize';
1006
+ /** `node_type_assigned` only: the manifest slug the fact was typed with (≤ 64 chars). */
1007
+ okfType?: string;
1008
+ /** `node_type_assigned` only: which path typed the fact. */
1009
+ writer?: 'classifier' | 'llm' | 'inherited';
1010
+ /** `node_type_assigned` only: classifier confidence, when the path carries one. */
1011
+ confidence?: number;
1012
+ /** `ingest_zero_facts` only: chunk count of the empty re-ingest. */
1013
+ chunks?: number;
984
1014
  }
985
1015
  interface WikiDiagnostic {
986
1016
  code: WikiDiagnosticCode;
@@ -1579,6 +1609,8 @@ interface WikiLintReport {
1579
1609
  manifestViolations: number;
1580
1610
  /** Live facts with `okf_type` NULL. */
1581
1611
  untypedFacts: number;
1612
+ /** Live facts whose stored `okf_type` is not resolvable against the effective manifest (normalized resolver). 0 when ontology is off or the manifest has no node_types. */
1613
+ nodeTypeViolations: number;
1582
1614
  /** Live facts with `lifecycle_status = 'draft'`. */
1583
1615
  drafts: number;
1584
1616
  /** Live `librarian_inferred` facts with an empty `okf_verified`. */
@@ -1587,6 +1619,7 @@ interface WikiLintReport {
1587
1619
  sample: {
1588
1620
  danglingEdgeIds: string[];
1589
1621
  manifestViolationEdgeIds: string[];
1622
+ nodeTypeViolationIds: string[];
1590
1623
  };
1591
1624
  }
1592
1625
  /**
@@ -2252,9 +2285,12 @@ declare class EntryRepository extends BaseRepository {
2252
2285
  /**
2253
2286
  * Live untyped facts eligible for ontology backfill, oldest first.
2254
2287
  * Skips facts checked within the recheck cooldown (ontology_checked_at > recheckCutoff).
2288
+ * The queue sees CURRENT facts only (ontology-curation Task 10): rows whose
2289
+ * validity window excludes "now" are invisible to typing, matching the
2290
+ * read-time liveness definition (utils/temporal.ts).
2255
2291
  */
2256
2292
  findUntypedByEntityId(entityId: string, limit: number, recheckCutoff: number, tx?: SQLiteAdapter): Promise<WikiFact[]>;
2257
- /** Counts live untyped facts: eligible (past cooldown) vs deferred (in cooldown). */
2293
+ /** Counts live untyped facts: eligible (past cooldown) vs deferred (in cooldown). Current facts only, as {@link findUntypedByEntityId}. */
2258
2294
  countUntypedByEntityId(entityId: string, recheckCutoff: number, tx?: SQLiteAdapter): Promise<{
2259
2295
  eligible: number;
2260
2296
  deferred: number;
@@ -2457,7 +2493,10 @@ declare class MetadataRepository extends BaseRepository {
2457
2493
  }, tx: SQLiteAdapter, opts?: {
2458
2494
  ifAbsent?: boolean;
2459
2495
  }): Promise<boolean>;
2460
- mergeManifestUpdates(entityId: string, updates: OntologyUpdates, tx: SQLiteAdapter): Promise<OntologyManifest>;
2496
+ mergeManifestUpdates(entityId: string, updates: OntologyUpdates, tx: SQLiteAdapter): Promise<{
2497
+ manifest: OntologyManifest;
2498
+ rejected: string[];
2499
+ }>;
2461
2500
  }
2462
2501
 
2463
2502
  /**
@@ -3370,7 +3409,10 @@ declare class OntologyService {
3370
3409
  manifest: OntologyManifest;
3371
3410
  }>;
3372
3411
  buildPromptContext(entityId: string): Promise<OntologyPromptContext | null>;
3373
- mergeEmergentUpdates(entityId: string, updates: OntologyUpdates, tx: SQLiteAdapter): Promise<OntologyManifest>;
3412
+ mergeEmergentUpdates(entityId: string, updates: OntologyUpdates, tx: SQLiteAdapter): Promise<{
3413
+ manifest: OntologyManifest;
3414
+ rejected: string[];
3415
+ }>;
3374
3416
  validateAndNormalizeFact(fact: ExtractedFactWithOntology, manifest: OntologyManifest, opts?: {
3375
3417
  strict?: boolean;
3376
3418
  entityId?: string;
@@ -3378,6 +3420,12 @@ declare class OntologyService {
3378
3420
  }): {
3379
3421
  okf_type: string | null;
3380
3422
  edges: ExtractedFactEdge[];
3423
+ /** Resolution evidence. Absent on a miss. Callers must not re-run resolution. */
3424
+ match?: {
3425
+ raw: string;
3426
+ canonical: string;
3427
+ via: 'exact' | 'normalize';
3428
+ };
3381
3429
  };
3382
3430
  /**
3383
3431
  * Pure resolver: given a source type, LLM-supplied edges, the manifest,
@@ -4078,6 +4126,8 @@ declare class MaintenanceService {
4078
4126
  batchSize?: number;
4079
4127
  classifier?: 'auto' | 'llm';
4080
4128
  tokenBudget?: number;
4129
+ /** Overrides the default recheck cooldown: facts stamped after this epoch ms stay deferred. */
4130
+ recheckCheckedBefore?: number;
4081
4131
  }): Promise<OntologyBackfillResult>;
4082
4132
  /**
4083
4133
  * Scheduler read view (specs/system-one-config §8): untyped facts still
@@ -4236,6 +4286,8 @@ declare class MaintenanceService {
4236
4286
  batchSize?: number;
4237
4287
  classifier?: 'auto' | 'llm';
4238
4288
  tokenBudget?: number;
4289
+ /** Overrides the default recheck cooldown: facts stamped after this epoch ms stay deferred. */
4290
+ recheckCheckedBefore?: number;
4239
4291
  meter?: UsageMeter;
4240
4292
  /** Diagnostic trigger stamped on every diagnostic this pass emits. Default `'call'`. */
4241
4293
  trigger?: WikiDiagnosticTrigger;
@@ -4509,7 +4561,8 @@ declare class RememberService {
4509
4561
  private ontologyService;
4510
4562
  private searchService;
4511
4563
  private embeddingService;
4512
- constructor(db: SQLiteAdapter, entryRepo: EntryRepository, ontologyService: OntologyService, searchService: SearchService, embeddingService: EmbeddingService);
4564
+ private options?;
4565
+ constructor(db: SQLiteAdapter, entryRepo: EntryRepository, ontologyService: OntologyService, searchService: SearchService, embeddingService: EmbeddingService, options?: Pick<WikiOptions, "onDiagnostic"> | undefined);
4513
4566
  remember(entityId: string, input: RememberInput): Promise<WikiFact>;
4514
4567
  }
4515
4568
 
@@ -4839,6 +4892,8 @@ declare class WikiMemory {
4839
4892
  batchSize?: number;
4840
4893
  classifier?: 'auto' | 'llm';
4841
4894
  tokenBudget?: number;
4895
+ /** Overrides the default recheck cooldown: facts stamped after this epoch ms stay deferred. */
4896
+ recheckCheckedBefore?: number;
4842
4897
  }): Promise<OntologyBackfillResult>;
4843
4898
  runReembed(entityId?: string, opts?: {
4844
4899
  force?: boolean;
@@ -329,6 +329,24 @@ interface LibrarianConfig {
329
329
  guidanceForEntity?: (entityId: string) => string | undefined;
330
330
  }
331
331
  interface WikiConfig {
332
+ /**
333
+ * Context-budget section (specs/context-budget). Absent, or
334
+ * `budget: 'legacy'`, keeps today's caps byte-identical.
335
+ * `budget: 'declared'` requires `contextWindowTokens` and derives the
336
+ * per-op prompt caps from the host's declared window; invalid values throw
337
+ * at construction (fail-fast, never fall back to legacy).
338
+ */
339
+ context?: {
340
+ budget: 'legacy' | 'declared';
341
+ /** Required under `budget: 'declared'`. */
342
+ contextWindowTokens?: number;
343
+ /** Chars per token for the host's tokenizer. Default 4. */
344
+ charsPerToken?: number;
345
+ /** Fraction of the derived window usable for prompts. Default 0.9. */
346
+ safetyFraction?: number;
347
+ /** Tokens held back for the model's reply. Default 4000. */
348
+ outputReserveTokens?: number;
349
+ };
332
350
  /** Source-store limits (spec source-store section 9). Defaults live in SourceStoreService. */
333
351
  sourceStore?: {
334
352
  maxCharsPerSource?: number;
@@ -924,7 +942,7 @@ type WikiDiagnosticSeverity = 'info' | 'warn' | 'error';
924
942
  * Closed for this release series, but new codes are added in minor versions:
925
943
  * hosts must tolerate codes they do not recognize.
926
944
  */
927
- type WikiDiagnosticCode = 'ingest_chunk_failed' | 'fact_rejected' | 'task_rejected' | 'fact_deduplicated' | 'edge_dropped' | 'embedding_failed' | 'hook_failed' | 'background_job_failed' | 'heal_skipped' | 'grounding_missing' | 'grounding_failed' | 'classification_low_confidence' | 'classification_invalid' | 'classification_abstained' | 'node_type_assigned' | 'context_overflow_skipped' | 'llm_usage' | 'librarian_gate' | 'librarian_op_rejected' | 'contradicts_document' | 'ontology_backfill_held' | 'resolve_failed' | 'read_budget' | 'event_retention_held' | 'prune_checkpoint_incomplete' | 'erase_secure_delete_off' | 'erase_entity_skipped' | 'erase_retired_vtab_undroppable' | 'erase_fts_orphan_cleared' | 'erase_retired_remaining' | 'erase_tombstones_remaining' | 'erase_retired_read_failed' | 'erase_registry_sweep_skipped' | 'import_tombstone_skipped' | 'event_created_at_clamped' | 'event_created_at_restamped' | 'external_deletion_pending' | 'external_deletion_discarded' | 'guidance_too_long' | 'guidance_resolver_failed' | 'source_pointer_unresolved' | 'source_pointer_invalid' | 'source_store_source_too_large' | 'source_store_budget_exceeded' | 'source_store_hash_mismatch' | 'source_store_duplicate_hash' | 'source_store_text_not_storable';
945
+ type WikiDiagnosticCode = 'ingest_chunk_failed' | 'fact_rejected' | 'task_rejected' | 'fact_deduplicated' | 'edge_dropped' | 'embedding_failed' | 'hook_failed' | 'background_job_failed' | 'heal_skipped' | 'grounding_missing' | 'grounding_failed' | 'classification_low_confidence' | 'classification_invalid' | 'classification_abstained' | 'node_type_assigned' | 'context_overflow_skipped' | 'llm_usage' | 'librarian_gate' | 'librarian_op_rejected' | 'contradicts_document' | 'ontology_backfill_held' | 'resolve_failed' | 'read_budget' | 'event_retention_held' | 'prune_checkpoint_incomplete' | 'erase_secure_delete_off' | 'erase_entity_skipped' | 'erase_retired_vtab_undroppable' | 'erase_fts_orphan_cleared' | 'erase_retired_remaining' | 'erase_tombstones_remaining' | 'erase_retired_read_failed' | 'erase_registry_sweep_skipped' | 'import_tombstone_skipped' | 'event_created_at_clamped' | 'event_created_at_restamped' | 'external_deletion_pending' | 'external_deletion_discarded' | 'guidance_too_long' | 'guidance_resolver_failed' | 'source_pointer_unresolved' | 'source_pointer_invalid' | 'source_store_source_too_large' | 'source_store_budget_exceeded' | 'source_store_hash_mismatch' | 'source_store_duplicate_hash' | 'source_store_text_not_storable' | 'node_type_dropped' | 'node_type_folded' | 'ontology_update_rejected' | 'ingest_zero_facts';
928
946
  /** The service run that emitted the diagnostic. */
929
947
  type WikiDiagnosticOperation = 'ingest' | 'upsertGraph' | 'librarian' | 'heal' | 'ontologyBackfill' | 'reembed' | 'importDump' | 'write' | 'supersede' | 'remember' | 'read' | 'prune' | 'externalDeletion' | 'sourceStore' | 'erase';
930
948
  /** `'auto'` when a write threshold started the run (auto-librarian / auto-heal); `'call'` when the host did. */
@@ -945,10 +963,6 @@ interface WikiDiagnosticDetail {
945
963
  itemIndex?: number;
946
964
  /** Machine-readable sub-reason, e.g. `'target_not_found'`. */
947
965
  reason?: string;
948
- /** `node_type_assigned` only: the manifest slug applied to the fact. */
949
- okfType?: string;
950
- /** Typing receipts only: which path produced the outcome. */
951
- writer?: 'classifier' | 'llm';
952
966
  /** Aggregated `ingest_chunk_failed` only; the first 20 failed chunk indexes. */
953
967
  chunkIndexes?: number[];
954
968
  /** Aggregated emissions only. */
@@ -981,6 +995,22 @@ interface WikiDiagnosticDetail {
981
995
  guidanceSource?: 'per_entity' | 'default';
982
996
  /** `erase_retired_remaining` only: retired FTS table names still present after reclamation. */
983
997
  tables?: string[];
998
+ /** `node_type_dropped` / `node_type_folded` only: the manifest slug involved (slug only, ≤ 64 chars). */
999
+ nodeType?: string;
1000
+ /** `node_type_folded` only: the slug as supplied, before normalization (≤ 64 chars). */
1001
+ from?: string;
1002
+ /** `node_type_folded` only: the manifest's canonical slug (≤ 64 chars). */
1003
+ to?: string;
1004
+ /** `node_type_folded` only: always `'normalize'`. */
1005
+ via?: 'normalize';
1006
+ /** `node_type_assigned` only: the manifest slug the fact was typed with (≤ 64 chars). */
1007
+ okfType?: string;
1008
+ /** `node_type_assigned` only: which path typed the fact. */
1009
+ writer?: 'classifier' | 'llm' | 'inherited';
1010
+ /** `node_type_assigned` only: classifier confidence, when the path carries one. */
1011
+ confidence?: number;
1012
+ /** `ingest_zero_facts` only: chunk count of the empty re-ingest. */
1013
+ chunks?: number;
984
1014
  }
985
1015
  interface WikiDiagnostic {
986
1016
  code: WikiDiagnosticCode;
@@ -1579,6 +1609,8 @@ interface WikiLintReport {
1579
1609
  manifestViolations: number;
1580
1610
  /** Live facts with `okf_type` NULL. */
1581
1611
  untypedFacts: number;
1612
+ /** Live facts whose stored `okf_type` is not resolvable against the effective manifest (normalized resolver). 0 when ontology is off or the manifest has no node_types. */
1613
+ nodeTypeViolations: number;
1582
1614
  /** Live facts with `lifecycle_status = 'draft'`. */
1583
1615
  drafts: number;
1584
1616
  /** Live `librarian_inferred` facts with an empty `okf_verified`. */
@@ -1587,6 +1619,7 @@ interface WikiLintReport {
1587
1619
  sample: {
1588
1620
  danglingEdgeIds: string[];
1589
1621
  manifestViolationEdgeIds: string[];
1622
+ nodeTypeViolationIds: string[];
1590
1623
  };
1591
1624
  }
1592
1625
  /**
@@ -2252,9 +2285,12 @@ declare class EntryRepository extends BaseRepository {
2252
2285
  /**
2253
2286
  * Live untyped facts eligible for ontology backfill, oldest first.
2254
2287
  * Skips facts checked within the recheck cooldown (ontology_checked_at > recheckCutoff).
2288
+ * The queue sees CURRENT facts only (ontology-curation Task 10): rows whose
2289
+ * validity window excludes "now" are invisible to typing, matching the
2290
+ * read-time liveness definition (utils/temporal.ts).
2255
2291
  */
2256
2292
  findUntypedByEntityId(entityId: string, limit: number, recheckCutoff: number, tx?: SQLiteAdapter): Promise<WikiFact[]>;
2257
- /** Counts live untyped facts: eligible (past cooldown) vs deferred (in cooldown). */
2293
+ /** Counts live untyped facts: eligible (past cooldown) vs deferred (in cooldown). Current facts only, as {@link findUntypedByEntityId}. */
2258
2294
  countUntypedByEntityId(entityId: string, recheckCutoff: number, tx?: SQLiteAdapter): Promise<{
2259
2295
  eligible: number;
2260
2296
  deferred: number;
@@ -2457,7 +2493,10 @@ declare class MetadataRepository extends BaseRepository {
2457
2493
  }, tx: SQLiteAdapter, opts?: {
2458
2494
  ifAbsent?: boolean;
2459
2495
  }): Promise<boolean>;
2460
- mergeManifestUpdates(entityId: string, updates: OntologyUpdates, tx: SQLiteAdapter): Promise<OntologyManifest>;
2496
+ mergeManifestUpdates(entityId: string, updates: OntologyUpdates, tx: SQLiteAdapter): Promise<{
2497
+ manifest: OntologyManifest;
2498
+ rejected: string[];
2499
+ }>;
2461
2500
  }
2462
2501
 
2463
2502
  /**
@@ -3370,7 +3409,10 @@ declare class OntologyService {
3370
3409
  manifest: OntologyManifest;
3371
3410
  }>;
3372
3411
  buildPromptContext(entityId: string): Promise<OntologyPromptContext | null>;
3373
- mergeEmergentUpdates(entityId: string, updates: OntologyUpdates, tx: SQLiteAdapter): Promise<OntologyManifest>;
3412
+ mergeEmergentUpdates(entityId: string, updates: OntologyUpdates, tx: SQLiteAdapter): Promise<{
3413
+ manifest: OntologyManifest;
3414
+ rejected: string[];
3415
+ }>;
3374
3416
  validateAndNormalizeFact(fact: ExtractedFactWithOntology, manifest: OntologyManifest, opts?: {
3375
3417
  strict?: boolean;
3376
3418
  entityId?: string;
@@ -3378,6 +3420,12 @@ declare class OntologyService {
3378
3420
  }): {
3379
3421
  okf_type: string | null;
3380
3422
  edges: ExtractedFactEdge[];
3423
+ /** Resolution evidence. Absent on a miss. Callers must not re-run resolution. */
3424
+ match?: {
3425
+ raw: string;
3426
+ canonical: string;
3427
+ via: 'exact' | 'normalize';
3428
+ };
3381
3429
  };
3382
3430
  /**
3383
3431
  * Pure resolver: given a source type, LLM-supplied edges, the manifest,
@@ -4078,6 +4126,8 @@ declare class MaintenanceService {
4078
4126
  batchSize?: number;
4079
4127
  classifier?: 'auto' | 'llm';
4080
4128
  tokenBudget?: number;
4129
+ /** Overrides the default recheck cooldown: facts stamped after this epoch ms stay deferred. */
4130
+ recheckCheckedBefore?: number;
4081
4131
  }): Promise<OntologyBackfillResult>;
4082
4132
  /**
4083
4133
  * Scheduler read view (specs/system-one-config §8): untyped facts still
@@ -4236,6 +4286,8 @@ declare class MaintenanceService {
4236
4286
  batchSize?: number;
4237
4287
  classifier?: 'auto' | 'llm';
4238
4288
  tokenBudget?: number;
4289
+ /** Overrides the default recheck cooldown: facts stamped after this epoch ms stay deferred. */
4290
+ recheckCheckedBefore?: number;
4239
4291
  meter?: UsageMeter;
4240
4292
  /** Diagnostic trigger stamped on every diagnostic this pass emits. Default `'call'`. */
4241
4293
  trigger?: WikiDiagnosticTrigger;
@@ -4509,7 +4561,8 @@ declare class RememberService {
4509
4561
  private ontologyService;
4510
4562
  private searchService;
4511
4563
  private embeddingService;
4512
- constructor(db: SQLiteAdapter, entryRepo: EntryRepository, ontologyService: OntologyService, searchService: SearchService, embeddingService: EmbeddingService);
4564
+ private options?;
4565
+ constructor(db: SQLiteAdapter, entryRepo: EntryRepository, ontologyService: OntologyService, searchService: SearchService, embeddingService: EmbeddingService, options?: Pick<WikiOptions, "onDiagnostic"> | undefined);
4513
4566
  remember(entityId: string, input: RememberInput): Promise<WikiFact>;
4514
4567
  }
4515
4568
 
@@ -4839,6 +4892,8 @@ declare class WikiMemory {
4839
4892
  batchSize?: number;
4840
4893
  classifier?: 'auto' | 'llm';
4841
4894
  tokenBudget?: number;
4895
+ /** Overrides the default recheck cooldown: facts stamped after this epoch ms stay deferred. */
4896
+ recheckCheckedBefore?: number;
4842
4897
  }): Promise<OntologyBackfillResult>;
4843
4898
  runReembed(entityId?: string, opts?: {
4844
4899
  force?: boolean;
@@ -1,2 +1,2 @@
1
- export { a$ as EmbeddingService, b0 as ImportExportService, b1 as IngestionService, b2 as JobManager, b2 as JobManagerType, b3 as MaintenanceService, b4 as RetrievalService, b5 as SearchService, b5 as SearchServiceType, aM as WikiMemoryTestAccess, b6 as WriteService } from './testing-BBeQQIYp.mjs';
1
+ export { a$ as EmbeddingService, b0 as ImportExportService, b1 as IngestionService, b2 as JobManager, b2 as JobManagerType, b3 as MaintenanceService, b4 as RetrievalService, b5 as SearchService, b5 as SearchServiceType, aM as WikiMemoryTestAccess, b6 as WriteService } from './testing-CDSfjx8j.mjs';
2
2
  import '@equationalapplications/core-okf';
package/dist/testing.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { a$ as EmbeddingService, b0 as ImportExportService, b1 as IngestionService, b2 as JobManager, b2 as JobManagerType, b3 as MaintenanceService, b4 as RetrievalService, b5 as SearchService, b5 as SearchServiceType, aM as WikiMemoryTestAccess, b6 as WriteService } from './testing-BBeQQIYp.js';
1
+ export { a$ as EmbeddingService, b0 as ImportExportService, b1 as IngestionService, b2 as JobManager, b2 as JobManagerType, b3 as MaintenanceService, b4 as RetrievalService, b5 as SearchService, b5 as SearchServiceType, aM as WikiMemoryTestAccess, b6 as WriteService } from './testing-CDSfjx8j.js';
2
2
  import '@equationalapplications/core-okf';