Skip to content

feat: source-bind query preview cleanup restore dry run#216

Merged
cafitac merged 1 commit intomainfrom
g4/query-preview-cleanup-restore-fingerprint
May 7, 2026
Merged

feat: source-bind query preview cleanup restore dry run#216
cafitac merged 1 commit intomainfrom
g4/query-preview-cleanup-restore-fingerprint

Conversation

@cafitac
Copy link
Copy Markdown
Owner

@cafitac cafitac commented May 7, 2026

Summary

  • Add source database fingerprint metadata to query-preview cleanup rollback artifacts/manifests.
  • Make restore dry-run fail closed with source_database_mismatch when the rollback artifact was created for a different target database.
  • Keep restore dry-run read-only, live restore unavailable, and stdout free of raw query-preview values.

Test Plan

  • uv run pytest tests/test_cli.py::test_python_module_cli_dogfood_query_preview_cleanup_restore_dry_run_validates_artifact_without_mutation_or_leaks tests/test_cli.py::test_python_module_cli_dogfood_query_preview_cleanup_restore_dry_run_blocks_source_database_mismatch -q
  • uv run pytest tests/ -q
  • uv run ruff check src tests
  • git diff --check
  • restore fingerprint smoke under /tmp/agent-memory-restore-fingerprint-smoke

Safety notes

  • This does not enable live restore.
  • This does not enable broad G4 apply mode.
  • Rollback artifacts remain private/local because they contain raw query-preview values.
  • Restore dry-run output reports only hash/count/path-basename metadata.

@cafitac cafitac merged commit cf7ed7b into main May 7, 2026
2 checks passed
@cafitac cafitac deleted the g4/query-preview-cleanup-restore-fingerprint branch May 7, 2026 14:16
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