Fix connected IPNS version pruning#19
Draft
magiccodingman wants to merge 1 commit into
Draft
Conversation
magiccodingman
force-pushed
the
agent/fix-ipns-connected-pruning
branch
from
July 25, 2026 22:09
c14de7c to
61aa1f8
Compare
Owner
Author
|
CI note for review:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Fixes the narrow watched-IPNS retention issue where TGP pointer versions and their
-connectedapplication folders were not interpreted as one version pair when Keep Old was disabled.Pair-aware retention
The updater now parses both managed forms through one shared model:
The same parser is used for latest-version discovery, next-version allocation, and retroactive pruning so the worker has one consistent version model.
Safe pruning
When old versions are pruned, TruthGate now:
tgp.json.currentwhen no connected folder is available.tgp-meta.jsonTargetCidsidecar-connectedfolders without allowing them to determine the active versionThis protects the case where two pointer versions reference the same application CID: pruning the older pointer must not remove the explicit pin still needed by the current version.
Tests
Adds focused unit coverage for:
currentparsingValidation performed against the complete repository checkout:
The solution build and focused retention tests passed.
Scope
This PR changes only watched-IPNS version retention and its tests. It does not change
PublishQueue, domain publishing, the TGP wire protocol, UI behavior, or Kubo garbage-collection policy.