@tangle-network/agent-eval 2.0.13 → 2.0.15
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/CHANGELOG.md +8 -0
- package/dist/analyst/index.d.ts +75 -1
- package/dist/analyst/index.d.ts.map +1 -1
- package/dist/analyst/index.js +2 -2
- package/dist/{benchmark-command-C7ObyGm9.js → benchmark-command-DgR1i30h.js} +264 -3
- package/dist/benchmark-command-DgR1i30h.js.map +1 -0
- package/dist/cli.js +1 -251
- package/dist/cli.js.map +1 -1
- package/dist/openapi.json +1 -1
- package/docs/skill-eval.md +2 -0
- package/package.json +1 -1
- package/dist/benchmark-command-C7ObyGm9.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,14 @@ All notable changes to `@tangle-network/agent-eval` and its sibling `agent-eval-
|
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
+
## [2.0.15] — 2026-11-26
|
|
8
|
+
|
|
9
|
+
- feat(skill-usage): a tool call that starts a subagent names its type
|
|
10
|
+
|
|
11
|
+
## [2.0.14] — 2026-11-26
|
|
12
|
+
|
|
13
|
+
- fix(analyst): export the Codex session reader and the change ledger readers
|
|
14
|
+
|
|
7
15
|
## [2.0.13] — 2026-11-26
|
|
8
16
|
|
|
9
17
|
- docs(search-ledger): the subscription cost basis
|
package/dist/analyst/index.d.ts
CHANGED
|
@@ -60,6 +60,12 @@ interface ToolCallEvent {
|
|
|
60
60
|
at: string | null;
|
|
61
61
|
/** null while the call has no recorded result. */
|
|
62
62
|
failed: boolean | null;
|
|
63
|
+
/**
|
|
64
|
+
* The subagent type the call started, for a harness whose sessions name it,
|
|
65
|
+
* such as Claude Code's `Agent` tool with `subagent_type`. Absent when the
|
|
66
|
+
* call starts no subagent or the session does not say which type.
|
|
67
|
+
*/
|
|
68
|
+
subagent?: string;
|
|
63
69
|
}
|
|
64
70
|
interface ModelCallEvent {
|
|
65
71
|
kind: 'model';
|
|
@@ -135,6 +141,61 @@ type SkillSessionRead = {
|
|
|
135
141
|
};
|
|
136
142
|
/** Any reader of session records: an array, a generator, or a store cursor. */
|
|
137
143
|
type SkillSessionSource = AsyncIterable<SkillSessionRead> | Iterable<SkillSessionRead>;
|
|
144
|
+
export declare const CHANGE_LEDGER_ACTIONS: readonly ["observed", "commit", "pr-create", "pr-merge", "turn", "push"];
|
|
145
|
+
type ChangeLedgerAction = (typeof CHANGE_LEDGER_ACTIONS)[number];
|
|
146
|
+
interface ChangeLedgerRow {
|
|
147
|
+
v: 1;
|
|
148
|
+
at: string;
|
|
149
|
+
harness: string;
|
|
150
|
+
sessionId: string;
|
|
151
|
+
agentId: string | null;
|
|
152
|
+
toolUseId: string | null;
|
|
153
|
+
action: ChangeLedgerAction;
|
|
154
|
+
remote: string | null;
|
|
155
|
+
sha: string | null;
|
|
156
|
+
pr: number | null;
|
|
157
|
+
/** The harness's own session id, from a writer that runs the harness for a caller. */
|
|
158
|
+
nativeSessionId?: string | null;
|
|
159
|
+
/** ISO start of the turn a gateway-written row belongs to. */
|
|
160
|
+
turnStartedAt?: string | null;
|
|
161
|
+
/** `turn` rows: why the turn's changes may not be complete; null or absent when they are. */
|
|
162
|
+
incomplete?: string | null;
|
|
163
|
+
}
|
|
164
|
+
/** A change a gateway saw in a turn, placed on the session record by the turn's time window. */
|
|
165
|
+
interface TimedChange {
|
|
166
|
+
ref: string;
|
|
167
|
+
from: string;
|
|
168
|
+
to: string;
|
|
169
|
+
}
|
|
170
|
+
/** What the ledger holds for one session or subagent. */
|
|
171
|
+
interface ChangeLedgerSession {
|
|
172
|
+
/** The writer ran in this session, so an empty `changes` is none. */
|
|
173
|
+
observed: boolean;
|
|
174
|
+
changes: SessionChange[];
|
|
175
|
+
/** Changes the writer saw but could not name: no repository, or no commit or pull request number. */
|
|
176
|
+
unnamed: number;
|
|
177
|
+
/** Changes of a writer that sees turns, which name no tool call; placed by time when the session is joined. */
|
|
178
|
+
timed: TimedChange[];
|
|
179
|
+
/** Reasons given by `turn` rows that said their changes may be incomplete, with how often. */
|
|
180
|
+
incomplete: Map<string, number>;
|
|
181
|
+
}
|
|
182
|
+
interface ChangeLedger {
|
|
183
|
+
/** By `harness`, a NUL, and the subagent's id or else the session's. */
|
|
184
|
+
sessions: ReadonlyMap<string, ChangeLedgerSession>;
|
|
185
|
+
rows: number;
|
|
186
|
+
/** Lines that are not a row of this format. */
|
|
187
|
+
malformed: number;
|
|
188
|
+
}
|
|
189
|
+
/** Read ledger text. A line that is not a row is counted, not skipped silently, and no row is guessed from it. */
|
|
190
|
+
export declare function parseChangeLedger(text: string): ChangeLedger;
|
|
191
|
+
/** Read one or more ledger files as one ledger. A file that cannot be read throws: a missing ledger is not an empty one. */
|
|
192
|
+
export declare function readChangeLedger(paths: readonly string[]): Promise<ChangeLedger>;
|
|
193
|
+
/**
|
|
194
|
+
* The sessions of `source` with their changes taken from the ledger as well as
|
|
195
|
+
* from the transcript. A session the ledger never observed keeps only the
|
|
196
|
+
* changes its transcript shows, and has none recorded when it shows none.
|
|
197
|
+
*/
|
|
198
|
+
export declare function withChangeLedger(source: SkillSessionSource, ledger: ChangeLedger): AsyncGenerator<SkillSessionRead>;
|
|
138
199
|
interface ClaudeCodeSkillSessionsOptions {
|
|
139
200
|
/** Skip transcripts not written since this instant (epoch ms): they hold nothing newer. */
|
|
140
201
|
sinceMs?: number;
|
|
@@ -146,6 +207,17 @@ interface ClaudeCodeSkillSessionsOptions {
|
|
|
146
207
|
* for a session with no skills. Throws when the directory itself cannot be read.
|
|
147
208
|
*/
|
|
148
209
|
export declare function claudeCodeSkillSessions(directory: string, options?: ClaudeCodeSkillSessionsOptions): AsyncGenerator<SkillSessionRead>;
|
|
210
|
+
interface CodexSkillSessionsOptions {
|
|
211
|
+
/** Skip rollouts not written since this instant (epoch ms): they hold nothing newer. */
|
|
212
|
+
sinceMs?: number;
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Every rollout under a Codex sessions directory (`~/.codex/sessions`, or one
|
|
216
|
+
* account's), one read per file: top-level threads and each subagent's own. A
|
|
217
|
+
* file or folder that cannot be read is a failed read with its reason. Throws
|
|
218
|
+
* when the directory itself cannot be read.
|
|
219
|
+
*/
|
|
220
|
+
export declare function codexSkillSessions(directory: string, options?: CodexSkillSessionsOptions): AsyncGenerator<SkillSessionRead>;
|
|
149
221
|
/** The text a harness loaded for one invocation, without harness framing or caller arguments. */
|
|
150
222
|
interface LoadedSkillText {
|
|
151
223
|
body: string;
|
|
@@ -179,6 +251,8 @@ interface HarnessSkillMarkers {
|
|
|
179
251
|
* session's `changes` as read, so a session with none records an empty list.
|
|
180
252
|
*/
|
|
181
253
|
changesOfToolCall?: (call: SessionToolCall) => readonly string[];
|
|
254
|
+
/** The subagent type a tool call starts, or null when it starts none or the call does not say. */
|
|
255
|
+
subagentOfToolCall?: (call: SessionToolCall) => string | null;
|
|
182
256
|
}
|
|
183
257
|
/**
|
|
184
258
|
* Project a normalized session into recorded order.
|
|
@@ -1929,5 +2003,5 @@ export declare function classifyTeamShape(input: TeamShapeInput): TeamShapeOutco
|
|
|
1929
2003
|
* timestamps fails the analyst instead of emitting a shape it did not measure.
|
|
1930
2004
|
*/
|
|
1931
2005
|
export declare function teamShapeAnalyst(): Analyst<TeamShapeInput>;
|
|
1932
|
-
export { type AgentRxBenchmarkCaseOptions, type AgentRxCalibrationRunnerSummary, type AgentRxCalibrationSummary, type AgentRxFailure, type AgentRxPrediction, type AgentRxPredictionReport, type AgentRxRow, type Analyst, type AnalystBenchmarkArtifact, type AnalystBenchmarkCase, type AnalystBenchmarkCommandConfig, type AnalystBenchmarkCommandDependencies, type AnalystBenchmarkDatasetRef, type AnalystBenchmarkDescriptor, type AnalystBenchmarkError, type AnalystBenchmarkLabelState, type AnalystBenchmarkLocalRunReceipt, type AnalystBenchmarkObservation, type AnalystBenchmarkOutput, type AnalystBenchmarkProgressRow, type AnalystBenchmarkProvenance, type AnalystBenchmarkResult, type AnalystBenchmarkRunIdentity, type AnalystBenchmarkRunManifest, type AnalystBenchmarkRunner, type AnalystBenchmarkSummary, type AnalystBudgetDeclaration, type AnalystComparisonMetric, type AnalystContext, type AnalystCost, type AnalystDefinition, type AnalystDefinitionAsymmetry, type AnalystDefinitionAsymmetryReport, type AnalystEvidenceBinding, type AnalystEvidenceExpectation, type AnalystEvidenceResolution, type AnalystEvidenceResolutionError, type AnalystEvidenceResolver, type AnalystFinding, type AnalystFindingSchemaVersion, type AnalystFindingScore, type AnalystHooks, type AnalystInputKind, type AnalystInstructionsOverride, type AnalystIssueExpectation, type AnalystLatencyDistribution, type AnalystMetricComparison, type AnalystProfileFragment, AnalystRegistry, type AnalystRegistryOptions, type AnalystRepairDeclaration, type AnalystRequirements, type AnalystRowExpansion, type AnalystRunEvent, type AnalystRunInputs, type AnalystRunResult, type AnalystRunSummary, type AnalystRunnerComparison, type AnalystSeverity, type AnalystTransportBinding, type AnalystUsageReceipt, type AskTraceQuestionsOptions, BEHAVIORAL_FAILURE_CLASS, BEHAVIORAL_TRACE_QUESTIONS, BEHAVIORAL_TRACE_QUESTIONS_VERSION, type BehavioralAnalystOptions, type BehavioralQuestionCalibration, type BehavioralTraceAnswer, type BehavioralTraceCalibrationRow, type BehavioralTraceEvent, type BehavioralTraceEventMap, type BehavioralTraceGold, type BehavioralTraceLayer, type BehavioralTraceQuestionId, type BehavioralTraceQuestionsOptions, type BehavioralTraceSupport, type BehavioralTraceWindow, type BehavioralWindowPolicy, type BudgetPolicy, CONTROL_INTEGRITY_ANALYST, type CalibrationInterval, type ChatCallOpts, type ChatClient, type ChatRequest, type ChatResponse, type ChatTraceEngineOptions, type ChatTransport, type ChoiceCalibration, type ChoiceGold, type ChoiceOptionCalibration, type ChoicePrediction, type ChunkedEvidenceBinding, type ClassCalibration, type ClaudeCodeSkillSessionsOptions, type CodeTraceBenchCaseOptions, type CodeTraceBenchLabelOptions, type CodeTraceBenchLabelSet, type CodeTraceBenchRow, type CodeTraceBlockDiagnostics, type CodeTraceCalibrationRunnerSummary, type CodeTraceCalibrationSummary, type CodeTraceFailureBlock, type CodeTraceStageAnnotation, type CodeTracerLabelGroup, type CodeTracerPredictionAdapterOptions, type CodeTracerPredictions, type CodeTracerStepLabel, ControlIntegrityAnalyst, type CreateChatClientOpts, type CreateTraceAnalystOptions, type CustomTransportOpts, DEFAULT_TRACE_ANALYST_KINDS, type DecodedReply, type DefaultAnalystRegistryOptions, type DefineCustomAnalystOptions, type DefineExactCustomAnalystOptions, type DiffPolicy, type DomainTaxonomy, type DspyRlmTraceEngineOptions, type EvidenceProjection, type EvidenceRef, type ExactAnalystBudgetPolicy, type ExactAnalystBudgetSnapshot, type ExactAnalystExecutionPlanSnapshot, type ExactAnalystRunCompletion, type ExactAnalystRunEvent, ExactAnalystRunExecutionError, type ExactAnalystRunPolicySnapshot, type ExactAnalystRunResult, type ExactAnalystRunSummary, type ExactAnalystSnapshot, type ExactCapableAnalyst, type ExactExecutionComponentIdentity, type ExactExecutionComponentSnapshot, type ExactRegistryRunOpts, type ExecutionProbe, type ExecutionProbeOutcome, type ExecutionProbeRequest, type ExpandRowsArgs, FAILURE_MODE_KIND_SPEC, FINDING_LAYERS, FINDING_SUBJECT_KINDS, FINDING_SUBJECT_SYNTAX, type FailureModeGold, type FailureModeGoldSources, type FailureModeLabel, type FailureModeLabelItem, type FailureModesAnalystOptions, type FailureModesCalibration, type FailureModesOutcome, type FindingCalibration, type FindingConditions, type FindingEvidenceUnit, type FindingLayer, type FindingMeasure, type FindingMethod, type FindingParseOutcome, type FindingReaderLabel, type FindingScope, type FindingScopeReading, type FindingSubject, type FindingSubjectKind, type FindingTreatment, type FindingsDiff, type FindingsLedger, type FindingsLedgerOutcome, type FindingsLedgerRead, type FindingsQuery, FindingsStore, type FindingsTimeStep, type HarnessSkillMarkers, IMPROVEMENT_KIND_SPEC, type InlineEvidenceBinding, KIND_EXPECTED_SUBJECTS, KNOWLEDGE_GAP_KIND_SPEC, KNOWLEDGE_POISONING_KIND_SPEC, type LedgerFinding, type LoadedSkillText, type LoadedVerificationArtifacts, type MessageSkillInvocation, type MockTransportOpts, type ModelCallEvent, type NotObservable, type OpenAiCompatibleTransportOpts, type PersistedFinding, type PreparedPublicAnalystBenchmark, type PrimeBenchmarkRunnerOptions, type PrimeBridgeTransport, type PrimeBridgeTransportRequest, type PrimeBridgeTransportResult, type PrimeCodeTraceDefinitionArgs, type PrimeExchangeOptions, type PrimeExchangeOutcome, type PrimeFailure, type PrimeProjectionDelivery, type PrimeProjectionOutcome, type PrimeProjectionSource, type PrimePromptSpec, type PrimeProtocolIdentity, type PrimeRawUsage, type PrimeRejectedRow, type PrimeRepairPromptSpec, type PrimeRepairState, type PrimeReplyContract, type PrimeRowDecoded, type PrimeTurnRecord, type PromoteOptions, type PromotionHold, type PromotionResult, type ProposalFinding, type ProposalFindingOrigin, ProposalFindingSchema, type PublicAnalystBenchmarkDataset, type PublicAnalystBenchmarkModelConfig, type PublicAnalystBenchmarkModelOwner, type PublicAnalystBenchmarkModelSettings, type PublicBenchmarkDistributions, type PublicBenchmarkModelPrediction, type PublicBenchmarkSelectionReport, type PublicBenchmarkValueDistribution, type PublicDirectDefinitionArgs, type PublicRlmDefinitionArgs, RAW_FINDING_SCHEMA_PROMPT, type RawAnalystEvidence, type RawAnalystFinding, RawAnalystFindingSchema, type RegistryRunOpts, type ReplVariableConsensusPort, type ReplVariableEvidenceBinding, type ReplyContract, type ReplyEnvelope, type ReplyRowDecoded, type ReplyRowRejection, type RollupInput, type RollupOptions, type RollupResult, type RunAnalystBenchmarkOptions, type SandboxSdkTransportOpts, type SemanticConceptJudgeAdapterOpts, type SkillFileRead, type SkillFileState, type SkillInvocationEvent, type SkillInvoker, type SkillSessionEvent, type SkillSessionRead, type SkillSessionRecord, type SkillSessionSource, type SkillUsageAfterInvocation, type SkillUsageReport, type SkillUsageReportOptions, type SkillUsageRow, type SkillUsageTokens, type SkillVersionEvidence, type StepLabelAdapterOptions, TREATMENT_LAYERS, type TaxonomyAttachment, type TaxonomyNode, type TaxonomyNodeLayer, type TaxonomyOutcome, type TeamIntegration, type TeamShape, type TeamShapeCheck, type TeamShapeClass, type TeamShapeEdge, type TeamShapeFeatures, type TeamShapeInput, type TeamShapeObserved, type TeamShapeOutcome, type ToolCallEvent, type TraceAnalysisActivity, type TraceAnalysisEngine, type TraceAnalysisEngineRequest, type TraceAnalysisEngineResult, type TraceAnalystDefinition, type TraceAnalystLimits, type TraceQuestionOutcome, type TraceQuestionSpec, type TraceToolGroupName, type TreatmentLayer, type UpstreamPredictionAdapterOptions, type VerificationArtifactFile, type VerificationArtifactManifest, type VerificationArtifactRole, type VerificationAvailabilitySummary, type VerificationOutcome, type VerificationOutcomeSource, type VerificationOutcomeStatus, type VerificationResultFile, type VerifiedTraceFinding, analystUsageReceiptFromPrimeUsage, askTraceQuestions, assertFailureClasses, behavioralAnalyst, behavioralTraceQuestionDigest, buildDefaultAnalystRegistry, buildPrimePrompt, buildPrimeRepairPrompt, buildTraceToolsForGroup, computeFindingId, createChatClient, createChatTraceEngine, createDspyRlmTraceEngine, createTraceAnalyst, diffFindings, diffFindingsOverTime, emitControlIntegrityFindings, evidenceRefsFromRawFinding, findingSubjectGrammarPromptFor, independentUnitCount, lineageRoots, makeFinding, makeProposalFinding, mergePrimeRawUsage, nodeHttpPrimeBridgeTransport, normalizePrimeUsage, openFindingsLedger, parseAnalystFinding, parseFindingSubject, parseRawFinding, pinBehavioralFailureClass, primeProtocolSha256, projectPrimeTrajectory, queryFindings, readFindingScope, renderFindingSubject, runAnalystBenchmark, runPrimeExchange, runTraceAnalyst, traceStoreEvidenceResolver };
|
|
2006
|
+
export { type AgentRxBenchmarkCaseOptions, type AgentRxCalibrationRunnerSummary, type AgentRxCalibrationSummary, type AgentRxFailure, type AgentRxPrediction, type AgentRxPredictionReport, type AgentRxRow, type Analyst, type AnalystBenchmarkArtifact, type AnalystBenchmarkCase, type AnalystBenchmarkCommandConfig, type AnalystBenchmarkCommandDependencies, type AnalystBenchmarkDatasetRef, type AnalystBenchmarkDescriptor, type AnalystBenchmarkError, type AnalystBenchmarkLabelState, type AnalystBenchmarkLocalRunReceipt, type AnalystBenchmarkObservation, type AnalystBenchmarkOutput, type AnalystBenchmarkProgressRow, type AnalystBenchmarkProvenance, type AnalystBenchmarkResult, type AnalystBenchmarkRunIdentity, type AnalystBenchmarkRunManifest, type AnalystBenchmarkRunner, type AnalystBenchmarkSummary, type AnalystBudgetDeclaration, type AnalystComparisonMetric, type AnalystContext, type AnalystCost, type AnalystDefinition, type AnalystDefinitionAsymmetry, type AnalystDefinitionAsymmetryReport, type AnalystEvidenceBinding, type AnalystEvidenceExpectation, type AnalystEvidenceResolution, type AnalystEvidenceResolutionError, type AnalystEvidenceResolver, type AnalystFinding, type AnalystFindingSchemaVersion, type AnalystFindingScore, type AnalystHooks, type AnalystInputKind, type AnalystInstructionsOverride, type AnalystIssueExpectation, type AnalystLatencyDistribution, type AnalystMetricComparison, type AnalystProfileFragment, AnalystRegistry, type AnalystRegistryOptions, type AnalystRepairDeclaration, type AnalystRequirements, type AnalystRowExpansion, type AnalystRunEvent, type AnalystRunInputs, type AnalystRunResult, type AnalystRunSummary, type AnalystRunnerComparison, type AnalystSeverity, type AnalystTransportBinding, type AnalystUsageReceipt, type AskTraceQuestionsOptions, BEHAVIORAL_FAILURE_CLASS, BEHAVIORAL_TRACE_QUESTIONS, BEHAVIORAL_TRACE_QUESTIONS_VERSION, type BehavioralAnalystOptions, type BehavioralQuestionCalibration, type BehavioralTraceAnswer, type BehavioralTraceCalibrationRow, type BehavioralTraceEvent, type BehavioralTraceEventMap, type BehavioralTraceGold, type BehavioralTraceLayer, type BehavioralTraceQuestionId, type BehavioralTraceQuestionsOptions, type BehavioralTraceSupport, type BehavioralTraceWindow, type BehavioralWindowPolicy, type BudgetPolicy, CONTROL_INTEGRITY_ANALYST, type CalibrationInterval, type ChangeLedger, type ChangeLedgerAction, type ChangeLedgerRow, type ChangeLedgerSession, type ChatCallOpts, type ChatClient, type ChatRequest, type ChatResponse, type ChatTraceEngineOptions, type ChatTransport, type ChoiceCalibration, type ChoiceGold, type ChoiceOptionCalibration, type ChoicePrediction, type ChunkedEvidenceBinding, type ClassCalibration, type ClaudeCodeSkillSessionsOptions, type CodeTraceBenchCaseOptions, type CodeTraceBenchLabelOptions, type CodeTraceBenchLabelSet, type CodeTraceBenchRow, type CodeTraceBlockDiagnostics, type CodeTraceCalibrationRunnerSummary, type CodeTraceCalibrationSummary, type CodeTraceFailureBlock, type CodeTraceStageAnnotation, type CodeTracerLabelGroup, type CodeTracerPredictionAdapterOptions, type CodeTracerPredictions, type CodeTracerStepLabel, type CodexSkillSessionsOptions, ControlIntegrityAnalyst, type CreateChatClientOpts, type CreateTraceAnalystOptions, type CustomTransportOpts, DEFAULT_TRACE_ANALYST_KINDS, type DecodedReply, type DefaultAnalystRegistryOptions, type DefineCustomAnalystOptions, type DefineExactCustomAnalystOptions, type DiffPolicy, type DomainTaxonomy, type DspyRlmTraceEngineOptions, type EvidenceProjection, type EvidenceRef, type ExactAnalystBudgetPolicy, type ExactAnalystBudgetSnapshot, type ExactAnalystExecutionPlanSnapshot, type ExactAnalystRunCompletion, type ExactAnalystRunEvent, ExactAnalystRunExecutionError, type ExactAnalystRunPolicySnapshot, type ExactAnalystRunResult, type ExactAnalystRunSummary, type ExactAnalystSnapshot, type ExactCapableAnalyst, type ExactExecutionComponentIdentity, type ExactExecutionComponentSnapshot, type ExactRegistryRunOpts, type ExecutionProbe, type ExecutionProbeOutcome, type ExecutionProbeRequest, type ExpandRowsArgs, FAILURE_MODE_KIND_SPEC, FINDING_LAYERS, FINDING_SUBJECT_KINDS, FINDING_SUBJECT_SYNTAX, type FailureModeGold, type FailureModeGoldSources, type FailureModeLabel, type FailureModeLabelItem, type FailureModesAnalystOptions, type FailureModesCalibration, type FailureModesOutcome, type FindingCalibration, type FindingConditions, type FindingEvidenceUnit, type FindingLayer, type FindingMeasure, type FindingMethod, type FindingParseOutcome, type FindingReaderLabel, type FindingScope, type FindingScopeReading, type FindingSubject, type FindingSubjectKind, type FindingTreatment, type FindingsDiff, type FindingsLedger, type FindingsLedgerOutcome, type FindingsLedgerRead, type FindingsQuery, FindingsStore, type FindingsTimeStep, type HarnessSkillMarkers, IMPROVEMENT_KIND_SPEC, type InlineEvidenceBinding, KIND_EXPECTED_SUBJECTS, KNOWLEDGE_GAP_KIND_SPEC, KNOWLEDGE_POISONING_KIND_SPEC, type LedgerFinding, type LoadedSkillText, type LoadedVerificationArtifacts, type MessageSkillInvocation, type MockTransportOpts, type ModelCallEvent, type NotObservable, type OpenAiCompatibleTransportOpts, type PersistedFinding, type PreparedPublicAnalystBenchmark, type PrimeBenchmarkRunnerOptions, type PrimeBridgeTransport, type PrimeBridgeTransportRequest, type PrimeBridgeTransportResult, type PrimeCodeTraceDefinitionArgs, type PrimeExchangeOptions, type PrimeExchangeOutcome, type PrimeFailure, type PrimeProjectionDelivery, type PrimeProjectionOutcome, type PrimeProjectionSource, type PrimePromptSpec, type PrimeProtocolIdentity, type PrimeRawUsage, type PrimeRejectedRow, type PrimeRepairPromptSpec, type PrimeRepairState, type PrimeReplyContract, type PrimeRowDecoded, type PrimeTurnRecord, type PromoteOptions, type PromotionHold, type PromotionResult, type ProposalFinding, type ProposalFindingOrigin, ProposalFindingSchema, type PublicAnalystBenchmarkDataset, type PublicAnalystBenchmarkModelConfig, type PublicAnalystBenchmarkModelOwner, type PublicAnalystBenchmarkModelSettings, type PublicBenchmarkDistributions, type PublicBenchmarkModelPrediction, type PublicBenchmarkSelectionReport, type PublicBenchmarkValueDistribution, type PublicDirectDefinitionArgs, type PublicRlmDefinitionArgs, RAW_FINDING_SCHEMA_PROMPT, type RawAnalystEvidence, type RawAnalystFinding, RawAnalystFindingSchema, type RegistryRunOpts, type ReplVariableConsensusPort, type ReplVariableEvidenceBinding, type ReplyContract, type ReplyEnvelope, type ReplyRowDecoded, type ReplyRowRejection, type RollupInput, type RollupOptions, type RollupResult, type RunAnalystBenchmarkOptions, type SandboxSdkTransportOpts, type SemanticConceptJudgeAdapterOpts, type SessionChange, type SessionUserTurn, type SkillFileRead, type SkillFileState, type SkillInvocationEvent, type SkillInvoker, type SkillSessionEvent, type SkillSessionRead, type SkillSessionRecord, type SkillSessionSource, type SkillUsageAfterInvocation, type SkillUsageReport, type SkillUsageReportOptions, type SkillUsageRow, type SkillUsageTokens, type SkillVersionEvidence, type StepLabelAdapterOptions, TREATMENT_LAYERS, type TaxonomyAttachment, type TaxonomyNode, type TaxonomyNodeLayer, type TaxonomyOutcome, type TeamIntegration, type TeamShape, type TeamShapeCheck, type TeamShapeClass, type TeamShapeEdge, type TeamShapeFeatures, type TeamShapeInput, type TeamShapeObserved, type TeamShapeOutcome, type ToolCallEvent, type TraceAnalysisActivity, type TraceAnalysisEngine, type TraceAnalysisEngineRequest, type TraceAnalysisEngineResult, type TraceAnalystDefinition, type TraceAnalystLimits, type TraceQuestionOutcome, type TraceQuestionSpec, type TraceToolGroupName, type TreatmentLayer, type UpstreamPredictionAdapterOptions, type VerificationArtifactFile, type VerificationArtifactManifest, type VerificationArtifactRole, type VerificationAvailabilitySummary, type VerificationOutcome, type VerificationOutcomeSource, type VerificationOutcomeStatus, type VerificationResultFile, type VerifiedTraceFinding, analystUsageReceiptFromPrimeUsage, askTraceQuestions, assertFailureClasses, behavioralAnalyst, behavioralTraceQuestionDigest, buildDefaultAnalystRegistry, buildPrimePrompt, buildPrimeRepairPrompt, buildTraceToolsForGroup, computeFindingId, createChatClient, createChatTraceEngine, createDspyRlmTraceEngine, createTraceAnalyst, diffFindings, diffFindingsOverTime, emitControlIntegrityFindings, evidenceRefsFromRawFinding, findingSubjectGrammarPromptFor, independentUnitCount, lineageRoots, makeFinding, makeProposalFinding, mergePrimeRawUsage, nodeHttpPrimeBridgeTransport, normalizePrimeUsage, openFindingsLedger, parseAnalystFinding, parseFindingSubject, parseRawFinding, pinBehavioralFailureClass, primeProtocolSha256, projectPrimeTrajectory, queryFindings, readFindingScope, renderFindingSubject, runAnalystBenchmark, runPrimeExchange, runTraceAnalyst, traceStoreEvidenceResolver };
|
|
1933
2007
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/skill-usage/session-record.ts","../../src/skill-usage/claude-code.ts","../../src/skill-usage/harness-session.ts","../../src/skill-usage/skill-file.ts","../../src/skill-usage/report.ts","../../src/analyst/adapters.ts","../../src/analyst/benchmark-agentrx-calibration.ts","../../src/analyst/benchmark-behavioral-calibration.ts","../../src/analyst/benchmark-dataset-types.ts","../../src/analyst/benchmark-dataset-agentrx.ts","../../src/analyst/benchmark-dataset-codetrace.ts","../../src/analyst/benchmark-verification-outcome.ts","../../src/analyst/benchmark-verification-artifacts.ts","../../src/analyst/benchmark-public-types.ts","../../src/analyst/benchmark-public-adapters.ts","../../src/analyst/benchmark-public-data.ts","../../src/analyst/definition.ts","../../src/analyst/benchmark-public-prompt.ts","../../src/analyst/benchmark-public-model.ts","../../src/analyst/benchmark-public-rlm.ts","../../src/analyst/benchmark-runner-prime.ts","../../src/analyst/benchmark-comparison.ts","../../src/analyst/benchmark-public-calibration.ts","../../src/analyst/benchmark-command-artifact.ts","../../src/analyst/benchmark-command-result.ts","../../src/analyst/benchmark-command.ts","../../src/analyst/benchmark-implementation.ts","../../src/analyst/bind.ts","../../src/analyst/define.ts","../../src/analyst/domain-taxonomy.ts","../../src/analyst/failure-modes.ts","../../src/analyst/parse-tolerant.ts","../../src/analyst/promote.ts","../../src/analyst/proposal-findings.ts","../../src/analyst/rollup.ts","../../src/analyst/team-shape.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;KAmBY;;UAGK;;;;EAIf;;;;;;EAMA;;UAGe;EACf;;;EAGA;EACA;EACA,SAAS;EACT;;EAEA,SAAS;;EAET;;EAEA;;UAGe;EACf;EACA;EACA;EACA;;EAEA;;UAGe;EACf;EACA;EACA;;EAEA;;EAEA,OAAO;;KAGG,oBAAoB,uBAAuB,gB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EAEf;EACA;;EAEA;;;;;;;;;;;wBA+LoB,sBACpB,QAAQ,oBACR,UAAS,0BACR,QAAQ;;;;;;wBAgLK,sBAAsB,QAAQ,kBAAkB;UChe/C;EACf;EACA;;EAEA,SAAS,KAAK;;EAEd;;qBCtBW;UAEI;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA,SAAS;;;UCVM;EACf,YAAY;EACZ;EACA,OAAO;EACP;;;;UAIe;EACf;EACA;EACA;EACA,IAAI;EACJ;;UAEe,sCAAsC;EACrD,YAAY;EACZ,OAAO;EACP;EACA;EACA;EACA;EACA;EACA;EACA;IAAgB;IAAe;;EAC/B;EACA;EACA,SAAS;EACT,WAAW,qBAAqB;;;EAGhC,eAAe;IACb;IACA;IACA,WAAW;IACX,SAAS;;EAEX;;EAEA,aAAa;;UAEE;EACf;EACA;;UAEe;EACf;EACA;EACA;EACA,eAAe;;;UAGA,gCAAgC;EAC/C;EACA;EACA;;UAEe;EACf;EACA;EACA;EACA;EACA;EACA;;EAEA;EACA,SAAS;EACT,MAAM;;;wBAmCQ,kCAAkC;EAChD,OAAO;EACP,cAAc;EACd;EACA;EACA,mBAAmB;EACnB,eAAe;EACf,mBAAmB;EACnB,cAAc;EACd;EACA;IACE;;;wBAuHY,wBACd,eAAe,cACf,mBAAmB,oBACnB,UAAS;EAA4B;IACpC;KCjQS;UAEK;EACf,YAAY;EACZ;EACA;EACA;EACA;EACA;;UAGe;EACf,eAAe;EACf,mBAAmB;EACnB;IAAe,YAAY;IAAY;;EACvC,wBAAwB;EACxB;EACA;EACA;;UAGe;EACf,UAAU;EACV;EACA;EACA;EACA;;UAGe;EACf,UAAU;EACV,mBAAmB;EACnB;EACA;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;UAGe;EACf;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B;;UAGN;EACf;EACA;EACA;EACA;IACE;IACA;IACA;;;UAIa;EACf;IACE,SAAS;IACT;IACA;IACA;MACE;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA,SAAS;MACT;QACE;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;MAEF;QACE;QACA;QACA;;;IAGJ;IACA;IACA;IACA;;IAEA;IACA;IACA;IACA;;IAEA;IACA;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA,YAAY;MAAQ;MAAiB;MAAsB;;IAC3D;IACA;;;UAIa;EACf;EACA;EACA;EACA;EACA,UAAU;;UAGK;EACf;EACA;EACA;EACA;IACE;IACA;IACA;IACA;;IAEA;;EAEF;EACA;IACE;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA;IACA;IACA;;;UAIa;EACf;EACA;EACA;EACA,aAAa;EACb;;qBAGW;qBACA;qBACA;qBACA;wBC5KS,6BACpB,eACC,QAAQ;UCuEM;EACf,uBACE,SAAS,+BACT,QAAQ,wCACL,uBAAuB;EAC5B,2BACE,mBACA;IACE;IACA,aAAa,SAAS,OAAO;QAE5B,QAAQ;;;;;;;;;KAUV;;UAGK;EACR;EACA;;UAGe;EACf,SAAS;EACT,SAAS;EACT;EACA;EACA;EACA;EACA;EACA;EACA,OAAO;EACP;EACA;EACA;EACA;;EAEA;EACA;EACA;;EAEA;;EAEA,QAAQ;EACR;EACA;;wBAKoB,2BACpB,yBACA,MAAK,OAAO,YACZ,eAAc,sCACb;qBC5IU;qBAGA;qBAGA;;KCOD;;WAGG;WACA;WACA;WACA,YAAY;WACZ,UAAU;;;WAIV;WACA,QAAQ;;;;;;wBAOP,YAAY,MAAM,aAAa,QAC7C,YAAY,kBAAkB,MAAM,aAAa,SACjD,YAAY,0BACX,uBAAuB;;;;;;;;wBCpCV,mBAAmB,YAAY,yBAAyB;UAkBvD;EACf;EACA;EACA;EACA,MAAM;EACN,SAAS,QAAQ;;UAGF,wCAAwC;;EAEvD,iBAAiB,SAAS;;;wBAIZ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":[],"sources":["../../src/skill-usage/session-record.ts","../../src/skill-usage/change-ledger.ts","../../src/skill-usage/claude-code.ts","../../src/skill-usage/codex.ts","../../src/skill-usage/harness-session.ts","../../src/skill-usage/skill-file.ts","../../src/skill-usage/report.ts","../../src/analyst/adapters.ts","../../src/analyst/benchmark-agentrx-calibration.ts","../../src/analyst/benchmark-behavioral-calibration.ts","../../src/analyst/benchmark-dataset-types.ts","../../src/analyst/benchmark-dataset-agentrx.ts","../../src/analyst/benchmark-dataset-codetrace.ts","../../src/analyst/benchmark-verification-outcome.ts","../../src/analyst/benchmark-verification-artifacts.ts","../../src/analyst/benchmark-public-types.ts","../../src/analyst/benchmark-public-adapters.ts","../../src/analyst/benchmark-public-data.ts","../../src/analyst/definition.ts","../../src/analyst/benchmark-public-prompt.ts","../../src/analyst/benchmark-public-model.ts","../../src/analyst/benchmark-public-rlm.ts","../../src/analyst/benchmark-runner-prime.ts","../../src/analyst/benchmark-comparison.ts","../../src/analyst/benchmark-public-calibration.ts","../../src/analyst/benchmark-command-artifact.ts","../../src/analyst/benchmark-command-result.ts","../../src/analyst/benchmark-command.ts","../../src/analyst/benchmark-implementation.ts","../../src/analyst/bind.ts","../../src/analyst/define.ts","../../src/analyst/domain-taxonomy.ts","../../src/analyst/failure-modes.ts","../../src/analyst/parse-tolerant.ts","../../src/analyst/promote.ts","../../src/analyst/proposal-findings.ts","../../src/analyst/rollup.ts","../../src/analyst/team-shape.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;KAmBY;;UAGK;;;;EAIf;;;;;;EAMA;;UAGe;EACf;;;EAGA;EACA;EACA,SAAS;EACT;;EAEA,SAAS;;EAET;;EAEA;;UAGe;EACf;EACA;EACA;EACA;;EAEA;;;;;;EAMA;;UAGe;EACf;EACA;EACA;;EAEA;;EAEA,OAAO;;KAGG,oBAAoB,uBAAuB,gBAAgB;;;;;;UAOtD;EACf;;EAEA;EACA;;;;;;UAOe;EACf;EACA;;EAEA;EACA;;UAGe;EACf;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mB,oBACnB,UAAS;EAA4B;IACpC;KCjQS;UAEK;EACf,YAAY;EACZ;EACA;EACA;EACA;EACA;;UAGe;EACf,eAAe;EACf,mBAAmB;EACnB;IAAe,YAAY;IAAY;;EACvC,wBAAwB;EACxB;EACA;EACA;;UAGe;EACf,UAAU;EACV;EACA;EACA;EACA;;UAGe;EACf,UAAU;EACV,mBAAmB;EACnB;EACA;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA,iBAAiB;;KAGP,0CAEC,sCACA,iCACA;UAEI;EACf;EACA;EACA;EACA;;EAEA;EACA;EACA;EACA;EACA;EACA;EACA,oCAAoC;;UAGrB;EACf,eAAe;EACf,WAAW,sBAAsB;;KAGvB;UAEK;;;;;EAKf,WAAW;;UAGI,kCACP,yBACN;UAEa,oCAAoC;EACnD;;EAEA;;UAGe,yCAAyC;EACxD;EACA;EACA;EACA;;UAGe,2CACP,kCACN;wBCtGY,qBAAqB,QACnC,KAAK,YACL,OAAO,QACP,UAAS,8BACR,qBAAqB;;wBAsGR,6BACd,mBAAmB,YACnB,iBACA,UAAS,mCACR;wBC9Ga,mBAAmB,QACjC,KAAK,mBACL,OAAO,QACP,UAAS,4BACR,qBAAqB;;wBAwFR,gCACd,2BACA,aAAa,uBACb,UAAS,qCACR;KCjHS;UAEK;EACf;EACA;EACA,QAAQ;;UAGO;EACf,QAAQ;EACR;EAKA;IAAe;IAAe;;EAC9B,SAAS;EACT;EACA;EACA;EACA;;UAGe;EACf;EACA;;KCdU;UAEK;EACf,MAAM;EACN;EACA;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA,SAAS;EACT;EACA;EACA;EACA;EACA;EACA,OAAO;EACP,cAAc;EACd,UAAU,OAAO;;UAGF;EACf,UAAU;EACV,SAAS;EACT,OAAO,MAAM;IAA6B;;;KChChC;;;;;;;;UASK;;WAEN;;WAEA;;;UAIM;EAC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AAS;IACT;IACA;IACA;IACA;IACA,YAAY;MAAQ;MAAiB;MAAsB;;IAC3D,uBAAuB;IACvB,0BAA0B;IAC1B;MACE;MACA;MACA;MACA,QAAQ;;IAEV;MACE;MACA;;MAEA;MACA;;MAEA;MACA;MACA;MACA;MACA;MACA;MACA;MACA,UAAU;MACV;QACE;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;MAEF;QACE;QACA;QACA;;MAEF;MACA;MACA;;MAEA;MACA;MACA;;;EAGJ,QAAQ;EACR,aAAa;EACb,uBAAuB;EACvB,qBAAqB;;UAGN;EACf;EACA;EACA;EACA;IACE;IACA;IACA;;;UAIa;EACf;IACE,SAAS;IACT;IACA;IACA;MACE;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA,SAAS;MACT;QACE;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;MAEF;QACE;QACA;QACA;;;IAGJ;IACA;IACA;IACA;;IAEA;IACA;IACA;IACA;;IAEA;IACA;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA,YAAY;MAAQ;MAAiB;MAAsB;;IAC3D;IACA;;;UAIa;EACf;EACA;EACA;EACA;EACA,UAAU;;UAGK;EACf;EACA;EACA;EACA;IACE;IACA;IACA;IACA;;IAEA;;EAEF;EACA;IACE;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA;IACA;IACA;;;UAIa;EACf;EACA;EACA;EACA,aAAa;EACb;;qBAGW;qBACA;qBACA;qBACA;wBC5KS,6BACpB,eACC,QAAQ;UCuEM;EACf,uBACE,SAAS,+BACT,QAAQ,wCACL,uBAAuB;EAC5B,2BACE,mBACA;IACE;IACA,aAAa,SAAS,OAAO;QAE5B,QAAQ;;;;;;;;;KAUV;;UAGK;EACR;EACA;;UAGe;EACf,SAAS;EACT,SAAS;EACT;EACA;EACA;EACA;EACA;EACA;EACA,OAAO;EACP;EACA;EACA;EACA;;EAEA;EACA;EACA;;EAEA;;EAEA,QAAQ;EACR;EACA;;wBAKoB,2BACpB,yBACA,M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AU;;EAEV,QAAQ,OAAO,gBAAgB;EAC/B;IAAS,SAAS;IAAiB,YAAY;IAAiB,eAAe;;EAC/E;IAAe;IAAe;;EAC9B;IAAU;IAAc;;;KAGd;EACN;EAAiB,OAAO;;EACxB;EAAkB;IAAS;;;;wBAuBjB,0BACd,SAAS,sBACT,wBAAwB;EACrB;EAAiB,OAAO;;EAAqB;EAAkB;IAAS;;;wBAkB7D,kBAAkB,OAAO,iBAAiB;;;;;;wBAqa1C,oBAAoB,QAAQ"}
|
package/dist/analyst/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import { n as createChatClient } from "../chat-client-TkNgQDLj.js";
|
|
|
11
11
|
import { t as createDspyRlmTraceEngine } from "../dspy-rlm-engine-CR5MSL2k.js";
|
|
12
12
|
import { n as diffFindings, r as createChatTraceEngine, t as FindingsStore } from "../findings-store-Drnjid7m.js";
|
|
13
13
|
import { m as validDecisionIdentity, o as systemOneAnalyst, t as DECISION_POINT_AUC_BAR } from "../decision-point-CjC56Enj.js";
|
|
14
|
-
import { A as agentRxBenchmarkCase, B as renderSkillUsageTable, C as ANALYST_BENCHMARK_COST_LEDGER_FILE, D as AGENT_RX_UPSTREAM_REVISION, E as ANALYST_BENCHMARK_OBSERVATIONS_FILE, F as runAnalystBenchmark, H as claudeCodeSkillSessions, I as traceStoreEvidenceResolver, M as normalizeAgentRxCategory, N as externalId, O as codeTraceBenchCase, P as positiveStep, R as buildSkillUsageReport, S as ANALYST_BENCHMARK_IMPLEMENTATION_FILES, T as ANALYST_BENCHMARK_MANIFEST_FILE, U as skillSessionFromHarnessSession, W as readSkillFile, _ as readAnalystBenchmarkArtifact, a as runInlineAnalystDefinition, b as ANALYST_BENCHMARK_EVIDENCE_DEPENDENCY_LOCK_SHA256, c as publicRlmAnalystDefinition, d as publicDirectAnalystDefinition, f as runChunkedAnalystDefinition, g as expandCodeTraceFailureBlocks, h as analystDefinitionProtocolSha256, i as primeCodeTraceAnalystDefinition, j as agentRxPredictionsToFindings, k as codeTracerPredictionsToFindings, l as runReplVariableAnalystDefinition, m as analystDefinitionAsymmetries, n as createPrimeBenchmarkRunner, o as loadPublicBenchmarkRows, p as AnalystExpressivenessError, r as primeAnalystProtocolSha256, s as createPublicBenchmarkRlmRunner, t as runAnalystBenchmarkCommand, u as createPublicBenchmarkDirectRunner, v as CODE_TRACE_BENCH_ANALYST_PROMPT, w as ANALYST_BENCHMARK_LOCAL_RECEIPT_FILE, x as ANALYST_BENCHMARK_EVIDENCE_IMPLEMENTATION_SHA256, y as publicBenchmarkProtocolSha256 } from "../benchmark-command-
|
|
14
|
+
import { A as agentRxBenchmarkCase, B as renderSkillUsageTable, C as ANALYST_BENCHMARK_COST_LEDGER_FILE, D as AGENT_RX_UPSTREAM_REVISION, E as ANALYST_BENCHMARK_OBSERVATIONS_FILE, F as runAnalystBenchmark, G as CHANGE_LEDGER_ACTIONS, H as claudeCodeSkillSessions, I as traceStoreEvidenceResolver, J as withChangeLedger, K as parseChangeLedger, M as normalizeAgentRxCategory, N as externalId, O as codeTraceBenchCase, P as positiveStep, R as buildSkillUsageReport, S as ANALYST_BENCHMARK_IMPLEMENTATION_FILES, T as ANALYST_BENCHMARK_MANIFEST_FILE, U as skillSessionFromHarnessSession, V as codexSkillSessions, W as readSkillFile, _ as readAnalystBenchmarkArtifact, a as runInlineAnalystDefinition, b as ANALYST_BENCHMARK_EVIDENCE_DEPENDENCY_LOCK_SHA256, c as publicRlmAnalystDefinition, d as publicDirectAnalystDefinition, f as runChunkedAnalystDefinition, g as expandCodeTraceFailureBlocks, h as analystDefinitionProtocolSha256, i as primeCodeTraceAnalystDefinition, j as agentRxPredictionsToFindings, k as codeTracerPredictionsToFindings, l as runReplVariableAnalystDefinition, m as analystDefinitionAsymmetries, n as createPrimeBenchmarkRunner, o as loadPublicBenchmarkRows, p as AnalystExpressivenessError, q as readChangeLedger, r as primeAnalystProtocolSha256, s as createPublicBenchmarkRlmRunner, t as runAnalystBenchmarkCommand, u as createPublicBenchmarkDirectRunner, v as CODE_TRACE_BENCH_ANALYST_PROMPT, w as ANALYST_BENCHMARK_LOCAL_RECEIPT_FILE, x as ANALYST_BENCHMARK_EVIDENCE_IMPLEMENTATION_SHA256, y as publicBenchmarkProtocolSha256 } from "../benchmark-command-DgR1i30h.js";
|
|
15
15
|
import { a as normalizePrimeUsage, c as runPrimeExchange, i as mergePrimeRawUsage, n as buildPrimePrompt, o as primeProtocolSha256, r as buildPrimeRepairPrompt, s as projectPrimeTrajectory, t as analystUsageReceiptFromPrimeUsage } from "../prime-protocol-CrhpXRz9.js";
|
|
16
16
|
import { t as nodeHttpPrimeBridgeTransport } from "../prime-bridge-transport-Csd5SQg7.js";
|
|
17
17
|
import { t as clusterBootstrapMean } from "../cluster-bootstrap-CTC8Dd30.js";
|
|
@@ -2071,6 +2071,6 @@ function failed(question, failure, activity) {
|
|
|
2071
2071
|
function errorText(error) {
|
|
2072
2072
|
return error instanceof Error ? `${error.name}: ${error.message}` : String(error);
|
|
2073
2073
|
}
|
|
2074
|
-
export { AGENT_RX_UPSTREAM_REVISION, ANALYST_BENCHMARK_COST_LEDGER_FILE, ANALYST_BENCHMARK_EVIDENCE_DEPENDENCY_LOCK_SHA256, ANALYST_BENCHMARK_EVIDENCE_IMPLEMENTATION_SHA256, ANALYST_BENCHMARK_IMPLEMENTATION_FILES, ANALYST_BENCHMARK_LOCAL_RECEIPT_FILE, ANALYST_BENCHMARK_MANIFEST_FILE, ANALYST_BENCHMARK_OBSERVATIONS_FILE, AnalystExpressivenessError, AnalystRegistry, BEHAVIORAL_FAILURE_CLASS, BEHAVIORAL_TRACE_QUESTIONS, BEHAVIORAL_TRACE_QUESTIONS_VERSION, CODE_TRACE_BENCH_ANALYST_PROMPT, CONTROL_INTEGRITY_ANALYST, ControlIntegrityAnalyst, DEFAULT_TRACE_ANALYST_KINDS, ExactAnalystRunExecutionError, FAILURE_MODES_ANALYST_ID, FAILURE_MODES_MIN_KAPPA, FAILURE_MODES_QUESTIONS, FAILURE_MODES_VERSION, FAILURE_MODE_KIND_SPEC, FAILURE_MODE_LABELS, FINDING_LAYERS, FINDING_SUBJECT_KINDS, FINDING_SUBJECT_SYNTAX, FindingsStore, IMPROVEMENT_KIND_SPEC, KIND_EXPECTED_SUBJECTS, KNOWLEDGE_GAP_KIND_SPEC, KNOWLEDGE_POISONING_KIND_SPEC, LAB_NODE_ID, NOT_OBSERVABLE, ProposalFindingSchema, RAW_FINDING_SCHEMA_PROMPT, RawAnalystFindingSchema, TEAM_SHAPE_ANALYST_ID, TEAM_SHAPE_CLASSES, TEAM_SHAPE_VERSION, TREATMENT_LAYERS, agentRxBenchmarkCase, agentRxPredictionsToFindings, analystDefinitionAsymmetries, analystDefinitionProtocolSha256, analystUsageReceiptFromPrimeUsage, askTraceQuestions, assertFailureClasses, assertProposalFindings, attachToTaxonomy, behavioralAnalyst, behavioralTraceQuestionDigest, bindAnalyst, buildDefaultAnalystRegistry, buildPrimePrompt, buildPrimeRepairPrompt, buildSkillUsageReport, buildTraceToolsForGroup, calibrateBehavioralTraceQuestions, calibrateChoiceQuestion, calibrateFailureModes, classifyTeamShape, claudeCodeSkillSessions, codeTraceBenchCase, codeTracerPredictionsToFindings, computeFindingId, createChatClient, createChatTraceEngine, createDspyRlmTraceEngine, createFailureModesAnalyst, createPrimeBenchmarkRunner, createPublicBenchmarkDirectRunner, createPublicBenchmarkRlmRunner, createTraceAnalyst, defineCustomAnalyst, defineDomainTaxonomy, defineTraceAnalyst, diffFindings, diffFindingsOverTime, domainPathOf, emitControlIntegrityFindings, evidenceRefsFromRawFinding, expandCodeTraceFailureBlocks, findingSubjectGrammarPromptFor, independentUnitCount, lineageRoots, loadFailureModeGold, loadPublicBenchmarkRows, lowestCommonAncestor, makeFinding, makeProposalFinding, mergePrimeRawUsage, nodeHttpPrimeBridgeTransport, normalizePrimeUsage, openFindingsLedger, parseAnalystFinding, parseFindingSubject, parseRawFinding, pinBehavioralFailureClass, primeAnalystProtocolSha256, primeCodeTraceAnalystDefinition, primeProtocolSha256, projectPrimeTrajectory, promote, publicBenchmarkProtocolSha256, publicDirectAnalystDefinition, publicRlmAnalystDefinition, queryFindings, readAnalystBenchmarkArtifact, readFindingScope, readSkillFile, renderFindingSubject, renderSkillUsageTable, resolveDomainPath, rollupFindings, runAnalystBenchmark, runAnalystBenchmarkCommand, runPrimeExchange, runTraceAnalyst, skillSessionFromHarnessSession, stripCodeFences, taxonomyAncestry, taxonomyLayerOf, teamShapeAnalyst, teamShapeInputFromSources, traceStoreEvidenceResolver };
|
|
2074
|
+
export { AGENT_RX_UPSTREAM_REVISION, ANALYST_BENCHMARK_COST_LEDGER_FILE, ANALYST_BENCHMARK_EVIDENCE_DEPENDENCY_LOCK_SHA256, ANALYST_BENCHMARK_EVIDENCE_IMPLEMENTATION_SHA256, ANALYST_BENCHMARK_IMPLEMENTATION_FILES, ANALYST_BENCHMARK_LOCAL_RECEIPT_FILE, ANALYST_BENCHMARK_MANIFEST_FILE, ANALYST_BENCHMARK_OBSERVATIONS_FILE, AnalystExpressivenessError, AnalystRegistry, BEHAVIORAL_FAILURE_CLASS, BEHAVIORAL_TRACE_QUESTIONS, BEHAVIORAL_TRACE_QUESTIONS_VERSION, CHANGE_LEDGER_ACTIONS, CODE_TRACE_BENCH_ANALYST_PROMPT, CONTROL_INTEGRITY_ANALYST, ControlIntegrityAnalyst, DEFAULT_TRACE_ANALYST_KINDS, ExactAnalystRunExecutionError, FAILURE_MODES_ANALYST_ID, FAILURE_MODES_MIN_KAPPA, FAILURE_MODES_QUESTIONS, FAILURE_MODES_VERSION, FAILURE_MODE_KIND_SPEC, FAILURE_MODE_LABELS, FINDING_LAYERS, FINDING_SUBJECT_KINDS, FINDING_SUBJECT_SYNTAX, FindingsStore, IMPROVEMENT_KIND_SPEC, KIND_EXPECTED_SUBJECTS, KNOWLEDGE_GAP_KIND_SPEC, KNOWLEDGE_POISONING_KIND_SPEC, LAB_NODE_ID, NOT_OBSERVABLE, ProposalFindingSchema, RAW_FINDING_SCHEMA_PROMPT, RawAnalystFindingSchema, TEAM_SHAPE_ANALYST_ID, TEAM_SHAPE_CLASSES, TEAM_SHAPE_VERSION, TREATMENT_LAYERS, agentRxBenchmarkCase, agentRxPredictionsToFindings, analystDefinitionAsymmetries, analystDefinitionProtocolSha256, analystUsageReceiptFromPrimeUsage, askTraceQuestions, assertFailureClasses, assertProposalFindings, attachToTaxonomy, behavioralAnalyst, behavioralTraceQuestionDigest, bindAnalyst, buildDefaultAnalystRegistry, buildPrimePrompt, buildPrimeRepairPrompt, buildSkillUsageReport, buildTraceToolsForGroup, calibrateBehavioralTraceQuestions, calibrateChoiceQuestion, calibrateFailureModes, classifyTeamShape, claudeCodeSkillSessions, codeTraceBenchCase, codeTracerPredictionsToFindings, codexSkillSessions, computeFindingId, createChatClient, createChatTraceEngine, createDspyRlmTraceEngine, createFailureModesAnalyst, createPrimeBenchmarkRunner, createPublicBenchmarkDirectRunner, createPublicBenchmarkRlmRunner, createTraceAnalyst, defineCustomAnalyst, defineDomainTaxonomy, defineTraceAnalyst, diffFindings, diffFindingsOverTime, domainPathOf, emitControlIntegrityFindings, evidenceRefsFromRawFinding, expandCodeTraceFailureBlocks, findingSubjectGrammarPromptFor, independentUnitCount, lineageRoots, loadFailureModeGold, loadPublicBenchmarkRows, lowestCommonAncestor, makeFinding, makeProposalFinding, mergePrimeRawUsage, nodeHttpPrimeBridgeTransport, normalizePrimeUsage, openFindingsLedger, parseAnalystFinding, parseChangeLedger, parseFindingSubject, parseRawFinding, pinBehavioralFailureClass, primeAnalystProtocolSha256, primeCodeTraceAnalystDefinition, primeProtocolSha256, projectPrimeTrajectory, promote, publicBenchmarkProtocolSha256, publicDirectAnalystDefinition, publicRlmAnalystDefinition, queryFindings, readAnalystBenchmarkArtifact, readChangeLedger, readFindingScope, readSkillFile, renderFindingSubject, renderSkillUsageTable, resolveDomainPath, rollupFindings, runAnalystBenchmark, runAnalystBenchmarkCommand, runPrimeExchange, runTraceAnalyst, skillSessionFromHarnessSession, stripCodeFences, taxonomyAncestry, taxonomyLayerOf, teamShapeAnalyst, teamShapeInputFromSources, traceStoreEvidenceResolver, withChangeLedger };
|
|
2075
2075
|
|
|
2076
2076
|
//# sourceMappingURL=index.js.map
|
|
@@ -34,6 +34,256 @@ import { codexRefForFile, readSessionInput } from "@tangle-network/harness-sessi
|
|
|
34
34
|
import { TextDecoder as TextDecoder$1 } from "node:util";
|
|
35
35
|
import { performance } from "node:perf_hooks";
|
|
36
36
|
import { linearSumAssignment } from "linear-sum-assignment";
|
|
37
|
+
// src/skill-usage/change-ledger.ts
|
|
38
|
+
/**
|
|
39
|
+
* The change ledger: one row per commit or pull request a session made, written
|
|
40
|
+
* by the session's own harness at the moment the call returned, and the reader
|
|
41
|
+
* that joins those rows to recorded sessions.
|
|
42
|
+
*
|
|
43
|
+
* A transcript names a pull request only when its output prints the URL, and
|
|
44
|
+
* names no commit. The ledger is the harness's own record: each row carries the
|
|
45
|
+
* tool call's id, so a change belongs to the typed turn whose span holds the
|
|
46
|
+
* call, and the session's own commits and merges are counted, not guessed from
|
|
47
|
+
* output text.
|
|
48
|
+
*
|
|
49
|
+
* Row format (JSON lines, `v` 1; a writer adds no other field the reader needs):
|
|
50
|
+
*
|
|
51
|
+
* | Field | Meaning |
|
|
52
|
+
* |---|---|
|
|
53
|
+
* | `at` | ISO time the call returned |
|
|
54
|
+
* | `harness` | the harness that wrote it, as the session reader names it (`claude-code`) |
|
|
55
|
+
* | `sessionId`, `agentId` | the session; inside a subagent, the subagent's id too (the id its own transcript carries) |
|
|
56
|
+
* | `toolUseId` | the id of the tool call that made the change; null when the harness gave none |
|
|
57
|
+
* | `action` | `commit`, `pr-create`, `pr-merge`, `observed`, or, from a writer that sees whole turns, `turn` and `push` |
|
|
58
|
+
* | `remote` | the repository as `owner/repo` (or `host/path`); null when the writer could not find it |
|
|
59
|
+
* | `sha`, `pr` | the commit or the pull request number; null when the call did not name it |
|
|
60
|
+
*
|
|
61
|
+
* `observed` is written once per session or subagent, at its first call. It says
|
|
62
|
+
* the writer was running, which is the only thing that lets "no change rows"
|
|
63
|
+
* mean "no change". A session with no row of any action is unknown, never none.
|
|
64
|
+
*
|
|
65
|
+
* A writer outside the harness, such as a gateway that runs the harness for a
|
|
66
|
+
* caller (CLI Bridge), sees turns, not tool calls, and adds fields to its rows:
|
|
67
|
+
*
|
|
68
|
+
* | Field | Meaning |
|
|
69
|
+
* |---|---|
|
|
70
|
+
* | `sessionId` | the gateway's session id |
|
|
71
|
+
* | `nativeSessionId` | the harness's own session id, the id its transcript carries; rows are keyed by it when present |
|
|
72
|
+
* | `turnId`, `runId` | the gateway's turn and run |
|
|
73
|
+
* | `turnStartedAt` | ISO time the turn began; with `at`, the window the change was made in |
|
|
74
|
+
* | `incomplete` | on a `turn` row: why that turn's change rows may not be all of its changes (a checkout shared with another running turn, an unread pull request list); null when they are |
|
|
75
|
+
* | `headBefore`, `head` | on a `turn` row: the working repository's HEAD when the turn began and when it ended |
|
|
76
|
+
* | `branch` | on a `push` row: the remote branch the turn pushed |
|
|
77
|
+
*
|
|
78
|
+
* Such a row has no `toolUseId`. The change belongs to the last tool call of the
|
|
79
|
+
* session record whose time lies in [`turnStartedAt`, `at`], so a record with no
|
|
80
|
+
* times, or none in the window, leaves the change unplaced. A `turn` row with a
|
|
81
|
+
* non-null `incomplete` makes the session's changes unknown, with a gap that says why.
|
|
82
|
+
*
|
|
83
|
+
* A row's `toolUseId` is the id the harness's hook saw. Where the session record
|
|
84
|
+
* holds the call under that id, or names it in `callAliases`, the change belongs
|
|
85
|
+
* to the turn that made the call. A row that matches neither makes the whole
|
|
86
|
+
* session unknown, with a gap that says so: the change happened, and which turn
|
|
87
|
+
* made it cannot be said, so no turn may be called change-free.
|
|
88
|
+
*/
|
|
89
|
+
const CHANGE_LEDGER_ACTIONS = [
|
|
90
|
+
"observed",
|
|
91
|
+
"commit",
|
|
92
|
+
"pr-create",
|
|
93
|
+
"pr-merge",
|
|
94
|
+
"turn",
|
|
95
|
+
"push"
|
|
96
|
+
];
|
|
97
|
+
const key = (harness, id) => `${harness}\u0000${id}`;
|
|
98
|
+
function parseRow(line) {
|
|
99
|
+
let value;
|
|
100
|
+
try {
|
|
101
|
+
value = JSON.parse(line);
|
|
102
|
+
} catch {
|
|
103
|
+
return null;
|
|
104
|
+
}
|
|
105
|
+
if (typeof value !== "object" || value === null) return null;
|
|
106
|
+
const row = value;
|
|
107
|
+
const text = (field) => {
|
|
108
|
+
const raw = row[field];
|
|
109
|
+
return typeof raw === "string" && raw !== "" ? raw : null;
|
|
110
|
+
};
|
|
111
|
+
const optional = (field) => {
|
|
112
|
+
const raw = row[field];
|
|
113
|
+
if (raw === null || raw === void 0) return null;
|
|
114
|
+
return typeof raw === "string" && raw !== "" ? raw : void 0;
|
|
115
|
+
};
|
|
116
|
+
const action = row.action;
|
|
117
|
+
const toolUseId = optional("toolUseId");
|
|
118
|
+
const agentId = optional("agentId");
|
|
119
|
+
const remote = optional("remote");
|
|
120
|
+
const sha = optional("sha");
|
|
121
|
+
const nativeSessionId = optional("nativeSessionId");
|
|
122
|
+
const turnStartedAt = optional("turnStartedAt");
|
|
123
|
+
const incomplete = optional("incomplete");
|
|
124
|
+
const pr = row.pr ?? null;
|
|
125
|
+
const at = text("at");
|
|
126
|
+
const harness = text("harness");
|
|
127
|
+
const sessionId = text("sessionId");
|
|
128
|
+
if (row.v !== 1 || at === null || harness === null || sessionId === null || !CHANGE_LEDGER_ACTIONS.includes(action) || toolUseId === void 0 || agentId === void 0 || remote === void 0 || sha === void 0 || nativeSessionId === void 0 || turnStartedAt === void 0 || incomplete === void 0 || pr !== null && !(typeof pr === "number" && Number.isInteger(pr) && pr > 0)) return null;
|
|
129
|
+
return {
|
|
130
|
+
v: 1,
|
|
131
|
+
at,
|
|
132
|
+
harness,
|
|
133
|
+
sessionId,
|
|
134
|
+
agentId,
|
|
135
|
+
toolUseId,
|
|
136
|
+
action,
|
|
137
|
+
remote,
|
|
138
|
+
sha,
|
|
139
|
+
pr,
|
|
140
|
+
nativeSessionId,
|
|
141
|
+
turnStartedAt,
|
|
142
|
+
incomplete
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
/** The reference the registry's outcome source names a change by: `owner/repo#123` or `owner/repo@<sha>`. */
|
|
146
|
+
function refOf(row) {
|
|
147
|
+
if (row.remote === null) return null;
|
|
148
|
+
if (row.action === "commit") return row.sha === null ? null : `${row.remote}@${row.sha}`;
|
|
149
|
+
if (row.action === "pr-create" || row.action === "pr-merge") return row.pr === null ? null : `${row.remote}#${row.pr}`;
|
|
150
|
+
return null;
|
|
151
|
+
}
|
|
152
|
+
/** Read ledger text. A line that is not a row is counted, not skipped silently, and no row is guessed from it. */
|
|
153
|
+
function parseChangeLedger(text) {
|
|
154
|
+
const sessions = /* @__PURE__ */ new Map();
|
|
155
|
+
let rows = 0;
|
|
156
|
+
let malformed = 0;
|
|
157
|
+
for (const line of text.split("\n")) {
|
|
158
|
+
if (line.trim() === "") continue;
|
|
159
|
+
const row = parseRow(line);
|
|
160
|
+
if (row === null) {
|
|
161
|
+
malformed += 1;
|
|
162
|
+
continue;
|
|
163
|
+
}
|
|
164
|
+
rows += 1;
|
|
165
|
+
const id = key(row.harness, row.agentId ?? row.nativeSessionId ?? row.sessionId);
|
|
166
|
+
let session = sessions.get(id);
|
|
167
|
+
if (session === void 0) {
|
|
168
|
+
session = {
|
|
169
|
+
observed: false,
|
|
170
|
+
changes: [],
|
|
171
|
+
unnamed: 0,
|
|
172
|
+
timed: [],
|
|
173
|
+
incomplete: /* @__PURE__ */ new Map()
|
|
174
|
+
};
|
|
175
|
+
sessions.set(id, session);
|
|
176
|
+
}
|
|
177
|
+
if (row.action === "observed" || row.action === "push") {
|
|
178
|
+
session.observed = true;
|
|
179
|
+
continue;
|
|
180
|
+
}
|
|
181
|
+
if (row.action === "turn") {
|
|
182
|
+
session.observed = true;
|
|
183
|
+
if (row.incomplete) session.incomplete.set(row.incomplete, (session.incomplete.get(row.incomplete) ?? 0) + 1);
|
|
184
|
+
continue;
|
|
185
|
+
}
|
|
186
|
+
session.observed = true;
|
|
187
|
+
const ref = refOf(row);
|
|
188
|
+
if (ref === null) session.unnamed += 1;
|
|
189
|
+
else if (row.toolUseId === null && row.turnStartedAt) session.timed.push({
|
|
190
|
+
ref,
|
|
191
|
+
from: row.turnStartedAt,
|
|
192
|
+
to: row.at
|
|
193
|
+
});
|
|
194
|
+
else session.changes.push({
|
|
195
|
+
ref,
|
|
196
|
+
callId: row.toolUseId ?? "",
|
|
197
|
+
at: row.at
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
return {
|
|
201
|
+
sessions,
|
|
202
|
+
rows,
|
|
203
|
+
malformed
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
/** Read one or more ledger files as one ledger. A file that cannot be read throws: a missing ledger is not an empty one. */
|
|
207
|
+
async function readChangeLedger(paths) {
|
|
208
|
+
const texts = [];
|
|
209
|
+
for (const path of paths) try {
|
|
210
|
+
texts.push(await readFile(path, "utf8"));
|
|
211
|
+
} catch (error) {
|
|
212
|
+
throw new ValidationError(`readChangeLedger: cannot read ${path}: ${errorMessage(error)}`);
|
|
213
|
+
}
|
|
214
|
+
return parseChangeLedger(texts.join("\n"));
|
|
215
|
+
}
|
|
216
|
+
/** The last tool call or skill call of the record whose time lies in [from, to]; null when there is none. */
|
|
217
|
+
function callInWindow(record, from, to) {
|
|
218
|
+
const start = Date.parse(from);
|
|
219
|
+
const end = Date.parse(to);
|
|
220
|
+
if (!Number.isFinite(start) || !Number.isFinite(end)) return null;
|
|
221
|
+
let found = null;
|
|
222
|
+
for (const event of record.events) {
|
|
223
|
+
if (event.kind === "model" || event.at === null) continue;
|
|
224
|
+
const at = Date.parse(event.at);
|
|
225
|
+
if (at >= start && at <= end) found = event.kind === "tool" ? event.id : event.callId;
|
|
226
|
+
}
|
|
227
|
+
return found;
|
|
228
|
+
}
|
|
229
|
+
function joinRead(read, ledger) {
|
|
230
|
+
if (!read.succeeded) return read;
|
|
231
|
+
const { value } = read;
|
|
232
|
+
const held = ledger.sessions.get(key(value.harness, value.sessionId));
|
|
233
|
+
const seen = /* @__PURE__ */ new Set();
|
|
234
|
+
const changes = [];
|
|
235
|
+
const aliases = value.callAliases ?? {};
|
|
236
|
+
const placeable = new Set(value.events.flatMap((event) => event.kind === "tool" ? [event.id] : event.kind === "skill" ? [event.callId] : []));
|
|
237
|
+
let unplaced = 0;
|
|
238
|
+
const timed = [];
|
|
239
|
+
for (const change of held?.timed ?? []) {
|
|
240
|
+
const callId = callInWindow(value, change.from, change.to);
|
|
241
|
+
if (callId === null) unplaced += 1;
|
|
242
|
+
else timed.push({
|
|
243
|
+
ref: change.ref,
|
|
244
|
+
callId,
|
|
245
|
+
at: change.to
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
for (const row of [
|
|
249
|
+
...value.changes ?? [],
|
|
250
|
+
...held?.changes ?? [],
|
|
251
|
+
...timed
|
|
252
|
+
]) {
|
|
253
|
+
const change = Object.hasOwn(aliases, row.callId) ? {
|
|
254
|
+
...row,
|
|
255
|
+
callId: aliases[row.callId]
|
|
256
|
+
} : row;
|
|
257
|
+
if (!placeable.has(change.callId)) unplaced += 1;
|
|
258
|
+
const id = `${change.ref}\u0000${change.callId}`;
|
|
259
|
+
if (seen.has(id)) continue;
|
|
260
|
+
seen.add(id);
|
|
261
|
+
changes.push(change);
|
|
262
|
+
}
|
|
263
|
+
const gaps = [...value.gaps];
|
|
264
|
+
if (held !== void 0 && held.unnamed > 0) gaps.push(`${held.unnamed} changes the change ledger recorded could not be named (no repository, or no commit or pull request number)`);
|
|
265
|
+
if (unplaced > 0) gaps.push(`${unplaced} changes name a tool call this session record does not hold, so the turn that made them is unknown and no turn is reported as having made none`);
|
|
266
|
+
const { changes: _transcriptChanges, ...rest } = value;
|
|
267
|
+
const incomplete = [...held?.incomplete ?? []];
|
|
268
|
+
if (incomplete.length > 0) gaps.push(`the change ledger's writer said some turns' changes may be incomplete (${incomplete.map(([why, n]) => `${why}: ${n}`).join(", ")}), so the session's changes are unknown`);
|
|
269
|
+
const known = unplaced === 0 && incomplete.length === 0 && (held?.observed === true || changes.length > 0);
|
|
270
|
+
return {
|
|
271
|
+
...read,
|
|
272
|
+
value: {
|
|
273
|
+
...rest,
|
|
274
|
+
gaps,
|
|
275
|
+
...known ? { changes } : {}
|
|
276
|
+
}
|
|
277
|
+
};
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* The sessions of `source` with their changes taken from the ledger as well as
|
|
281
|
+
* from the transcript. A session the ledger never observed keeps only the
|
|
282
|
+
* changes its transcript shows, and has none recorded when it shows none.
|
|
283
|
+
*/
|
|
284
|
+
async function* withChangeLedger(source, ledger) {
|
|
285
|
+
for await (const read of source) yield joinRead(read, ledger);
|
|
286
|
+
}
|
|
37
287
|
// src/skill-usage/change-refs.ts
|
|
38
288
|
/** Claude Code's shell tool, and Codex's: `exec_command`, `shell`, and `exec`, the code-mode tool whose JavaScript runs the shell. */
|
|
39
289
|
const SHELL_TOOLS = /* @__PURE__ */ new Set([
|
|
@@ -179,12 +429,14 @@ function skillSessionFromHarnessSession(session, markers = {}) {
|
|
|
179
429
|
});
|
|
180
430
|
const skill = markers.skillOfToolCall?.(call) ?? null;
|
|
181
431
|
if (skill === null) {
|
|
432
|
+
const subagent = markers.subagentOfToolCall?.(call) ?? null;
|
|
182
433
|
events.push({
|
|
183
434
|
kind: "tool",
|
|
184
435
|
id,
|
|
185
436
|
name: call.name,
|
|
186
437
|
at: call.startedAt,
|
|
187
|
-
failed
|
|
438
|
+
failed,
|
|
439
|
+
...subagent === null ? {} : { subagent }
|
|
188
440
|
});
|
|
189
441
|
return;
|
|
190
442
|
}
|
|
@@ -328,6 +580,14 @@ function firstLoadedSkillText(texts, args) {
|
|
|
328
580
|
}
|
|
329
581
|
return null;
|
|
330
582
|
}
|
|
583
|
+
/** Claude Code's subagent tools: `Agent`, and `Task` in older versions. */
|
|
584
|
+
const SUBAGENT_TOOLS = /* @__PURE__ */ new Set(["Agent", "Task"]);
|
|
585
|
+
/** The subagent type a Claude Code tool call starts, or null when it names none. */
|
|
586
|
+
function subagentOfToolCall(call) {
|
|
587
|
+
if (!SUBAGENT_TOOLS.has(call.name)) return null;
|
|
588
|
+
const type = record$1(call.input)?.subagent_type;
|
|
589
|
+
return typeof type === "string" && type !== "" ? type : null;
|
|
590
|
+
}
|
|
331
591
|
/** The skill a Claude Code tool call invokes, or null. */
|
|
332
592
|
function skillOfToolCall(call) {
|
|
333
593
|
if (call.name !== SKILL_TOOL) return null;
|
|
@@ -434,6 +694,7 @@ function skillSession(records, identity) {
|
|
|
434
694
|
parentNativeSessionId: identity.parentSessionId
|
|
435
695
|
}), {
|
|
436
696
|
skillOfToolCall,
|
|
697
|
+
subagentOfToolCall,
|
|
437
698
|
changesOfToolCall: githubPullRequestRefs,
|
|
438
699
|
...skillMarkers(records, identity.parentSessionId !== null)
|
|
439
700
|
});
|
|
@@ -7794,6 +8055,6 @@ function printSuccessSummary(artifact, paths) {
|
|
|
7794
8055
|
function shellQuote(value) {
|
|
7795
8056
|
return /^[a-zA-Z0-9_./:@%+=,-]+$/.test(value) ? value : `'${value.replaceAll("'", "'\\''")}'`;
|
|
7796
8057
|
}
|
|
7797
|
-
export { agentRxBenchmarkCase as A, renderSkillUsageTable as B, ANALYST_BENCHMARK_COST_LEDGER_FILE as C, AGENT_RX_UPSTREAM_REVISION as D, ANALYST_BENCHMARK_OBSERVATIONS_FILE as E, runAnalystBenchmark as F, claudeCodeSkillSessions as H, traceStoreEvidenceResolver as I, afterInvocation as L, normalizeAgentRxCategory as M, externalId as N, codeTraceBenchCase as O, positiveStep as P, buildSkillUsageReport as R, ANALYST_BENCHMARK_IMPLEMENTATION_FILES as S, ANALYST_BENCHMARK_MANIFEST_FILE as T, skillSessionFromHarnessSession as U, codexSkillSessions as V, readSkillFile as W, readAnalystBenchmarkArtifact as _, runInlineAnalystDefinition as a, ANALYST_BENCHMARK_EVIDENCE_DEPENDENCY_LOCK_SHA256 as b, publicRlmAnalystDefinition as c, publicDirectAnalystDefinition as d, runChunkedAnalystDefinition as f, expandCodeTraceFailureBlocks as g, analystDefinitionProtocolSha256 as h, primeCodeTraceAnalystDefinition as i, agentRxPredictionsToFindings as j, codeTracerPredictionsToFindings as k, runReplVariableAnalystDefinition as l, analystDefinitionAsymmetries as m, createPrimeBenchmarkRunner as n, loadPublicBenchmarkRows as o, AnalystExpressivenessError as p, primeAnalystProtocolSha256 as r, createPublicBenchmarkRlmRunner as s, runAnalystBenchmarkCommand as t, createPublicBenchmarkDirectRunner as u, CODE_TRACE_BENCH_ANALYST_PROMPT as v, ANALYST_BENCHMARK_LOCAL_RECEIPT_FILE as w, ANALYST_BENCHMARK_EVIDENCE_IMPLEMENTATION_SHA256 as x, publicBenchmarkProtocolSha256 as y, instant as z };
|
|
8058
|
+
export { agentRxBenchmarkCase as A, renderSkillUsageTable as B, ANALYST_BENCHMARK_COST_LEDGER_FILE as C, AGENT_RX_UPSTREAM_REVISION as D, ANALYST_BENCHMARK_OBSERVATIONS_FILE as E, runAnalystBenchmark as F, CHANGE_LEDGER_ACTIONS as G, claudeCodeSkillSessions as H, traceStoreEvidenceResolver as I, withChangeLedger as J, parseChangeLedger as K, afterInvocation as L, normalizeAgentRxCategory as M, externalId as N, codeTraceBenchCase as O, positiveStep as P, buildSkillUsageReport as R, ANALYST_BENCHMARK_IMPLEMENTATION_FILES as S, ANALYST_BENCHMARK_MANIFEST_FILE as T, skillSessionFromHarnessSession as U, codexSkillSessions as V, readSkillFile as W, readAnalystBenchmarkArtifact as _, runInlineAnalystDefinition as a, ANALYST_BENCHMARK_EVIDENCE_DEPENDENCY_LOCK_SHA256 as b, publicRlmAnalystDefinition as c, publicDirectAnalystDefinition as d, runChunkedAnalystDefinition as f, expandCodeTraceFailureBlocks as g, analystDefinitionProtocolSha256 as h, primeCodeTraceAnalystDefinition as i, agentRxPredictionsToFindings as j, codeTracerPredictionsToFindings as k, runReplVariableAnalystDefinition as l, analystDefinitionAsymmetries as m, createPrimeBenchmarkRunner as n, loadPublicBenchmarkRows as o, AnalystExpressivenessError as p, readChangeLedger as q, primeAnalystProtocolSha256 as r, createPublicBenchmarkRlmRunner as s, runAnalystBenchmarkCommand as t, createPublicBenchmarkDirectRunner as u, CODE_TRACE_BENCH_ANALYST_PROMPT as v, ANALYST_BENCHMARK_LOCAL_RECEIPT_FILE as w, ANALYST_BENCHMARK_EVIDENCE_IMPLEMENTATION_SHA256 as x, publicBenchmarkProtocolSha256 as y, instant as z };
|
|
7798
8059
|
|
|
7799
|
-
//# sourceMappingURL=benchmark-command-
|
|
8060
|
+
//# sourceMappingURL=benchmark-command-DgR1i30h.js.map
|