migration-agent

command
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Command migration-agent demonstrates snapshots, context compaction, and convergence guard in a database migration workflow.

Overview

A migration agent that:

  • Migrates a set of "tables" by calling migrate_table tool iteratively
  • Takes automatic snapshots every 2 events (demonstrating fast resume)
  • Uses the convergence guard to detect if the same table keeps being retried
  • Shows context compaction: after 4 events the context manager summarises

Usage

go run ./examples/migration-agent/
go run ./examples/migration-agent/ -tables 5

Expected output (abridged)

Starting migration: 5 tables
  Tool: migrate_table(orders) → ok
  Tool: migrate_table(users) → ok
  ...
Migration complete! Migrated: 5 tables, Skipped: 0, Errors: 0

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL