agentleFS
LeandroPG19LeandroPG19/Memorys/AGENTS.md

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…

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

    Do not copy plant roles: no guardian-planta, no Playwright planta, no React Query.

    line 34

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

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

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

JudgeWhat it isWhat it is not
./scripts/merge-gate.shThe 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.shCRAP/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 status

That 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 by quality-gate.sh)
  • ~/.cache/cuba-gate/run.exit — running <owner> while a gate runs, then merge-gate.sh's own exit code; a gate killed in the middle leaves running
  • 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-memorys binary (Cargo [[bin]] + npm bin alias), the cuba-memorys package on npm and PyPI, legacy CUBA_* env and the ~/.cache/cuba-memorys/ read fallback, through 0.28.x. The systemd units cuba-memorys.service/.socket left packaging/ in 0.28.0; doctor still recognises a running cuba-memorys-daemon, and nothing uninstalls the old units for the user
  • MCP tool names cuba_* unchanged this release

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.