Write context notes and stated personal preferences #100
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.
Blocks
Depends on
#119 Link an external follow-up task or calendar item to a Person
dev/people-mind-mcp
#98 Accept or edit an enrichment suggestion from an MCP card
dev/people-mind-mcp
Reference
dev/people-mind-mcp#100
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?
Parent
#96
What to build
Add, correct and retract context, pronunciation and explicitly stated preferences from a Person Card or conversation.
Acceptance criteria
Blocked by
Filed under: operator word "ok" sha256:2689367b205c
⏸ SVD architect gate: dev/people-mind-mcp#100 write-context-notes-and-stated-personal-preferences
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
substrate· dispatch efforthighRun:
20261106T000655Z-0f3b9801Held because: CLEAN but 6 open risk(s) (1 verification · 5 decision) — HOLD-ALL parks everything. The risks, verbatim:
Open risks:
grep -c 'KEE-ra' pm.dbreturns 0. [verification]Change: Add a new
notestable at schema 13 through the additive TABLES/INDEXES upgrade block (store.py:189-217); set SCHEMA_VERSION=13 and update the 10 places that pin 12. The table has AUTOINCREMENT ids, a FK cascade to persons, kind note|preference, a nullable topic and a per-item revision. Register the five ADR 0005 kinds (note.add/correct/retract, preference.set/retract) in KIND_BUCKET (notes bucket) and UNDOABLE. In graph._apply_action, add a NOTE_KINDS branch before the undo fall-through at graph.py:765. It mirrors the review and person.create branches (:718-764). Additions follow redirects. Correct and retract check revision and answerredirectedfor a merged-away Person. Undo records hold ids, or the prior text and row. Add anelifto the undo dispatcher before the mergeelse(:840). MOVE_NOTES goes into _merge_ranked before DELETE_PERSON (:285), so sync merges do not cascade-delete notes. link_merge records the loser's note ids and unmerge moves them back, as Suggestions do at :550 and :609-613. person.create undo counts notes as contributions. forget also erases undo records filed under ids that redirect to the forgotten Person. Add server people_note and the app-only people_card_note, mirroring people_review/_review (server.py:426-476) with an explicit action→kind map, text validation and closed preference topics. people_card gains notes=true, and the card_suggestions JSON gains notes and preference_topics. card.html gains Add note / Add preference / Correct / Retract, using textContent only. default_row and RESTRICTED are unchanged.Files:
src/people_mind_mcp/store.py·src/people_mind_mcp/actions.py·src/people_mind_mcp/graph.py·src/people_mind_mcp/server.py·src/people_mind_mcp/views.py·src/people_mind_mcp/card.html·README.md·tests/test_notes.py·tests/test_actions.py·tests/test_card_app.py·tests/test_config_cli.py·tests/test_deploy.py·tests/test_identity.py·tests/test_mailpeer.pyDecision: accept the 6 open risk(s) above and dispatch this spec (
svd:go), or park (svd:skip) / re-spec (svd:respec)?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-06-write-context-notes-and-stated-personal-preferences.md— next:codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-06-write-context-notes-and-stated-personal-preferences.mdSVD gate record: #100, HOLD (architect gate 2026-11-06, 11:20 AEDT)
Measured facts
20261106T000655Z-0f3b9801: CLEAN, 0 blocking defects, 14 primary files, anchored atmain2ba707e.notestable and moves the store from schema 12 to schema 13 (store.py, Approach Lean step 1). The bump is forward-only: a revert needs a backup restore, because an older binary refuses a v13 store withstore-schema-ahead.Buckets
note.add,note.correct,note.retract,preference.setandpreference.retracton thenotesbucket, with undo (ADR 0005, line 36). D5: the unsaltedpayload_digestresidue routes to #114, as the #103 gate ruled (its D4).PRAGMA wal_checkpoint(TRUNCATE), a post-merge operator check on a test copy.notestable; a note of at most 2000 characters and a preference of at most 200;preference.setalways adds, so a change is retract plus set;note.correctmakes the corrector the Author; retract deletes the row and the undo record carries it.pronunciation,address_as,pronouns,language,contact,other. Whetherothershould exist, given "never invented from inferred traits".notesconfig gate (ADR 0003 decisions 3 and 9) also governs action notes on the Card and in the App view, or only the imported vCard NOTE.note.addundo after a merge. Whether to relax it as ADR 0005 Amendment 4 rule 7 did for review.Ruling
HOLD. Two auto-gate halt rules apply: a schema migration (12 to 13), and design forks (D1 to D4) that no ADR rules. #100 goes to the operator for a grill and an ADR 0005 amendment. After the rulings, re-run Half-A on the then-current
main, because later merges in this queue make this spec stale.Drafted line
None. No
svd:goadded. No Half-B fired.Delegation
"go 103 auto-gate" and the einfari queue (gate). The auto-gate halts on a migration or an unruled design fork; those return to the operator.
Spec:
2026-11-06-write-context-notes-and-stated-personal-preferences.md, Open Risks. Ledger:2026-W45-arch.⏸ SVD architect gate: dev/people-mind-mcp#100 write-context-notes-and-stated-personal-preferences
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
substrate· dispatch efforthighRun:
20261106T030551Z-8c50d10fHeld because: CLEAN but 1 open risk(s) (1 verification) — HOLD-ALL parks everything. The risks, verbatim:
Open risks:
e7d86dd. In-suite tests can prove only logical absence, because ADR 0003 Am.1 rule 1 forbids an application checkpoint. Post-merge check on a scratch store copy: add the note 'Pronounced KEE-ra', correct it to 'Pronounced KEE-rah', retract it, merge its Person into another, then graph.forget the survivor and run sqlite3 pm.db 'PRAGMA wal_checkpoint(TRUNCATE)'. Expectgrep -c 'KEE-ra' pm.dbto return 0, and no undo_records rows to remain for those Actions. [verification]Change: Implement ADR 0005 Amendment 5 rulings 1–8 and 15 exactly, re-derived on main
e7d86dd, after #136 moved the cited lines.Store:
notestable at schema 13, through the additive TABLES/INDEXES upgrade block (store.py:29-54,189-217).Actions:
Graph:
redirected;failed reason=invalid-topic.elifbefore person.create undo (:861) follows ruling 7. It looks the note up by id only and checks the body digest and Author, in the shape of review's value_digest (:785,821). A merge revision bump never blocks it. Retract undo reinserts under the same id on canonical_id.notesis added to the person.create contributions tuple (:872).$.note_idundo purge (mirroring :527-531) and a redirect-aware purge, both before DELETE_PERSON (:532).Server:
Views:
card.html:
Tool-count pin goes from 22 to 24.
Files:
src/people_mind_mcp/store.py·src/people_mind_mcp/actions.py·src/people_mind_mcp/graph.py·src/people_mind_mcp/server.py·src/people_mind_mcp/views.py·src/people_mind_mcp/card.html·README.md·tests/test_notes.py·tests/test_actions.py·tests/test_card_app.py·tests/test_config_cli.py·tests/test_deploy.py·tests/test_identity.py·tests/test_mailpeer.pyDecision: accept the 1 open risk(s) above and dispatch this spec (
svd:go), or park (svd:skip) / re-spec (svd:respec)?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-06-write-context-notes-and-stated-personal-preferences.md— next:codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-06-write-context-notes-and-stated-personal-preferences.mdspec-verify-dispatch Half B for dev/people-mind-mcp#100 write-context-notes-and-stated-personal-preferences completed integration verify.
357f8a69e0e7d86ddbase was not independently re-measured; the full non-integration suite passes on the PR head with no failures.codex-svd ship --run-id 20261106T031942Z-28623632 --confirm-merge)SVD gate and ship record: #100 (architect gate 2026-11-06 14:20 AEDT, merge 14:52 AEDT)
Measured facts
20261106T030551Z-8c50d10f: CLEAN, 0 blocking defects, classsubstrate, 14 primary files, anchored atmaine7d86dd.20261106T031942Z-28623632: PR #138 at357f8a6. IntegratereadyForMergetrue, head equal to the dispatch commit, no rework. The PR touches only Primary Files. All spec-named tests are present.SCHEMA_VERSION = 13; no literal schema pin is left in the tests.make checkin a detached worktree at357f8a6: 575 passed, 5 skipped, 0 failed (maine7d86dd: 547 passed, 0 failed).d9e4df2;svd:gostripped by ship.Buckets
pronunciation,address_as,language,contact; ruling 6 visibility; ruling 7 undo by text digest and Author; ruling 15 schema 13 andstore.SCHEMA_VERSIONpins.PRAGMA wal_checkpoint(TRUNCATE), expectgrep -c 'KEE-ra' pm.db= 0). Also owed:make test-integrationon a host with Docker.payload_digestresidue stays with #114 (#103 gate ruling D4).Ruling
GO, then merge. The schema 13 migration is the one Amendment 5 ruling 15 assigns to this slice (one additive table).
Drafted line
codex-svd ship --run-id 20261106T031942Z-28623632 --confirm-merge(run, exit 0).Delegation
"this session is an einfari. you merge through 19:00" (gate, merge and label).
Spec:
2026-11-06-write-context-notes-and-stated-personal-preferences.md, Agent Adjustments. Ledger:2026-W45-arch.