export type ConcernOrigin = 'explicit' | 'implicit'; export type ConcernState = 'active' | 'watching' | 'snoozed' | 'resolved' | 'archived'; export type ConcernWatchKind = 'auto' | 'knowledge' | 'workspace' | 'web'; export type ObservationDecision = 'drop' | 'remember' | 'defer' | 'feed' | 'notify'; export type NotificationRuleEffect = 'auto' | 'notify' | 'suppress'; export type ConcernResourceKind = 'file' | 'knowledge' | 'note'; export interface ConcernResource { kind: ConcernResourceKind; locator: string; label: string; } export interface PartnerConcern { observationProgress?: import('./observation-progress.js').ObservationProgress; executionInstructions?: string; control?: import('./concern-attention.js').ConcernControl; adjustments?: import('./concern-attention.js').ConcernAdjustment[]; recordingSnapshot?: import('./recording-snapshot.js').RecordingSnapshot; recordingPending?: boolean; recordTarget?: ConcernRecordTarget; id: string; companionId: string; scopeId: string; subject: string; reason: string; origin: ConcernOrigin; state: ConcernState; priority: number; confidence: number; score: number; watchKind: ConcernWatchKind; watchQuery: string; resources: ConcernResource[]; createdAt: number; updatedAt: number; lastActivityAt: number; nextCheckAt: number; lastCheckedAt?: number; lastMentionedAt?: number; resolvedAt?: number; } export interface ConcernCandidate { executionInstructions?: string | null; /** Explicit tool input, distinct from legacy text-extracted references. */ replaceResources?: boolean; recordTarget?: ConcernRecordTarget; subject: string; reason: string; operation: 'upsert' | 'resolve' | 'dismiss'; priority: number; confidence: number; watchKind: ConcernWatchKind; watchQuery: string; resources?: ConcernResource[]; } export interface ConcernRecordTarget { kind: 'file' | 'note'; locator: string; label: string; } export declare const IMPLICIT_CONCERN_MIN_PRIORITY = 0.55; export declare const IMPLICIT_CONCERN_MIN_CONFIDENCE = 0.72; export declare const IMPLICIT_CONCERN_MIN_SCORE = 0.64; export declare const MAX_IMPLICIT_CONCERNS_PER_BATCH = 2; /** * Deterministic admission gate shared by reflection and AI tool suggestions. * The model proposes; this policy decides whether an implicit concern may be * persisted. Lifecycle operations remain available so stale concerns can be * closed even when a later model response has lower confidence. */ export declare function implicitConcernRejection(candidate: ConcernCandidate, directEvidence?: string): string | undefined; /** * A new implicit concern needs direct evidence that something survives the * current turn. Topic importance alone is deliberately insufficient: ordinary * research, search, summarization and one-shot execution must not create a * background watch. */ export declare function hasSustainedConcernEvidence(value: string): boolean; export interface ConcernObservationCandidate { workflow?: import('./observation-workflow.js').ObservationWorkflow; concernId: string; changed: boolean; executionNeeded?: boolean; executionKey?: string; event: string; evidence: string; source: string; relevance: number; confidence: number; actionability: number; nextCheckInMinutes?: number; notificationRuleEffect?: NotificationRuleEffect; notificationRuleReason?: string; } export interface ConcernObservation { workflow?: import('./observation-workflow.js').ObservationWorkflow; id: string; concernId: string; companionId: string; scopeId: string; fingerprint: string; event: string; evidence: string; source: string; novelty: number; relevance: number; confidence: number; actionability: number; interruptScore: number; decision: ObservationDecision; notificationRuleEffect: NotificationRuleEffect; notificationRuleReason: string; decisionReason: string; createdAt: number; mentionedAt?: number; } export interface ConcernActivity { concerns: PartnerConcern[]; observations: ConcernObservation[]; } export type ConcernLifecycleAction = 'ignore' | 'resolve'; export interface ConcernLifecycleRequest { action: ConcernLifecycleAction; target: string; } export interface AppliedConcernLifecycleDirective extends ConcernLifecycleRequest { concernId: string; subject: string; } export declare function concernInterval(priority: number, origin: ConcernOrigin): number; export declare const MIN_CONCERN_CHECK_MINUTES = 30; export declare const MAX_CONCERN_CHECK_MINUTES: number; export declare function boundedConcernCheckMinutes(value: unknown): number | undefined; export declare function concernDecay(score: number, lastActivityAt: number, now: number, origin: ConcernOrigin): number; export declare function interruptDecision(input: { priority: number; concernConfidence: number; observationConfidence: number; relevance: number; novelty: number; actionability: number; recentlyMentioned: boolean; firstObservation: boolean; userRecentlyActive?: boolean; notificationRuleEffect?: NotificationRuleEffect; }): { score: number; decision: ObservationDecision; reason: string; }; export declare function normalizeConcernSubject(value: string): string; /** Parse only explicit, named lifecycle commands; ambiguous references remain model-assisted. */ export declare function concernLifecycleRequest(value: string): ConcernLifecycleRequest | undefined; /** Conservative fuzzy score for a named command and an existing concern subject. */ export declare function concernSubjectSimilarity(leftValue: string, rightValue: string): number; export declare function selectConcernLifecycleTarget(request: ConcernLifecycleRequest, concerns: readonly PartnerConcern[]): PartnerConcern | undefined; export declare function focusedConcernQuery(value: string): string; export declare function extractConcernResources(value: string): ConcernResource[]; export declare function clamp(value: number): number; //# sourceMappingURL=concern-domain.d.ts.map