feat: Ghost State Hydrator - Remote Investigation State Hydration#103
Merged
feat: Ghost State Hydrator - Remote Investigation State Hydration#103
Conversation
…fy, blame, sniff, mock)
- Add InvestigationSnapshot Pydantic model with version field for forward compatibility - Add EnvironmentMetadata to capture Python version, platform, package versions - Add SnapshotCheckpoint enum (start, hypothesis_generated, evidence_collected, complete, failed) - Add LineageSnapshot for capturing upstream/downstream dependencies - Add SampleDataReference for externally stored large datasets - Include size estimation and oversized detection methods - Add 18 unit tests covering all models and methods Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Create SnapshotStore protocol with LocalSnapshotStore and S3SnapshotStore - Add capture_snapshot Temporal activity for non-blocking state capture - Integrate snapshot capture at START, HYPOTHESIS_GENERATED, COMPLETE checkpoints - Add enable_snapshots flag to InvestigationInput - Add snapshot_paths to InvestigationResult for tracking captured snapshots Implements fn-49.2: Snapshot capture in Temporal workflow Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add GET /investigations/{id}/snapshots to list available snapshots
- Add GET /investigations/{id}/snapshots/{checkpoint} to download
- Support gzip compression via Accept-Encoding header
- Include X-Snapshot-Version, X-Snapshot-Checkpoint headers
- Enforce tenant isolation for snapshot access
- Add unit tests for snapshot models
Implements fn-49.3: Snapshot Download API
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Create dataing.sdk package with load_snapshot() -> HydratedState - HydratedState contains alert, hypotheses, evidence, synthesis - NavigableSchema with .tables['name'].columns access - QueryableLineage with .upstream() and .downstream() queries - Lazy DataFrame deserialization for large sample data - Version compatibility warnings for schema mismatches - Comprehensive unit tests (33 tests) Implements fn-49.4: Snapshot Deserializer in SDK Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add IPython magic commands: %dataing hydrate, list, help - Add Recent Investigations section to JupyterLab sidebar widget - Add Hydrate button for each investigation - Wire up kernel execution for in-notebook hydration - Support --checkpoint, --namespace, --overwrite options - Variables injected: dataing_alert, dataing_hypotheses, etc. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add compare_snapshots() function to diff investigation states across checkpoints. Includes diff dataclasses for schema, hypotheses, evidence, synthesis, and dataframes. Supports markdown and HTML export for Jupyter notebooks. Adds %dataing diff magic command. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Refactor magic.py to use typed stub functions at module level that get reassigned when IPython is available. Add mypy override for sdk.magic module to handle warn_unused_ignores since type ignores are only needed when IPython is installed. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Create DataingMagics instance with shell=None to avoid traitlets validation error, then manually set shell attribute for tests. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Patch dataing.sdk.snapshot.load_snapshot instead of dataing.sdk.magic.load_snapshot since load_snapshot is imported inside the _hydrate method from dataing.sdk.snapshot, not at the magic module level. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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.
Summary
Implements epic fn-49 "Ghost State Hydrator" - enabling engineers to hydrate production investigation state into local JupyterLab notebooks for debugging.
InvestigationSnapshotmodel for state serialization with schema versioningload_snapshot()deserializer with lazy DataFrame loading%dataing hydrate,%dataing diff,%dataing list)Test plan
🤖 Generated with Claude Code