@remnic/bench 9.7.15 → 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.
- package/dist/index.d.ts +35 -1
- package/dist/index.js +97 -29
- package/package.json +4 -3
package/dist/index.d.ts
CHANGED
|
@@ -552,6 +552,15 @@ interface BenchmarkResult {
|
|
|
552
552
|
tasks: TaskResult[];
|
|
553
553
|
aggregates: AggregateMetrics;
|
|
554
554
|
statistics?: StatisticalReport;
|
|
555
|
+
/**
|
|
556
|
+
* Optional per-category aggregate breakdown keyed by a benchmark-defined
|
|
557
|
+
* category label (e.g. LoCoMo's single_hop/adversarial). Populated by
|
|
558
|
+
* benchmarks whose tasks carry a `categoryName` detail so per-category
|
|
559
|
+
* metrics — such as the adversarial-vs-answerable split issue #1878
|
|
560
|
+
* tracks — are read straight from the artifact instead of hand-computed
|
|
561
|
+
* from task ids.
|
|
562
|
+
*/
|
|
563
|
+
categoryAggregates?: Record<string, AggregateMetrics>;
|
|
555
564
|
};
|
|
556
565
|
environment: {
|
|
557
566
|
os: string;
|
|
@@ -1748,6 +1757,13 @@ interface CodexCliNativeUsage {
|
|
|
1748
1757
|
outputTokens: number;
|
|
1749
1758
|
reasoningOutputTokens: number;
|
|
1750
1759
|
}
|
|
1760
|
+
interface CodexCreditBudgetConfig {
|
|
1761
|
+
budgetCredits: number;
|
|
1762
|
+
reserveCredits: number;
|
|
1763
|
+
ledgerPath: string;
|
|
1764
|
+
allowSol: boolean;
|
|
1765
|
+
runId?: string;
|
|
1766
|
+
}
|
|
1751
1767
|
interface CodexCreditReceiptScope extends CodexCliNativeUsage {
|
|
1752
1768
|
calls: number;
|
|
1753
1769
|
budgetUnits: number;
|
|
@@ -1789,6 +1805,13 @@ interface CodexCreditReceipt {
|
|
|
1789
1805
|
id: string;
|
|
1790
1806
|
};
|
|
1791
1807
|
}
|
|
1808
|
+
declare class CodexCreditAccountingError extends Error {
|
|
1809
|
+
constructor(message: string);
|
|
1810
|
+
}
|
|
1811
|
+
/** The Codex child was confirmed not to have started, so no credits were charged. */
|
|
1812
|
+
declare class CodexCreditDispatchError extends Error {
|
|
1813
|
+
constructor(message: string, options?: ErrorOptions);
|
|
1814
|
+
}
|
|
1792
1815
|
declare function reconcileCodexCreditLedger(args: {
|
|
1793
1816
|
ledgerPath: string;
|
|
1794
1817
|
priorLedgerSha256: string;
|
|
@@ -1801,6 +1824,17 @@ declare function reconcileCodexCreditLedger(args: {
|
|
|
1801
1824
|
noInterveningCodexActivityConfirmed?: true;
|
|
1802
1825
|
affectedRunId: string;
|
|
1803
1826
|
}): Promise<CodexCreditReconciliationReceipt>;
|
|
1827
|
+
declare function resolveCodexCreditBudgetConfig(env?: NodeJS.ProcessEnv, fallbackRunId?: string): CodexCreditBudgetConfig | undefined;
|
|
1828
|
+
declare function runWithinCodexCreditBudget<T>(args: {
|
|
1829
|
+
config: CodexCreditBudgetConfig | undefined;
|
|
1830
|
+
model: string;
|
|
1831
|
+
run: () => Promise<{
|
|
1832
|
+
value: T;
|
|
1833
|
+
usage: CodexCliNativeUsage;
|
|
1834
|
+
}>;
|
|
1835
|
+
onUsagePersisted?: (usage: CodexCliNativeUsage) => void;
|
|
1836
|
+
}): Promise<T>;
|
|
1837
|
+
declare function parseCodexJsonlUsage(output: string): CodexCliNativeUsage | undefined;
|
|
1804
1838
|
declare function calculateCodexBudgetUnits(model: string, usage: CodexCliNativeUsage): number;
|
|
1805
1839
|
declare function buildCodexCreditReceipt(ledgerPath: string, runId?: string): Promise<CodexCreditReceipt>;
|
|
1806
1840
|
|
|
@@ -5747,4 +5781,4 @@ declare function checkCodingGraphRegression(report: CodingGraphBenchReport, base
|
|
|
5747
5781
|
*/
|
|
5748
5782
|
declare function buildBaselineFromReport(report: CodingGraphBenchReport, note: string): CodingGraphBaseline;
|
|
5749
5783
|
|
|
5750
|
-
export { AMA_BENCH_DIAGNOSTIC_VARIANTS, ASSISTANT_AGENT_CONFIG_KEY, ASSISTANT_JUDGE_CONFIG_KEY, ASSISTANT_MEETING_PREP_SCENARIOS, ASSISTANT_MEETING_PREP_SMOKE_SCENARIOS, ASSISTANT_MORNING_BRIEF_SCENARIOS, ASSISTANT_MORNING_BRIEF_SMOKE_SCENARIOS, ASSISTANT_NEXT_BEST_ACTION_SCENARIOS, ASSISTANT_NEXT_BEST_ACTION_SMOKE_SCENARIOS, ASSISTANT_RUBRIC_DIMENSIONS, ASSISTANT_RUBRIC_ID_KEY, ASSISTANT_SEEDS_CONFIG_KEY, ASSISTANT_SPOT_CHECK_DIR_KEY, ASSISTANT_SYNTHESIS_SCENARIOS, ASSISTANT_SYNTHESIS_SMOKE_SCENARIOS, type AblationConfigOverrides, type AbstentionRetrievalCase, type AggregateMetrics, type AmaBenchDiagnosticAdapterOptions, type AmaBenchDiagnosticAnswererMode, type AmaBenchDiagnosticBreakdown, type AmaBenchDiagnosticMatrixArtifact, type AmaBenchDiagnosticRecallMode, type AmaBenchDiagnosticRunContext, type AmaBenchDiagnosticTaskEvidence, type AmaBenchDiagnosticTaskRow, type AmaBenchDiagnosticVariant, type AmaBenchDiagnosticVariantSummary, type AnthropicProviderConfig, type AssistantAgent, type AssistantMemoryFact, type AssistantMemoryGraph, type AssistantRubricDimension, type AssistantRubricRequest, type AssistantRubricScores, type AssistantRunnerOptions, type AssistantScenario, type AssistantStance, type AttackRecallOptions, type AttackRetrievalHit, type AttackerMode, BENCHMARK_ARTIFACT_SCHEMA_VERSION, BENCHMARK_INTEGRITY_META_SCHEMA, BENCHMARK_REPRO_MANIFEST_FILENAME, BENCHMARK_REPRO_MANIFEST_SCHEMA_VERSION, BENCHMARK_RESULT_SCHEMA, BENCHMARK_SPLIT_TYPES, BUILD_WEEK_EVIDENCE_RECEIPT_SCHEMA_VERSION, BUILD_WEEK_LIMITATIONS, type BaselineRow, type BaselineScenario, type BeamDatasetPreview, type BenchConfig, type BenchJudge, type BenchJudgeResult, type BenchMemoryAdapter, type BenchModelSource, type BenchReasoningEffort, type BenchRecallLineageStatus, type BenchRecallOptions, type BenchRecallSupportAssessment, type BenchRecallSupportRequest, type BenchRecallSupportStatus, type BenchRecallTrace, type BenchRecallTraceCoreCapture, type BenchRecallTraceLcmCandidate, type BenchRecallTraceRange, type BenchRecallTraceSection, type BenchRecallTraceSelection, type BenchRecallWithTraceResult, type BenchResponder, type BenchResponse, type BenchRuntimeProfile, type BenchTier, type BenchmarkArtifact, type BenchmarkArtifactEnvironment, type BenchmarkArtifactHardware, type BenchmarkArtifactJudgeCalibration, type BenchmarkArtifactPerTaskScore, type BenchmarkArtifactSystem, type BenchmarkArtifactTier, type BenchmarkCategory, type BenchmarkDefinition, type BenchmarkIntegrityMeta, type BenchmarkMeta, type BenchmarkMode, type BenchmarkReport, type BenchmarkReproManifest, type BenchmarkReproManifestDataset, type BenchmarkReproManifestFile, type BenchmarkReproManifestResult, type BenchmarkResult, type BenchmarkSplitType, type BenchmarkStatus, type BenchmarkSuiteResult, type BenchmarkTier, type BootstrapKappaOptions, type BootstrapKappaResult, type BuildBenchmarkArtifactInput, type BuildBenchmarkPublishFeedOptions, type BuildBenchmarkReproManifestOptions, type BuildBuildWeekEvidenceReceiptOptions, type BuildWeekEvidenceReceipt, type BuildWeekEvidenceReceiptProvider, type BuildWeekLimitationCode, type BuiltInProvider, CALIBRATION_SLICE_SIZE, CANARY_FIXED_RECALL, CANARY_SCORE_FLOOR, DEFAULT_10K_FIXTURE as CODING_GRAPH_10K_FIXTURE, CODING_GRAPH_BENCH_SCHEMA_VERSION, DEFAULT_TOLERANCE_PERCENT as CODING_GRAPH_DEFAULT_TOLERANCE, MIN_ITERATIONS as CODING_GRAPH_MIN_ITERATIONS, DEFAULT_SMOKE_FIXTURE as CODING_GRAPH_SMOKE_FIXTURE, type CalibrationAnswer, type CalibrationVerdictPair, type CanaryAdapterOptions, type CanaryFloorCheck, type CaptureLoCoMoRetrievalTraceOptions, type ClaudeCliProviderConfig, type CodexCliProviderConfig, type CodexCreditReceipt, type CodexCreditReceiptScope, type CodexCreditReconciliationReceipt, type CodingGraphBaseline, type CodingGraphBenchConfig, type CodingGraphBenchReport, type MachineFingerprint as CodingGraphMachineFingerprint, type CodingGraphMetricKey, type RegressionMetricDetail as CodingGraphRegressionDetail, type RegressionMetricKey as CodingGraphRegressionKey, type RegressionGateResult as CodingGraphRegressionResult, type CohenKappaResult, type ComparisonMetricDelta, type ComparisonResult, type CompletionOpts, type CompletionResult, type ConfidenceInterval, type ContaminationCheckResult, type ContaminationEntry, type ContaminationManifest, type CustomBenchmarkScoring, type CustomBenchmarkSpec, type CustomBenchmarkTask, DEFAULT_ABLATION_BENCHMARK, DEFAULT_ABLATION_BOOTSTRAP_SEED, DEFAULT_ASSISTANT_RUBRIC_ID, DEFAULT_BASELINE_SCENARIOS, DEFAULT_JUDGE_BINARIZATION_THRESHOLD, DEFAULT_KAPPA_BOOTSTRAP_SAMPLES, DEFAULT_KAPPA_CONFIDENCE_LEVEL, DEFAULT_OPENAI_RESPONSES_JUDGE_MODEL, type DatasetSource, type DiagnoseLoComoProfileDeltaOptions, type DiagnoseLoComoRecallDeltaOptions, type DiscoveredModel, EMPTY_CONTAMINATION_MANIFEST, type EffectSizeInterpretation, type EffectSizeSummary, type ExplainResult, type ExtractedEntity, type ExtractedLink, type ExtractedPage, type ExtractionAttackOptions, type ExtractionAttackResult, type ExtractionAttackTarget, type FixtureGenerator, type FixtureOutput, type FixtureVariant, GENERAL_ANSWER_JUDGE_RUBRIC, type GeneratedFile, type GeneratedRepo, type GoldEntity, type GoldEntityType, type GoldGraph, type GoldLink, type GoldPage, type HarnessRng, INTEGRITY_CIPHER_ALGORITHM, INTEGRITY_HASH_ALGORITHM, INTEGRITY_META_FIELDS, type IngestionBenchAdapter, type IngestionLog, JUDGE_CALIBRATION_KAPPA_THRESHOLD, JUDGE_CALIBRATION_PROTOCOL_VERSION, type JudgeCalibrationCheckpointProvenance, type JudgeCalibrationIdentities, type JudgeCalibrationResult, type JudgeCategory, type KappaConfidenceInterval, LOCAL_LAB_PROVIDER_KINDS, LOCOMO_DATASET_FILENAMES, LOCOMO_FULL_TASK_COUNT, LOCOMO_RECALL_DIFF_LINE_LIMIT, LOCOMO_RECALL_EXCERPT_CHARS, LOCOMO_RETRIEVAL_TRACE_BUDGET_VERSION, LOCOMO_RETRIEVAL_TRACE_DELTA_SCHEMA_VERSION, LOCOMO_RETRIEVAL_TRACE_SCHEMA_VERSION, LOCOMO_RETRIEVAL_TRACE_SELECTION_VERSION, LONG_MEM_EVAL_DATASET_FILENAMES, type LeaderboardArtifactWrite, type LettaAdapterConfig, LettaMemCorrectAdapter, type LlmJudge, type LlmProvider, type LoCoMoCategory, type LoCoMoRetrievalMechanism, type LoCoMoRetrievalMechanismSummary, type LoCoMoRetrievalSessionReceipt, type LoCoMoRetrievalStructuralTrace, type LoCoMoRetrievalTaskDelta, type LoCoMoRetrievalTaskReceipt, type LoCoMoRetrievalTraceCoreCaptureReceipt, type LoCoMoRetrievalTraceDeltaReport, type LoCoMoRetrievalTraceProfile, type LoCoMoRetrievalTraceReceipt, type LoCoMoRetrievalTraceSelectionManifest, type LoCoMoRetrievalTraceSelector, type LoCoMoStructuralMultisetDelta, type LoComoCategoryDelta, type LoComoFinalContextRegression, type LoComoMetricDelta, type LoComoProfileArtifactEvidence, type LoComoProfileDeltaReport, type LoComoRawResultEvidence, type LoComoRecallCategoryDelta, type LoComoRecallContextSummary, type LoComoRecallDeltaReport, type LoComoRecallLineDelta, type LoComoRecallLineEvidence, type LoComoRecallMetricDelta, type LoComoRecallResultProvenance, type LoComoRecallTextDigest, type LoComoTaskRegression, type LoadDatasetOptions, type LoadSealedQrelsOptions, type LoadedDataset, type LoadedJudgeCalibrationState, type LocalLabManifest, type LocalLabManifestNotes, type LocalLabPhase, type LocalLabPhaseDescriptor, type LocalLabPhaseExecute, type LocalLabPhaseName, type LocalLabPhaseOutcome, LocalLabPreflightError, type LocalLabPreflightFailure, type LocalLabPreflightInput, type LocalLabPreflightOptions, type LocalLabPreflightResult, type LocalLabPreflightSuccess, type LocalLabProviderKind, type LocalLabRoleConfig, type LocalLlmProviderConfig, MEMCORRECT_CORRECTION_ACCEPTANCE_RUBRIC, MEMCORRECT_CORRECTION_ACCEPTANCE_RUBRIC_VERSION, MEMCORRECT_STALE_HARM_RUBRIC, MEMCORRECT_STALE_HARM_RUBRIC_VERSION, MEMORY_EVAL_DIMENSIONS, MEMORY_EVAL_PUBLIC_LINE, MIN_CALIBRATION_SOURCE_TASKS, MITIGATED_BASELINE_SCENARIOS, type McpArgumentSemantic, type McpBackendErrorCode, type McpBackendResult, type McpBenchMemoryAdapter, type McpConformanceResult, type McpHttpTransportConfig, type McpListedTool, type McpMemCorrectAdapter, type McpMemoryAdapterOptions, McpMemoryBackendError, type McpMemoryToolMapping, type McpMemoryTransportConfig, type McpStdioTransportConfig, type McpToolCallResult, type McpToolClient, type McpToolMappingEntry, type McpToolMappingValue, type McpToolOperation, type Mem0AdapterConfig, Mem0MemCorrectAdapter, type MemCorrectGeneratorOptions, type MemCorrectJudgeRequest, type MemCorrectJudgeResult, type MemCorrectSystemAdapter, type MemoryEvalCategory, type MemoryEvalDimension, type MemoryEvalDimensionId, type MemoryEvalMetric, type MemoryGraph, type MemoryStats, type MemorySystem, type Message, type MetricAggregate, type MicroMetric, MissingCredentialError, type MitigatedBaselineConfig, type MitigatedTargetConfig, type MultipleChoiceQuestion, OPENAI_RESPONSES_JUDGE_RUBRIC_VERSION, OTHER_NAMESPACE_MEMORIES, type OllamaProviderConfig, type OpenAiCompatibleProviderConfig, OpenAiResponsesJudgeError, type OpenAiResponsesJudgeErrorCode, type OpenAiResponsesJudgeTelemetry, OpenAiResponsesProvider, type OpenAiResponsesProviderConfig, type OpenAiResponsesVerdict, type OpenAiResponsesVerdictResult, PROCEDURAL_REAL_SCENARIOS, PROCEDURAL_REAL_SCENARIOS_SMOKE, PUBLISHED_BENCHMARK_ARTIFACT_IDS, type PersonalizationRetrievalCase, type PreflightDiscoveredModel, type ProceduralAblationArtifact, type ProceduralAblationPerCase, type ProceduralAblationScenario, type ProceduralRealScenario, type ProceduralRealScenarioCategory, type ProviderBaseConfig, type ProviderConfig, type ProviderDiscoveryResult, type ProviderFactoryConfig, type PublishSkipReason, type PublishSkipRecord, type PublishedBenchmarkFeed, type PublishedBenchmarkFeedEntry, type PublishedBenchmarkId, REQUIRED_FRONTMATTER_FIELDS, type RecallMetrics, type RecoveredMemory, type RegressionDetail, type RegressionGateResult$1 as RegressionGateResult, type RemnicAdapterOptions, type ReportCardProvenanceContext, type ResolveBenchRuntimeProfileOptions, type ResolvedBenchRuntimeProfile, type ResolvedLocalLabProfile, type ResolvedLocalLabRole, type ResolvedRunBenchmarkOptions, type RotatedChoices, type RunBenchmarkOptions, type RunJudgeCalibrationOptions, type RunProceduralAblationCliArgs, type RunProceduralAblationOptions, type RunSequentialPhasesOptions, SCHEMA_TIER_FIXTURE, SCHEMA_TIER_SMOKE_FIXTURE, SEALED_PROMPT_REGISTRY, SINGLE_FLAG_ABLATION_MATRIX, SYNTHETIC_MEMORIES, type SanitizedDiagnosticProvider, type SavedBaseline, type SchemaTierCorpus, type SchemaTierFixture, type SchemaTierName, type SchemaTierPage, type SchemaTierPageFrontmatter, type SealedArtifact, type SealedJudgeDecision, type SealedJudgeInput, type SealedQrelsArtifact, type SealedQrelsHandle, type SealedRubric, type SearchResult, type SeededMemory, type SeededRng, type SequentialPhaseHooks, type SingleFlagAblationCell, type SingleFlagAblationId, type SpotCheckLogger, type StatisticalReport, type StructuredJudge, StructuredJudgeError, type StructuredJudgeErrorCode, type StructuredJudgeProvider, type StructuredJudgeTelemetry, type StructuredJudgeVerdict, type StructuredJudgeVerdictResult, type StructuredVerdictRequest, type SyntheticEdge, type SyntheticEmailIngestionAdapterOptions, type SyntheticFileIR, type SyntheticRepoConfig, type SyntheticSymbol, type SyntheticTargetOptions, type TaskResult, type TaskTokenUsage, type TemporalRetrievalCase, type ThirdPartyAdapterConfig, type TierDetail, type TimelineEntry, type TokenUsage, type WallMetric, type WriteBenchmarkArtifactResult, type ZepAdapterConfig, ZepMemCorrectAdapter, addContaminationEntry, aggregateTaskScores, answerBenchmarkQuestion, assertCanaryUnderFloor, assertIntegrityMetaPresent, assertPublishableIntegrity, assertSha256Hex, assistantMeetingPrepDefinition, assistantMorningBriefDefinition, assistantNextBestActionDefinition, assistantSynthesisDefinition, backlinkF1, binarizeJudgeScore, bootstrapCohensKappaConfidenceInterval, bootstrapMeanConfidenceInterval, buildAmaBenchDiagnosticMatrixArtifact, buildAmaBenchDiagnosticVariantSummary, buildAmaBenchLeaderboardRows, buildBaselineFromReport, buildBenchmarkArtifact, buildBenchmarkArtifactFilename, buildBenchmarkPublishFeed, buildBenchmarkReproManifest, buildBenchmarkRunSeeds, buildBuildWeekEvidenceReceipt, buildCodexCreditReceipt, buildJudgePayload, buildOracleTrajectoryRecall, buildProviderFreeLoCoMoRetrievalConfig, buildSchemaTierFixture, buildSchemaTierSmokeFixture, calculateCodexBudgetUnits, calendarFixture, canonicalJsonStringify, captureLoCoMoRetrievalTrace, captureMachineFingerprint, chatFixture, checkCodingGraphRegression, checkDatasetContamination, checkRegression, clampScore, cohensD, compareResults, computeCohensKappa, computeSealHash, containsAnswer, createSeededRng$1 as createAdamSeededRng, createAmaBenchDiagnosticAdapter, createAnthropicProvider, createCanaryAdapter, createClaudeCliProvider, createCodexCliProvider, createSeededRng as createCodingGraphSeededRng, createDeterministicSpotCheckLogger, createGatewayResponder, createLightweightAdapter, createLiteLlmProvider, createLocalLlmProvider, createMcpDemoMemCorrectAdapter, createMcpDemoMemoryAdapter, createMcpMemCorrectAdapter, createMcpMemoryAdapter, createMitigatedTarget, createOllamaProvider, createOpenAiCompatibleProvider, createOpenAiResponsesBenchJudge, createOpenAiResponsesProvider, createSeededRandom as createProceduralAblationSeededRandom, createProvider, createProviderBackedAmaBenchRecommendedJudge, createProviderBackedJudge, createProviderBackedResponder, createProviderBackedStructuredJudge, createRemnicAdapter, createResponderFromProvider, createSeededRng$2 as createSeededRng, createSpotCheckFileLogger, createStructuredBenchJudge, createStructuredJudgeFromProvider, createSyntheticEmailIngestionAdapter, createSyntheticTarget, createTimeoutGuardedAdapter, defaultBenchmarkBaselineDir, defaultBenchmarkPublishPath, deleteBenchmarkResults, diagnoseLoCoMoRetrievalTraceDelta, diagnoseLoComoProfileDelta, diagnoseLoComoRecallDelta, discoverAllProviders, discoveryEndpointFor, emailFixture, entityRecall, exactMatch, extractMetrics as extractCodingGraphMetrics, extractMarkdownSectionsByTitle, f1Score, fixtureToAblationScenarios, formatHandoffNote, formatMissingDatasetError, generateReport, generateSyntheticRepo, getAblationCell, getBenchmark, getBenchmarkLowerIsBetter, getGitSha, getMemoryEvalDimension, getProviderBackedJudgePromptIdentity, getRemnicVersion, hashBenchmarkArtifact, hashBytes, hashCanonicalJson, hashOrderedQuestionIds, hashString, integrityMetaIsComplete, interpretEffectSize, isAmaBenchUnknownLikeAnswer, isContaminationEntry, isContaminationManifest, isSealedQrelsArtifact, isSha256Hex, isStructuredJudgeProvider, judgeMemCorrectCorrectionAcceptance, judgeMemCorrectStaleMemoryHarm, linkMatches, listBenchmarkBaselines, listBenchmarkResults, listBenchmarks, listMemoryEvalBenchmarkIds, listMemoryEvalDimensions, llmJudgeScore, llmJudgeScoreDetailed, loadAblationFixture, loadBaseline, loadBeamDatasetPreview, loadBenchmarkArtifact, loadBenchmarkBaseline, loadBenchmarkReportCardProvenance, loadBenchmarkResult, loadCustomBenchmarkFile, loadJudgeCalibrationState, loadLoCoMo10, loadLocalLabManifest, loadLongMemEvalS, loadSealKeyFromEnv, loadSealedQrels, loadSealedRubric, matchEntity, mergeContaminationManifests, openSeal, orchestrateBenchmarkRuns, pairedDeltaConfidenceInterval, parseBenchmarkArtifact, parseCustomBenchmark, parseLocalLabManifest, parseRubricResponse, parseSealedQrels, pickStableQualifiedName, precisionAtK, preflightLoCoMoRetrievalTraceCapture, preflightLocalLabRole, projectFolderFixture, recallAtK, reconcileCodexCreditLedger, redactBenchmarkResultSecrets, renderBaselineMarkdown, renderBenchmarkResultExport, renderLoComoProfileDeltaMarkdown, renderLoComoRecallDeltaMarkdown, renderMemorySummaryForJudge, renderMemoryViewForAgent, resolveAssistantAgent, resolveAssistantRubricId, resolveAssistantSeeds, resolveAssistantSpotCheckDir, resolveBenchRuntimeProfile, resolveBenchmarkPhaseTimeoutMs, resolveBenchmarkProgressLogging, resolveBenchmarkResultReference, resolveBenchmarkRunCount, resolveLocalLabJudgeProviderConfig, resolveLocalLabProfile, resolveLocalLabRole, resolveStructuredJudge, rotateDistractors, rougeL, runAssistantBenchmark, runAssistantMeetingPrepBenchmark, runAssistantMorningBriefBenchmark, runAssistantNextBestActionBenchmark, runAssistantSynthesisBenchmark, runBaseline, runBenchSuite, runBenchmark, runCodingGraphBenchmark, runCustomBenchmarkFile, runExplain, runExtractionAttack, runJudgeCalibration, runMitigatedBaseline, runProceduralAblation, runProceduralAblationCli, runSealedJudge, runSequentialPhases, safeHexEqual, sanitizeLoComoResultReference, saveBaseline, saveBenchmarkBaseline, schemaCompleteness, sealPayload, selectAmaBenchDiagnosticVariants, selectCalibrationSlice, selectFixtureVariant, serializeBenchmarkArtifact, serializeBuildWeekEvidenceReceipt, serializeJsonl, serializeLoCoMoRetrievalTraceDelta, serializeLoCoMoRetrievalTraceReceipt, serializeSealedQrels, shuffleTasks, timed, verifyRubricDigest, writeBenchmarkArtifact, writeBenchmarkPublishFeed, writeBenchmarkReproManifest, writeBenchmarkResult, writeBuildWeekEvidenceReceipt, writeJudgeCalibrationState, writeLeaderboardArtifactsForResult, zeroScores };
|
|
5784
|
+
export { AMA_BENCH_DIAGNOSTIC_VARIANTS, ASSISTANT_AGENT_CONFIG_KEY, ASSISTANT_JUDGE_CONFIG_KEY, ASSISTANT_MEETING_PREP_SCENARIOS, ASSISTANT_MEETING_PREP_SMOKE_SCENARIOS, ASSISTANT_MORNING_BRIEF_SCENARIOS, ASSISTANT_MORNING_BRIEF_SMOKE_SCENARIOS, ASSISTANT_NEXT_BEST_ACTION_SCENARIOS, ASSISTANT_NEXT_BEST_ACTION_SMOKE_SCENARIOS, ASSISTANT_RUBRIC_DIMENSIONS, ASSISTANT_RUBRIC_ID_KEY, ASSISTANT_SEEDS_CONFIG_KEY, ASSISTANT_SPOT_CHECK_DIR_KEY, ASSISTANT_SYNTHESIS_SCENARIOS, ASSISTANT_SYNTHESIS_SMOKE_SCENARIOS, type AblationConfigOverrides, type AbstentionRetrievalCase, type AggregateMetrics, type AmaBenchDiagnosticAdapterOptions, type AmaBenchDiagnosticAnswererMode, type AmaBenchDiagnosticBreakdown, type AmaBenchDiagnosticMatrixArtifact, type AmaBenchDiagnosticRecallMode, type AmaBenchDiagnosticRunContext, type AmaBenchDiagnosticTaskEvidence, type AmaBenchDiagnosticTaskRow, type AmaBenchDiagnosticVariant, type AmaBenchDiagnosticVariantSummary, type AnthropicProviderConfig, type AssistantAgent, type AssistantMemoryFact, type AssistantMemoryGraph, type AssistantRubricDimension, type AssistantRubricRequest, type AssistantRubricScores, type AssistantRunnerOptions, type AssistantScenario, type AssistantStance, type AttackRecallOptions, type AttackRetrievalHit, type AttackerMode, BENCHMARK_ARTIFACT_SCHEMA_VERSION, BENCHMARK_INTEGRITY_META_SCHEMA, BENCHMARK_REPRO_MANIFEST_FILENAME, BENCHMARK_REPRO_MANIFEST_SCHEMA_VERSION, BENCHMARK_RESULT_SCHEMA, BENCHMARK_SPLIT_TYPES, BUILD_WEEK_EVIDENCE_RECEIPT_SCHEMA_VERSION, BUILD_WEEK_LIMITATIONS, type BaselineRow, type BaselineScenario, type BeamDatasetPreview, type BenchConfig, type BenchJudge, type BenchJudgeResult, type BenchMemoryAdapter, type BenchModelSource, type BenchReasoningEffort, type BenchRecallLineageStatus, type BenchRecallOptions, type BenchRecallSupportAssessment, type BenchRecallSupportRequest, type BenchRecallSupportStatus, type BenchRecallTrace, type BenchRecallTraceCoreCapture, type BenchRecallTraceLcmCandidate, type BenchRecallTraceRange, type BenchRecallTraceSection, type BenchRecallTraceSelection, type BenchRecallWithTraceResult, type BenchResponder, type BenchResponse, type BenchRuntimeProfile, type BenchTier, type BenchmarkArtifact, type BenchmarkArtifactEnvironment, type BenchmarkArtifactHardware, type BenchmarkArtifactJudgeCalibration, type BenchmarkArtifactPerTaskScore, type BenchmarkArtifactSystem, type BenchmarkArtifactTier, type BenchmarkCategory, type BenchmarkDefinition, type BenchmarkIntegrityMeta, type BenchmarkMeta, type BenchmarkMode, type BenchmarkReport, type BenchmarkReproManifest, type BenchmarkReproManifestDataset, type BenchmarkReproManifestFile, type BenchmarkReproManifestResult, type BenchmarkResult, type BenchmarkSplitType, type BenchmarkStatus, type BenchmarkSuiteResult, type BenchmarkTier, type BootstrapKappaOptions, type BootstrapKappaResult, type BuildBenchmarkArtifactInput, type BuildBenchmarkPublishFeedOptions, type BuildBenchmarkReproManifestOptions, type BuildBuildWeekEvidenceReceiptOptions, type BuildWeekEvidenceReceipt, type BuildWeekEvidenceReceiptProvider, type BuildWeekLimitationCode, type BuiltInProvider, CALIBRATION_SLICE_SIZE, CANARY_FIXED_RECALL, CANARY_SCORE_FLOOR, DEFAULT_10K_FIXTURE as CODING_GRAPH_10K_FIXTURE, CODING_GRAPH_BENCH_SCHEMA_VERSION, DEFAULT_TOLERANCE_PERCENT as CODING_GRAPH_DEFAULT_TOLERANCE, MIN_ITERATIONS as CODING_GRAPH_MIN_ITERATIONS, DEFAULT_SMOKE_FIXTURE as CODING_GRAPH_SMOKE_FIXTURE, type CalibrationAnswer, type CalibrationVerdictPair, type CanaryAdapterOptions, type CanaryFloorCheck, type CaptureLoCoMoRetrievalTraceOptions, type ClaudeCliProviderConfig, type CodexCliNativeUsage, type CodexCliProviderConfig, CodexCreditAccountingError, type CodexCreditBudgetConfig, CodexCreditDispatchError, type CodexCreditReceipt, type CodexCreditReceiptScope, type CodexCreditReconciliationReceipt, type CodingGraphBaseline, type CodingGraphBenchConfig, type CodingGraphBenchReport, type MachineFingerprint as CodingGraphMachineFingerprint, type CodingGraphMetricKey, type RegressionMetricDetail as CodingGraphRegressionDetail, type RegressionMetricKey as CodingGraphRegressionKey, type RegressionGateResult as CodingGraphRegressionResult, type CohenKappaResult, type ComparisonMetricDelta, type ComparisonResult, type CompletionOpts, type CompletionResult, type ConfidenceInterval, type ContaminationCheckResult, type ContaminationEntry, type ContaminationManifest, type CustomBenchmarkScoring, type CustomBenchmarkSpec, type CustomBenchmarkTask, DEFAULT_ABLATION_BENCHMARK, DEFAULT_ABLATION_BOOTSTRAP_SEED, DEFAULT_ASSISTANT_RUBRIC_ID, DEFAULT_BASELINE_SCENARIOS, DEFAULT_JUDGE_BINARIZATION_THRESHOLD, DEFAULT_KAPPA_BOOTSTRAP_SAMPLES, DEFAULT_KAPPA_CONFIDENCE_LEVEL, DEFAULT_OPENAI_RESPONSES_JUDGE_MODEL, type DatasetSource, type DiagnoseLoComoProfileDeltaOptions, type DiagnoseLoComoRecallDeltaOptions, type DiscoveredModel, EMPTY_CONTAMINATION_MANIFEST, type EffectSizeInterpretation, type EffectSizeSummary, type ExplainResult, type ExtractedEntity, type ExtractedLink, type ExtractedPage, type ExtractionAttackOptions, type ExtractionAttackResult, type ExtractionAttackTarget, type FixtureGenerator, type FixtureOutput, type FixtureVariant, GENERAL_ANSWER_JUDGE_RUBRIC, type GeneratedFile, type GeneratedRepo, type GoldEntity, type GoldEntityType, type GoldGraph, type GoldLink, type GoldPage, type HarnessRng, INTEGRITY_CIPHER_ALGORITHM, INTEGRITY_HASH_ALGORITHM, INTEGRITY_META_FIELDS, type IngestionBenchAdapter, type IngestionLog, JUDGE_CALIBRATION_KAPPA_THRESHOLD, JUDGE_CALIBRATION_PROTOCOL_VERSION, type JudgeCalibrationCheckpointProvenance, type JudgeCalibrationIdentities, type JudgeCalibrationResult, type JudgeCategory, type KappaConfidenceInterval, LOCAL_LAB_PROVIDER_KINDS, LOCOMO_DATASET_FILENAMES, LOCOMO_FULL_TASK_COUNT, LOCOMO_RECALL_DIFF_LINE_LIMIT, LOCOMO_RECALL_EXCERPT_CHARS, LOCOMO_RETRIEVAL_TRACE_BUDGET_VERSION, LOCOMO_RETRIEVAL_TRACE_DELTA_SCHEMA_VERSION, LOCOMO_RETRIEVAL_TRACE_SCHEMA_VERSION, LOCOMO_RETRIEVAL_TRACE_SELECTION_VERSION, LONG_MEM_EVAL_DATASET_FILENAMES, type LeaderboardArtifactWrite, type LettaAdapterConfig, LettaMemCorrectAdapter, type LlmJudge, type LlmProvider, type LoCoMoCategory, type LoCoMoRetrievalMechanism, type LoCoMoRetrievalMechanismSummary, type LoCoMoRetrievalSessionReceipt, type LoCoMoRetrievalStructuralTrace, type LoCoMoRetrievalTaskDelta, type LoCoMoRetrievalTaskReceipt, type LoCoMoRetrievalTraceCoreCaptureReceipt, type LoCoMoRetrievalTraceDeltaReport, type LoCoMoRetrievalTraceProfile, type LoCoMoRetrievalTraceReceipt, type LoCoMoRetrievalTraceSelectionManifest, type LoCoMoRetrievalTraceSelector, type LoCoMoStructuralMultisetDelta, type LoComoCategoryDelta, type LoComoFinalContextRegression, type LoComoMetricDelta, type LoComoProfileArtifactEvidence, type LoComoProfileDeltaReport, type LoComoRawResultEvidence, type LoComoRecallCategoryDelta, type LoComoRecallContextSummary, type LoComoRecallDeltaReport, type LoComoRecallLineDelta, type LoComoRecallLineEvidence, type LoComoRecallMetricDelta, type LoComoRecallResultProvenance, type LoComoRecallTextDigest, type LoComoTaskRegression, type LoadDatasetOptions, type LoadSealedQrelsOptions, type LoadedDataset, type LoadedJudgeCalibrationState, type LocalLabManifest, type LocalLabManifestNotes, type LocalLabPhase, type LocalLabPhaseDescriptor, type LocalLabPhaseExecute, type LocalLabPhaseName, type LocalLabPhaseOutcome, LocalLabPreflightError, type LocalLabPreflightFailure, type LocalLabPreflightInput, type LocalLabPreflightOptions, type LocalLabPreflightResult, type LocalLabPreflightSuccess, type LocalLabProviderKind, type LocalLabRoleConfig, type LocalLlmProviderConfig, MEMCORRECT_CORRECTION_ACCEPTANCE_RUBRIC, MEMCORRECT_CORRECTION_ACCEPTANCE_RUBRIC_VERSION, MEMCORRECT_STALE_HARM_RUBRIC, MEMCORRECT_STALE_HARM_RUBRIC_VERSION, MEMORY_EVAL_DIMENSIONS, MEMORY_EVAL_PUBLIC_LINE, MIN_CALIBRATION_SOURCE_TASKS, MITIGATED_BASELINE_SCENARIOS, type McpArgumentSemantic, type McpBackendErrorCode, type McpBackendResult, type McpBenchMemoryAdapter, type McpConformanceResult, type McpHttpTransportConfig, type McpListedTool, type McpMemCorrectAdapter, type McpMemoryAdapterOptions, McpMemoryBackendError, type McpMemoryToolMapping, type McpMemoryTransportConfig, type McpStdioTransportConfig, type McpToolCallResult, type McpToolClient, type McpToolMappingEntry, type McpToolMappingValue, type McpToolOperation, type Mem0AdapterConfig, Mem0MemCorrectAdapter, type MemCorrectGeneratorOptions, type MemCorrectJudgeRequest, type MemCorrectJudgeResult, type MemCorrectSystemAdapter, type MemoryEvalCategory, type MemoryEvalDimension, type MemoryEvalDimensionId, type MemoryEvalMetric, type MemoryGraph, type MemoryStats, type MemorySystem, type Message, type MetricAggregate, type MicroMetric, MissingCredentialError, type MitigatedBaselineConfig, type MitigatedTargetConfig, type MultipleChoiceQuestion, OPENAI_RESPONSES_JUDGE_RUBRIC_VERSION, OTHER_NAMESPACE_MEMORIES, type OllamaProviderConfig, type OpenAiCompatibleProviderConfig, OpenAiResponsesJudgeError, type OpenAiResponsesJudgeErrorCode, type OpenAiResponsesJudgeTelemetry, OpenAiResponsesProvider, type OpenAiResponsesProviderConfig, type OpenAiResponsesVerdict, type OpenAiResponsesVerdictResult, PROCEDURAL_REAL_SCENARIOS, PROCEDURAL_REAL_SCENARIOS_SMOKE, PUBLISHED_BENCHMARK_ARTIFACT_IDS, type PersonalizationRetrievalCase, type PreflightDiscoveredModel, type ProceduralAblationArtifact, type ProceduralAblationPerCase, type ProceduralAblationScenario, type ProceduralRealScenario, type ProceduralRealScenarioCategory, type ProviderBaseConfig, type ProviderConfig, type ProviderDiscoveryResult, type ProviderFactoryConfig, type PublishSkipReason, type PublishSkipRecord, type PublishedBenchmarkFeed, type PublishedBenchmarkFeedEntry, type PublishedBenchmarkId, REQUIRED_FRONTMATTER_FIELDS, type RecallMetrics, type RecoveredMemory, type RegressionDetail, type RegressionGateResult$1 as RegressionGateResult, type RemnicAdapterOptions, type ReportCardProvenanceContext, type ResolveBenchRuntimeProfileOptions, type ResolvedBenchRuntimeProfile, type ResolvedLocalLabProfile, type ResolvedLocalLabRole, type ResolvedRunBenchmarkOptions, type RotatedChoices, type RunBenchmarkOptions, type RunJudgeCalibrationOptions, type RunProceduralAblationCliArgs, type RunProceduralAblationOptions, type RunSequentialPhasesOptions, SCHEMA_TIER_FIXTURE, SCHEMA_TIER_SMOKE_FIXTURE, SEALED_PROMPT_REGISTRY, SINGLE_FLAG_ABLATION_MATRIX, SYNTHETIC_MEMORIES, type SanitizedDiagnosticProvider, type SavedBaseline, type SchemaTierCorpus, type SchemaTierFixture, type SchemaTierName, type SchemaTierPage, type SchemaTierPageFrontmatter, type SealedArtifact, type SealedJudgeDecision, type SealedJudgeInput, type SealedQrelsArtifact, type SealedQrelsHandle, type SealedRubric, type SearchResult, type SeededMemory, type SeededRng, type SequentialPhaseHooks, type SingleFlagAblationCell, type SingleFlagAblationId, type SpotCheckLogger, type StatisticalReport, type StructuredJudge, StructuredJudgeError, type StructuredJudgeErrorCode, type StructuredJudgeProvider, type StructuredJudgeTelemetry, type StructuredJudgeVerdict, type StructuredJudgeVerdictResult, type StructuredVerdictRequest, type SyntheticEdge, type SyntheticEmailIngestionAdapterOptions, type SyntheticFileIR, type SyntheticRepoConfig, type SyntheticSymbol, type SyntheticTargetOptions, type TaskResult, type TaskTokenUsage, type TemporalRetrievalCase, type ThirdPartyAdapterConfig, type TierDetail, type TimelineEntry, type TokenUsage, type WallMetric, type WriteBenchmarkArtifactResult, type ZepAdapterConfig, ZepMemCorrectAdapter, addContaminationEntry, aggregateTaskScores, answerBenchmarkQuestion, assertCanaryUnderFloor, assertIntegrityMetaPresent, assertPublishableIntegrity, assertSha256Hex, assistantMeetingPrepDefinition, assistantMorningBriefDefinition, assistantNextBestActionDefinition, assistantSynthesisDefinition, backlinkF1, binarizeJudgeScore, bootstrapCohensKappaConfidenceInterval, bootstrapMeanConfidenceInterval, buildAmaBenchDiagnosticMatrixArtifact, buildAmaBenchDiagnosticVariantSummary, buildAmaBenchLeaderboardRows, buildBaselineFromReport, buildBenchmarkArtifact, buildBenchmarkArtifactFilename, buildBenchmarkPublishFeed, buildBenchmarkReproManifest, buildBenchmarkRunSeeds, buildBuildWeekEvidenceReceipt, buildCodexCreditReceipt, buildJudgePayload, buildOracleTrajectoryRecall, buildProviderFreeLoCoMoRetrievalConfig, buildSchemaTierFixture, buildSchemaTierSmokeFixture, calculateCodexBudgetUnits, calendarFixture, canonicalJsonStringify, captureLoCoMoRetrievalTrace, captureMachineFingerprint, chatFixture, checkCodingGraphRegression, checkDatasetContamination, checkRegression, clampScore, cohensD, compareResults, computeCohensKappa, computeSealHash, containsAnswer, createSeededRng$1 as createAdamSeededRng, createAmaBenchDiagnosticAdapter, createAnthropicProvider, createCanaryAdapter, createClaudeCliProvider, createCodexCliProvider, createSeededRng as createCodingGraphSeededRng, createDeterministicSpotCheckLogger, createGatewayResponder, createLightweightAdapter, createLiteLlmProvider, createLocalLlmProvider, createMcpDemoMemCorrectAdapter, createMcpDemoMemoryAdapter, createMcpMemCorrectAdapter, createMcpMemoryAdapter, createMitigatedTarget, createOllamaProvider, createOpenAiCompatibleProvider, createOpenAiResponsesBenchJudge, createOpenAiResponsesProvider, createSeededRandom as createProceduralAblationSeededRandom, createProvider, createProviderBackedAmaBenchRecommendedJudge, createProviderBackedJudge, createProviderBackedResponder, createProviderBackedStructuredJudge, createRemnicAdapter, createResponderFromProvider, createSeededRng$2 as createSeededRng, createSpotCheckFileLogger, createStructuredBenchJudge, createStructuredJudgeFromProvider, createSyntheticEmailIngestionAdapter, createSyntheticTarget, createTimeoutGuardedAdapter, defaultBenchmarkBaselineDir, defaultBenchmarkPublishPath, deleteBenchmarkResults, diagnoseLoCoMoRetrievalTraceDelta, diagnoseLoComoProfileDelta, diagnoseLoComoRecallDelta, discoverAllProviders, discoveryEndpointFor, emailFixture, entityRecall, exactMatch, extractMetrics as extractCodingGraphMetrics, extractMarkdownSectionsByTitle, f1Score, fixtureToAblationScenarios, formatHandoffNote, formatMissingDatasetError, generateReport, generateSyntheticRepo, getAblationCell, getBenchmark, getBenchmarkLowerIsBetter, getGitSha, getMemoryEvalDimension, getProviderBackedJudgePromptIdentity, getRemnicVersion, hashBenchmarkArtifact, hashBytes, hashCanonicalJson, hashOrderedQuestionIds, hashString, integrityMetaIsComplete, interpretEffectSize, isAmaBenchUnknownLikeAnswer, isContaminationEntry, isContaminationManifest, isSealedQrelsArtifact, isSha256Hex, isStructuredJudgeProvider, judgeMemCorrectCorrectionAcceptance, judgeMemCorrectStaleMemoryHarm, linkMatches, listBenchmarkBaselines, listBenchmarkResults, listBenchmarks, listMemoryEvalBenchmarkIds, listMemoryEvalDimensions, llmJudgeScore, llmJudgeScoreDetailed, loadAblationFixture, loadBaseline, loadBeamDatasetPreview, loadBenchmarkArtifact, loadBenchmarkBaseline, loadBenchmarkReportCardProvenance, loadBenchmarkResult, loadCustomBenchmarkFile, loadJudgeCalibrationState, loadLoCoMo10, loadLocalLabManifest, loadLongMemEvalS, loadSealKeyFromEnv, loadSealedQrels, loadSealedRubric, matchEntity, mergeContaminationManifests, openSeal, orchestrateBenchmarkRuns, pairedDeltaConfidenceInterval, parseBenchmarkArtifact, parseCodexJsonlUsage, parseCustomBenchmark, parseLocalLabManifest, parseRubricResponse, parseSealedQrels, pickStableQualifiedName, precisionAtK, preflightLoCoMoRetrievalTraceCapture, preflightLocalLabRole, projectFolderFixture, recallAtK, reconcileCodexCreditLedger, redactBenchmarkResultSecrets, renderBaselineMarkdown, renderBenchmarkResultExport, renderLoComoProfileDeltaMarkdown, renderLoComoRecallDeltaMarkdown, renderMemorySummaryForJudge, renderMemoryViewForAgent, resolveAssistantAgent, resolveAssistantRubricId, resolveAssistantSeeds, resolveAssistantSpotCheckDir, resolveBenchRuntimeProfile, resolveBenchmarkPhaseTimeoutMs, resolveBenchmarkProgressLogging, resolveBenchmarkResultReference, resolveBenchmarkRunCount, resolveCodexCreditBudgetConfig, resolveLocalLabJudgeProviderConfig, resolveLocalLabProfile, resolveLocalLabRole, resolveStructuredJudge, rotateDistractors, rougeL, runAssistantBenchmark, runAssistantMeetingPrepBenchmark, runAssistantMorningBriefBenchmark, runAssistantNextBestActionBenchmark, runAssistantSynthesisBenchmark, runBaseline, runBenchSuite, runBenchmark, runCodingGraphBenchmark, runCustomBenchmarkFile, runExplain, runExtractionAttack, runJudgeCalibration, runMitigatedBaseline, runProceduralAblation, runProceduralAblationCli, runSealedJudge, runSequentialPhases, runWithinCodexCreditBudget, safeHexEqual, sanitizeLoComoResultReference, saveBaseline, saveBenchmarkBaseline, schemaCompleteness, sealPayload, selectAmaBenchDiagnosticVariants, selectCalibrationSlice, selectFixtureVariant, serializeBenchmarkArtifact, serializeBuildWeekEvidenceReceipt, serializeJsonl, serializeLoCoMoRetrievalTraceDelta, serializeLoCoMoRetrievalTraceReceipt, serializeSealedQrels, shuffleTasks, timed, verifyRubricDigest, writeBenchmarkArtifact, writeBenchmarkPublishFeed, writeBenchmarkReproManifest, writeBenchmarkResult, writeBuildWeekEvidenceReceipt, writeJudgeCalibrationState, writeLeaderboardArtifactsForResult, zeroScores };
|
package/dist/index.js
CHANGED
|
@@ -5585,6 +5585,43 @@ import {
|
|
|
5585
5585
|
serializeEntityFile,
|
|
5586
5586
|
StorageManager
|
|
5587
5587
|
} from "@remnic/core";
|
|
5588
|
+
|
|
5589
|
+
// src/adapters/with-bench-core-memory-source.ts
|
|
5590
|
+
import { composeMemoryEnvelope } from "@remnic/core";
|
|
5591
|
+
async function withBenchCoreMemorySource(orchestrator, source, task) {
|
|
5592
|
+
const storage = orchestrator.storage;
|
|
5593
|
+
const originalWriteSealedMemory = storage.writeSealedMemory;
|
|
5594
|
+
const boundWriteSealedMemory = originalWriteSealedMemory.bind(storage);
|
|
5595
|
+
storage.writeSealedMemory = async (envelope, extras) => {
|
|
5596
|
+
const requestedSource = envelope.source;
|
|
5597
|
+
const sourcedEnvelope = composeMemoryEnvelope(
|
|
5598
|
+
{
|
|
5599
|
+
content: envelope.content,
|
|
5600
|
+
category: envelope.category,
|
|
5601
|
+
tags: [...envelope.tags],
|
|
5602
|
+
structuredAttributes: envelope.rawStructuredAttributes ? { ...envelope.rawStructuredAttributes } : void 0,
|
|
5603
|
+
entityRef: envelope.entityRef,
|
|
5604
|
+
confidence: envelope.confidence,
|
|
5605
|
+
ttl: envelope.ttl,
|
|
5606
|
+
validAt: envelope.validAt,
|
|
5607
|
+
sourceConnector: envelope.sourceConnector,
|
|
5608
|
+
sourceReason: envelope.sourceReason
|
|
5609
|
+
},
|
|
5610
|
+
{
|
|
5611
|
+
source: !requestedSource || requestedSource === "extraction" ? source : requestedSource,
|
|
5612
|
+
now: () => new Date(envelope.composedAt)
|
|
5613
|
+
}
|
|
5614
|
+
);
|
|
5615
|
+
return boundWriteSealedMemory(sourcedEnvelope, extras);
|
|
5616
|
+
};
|
|
5617
|
+
try {
|
|
5618
|
+
await task();
|
|
5619
|
+
} finally {
|
|
5620
|
+
storage.writeSealedMemory = originalWriteSealedMemory;
|
|
5621
|
+
}
|
|
5622
|
+
}
|
|
5623
|
+
|
|
5624
|
+
// src/adapters/remnic-adapter.ts
|
|
5588
5625
|
import {
|
|
5589
5626
|
lcmEvidenceIdentity
|
|
5590
5627
|
} from "@remnic/core/lcm";
|
|
@@ -6704,25 +6741,6 @@ async function rememberNewBenchCoreMemories(orchestrator, sessionMemoryIds, sess
|
|
|
6704
6741
|
sessionMemoryIds.set(sessionId, remembered);
|
|
6705
6742
|
}
|
|
6706
6743
|
}
|
|
6707
|
-
async function withBenchCoreMemorySource(orchestrator, sessionId, task) {
|
|
6708
|
-
const storage = orchestrator.storage;
|
|
6709
|
-
const originalWriteMemory = storage.writeMemory;
|
|
6710
|
-
const writeMemory = originalWriteMemory.bind(orchestrator.storage);
|
|
6711
|
-
const source = benchCoreMemorySource(sessionId);
|
|
6712
|
-
storage.writeMemory = async (...args) => {
|
|
6713
|
-
const [category, content, options] = args;
|
|
6714
|
-
const requestedSource = options?.source;
|
|
6715
|
-
return writeMemory(category, content, {
|
|
6716
|
-
...options ?? {},
|
|
6717
|
-
source: !requestedSource || requestedSource === "extraction" ? source : requestedSource
|
|
6718
|
-
});
|
|
6719
|
-
};
|
|
6720
|
-
try {
|
|
6721
|
-
await task();
|
|
6722
|
-
} finally {
|
|
6723
|
-
storage.writeMemory = originalWriteMemory;
|
|
6724
|
-
}
|
|
6725
|
-
}
|
|
6726
6744
|
async function clearBenchCoreSessionMemories(orchestrator, sessionId, memoryIds, coldCollection) {
|
|
6727
6745
|
const memories = [
|
|
6728
6746
|
...await orchestrator.storage.readAllMemories(),
|
|
@@ -7255,7 +7273,7 @@ function createAdapterFactory(mode) {
|
|
|
7255
7273
|
try {
|
|
7256
7274
|
replayIngestion = withBenchCoreMemorySource(
|
|
7257
7275
|
replayOrchestrator,
|
|
7258
|
-
sessionId,
|
|
7276
|
+
benchCoreMemorySource(sessionId),
|
|
7259
7277
|
() => withBenchEntityStructuredFactCapture(
|
|
7260
7278
|
replayOrchestrator,
|
|
7261
7279
|
sessionId,
|
|
@@ -21490,6 +21508,27 @@ function formatMissingDatasetError(benchmark, datasetDir, filenames, errors) {
|
|
|
21490
21508
|
|
|
21491
21509
|
// src/benchmarks/published/harness.ts
|
|
21492
21510
|
import { randomUUID as randomUUID5 } from "crypto";
|
|
21511
|
+
|
|
21512
|
+
// src/benchmarks/published/category-aggregates.ts
|
|
21513
|
+
function computeCategoryAggregates(tasks) {
|
|
21514
|
+
const scoresByCategory = /* @__PURE__ */ new Map();
|
|
21515
|
+
for (const task of tasks) {
|
|
21516
|
+
const categoryName = task.details?.categoryName;
|
|
21517
|
+
if (typeof categoryName !== "string" || categoryName.trim().length === 0) {
|
|
21518
|
+
continue;
|
|
21519
|
+
}
|
|
21520
|
+
const bucket = scoresByCategory.get(categoryName);
|
|
21521
|
+
if (bucket) {
|
|
21522
|
+
bucket.push(task.scores);
|
|
21523
|
+
} else {
|
|
21524
|
+
scoresByCategory.set(categoryName, [task.scores]);
|
|
21525
|
+
}
|
|
21526
|
+
}
|
|
21527
|
+
const sortedEntries = [...scoresByCategory.entries()].sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0);
|
|
21528
|
+
return Object.fromEntries(sortedEntries.map(([categoryName, scores]) => [categoryName, aggregateTaskScores(scores)]));
|
|
21529
|
+
}
|
|
21530
|
+
|
|
21531
|
+
// src/benchmarks/published/harness.ts
|
|
21493
21532
|
async function* toAsyncIterable(iter) {
|
|
21494
21533
|
for await (const value of iter) {
|
|
21495
21534
|
yield value;
|
|
@@ -21614,6 +21653,11 @@ async function executeTrialWithFailure(ctx, trial, planIndex, answerSupportGate)
|
|
|
21614
21653
|
latencyMs: 0,
|
|
21615
21654
|
tokens: { input: 0, output: 0 },
|
|
21616
21655
|
details: {
|
|
21656
|
+
// Preserve the trial's category so a failed trial is still attributed
|
|
21657
|
+
// to its per-category bucket (computeCategoryAggregates), keeping the
|
|
21658
|
+
// per-category breakdown consistent with the overall aggregates that
|
|
21659
|
+
// already count this failure row (issue #1878).
|
|
21660
|
+
...typeof trial.extraDetails?.categoryName === "string" ? { categoryName: trial.extraDetails.categoryName } : {},
|
|
21617
21661
|
// `error` is retained for compatibility with existing diagnostics.
|
|
21618
21662
|
// The structured marker is the authoritative run-status signal; an
|
|
21619
21663
|
// arbitrary benchmark-owned `extraDetails.error` must not make a
|
|
@@ -21981,6 +22025,7 @@ async function buildBenchmarkResult(ctx, tasks, executionProvenance) {
|
|
|
21981
22025
|
}];
|
|
21982
22026
|
});
|
|
21983
22027
|
const failureReason = failedTasks.length > 0 ? `trial_execution_failure: ${failedTasks.length}/${tasks.length} scored trial(s) failed (${failedTasks.slice(0, 3).map((failure) => `${failure.taskId}: ${failure.message.slice(0, 240)}`).join("; ")}${failedTasks.length > 3 ? `; and ${failedTasks.length - 3} more` : ""})` : void 0;
|
|
22028
|
+
const categoryAggregates = computeCategoryAggregates(tasks);
|
|
21984
22029
|
return {
|
|
21985
22030
|
meta: {
|
|
21986
22031
|
id: randomUUID5(),
|
|
@@ -22012,7 +22057,11 @@ async function buildBenchmarkResult(ctx, tasks, executionProvenance) {
|
|
|
22012
22057
|
},
|
|
22013
22058
|
results: {
|
|
22014
22059
|
tasks,
|
|
22015
|
-
aggregates: aggregateTaskScores(tasks.map((task) => task.scores))
|
|
22060
|
+
aggregates: aggregateTaskScores(tasks.map((task) => task.scores)),
|
|
22061
|
+
// Per-category breakdown for benchmarks that stamp a `categoryName`
|
|
22062
|
+
// detail (LoCoMo). Omitted when empty so other benchmarks' output shape
|
|
22063
|
+
// is unchanged (issue #1878).
|
|
22064
|
+
...Object.keys(categoryAggregates).length > 0 ? { categoryAggregates } : {}
|
|
22016
22065
|
},
|
|
22017
22066
|
environment: {
|
|
22018
22067
|
os: process.platform,
|
|
@@ -32505,6 +32554,7 @@ import {
|
|
|
32505
32554
|
buildProcedureRecallSection,
|
|
32506
32555
|
buildProcedureMarkdownBody
|
|
32507
32556
|
} from "@remnic/core";
|
|
32557
|
+
import { composeMemoryEnvelope as composeMemoryEnvelope2 } from "@remnic/core/write-envelope";
|
|
32508
32558
|
|
|
32509
32559
|
// src/benchmarks/remnic/procedural-recall/fixture.ts
|
|
32510
32560
|
var PROCEDURAL_RECALL_INTENT_FIXTURE = [
|
|
@@ -32632,12 +32682,18 @@ async function runProceduralRecallBenchmark(options) {
|
|
|
32632
32682
|
const storage = new StorageManager3(dir);
|
|
32633
32683
|
await storage.ensureDirectories();
|
|
32634
32684
|
const body = buildProcedureMarkdownBody(sample.procedureSteps);
|
|
32635
|
-
await storage.
|
|
32636
|
-
|
|
32637
|
-
|
|
32685
|
+
await storage.writeSealedMemory(
|
|
32686
|
+
composeMemoryEnvelope2(
|
|
32687
|
+
{
|
|
32688
|
+
content: `${sample.procedurePreamble}
|
|
32638
32689
|
|
|
32639
32690
|
${body}`,
|
|
32640
|
-
|
|
32691
|
+
category: "procedure",
|
|
32692
|
+
tags: sample.procedureTags
|
|
32693
|
+
},
|
|
32694
|
+
{ source: "bench" }
|
|
32695
|
+
),
|
|
32696
|
+
{}
|
|
32641
32697
|
);
|
|
32642
32698
|
const config = parseConfig3({
|
|
32643
32699
|
memoryDir: dir,
|
|
@@ -43918,6 +43974,7 @@ import {
|
|
|
43918
43974
|
buildProcedureRecallSection as buildProcedureRecallSection2,
|
|
43919
43975
|
buildProcedureMarkdownBody as buildProcedureMarkdownBody2
|
|
43920
43976
|
} from "@remnic/core";
|
|
43977
|
+
import { composeMemoryEnvelope as composeMemoryEnvelope3 } from "@remnic/core/write-envelope";
|
|
43921
43978
|
function scoreCase4(expectMatch, observedMatch) {
|
|
43922
43979
|
return observedMatch === expectMatch ? 1 : 0;
|
|
43923
43980
|
}
|
|
@@ -43948,12 +44005,18 @@ async function runSide(scenarios, proceduralEnabled) {
|
|
|
43948
44005
|
const storage = new StorageManager4(dir);
|
|
43949
44006
|
await storage.ensureDirectories();
|
|
43950
44007
|
const body = buildProcedureMarkdownBody2(scenario.procedureSteps);
|
|
43951
|
-
await storage.
|
|
43952
|
-
|
|
43953
|
-
|
|
44008
|
+
await storage.writeSealedMemory(
|
|
44009
|
+
composeMemoryEnvelope3(
|
|
44010
|
+
{
|
|
44011
|
+
content: `${scenario.procedurePreamble}
|
|
43954
44012
|
|
|
43955
44013
|
${body}`,
|
|
43956
|
-
|
|
44014
|
+
category: "procedure",
|
|
44015
|
+
tags: scenario.procedureTags
|
|
44016
|
+
},
|
|
44017
|
+
{ source: "bench" }
|
|
44018
|
+
),
|
|
44019
|
+
{}
|
|
43957
44020
|
);
|
|
43958
44021
|
const config = parseConfig5({
|
|
43959
44022
|
memoryDir: dir,
|
|
@@ -45827,6 +45890,8 @@ export {
|
|
|
45827
45890
|
DEFAULT_TOLERANCE_PERCENT as CODING_GRAPH_DEFAULT_TOLERANCE,
|
|
45828
45891
|
MIN_ITERATIONS as CODING_GRAPH_MIN_ITERATIONS,
|
|
45829
45892
|
DEFAULT_SMOKE_FIXTURE as CODING_GRAPH_SMOKE_FIXTURE,
|
|
45893
|
+
CodexCreditAccountingError,
|
|
45894
|
+
CodexCreditDispatchError,
|
|
45830
45895
|
DEFAULT_ABLATION_BENCHMARK,
|
|
45831
45896
|
DEFAULT_ABLATION_BOOTSTRAP_SEED,
|
|
45832
45897
|
DEFAULT_ASSISTANT_RUBRIC_ID,
|
|
@@ -46032,6 +46097,7 @@ export {
|
|
|
46032
46097
|
orchestrateBenchmarkRuns,
|
|
46033
46098
|
pairedDeltaConfidenceInterval,
|
|
46034
46099
|
parseBenchmarkArtifact,
|
|
46100
|
+
parseCodexJsonlUsage,
|
|
46035
46101
|
parseCustomBenchmark,
|
|
46036
46102
|
parseLocalLabManifest,
|
|
46037
46103
|
parseRubricResponse,
|
|
@@ -46059,6 +46125,7 @@ export {
|
|
|
46059
46125
|
resolveBenchmarkProgressLogging,
|
|
46060
46126
|
resolveBenchmarkResultReference,
|
|
46061
46127
|
resolveBenchmarkRunCount,
|
|
46128
|
+
resolveCodexCreditBudgetConfig,
|
|
46062
46129
|
resolveLocalLabJudgeProviderConfig,
|
|
46063
46130
|
resolveLocalLabProfile,
|
|
46064
46131
|
resolveLocalLabRole,
|
|
@@ -46083,6 +46150,7 @@ export {
|
|
|
46083
46150
|
runProceduralAblationCli,
|
|
46084
46151
|
runSealedJudge,
|
|
46085
46152
|
runSequentialPhases,
|
|
46153
|
+
runWithinCodexCreditBudget,
|
|
46086
46154
|
safeHexEqual,
|
|
46087
46155
|
sanitizeLoComoResultReference,
|
|
46088
46156
|
saveBaseline,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remnic/bench",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.8.0",
|
|
4
4
|
"description": "Retrieval latency ladder benchmarks + CI regression gates for @remnic/core",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
11
|
+
"remnic-source": "./src/index.ts",
|
|
11
12
|
"import": "./dist/index.js"
|
|
12
13
|
},
|
|
13
14
|
"./baselines/*": "./baselines/*",
|
|
@@ -39,8 +40,8 @@
|
|
|
39
40
|
"hyparquet": "^1.25.7",
|
|
40
41
|
"yaml": "^2.4.2",
|
|
41
42
|
"zod": "^3.24.0",
|
|
42
|
-
"@remnic/coding-graph": "^9.
|
|
43
|
-
"@remnic/core": "^9.
|
|
43
|
+
"@remnic/coding-graph": "^9.8.0",
|
|
44
|
+
"@remnic/core": "^9.8.0"
|
|
44
45
|
},
|
|
45
46
|
"devDependencies": {
|
|
46
47
|
"tsup": "^8.5.1",
|