Conversation
Co-authored-by: SkBlaz <10035780+SkBlaz@users.noreply.github.com>
Co-authored-by: SkBlaz <10035780+SkBlaz@users.noreply.github.com>
Co-authored-by: SkBlaz <10035780+SkBlaz@users.noreply.github.com>
Co-authored-by: SkBlaz <10035780+SkBlaz@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Implement provenance-complete reproducible graph queries
Implement provenance-complete reproducible query results with deterministic replay
Jan 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds versioned provenance schema that captures query AST, network snapshots, and randomness state to enable byte-identical result reproduction across executions.
Core Changes
New
py3plex.provenancemodule (~1,150 LOC)schema.py: Versioned provenance schema v1.0 with log/replayable modescapture.py: Canonical network serialization with stable orderingreplay.py: Query reconstruction from serialized ASTbundle.py: Compressed JSON bundle I/OQueryResult extensions
.provenanceproperty: structured metadata access.is_replayableproperty: mode detection.replay(strict=bool): deterministic re-execution.export_bundle(path): gzip-compressed archiveDSL v2 builder methods
.provenance(mode, capture, seed): explicit configuration.reproducible(enabled, seed): convenience sugarAuto-capture policy
Usage
Implementation Details
Testing
Documentation
Original prompt
This section details on the original issue you should resolve
<issue_title>replicability</issue_title>
<issue_description>COPILOT PROMPT (py3plex) — Implement “Provenance-Complete Reproducible Graph Queries” (Replayable Results)
Constraints:
Goal:
Make every query result optionally “replayable”: it carries sufficient provenance to deterministically reproduce the result later, including query AST, parameter bindings, network snapshot/delta, randomness state, and execution plan. Provide a clean API: result.provenance, result.is_replayable, result.replay(), result.export_bundle(), and loader utilities.
================================================================================
PHASE 0 — Repo reconnaissance (fast + precise)
TODO:
Deliverable at end of Phase 0:
================================================================================
PHASE 1 — Define the provenance contract (data model)
Design principle:
TODO:
A) query:
B) randomness:
C) network_capture:
D) environment:
Implementation hint:
================================================================================
PHASE 2 — Implement network capture (snapshot / delta)
Goal:
Enable deterministic replay by capturing the exact network state used at execution time.
TODO:
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.