- **status:** v4.16.1 — backward memory layer (v3.x) + forward cognitive layer (VBDI, v4.0.0) + **cross-vendor skills layer (v4.1–4.5)**: neutral committed `agent-skills/` + `AGENTS.md` runtime baseline; recipe + **sync**/**adopt**/**sanity-check** ops live in an **on-demand `SKILLS.md`** (per-session footprint is just a pointer — no skills check in the ritual); Claude/Gemini/Cursor/**Kiro** adapters (gitignored, regenerated, **never committed**); Claude/Cursor/Kiro adapters are description-matched, **Gemini is a slash command** `/<name>`; single-line/quote-free/concise descriptions mirrored verbatim; migration promotes vendor `.claude/skills/` + `.kiro/skills/` and preserves Kiro **hooks** under `legacy/` (never run); enable + every Mode B re-enable **run** `sync skill adapters` (v4.12.0; idempotent, gitignored-only) so adapters are materialized, not merely recommended. **v4.6.0:** `AGENTS.md` now carries a vendor-neutral **commit-attribution** convention (deliberate, human-initiated commits with a self-identifying `Co-Authored-By:` trailer). **v4.7.0–4.7.1:** + a **lightweight mode** keyed to the *objective* "did a file change?" test — **read-only** sessions write **no log**; **any file change** (even one line) writes at least a one-line **lite log**; a memory-relevant event → full ritual ("trivial" is a judgment call, so it never decides the skip). **v4.8.0:** the review **self-verifies its archival** — greps the last `archive_window` sessions for each fading id before archiving (guards against decay miscounts). **v4.9.0:** + a portable **`memory-lint`** verifier skill (`agent-skills/memory-lint/`, Python 3 stdlib) that runs the decay-integrity checks *deterministically* — moves the counting off the LLM (the real fix Copilot argued for). **v4.10.0:** + an optional **fresh-context second-opinion** skill pair — `second-opinion` snapshots the task (derived from continuity+sessions, behind an acknowledge-gated security advisory) for a clean-memory reviewer; `apply-critique` applies the returned critique through a bounded, validated, human-gated loop (build/tests + memory-lint). Snapshots in gitignored `review-scratch/`; **ENABLE + upgrades now install the built-in skills** (`second-opinion` + `apply-critique` + `memory-lint`, which the review ritual relies on). Folds the external "AIF" idea into skills+VBDI; the fresh reviewer is **advisory**, gated by deterministic checks + human (the v4.8/v4.9 lesson). **Dogfooded end-to-end 2026-06-18** (clean-context reviewer caught an upgrade-overwrite invariant tension; fixed via apply-critique); README/deck/whitepaper updated. **Validated across five vendors 2026-06-16/18** (Claude, Gemini cross-machine, Cursor-format, enterprise Kiro on Windows, GitHub Copilot CLI — the Copilot enablement + review surfaced the decay-miscount that drove v4.8.0). **All cross-vendor validations closed.** **v4.10.1 (PATCH):** line-anchored `memory-lint`'s Memory-References parser (`ot-memlint-anchor-bug`) — found while running the verifier during a memory review, where a log quoting the heading in prose tripped a false `over-archived`; the verifier must not be fooled by prose. **v4.10.2 (PATCH):** four fixes from a fresh-context review of the v4.10.x line (GitHub Copilot CLI, applied via the `apply-critique` loop — the second dogfood of the review pair, this time a *different vendor*): `memory-lint`'s `FOOTER_RE` bound to one line (unclosed-footer guard); install protocol **warns before overwriting a locally-modified built-in** (tool-managed-copies contract now *checked*, not convention-only); the `upgrades-additive` invariant text carries its tool-managed-built-ins exception inline; `second-opinion` gains a same-vendor-vs-different-vendor caveat. One low-confidence finding deferred (`ot-memlint-pinned-nested`). **v4.10.3 (PATCH):** lightweight-mode **wording fix** — the session-log test is now keyed to whether a *tracked* file changed (the objective test is the **git diff**, not any filesystem write), and a run whose only writes are **gitignored, regenerated artifacts** (`sync skill adapters`, `review-scratch/`, the compiled lint artifact) is explicitly **no log** (`lightweight-tracked-change-v4103`). Surfaced when a fresh `sync skill adapters` (re)wrote 16 gitignored adapters but left `git status` clean — yet the old "did a *file* change?" wording seemed to demand a lite log; aligns `AGENTS.md` with what `SKILLS.md` already says (sync "touches no committed file"). **v4.10.4 (PATCH):** hardened `memory-lint` to correctly preserve pinned Open Threads that contain deeply-nested sub-items. **v4.11.0 (MINOR):** `memory-lint` now ships a **Node** runtime (`memory-lint.mjs`, Node ≥ 18, built-ins only) alongside Python, at output parity and held equivalent by a **shared test contract** (`test_memory_lint.mjs` ↔ `.py`) — so the deterministic decay check no longer requires a Python install (motivated by a node-preferring collaborator; the determinism guarantee shouldn't depend on which runtime a machine has). Additive: no dispatcher, no installer — the agent picks the runtime. Shipped `25677a7`; **cross-vendor validated** by Gemini 3.1 Pro (GitHub Copilot CLI), which reran both runtimes + suites live and reproduced byte-identical output. **v4.11.1 (PATCH):** hardened `REVIEW.md` step-6 archival-verify against prose — a "use" is now defined as a `## Memory References` entry (not a passing mention), `memory-lint` is the preferred check, and the by-hand fallback only counts in-block hits; fixes an archival livelock (`ot-review-step6-prose`) found in the 2026-06-19 review. Doc + tests only; verifier already correct. **v4.12.0 (MINOR):** enforced skill-adapter sync — ENABLE + every Mode B re-enable now *run* `sync skill adapters` (idempotent, gitignored-only) instead of the read-only "recommend, don't run" check, so a skill's vendor-native adapters are materialized at enable/upgrade (Step 8 asserts adapter completeness); the per-session path still never touches skills. Surfaced upgrading `~/sandbox/simple-proxy` (v4.4.0→4.11.1), where the pre-existing `hello-world` skill was left without its Kiro adapter (`ot-enforce-sync-adapters-v4120`). **v4.12.1 (PATCH):** `memory-lint` dangling-link check now resolves `superseded-by`/`supersedes` targets across other `memory/*.md` files (e.g. `vision.md`) — `load_repo` pools their footers into an `extra` set used *only* for link resolution (not counted as facts), fixed at parity in `.py` + `.mjs` with a cross-file regression test in both suites. A false `[dangling]` the tool's own check would emit when a fact is superseded by a `vision.md` fact; found + fixed by the maintainer dogfooding `~/sandbox/simple-proxy`, ported back here (`ot-memlint-dangling-crossfile-v4121`). **v4.13.0 (MINOR):** tool-provided (system) skills now carry **`provenance: agent-memory-builtin`** in their `SKILL.md` frontmatter (+ a body banner) so a target's AI recognizes a system skill **at edit time**; `SKILLS.md` (new "Tool-provided (system) skills" section) routes a change to **fork** a local variant or **upstream** a genuine fix to the agent-memory project (issue in production; maintainer advisory pre-release, kept generic until enterprise-GitHub) — and `ENABLE.md` §5i's warn-before-overwrite carries the same advice. Closes the gap that nearly stranded the simple-proxy `memory-lint` fix (`ot-system-skill-provenance-v4130`). **Cross-vendor validated 2026-06-20:** a **Gemini CLI** agent in `~/sandbox/simple-proxy` recognized the `provenance` marker and refused an in-place edit (Claude wrote the marker, Gemini honored it — clean-room, different-vendor proof). **v4.14.0 (MINOR):** + an **optional, human-facing Architecture Decision Record log** (`docs/ADR.md`) at the VBDI **Design** altitude — one durable architecture decision per entry (Status · Date · Abstract · Rationale-with-consequences), newest-first, `Proposed → Accepted → Superseded/Deprecated`, **never deleted** (mirrors `DECAY.md` §9); seeded with the 5 standing Architectural Invariants plus the superseded `no-code-markdown-only` decision (ADR-0001…0006; `no-code-markdown-only` recorded as **ADR-0004**, *Superseded by ADR-0006* — surfaced + inserted on maintainer review). **Map-don't-duplicate:** `continuity.md` keeps the live *what* (with `id`), the ADR carries the durable *why*, cross-linked by `formalizes:` ↔ a **visible `(ADR-NNNN)` tag in the invariant title** (a human pointer, **not** an agent read-cue — the invariant text stays authoritative; on maintainer review, moved off the hidden footer so a human auditor sees it). Read **on demand** — **not** in the per-session read path (zero default token cost, like `docs/DESIGN-*.md`); **not auto-installed** into targets (documented as an optional convention in `.agent/schema.md`/`AGENTS.md`; adopt on demand). Dogfooded on this repo. **v4.14.1 (PATCH):** `UPGRADE.md` gains a **"Source of truth for re-synced files"** map — a target's `AGENTS.md` comes from **`templates/AGENTS.md`** (memory hub), **never** the tool's **root** `AGENTS.md` (operator/dual-mode dispatcher, references the non-installed `ENABLE.md`); `DECAY/REVIEW/SKILLS` from root, `schema`/bootstraps from `templates/`; + a grep self-check and a `4.14.0→4.14.1` rung that **verifies + repairs** a mis-synced `AGENTS.md`. Found dogfooding a Copilot v3.7.0→v4.14.0 upgrade of `mercury-composable` that grabbed the root file (operator-only doc fix; no installed-shape change). **v4.15.0 (MINOR):** the optional ADR log gains an **upkeep trigger** — once `docs/ADR.md` exists, a new durable architecture decision, or the supersession/invalidation of an `(ADR-NNNN)`-tagged `continuity.md` fact, **prompts a human-gated ledger update** (add a newer ADR; mark the old `Superseded`/`Deprecated`, never delete; keep `formalizes:` ↔ `(ADR-NNNN)` in sync), closing the 4.14.0 gap where the log could be *adopted* but had no cue to *evolve*. Re-syncs `AGENTS.md` (root + template) + `.agent/schema.md` (`docs/ADR.md` "When to maintain it") + `DECAY.md §12`; the `4.14.1→4.15.0` rung **merges** the trigger into a repo-customized ADR note rather than overwriting. Surfaced + first-propagated dogfooding `mercury-composable`'s ADR opt-in (same session as the upgrade that validated propagation end-to-end). **v4.16.0 (MINOR):** ADR default path changed from `docs/ADR.md` to `docs/arch-decisions/ADR.md` (industry-convention alignment — named subdirectory signals purpose, leaves `docs/` root uncluttered); normative update to `.agent/schema.md`, `AGENTS.md` (root + template), `DECAY.md §12`; this repo's own ADR log moved to `docs/arch-decisions/ADR.md` (dogfooding the new default). Targets already at the new path (e.g. `mercury-composable`) need no file move — version bump only (`ot-adr-path-alignment-v4160`). **v4.16.1 (PATCH):** session filename drift fix — two gaps allowed date-only session filenames (`YYYY-MM-DD.md`): `templates/AGENTS.md`/`schema.md` said "or equivalent" (letting agents use context `currentDate`), and `memory-lint` had no filename check. Both fixed: explicit `date -u +%Y-%m-%d-%H%M%S` requirement + `check_session_filenames` warning (check 5) in both linter runtimes with tests. Surfaced in this repo's own session (`ot-session-filename-drift-fix`). **v4.17.0 (MINOR):** GitHub Copilot CLI skills adapter — a **5th** adapter target `.github/skills/<name>/SKILL.md` (Copilot CLI follows the open Agent Skills standard, same shape as Claude/Kiro; description-matched + `/<name>`); `sync skill adapters` now writes five; `.github/skills/` gitignored **path-scoped** (the rest of `.github/` stays tracked — the one structural difference from the other four adapter dirs); Copilot also promotes skills in Mode C and its steering template now **front-loads the explicit `memory/` read list** + a manual-upkeep note + points at the skills layer (Copilot Ask/Plan modes don't follow a pointer chain or auto-run the ritual — a real-vendor review finding; reliability-over-DRY, **Copilot-scoped** since other vendors proactively load `AGENTS.md`). Mirrors v4.5.0 Kiro. Surfaced dogfooding `~/sandbox/simple-proxy` (Copilot couldn't find a skill authored only in `agent-skills/`); upgraded it to 4.17.0 (`copilot-adapter-v4170`). **v4.18.0 (MINOR):** `sync skill adapters` is now a **runnable script** (the `sync-adapters` built-in: bash + Node + Python at 3-way byte-identical parity, bash preferred (no runtime install); regen 5 adapters/skill + signature-guarded prune; gitignored-only). Replaces the prose-recipe-only sync that agents (Copilot/Gemini) couldn't *run* — they hunted for a non-existent npm/MCP command and flailed. Maintainer-gated reversal of "no sync script"; consistent with `no-build-step-agent-run` (same category as `memory-lint`). Surfaced + dogfooded on `~/sandbox/simple-proxy` → 4.18.0 (`sync-adapters-script-v4180`). **v4.19.0 (MINOR):** **vendor-neutral ritual triggers** — the after-session ritual no longer depends on the agent self-triggering. Enable installs a committed `.githooks/post-commit` (auto-stubs a session log on a real-work commit; re-syncs adapters) **agent-activated** via `git config core.hooksPath .githooks` (zero manual step) + a **CI floor** (`.github/workflows/agent-memory.yml`: `memory-lint` + advisory session-log check on push/PR, zero per-user setup; opt-in `AGENT_MEMORY_STRICT` gate). Advisory, never blocks; `no-build-step-agent-run` holds (git/CI invoke them; the tool runs nothing). From client-team pain (ritual skipped even with Claude; a Copilot-only team had no triggers) + the zero-manual/untrained-user adoption constraint. Design `docs/DESIGN-ritual-triggers.md`; closes `bp-ritual-triggers`. **v4.20.0 (MINOR):** **first-run init** — closes the fresh-clone activation gap a Copilot fresh-clone dogfood exposed (the memory bootstrap self-initializes from `start`, but a clone has the gitignored adapters absent + the hook unactivated). Added `.githooks/init.sh` (one idempotent command: regenerate adapters + `git config core.hooksPath .githooks`) + an `AGENTS.md` self-init note (agent runs it on first session) — one agent step (or one human command) instead of two; CI stays the zero-config floor (`ritual-init-v4200`). **v4.20.1 (PATCH):** folded the first-run self-init into the **top of `copilot-instructions.md`** — a fresh-clone re-test showed Claude self-inits (acts on `AGENTS.md`) but **Copilot CLI did not** (it front-loads `copilot-instructions.md` + summarizes, skipping the AGENTS.md self-init → hook inactive + adapters absent); now Copilot runs `bash .githooks/init.sh` before summarizing. Still prompt-adherence (non-deterministic); `init.sh` fallback + CI floor unchanged.
0 commit comments