Skip to content

Commit 52abe17

Browse files
authored
Merge pull request #40 from Accenture/agent-memory-v4.42.2
chore(agent-memory): upgrade 4.42.1 → 4.42.2 — the step-6 subject read starts with the window's commits
2 parents 9f03efc + a305319 commit 52abe17

4 files changed

Lines changed: 50 additions & 18 deletions

File tree

‎.agent/version.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
> Mode B can detect drift and upgrade in place (see the tool's `UPGRADE.md`).
55
> `version` gates the upgrade ladder — don't hand-edit it unless you mean to.
66
7-
- **version:** 4.42.1
7+
- **version:** 4.42.2
88
- **enabled_with:** 4.38.0
99
- **last_upgraded:** 2026-10-04
1010
- **mode:** A

‎DECAY.md‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,11 @@ Every session log carries a `## Memory References` section:
9393
The pre-commit `memory-lint` advisory `[undeclared-reference]` (v4.41.0) warns when a change
9494
edits a fact's body without declaring the id in a session log staged with it — the diff is the
9595
only place that omission is visible, because the footers and this log then agree with each other
96-
while both are wrong. A *consultation* leaves no diff at all, so no check can see an undeclared one
97-
(v4.42.1): the agent declares it when it writes the log, and the review's subject read before
98-
archiving a fact as faded (`REVIEW.md` step 6, *declaration gaps*) is the backstop.
96+
while both are wrong. A *consultation* leaves no edit to the fact, so this check cannot see an
97+
undeclared one (v4.42.1): the agent declares it when it writes the log, and the review's subject read
98+
before archiving a fact as faded is the backstop — the window's commits to the paths the fact names
99+
first, then its logs, every hit held to the decision test (`REVIEW.md` step 6, *declaration gaps*;
100+
commit check v4.42.2).
99101

100102
So, for any id:
101103
- `uses` = number of session logs whose `## Memory References` name it.

‎REVIEW.md‎

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -137,21 +137,35 @@ stalled thread as `[thread-stale]`, so the condition cannot hide.
137137
exactly one place). Record the result in the summary. (Superseded facts are exempt — they archive
138138
on truth-state, not recency.)
139139

140-
**Declaration gaps (facts, v4.42.1)** — the fact-level twin of step 5's thread rule. Both checks
141-
above count only *declared* uses, and a fact consulted to make a decision leaves no diff, so for
142-
**each** fact archived as *faded*, read for its **subject** — the code, rule or contract it
143-
records, not its id. Search the `archive_window` session logs for the subject's distinctive terms
144-
(backticked identifiers, words from its bold title), skipping `## Memory Review` and
145-
`## Memory References` blocks, and read the sessions that hit. If one **exercised** the subject —
146-
changed, tested, applied or decided by it — without declaring the id, the fade is a declaration
140+
**Declaration gaps (facts, v4.42.1; commit check v4.42.2)** — the fact-level twin of step 5's
141+
thread rule. Both checks above count only *declared* uses, and a fact consulted to make a decision
142+
leaves no edit to the fact, so for **each** fact archived as *faded*, look for undeclared use of
143+
its **subject** — the code, rule or contract it records, not its id — in two places:
144+
- **The window's commits — start here.** List the commits since the oldest `archive_window` log
145+
that touch a path the fact names: `git log --since=<that log's date> --format='%h %s' -- <paths>`
146+
(its backticked paths; a `<placeholder>` becomes `*`). Leave out a path that most commits touch
147+
— a hub such as `AGENTS.md`, `UPGRADE.md` or `memory/continuity.md` flags every fact; the measured
148+
cut keeps a path touched by at most 5% of all commits (`git rev-list --count HEAD -- <path>`
149+
against `git rev-list --count HEAD`). Each commit maps to the session log it carries, else the
150+
next one.
151+
- **The window's logs.** Search them for the subject's distinctive terms (backticked identifiers,
152+
words from its bold title), skipping `## Memory Review` and `## Memory References` blocks.
153+
154+
Sessions describe their work in prose, not by the paths a fact names, so the commits are the
155+
reliable signal: on this repo's own history they found both sessions behind the wrongful
156+
`git-hook-fragment-dispatch` archival, the log search neither (RFC-0006). Then apply the
157+
**decision test** to every hit — did the session rely on what the fact states; would it have
158+
decided differently without it? If one did without declaring the id, the fade is a declaration
147159
gap, not disuse: move the fact back as above, name it under *this* review's `## Memory
148-
References` (re-affirmed, citing the session that relied on it) so its count resets, and note
149-
the reversal in the `## Memory Review` block. A mention is not an exercise: prose that names the
150-
subject or the id — a prior review summary, a decay note, a plan never acted on — is not evidence
151-
of use (the `ot-review-step6-prose` livelock). The read is judgment and never counts on its own;
152-
only the declaration it prompts does. (Field report: mercury-composable and mercury, 2026-10-04
153-
— three in-use facts archived in five weeks; this repo's `git-hook-fragment-dispatch` was a
154-
fourth.)
160+
References` (re-affirmed, citing the session that relied on it) so its count resets, and note the
161+
reversal in the `## Memory Review` block. Two things are not use. A mention is not an exercise:
162+
prose that names the subject or the id — a prior review summary, a decay note, a plan never acted
163+
on — is not evidence (the `ot-review-step6-prose` livelock). And a fact that records an **event**
164+
— a release shipped, work completed — is not kept alive by later work on the same code: its
165+
substance lives in the changelog, and only a fact stating a live rule, decision or contract can
166+
be relied on this way. The read is judgment and never counts on its own; only the declaration it
167+
prompts does. (Field report: mercury-composable and mercury, 2026-10-04 — three in-use facts
168+
archived in five weeks; this repo's `git-hook-fragment-dispatch` was a fourth.)
155169
7. **Verify invariants (cadence).** If `sessions_since_last_invariant_check ≥
156170
verify_invariants_every` (or `last_invariant_check` is unset and that many session
157171
files exist), raise **one** Open Thread listing every never-decay fact —
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Session (2026-10-04T17:09:36.391Z)
2+
3+
**Agent:** Claude Code
4+
5+
Lightweight: Mode B upgrade 4.42.1 → 4.42.2 (PATCH — the step-6 subject read starts with the window's commits:
6+
before archiving a fact as faded, `REVIEW.md` step 6 now lists the window's commits that touch a path the fact
7+
names (hub paths left out), then searches the logs, and holds every hit to the decision test — a fact recording an
8+
event is not kept alive by later work on the same code; from RFC-0006's measurement on the tool repo's history).
9+
Reconcile re-copied DECAY.md and REVIEW.md (each stock 4.42.1 before — staleness only). Protocol — unchanged (no
10+
semantic step). Adapters re-synced; stamped 4.42.2; both re-copied files byte-identical to their MANIFEST sources.
11+
Ran in a throwaway worktree of origin/main (`--forge github`). memory-lint: 0 errors, 2 warning(s). Upstream
12+
release: https://github.com/Accenture/mercury-go/releases/tag/v4.42.2 .
13+
14+
## Memory References
15+
16+
(none)

0 commit comments

Comments
 (0)