c-11-memory-carryover-from-branch
Skill27 starsChanged 6 months agoMITView on GitHub
Carry richer onboarding from a source branch into a dedicated recovery leaf after the corresponding code landed, then close and integrate that leaf normally.
In this repository59 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github-vscode/copilot-instructions.mdCopilot instructions
- .cursor/rules/agents-remember.mdcCursor rule
- docs/llms.txtllms.txt
- c-00-initialize-memory-repoSkill
- c-01-findings-captureSkill
- c-02-memory-quality-controlSkill
- c-03-repo-bootstrapSkill
- c-04-retrieval-strategy-routerSkill
- c-05-create-or-update-onboarding-filesSkill
- c-08-ar-coordination-context-resolverSkill
- c-09-git-worktree-managerSkill
- c-10-adopt-memory-baselineSkill
- c-11-memory-carryover-from-branchSkill
- c-12-closeoutSkill
- c-13-install-and-onboardSkill
- l-01-agent-lifecyclesSkill
- w-02-light-task-workflowSkill
- c-00-initialize-memory-repoSkill
- c-01-findings-captureSkill
- c-02-memory-quality-controlSkill
- c-03-repo-bootstrapSkill
- c-04-retrieval-strategy-routerSkill
- c-05-create-or-update-onboarding-filesSkill
- c-08-ar-coordination-context-resolverSkill
- c-09-git-worktree-managerSkill
- c-10-adopt-memory-baselineSkill
- c-11-memory-carryover-from-branchSkill
- c-12-closeoutSkill
- c-13-install-and-onboardSkill
- l-01-agent-lifecyclesSkill
- w-02-light-task-workflowSkill
- c-00-initialize-memory-repoSkill
- c-01-findings-captureSkill
- c-02-memory-quality-controlSkill
- c-03-repo-bootstrapSkill
- c-04-retrieval-strategy-routerSkill
- c-05-create-or-update-onboarding-filesSkill
- c-08-ar-coordination-context-resolverSkill
- c-09-git-worktree-managerSkill
- c-10-adopt-memory-baselineSkill
- c-11-memory-carryover-from-branchSkill
- c-12-closeoutSkill
- c-13-install-and-onboardSkill
- l-01-agent-lifecyclesSkill
- w-02-light-task-workflowSkill
- c-00-initialize-memory-repoSkill
- c-01-findings-captureSkill
- c-02-memory-quality-controlSkill
- c-03-repo-bootstrapSkill
- c-04-retrieval-strategy-routerSkill
- c-05-create-or-update-onboarding-filesSkill
- c-08-ar-coordination-context-resolverSkill
- c-09-git-worktree-managerSkill
- c-10-adopt-memory-baselineSkill
- c-12-closeoutSkill
- c-13-install-and-onboardSkill
- l-01-agent-lifecyclesSkill
- w-02-light-task-workflowSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Use the Agents Remember MCP memory carryover tools as the normal installed runtime entry point:
- Very specific: line 22
Start a dedicated recovery leaf from the landed code-and-memory source pair, then run memory_carryover_plan against that leaf.
- Distinctive: line 51
Only proven tiers are auto-carry candidates.
- Distinctive: line 62
When no content changes, it retains the actual memory commit.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
c-11-memory-carryover-from-branch Memory Carryover From Branch
Use this skill when a protected official code branch receives delayed or batched merges, while a developer has accumulated richer onboarding on another branch. The source branch may be a personal workbench branch, an individual feature branch, or a handpicked branch processed as part of a larger reconciliation pass.
The c-11-memory-carryover-from-branch skill is not a Git merge. It is a selective memory reconciliation step. It proves which source-branch code changes are represented in the official branch, then carries only the corresponding onboarding into an open, external-memory recovery leaf and refreshes verification metadata against the official code commit. That leaf still closes and integrates through the normal journaled code-and-memory lifecycle; carryover never writes an official integration checkout directly.
MCP Tools
Use the Agents Remember MCP memory carryover tools as the normal installed runtime entry point:
memory_carryover_plan(repo_id="<repo-id>", contract_path="<open-recovery-leaf-contract>", source_memory="<source-memory-repo>", official_code_ref="<official-ref>", source_code_ref="<source-ref>", old_base="<base-ref-or-sha>")
memory_carryover_apply(repo_id="<repo-id>", contract_path="<open-recovery-leaf-contract>", source_memory="<source-memory-repo>", official_code_ref="<official-ref>", source_code_ref="<source-ref>", old_base="<base-ref-or-sha>", intent_note="<developer intent>")Start a dedicated recovery leaf from the landed code-and-memory source pair, then run
memory_carryover_plan against that leaf. Use memory_carryover_apply only after reviewing
the candidate report. Apply mutates only the recovery leaf's ordinary memory worktree; it
does not move code or protected memory refs. Close and integrate the recovery leaf normally.
The skill tree is instruction-only; installed and development workflows use the MCP/package
route.
Candidate Kinds
Candidates are kind-tagged; include_review_required selects each by its selection key.
file-sidecar: per-file onboarding for a code path in the diff; key = the source path.route-overview: route overview whose route covers a landed path (GitHub #56); key = the normalized route (.for the repo root).memory-only-doc: a sidecar or overview changed only in branch memory while its source path is outside the code diff (e.g. a pre-existing drift re-verified mid-task); key = the doc's source path or route.entity-catalog: the repo entity catalog (onboarding/entities.md); key = the literalentity-catalog. Always review-required when differing — whole-file carry, no entry-level merging. On carry, everygit-blob-set-v1fingerprint row is recomputed against the official code ref and the apply result reportsentity_fingerprint_validation(validated/mismatch/skipped, with per-entity detail); fingerprints are derived values and are validated, never trusted as copied.
Evidence Tiers
exact-landed-commit: every commit that touched the source path on the source branch is an ancestor of the official code ref — a single landed commit is not enough, so a later unlanded commit to the same path cannot be carried as landed.patch-id-match: the old-base-to-source-branch patch for the source path matches the old-base-to-official patch.final-content-match: the source file content at the source branch ref matches the content at the official ref.same-path-changed: both branches changed the same source path, but thec-11-memory-carryover-from-branchskill did not prove equivalent code.not-landed: the source path changed on the source branch but not on the official branch (or, formemory-only-doc, does not exist on the official ref).
memory-only-doc candidates use their own evidence values:
memory-only-reverification-valid(auto-carry): the source object at the branch doc'slastVerifiedCommitHashmatches the official ref AND target recovery-leaf memory has not changed the doc since the memory merge-base.source-diverged,target-memory-moved,unverifiable(review-required): the source moved under the doc; target recovery-leaf memory changed it independently (or no merge-base resolves, e.g. the source memory is not a git checkout sharing history); or the branch doc's verification commit cannot be resolved.
Only proven tiers are auto-carry candidates. Same-path overlap is review-required by default because another developer may have changed the same file independently.
Output States
would-carryover: dry-run plan with candidate decisions.carried-over: a recovery-leaf memory-content commit was created withCode-Commitattribution to the selected official code commit.nothing-to-carryover: no selected candidate changed target recovery-leaf memory.blocked: apply was requested without approval, an open recovery-leaf contract, a clean exact landed code base, or required candidate data.
Apply refreshes the ignored memory.md consumer cache from memory commit trailers. It never
stages or commits that cache, and missing or malformed cache data does not block carryover.
When no content changes, it retains the actual memory commit; a new official code SHA does not
cause a synthetic mapping-only commit. Regeneration does not rewrite historical attribution.
Carryover commits only on the worktree named by the selected recovery-leaf contract. It
never writes or force-moves memory main, a sprint super, or an atomic integration ref.
Protected-ref movement remains the recovery leaf's separate journaled integration.
Boundaries
- The
c-11-memory-carryover-from-branchskill must not copy source branch memory for code that did not land. - The
c-11-memory-carryover-from-branchskill must derive the consumer ledger cache from target memory history, never copy source cache rows or treat them as authority. - The
c-11-memory-carryover-from-branchskill must refresh carried onboarding metadata to the official code commit, not the source branch commit. - The
c-11-memory-carryover-from-branchskill must not auto-carry same-path-only evidence. - The
c-11-memory-carryover-from-branchskill must not overwrite existing different recovery-leaf onboarding unlessreplace_existing=trueor explicit review-required inclusion is used. - The
c-02-memory-quality-controlskill remains the branch-accuracy drift detector; thec-11-memory-carryover-from-branchskill only imports richer memory whose code validity has been proven or explicitly approved. - Apply requires an open external-memory leaf whose clean code worktree is exactly at the selected landed code tip; no official-checkout or contract-free apply route exists.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

