Use Case 04 · Team Engineering Memory
Versioned, Secret-Gated Team Memory Through Git
The engineering problem
When one engineer discovers an undocumented production invariant with an AI assistant, that insight dies in their local session or gets pasted into a wiki that drifts out of date within a sprint.
How Cairnmind enforces a better boundary
- Cairnmind exports person-confirmed decisions, constraints, and plans into a clean, reviewable directory inside the repository (.memory/cairnmind-published/, FORMAT v1) that moves through normal Git pull requests.
- Unconfirmed model proposals are automatically held back from publication until a human reviews and confirms them in the workspace inspector.
- A built-in secrets gate scans every candidate record against .cairnmind/publication.toml and high-entropy/well-known secret patterns, blocking leaks before a file is ever written.
- Teammates validate, diff, and import published memory cleanly into their own local store. Imported confirmations stay clearly marked as confirmed elsewhere until adopted locally.
Concrete workflow
1. Preview exactly what would be published
$ cairnmind memory publish my-app --preview --json Lists eligible confirmed records and explicitly names every held-back proposal or secret hit without writing files.
2. Write reviewable team memory into the repository
$ cairnmind memory publish my-app Writes deterministic FORMAT v1 files to .memory/cairnmind-published/ without staging, committing, or pushing.
3. Verify integrity in pull requests
$ cairnmind pulse my-app --strict Checks snapshot and published memory integrity alongside code drift in under 500 ms.
4. Import on a teammate’s workstation
$ cairnmind memory import my-app .memory/cairnmind-published Imports reviewed team knowledge while preserving origin attribution and human-confirmation rules.
What is guaranteed
- Unconfirmed agent proposals are held back automatically from team publication.
- Secrets are masked and gated before leaving a machine. Overriding a block requires an explicit person act.
- FORMAT v1 published memory and portable snapshots are guaranteed backward-compatible across 1.x releases.
Known limits
- Portable snapshots (.memory/cairnmind/) can include conversation excerpts when requested. Always inspect them before sharing outside your team.
- Git staging, code review, and commits remain explicit human steps.