Repository navigation
Release 0.9.9: updating a diff from its directory never starts a second diff - #56
Merged
Merged
Conversation
An agent that named the diff's parent again on an update made the helper mint a new bit, so a creator iterating on a diff draft got a second diff (or, with Claude's auto mode, a blocked call and a stuck approval). Naming the same parent now updates the diff, every update carries the parent, bind accepts a draft that was never published, and publish_directory's fields say when to send them. Release 0.9.9. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ur9VQtEaLwvb6HitGELh2q
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ur9VQtEaLwvb6HitGELh2q
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.
Requested by Noam · project thread
Why
A creator's agent updating a diff draft passed the diff's parent ids again, because nothing said not to (
newBit,parentBitIdandparentVersionIdhad no descriptions and the helper reference only says "a diff names its parent"). The helper treats any parent as a new diff, so that call would have started a second bit. The agent's own safety check blocked it, and it had no way back:publish_directorycan't name a bit, andbindrefused the draft as "not published".What
newBitor another parent starts another bit. The parent is remembered on the journal's bit, with older journals read from their last upload.bind(and the newbind_directorytool) points a directory at the connected creator's draft that was never published. The next upload replaces that draft (Control checks ownership).publish_directorydescribes all its fields and says how to update a bit or a diff.Verification
Red first: the new publishing tests failed on 0.9.8 (a second bit id for the repeated parent, and
bit_not_readyfrom bind), and the tools test failed on the undescribed fields.npm run checkpasses (108 tests).Before merging
The skill text changes are authored in Control. Once they are deployed, run
npm run sync-skillson this branch so 0.9.9 ships them.Generated by Claude Code