Skip to content

feat: 🌱 add deterministic garden initialization and migration - #25

Merged
szmyty merged 1 commit into
mainfrom
agent/init-migrate-v1
Aug 28, 2026
Merged

szmyty merged 1 commit into
mainfrom
agent/init-migrate-v1

Conversation

@szmyty

@szmyty szmyty commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add digest-bound mindgarden init plan/apply/check workflows for repository, personal, and organization garden identities
  • add deterministic mindgarden migrate --plan|--apply|--check conversion from validated v0 to conforming v1 records
  • preserve stable identifiers, exact Markdown bytes, source provenance, typed relationships, and legacy review evidence without inventing reviewers
  • stage complete trees, reject traversal/symlinks/conflicts, retain the untouched v0 tree at .garden.v0, and restore it if atomic cutover fails
  • generate role-aware source, knowledge, synapse, and publishing templates while keeping domains/topics independent from folders
  • document the review protocol, rollback boundary, compatibility state, and issue Harden validation and private-by-default publication gates #10 validation boundary

Safety and compatibility

Verification

  • python -m compileall -q src scripts tests
  • python -m build --sdist --wheel --outdir ".cache/dist"
  • python -m unittest discover --start-directory tests --verbose — 48 passed
  • clean, dependency-free wheel install successfully ran init plan/apply/check
  • clean wheel install successfully migrated and checked the public v0 fixture
  • injected second-rename failure restored the canonical v0 tree byte-for-byte
  • generated init and migration JSON records validate against the merged v1 schema registry

Closes #7

@szmyty
szmyty merged commit 943a22b into main Aug 28, 2026
2 checks passed
@szmyty
szmyty deleted the agent/init-migrate-v1 branch August 28, 2026 14:29
@devactivity-app

Copy link
Copy Markdown

Pull Request Summary by devActivity

Metrics

Cycle Time: 8h 40m

Achievements

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.

Add deterministic garden initialization and migration

1 participant