@mnemom/agent-alignment-protocol 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -130,8 +130,8 @@ function extractCardFeatures(card) {
130
130
  features[`condition:${token}`] = (features[`condition:${token}`] ?? 0) + 0.5;
131
131
  }
132
132
  }
133
- features[`category:${card.principal.type}`] = 1;
134
- features[`category:${card.principal.relationship}`] = 1;
133
+ features[`principal_type:${card.principal.type}`] = 1;
134
+ features[`relationship:${card.principal.relationship}`] = 1;
135
135
  return features;
136
136
  }
137
137
  function extractTraceFeatures(trace) {
package/dist/index.mjs CHANGED
@@ -82,8 +82,8 @@ function extractCardFeatures(card) {
82
82
  features[`condition:${token}`] = (features[`condition:${token}`] ?? 0) + 0.5;
83
83
  }
84
84
  }
85
- features[`category:${card.principal.type}`] = 1;
86
- features[`category:${card.principal.relationship}`] = 1;
85
+ features[`principal_type:${card.principal.type}`] = 1;
86
+ features[`relationship:${card.principal.relationship}`] = 1;
87
87
  return features;
88
88
  }
89
89
  function extractTraceFeatures(trace) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mnemom/agent-alignment-protocol",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Agent Alignment Protocol (AAP) - Verification and drift detection for AI agents",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -67,9 +67,9 @@ export function extractCardFeatures(card: AlignmentCard): FeatureVector {
67
67
  }
68
68
  }
69
69
 
70
- // Category features
71
- features[`category:${card.principal.type}`] = 1.0;
72
- features[`category:${card.principal.relationship}`] = 1.0;
70
+ // Principal features (distinct namespace from trace action categories)
71
+ features[`principal_type:${card.principal.type}`] = 1.0;
72
+ features[`relationship:${card.principal.relationship}`] = 1.0;
73
73
 
74
74
  return features;
75
75
  }