Skip to content

proof: add graph-ready relationship envelopes and policy lineage#65

Merged
davidahmann merged 4 commits intomainfrom
codex/graph-relationship-envelope-v1
Feb 28, 2026
Merged

proof: add graph-ready relationship envelopes and policy lineage#65
davidahmann merged 4 commits intomainfrom
codex/graph-relationship-envelope-v1

Conversation

@davidahmann
Copy link
Collaborator

Problem

PolicyGraph-ready relationships and lineage metadata needed to be emitted consistently from day one across core artifacts (intent/trace/run/session/scout), while preserving additive compatibility and deterministic behavior. We also needed to align Gait with released proof v0.4.5.

Changes

  • Bumped github.com/Clyra-AI/proof to v0.4.5 in go.mod/go.sum.
  • Added a standard optional relationship envelope in core artifact contracts and runtime emission paths:
    • gate intent/trace/audit records
    • run/session timeline + checkpoint/session events
    • scout inventory records
  • Added optional policy lineage fields beyond digest where available:
    • policy_id, policy_version, matched_rule_ids
  • Added normalization helpers for relationship envelopes and wired lineage propagation through MCP/voice/session paths.
  • Extended schema + fixture coverage for additive compatibility and invalid-shape rejection.
  • Added deterministic contract tests for with/without relationship fields and unknown-field tolerance.
  • Updated contract docs and enterprise consumer contract script to reflect relationship-first envelope expectations.

Validation

  • make prepush-full
  • push hook make prepush (ran automatically on git push)

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f5cea8004e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@davidahmann davidahmann merged commit 7dcddad into main Feb 28, 2026
7 checks passed
@davidahmann davidahmann deleted the codex/graph-relationship-envelope-v1 branch February 28, 2026 00:50
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