Skip to content

[ponytail] CLI small cuts: transfer maps, deprecated migrate flags #124

Description

@devinmlowe

Cut

Small cuts in src/interfaces/cli that do not remove any documented behaviour.

Findings

  • shrink: KIND_TO_TABLE / TABLE_TO_KIND are inverse maps of each other and JSON_COLUMNS / BOOLEAN_COLUMNS carry three empty arrays each (src/interfaces/cli/transfer.ts:49). One map plus a lookup (~25 lines).
  • delete: the deprecated migrate --source / --batch-size / --force forwarding (src/interfaces/cli/index.ts:566) if the legacy-importer sub-issue has not already removed it (~14 lines).
  • delete: the update.ts re-exports and the engram-visualizer.service entry if the dead-exports sub-issue has not already removed them.

Verification

npm run build and npm run test:run green before and after. engram export followed by engram import into a fresh database round-trips the same counts.

Activity

  1. devinmlowe commented on Sep 21, 2026

    @devinmlowe
    OwnerAuthor

    PR: #140

    Tests: before 132 files / 1744 tests (main at 549ba8f); after 132 files / 1737 tests (merged with origin/main at cdd83db). No tests removed by the PR; the 7-test drop comes from upstream merges between baseline and origin/main.

    Done: transfer.ts map/column-table collapse (28 insertions, 44 deletions, one file).
    Skipped: migrate flag forwarding (already removed by PR #129 / #115); update.ts re-exports and engram-visualizer.service entry (owned by the #116 branch).

    Export/import round trip on the real DB matches before and after: 15438 memories, 14978 entities, 57348 relationships, 73 commitments inserted into a fresh DB; stats --json counts equal the source in both runs.

  2. added a commit that references this issue on Sep 21, 2026
  3. devinmlowe commented on Sep 21, 2026

    @devinmlowe
    OwnerAuthor

    Merged PR #140 into main with --no-ff (commit 643db07). Post-merge on main: build clean, 133 test files / 1702 tests passing (unchanged). Export/import round-trip verified equal counts before and after.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ponytailOver-engineering audit cut (2026-09-20)sub-issueChild task of a parent issue

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions