agentleFS
Foxfire1stFoxfire1st/agents-remember/skills/c-11-memory-carryover-from-branch/SKILL.md

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.

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
  1. Distinctive:

    Use the Agents Remember MCP memory carryover tools as the normal installed runtime entry point:

    line 14
  2. Very specific:

    Start a dedicated recovery leaf from the landed code-and-memory source pair, then run memory_carryover_plan against that leaf.

    line 22
  3. Distinctive:

    Only proven tiers are auto-carry candidates.

    line 51
  4. Distinctive:

    When no content changes, it retains the actual memory commit.

    line 62

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 literal entity-catalog. Always review-required when differing — whole-file carry, no entry-level merging. On carry, every git-blob-set-v1 fingerprint row is recomputed against the official code ref and the apply result reports entity_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 the c-11-memory-carryover-from-branch skill did not prove equivalent code.
  • not-landed: the source path changed on the source branch but not on the official branch (or, for memory-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's lastVerifiedCommitHash matches 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 with Code-Commit attribution 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

  1. The c-11-memory-carryover-from-branch skill must not copy source branch memory for code that did not land.
  2. The c-11-memory-carryover-from-branch skill must derive the consumer ledger cache from target memory history, never copy source cache rows or treat them as authority.
  3. The c-11-memory-carryover-from-branch skill must refresh carried onboarding metadata to the official code commit, not the source branch commit.
  4. The c-11-memory-carryover-from-branch skill must not auto-carry same-path-only evidence.
  5. The c-11-memory-carryover-from-branch skill must not overwrite existing different recovery-leaf onboarding unless replace_existing=true or explicit review-required inclusion is used.
  6. The c-02-memory-quality-control skill remains the branch-accuracy drift detector; the c-11-memory-carryover-from-branch skill only imports richer memory whose code validity has been proven or explicitly approved.
  7. 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.