@godspeedai/cognate-realitytrace 0.6.1 → 0.6.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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/godspeed.ts +3 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@godspeedai/cognate-realitytrace",
3
- "version": "0.6.1",
3
+ "version": "0.6.3",
4
4
  "description": "Observation port, committed-outbox delivery, receipts, strict gating, and the SXR CLI adapter (spec §20). RealityTrace stays unchanged.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -22,8 +22,8 @@
22
22
  ".": "./src/index.ts"
23
23
  },
24
24
  "dependencies": {
25
- "@godspeedai/cognate-events": "^0.6.1",
26
- "@godspeedai/cognate-kernel-api": "^0.6.1"
25
+ "@godspeedai/cognate-events": "^0.6.3",
26
+ "@godspeedai/cognate-kernel-api": "^0.6.3"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@godspeedai/cognate-store-memory": "workspace:*",
package/src/godspeed.ts CHANGED
@@ -146,5 +146,8 @@ export function governedTraceFor(event: {
146
146
  ...(typeof metadata.failureKind === "string" ? { failureKind: metadata.failureKind } : {}),
147
147
  observationId: `obs-${event.eventId}`,
148
148
  occurredAt: event.occurredAt,
149
+ // Created at the event's own time, not "now": the trace is a pure function of the committed event, so
150
+ // re-deriving it (redelivery, recovery, a verifier) yields the same bytes and the same content hash.
151
+ createdAt: new Date(event.occurredAt),
149
152
  });
150
153
  }