docs(prds): normalise statuses and remove writing dated to its own day
Three defects the first sweep left behind, each caught by a rule the guard did not yet have. Statuses. RULES.md gives three; the tree had 25 values, and the free-text ones were carrying progress. "Implemented (wiring landed)" and "Ratified (rev. 2e). Rev. 2e adds the OpenTaskByPR lookup. Rev. 2d revised section 10..." were both changelogs living in the one field the other rules exempt. Every PRD now declares Draft, Approved or Finalised and nothing else; five that declared nothing now declare one. A revision number moves to **Revision:**, a pointer to the authoritative document to **Authority:**, and what a past revision changed to git. CLAUDE.md's citation of state-store-contract rev. 2e still resolves. Stale cross-references. "Supersedes the 2026-09-03 open question", "this bullet previously said", "an earlier draft of this document claimed" all point at text the reader cannot see, because it was replaced. A supersede marker survives only when it names a file, a section or a symbol that can be found. Temporal hedges. 100 uses of today, currently and right now across 31 files. Each dates its sentence to the day it was written: "[notify] today is one webhook URL, read in one place" stops being true the moment this design lands, while still reading as the premise it rests on. The header-field exemption was also too wide. "**Date:** 2026-09-03, Channel resolved 2026-09-22" smuggled a dated status into the one line the rules did not read; the exemption is now a Date holding only a date and a Status holding only one of the three.
This commit is contained in:
1 parent
2eba3487a8
commit
fcde69c76c
48 files changed
+344
-258
No files matched your search
@@ -1,6 +1,6 @@
|
||||
# Memory engine unification: four scopes, CRUD, and one write path -- decision
|
||||
|
||||
**Status:** Approved for implementation
|
||||
**Status:** Approved
|
||||
**Date:** 2026-09-16
|
||||
**Findings:** `memory-4` and its dependants in the adversarial sweep
|
||||
(`.local/issue-tracker`); the real defect is the split described below, for
|
||||
@@ -120,7 +120,7 @@ gave it nothing better.
|
||||
`Record` carries what `agent-system.md` requires be retained: `Scope`,
|
||||
`Kind`, `Content`, `Revision`, `Author`, `OriginUser`, `Source`, `CreatedAt`,
|
||||
`UpdatedAt`. `Metadata` is dropped — nothing sets it and the parser never
|
||||
restores it, so it is currently a field that silently does not round-trip.
|
||||
restores it, so it is a field that silently does not round-trip.
|
||||
|
||||
`Update` supersedes rather than overwrites. The superseded state is appended to
|
||||
the scope's `HISTORY.md` **before** the live block is replaced, so a crash
|
||||
@@ -227,7 +227,7 @@ and would leak user A's extracted facts to user B through the same agent;
|
||||
user-wide would pool facts across agents; and a session id cannot survive the
|
||||
session ending, which is the whole requirement.
|
||||
|
||||
This needs data the tree does not persist today: the SQLite `messages` table
|
||||
This needs data the tree does not persist: the SQLite `messages` table
|
||||
gains `sender_id`, and `curator.SessionSummary` / `ConversationMessage` gain the
|
||||
agent and participant. The participant is derived from the session's own
|
||||
user-role messages: exactly one distinct non-empty sender writes; zero (a
|
||||
@@ -276,11 +276,11 @@ Existing data at `<workDir>/memory` is left on disk, unreferenced. No migration.
|
||||
- **No canonical user identity.** `SenderID` is channel-native, so one person on
|
||||
Telegram and email is two identities. Unifying needs an Identity aggregate that
|
||||
does not exist (`internal/domain` has no identity package and `IdentityID`
|
||||
appears nowhere in Go today). The contract does not change when it lands.
|
||||
appears nowhere in Go). The contract does not change when it lands.
|
||||
- **No ranked retrieval.** `Query.Text` stays, unused by the prompt path.
|
||||
- **No data migration**, per the decision above.
|
||||
- **No prompt-memory timeout mechanism.** The read is bounded by construction.
|
||||
- **No `Metadata` field.** It is write-only today; a caller needing it later
|
||||
- **No `Metadata` field.** It is write-only; a caller needing it later
|
||||
needs one field, not a speculative contract.
|
||||
|
||||
## Acceptance criteria
|
||||
|
||||
Reference in new issue
Block a user