@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 +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- package/src/verification/features.ts +3 -3
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[`
|
|
134
|
-
features[`
|
|
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[`
|
|
86
|
-
features[`
|
|
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
|
@@ -67,9 +67,9 @@ export function extractCardFeatures(card: AlignmentCard): FeatureVector {
|
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
//
|
|
71
|
-
features[`
|
|
72
|
-
features[`
|
|
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
|
}
|