agent-inspect 6.12.2 → 6.13.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.
@@ -6548,11 +6548,16 @@ function projectLogicalEvents(events) {
6548
6548
  }
6549
6549
  if (!remapped) {
6550
6550
  if (!logicalById.has(originalParentId) && !logicalByRawId.has(originalParentId)) {
6551
- diagnostics.push({
6552
- code: "AI_LOGICAL_PARENT_UNRESOLVED",
6553
- message: `Parent ${originalParentId} unresolved for ${event.eventId}.`,
6554
- eventIds: [event.eventId]
6555
- });
6551
+ const mapping = event.attributes?.parentMapping;
6552
+ const unresolved = mapping === "unresolved" || event.attributes?.parentUnresolved === true || event.attributes?.unresolvedParent === true || // LangGraph/framework scaffolding sentinel labels are not event ids.
6553
+ /^LangGraph$/i.test(originalParentId) || originalParentId.startsWith("unresolved:");
6554
+ if (!unresolved) {
6555
+ diagnostics.push({
6556
+ code: "AI_LOGICAL_PARENT_UNRESOLVED",
6557
+ message: `Parent ${originalParentId} unresolved for ${event.eventId}.`,
6558
+ eventIds: [event.eventId]
6559
+ });
6560
+ }
6556
6561
  }
6557
6562
  normalized.push(event);
6558
6563
  continue;
@@ -6610,6 +6615,13 @@ var init_logical_events = __esm({
6610
6615
  }
6611
6616
  });
6612
6617
 
6618
+ // packages/core/src/checks/trace-facts.ts
6619
+ var init_trace_facts = __esm({
6620
+ "packages/core/src/checks/trace-facts.ts"() {
6621
+ init_logical_events();
6622
+ }
6623
+ });
6624
+
6613
6625
  // packages/core/src/checks/contract.ts
6614
6626
  var init_contract = __esm({
6615
6627
  "packages/core/src/checks/contract.ts"() {
@@ -8026,6 +8038,7 @@ var init_checks2 = __esm({
8026
8038
  init_outcomes();
8027
8039
  init_logical_events();
8028
8040
  init_logical_events();
8041
+ init_trace_facts();
8029
8042
  init_contract();
8030
8043
  SEVERITY_RANK = {
8031
8044
  error: 0,
@@ -12156,7 +12169,7 @@ var init_src = __esm({
12156
12169
  });
12157
12170
 
12158
12171
  // package.json
12159
- var version = "6.12.2";
12172
+ var version = "6.13.0";
12160
12173
 
12161
12174
  // packages/cli/src/list.ts
12162
12175
  init_advanced();