@mcptoolshop/research-os 0.3.3 → 0.4.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.
package/dist/index.d.ts CHANGED
@@ -618,7 +618,7 @@ declare const SectionGatesYamlSchema: z.ZodObject<{
618
618
  }>;
619
619
  type SectionGatesYaml = z.infer<typeof SectionGatesYamlSchema>;
620
620
 
621
- type SourceType = 'primary' | 'secondary' | 'forum' | 'benchmark' | 'docs' | 'unknown';
621
+ type SourceType$1 = 'primary' | 'secondary' | 'forum' | 'benchmark' | 'docs' | 'unknown';
622
622
  type Relevance = 'high' | 'medium' | 'low' | 'unknown';
623
623
  type ExtractorName = 'heuristic' | 'ollama-intern';
624
624
  interface ExtractionInput {
@@ -632,7 +632,7 @@ type ExtractionResult = {
632
632
  publisher: string | null;
633
633
  published_at: string | null;
634
634
  title: string;
635
- source_type: SourceType;
635
+ source_type: SourceType$1;
636
636
  relevance: Relevance;
637
637
  key_points: string[];
638
638
  limitations: string[];
@@ -751,6 +751,10 @@ declare const SourceCardSchema: z.ZodObject<{
751
751
  not: z.ZodNullable<z.ZodString>;
752
752
  extracted_by: z.ZodEnum<["heuristic", "ollama-intern"]>;
753
753
  extracted_at: z.ZodString;
754
+ /** Rule that classified the URL. Added by Component B (v0.4). Optional for back-compat with pre-v0.4 cards. */
755
+ rule_hint: z.ZodOptional<z.ZodString>;
756
+ /** Precedence level of the rule that fired (2–6). Optional for back-compat with pre-v0.4 cards. */
757
+ precedence_level: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>]>>;
754
758
  }, "strip", z.ZodTypeAny, {
755
759
  section_id: string;
756
760
  scope: string | null;
@@ -770,6 +774,8 @@ declare const SourceCardSchema: z.ZodObject<{
770
774
  not: string | null;
771
775
  extracted_by: "heuristic" | "ollama-intern";
772
776
  extracted_at: string;
777
+ rule_hint?: string | undefined;
778
+ precedence_level?: 5 | 2 | 4 | 3 | 6 | undefined;
773
779
  }, {
774
780
  section_id: string;
775
781
  scope: string | null;
@@ -789,6 +795,8 @@ declare const SourceCardSchema: z.ZodObject<{
789
795
  not: string | null;
790
796
  extracted_by: "heuristic" | "ollama-intern";
791
797
  extracted_at: string;
798
+ rule_hint?: string | undefined;
799
+ precedence_level?: 5 | 2 | 4 | 3 | 6 | undefined;
792
800
  }>;
793
801
  type FetchReceipt = z.infer<typeof FetchReceiptSchema>;
794
802
  type SourceCard = z.infer<typeof SourceCardSchema>;
@@ -848,17 +856,136 @@ declare class OllamaInternExtractor implements Extractor {
848
856
  declare function defaultExtractors(): Extractor[];
849
857
  declare function pickExtractor(extractors: Extractor[]): Promise<Extractor>;
850
858
 
859
+ /**
860
+ * Source-card override ledger schema — v0.4 Component A.
861
+ *
862
+ * Append-only ledger at evidence/source-card-overrides.jsonl.
863
+ * Schema is advisor-locked (Q2 field set).
864
+ * Latest-wins per source_id per field, computed at read time by the helpers
865
+ * in effective-card.ts.
866
+ *
867
+ * Mirrors claim-reviews.jsonl Pattern 2 (Law 15 — append-only audit-trail).
868
+ */
869
+
870
+ declare const SourceCardOverrideSchema: z.ZodEffects<z.ZodObject<{
871
+ source_id: z.ZodString;
872
+ url: z.ZodString;
873
+ previous_source_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
874
+ new_source_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<["primary", "secondary", "forum", "benchmark", "docs", "unknown"]>>>;
875
+ previous_publisher: z.ZodOptional<z.ZodNullable<z.ZodString>>;
876
+ new_publisher: z.ZodOptional<z.ZodNullable<z.ZodString>>;
877
+ reason: z.ZodEffects<z.ZodString, string, string>;
878
+ operator: z.ZodString;
879
+ created_at: z.ZodEffects<z.ZodString, string, string>;
880
+ rule_hint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
881
+ pack_version: z.ZodString;
882
+ }, "strip", z.ZodTypeAny, {
883
+ reason: string;
884
+ created_at: string;
885
+ source_id: string;
886
+ url: string;
887
+ operator: string;
888
+ pack_version: string;
889
+ rule_hint?: string | null | undefined;
890
+ previous_source_type?: string | null | undefined;
891
+ new_source_type?: "unknown" | "primary" | "secondary" | "forum" | "benchmark" | "docs" | null | undefined;
892
+ previous_publisher?: string | null | undefined;
893
+ new_publisher?: string | null | undefined;
894
+ }, {
895
+ reason: string;
896
+ created_at: string;
897
+ source_id: string;
898
+ url: string;
899
+ operator: string;
900
+ pack_version: string;
901
+ rule_hint?: string | null | undefined;
902
+ previous_source_type?: string | null | undefined;
903
+ new_source_type?: "unknown" | "primary" | "secondary" | "forum" | "benchmark" | "docs" | null | undefined;
904
+ previous_publisher?: string | null | undefined;
905
+ new_publisher?: string | null | undefined;
906
+ }>, {
907
+ reason: string;
908
+ created_at: string;
909
+ source_id: string;
910
+ url: string;
911
+ operator: string;
912
+ pack_version: string;
913
+ rule_hint?: string | null | undefined;
914
+ previous_source_type?: string | null | undefined;
915
+ new_source_type?: "unknown" | "primary" | "secondary" | "forum" | "benchmark" | "docs" | null | undefined;
916
+ previous_publisher?: string | null | undefined;
917
+ new_publisher?: string | null | undefined;
918
+ }, {
919
+ reason: string;
920
+ created_at: string;
921
+ source_id: string;
922
+ url: string;
923
+ operator: string;
924
+ pack_version: string;
925
+ rule_hint?: string | null | undefined;
926
+ previous_source_type?: string | null | undefined;
927
+ new_source_type?: "unknown" | "primary" | "secondary" | "forum" | "benchmark" | "docs" | null | undefined;
928
+ previous_publisher?: string | null | undefined;
929
+ new_publisher?: string | null | undefined;
930
+ }>;
931
+ type SourceCardOverride = z.infer<typeof SourceCardOverrideSchema>;
932
+ declare function validateSourceCardOverride(input: unknown): SourceCardOverride;
933
+
851
934
  declare function buildCard(args: {
852
935
  receipt: FetchReceipt;
853
936
  extraction: Extract<ExtractionResult, {
854
937
  ok: true;
855
938
  }>;
856
939
  extractedBy: ExtractorName;
940
+ /**
941
+ * Override entries loaded from evidence/source-card-overrides.jsonl.
942
+ * Component A (v0.4): when present, effective source_type and publisher are
943
+ * computed via the L1 override layer before the card is persisted.
944
+ * Omit (or pass []) to skip override application — e.g. in test environments
945
+ * that do not supply a pack path.
946
+ */
947
+ overrides?: SourceCardOverride[];
857
948
  }): SourceCard;
858
949
  declare function writeSourceCard(packPath: string, card: SourceCard): Promise<string>;
859
950
  declare function appendFetchLog(packPath: string, receipt: FetchReceipt): Promise<void>;
860
951
  declare function appendSectionSourceId(packPath: string, sectionId: string, sourceId: string): Promise<void>;
861
952
 
953
+ declare function readOverrides(packPath: string): Promise<SourceCardOverride[]>;
954
+ declare function appendOverride(packPath: string, override: SourceCardOverride): Promise<void>;
955
+
956
+ /**
957
+ * Effective-view helpers for source-card overrides — v0.4 Component A.
958
+ *
959
+ * Pure functions. No I/O. Mirror getEffectiveAcceptedClaimIds (F-36 pattern)
960
+ * from src/closure-ledger/effective-accepted.ts.
961
+ *
962
+ * Latest-wins per source_id per field — independent across fields.
963
+ * A later override that sets only new_source_type does NOT clear an earlier
964
+ * override's new_publisher, and vice-versa.
965
+ *
966
+ * Reusable by Component D (audit CLI, Session 4) without further refactor.
967
+ */
968
+
969
+ type SourceType = SourceCard['source_type'];
970
+ /**
971
+ * Return the effective source_type for a card, applying override precedence (L1).
972
+ *
973
+ * Filters overrides to those matching card.source_id that carry a non-null
974
+ * new_source_type. Walks newest-to-oldest (ISO-8601 lexicographic sort);
975
+ * returns the first non-null new_source_type found. Falls back to
976
+ * card.source_type when no matching override exists.
977
+ */
978
+ declare function getEffectiveSourceType(card: Pick<SourceCard, 'source_id' | 'source_type'>, overrides: SourceCardOverride[]): SourceType;
979
+ /**
980
+ * Return the effective publisher for a card, applying override precedence (L1).
981
+ *
982
+ * Filters overrides to those matching card.source_id that explicitly set
983
+ * new_publisher (including null — "set publisher to null" is a valid correction).
984
+ * Walks newest-to-oldest; returns the first entry's new_publisher.
985
+ * Falls back to card.publisher when no matching override exists.
986
+ */
987
+ declare function getEffectivePublisher(card: Pick<SourceCard, 'source_id' | 'publisher'>, overrides: SourceCardOverride[]): string | null;
988
+
862
989
  declare const EXCERPT_ID_PATTERN: RegExp;
863
990
  declare const ExcerptOriginSchema: z.ZodEnum<["raw_text", "key_point"]>;
864
991
  declare const ExcerptSchema: z.ZodObject<{
@@ -6022,6 +6149,6 @@ declare class SynthesisNotReadyError extends ResearchOSError {
6022
6149
  constructor(mode: string);
6023
6150
  }
6024
6151
 
6025
- declare const RESEARCH_OS_VERSION = "0.3.3";
6152
+ declare const RESEARCH_OS_VERSION = "0.4.0";
6026
6153
 
6027
- export { type AllowedSynthesisInput, AllowedSynthesisInputSchema, type ApproveOptions, type ApproveResult, type ArchivedArtifact, ArchivedArtifactSchema, type ArtifactHash, ArtifactHashSchema, type AuditDensityOptions, type AuditDensityResult, type HandoffMode as AuditHandoffMode, HandoffModeSchema as AuditHandoffModeSchema, type AuditOptions, type AuditSummary, type CitationCoverage, type Claim, type ClaimCluster, ClaimClusterSchema, type ClaimCounts, type ClaimDensityAudit, ClaimDensityAuditSchema, type ClaimExtractionInput, type ClaimExtractionResult, type ClaimExtractor, type ClaimExtractorAdapter, ClaimExtractorSchema, type ClaimReview, ClaimReviewSchema, ClaimSchema, type ClaimSummary, type ClaimTriage, ClaimTriageSchema, type Confidence, ConfidenceSchema, type Contradiction, ContradictionConfidenceSchema, type ContradictionCounts, type ContradictionDetector, type ContradictionDetectorName, ContradictionDetectorSchema, type ContradictionResolution, ContradictionResolutionSchema, ContradictionSchema, type ContradictionStatus, ContradictionStatusSchema, type ContradictionSummary, type ContradictionType, ContradictionTypeSchema, type CoworkHandoffPayload$1 as CoworkHandoffPayload, CoworkHandoffPayloadSchema, type CrossSectionContradictionRef, CrossSectionContradictionRefSchema, type CrossSectionMap, CrossSectionMapSchema, DEFAULT_PROFILE, type DensityFlag, DensityFlagSchema, type DetectionResult, type DetectorMode, type DiscoverOptions, type DiscoverProposal, type DiscoverProvider, type DiscoverProviderInput, type DiscoverProviderResult, type DiscoverResult, type DiscoveryCandidate, DiscoveryCandidateSchema, type DiscoveryCandidateStatus, DiscoveryCandidateStatusSchema, type DiscoverySummary, DiscoverySummarySchema, type DraftClaim, type DraftContradiction, type DraftFinding, EXCERPT_ID_PATTERN, type Excerpt, type ExcerptDraft, type ExcerptOrigin, ExcerptOriginSchema, ExcerptSchema, type ExportOptions, type ExportSummary, type ExportUrlsOptions, type ExportUrlsResult, type ExtractClaimsOptions, type ExtractClaimsSummary, type ExtractionInput, type ExtractionResult, type Extractor, type ExtractorName, ExtractorNameSchema, FORBIDDEN_ACTIONS_ALWAYS, type FetchReceipt, FetchReceiptSchema, type FindingCategory, FindingCategorySchema, type FindingSeverity, FindingSeveritySchema, type ForbiddenInput, ForbiddenInputSchema, type FreezeOptions, type FreezeReceiptPayload, FreezeReceiptPayloadSchema, type FreezeRefusalPayload, FreezeRefusalPayloadSchema, type FreezeSummary, type FreshnessSummary, type GateCheckResult, GateCheckResultSchema, type GateCheckStatus, GateCheckStatusSchema, type GateConfig, GateConfigSchema, type GateFamily, GateFamilySchema, type GateInput, type GateVerdictEntry, GateVerdictEntrySchema, type GatherOptions, type GatherSummary, type HandoffMode$1 as HandoffMode, HandoffModeSchema$1 as HandoffModeSchema, HandoffNotFoundError, type HandoffOptions, type HandoffSummary, HeuristicClaimExtractor, HeuristicContradictionDetector, HeuristicExtractor, HeuristicReviewer, type IndexBuildOptions, type IndexBuildSummary, IndexNotBuiltError, type IndexQueryOptions, type IndexQuerySummary, type IndexStatus, IndexStatusSchema, type InitOptions, type InitResult, IntakeValidationError, type IntegrityCheck, IntegrityCheckSchema, InvalidSectionIdError, type InvalidateExtractionOptions, type InvalidateExtractionResult, type InvalidateReviewOptions, type InvalidateReviewResult, type InvalidationReceipt, InvalidationReceiptSchema, LlmHeuristicDiscoverProvider, type LoadOrBuildArgs, type LoadOrBuildResult, type MapOptions, type MapSummary, type NearDuplicateCluster, NearDuplicateClusterSchema, NoSourcesGatheredError, NoUrlsProvidedError, OllamaInternClaimExtractor, OllamaInternContradictionDetector, OllamaInternExtractor, OllamaInternReviewer, type OrphanClaimRow, OrphanClaimRowSchema, type OverlapAssessment, OverlapAssessmentSchema, type PackAuditPayload, PackAuditPayloadSchema, PackExistsError, PackNotFoundError, type PackVerdict, PackVerdictSchema, type PairedDraft, type PerSourceDensity, PerSourceDensitySchema, type PrimarySourceWaiver, PrimarySourceWaiverSchema, type PromoteOptions, type PromoteResult, type QueryHit, RESEARCH_OS_VERSION, type ReadinessSummary, type RecordType, type RejectOptions, type RejectResult, type Relevance, RelevanceSchema, ResearchOSError, type ResearchYaml, ResearchYamlSchema, type ResolutionStatus, ResolutionStatusSchema, type ReviewActive, ReviewActiveSchema, ReviewConfidenceSchema, type ReviewDecision, type ReviewDecisionCount, ReviewDecisionCountSchema, ReviewDecisionSchema, type ReviewFinding, ReviewFindingSchema, type ReviewInvalidationReceipt, ReviewInvalidationReceiptSchema, type ReviewSnapshot, ReviewSnapshotSchema, type ReviewState, ReviewStateSchema, type ReviewSummary, type Reviewer, type ReviewerInput, type ReviewerName, ReviewerNameSchema, type ReviewerResult, type RunGateOptions, type RunReviewOptions, type RunReviewSummary, SCHEMA_VERSION, type ScopeIntegritySummary, type ScopeOverlap, ScopeOverlapSchema, type ScopeWideningRiskRow, ScopeWideningRiskRowSchema, type Section, type SectionAcceptedSummary, SectionAcceptedSummarySchema, type SectionAddOptions, type SectionAddResult, SectionExistsError, type SectionGateResult$1 as SectionGateResult, SectionGateResultSchema, type SectionGatesYaml, SectionGatesYamlSchema, SectionNotFoundError, type SectionReport, SectionReportAcceptanceSchema, SectionReportContradictionsSchema, SectionReportExtractionSchema, type SectionReportOptions, type SectionReportResult, SectionReportReviewSchema, SectionReportSchema, SectionReportSourcesSchema, SectionSchema, type SectionState, SectionStateSchema, type SectionStatusChange, SectionStatusChangeSchema, type Severity, SeveritySchema, type SharedSource, SharedSourceSchema, type SourceCard, SourceCardSchema, type SourceCounts, type SourceDiversityGapRow, SourceDiversityGapRowSchema, type SourceFetchPair, type SourceSummary, type SourceType, type SourceTypeGuess, SourceTypeGuessSchema, SourceTypeSchema, type StaleSourceRow, StaleSourceRowSchema, type SyncOptions, type SyncSummary, SynthesisNotReadyError, type SynthesisReadinessRow, SynthesisReadinessRowSchema, TemplateNotFoundError, type TriageDecision, TriageDecisionSchema, type TriageOptions, type TriageRunResult, type TriageSummary, TriageSummarySchema, type UnresolvedContradictionRow, UnresolvedContradictionRowSchema, type Verdict, VerdictSchema, type WaiverApplication, WaiverApplicationSchema, type WaiverDependency, WaiverDependencySchema, type WaiverEntry, WaiverEntrySchema, type WaiverSummary, type WeakSourceRow, WeakSourceRowSchema, type WorkspaceOptions, type WorkspaceSummary, add, aggregate, appendFetchLog, appendSectionSourceId, applySchema, applyWaivers, approve, assessScopeOverlap, audit, auditDensity, build, buildCard, buildExcerptIndex, buildResearchYaml, checkClaimIntegrity, checkContradiction, checkFreshness, checkScopeIntegrity, checkSectionBudget, checkSourceFloor, chunkKeyPoints, chunkRawText, collectUrls, dedupeAndValidate, defaultClaimExtractors, defaultContradictionDetectors, defaultExtractors, defaultReviewers, derive, deriveClaimReviews, deriveCrossSectionMap, discover, evidenceGrounded, exportRepoKnowledge, exportUrls, extract, extractClaimCitations, extractContradictionDisclosures, extractWaiverDisclosures, fetchOnce, freeze, gate, gather, handoff, hasNegation, indexDbPath, init, invalidateExtraction, invalidateReview, isValidProfileName, jaccardSimilarity, ledgerPathFor, loadOrBuildLedger, makeReceiptId, makeSourceId, map, normalizeOllamaHost, openIndexDb, parseUrlsFileText, pickClaimExtractor, pickContradictionDetector, pickExtractor, pickReviewer, profileDir, promote, query, readActiveProfile, readTriagedClaimIds, readUrlsFile, reject, renderCoworkMaster, renderCrossSectionMapMarkdown, renderDecisionBrief, renderFinalReport, renderFreezeReceiptMarkdown, renderFreezeRefusalMarkdown, renderGateMarkdown, renderLedgerForPrompt, renderMarkdownView, renderOrphanClaimsMarkdown, renderPackAuditMarkdown, renderReviewMarkdown, renderScopeWideningRisksMarkdown, renderSourceDiversityGapsMarkdown, renderStaleSourcesMarkdown, renderSynthesisReadinessMarkdown, renderUnresolvedContradictionsMarkdown, renderWeakSourcesMarkdown, renderWorkingReport, reportSection, resolve, review, reviewActivePath, slugify, syncRepoKnowledge, tokenize, triage, workspace, writeActiveProfile, writeSourceCard };
6154
+ export { type AllowedSynthesisInput, AllowedSynthesisInputSchema, type ApproveOptions, type ApproveResult, type ArchivedArtifact, ArchivedArtifactSchema, type ArtifactHash, ArtifactHashSchema, type AuditDensityOptions, type AuditDensityResult, type HandoffMode as AuditHandoffMode, HandoffModeSchema as AuditHandoffModeSchema, type AuditOptions, type AuditSummary, type CitationCoverage, type Claim, type ClaimCluster, ClaimClusterSchema, type ClaimCounts, type ClaimDensityAudit, ClaimDensityAuditSchema, type ClaimExtractionInput, type ClaimExtractionResult, type ClaimExtractor, type ClaimExtractorAdapter, ClaimExtractorSchema, type ClaimReview, ClaimReviewSchema, ClaimSchema, type ClaimSummary, type ClaimTriage, ClaimTriageSchema, type Confidence, ConfidenceSchema, type Contradiction, ContradictionConfidenceSchema, type ContradictionCounts, type ContradictionDetector, type ContradictionDetectorName, ContradictionDetectorSchema, type ContradictionResolution, ContradictionResolutionSchema, ContradictionSchema, type ContradictionStatus, ContradictionStatusSchema, type ContradictionSummary, type ContradictionType, ContradictionTypeSchema, type CoworkHandoffPayload$1 as CoworkHandoffPayload, CoworkHandoffPayloadSchema, type CrossSectionContradictionRef, CrossSectionContradictionRefSchema, type CrossSectionMap, CrossSectionMapSchema, DEFAULT_PROFILE, type DensityFlag, DensityFlagSchema, type DetectionResult, type DetectorMode, type DiscoverOptions, type DiscoverProposal, type DiscoverProvider, type DiscoverProviderInput, type DiscoverProviderResult, type DiscoverResult, type DiscoveryCandidate, DiscoveryCandidateSchema, type DiscoveryCandidateStatus, DiscoveryCandidateStatusSchema, type DiscoverySummary, DiscoverySummarySchema, type DraftClaim, type DraftContradiction, type DraftFinding, EXCERPT_ID_PATTERN, type Excerpt, type ExcerptDraft, type ExcerptOrigin, ExcerptOriginSchema, ExcerptSchema, type ExportOptions, type ExportSummary, type ExportUrlsOptions, type ExportUrlsResult, type ExtractClaimsOptions, type ExtractClaimsSummary, type ExtractionInput, type ExtractionResult, type Extractor, type ExtractorName, ExtractorNameSchema, FORBIDDEN_ACTIONS_ALWAYS, type FetchReceipt, FetchReceiptSchema, type FindingCategory, FindingCategorySchema, type FindingSeverity, FindingSeveritySchema, type ForbiddenInput, ForbiddenInputSchema, type FreezeOptions, type FreezeReceiptPayload, FreezeReceiptPayloadSchema, type FreezeRefusalPayload, FreezeRefusalPayloadSchema, type FreezeSummary, type FreshnessSummary, type GateCheckResult, GateCheckResultSchema, type GateCheckStatus, GateCheckStatusSchema, type GateConfig, GateConfigSchema, type GateFamily, GateFamilySchema, type GateInput, type GateVerdictEntry, GateVerdictEntrySchema, type GatherOptions, type GatherSummary, type HandoffMode$1 as HandoffMode, HandoffModeSchema$1 as HandoffModeSchema, HandoffNotFoundError, type HandoffOptions, type HandoffSummary, HeuristicClaimExtractor, HeuristicContradictionDetector, HeuristicExtractor, HeuristicReviewer, type IndexBuildOptions, type IndexBuildSummary, IndexNotBuiltError, type IndexQueryOptions, type IndexQuerySummary, type IndexStatus, IndexStatusSchema, type InitOptions, type InitResult, IntakeValidationError, type IntegrityCheck, IntegrityCheckSchema, InvalidSectionIdError, type InvalidateExtractionOptions, type InvalidateExtractionResult, type InvalidateReviewOptions, type InvalidateReviewResult, type InvalidationReceipt, InvalidationReceiptSchema, LlmHeuristicDiscoverProvider, type LoadOrBuildArgs, type LoadOrBuildResult, type MapOptions, type MapSummary, type NearDuplicateCluster, NearDuplicateClusterSchema, NoSourcesGatheredError, NoUrlsProvidedError, OllamaInternClaimExtractor, OllamaInternContradictionDetector, OllamaInternExtractor, OllamaInternReviewer, type OrphanClaimRow, OrphanClaimRowSchema, type OverlapAssessment, OverlapAssessmentSchema, type PackAuditPayload, PackAuditPayloadSchema, PackExistsError, PackNotFoundError, type PackVerdict, PackVerdictSchema, type PairedDraft, type PerSourceDensity, PerSourceDensitySchema, type PrimarySourceWaiver, PrimarySourceWaiverSchema, type PromoteOptions, type PromoteResult, type QueryHit, RESEARCH_OS_VERSION, type ReadinessSummary, type RecordType, type RejectOptions, type RejectResult, type Relevance, RelevanceSchema, ResearchOSError, type ResearchYaml, ResearchYamlSchema, type ResolutionStatus, ResolutionStatusSchema, type ReviewActive, ReviewActiveSchema, ReviewConfidenceSchema, type ReviewDecision, type ReviewDecisionCount, ReviewDecisionCountSchema, ReviewDecisionSchema, type ReviewFinding, ReviewFindingSchema, type ReviewInvalidationReceipt, ReviewInvalidationReceiptSchema, type ReviewSnapshot, ReviewSnapshotSchema, type ReviewState, ReviewStateSchema, type ReviewSummary, type Reviewer, type ReviewerInput, type ReviewerName, ReviewerNameSchema, type ReviewerResult, type RunGateOptions, type RunReviewOptions, type RunReviewSummary, SCHEMA_VERSION, type ScopeIntegritySummary, type ScopeOverlap, ScopeOverlapSchema, type ScopeWideningRiskRow, ScopeWideningRiskRowSchema, type Section, type SectionAcceptedSummary, SectionAcceptedSummarySchema, type SectionAddOptions, type SectionAddResult, SectionExistsError, type SectionGateResult$1 as SectionGateResult, SectionGateResultSchema, type SectionGatesYaml, SectionGatesYamlSchema, SectionNotFoundError, type SectionReport, SectionReportAcceptanceSchema, SectionReportContradictionsSchema, SectionReportExtractionSchema, type SectionReportOptions, type SectionReportResult, SectionReportReviewSchema, SectionReportSchema, SectionReportSourcesSchema, SectionSchema, type SectionState, SectionStateSchema, type SectionStatusChange, SectionStatusChangeSchema, type Severity, SeveritySchema, type SharedSource, SharedSourceSchema, type SourceCard, type SourceCardOverride, SourceCardOverrideSchema, SourceCardSchema, type SourceCounts, type SourceDiversityGapRow, SourceDiversityGapRowSchema, type SourceFetchPair, type SourceSummary, type SourceType$1 as SourceType, type SourceTypeGuess, SourceTypeGuessSchema, SourceTypeSchema, type StaleSourceRow, StaleSourceRowSchema, type SyncOptions, type SyncSummary, SynthesisNotReadyError, type SynthesisReadinessRow, SynthesisReadinessRowSchema, TemplateNotFoundError, type TriageDecision, TriageDecisionSchema, type TriageOptions, type TriageRunResult, type TriageSummary, TriageSummarySchema, type UnresolvedContradictionRow, UnresolvedContradictionRowSchema, type Verdict, VerdictSchema, type WaiverApplication, WaiverApplicationSchema, type WaiverDependency, WaiverDependencySchema, type WaiverEntry, WaiverEntrySchema, type WaiverSummary, type WeakSourceRow, WeakSourceRowSchema, type WorkspaceOptions, type WorkspaceSummary, add, aggregate, appendFetchLog, appendOverride, appendSectionSourceId, applySchema, applyWaivers, approve, assessScopeOverlap, audit, auditDensity, build, buildCard, buildExcerptIndex, buildResearchYaml, checkClaimIntegrity, checkContradiction, checkFreshness, checkScopeIntegrity, checkSectionBudget, checkSourceFloor, chunkKeyPoints, chunkRawText, collectUrls, dedupeAndValidate, defaultClaimExtractors, defaultContradictionDetectors, defaultExtractors, defaultReviewers, derive, deriveClaimReviews, deriveCrossSectionMap, discover, evidenceGrounded, exportRepoKnowledge, exportUrls, extract, extractClaimCitations, extractContradictionDisclosures, extractWaiverDisclosures, fetchOnce, freeze, gate, gather, getEffectivePublisher, getEffectiveSourceType, handoff, hasNegation, indexDbPath, init, invalidateExtraction, invalidateReview, isValidProfileName, jaccardSimilarity, ledgerPathFor, loadOrBuildLedger, makeReceiptId, makeSourceId, map, normalizeOllamaHost, openIndexDb, parseUrlsFileText, pickClaimExtractor, pickContradictionDetector, pickExtractor, pickReviewer, profileDir, promote, query, readActiveProfile, readOverrides, readTriagedClaimIds, readUrlsFile, reject, renderCoworkMaster, renderCrossSectionMapMarkdown, renderDecisionBrief, renderFinalReport, renderFreezeReceiptMarkdown, renderFreezeRefusalMarkdown, renderGateMarkdown, renderLedgerForPrompt, renderMarkdownView, renderOrphanClaimsMarkdown, renderPackAuditMarkdown, renderReviewMarkdown, renderScopeWideningRisksMarkdown, renderSourceDiversityGapsMarkdown, renderStaleSourcesMarkdown, renderSynthesisReadinessMarkdown, renderUnresolvedContradictionsMarkdown, renderWeakSourcesMarkdown, renderWorkingReport, reportSection, resolve, review, reviewActivePath, slugify, syncRepoKnowledge, tokenize, triage, validateSourceCardOverride, workspace, writeActiveProfile, writeSourceCard };