Skip to content

Release 0.9.9: updating a diff from its directory never starts a second diff - #56

Merged
noamt merged 2 commits into
mainfrom
claude/project-thread-avjw5v
Dec 3, 2026
Merged

noamt merged 2 commits into
mainfrom
claude/project-thread-avjw5v

Conversation

@noamt

@noamt noamt commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

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, parentBitId and parentVersionId had 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_directory can't name a bit, and bind refused the draft as "not published".

What

  • Naming the same parent again from a diff's directory updates that diff. Only newBit or another parent starts another bit. The parent is remembered on the journal's bit, with older journals read from their last upload.
  • Every update carries the diff's parent, so its lineage is kept.
  • bind (and the new bind_directory tool) points a directory at the connected creator's draft that was never published. The next upload replaces that draft (Control checks ownership).
  • publish_directory describes all its fields and says how to update a bit or a diff.
  • The fake Control now mirrors Control's expected-version and parent rules.
  • Release 0.9.9.

Verification

Red first: the new publishing tests failed on 0.9.8 (a second bit id for the repeated parent, and bit_not_ready from bind), and the tools test failed on the undescribed fields. npm run check passes (108 tests).

Before merging

The skill text changes are authored in Control. Once they are deployed, run npm run sync-skills on this branch so 0.9.9 ships them.


Generated by Claude Code

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
@noamt noamt self-assigned this Dec 3, 2026
@noamt
noamt merged commit e7fe1bb into main Dec 3, 2026
1 check passed
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.

2 participants