From 7b623effd4204e0ea29428f92ff1219f3a46c41f Mon Sep 17 00:00:00 2001 From: Yehonal Date: Mon, 16 Nov 2026 18:57:23 +0000 Subject: [PATCH] fix: make personal tracking writes atomic on failure --- CHANGELOG.md | 4 + README.md | 5 +- VERSION | 2 +- docs/ai-agents.md | 3 + docs/index.html | 4 +- openpack.json | 2 +- scripts/syncwheel.py | 5 +- scripts/syncwheel_manifest_store.py | 154 ++++++++++++++++ skills/syncwheel/SKILL.md | 3 + tests/test_personal_tracking_atomic.py | 245 +++++++++++++++++++++++++ 10 files changed, 420 insertions(+), 7 deletions(-) create mode 100644 tests/test_personal_tracking_atomic.py diff --git a/CHANGELOG.md b/CHANGELOG.md index 68ce4f32..56b83670 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 0.47.16 - 2026-11-16 + +- Prepare personal tracking updates before writing and restore their manifest and private ledger when a handled write fails. Keep the selected profile, shared ignore files, Git index and refs unchanged. + ## 0.47.15 - 2026-11-16 - Keep personal-manifest tracking updates within the selected manifest and its private ledger. Neither tracking value rewrites shared ignore files, changes hooks, stages files or removes the shared manifest README from the index. Preserve unrelated dirty primary files and report actions for the selected manifest. diff --git a/README.md b/README.md index 13218be8..048c9240 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Keep many long-lived pull requests clean, rebuildable, and publishable from one manifest. -Current version: `0.47.15` +Current version: `0.47.16` `syncwheel` is a small CLI and workflow model for maintainers who carry several PR branches against an upstream repository and need those branches to stay @@ -146,6 +146,9 @@ With a personal manifest selected, `repo tracking set` changes only that manifes policy and private ledger. Both tracking values leave shared ignore files, hooks, the manifest README and Git indexes unchanged. Personal metadata must already be ignored and untracked; changing its policy does not migrate the shared repository. +The command prepares the manifest and ledger update before publication and restores +its own writes if publication raises a handled error. This rollback does not +provide automatic recovery from process termination or power loss. `authority` declares how far agents may take a change on their own. A repo with `mode=ai-managed` and `source_change` allowed lets an agent edit, test, diff --git a/VERSION b/VERSION index 676ecf5e..ffb1cf27 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.47.15 +0.47.16 diff --git a/docs/ai-agents.md b/docs/ai-agents.md index e18ff98e..82548463 100644 --- a/docs/ai-agents.md +++ b/docs/ai-agents.md @@ -294,6 +294,9 @@ lives in [`skills/syncwheel/SKILL.md`](../skills/syncwheel/SKILL.md). Selecting a personal manifest limits `repo tracking set` to that manifest and its private ledger. It does not migrate shared ignore files, hooks or the Git index. The selected private metadata must already be ignored and untracked. +The command prepares the manifest and ledger update before publication and restores +its own writes if publication raises a handled error. This rollback does not +provide automatic recovery from process termination or power loss. ## Repository authority diff --git a/docs/index.html b/docs/index.html index 0ff44a2e..51bc1d17 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1826,7 +1826,7 @@
- AI-ready Git coordination v0.47.15 + AI-ready Git coordination v0.47.16

Move atmachine speed.Stay in control.

Syncwheel coordinates every Git lane used by humans, AI agents, CI and delivery systems—without sacrificing review, safety or recovery.

@@ -2602,7 +2602,7 @@

Your first verified plan in minutes.