agent-inspect 6.12.2 → 6.14.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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 6.14.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 52a3e23: Evidence-first CI and no-egress launch candidate: optional Evidence `semantics` TraceFacts summary on CI packages, MCP `get_trace_facts`, `init --framework langgraph`, langgraph-gate-evidence recipe, and no-egress/acceptance docs. No schema break; no new packages; no default network.
8
+
9
+ ## 6.13.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 2b7bbdf: Cross-surface semantic parity and TraceFacts foundation: shared `summarizeSemanticParity` / `buildTraceFacts`, MCP diagnostics parity, scaffolding-root parent handling, TraceContract tool aliases, and experimental Vitest/Jest matchers (`toPassTraceContract`, `toHaveRequiredTool`). Delivers the v6.12.3 parity and v6.13.0 TraceFacts trains without a schema break or new packages.
14
+
3
15
  ## 6.12.2
4
16
 
5
17
  ### Patch Changes
@@ -8,6 +20,10 @@
8
20
 
9
21
  ## Unreleased
10
22
 
23
+ ### Minor (6.14.0 candidate)
24
+
25
+ - Evidence-first CI / no-egress LC: Evidence `semantics` TraceFacts summary, MCP `get_trace_facts`, `init --framework langgraph`, langgraph-gate-evidence recipe, acceptance + no-egress docs.
26
+
11
27
  ## 6.12.1
12
28
 
13
29
  ### Patch Changes
package/README.md CHANGED
@@ -159,7 +159,7 @@ Details: [Safe sharing](https://github.com/rajudandigam/agent-inspect/blob/main/
159
159
 
160
160
  ## Project status
161
161
 
162
- **Current release:** **6.12.2** (eighteen linked npm packages). Stable launch candidate; eight-week adoption checkpoint in progress; external pilot evidence pending. Persisted schema **1.0**. Node.js **≥ 20**. **v7 not scheduled.**
162
+ **Current release:** **6.14.0** (eighteen linked npm packages). Stable launch candidate; eight-week adoption checkpoint in progress; external pilot evidence pending. Persisted schema **1.0**. Node.js **≥ 20**. **v7 not scheduled.**
163
163
 
164
164
  [Roadmap](ROADMAP.md) · [Pilot kit](https://github.com/rajudandigam/agent-inspect/blob/main/docs/PRE-V7-PILOT-KIT.md) · [Changelog](CHANGELOG.md)
165
165
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-inspect",
3
- "version": "6.12.2",
3
+ "version": "6.14.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "Debug, regression-test, and safely share TypeScript AI-agent behavior locally — no account, no default upload, metadata-only by default",
@@ -4004,6 +4004,7 @@ function buildEvidenceManifest(parts) {
4004
4004
  verificationPolicy: parts.verificationPolicy ?? parts.redactionProfile
4005
4005
  },
4006
4006
  assessment,
4007
+ ...parts.semantics !== void 0 ? { semantics: { ...parts.semantics } } : {},
4007
4008
  files: buildEvidenceFileEntries(parts.files)
4008
4009
  };
4009
4010
  }
@@ -5568,7 +5569,8 @@ function buildEvidenceCiPackage(input) {
5568
5569
  sourceStatus: input.sourceStatus,
5569
5570
  files: packaged,
5570
5571
  createdAt,
5571
- note: EVIDENCE_ASSESSMENT_NOTE
5572
+ note: EVIDENCE_ASSESSMENT_NOTE,
5573
+ ...input.semantics !== void 0 ? { semantics: input.semantics } : {}
5572
5574
  });
5573
5575
  return {
5574
5576
  "evidence.html": evidenceHtml,
@@ -6046,11 +6048,16 @@ function projectLogicalEvents(events) {
6046
6048
  }
6047
6049
  if (!remapped) {
6048
6050
  if (!logicalById.has(originalParentId) && !logicalByRawId.has(originalParentId)) {
6049
- diagnostics.push({
6050
- code: "AI_LOGICAL_PARENT_UNRESOLVED",
6051
- message: `Parent ${originalParentId} unresolved for ${event.eventId}.`,
6052
- eventIds: [event.eventId]
6053
- });
6051
+ const mapping = event.attributes?.parentMapping;
6052
+ const unresolved = mapping === "unresolved" || event.attributes?.parentUnresolved === true || event.attributes?.unresolvedParent === true || // LangGraph/framework scaffolding sentinel labels are not event ids.
6053
+ /^LangGraph$/i.test(originalParentId) || originalParentId.startsWith("unresolved:");
6054
+ if (!unresolved) {
6055
+ diagnostics.push({
6056
+ code: "AI_LOGICAL_PARENT_UNRESOLVED",
6057
+ message: `Parent ${originalParentId} unresolved for ${event.eventId}.`,
6058
+ eventIds: [event.eventId]
6059
+ });
6060
+ }
6054
6061
  }
6055
6062
  normalized.push(event);
6056
6063
  continue;
@@ -6104,6 +6111,30 @@ function pickString(record, keys) {
6104
6111
  return void 0;
6105
6112
  }
6106
6113
 
6114
+ // packages/core/src/checks/trace-facts.ts
6115
+ function summarizeSemanticParity(events) {
6116
+ const projection = projectLogicalEvents(events);
6117
+ const logical = projection.logicalEvents;
6118
+ const finishedTools = logical.filter(
6119
+ (event) => event.kind === "TOOL" && event.status !== "running"
6120
+ );
6121
+ const finishedToolNames = Object.freeze(
6122
+ finishedTools.map((event) => resolveCanonicalToolName(event)).sort((a, b) => a.localeCompare(b))
6123
+ );
6124
+ return {
6125
+ rawEventCount: events.length,
6126
+ logicalEventCount: logical.length,
6127
+ runningLogicalCount: logical.filter((event) => event.status === "running").length,
6128
+ finishedToolNames,
6129
+ finishedToolCount: finishedTools.length,
6130
+ pairedCount: logical.filter((event) => event.projection.paired).length,
6131
+ parentRemapCount: projection.diagnostics.filter(
6132
+ (item) => item.code === "AI_LOGICAL_PARENT_REMAPPED"
6133
+ ).length,
6134
+ diagnostics: projection.diagnostics
6135
+ };
6136
+ }
6137
+
6107
6138
  // packages/core/src/checks/index.ts
6108
6139
  var SEVERITY_RANK = {
6109
6140
  error: 0,
@@ -11014,6 +11045,6 @@ function renderGateReport(result, options = {}) {
11014
11045
  return renderGateSummaryMarkdown(result);
11015
11046
  }
11016
11047
 
11017
- export { COHORT_METRIC_IDS, DEFAULT_SUITE_ARTIFACTS_DIR, EVIDENCE_FORMAT_VERSION, EVIDENCE_HTML_FILENAME, EVIDENCE_MANIFEST_FILENAME, Redactor, TraceDirectory, TraceReadError, TreeBuilder, aggregateBundleSafeStatus, aggregateSessionCheckResults, analyzeCohort, applyProfileMetadataCaps, assertBundlePathContained, assertEvidenceRelativePath, buildActivitySummary, buildBundleMetadata, buildBundleSummaryMarkdown, buildEvidenceCausalFailureViewHtml, buildEvidenceCiPackage, buildEvidenceCircuitViewHtml, buildEvidenceContractsViewHtml, buildEvidenceDiffViewHtml, buildEvidenceHtmlShell, buildEvidenceManifest, buildEvidenceOutcomesViewHtml, buildEvidenceProvenanceViewHtml, buildEvidenceSafetyViewHtml, buildEvidenceTimelineViewHtml, buildEvidenceToolsLlmViewHtml, buildEvidenceTreeViewHtml, buildLocalExplanation, buildPlaceholderArtifact, buildRunSummary, buildRunTimeline, buildRunWhatSummary, buildSessionIndex, buildTraceStats, buildZipArchive, bundleFailsOnSafety, bundleRunAssetRelativePath, collectTraceSchemaVersions, compactAttributes, createBaselineRegressionRule, createLlmUsageRule, createMaxStepDurationRule, createObservedOutcomeRule, createRequireCompletedRule, createRunDepthRule, createRunDurationRule, createRunStatusRule, createSafetyOversizedAttributeRule, createSafetyRawContentRule, createSafetyRedactionRule, createSafetySecretPatternRule, createStallDetectionRule, createStructureCycleRule, createStructureOrphanRule, createStructureParallelWidthRule, createStructureRelationshipRule, createToolUsageRule, defaultBundleOutputPath, defaultSuiteConfigTemplate, diffRuns, diffTraceEvents, enrichSessionRunRecord, escapeHtml, escapeMarkdown, extractMetadata, extractOutcomesFromTraceEvents, filterMetasBySessionScope, filterTraces, flattenTree, formatDuration2 as formatDuration, formatTimestamp, gateHasThresholds, getIndent, getTraceFilePath, inferEvidenceFileRole, isAgentInspectTrace, isPersistedInspectEvent, loadSessionRunRecords, loadSuiteConfig, loadTraceMetadataList, manualTraceEventsToComparableRun, nanoid, normalizeBundleOutputPath, openTrace, parseCohortMetricList, parseDuration, parseDurationFilter, parseGateList, parseTraceJsonl, persistedInspectEventsToTraceEvents, renderActivitySummaryHuman, renderCohortReport, renderErrorLine, renderGateReport, renderObservedOutcomesHtml, renderObservedOutcomesMarkdown, renderRunDiff, renderRunWhat, renderStepLine, renderSuiteReport, renderTimeline, renderTraceStats, resolveBundleRunIds, resolveRedactionProfile, resolveSuiteTemplate, resolveTraceDir, runGate, runSuite, runTraceChecks, safeString, sanitizeBundleRunId, searchTraces, serializeEvidenceManifest, sha256Hex, stableJson, summarizeObservedOutcomes, traceEventToPersistedInspectEvent, truncateName, truncateStringForProfile, validateEvent, validateSuiteConfig, verifyEvidenceDirectory, zeroKinds };
11018
- //# sourceMappingURL=chunk-4WA7DQCM.mjs.map
11019
- //# sourceMappingURL=chunk-4WA7DQCM.mjs.map
11048
+ export { COHORT_METRIC_IDS, DEFAULT_SUITE_ARTIFACTS_DIR, EVIDENCE_FORMAT_VERSION, EVIDENCE_HTML_FILENAME, EVIDENCE_MANIFEST_FILENAME, Redactor, TraceDirectory, TraceReadError, TreeBuilder, aggregateBundleSafeStatus, aggregateSessionCheckResults, analyzeCohort, applyProfileMetadataCaps, assertBundlePathContained, assertEvidenceRelativePath, buildActivitySummary, buildBundleMetadata, buildBundleSummaryMarkdown, buildEvidenceCausalFailureViewHtml, buildEvidenceCiPackage, buildEvidenceCircuitViewHtml, buildEvidenceContractsViewHtml, buildEvidenceDiffViewHtml, buildEvidenceHtmlShell, buildEvidenceManifest, buildEvidenceOutcomesViewHtml, buildEvidenceProvenanceViewHtml, buildEvidenceSafetyViewHtml, buildEvidenceTimelineViewHtml, buildEvidenceToolsLlmViewHtml, buildEvidenceTreeViewHtml, buildLocalExplanation, buildPlaceholderArtifact, buildRunSummary, buildRunTimeline, buildRunWhatSummary, buildSessionIndex, buildTraceStats, buildZipArchive, bundleFailsOnSafety, bundleRunAssetRelativePath, collectTraceSchemaVersions, compactAttributes, createBaselineRegressionRule, createLlmUsageRule, createMaxStepDurationRule, createObservedOutcomeRule, createRequireCompletedRule, createRunDepthRule, createRunDurationRule, createRunStatusRule, createSafetyOversizedAttributeRule, createSafetyRawContentRule, createSafetyRedactionRule, createSafetySecretPatternRule, createStallDetectionRule, createStructureCycleRule, createStructureOrphanRule, createStructureParallelWidthRule, createStructureRelationshipRule, createToolUsageRule, defaultBundleOutputPath, defaultSuiteConfigTemplate, diffRuns, diffTraceEvents, enrichSessionRunRecord, escapeHtml, escapeMarkdown, extractMetadata, extractOutcomesFromTraceEvents, filterMetasBySessionScope, filterTraces, flattenTree, formatDuration2 as formatDuration, formatTimestamp, gateHasThresholds, getIndent, getTraceFilePath, inferEvidenceFileRole, isAgentInspectTrace, isPersistedInspectEvent, loadSessionRunRecords, loadSuiteConfig, loadTraceMetadataList, manualTraceEventsToComparableRun, nanoid, normalizeBundleOutputPath, openTrace, parseCohortMetricList, parseDuration, parseDurationFilter, parseGateList, parseTraceJsonl, persistedInspectEventsToTraceEvents, renderActivitySummaryHuman, renderCohortReport, renderErrorLine, renderGateReport, renderObservedOutcomesHtml, renderObservedOutcomesMarkdown, renderRunDiff, renderRunWhat, renderStepLine, renderSuiteReport, renderTimeline, renderTraceStats, resolveBundleRunIds, resolveRedactionProfile, resolveSuiteTemplate, resolveTraceDir, runGate, runSuite, runTraceChecks, safeString, sanitizeBundleRunId, searchTraces, serializeEvidenceManifest, sha256Hex, stableJson, summarizeObservedOutcomes, summarizeSemanticParity, traceEventToPersistedInspectEvent, truncateName, truncateStringForProfile, validateEvent, validateSuiteConfig, verifyEvidenceDirectory, zeroKinds };
11049
+ //# sourceMappingURL=chunk-MEO2Z3KE.mjs.map
11050
+ //# sourceMappingURL=chunk-MEO2Z3KE.mjs.map