Skip to content

feat(artifacts): Evidence Graph — provenance + lineage on EvidenceRecord (CR-14)#33

Merged
beyondnetPeru merged 1 commit into
developfrom
feat/cr-14-evidence-graph
Jul 8, 2026
Merged

feat(artifacts): Evidence Graph — provenance + lineage on EvidenceRecord (CR-14)#33
beyondnetPeru merged 1 commit into
developfrom
feat/cr-14-evidence-graph

Conversation

@beyondnetPeru

Copy link
Copy Markdown
Contributor

Turns EvidenceRecord into an Evidence Graph node.

  • First-class provenance/integrity: sourceProvider, producer, contentHash (SHA-256, promoted from metadata), classification (validated), retentionPolicyRef, immutable.
  • Lineage edges: references[] with domain AddReference (non-empty, dedup) + Seal; new POST /{id}/references.
  • Persistence: 7 columns + classification index + additive migration AddEvidenceGraphFields.

Build Release -warnaserror 0 warnings; 443→458 tests. Closes CR-14.

🤖 Generated with Claude Code

Promotes provenance/integrity to first-class fields (sourceProvider, producer, contentHash, classification [validated], retentionPolicyRef, immutable) and adds lineage edges references[] with a domain AddReference operation (non-empty, dedup) plus Seal — the adjacency that makes it a graph. contentHash is now a first-class field (CreateEvidenceRecordCommandHandler computes SHA-256 into it, keeping the legacy metadata copy). New POST /{id}/references command+endpoint; read model + DTO surface the 7 fields. Persistence: 7 new columns + classification index + additive migration AddEvidenceGraphFields (all NOT NULL with defaults / jsonb '[]', so existing rows stay valid). Build Release -warnaserror 0 warnings; 443→458 tests. Marks CR-14 DONE in the gap board + catalog.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@beyondnetPeru beyondnetPeru merged commit 6c395dc into develop Jul 8, 2026
2 checks passed
@beyondnetPeru beyondnetPeru deleted the feat/cr-14-evidence-graph branch July 8, 2026 04:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant