Memorys
AGENTS.md30 starsChanged 52 days agoApache-2.0View on GitHub
Claude Code / Cursor / CLI: if a global rule (rust.mdc, «cero comentarios», plant e2e) clashes with this file, this repo wins. Mergeable means ./scripts/merge-gate.sh exited 0 in this turn with a clean log: no SKIPPED, no soft alerts, no “should pass”. Aliases of the same SIL: ./scripts/como-el-ci.sh todo, ./scripts/como-el-ci.sh extra, ./scripts/memory-industry-test.sh all. GitHub Actions is not the merge judge. A green badge is not mergeable. That workflow excludes MODEL_OR_CLI_ONLY and has no ONNX / NLI / reranker / generative…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,337 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository12 other files it gives its agents.
- .cursor/rules/el-gate-es-el-juez.mdcCursor rule
- .cursor/rules/governance.mdcCursor rule
- .cursor/rules/memory-industry-gate.mdcCursor rule
- .cursor/rules/memory-industry-gobernanza.mdcCursor rule
- .cursor/rules/programar-inmutable.mdcCursor rule
- .cursor/rules/swarm-forge-ciclo.mdcCursor rule
- .cursor/rules/swarm-forge-crap.mdcCursor rule
- .cursor/rules/swarm-forge-handoff.mdcCursor rule
- .cursor/rules/swarm-forge-mutacion.mdcCursor rule
- .cursor/rules/swarm-forge-orquestador.mdcCursor rule
- .cursor/rules/swarm-forge-tdd.mdcCursor rule
- .cursor/rules/testear-hasta-rojo.mdcCursor rule
The file
We split this AGENTS.md into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 34
Do not copy plant roles: no guardian-planta, no Playwright planta, no React Query.
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md 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
Agent contract — MemoryIndustry
Claude Code / Cursor / CLI: if a global rule (rust.mdc, «cero comentarios», plant e2e) clashes with this file, this repo wins.
Mergeable (local CI only)
Mergeable means ./scripts/merge-gate.sh exited 0 in this turn with a clean log: no SKIPPED, no soft alerts, no “should pass”.
Aliases of the same SIL: ./scripts/como-el-ci.sh todo, ./scripts/como-el-ci.sh extra, ./scripts/memory-industry-test.sh all.
GitHub Actions is not the merge judge. A green badge is not mergeable. That workflow excludes MODEL_OR_CLI_ONLY and has no ONNX / NLI / reranker / generative LLM. ci.yml runs only when dispatched by hand.
Publishing is ./scripts/release.sh vX.Y.Z and nothing else. When merge-gate.sh already passed on that exact commit over a clean tree, it left ~/.cache/cuba-gate/receipts/<sha> and release.sh tags from that receipt without running the gate a second time; otherwise, or with --rerun-gate, it runs merge-gate.sh on origin/main. Either way it pushes an annotated tag carrying local-gate: MERGE GATE PASSED <sha> only on a clean exit 0. publish.yml reads that line and asks GitHub's CI nothing.
Two judges, chained
| Judge | What it is | What it is not |
./scripts/merge-gate.sh | The SIL. fmt, clippy -D warnings, --ignored, e2e (no soft-skip), deny, audit, codigo-muerto, crap-gate floor, mutants-gate on mmr/rrf/cache. | A fraction (cargo test --lib). GitHub Actions. |
./scripts/quality-gate.sh | CRAP/lizard + cargo mutants on rust/src in the diff. | A substitute for the SIL. Does not run merge-gate. |
quality-gate after the SIL when the change touched rust/src or Python. A missing lizard / cargo-mutants is exit 2: the hardener does not close.
Six-pack
Behaviour change: especificador → implementador → mejorador → arquitecto → endurecedor → qa.
Handoffs: .cursor/handoffs/*.yml. Judge: ./scripts/validar-handoff.sh. Example: .cursor/handoffs/handoff.example.yml.
It judges shape and the two-pass protocol. commit must exist, not just look hexadecimal, and tests: written|frozen is required whenever commit != none: written fails if no #[cfg(test)] region moved since that commit, frozen fails if one did. With several agents in one tree, list the slice in paths: and only the files under it are compared. ./scripts/validar-handoff.sh --self-test proves each guard still refuses its fixture. Until 0.28 this checked shape only, so the green pass rested on the agent being honest.
The parent dispatches. The parent may write product code when Mapupita asked this chat to implement, or when there is no Task. Rules, gate scripts, and AGENTS.md are always in-parent.
Do not copy plant roles: no guardian-planta, no Playwright planta, no React Query.
Comments stay
Comments in this crate are load-bearing (frozen migrations, SHA-384, gate lessons, RLS). Do not strip them. Do not apply Mapupita-Rust «cero comentarios». Rename a comment that only restates the line; keep the why.
Generative LLM (easy path)
memory-industry llm list
memory-industry llm set ollama # local free
memory-industry llm set deepseek --key sk-... # or qwen / moonshot / zhipu / …
memory-industry llm statusThat writes a small config file and loads it automatically on every start. doctor reports generative_llm.
Also: MCP sampling from the host (Cursor/Claude/Gemini), or any custom MEMORY_INDUSTRY_LLM_BASE_URL.
Encode models (embed / NLI / reranker) stay ONNX via memory-industry models all.
Blind gate extras
- E2E must cover tools without soft-skip
scripts/crap-gate.sh— coverage floor (inside the SIL)scripts/mutants-gate.sh— kill-rate floor on mmr/rrf/cache (inside the SIL). An unviable mutant counts only if rustc refused it with a diagnostic, and a caught one only if its test run exited 1..255 (or overflowed its stack); a build or test run the machine killed fails the run (--check-builds, also used byquality-gate.sh)~/.cache/cuba-gate/run.exit—running <owner>while a gate runs, thenmerge-gate.sh's own exit code; a gate killed in the middle leavesrunning- Oracles / fixtures decide green — not an AI opinion
Immutable fixtures
Mutating tests use throwaway DBs (brain_gate / peer). Eval smoke may read the live corpus read-only.
Published migrations through 0060 are frozen (SHA-384). Wrong shipped SQL gets a new migration.
Product ids
- Display /
serverInfo.name: MemoryIndustry - Bin / npm / mcpServers key:
memory-industry - Crate:
memory_industry - Compat:
cuba-memorysbinary (Cargo[[bin]]+ npmbinalias), thecuba-memoryspackage on npm and PyPI, legacyCUBA_*env and the~/.cache/cuba-memorys/read fallback, through 0.28.x. The systemd unitscuba-memorys.service/.socketleftpackaging/in 0.28.0;doctorstill recognises a runningcuba-memorys-daemon, and nothing uninstalls the old units for the user - MCP tool names
cuba_*unchanged this release
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.

