@principles/codex-adapter 0.5.2 → 0.5.3
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.
|
@@ -112,7 +112,11 @@ export function recordCodexPromptDeliveryEvidence(input) {
|
|
|
112
112
|
principleId: entry.principleId,
|
|
113
113
|
...(activationRef.artifactId ? { artifactId: activationRef.artifactId } : {}),
|
|
114
114
|
...(contentRef ? { payloadDigest: contentRef.payloadDigest } : {}),
|
|
115
|
-
|
|
115
|
+
// A stored contentRef is an OBJECT — its truthiness must not upgrade
|
|
116
|
+
// resolution: 'resolved' without a payloadDigest is rejected by the
|
|
117
|
+
// normalizer before the store's idempotent dedup branch can no-op the
|
|
118
|
+
// replay. Only a digest-carrying reference counts as resolved.
|
|
119
|
+
resolution: contentRef?.payloadDigest !== undefined ? 'resolved' : 'revision_reference_unresolved',
|
|
116
120
|
},
|
|
117
121
|
activationRef,
|
|
118
122
|
payload: { targetKind: 'agent_context', confirmation: 'submitted', outcome: 'attempted' },
|
|
@@ -162,7 +166,9 @@ export function recordCodexDenyEvidence(input) {
|
|
|
162
166
|
principleId: input.principleId,
|
|
163
167
|
...(activationRef.artifactId ? { artifactId: activationRef.artifactId } : {}),
|
|
164
168
|
...(content ? { payloadDigest: content.payloadDigest } : {}),
|
|
165
|
-
|
|
169
|
+
// Same constraint as the prompt-delivery path above: a stored object's
|
|
170
|
+
// truthiness must not mint a digest-less 'resolved' reference.
|
|
171
|
+
resolution: content?.payloadDigest !== undefined ? 'resolved' : 'revision_reference_unresolved',
|
|
166
172
|
};
|
|
167
173
|
const observations = [
|
|
168
174
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@principles/codex-adapter",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"description": "Codex CLI host adapter for Principles Disciple — implements HostAdapter interface for OpenAI Codex CLI's stdin/stdout JSON hook model (ADR-0020).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|