Skip to content

MEMORY-USAGE: Share the memory usage file without blocking pushes - #9

Merged
bguidolim merged 1 commit into
mainfrom
bruno/MEMORY-USAGE-tracking
Oct 16, 2026
Merged

bguidolim merged 1 commit into
mainfrom
bruno/MEMORY-USAGE-tracking

Conversation

@bguidolim

Copy link
Copy Markdown
Contributor

Why

The memory pack (mcs-cli/memory#45) now records the last day each memory was read in memories/.usage.tsv, so teams can see what nobody reads anymore. As shipped, this pack would refuse to push while that file is dirty, and two teammates reading memories on the same day would hit a rebase conflict that pauses auto-push.

The file is now exempt from the naming guardrail. mcs sync gives each clone a union merge rule without committing anything to the team's repo. Clones that haven't re-synced resolve a usage-only conflict on their own. SessionStart keeps pulling while fresh usage rows are uncommitted, and doesn't report them as stuck state.

Test plan

  • Run mcs sync on an existing project → expect "Added the merge=union rule…" once, then nothing on re-run
  • Read a memory in two clones, end a turn in each → expect both pushes to land and every row kept
  • Delete .git/info/attributes and repeat → expect the same result, no /resolve-memories pause
  • Run mcs doctor without the rule → expect a warning that names mcs sync

…shes

- Exempt memories/.usage.tsv from the naming guardrail and give usage-only commits their own subject
- Add a per-clone merge=union rule on sync, with a doctor warning and a Stop-hook fallback for clones without it
- Autostash the SessionStart pull and stop reporting fresh usage rows as lingering state
@bguidolim
bguidolim added this pull request to stack #11 October 15, 2026 16:33
@bguidolim
bguidolim merged commit 472c4f1 into main Oct 16, 2026
6 checks passed
@bguidolim
bguidolim deleted the bruno/MEMORY-USAGE-tracking branch October 16, 2026 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant