You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, Greplica separates memory into a main scope (committed repo facts) and a working scope (local session edits). When coding agents run the greplica-update-working-memory skill, new claims, flows, and components are written to the working scope.
However, there is no command to promote or "commit" these working claims into the main scope of the branch. The working memory continues to grow indefinitely relative to the main scope, making it hard to maintain a clean boundary between stable codebase facts and active branch-specific modifications.
Proposed Solution
Introduce a new CLI command—greplica graph promote (or greplica graph commit)—that promotes the current working scope changes into the target branch's main scope.
Expected Behavior
Command:
greplica graph promote [--scope <scope_id>]
Action:
It takes all components, flows, claims, and edges created under the working scope.
Re-assigns their memberships to the parent main scope (or the target branch's scope).
Cleans up the working scope (making it empty and ready for the next session).
Having this promotion command is a critical building block for multi-branch merging. Once working memory is promoted to its branch scope, git branch merging can be handled cleanly at the branch-scope level rather than mixing with active uncommitted session memory.
Example Workflow
Work session: Agent makes edits, adds 3 new claims to working.
Verification: Tests pass, feature is complete.
Commit Memory: Developer or agent runs greplica graph promote.
Result: The 3 claims are now permanent parts of the main graph scope. working is cleared.
Problem
Currently, Greplica separates memory into a
mainscope (committed repo facts) and aworkingscope (local session edits). When coding agents run thegreplica-update-working-memoryskill, new claims, flows, and components are written to theworkingscope.However, there is no command to promote or "commit" these working claims into the
mainscope of the branch. The working memory continues to grow indefinitely relative to the main scope, making it hard to maintain a clean boundary between stable codebase facts and active branch-specific modifications.Proposed Solution
Introduce a new CLI command—
greplica graph promote(orgreplica graph commit)—that promotes the currentworkingscope changes into the target branch'smainscope.Expected Behavior
workingscope.mainscope (or the target branch's scope).workingscope (making it empty and ready for the next session).Example Workflow
working.greplica graph promote.workingis cleared.