@tangle-network/traces 0.15.4 → 0.16.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/README.md +130 -13
- package/dist/{chunk-SKOW5V5U.js → chunk-G5KKIQZ6.js} +578 -283
- package/dist/cli.js +606 -42
- package/dist/index.d.ts +140 -32
- package/dist/index.js +27 -9
- package/docs/trace-analysts.md +1 -1
- package/package.json +4 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { TraceValidation, SpanKind, Outcome } from '@tangle-network/agent-trace-contract';
|
|
2
2
|
export { Capability, ConformanceFinding, ContractSpan, SpanLink, TraceValidation } from '@tangle-network/agent-trace-contract';
|
|
3
|
-
import { SpanSourceReader, TraceAnalysisStore,
|
|
4
|
-
export {
|
|
3
|
+
import { SpanSourceReader, TraceAnalysisStore, RedactionProfile, RedactionReport, ShareSafetyVerdict } from '@tangle-network/agent-eval/traces';
|
|
4
|
+
export { ErrorCluster, RedactionProfile, RedactionReport, ShareSafetyVerdict, TraceAnalysisStore, assessShareSafety, redact, redactForShare, redactText, shareAllowed } from '@tangle-network/agent-eval/traces';
|
|
5
5
|
import { ToolUseMetrics, InMemoryTraceStore, CostProvenance } from '@tangle-network/agent-eval';
|
|
6
|
-
import { StuckLoopReport, FailureClusterReport } from '@tangle-network/agent-eval/pipelines';
|
|
6
|
+
import { StuckLoopReport, FailureClusterReport, DiffStep, StepDiff } from '@tangle-network/agent-eval/pipelines';
|
|
7
7
|
import { TraceAnalystDefinition, TraceAnalysisEngine, AnalystRegistry, AnalystFinding, buildDefaultAnalystRegistry, AnalystRunSummary, AnalystRunResult, Analyst, RawAnalystFinding, AnalystUsageReceipt, TraceAnalystLimits } from '@tangle-network/agent-eval/analyst';
|
|
8
8
|
export { Analyst, AnalystContext, AnalystFinding, AnalystRegistry, buildDefaultAnalystRegistry, makeFinding } from '@tangle-network/agent-eval/analyst';
|
|
9
9
|
import { ExecutionReport } from '@tangle-network/agent-eval/contract';
|
|
10
|
+
import { FirstFailure } from '@tangle-network/agent-eval/diagnosis';
|
|
10
11
|
import { SpawnEvent, NodeStatus, Runtime, Budget, Spend } from '@tangle-network/agent-runtime/kernel';
|
|
11
12
|
import { SupervisorRunNodeRole, SupervisorRunReader, SupervisorRunSources } from '@tangle-network/agent-eval/supervisor-run';
|
|
12
13
|
import { ReplayExecBackend, VerifiableFinding, FindingReplaySource, VerifyFindingsRun, ChatCompletionCaller } from '@tangle-network/agent-eval/trajectory-replay';
|
|
@@ -2586,6 +2587,53 @@ interface ProjectSessionBundleResult {
|
|
|
2586
2587
|
*/
|
|
2587
2588
|
declare function projectSessionBundle(opts: ProjectSessionBundleOptions): Promise<ProjectSessionBundleResult>;
|
|
2588
2589
|
|
|
2590
|
+
/**
|
|
2591
|
+
* `traces diff <a> <b>`: where two runs of the same task stop agreeing.
|
|
2592
|
+
*
|
|
2593
|
+
* The diff is agent-eval's (`diffSteps` in `/pipelines`): steps pair by span id,
|
|
2594
|
+
* then by position with the same name and kind, then by name and kind anywhere,
|
|
2595
|
+
* and the first divergence is classified as changed, replaced, only-in-a,
|
|
2596
|
+
* only-in-b or reordered. This module reads the two runs and prints the result.
|
|
2597
|
+
*/
|
|
2598
|
+
|
|
2599
|
+
interface RunDiffSide {
|
|
2600
|
+
/** The path as given, without its `#` selector. */
|
|
2601
|
+
readonly path: string;
|
|
2602
|
+
readonly traceId: string;
|
|
2603
|
+
/** The arm read, when the side was given as `path#branch=<id>`. */
|
|
2604
|
+
readonly branch?: string;
|
|
2605
|
+
readonly spans: number;
|
|
2606
|
+
readonly steps: readonly DiffStep[];
|
|
2607
|
+
}
|
|
2608
|
+
interface RunDiffReport {
|
|
2609
|
+
readonly kind: 'traces.run_diff';
|
|
2610
|
+
/** The span kinds the steps were limited to; absent when every step was kept. */
|
|
2611
|
+
readonly kinds?: readonly string[];
|
|
2612
|
+
readonly a: RunDiffSide;
|
|
2613
|
+
readonly b: RunDiffSide;
|
|
2614
|
+
readonly diff: StepDiff;
|
|
2615
|
+
/**
|
|
2616
|
+
* Set when "the runs agree step for step" would overclaim: neither side has
|
|
2617
|
+
* a step with a definitive OK/ERROR status, or neither side has a TOOL step.
|
|
2618
|
+
* Agreement on unrecorded status, or on non-tool bookkeeping steps, is not
|
|
2619
|
+
* evidence the runs behaved the same — a captured UNSET status means the
|
|
2620
|
+
* outcome was never recorded, on either run.
|
|
2621
|
+
*/
|
|
2622
|
+
readonly caveat?: string;
|
|
2623
|
+
}
|
|
2624
|
+
interface RunDiffOptions {
|
|
2625
|
+
/** Keep only steps of these span kinds (e.g. TOOL), so event noise does not mark a divergence. */
|
|
2626
|
+
readonly kinds?: readonly string[];
|
|
2627
|
+
}
|
|
2628
|
+
/**
|
|
2629
|
+
* Read one side. `path` must hold one run; `path#<trace id>` picks a run from
|
|
2630
|
+
* a file that holds several; `path#branch=<id>` picks one arm by its
|
|
2631
|
+
* `agent.branch.id` or `agent.branch.arm`, so two arms of one run compare.
|
|
2632
|
+
*/
|
|
2633
|
+
declare function readRunSide(ref: string, options?: RunDiffOptions): Promise<RunDiffSide>;
|
|
2634
|
+
declare function diffRuns(a: string, b: string, options?: RunDiffOptions): Promise<RunDiffReport>;
|
|
2635
|
+
declare function renderRunDiff(report: RunDiffReport): string;
|
|
2636
|
+
|
|
2589
2637
|
type TraceInspectionSeverity = 'high' | 'medium' | 'low';
|
|
2590
2638
|
type TraceInspectionArea = 'index' | 'session' | 'repo' | 'context';
|
|
2591
2639
|
interface TraceInspectionFinding {
|
|
@@ -2637,7 +2685,7 @@ interface TraceEvidenceExportResult {
|
|
|
2637
2685
|
readonly format: TraceEvidenceInputFormat;
|
|
2638
2686
|
readonly spans: OtlpSpan[];
|
|
2639
2687
|
readonly redactionCount: number;
|
|
2640
|
-
readonly
|
|
2688
|
+
readonly redactionsByDetector: Record<string, number>;
|
|
2641
2689
|
}
|
|
2642
2690
|
declare function exportTraceEvidenceRows(rows: readonly unknown[], opts?: TraceEvidenceExportOptions, wrapper?: JsonObject$1): TraceEvidenceExportResult;
|
|
2643
2691
|
declare function exportTraceEvidenceText(text: string, opts?: TraceEvidenceExportOptions): TraceEvidenceExportResult;
|
|
@@ -3718,6 +3766,12 @@ interface SessionFacts {
|
|
|
3718
3766
|
readonly lastRecordAt: SessionFact<string>;
|
|
3719
3767
|
/** The harness's own cumulative token total, when a span carries it. */
|
|
3720
3768
|
readonly tokenTotal: SessionFact<number>;
|
|
3769
|
+
/**
|
|
3770
|
+
* The session's first failure by agent-eval's fixed precedence: the innermost
|
|
3771
|
+
* ERROR span that ended first, else a failed `agent.outcome`, else `none`.
|
|
3772
|
+
* Failures that ended at the same instant are `ambiguous`, never guessed.
|
|
3773
|
+
*/
|
|
3774
|
+
readonly firstFailure: FirstFailure;
|
|
3721
3775
|
}
|
|
3722
3776
|
interface SessionFactsReport {
|
|
3723
3777
|
readonly schemaVersion: 1;
|
|
@@ -3780,7 +3834,7 @@ declare function sessionFactsContext(spans: readonly OtlpSpan[], options?: {
|
|
|
3780
3834
|
* prepared context changed is a different analyst. Wrapping therefore bumps the
|
|
3781
3835
|
* version instead of quietly changing what the same version does.
|
|
3782
3836
|
*/
|
|
3783
|
-
declare const SESSION_FACTS_VERSION_SUFFIX = "session-facts.
|
|
3837
|
+
declare const SESSION_FACTS_VERSION_SUFFIX = "session-facts.2";
|
|
3784
3838
|
/**
|
|
3785
3839
|
* Supply the sheet to every definition as prepared context, before the model
|
|
3786
3840
|
* runs. A definition that already prepares context keeps it; the sheet is
|
|
@@ -4512,41 +4566,85 @@ interface WatchRunTargetOptions {
|
|
|
4512
4566
|
declare function watchRunTarget(target: RunWatchTarget, opts?: WatchRunTargetOptions): Promise<RunWatchSnapshot>;
|
|
4513
4567
|
|
|
4514
4568
|
/**
|
|
4515
|
-
*
|
|
4569
|
+
* Redaction for trace spans before they leave the machine.
|
|
4516
4570
|
*
|
|
4517
|
-
*
|
|
4518
|
-
*
|
|
4519
|
-
*
|
|
4520
|
-
*
|
|
4521
|
-
*
|
|
4522
|
-
*
|
|
4571
|
+
* The patterns, field-name rules and profiles live in agent-eval's redaction
|
|
4572
|
+
* core (`@tangle-network/agent-eval/traces`, docs/redaction.md). This module
|
|
4573
|
+
* applies the core to OTLP spans: source-location attributes are removed, every
|
|
4574
|
+
* span attribute and status message is redacted in one pass (so a pseudonym
|
|
4575
|
+
* under the `share` profile is the same on every span), and tool I/O
|
|
4576
|
+
* attributes are normalized again afterwards.
|
|
4523
4577
|
*
|
|
4524
|
-
* Scope
|
|
4525
|
-
* and
|
|
4526
|
-
*
|
|
4527
|
-
*
|
|
4528
|
-
* ingest side of the platform, or upload metadata-only with `--no-content`.
|
|
4578
|
+
* Scope: the core finds credentials by field name and value shape, and email,
|
|
4579
|
+
* card, SSN and phone values. It does not find names, postal addresses or
|
|
4580
|
+
* account numbers written in prose. For that, pass an external `Redactor`
|
|
4581
|
+
* (`applyRedactor`) or upload metadata-only with `--no-content`.
|
|
4529
4582
|
*/
|
|
4530
4583
|
|
|
4531
|
-
/** Secrets common in coding-agent traces that the substrate defaults don't cover. */
|
|
4532
|
-
declare const CODING_REDACTION_RULES: RedactionRule[];
|
|
4533
|
-
/** Defaults + coding-session rules — the rule set used for upload. */
|
|
4534
|
-
declare const TRACES_REDACTION_RULES: RedactionRule[];
|
|
4535
4584
|
interface SpanRedaction {
|
|
4536
4585
|
spans: OtlpSpan[];
|
|
4537
4586
|
report: RedactionReport;
|
|
4538
4587
|
}
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
|
-
|
|
4588
|
+
interface RedactSpansOptions {
|
|
4589
|
+
/** Default `default`. */
|
|
4590
|
+
profile?: RedactionProfile;
|
|
4591
|
+
/** Exact secret values to remove in any encoding, such as the API key the run used. */
|
|
4592
|
+
knownSecrets?: readonly string[];
|
|
4593
|
+
}
|
|
4594
|
+
/**
|
|
4595
|
+
* Redact every string field that leaves the machine: name, attributes, status
|
|
4596
|
+
* message, and each causal link's own attributes. `assessSpans` below (and
|
|
4597
|
+
* the MCP search tools built on this store) all read `span.name` and
|
|
4598
|
+
* `span.links[].attributes` — a secret left in either is as reachable as one
|
|
4599
|
+
* in an attribute — a search for it just works, defeating redaction. The core
|
|
4600
|
+
* redacts nested object keys as well as values (a credential shape glued into
|
|
4601
|
+
* a key name, such as an env-style attribute key carrying a token, is renamed
|
|
4602
|
+
* the same as a credential-shaped value), so link attributes get that same
|
|
4603
|
+
* coverage once they are part of what `redact` walks.
|
|
4604
|
+
*/
|
|
4605
|
+
declare function redactSpans(spans: readonly OtlpSpan[], options?: RedactSpansOptions): SpanRedaction;
|
|
4606
|
+
/**
|
|
4607
|
+
* The share-safety verdict for spans as they would be sent. UNSAFE and UNKNOWN
|
|
4608
|
+
* refuse. Finding paths start with the span id. Covers `links[].attributes`
|
|
4609
|
+
* for the same reason {@link redactSpans} does: a secret reachable through a
|
|
4610
|
+
* causal link is as live as one on the span itself.
|
|
4611
|
+
*/
|
|
4612
|
+
declare function assessSpans(spans: readonly OtlpSpan[], profile?: RedactionProfile): ShareSafetyVerdict;
|
|
4542
4613
|
/** Defense-in-depth: run an external {@link Redactor} over captured conversation
|
|
4543
|
-
* and tool values, catching free-form PII the
|
|
4614
|
+
* and tool values, catching free-form PII the core misses. Compose AFTER
|
|
4544
4615
|
* `redactSpans`. Returns scrubbed spans and the number of fields changed. */
|
|
4545
4616
|
declare function applyRedactor(spans: readonly OtlpSpan[], redactor: Redactor): Promise<{
|
|
4546
4617
|
spans: OtlpSpan[];
|
|
4547
4618
|
changed: number;
|
|
4548
4619
|
}>;
|
|
4549
4620
|
|
|
4621
|
+
/**
|
|
4622
|
+
* `traces verify-safe <file|dir>`: say whether files are safe to share, using
|
|
4623
|
+
* agent-eval's share-safety verdict. It reads and never writes.
|
|
4624
|
+
*
|
|
4625
|
+
* A `.json` file is parsed whole and a `.jsonl` or `.ndjson` file line by
|
|
4626
|
+
* line; any other file is scanned as UTF-8 text. A file that cannot be read, a
|
|
4627
|
+
* line that is not JSON, a symlink, or bytes that are not UTF-8 text make the
|
|
4628
|
+
* verdict UNKNOWN, because an unread part could hold anything. Findings name
|
|
4629
|
+
* the file and JSON Pointer, never the matched value.
|
|
4630
|
+
*/
|
|
4631
|
+
|
|
4632
|
+
interface VerifySafeOptions {
|
|
4633
|
+
/** Default `share`. */
|
|
4634
|
+
profile?: RedactionProfile;
|
|
4635
|
+
/** Exact secret values; any surviving occurrence in any encoding makes the verdict UNSAFE. */
|
|
4636
|
+
knownSecrets?: readonly string[];
|
|
4637
|
+
}
|
|
4638
|
+
interface VerifySafeResult extends ShareSafetyVerdict {
|
|
4639
|
+
target: string;
|
|
4640
|
+
files: number;
|
|
4641
|
+
}
|
|
4642
|
+
declare function verifySafe(target: string, options?: VerifySafeOptions): Promise<VerifySafeResult>;
|
|
4643
|
+
/** Exit code for a verdict: 0 SAFE or SAFE_WITH_WARNINGS, 1 UNSAFE, 2 UNKNOWN. */
|
|
4644
|
+
declare function verdictExitCode(verdict: ShareSafetyVerdict): number;
|
|
4645
|
+
/** Human-readable verdict: status, then one line per finding and unreadable part. */
|
|
4646
|
+
declare function formatVerdict(result: VerifySafeResult): string;
|
|
4647
|
+
|
|
4550
4648
|
/**
|
|
4551
4649
|
* Batch collection seam — `collectSessions` returns redacted spans per session
|
|
4552
4650
|
* for a time window / harness selection, so a third party can feed batches or
|
|
@@ -4658,13 +4756,15 @@ declare function alreadyUploaded(state: UploadState, harness: string, sessionId:
|
|
|
4658
4756
|
* Upload local coding-session traces to the Tangle Intelligence Platform.
|
|
4659
4757
|
*
|
|
4660
4758
|
* Pipeline per session: locate (time window) → parse to OTLP spans → REDACT
|
|
4661
|
-
* (
|
|
4662
|
-
*
|
|
4663
|
-
*
|
|
4759
|
+
* (agent-eval's redaction core) → apply the selected privacy mode → augment
|
|
4760
|
+
* with metadata → CHECK the final events with the share-safety verdict → dedup
|
|
4761
|
+
* → POST via the hosted `ingestTraces` client. A session whose final events are
|
|
4762
|
+
* UNSAFE or UNKNOWN is refused: it is not sent, not written to a dry-run
|
|
4763
|
+
* preview, and not marked uploaded. The dedup is local-state + server
|
|
4664
4764
|
* idempotency-key.
|
|
4665
4765
|
*
|
|
4666
|
-
* `planUpload` is read-only (select +
|
|
4667
|
-
*
|
|
4766
|
+
* `planUpload` is read-only (select + redact); `executeUpload` applies final
|
|
4767
|
+
* privacy options, checks, deduplicates, and sends or writes a dry-run preview.
|
|
4668
4768
|
*/
|
|
4669
4769
|
|
|
4670
4770
|
interface UploadItem {
|
|
@@ -4683,11 +4783,17 @@ interface UploadPlan {
|
|
|
4683
4783
|
sinceMs?: number;
|
|
4684
4784
|
}
|
|
4685
4785
|
type PlanOptions = ScanOptions;
|
|
4686
|
-
/** Read-only: select sessions in the window and
|
|
4786
|
+
/** Read-only: select sessions in the window and redact them with the default profile. */
|
|
4687
4787
|
declare function planUpload(opts?: PlanOptions): Promise<UploadPlan>;
|
|
4688
4788
|
/** Map redacted OtlpSpan[] → the hosted TraceSpanEvent[] wire shape, attaching
|
|
4689
4789
|
* session metadata to the root span(s). */
|
|
4690
4790
|
declare function toTraceSpanEvents(spans: readonly OtlpSpan[], rootMeta: Record<string, string | number | boolean>): TraceSpanEvent[];
|
|
4791
|
+
/** A session the share-safety check kept on the machine. */
|
|
4792
|
+
interface RefusedSession {
|
|
4793
|
+
harness: string;
|
|
4794
|
+
sessionId: string;
|
|
4795
|
+
verdict: ShareSafetyVerdict;
|
|
4796
|
+
}
|
|
4691
4797
|
interface UploadResult {
|
|
4692
4798
|
uploadedSessions: number;
|
|
4693
4799
|
skippedSessions: number;
|
|
@@ -4695,6 +4801,8 @@ interface UploadResult {
|
|
|
4695
4801
|
redactionCount: number;
|
|
4696
4802
|
dryRun: boolean;
|
|
4697
4803
|
otlpPath?: string;
|
|
4804
|
+
/** Sessions whose final events were UNSAFE or UNKNOWN. None of them was sent. */
|
|
4805
|
+
refused: RefusedSession[];
|
|
4698
4806
|
}
|
|
4699
4807
|
/** A trace sink. The hosted client satisfies this; pass your own to route
|
|
4700
4808
|
* redacted+deduped traces into a different system. */
|
|
@@ -4726,4 +4834,4 @@ interface ExecuteOptions {
|
|
|
4726
4834
|
/** Send the final, new outbound items (or write their dry-run OTLP). */
|
|
4727
4835
|
declare function executeUpload(plan: UploadPlan, opts?: ExecuteOptions): Promise<UploadResult>;
|
|
4728
4836
|
|
|
4729
|
-
export { ACTOR_ATTR, ATTR, type Actor, type AdoptionOptions, type AdoptionReport, AmpAdapter, type AnalysisEngineFromEnvOptions, type AnalyzeOptions, type AnalyzeResult, type AnswerSchema, type AssembleSessionBundleOptions, BLOBS_DIR, type BuildPolicyEvidenceOptions, type BuildSessionIndexOptions, type BuildTraceFindingPacketOptions, CHANGED_FILE_LIST_CAP, CITATION_NORMALIZATION_VERSION, CODING_REDACTION_RULES, CONTENT_CAP, COORDINATION_LOG_FILE, CORRECTIVE_REACTIONS, type ChangedFileFact, type ChatTrajectory, type ChatTrajectoryMessage, type ChatTrajectoryOptions, ClaudeAdapter, type CodeTraceBenchFileRef, type CodeTraceBenchImportOptions, type CodeTraceBenchImportReceipt, type CodeTraceBenchImportResult, type CodeTraceBenchImportedTrace, type CodeTraceBenchStep, CodexAdapter, CodexExecAdapter, CodexExecStreamError, CodexTaskScopeError, type CollectOptions, type CollectPolicyEvidenceOptions, type CollectSessionIndexOptions, type CollectSessionSelectionOptions, type CollectSessionWorkflowOptions, type ConformanceRenderOptions, type CoordinationLog, type CoordinationQuestion, type CoordinationSteer, CopilotAdapter, type CorruptionMode, DEFAULT_ANALYST_MODEL, DEFAULT_ASK_CONCURRENCY, DEFAULT_HARNESS, DEFAULT_SANDBOX_BASE_URL, EMPTY_SPAN_RUN_SNAPSHOT, EXPORT_RULE, EmptySessionError, type EvidenceOnlyVerdict, type ExcludedTurnFact, type ExecuteOptions, type ExportRule, type ExternalAnalysisKind, type ExternalAnalysisPayload, type ExternalAnalysisResult, type ExternalAnalyzer, type ExternalAnalyzerOptions, type ExternalDiscoveryCandidate, FACT_LIST_CAP, FACT_TEXT_CAP, FactoryAdapter, type FailureFollowUp, type FailureFollowUpReport, type FileRunContextReaderOptions, type FinalMessageFact, type FindSessionTextLeaksOptions, type FindingRejectionCounts, type FindingRejectionReasons, type FindingRejectionTally, type FollowUpKind, ForgeAdapter, GeminiAdapter, type HaloAnalyzerOptions, type HaloReasoningEffort, type HarnessTraceAdapter, type HodoscopeAnalyzerOptions, type HodoscopeInput, type HodoscopeMessage, type HodoscopeSourceMapEntry, type HodoscopeTrajectory, INGEST_SOURCE_CLI, INHERITED_SOURCE_ATTR, INHERITED_SPANS_OMITTED_ATTR, INHERITED_SPAN_ATTR, INHERITED_SPAN_COUNT_ATTR, type InheritedSpanSource, type InspectSessionIndexOptions, JsonSourceError, type JsonlCorruptionReceipt, JsonlParseError, type JsonlReadOptions, type LiveBatchOptions, type LocateOptions, type LoopConvergence, type LoopConvergenceReport, type LoopIteration, type LoopTrend, type LoopTrendBasis, MAX_SHELL_DEPTH, MAX_TRACE_QUESTION_CHARS, type ObservedLoop, type ObserverOptions, OpencodeAdapter, type OtlpIngestIssue, type OtlpIngestIssueKind, type OtlpInput, type OtlpInputFile, type OtlpRowConversion, type OtlpSpan, type OtlpSpanKind, type OtlpSpanLink, type OtlpStatusCode, POLICY_EVIDENCE_NOTE, PREPARED_CONTEXT_BYTE_CEILING, type ParentTaskResolution, type ParseOptions, PartialUploadError, PiAdapter, type PiAdapterOptions, type PipelineOptions, type PipelineReport, type PlanOptions, type PolicyEvidenceLoopSummary, type PolicyEvidenceRecord, type PolicyEvidenceToolSummary, type PrimeAnalyzerOptions, type PrimeTransport, type PrimeTransportRequest, type PrimeTransportResponse, type ProjectSessionBundleOptions, type ProjectSessionBundleResult, type PullRequestFact, type PullRequestFacts, type PullRequestReading, QwenAdapter, REACTIONS, RESULT_FILE, RULE, type Reaction, type ReactionReport, type ReactionSessionReport, type Redactor, type RepoAttrs, type RepoResolution, type RepoResolutionSource, type ResolvedOtlpInput, type RunContextJournal, type RunContextNode, type RunContextResult, type RunContextSnapshot, type RunResult, type RunWatchSnapshot, type RunWatchTarget, type RuntimeTrace, SESSION_FACTS_VERSION_SUFFIX, SESSION_TOKEN_TOTAL_ATTR, SOURCE_ATTRIBUTE_PREFIX, SPAN_SYNTHESIZED_ATTR, SPAWN_JOURNAL_FILE, STATUS_MARK, SYNTHESIZED_SOURCE_ATTR, SYNTHESIZED_SPAN_ATTR, type SandboxReplayBackendOptions, type ScanOptions, type ScannedSession, type SessionBatch, type SessionBundleAbsence, type SessionBundleCarriedSignatures, type SessionBundleExclusion, type SessionBundleExclusionRule, type SessionBundleFile, type SessionBundleIssue, type SessionBundleIssueKind, type SessionBundleLeakCheck, type SessionBundleLedgerSlice, type SessionBundleManifest, type SessionBundleProjection, type SessionBundleResult, type SessionBundleSliceRule, type SessionBundleVerification, type SessionBundleView, type SessionCorruptionReceipt, type SessionEnvironment, type SessionFact, type SessionFacts, type SessionFactsReport, type SessionIdentityConflict, type SessionIdentityIndex, type SessionIntegrity, type SessionRef, type SessionRelationship, type SessionRole, type SessionSeedGroup, type SessionSelection, type SessionSelectionRow, type SessionSourceFile, type SessionTextLeak, type SessionTextLeakReport, type SessionTurnFact, type SessionWorkflow, SessionWorkflowError, type SessionWorkflowErrorCode, type SessionWorkflowIssue, type SessionWorkflowSession, type SessionWorkflowSummary, type SkippedAnalysis, type SkippedInputFile, type SourceRecordReference, type SpanInput, type SpanNodeStatus, type SpanRedaction, type SpanRunNode, type SpanRunSnapshot, type SpanStructure, type SpawnedChildResolution, type SpendRoll, type SteeringChainReport, type SteeringEdge, type SubagentSpawnFact, TRACES_REDACTION_RULES, TRACE_QUESTION_PREVIEW_HEAD_CHARS, type TraceAgenticRoute, type TraceAgenticRouteReason, type TraceAgenticRouteReasonCode, type TraceContextIndex, type TraceContextRoot, type TraceEvidenceExportOptions, type TraceEvidenceExportResult, type TraceEvidenceFormatOption, type TraceEvidenceInputFormat, type TraceEvidenceRow, type TraceExecutionOptions, type TraceFindingPacket, type TraceImprovementArtifacts, type TraceImprovementOptions, type TraceImprovementResult, type TraceIndexedFile, type TraceInspectionArea, type TraceInspectionFinding, type TraceInspectionReport, type TraceInspectionSeverity, type TraceInvestigationOptions, type TraceInvestigationResult, type TraceLiveAction, type TraceLiveActionKind, type TraceLiveAnalysisContext, type TraceLiveAnalyst, type TraceLiveBatch, type TraceLiveEvidence, type TraceLiveFinding, type TraceLiveLoop, type TraceLiveSeverity, type TraceQuestion, type TraceQuestionAnswer, type TraceQuestionCitation, type TraceQuestionFailureKind, type TraceQuestionTrace, type TraceQuestionsArtifacts, type TraceQuestionsOptions, type TraceQuestionsResult, type TraceQuestionsTotals, type TraceSessionIndex, type TraceSessionIndexRow, type TraceStoreInvestigationOptions, type TraceStoreInvestigationResult, type TraceStreamEvent, type TraceStreamOptions, type TraceStreamReplayOptions, type TraceStreamSession, type TracesConfig, type TriggerPair, type TurnActorCount, type UnavailableCapabilities, type UploadBackend, type UploadIdentity, type UploadItem, type UploadPlan, type UploadRecord, type UploadResult, type UploadState, type UserPromptInput, type WatchRunTargetOptions, ZERO_ROLL, type ZaiChatCallerOptions, addSpend, alreadyUploaded, analysisEngineFromEnv, analyzeAdoption, analyzeLiveBatch, analyzeLoopConvergence, analyzeReactions, analyzeSpans, analyzeSteeringChain, answerSchemaErrors, applyRedactor, assembleSessionBundle, assertAnswerSchema, assertSandboxReachable, buildPolicyEvidenceRecord, buildSessionFactsReport, buildSessionIndex, buildSessionIndexFromRows, buildSpanRunTree, buildTraceFindingPacket, capText, chatTrajectoryToSpans, classifyEvidenceOnlyPath, classifyFailureFollowUps, classifyLiveActions, classifyReaction, claudeActor, codexActor, collectPolicyEvidence, collectSessionIndex, collectSessionSelection, collectSessionWorkflow, collectSessions, commandAnalyzer, commandRedactor, commandTextFromInput, computeSessionFacts, conformanceOfSpans, connectors, countSkillRunsJsonl, createBundleSourceReader, createFindingRejectionTally, cwdMatchesSelection, cwdMatchesSelectionResolved, defaultTraceLiveAnalysts, describeSessionRelationship, engineCallReservationFloorUsd, environmentAttributes, environmentFromSpanAttributes, equivalentGitCwds, executeUpload, exportTraceEvidenceFile, exportTraceEvidenceRows, exportTraceEvidenceText, externalFailureMessage, fileRunContextSupervisorRunReader, fileSha256, findContextRoot, findSessionTextLeaks, findSpanSourceFiles, findingRejection, findingRejectionDetail, forEachTreeNode, formatFindingRejections, haloAnalyzer, hashSessionBundleFiles, hodoscopeAnalyzer, httpJsonTransport, importCodeTraceBench, incompleteInputsNote, indexSessionIdsByTrace, inferRole, inferSpanKind, inspectSessionIndex, int, isBridgeMismatchError, isChatTrajectory, isChatTrajectoryMessage, isFileRunContextDir, isInheritedSpan, isSynthesizedSpan, knownHarnesses, listAdapters, listSessionBundleFiles, loadState, loadTraceQuestionsFile, loadTracesConfig, locateSessions, looksLikeAgentPrompt, mergeRolls, mergeTracesConfig, ms, normalizeAnalystCitations, normalizeRemote, normalizeTraceQuestions, otlpRowToSpan, outboundHash, parseIsoToEpochMs, parseJsonAnswer, parseSession, parseSince, planTraceAgenticRoute, planUpload, primeAnalyzer, projectSessionBundle, readCoordinationLog, readFileRunContext, readJsonFile, readJsonl, readOtlpInput, readPullRequests, readRunContextJournal, readRunContextSnapshot, readRunWatchSnapshot, readSessionBundleManifest, readSessionIndexFile, readSpanRunSnapshot, recordSessionCorruption, redactSpans, renderConformance, renderInspectionReport, renderRunContextSnapshot, renderRunWatchSnapshot, renderSessionFacts, renderSessionFactsContext, renderSpanRunSnapshot, renderTraceQuestionInstructions, renderTraceQuestionPrompt, renderTraceQuestionsReport, renderValidation, resolveAdapter, resolveOtlpInputFiles, resolveRepoAttrs, resolveRunContextDir, resolveRunWatchTarget, resolveSessionRepoAttrs, runCommand, runExternalAnalyzers, runPipelines, runTotals, runTraceImprovement, runTraceInvestigation, runTraceQuestions, runTraceStoreInvestigation, sandboxReplayBackend, saveReport, saveState, scanSessions, selectAdapters, serializeInspectionReport, serializePolicyEvidence, serializeSessionIndex, serializeSpans, serializeTraceStreamEvent, sessionFactsContext, sessionHash, sessionIdFromAttributes, sessionIntegrityAttributes, sessionTextSignatures, shellCommands, skippedAnalyses, span, spanRunTotals, stampEnvironmentAttrs, stampRepoAttrs, stampSessionIdentity, stampSessionIntegrity, stampSpanWorkdirRepoAttrs, streamSessions, summarizeOtlpExecution, summarizeSpanExecution, summarizeSpanStructure, takeJsonl, textIsSynthetic, toOpenInferenceSpan, toRuntimeStore, toTraceSpanEvents, tokens, totalAgenticFailureMessage, totalFindingRejections, traceAgenticKinds, traceCitationsInText, traceStreamEventsFromSpans, unavailableCapabilities, uploadKey, usd, userPromptSpan, validateOtlpSpans, validationExitCode, verifyFindingsInSandbox, verifySessionBundle, watchRunTarget, watchSessions, withSessionFactsContext, wrap, writeHodoscopeInput, writeInspectionReportFile, writeOtlpFile, writePolicyEvidenceFile, writeSessionBundleManifest, writeSessionIndexFile, writeTraceEvidenceExportFile, writeTraceImprovementArtifacts, writeTraceQuestionsArtifacts, zaiChatCaller, zeroPricedCost };
|
|
4837
|
+
export { ACTOR_ATTR, ATTR, type Actor, type AdoptionOptions, type AdoptionReport, AmpAdapter, type AnalysisEngineFromEnvOptions, type AnalyzeOptions, type AnalyzeResult, type AnswerSchema, type AssembleSessionBundleOptions, BLOBS_DIR, type BuildPolicyEvidenceOptions, type BuildSessionIndexOptions, type BuildTraceFindingPacketOptions, CHANGED_FILE_LIST_CAP, CITATION_NORMALIZATION_VERSION, CONTENT_CAP, COORDINATION_LOG_FILE, CORRECTIVE_REACTIONS, type ChangedFileFact, type ChatTrajectory, type ChatTrajectoryMessage, type ChatTrajectoryOptions, ClaudeAdapter, type CodeTraceBenchFileRef, type CodeTraceBenchImportOptions, type CodeTraceBenchImportReceipt, type CodeTraceBenchImportResult, type CodeTraceBenchImportedTrace, type CodeTraceBenchStep, CodexAdapter, CodexExecAdapter, CodexExecStreamError, CodexTaskScopeError, type CollectOptions, type CollectPolicyEvidenceOptions, type CollectSessionIndexOptions, type CollectSessionSelectionOptions, type CollectSessionWorkflowOptions, type ConformanceRenderOptions, type CoordinationLog, type CoordinationQuestion, type CoordinationSteer, CopilotAdapter, type CorruptionMode, DEFAULT_ANALYST_MODEL, DEFAULT_ASK_CONCURRENCY, DEFAULT_HARNESS, DEFAULT_SANDBOX_BASE_URL, EMPTY_SPAN_RUN_SNAPSHOT, EXPORT_RULE, EmptySessionError, type EvidenceOnlyVerdict, type ExcludedTurnFact, type ExecuteOptions, type ExportRule, type ExternalAnalysisKind, type ExternalAnalysisPayload, type ExternalAnalysisResult, type ExternalAnalyzer, type ExternalAnalyzerOptions, type ExternalDiscoveryCandidate, FACT_LIST_CAP, FACT_TEXT_CAP, FactoryAdapter, type FailureFollowUp, type FailureFollowUpReport, type FileRunContextReaderOptions, type FinalMessageFact, type FindSessionTextLeaksOptions, type FindingRejectionCounts, type FindingRejectionReasons, type FindingRejectionTally, type FollowUpKind, ForgeAdapter, GeminiAdapter, type HaloAnalyzerOptions, type HaloReasoningEffort, type HarnessTraceAdapter, type HodoscopeAnalyzerOptions, type HodoscopeInput, type HodoscopeMessage, type HodoscopeSourceMapEntry, type HodoscopeTrajectory, INGEST_SOURCE_CLI, INHERITED_SOURCE_ATTR, INHERITED_SPANS_OMITTED_ATTR, INHERITED_SPAN_ATTR, INHERITED_SPAN_COUNT_ATTR, type InheritedSpanSource, type InspectSessionIndexOptions, JsonSourceError, type JsonlCorruptionReceipt, JsonlParseError, type JsonlReadOptions, type LiveBatchOptions, type LocateOptions, type LoopConvergence, type LoopConvergenceReport, type LoopIteration, type LoopTrend, type LoopTrendBasis, MAX_SHELL_DEPTH, MAX_TRACE_QUESTION_CHARS, type ObservedLoop, type ObserverOptions, OpencodeAdapter, type OtlpIngestIssue, type OtlpIngestIssueKind, type OtlpInput, type OtlpInputFile, type OtlpRowConversion, type OtlpSpan, type OtlpSpanKind, type OtlpSpanLink, type OtlpStatusCode, POLICY_EVIDENCE_NOTE, PREPARED_CONTEXT_BYTE_CEILING, type ParentTaskResolution, type ParseOptions, PartialUploadError, PiAdapter, type PiAdapterOptions, type PipelineOptions, type PipelineReport, type PlanOptions, type PolicyEvidenceLoopSummary, type PolicyEvidenceRecord, type PolicyEvidenceToolSummary, type PrimeAnalyzerOptions, type PrimeTransport, type PrimeTransportRequest, type PrimeTransportResponse, type ProjectSessionBundleOptions, type ProjectSessionBundleResult, type PullRequestFact, type PullRequestFacts, type PullRequestReading, QwenAdapter, REACTIONS, RESULT_FILE, RULE, type Reaction, type ReactionReport, type ReactionSessionReport, type RedactSpansOptions, type Redactor, type RefusedSession, type RepoAttrs, type RepoResolution, type RepoResolutionSource, type ResolvedOtlpInput, type RunContextJournal, type RunContextNode, type RunContextResult, type RunContextSnapshot, type RunDiffOptions, type RunDiffReport, type RunDiffSide, type RunResult, type RunWatchSnapshot, type RunWatchTarget, type RuntimeTrace, SESSION_FACTS_VERSION_SUFFIX, SESSION_TOKEN_TOTAL_ATTR, SOURCE_ATTRIBUTE_PREFIX, SPAN_SYNTHESIZED_ATTR, SPAWN_JOURNAL_FILE, STATUS_MARK, SYNTHESIZED_SOURCE_ATTR, SYNTHESIZED_SPAN_ATTR, type SandboxReplayBackendOptions, type ScanOptions, type ScannedSession, type SessionBatch, type SessionBundleAbsence, type SessionBundleCarriedSignatures, type SessionBundleExclusion, type SessionBundleExclusionRule, type SessionBundleFile, type SessionBundleIssue, type SessionBundleIssueKind, type SessionBundleLeakCheck, type SessionBundleLedgerSlice, type SessionBundleManifest, type SessionBundleProjection, type SessionBundleResult, type SessionBundleSliceRule, type SessionBundleVerification, type SessionBundleView, type SessionCorruptionReceipt, type SessionEnvironment, type SessionFact, type SessionFacts, type SessionFactsReport, type SessionIdentityConflict, type SessionIdentityIndex, type SessionIntegrity, type SessionRef, type SessionRelationship, type SessionRole, type SessionSeedGroup, type SessionSelection, type SessionSelectionRow, type SessionSourceFile, type SessionTextLeak, type SessionTextLeakReport, type SessionTurnFact, type SessionWorkflow, SessionWorkflowError, type SessionWorkflowErrorCode, type SessionWorkflowIssue, type SessionWorkflowSession, type SessionWorkflowSummary, type SkippedAnalysis, type SkippedInputFile, type SourceRecordReference, type SpanInput, type SpanNodeStatus, type SpanRedaction, type SpanRunNode, type SpanRunSnapshot, type SpanStructure, type SpawnedChildResolution, type SpendRoll, type SteeringChainReport, type SteeringEdge, type SubagentSpawnFact, TRACE_QUESTION_PREVIEW_HEAD_CHARS, type TraceAgenticRoute, type TraceAgenticRouteReason, type TraceAgenticRouteReasonCode, type TraceContextIndex, type TraceContextRoot, type TraceEvidenceExportOptions, type TraceEvidenceExportResult, type TraceEvidenceFormatOption, type TraceEvidenceInputFormat, type TraceEvidenceRow, type TraceExecutionOptions, type TraceFindingPacket, type TraceImprovementArtifacts, type TraceImprovementOptions, type TraceImprovementResult, type TraceIndexedFile, type TraceInspectionArea, type TraceInspectionFinding, type TraceInspectionReport, type TraceInspectionSeverity, type TraceInvestigationOptions, type TraceInvestigationResult, type TraceLiveAction, type TraceLiveActionKind, type TraceLiveAnalysisContext, type TraceLiveAnalyst, type TraceLiveBatch, type TraceLiveEvidence, type TraceLiveFinding, type TraceLiveLoop, type TraceLiveSeverity, type TraceQuestion, type TraceQuestionAnswer, type TraceQuestionCitation, type TraceQuestionFailureKind, type TraceQuestionTrace, type TraceQuestionsArtifacts, type TraceQuestionsOptions, type TraceQuestionsResult, type TraceQuestionsTotals, type TraceSessionIndex, type TraceSessionIndexRow, type TraceStoreInvestigationOptions, type TraceStoreInvestigationResult, type TraceStreamEvent, type TraceStreamOptions, type TraceStreamReplayOptions, type TraceStreamSession, type TracesConfig, type TriggerPair, type TurnActorCount, type UnavailableCapabilities, type UploadBackend, type UploadIdentity, type UploadItem, type UploadPlan, type UploadRecord, type UploadResult, type UploadState, type UserPromptInput, type VerifySafeOptions, type VerifySafeResult, type WatchRunTargetOptions, ZERO_ROLL, type ZaiChatCallerOptions, addSpend, alreadyUploaded, analysisEngineFromEnv, analyzeAdoption, analyzeLiveBatch, analyzeLoopConvergence, analyzeReactions, analyzeSpans, analyzeSteeringChain, answerSchemaErrors, applyRedactor, assembleSessionBundle, assertAnswerSchema, assertSandboxReachable, assessSpans, buildPolicyEvidenceRecord, buildSessionFactsReport, buildSessionIndex, buildSessionIndexFromRows, buildSpanRunTree, buildTraceFindingPacket, capText, chatTrajectoryToSpans, classifyEvidenceOnlyPath, classifyFailureFollowUps, classifyLiveActions, classifyReaction, claudeActor, codexActor, collectPolicyEvidence, collectSessionIndex, collectSessionSelection, collectSessionWorkflow, collectSessions, commandAnalyzer, commandRedactor, commandTextFromInput, computeSessionFacts, conformanceOfSpans, connectors, countSkillRunsJsonl, createBundleSourceReader, createFindingRejectionTally, cwdMatchesSelection, cwdMatchesSelectionResolved, defaultTraceLiveAnalysts, describeSessionRelationship, diffRuns, engineCallReservationFloorUsd, environmentAttributes, environmentFromSpanAttributes, equivalentGitCwds, executeUpload, exportTraceEvidenceFile, exportTraceEvidenceRows, exportTraceEvidenceText, externalFailureMessage, fileRunContextSupervisorRunReader, fileSha256, findContextRoot, findSessionTextLeaks, findSpanSourceFiles, findingRejection, findingRejectionDetail, forEachTreeNode, formatFindingRejections, formatVerdict, haloAnalyzer, hashSessionBundleFiles, hodoscopeAnalyzer, httpJsonTransport, importCodeTraceBench, incompleteInputsNote, indexSessionIdsByTrace, inferRole, inferSpanKind, inspectSessionIndex, int, isBridgeMismatchError, isChatTrajectory, isChatTrajectoryMessage, isFileRunContextDir, isInheritedSpan, isSynthesizedSpan, knownHarnesses, listAdapters, listSessionBundleFiles, loadState, loadTraceQuestionsFile, loadTracesConfig, locateSessions, looksLikeAgentPrompt, mergeRolls, mergeTracesConfig, ms, normalizeAnalystCitations, normalizeRemote, normalizeTraceQuestions, otlpRowToSpan, outboundHash, parseIsoToEpochMs, parseJsonAnswer, parseSession, parseSince, planTraceAgenticRoute, planUpload, primeAnalyzer, projectSessionBundle, readCoordinationLog, readFileRunContext, readJsonFile, readJsonl, readOtlpInput, readPullRequests, readRunContextJournal, readRunContextSnapshot, readRunSide, readRunWatchSnapshot, readSessionBundleManifest, readSessionIndexFile, readSpanRunSnapshot, recordSessionCorruption, redactSpans, renderConformance, renderInspectionReport, renderRunContextSnapshot, renderRunDiff, renderRunWatchSnapshot, renderSessionFacts, renderSessionFactsContext, renderSpanRunSnapshot, renderTraceQuestionInstructions, renderTraceQuestionPrompt, renderTraceQuestionsReport, renderValidation, resolveAdapter, resolveOtlpInputFiles, resolveRepoAttrs, resolveRunContextDir, resolveRunWatchTarget, resolveSessionRepoAttrs, runCommand, runExternalAnalyzers, runPipelines, runTotals, runTraceImprovement, runTraceInvestigation, runTraceQuestions, runTraceStoreInvestigation, sandboxReplayBackend, saveReport, saveState, scanSessions, selectAdapters, serializeInspectionReport, serializePolicyEvidence, serializeSessionIndex, serializeSpans, serializeTraceStreamEvent, sessionFactsContext, sessionHash, sessionIdFromAttributes, sessionIntegrityAttributes, sessionTextSignatures, shellCommands, skippedAnalyses, span, spanRunTotals, stampEnvironmentAttrs, stampRepoAttrs, stampSessionIdentity, stampSessionIntegrity, stampSpanWorkdirRepoAttrs, streamSessions, summarizeOtlpExecution, summarizeSpanExecution, summarizeSpanStructure, takeJsonl, textIsSynthetic, toOpenInferenceSpan, toRuntimeStore, toTraceSpanEvents, tokens, totalAgenticFailureMessage, totalFindingRejections, traceAgenticKinds, traceCitationsInText, traceStreamEventsFromSpans, unavailableCapabilities, uploadKey, usd, userPromptSpan, validateOtlpSpans, validationExitCode, verdictExitCode, verifyFindingsInSandbox, verifySafe, verifySessionBundle, watchRunTarget, watchSessions, withSessionFactsContext, wrap, writeHodoscopeInput, writeInspectionReportFile, writeOtlpFile, writePolicyEvidenceFile, writeSessionBundleManifest, writeSessionIndexFile, writeTraceEvidenceExportFile, writeTraceImprovementArtifacts, writeTraceQuestionsArtifacts, zaiChatCaller, zeroPricedCost };
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,6 @@ import {
|
|
|
5
5
|
BLOBS_DIR,
|
|
6
6
|
CHANGED_FILE_LIST_CAP,
|
|
7
7
|
CITATION_NORMALIZATION_VERSION,
|
|
8
|
-
CODING_REDACTION_RULES,
|
|
9
8
|
CONTENT_CAP,
|
|
10
9
|
COORDINATION_LOG_FILE,
|
|
11
10
|
CORRECTIVE_REACTIONS,
|
|
@@ -54,7 +53,6 @@ import {
|
|
|
54
53
|
SYNTHESIZED_SOURCE_ATTR,
|
|
55
54
|
SYNTHESIZED_SPAN_ATTR,
|
|
56
55
|
SessionWorkflowError,
|
|
57
|
-
TRACES_REDACTION_RULES,
|
|
58
56
|
TRACE_QUESTION_PREVIEW_HEAD_CHARS,
|
|
59
57
|
ZERO_ROLL,
|
|
60
58
|
addSpend,
|
|
@@ -71,6 +69,7 @@ import {
|
|
|
71
69
|
assembleSessionBundle,
|
|
72
70
|
assertAnswerSchema,
|
|
73
71
|
assertSandboxReachable,
|
|
72
|
+
assessSpans,
|
|
74
73
|
buildPolicyEvidenceRecord,
|
|
75
74
|
buildSessionFactsReport,
|
|
76
75
|
buildSessionIndex,
|
|
@@ -102,6 +101,7 @@ import {
|
|
|
102
101
|
cwdMatchesSelectionResolved,
|
|
103
102
|
defaultTraceLiveAnalysts,
|
|
104
103
|
describeSessionRelationship,
|
|
104
|
+
diffRuns,
|
|
105
105
|
engineCallReservationFloorUsd,
|
|
106
106
|
environmentAttributes,
|
|
107
107
|
environmentFromSpanAttributes,
|
|
@@ -120,6 +120,7 @@ import {
|
|
|
120
120
|
findingRejectionDetail,
|
|
121
121
|
forEachTreeNode,
|
|
122
122
|
formatFindingRejections,
|
|
123
|
+
formatVerdict,
|
|
123
124
|
haloAnalyzer,
|
|
124
125
|
hashSessionBundleFiles,
|
|
125
126
|
hodoscopeAnalyzer,
|
|
@@ -169,6 +170,7 @@ import {
|
|
|
169
170
|
readPullRequests,
|
|
170
171
|
readRunContextJournal,
|
|
171
172
|
readRunContextSnapshot,
|
|
173
|
+
readRunSide,
|
|
172
174
|
readRunWatchSnapshot,
|
|
173
175
|
readSessionBundleManifest,
|
|
174
176
|
readSessionIndexFile,
|
|
@@ -178,6 +180,7 @@ import {
|
|
|
178
180
|
renderConformance,
|
|
179
181
|
renderInspectionReport,
|
|
180
182
|
renderRunContextSnapshot,
|
|
183
|
+
renderRunDiff,
|
|
181
184
|
renderRunWatchSnapshot,
|
|
182
185
|
renderSessionFacts,
|
|
183
186
|
renderSessionFactsContext,
|
|
@@ -245,7 +248,9 @@ import {
|
|
|
245
248
|
userPromptSpan,
|
|
246
249
|
validateOtlpSpans,
|
|
247
250
|
validationExitCode,
|
|
251
|
+
verdictExitCode,
|
|
248
252
|
verifyFindingsInSandbox,
|
|
253
|
+
verifySafe,
|
|
249
254
|
verifySessionBundle,
|
|
250
255
|
watchRunTarget,
|
|
251
256
|
watchSessions,
|
|
@@ -262,7 +267,7 @@ import {
|
|
|
262
267
|
writeTraceQuestionsArtifacts,
|
|
263
268
|
zaiChatCaller,
|
|
264
269
|
zeroPricedCost
|
|
265
|
-
} from "./chunk-
|
|
270
|
+
} from "./chunk-G5KKIQZ6.js";
|
|
266
271
|
|
|
267
272
|
// src/collect.ts
|
|
268
273
|
async function collectSessions(opts = {}) {
|
|
@@ -286,7 +291,13 @@ import {
|
|
|
286
291
|
makeFinding
|
|
287
292
|
} from "@tangle-network/agent-eval/analyst";
|
|
288
293
|
import { createHostedClient, hostedClientFromEnv } from "@tangle-network/agent-eval/hosted";
|
|
289
|
-
import {
|
|
294
|
+
import {
|
|
295
|
+
assessShareSafety,
|
|
296
|
+
redact,
|
|
297
|
+
redactForShare,
|
|
298
|
+
redactText,
|
|
299
|
+
shareAllowed
|
|
300
|
+
} from "@tangle-network/agent-eval/traces";
|
|
290
301
|
export {
|
|
291
302
|
ACTOR_ATTR,
|
|
292
303
|
ATTR,
|
|
@@ -295,7 +306,6 @@ export {
|
|
|
295
306
|
BLOBS_DIR,
|
|
296
307
|
CHANGED_FILE_LIST_CAP,
|
|
297
308
|
CITATION_NORMALIZATION_VERSION,
|
|
298
|
-
CODING_REDACTION_RULES,
|
|
299
309
|
CONTENT_CAP,
|
|
300
310
|
COORDINATION_LOG_FILE,
|
|
301
311
|
CORRECTIVE_REACTIONS,
|
|
@@ -308,7 +318,6 @@ export {
|
|
|
308
318
|
DEFAULT_ANALYST_MODEL,
|
|
309
319
|
DEFAULT_ASK_CONCURRENCY,
|
|
310
320
|
DEFAULT_HARNESS,
|
|
311
|
-
DEFAULT_REDACTION_RULES,
|
|
312
321
|
DEFAULT_SANDBOX_BASE_URL,
|
|
313
322
|
EMPTY_SPAN_RUN_SNAPSHOT,
|
|
314
323
|
EXPORT_RULE,
|
|
@@ -345,7 +354,6 @@ export {
|
|
|
345
354
|
SYNTHESIZED_SOURCE_ATTR,
|
|
346
355
|
SYNTHESIZED_SPAN_ATTR,
|
|
347
356
|
SessionWorkflowError,
|
|
348
|
-
TRACES_REDACTION_RULES,
|
|
349
357
|
TRACE_QUESTION_PREVIEW_HEAD_CHARS,
|
|
350
358
|
ZERO_ROLL,
|
|
351
359
|
addSpend,
|
|
@@ -362,6 +370,8 @@ export {
|
|
|
362
370
|
assembleSessionBundle,
|
|
363
371
|
assertAnswerSchema,
|
|
364
372
|
assertSandboxReachable,
|
|
373
|
+
assessShareSafety,
|
|
374
|
+
assessSpans,
|
|
365
375
|
buildDefaultAnalystRegistry,
|
|
366
376
|
buildPolicyEvidenceRecord,
|
|
367
377
|
buildSessionFactsReport,
|
|
@@ -396,6 +406,7 @@ export {
|
|
|
396
406
|
cwdMatchesSelectionResolved,
|
|
397
407
|
defaultTraceLiveAnalysts,
|
|
398
408
|
describeSessionRelationship,
|
|
409
|
+
diffRuns,
|
|
399
410
|
engineCallReservationFloorUsd,
|
|
400
411
|
environmentAttributes,
|
|
401
412
|
environmentFromSpanAttributes,
|
|
@@ -414,6 +425,7 @@ export {
|
|
|
414
425
|
findingRejectionDetail,
|
|
415
426
|
forEachTreeNode,
|
|
416
427
|
formatFindingRejections,
|
|
428
|
+
formatVerdict,
|
|
417
429
|
haloAnalyzer,
|
|
418
430
|
hashSessionBundleFiles,
|
|
419
431
|
hodoscopeAnalyzer,
|
|
@@ -465,17 +477,20 @@ export {
|
|
|
465
477
|
readPullRequests,
|
|
466
478
|
readRunContextJournal,
|
|
467
479
|
readRunContextSnapshot,
|
|
480
|
+
readRunSide,
|
|
468
481
|
readRunWatchSnapshot,
|
|
469
482
|
readSessionBundleManifest,
|
|
470
483
|
readSessionIndexFile,
|
|
471
484
|
readSpanRunSnapshot,
|
|
472
485
|
recordSessionCorruption,
|
|
486
|
+
redact,
|
|
487
|
+
redactForShare,
|
|
473
488
|
redactSpans,
|
|
474
|
-
|
|
475
|
-
redactValue,
|
|
489
|
+
redactText,
|
|
476
490
|
renderConformance,
|
|
477
491
|
renderInspectionReport,
|
|
478
492
|
renderRunContextSnapshot,
|
|
493
|
+
renderRunDiff,
|
|
479
494
|
renderRunWatchSnapshot,
|
|
480
495
|
renderSessionFacts,
|
|
481
496
|
renderSessionFactsContext,
|
|
@@ -513,6 +528,7 @@ export {
|
|
|
513
528
|
sessionIdFromAttributes,
|
|
514
529
|
sessionIntegrityAttributes,
|
|
515
530
|
sessionTextSignatures,
|
|
531
|
+
shareAllowed,
|
|
516
532
|
shellCommands,
|
|
517
533
|
skippedAnalyses,
|
|
518
534
|
span,
|
|
@@ -543,7 +559,9 @@ export {
|
|
|
543
559
|
userPromptSpan,
|
|
544
560
|
validateOtlpSpans,
|
|
545
561
|
validationExitCode,
|
|
562
|
+
verdictExitCode,
|
|
546
563
|
verifyFindingsInSandbox,
|
|
564
|
+
verifySafe,
|
|
547
565
|
verifySessionBundle,
|
|
548
566
|
watchRunTarget,
|
|
549
567
|
watchSessions,
|
package/docs/trace-analysts.md
CHANGED
|
@@ -241,7 +241,7 @@ It reaches the built-in kinds run by `analyze --llm`, `investigate`, and `improv
|
|
|
241
241
|
|
|
242
242
|
- The sheet is bounded at `PREPARED_CONTEXT_BYTE_CEILING` (30,000 bytes), a fifth of the `perCallByteCeiling` of 150,000 the trace tools work to, so the rest of the budget stays available for the tool calls the model still makes.
|
|
243
243
|
- When the sheet does not fit, fields are shed from the largest downward and the shed is listed in `omitted_fields`. The tool-call counts are the last facts to go.
|
|
244
|
-
- Receiving the sheet changes an analyst's behavior, so its version carries `+session-facts.
|
|
244
|
+
- Receiving the sheet changes an analyst's behavior, so its version carries `+session-facts.2`. `createTraceAnalyst` records `prepare_context` in the exact-run identity, and a changed prepared context must not hide behind an unchanged version.
|
|
245
245
|
- The sheet is not evidence. Citations still resolve against the raw spans, which is why every fact names its span ids rather than asking the model to trust the sheet.
|
|
246
246
|
|
|
247
247
|
Pass `sessionFactsContext: false` to `analyzeSpans` to run an analyst without it.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/traces",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "Point it at your coding-agent session traces (Claude Code, Codex, OpenCode, Gemini, Pi, …) and get failure-mode + efficiency findings. CLI + SDK over the @tangle-network/agent-eval analyst suite — observe live sessions, run your own analysts, redact, and upload to the Tangle Intelligence Platform.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -57,12 +57,13 @@
|
|
|
57
57
|
"test": "vitest run",
|
|
58
58
|
"test:watch": "vitest",
|
|
59
59
|
"typecheck": "tsc --noEmit",
|
|
60
|
+
"verify:contracts-corpus": "tsx tests/contracts-corpus/verify.mjs",
|
|
60
61
|
"prepublishOnly": "pnpm check:source && pnpm build && pnpm check:package"
|
|
61
62
|
},
|
|
62
63
|
"dependencies": {
|
|
63
|
-
"@tangle-network/agent-eval": "0.
|
|
64
|
+
"@tangle-network/agent-eval": "0.193.2",
|
|
64
65
|
"@tangle-network/agent-interface": "2.12.0",
|
|
65
|
-
"@tangle-network/agent-runtime": "0.
|
|
66
|
+
"@tangle-network/agent-runtime": "0.274.0",
|
|
66
67
|
"@tangle-network/agent-trace-contract": "1.3.0",
|
|
67
68
|
"@tangle-network/sandbox": "0.45.0"
|
|
68
69
|
},
|