-
Notifications
You must be signed in to change notification settings - Fork 0
feat: upgrade git-warp to v14.16.2 #314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
flyingrobots
wants to merge
5
commits into
main
Choose a base branch
from
feat/git-warp-upgrade-audit
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
12b9517
docs: frame git-warp upgrade audit cycle (#312)
flyingrobots 8eba886
feat: upgrade git-warp to v14.16.2 (#312)
flyingrobots 3964fb8
docs: align git-warp upgrade guidance (#312)
flyingrobots bc73cb0
fix: harden git-warp v14 compatibility boundary (#312)
flyingrobots 4d88845
docs: record git-warp upgrade review fixes (#312)
flyingrobots File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,163 @@ | ||
| # git-warp Upgrade Audit | ||
|
|
||
| Status: active execution on `feat/git-warp-upgrade-audit` | ||
|
|
||
| Related: | ||
|
|
||
| - [ROADMAP.md](../../ROADMAP.md) | ||
| - [ADR-0005](../adr/ADR-0005.md) | ||
| - [ADR-0006](../adr/ADR-0006.md) | ||
| - [Repo Fixture Strategy](./repo-fixture-strategy.md) | ||
| - issue [#312](https://github.com/flyingrobots/git-mind/issues/312) | ||
|
|
||
| ## Purpose | ||
|
|
||
| Define the next enabling cycle before major Hill 1 implementation: | ||
|
|
||
| > audit and upgrade Git Mind's `@git-stunts/git-warp` dependency so new Hill 1 work is not built on an outdated substrate by accident. | ||
|
|
||
| This is not a generic dependency bump. | ||
| It is a boundary audit plus upgrade cycle. | ||
|
|
||
| ## Sponsor User | ||
|
|
||
| - A Git Mind maintainer extending the product who needs confidence that core graph, provenance, and time-travel behavior still behaves as Git Mind expects on a current git-warp version. | ||
|
|
||
| ## Job To Be Done | ||
|
|
||
| - When I build new Git Mind behavior on top of git-warp, help me do it against a revalidated substrate with explicit compatibility evidence instead of stale assumptions. | ||
|
|
||
| ## Context | ||
|
|
||
| Cycle starting state: | ||
|
|
||
| - declared in `package.json` as `^11.5.0` | ||
| - locked and installed at `11.5.0` | ||
|
|
||
| Live npm registry state checked on 2026-03-25: | ||
|
|
||
| - latest published `@git-stunts/git-warp` version: `14.16.2` | ||
|
|
||
| Chosen upgrade target for this cycle: | ||
|
|
||
| - `14.16.2` | ||
|
|
||
| That means this cycle upgrades Git Mind across three major versions of the substrate. | ||
|
|
||
| This does not automatically mean "upgrade immediately no matter what." | ||
| It does mean Git Mind should not keep expanding Hill 1 behavior without auditing the real upgrade surface first. | ||
|
|
||
| ## Why This Cycle Exists | ||
|
|
||
| The goal is explicitly **not** to build a lot of new behavior on top of git-warp right now. | ||
|
|
||
| The goal is: | ||
|
|
||
| - understand the dependency boundary Git Mind actually uses | ||
| - strengthen the tests around that boundary | ||
| - upgrade deliberately | ||
| - keep future Hill 1 work from inheriting avoidable substrate drift | ||
|
|
||
| ## Observed Dependency Boundary | ||
|
|
||
| Based on current code inspection, Git Mind directly imports and depends on a relatively narrow but important git-warp surface. | ||
|
|
||
| ### Direct Imports | ||
|
|
||
| From `@git-stunts/git-warp`, Git Mind currently imports: | ||
|
|
||
| - default export `WarpGraph` | ||
| - `GitGraphAdapter` | ||
| - `CONTENT_PROPERTY_KEY` | ||
|
|
||
| ### Verified Graph Instance Methods Used In `src/` | ||
|
|
||
| Git Mind currently relies on these graph instance methods: | ||
|
|
||
| - `createPatch()` | ||
| - `hasNode()` | ||
| - `getNodeProps()` | ||
| - `getNodes()` | ||
| - `getEdges()` | ||
| - `getContentOid()` | ||
| - `getContent()` | ||
| - `materialize({ ceiling })` | ||
| - `observer(name, config)` | ||
| - `discoverTicks()` | ||
|
|
||
| ### Verified Patch Methods Used In `src/` | ||
|
|
||
| Git Mind currently relies on these patch methods: | ||
|
|
||
| - `addNode()` | ||
| - `addEdge()` | ||
| - `removeEdge()` | ||
| - `setProperty()` | ||
| - `setEdgeProperty()` | ||
| - `attachContent()` | ||
| - `commit()` | ||
|
|
||
| ### High-Risk Semantics | ||
|
|
||
| The upgrade should pay special attention to: | ||
|
|
||
| 1. `WarpGraph.open(...)` and `GitGraphAdapter` initialization semantics | ||
| 2. time-travel behavior of `materialize({ ceiling })` | ||
| 3. observer/filter behavior via `graph.observer(...)` | ||
| 4. content attachment and retrieval APIs | ||
| 5. tick discovery / historical traversal assumptions | ||
| 6. patch commit semantics and idempotency | ||
|
|
||
| ## Known Mismatches Already Exposed | ||
|
|
||
| This cycle exposed one concrete runtime compatibility change: | ||
|
|
||
| - `graph.getNodeProps()` now returns plain objects rather than `Map` instances | ||
|
|
||
| Git Mind must treat node property bags as a compatibility boundary rather than assuming a single container shape. | ||
|
|
||
| This cycle also started with contributor-facing docs that still claimed git-warp was installed via local path. Those docs should be corrected as part of the upgrade. | ||
|
|
||
| ## Acceptance Criteria | ||
|
|
||
| This cycle succeeds when: | ||
|
|
||
| 1. Git Mind's actual git-warp dependency surface is documented and reviewed. | ||
| 2. Compatibility-sensitive behaviors are protected by tests. | ||
| 3. The upgrade target version is chosen deliberately, not by vibes. | ||
| 4. Git Mind installs and tests cleanly against the chosen upgraded version. | ||
| 5. Docs reflect the real dependency model afterward. | ||
|
|
||
| ## Execution Model | ||
|
|
||
| Per [ADR-0006](../adr/ADR-0006.md), this cycle should follow the normal design-to-test flow: | ||
|
|
||
| 1. finalize the upgrade-audit design artifact | ||
| 2. translate the risky boundary into failing tests | ||
| 3. use shared repo fixtures where repository-shaped behavior matters | ||
| 4. upgrade and implement until tests are green | ||
| 5. run a playback / retrospective | ||
| 6. update README and contributor docs if reality changed | ||
|
|
||
| ## Recommended First Work Sequence | ||
|
|
||
| 1. Inventory git-warp touchpoints in `src/` and relevant tests. | ||
| 2. Add or strengthen tests around: | ||
| - graph open/init | ||
| - node/edge mutation | ||
| - content attachment | ||
| - time-travel / epoch behavior | ||
| - observer behavior if still relevant | ||
| 3. Review upstream changes between `11.5.0` and the candidate target. | ||
| 4. Upgrade the dependency and lockfile on a dedicated branch. | ||
| 5. Fix breakage explicitly rather than papering over it. | ||
|
|
||
| ## Playback Questions | ||
|
|
||
| Use these questions for the cycle retrospective: | ||
|
|
||
| 1. Did we actually reduce substrate risk, or just move version numbers? | ||
| 2. Are the important git-warp assumptions now executable as tests? | ||
| 3. Did the upgrade simplify or complicate future Hill 1 work? | ||
| 4. Did we discover any Git Mind behavior that was depending on accidental substrate quirks? | ||
| 5. What follow-on work should be backlogged before deeper Hill 1 implementation resumes? |
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: flyingrobots/git-mind
Length of output: 307
BLOCKING: GUIDE.md contradicts documented dependency model.
Line 67 claims git-mind "depends on the published
@git-stunts/git-warppackage," but AGENTS.md and CLAUDE.md explicitly require "git-stunts/git-warp (local path)" as the core dependency for CRDT graph on Git. This mismatch must be resolved before merging. Either:Additionally, CLAUDE.md explicitly mandates "git-stunts/plumbing is installed as a direct dependency"—ensure
package.jsonreflects both requirements.🤖 Prompt for AI Agents