Repository navigation
feat(sync): add projection and problem core - #987
Merged
Merged
Conversation
ctawiah
force-pushed
the
ctawiah/sync-projection-core-3bbf
branch
3 times, most recently
from
November 3, 2026 00:29
f31a6bb to
73fdc58
Compare
This was referenced Nov 3, 2026
ctawiah
changed the base branch from
main
to
ctawiah/sync-phase1-ref-removal-3bbf
November 3, 2026 00:53
ctawiah
force-pushed
the
ctawiah/sync-projection-core-3bbf
branch
from
November 4, 2026 15:29
73fdc58 to
7cf0b26
Compare
ctawiah
marked this pull request as ready for review
November 4, 2026 15:29
ctawiah
requested review from
btesfamariam and
nkester-ld
and removed request for
a team
November 4, 2026 15:29
nkester-ld
approved these changes
Nov 4, 2026
ctawiah
force-pushed
the
ctawiah/sync-projection-core-3bbf
branch
from
November 4, 2026 19:25
7cf0b26 to
bfc9d15
Compare
ctawiah
force-pushed
the
ctawiah/sync-projection-core-3bbf
branch
from
November 4, 2026 19:46
bfc9d15 to
2835af5
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 2835af5. Configure here.
Add typed projections for variations, tools, and skills, with the field states that the planner compares. Add structured sync problems with stable codes and next steps. Record the descriptor digest, the adapter behavior, and the indexed selections in sync.lock format version 1. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
ctawiah
force-pushed
the
ctawiah/sync-projection-core-3bbf
branch
from
November 4, 2026 21:53
2835af5 to
172938a
Compare
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.

Context
Repository adapters need one shared model of what a source owns: typed projections, field capabilities, and structured errors. The lock also needs to know how a projection was produced.
What changes
ForMode, the one place that converts a source prompt between agent instructions and one system message.sync.lockformat version 1.Design notes
python/1, stored per resource. A change to one adapter asks for a review of the bindings of that format only.Review focus
ForModereject a message list that cannot become instructions?Verification
make buildgo test ./...golangci-lint run ./...Related changes
🤖 Generated with Claude Code
Note
Overview
Introduces the shared projection model for descriptor-backed resources (variations, tools, skills): mapped fields, direct vs read-only capability, project/merge helpers, stable projection fingerprints, and ReferenceDigest for mapping changes. Adds
Problem/ErrorCodefor structured, actionable sync failures.Remote and local baselines gain
formatVersion: 1. Manifest entries and API upserts now carryfingerprintSchema,referenceDigest, andadapterBehavior;sync.lockcan also storeindexedSelections. The API client validates manifest version on get/patch and rejects unknown versions.Domain model updates:
Referenceexpands withselect,map, and optional tools/skills ownership lists;SyncedResource/SyncedAttachmentcarry source metadata and projections; attachments track projection for partial publish. ManifestSetSource,SameContent, and store change detection treat descriptor metadata as part of baseline equality—not fingerprint alone.Tests cover projection behavior (prompt normalization,
ForMode, model parameters, relationships) and lock/API manifest round-trips.Reviewed by Cursor Bugbot for commit 172938a. Bugbot is set up for automated code reviews on this repo. Configure here.