Forget: stop a failed legacy-text pass restoring a forgotten address to the checkpoint #59
Labels
No labels
bug
enhancement
epic
needs-info
needs-triage
ready-for-agent
ready-for-human
svd:fire
svd:go
svd:hold
svd:respec
svd:skip
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/people-mind-mcp#59
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Outcome
After Forget, a failed
legacy-textpass cannot write a forgotten address back into the legacy pending checkpoint.Context
The #54 architect gate (2026-11-04) deferred this race out of #54 (Open Risk 2 of its spec). #54 makes Forget purge forgotten addresses from the legacy checkpoint in
source_state(ADR 0003 Amendment 1, rule 4). The race can still reintroduce one:legacy-textpass starts its fetch.source_state.run_passwrites the in-memorysource.stateback, and itspendingstill holds the forgotten address (sync.py:114-121at511e7ce).{"cursor": ...}(sources/mailmind.py:264).Ingest still skips the address as tombstoned, so this is a physical-erasure gap, not a logical-absence gap. No production code calls Forget until the
people_forgetmount (Phase B, gated by #55).Scope
Make the fetch-failure checkpoint write in
run_passdrop anypendingaddress that matches a Tombstone before it writessource_state. Add a test that runs a Forget between fetch start and fetch failure and asserts the address is absent from the decoded checkpoint.Decision
Fix it before the
people_forgetmount (operator, triage 2026-11-04). Forget's stated guarantee is physical erasure, and this is a known gap in it. Atb698c2ethe fetch-failure write issync.py:111-121; #54 left it unchanged by design.Blocked by
Filed under: operator word "ruling leans accepted" sha256:74398dc59a44 (#52 #53 #54 gate)
Agent brief
Category: bug. State: ready-for-agent (CONV-40 rule 2: one source file plus one test).
Verified at
b698c2e: on a fetch failure,run_passwrites the in-memorysource.stateback tosource_state(sync.py:111-121). #54 (PR #63) added the Forget-side purge and left this path unchanged by design, so the race in the body still holds.Decision (operator): fix it before the
people_forgetmount. The body's## Scopeis the contract. Its blocker #54 is closed.Out of scope: restore-safe Tombstones (#55); any change to Forget itself.
✅ SVD architect gate: dev/people-mind-mcp#59 forget-stop-a-failed-legacy-text-pass-restoring-a-forgotten
Status: CLEAN after 0 rework round(s) · 0 blocking defect(s) · 0 lens(es) INCONCLUSIVE (could not run) · 0 lens(es) DEGRADED (deterministic denial) · complexity
standard· dispatch effortmediumRun:
20261104T035302Z-8077356fChange: In run_pass's fetch-failure branch (sync.py:110-121), keep the existing five-clause guard unchanged, including source.state != loaded_state on the unfiltered state. Inside the existing BEGIN IMMEDIATE
with transaction(conn):block (sync.py:112), write encode_state(_drop_forgotten_pending(conn, source.state, salt)) instead of encode_state(source.state). The new helper sits beside encode_state/decode_state (sync.py:57-65). It returns a new dict whosependingdrops every address with a Tombstone, using the _mail_allowed idiom (sync.py:152-158: graph.FIND_TOMBSTONE + tombstone_hash(salt, normalise_email(address))) and the _purge_legacy_pending comprehension shape (graph.py:394-405). It keeps cursor/full, and an emptied pending stays {}. Leave source.state in memory, the success write (:99), graph.py, mailmind.py and the Mail peer v1 path untouched. Add one test in tests/test_mailmind.py after :226. It runs Forget on a separate open_writer(cfg.store.path) connection from FakeMail.on_request on the first mail_evidence request, then sets fake.refusal='tool' to fail the fetch. It asserts the decoded checkpoint and the raw zlib bytes lack the forgotten address, while a second address (zoe@gmail.com) is kept. An optional resume proof shows the forgotten address is never queried.Files:
src/people_mind_mcp/sync.py·tests/test_mailmind.pyDecision: dispatch this spec (
svd:go)?Your call (when this issue is held at the gate via
svd:hold):svd:go— approve; Half-B dispatch accepts exactly this spec (open risks accepted)svd:firebesidesvd:go— approve AND authorise the Half-B fire from the phone; never on its ownsvd:skip— park it; dispatch refuses it and the issue stays for a humansvd:respec— discard this spec; the next Half-A run re-produces it with this record as prior-attempt contextSpec:
/Users/piers/.local/state/exhaust/groupthink/specs/2026-11-04-forget-stop-a-failed-legacy-text-pass-restoring-a-forgotten.md— next:codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-04-forget-stop-a-failed-legacy-text-pass-restoring-a-forgotten.mdspec-verify-dispatch Half B for dev/people-mind-mcp#59 forget-stop-a-failed-legacy-text-pass-restoring-a-forgotten completed integration verify.
503ecd1532codex-svd ship --run-id 20261104T041019Z-d489b029 --confirm-merge)