@cygnuxlabs/tracekit 1.5.3 → 1.7.2

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.
@@ -294,8 +294,11 @@ export async function openNote(data, logKeys, witnessKeys, anchored = true) {
294
294
  hybrids.delete(id);
295
295
  }
296
296
  else {
297
- const ts = sig.length === 72 ? new DataView(sig.buffer, sig.byteOffset).getBigUint64(0) : null;
298
- if (ts === null || !await verifyV2("ed25519", spkiOf(p.pub), bytes(`cosignature/v1\ntime ${ts}\n${text}`), sig.subarray(8)))
297
+ // not a timestamp and a signature: damaged, whatever the log holds (tracekit/format/checkpoint.py)
298
+ if (sig.length !== 72)
299
+ throw new NoteError(`malformed cosignature from pinned witness ${name}`);
300
+ const ts = new DataView(sig.buffer, sig.byteOffset).getBigUint64(0);
301
+ if (!await verifyV2("ed25519", spkiOf(p.pub), bytes(`cosignature/v1\ntime ${ts}\n${text}`), sig.subarray(8)))
299
302
  throw new NoteError(`bad cosignature from pinned witness ${name}`);
300
303
  cosigs.push([k, ts]);
301
304
  }
@@ -0,0 +1,7 @@
1
+ {
2
+ "1.1.0": { "types": ["input.observed", "content.accessed", "content.erased", "why.finding"], "fields": { "policy.decision": ["provenance", "provenance_state"], "run.registered": ["replay_of"] }, "values": {} },
3
+ "1.2.0": { "types": ["run.child", "approval.escalated", "approval.revoked", "approval.suggested", "approval.agents", "incident.opened", "incident.updated", "incident.capped", "run.held", "run.resumed", "run.quarantined", "incident.resolved", "incident.response", "identity.suspension", "effect.observed"], "fields": { "run.registered": ["parent_run", "session", "posture"], "capture.gap": ["run_id"], "run.final": ["provider_executed", "paired_by_args", "matrix"], "policy.decision": ["via", "caller", "detect", "incident_id"], "approval.request": ["agent", "via", "incident_id", "passkey"], "tool.result": ["via"], "input.observed": ["via"], "approval": ["approver_kind", "asserted", "spent", "not_before", "consume_by", "incident_id"], "approval.expired": ["reason"], "reconcile.unexplained_effect": ["observer", "kind", "host", "port"] }, "values": { "capture.gap": { "kind": ["decided_not_completed", "late_activity", "concurrent_run", "tailer_redelegated", "reask_after_reject", "held_call_unresolved", "observer_lost", "effect_outside_run"] }, "run.closing": { "reason": ["quarantine"] } } },
4
+ "1.3.0": { "types": ["reconcile.result_mismatch"], "fields": {}, "values": { "capture.gap": { "kind": ["result_unchecked"] } } },
5
+ "1.4.0": { "types": ["constraint.added"], "fields": { "effect.observed": ["sensor", "denied"], "review": ["cites"], "model.exchange": ["said_only"], "capture.gap": ["sensor"] }, "values": { "capture.gap": { "kind": ["constraint_refused"] } }, "ext": ["amended", "openshell.policy"], "layout": ["run parts"] },
6
+ "1.6.0": { "types": [], "fields": {}, "values": { "ext": { "self_approved": [true] } }, "ext": ["box", "grant", "intent.grant", "intent.revoked"] }
7
+ }