Member Junction
    Preparing search index...

    Optional knobs for ResolveTag — all defaulted to behavior that matches existing callers. New autotagger flow passes a populated options object so the 4+1-tier pipeline can route into the suggestion queue and respect tenant scope.

    interface ResolveTagOptions {
        onTagCreated?: (tag: MJTagEntity) => void;
        parentIDForNew?: string;
        requiresReview?: boolean;
        scopeContext?: TagScopeContext;
        sourceContentItemID?: string;
        sourceContentSourceID?: string;
        sourceText?: string;
        suggestThreshold?: number;
    }
    Index

    Properties

    onTagCreated?: (tag: MJTagEntity) => void

    Optional callback invoked whenever a NEW tag is auto-created via createAndEmbedTag. Lets callers (e.g., RunBudget) accumulate per-run / per-item creation counts without global state.

    parentIDForNew?: string

    Parent tag ID to nest a NEWLY-created tag under, WITHOUT scoping the match search to that parent's subtree (which rootID would do — and which would spawn duplicates of existing root-level tags). When set, the new tag is created under this parent and the parent is run through ValidateAutoGrow governance (MaxChildren / MaxDescendantDepth / depth), so nesting is deterministically rule-compliant. Existing matches are still found globally.

    requiresReview?: boolean

    Whether the tag's RequiresReview flag should force routing through the suggestion queue regardless of confidence. The bridge consults the resolved tag and re-routes if needed; this flag is informational here.

    scopeContext?: TagScopeContext

    Scope filter applied at every match tier and to auto-grow scope inheritance.

    sourceContentItemID?: string

    Source-traceability fields stamped on any enqueued suggestion.

    sourceContentSourceID?: string
    sourceText?: string
    suggestThreshold?: number

    Score band [suggestThreshold, threshold) routes to the suggestion queue with Reason='BelowThreshold' instead of returning a match. When omitted, defaults to threshold - 0.05.