Write context notes and stated personal preferences #100

Closed
opened 2026-11-05 07:52:40 +00:00 by svc-agent-writer · 5 comments

Parent

#96

What to build

Add, correct and retract context, pronunciation and explicitly stated preferences from a Person Card or conversation.

Acceptance criteria

  • Use people_note and attributed local records; distinguish free notes from structured facts and preserve Source claims.
  • Notes and preferences survive sync and are never invented from inferred traits or published automatically.
  • Editing and one-time note undo respect the decided action contract and concurrent changes.
  • Private notes remain outside default rows; exercise read/write auth, plain-text rendering and erasure.
  • Run the required repository checks and the focused public-MCP/worker tests for this behaviour; use the existing temporary-store and Source fixtures.
  • For every new mutation, enforce the approved write contract, expected revisions, attribution, idempotent retry and safe undo; extend applicable read projections/change feeds.
  • For every new person-associated value, extend the existing erasure path and tests; keep personal values out of logs/audit detail.

Blocked by

Filed under: operator word "ok" sha256:2689367b205c

## Parent https://git.groupthink.asia/dev/people-mind-mcp/issues/96 ## What to build Add, correct and retract context, pronunciation and explicitly stated preferences from a Person Card or conversation. ## Acceptance criteria - [ ] Use people_note and attributed local records; distinguish free notes from structured facts and preserve Source claims. - [ ] Notes and preferences survive sync and are never invented from inferred traits or published automatically. - [ ] Editing and one-time note undo respect the decided action contract and concurrent changes. - [ ] Private notes remain outside default rows; exercise read/write auth, plain-text rendering and erasure. - [ ] Run the required repository checks and the focused public-MCP/worker tests for this behaviour; use the existing temporary-store and Source fixtures. - [ ] For every new mutation, enforce the approved write contract, expected revisions, attribution, idempotent retry and safe undo; extend applicable read projections/change feeds. - [ ] For every new person-associated value, extend the existing erasure path and tests; keep personal values out of logs/audit detail. ## Blocked by - https://git.groupthink.asia/dev/people-mind-mcp/issues/98 Filed under: operator word "ok" sha256:2689367b205c
Collaborator

⏸ 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 effort high

Run: 20261106T000655Z-0f3b9801

Held because: CLEAN but 6 open risk(s) (1 verification · 5 decision) — HOLD-ALL parks everything. The risks, verbatim:

Open risks:

  1. D1: No grill has recorded rulings for #100 (#97, #98 and #78 each had an ADR 0005 amendment first). The spec's model is a set of leans: a separate notes table; note ≤2000 and preference ≤200 characters; preference.set always adds (several per topic; change = retract + set); note.correct makes the corrector the Author; retract deletes the row, with the undo record carrying it. Question: accept these leans at the gate, or hold #100 for a grill that records an ADR 0005 amendment and the glossary terms Note and Preference first? [decision]
  2. D2: Preference topic vocabulary. The lean is the closed set pronunciation, address_as, pronouns, language, contact, other. Question: is this the set, and should 'other' exist, given 'never invented from inferred traits'? [decision]
  3. D3: Card visibility. The lean shows action notes on people_card only with notes=true, and always in the App view JSON, whatever default_row.fields says. The 'notes' config keeps gating only the imported vCard NOTE (views.py:70,117-119,264). Question: should that config gate (ADR 0003 decisions 3 and 9) also govern action notes on the Card and in the App view? [decision]
  4. D4: Undo strictness across a merge. A merge move bumps a note's revision (ruling 8, as for Handles and Suggestions), so under strict ruling 14 a note.add undo after a merge answers conflict. Question: accept that, or relax it as ADR 0005 Amendment 4 rule 7 did for review (check a body digest and id instead of the revision)? [decision]
  5. D5 (pre-existing): actions.payload_digest keeps an unsalted SHA-256 of payloads that include note text, after apply and after Forget. The #103 gate (its D4) ruled this residue #114's. Question: confirm that note text joins that #114 note rather than being cleared in this slice. [decision]
  6. V1: Physical erasure relies on secure_delete=ON; in-suite tests assert logical absence only, because ADR 0003 Am. 1 forbids an application checkpoint. Post-merge check on a test copy: add the note 'Pronounced KEE-ra', correct it, retract it, run graph.forget, run PRAGMA wal_checkpoint(TRUNCATE), then grep -c 'KEE-ra' pm.db returns 0. [verification]

Change: Add a new notes table 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 answer redirected for a merged-away Person. Undo records hold ids, or the prior text and row. Add an elif to the undo dispatcher before the merge else (: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.py

Decision: 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):

  • add label svd:go — approve; Half-B dispatch accepts exactly this spec (open risks accepted)
  • add label svd:fire beside svd:go — approve AND authorise the Half-B fire from the phone; never on its own
  • add label svd:skip — park it; dispatch refuses it and the issue stays for a human
  • add label svd:respec — discard this spec; the next Half-A run re-produces it with this record as prior-attempt context

Spec: /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.md

### ⏸ 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 effort `high` **Run:** `20261106T000655Z-0f3b9801` **Held because:** CLEAN but 6 open risk(s) (1 verification · 5 decision) — HOLD-ALL parks everything. The risks, verbatim: **Open risks:** 1. D1: No grill has recorded rulings for #100 (#97, #98 and #78 each had an ADR 0005 amendment first). The spec's model is a set of leans: a separate notes table; note ≤2000 and preference ≤200 characters; preference.set always adds (several per topic; change = retract + set); note.correct makes the corrector the Author; retract deletes the row, with the undo record carrying it. Question: accept these leans at the gate, or hold #100 for a grill that records an ADR 0005 amendment and the glossary terms Note and Preference first? [decision] 2. D2: Preference topic vocabulary. The lean is the closed set pronunciation, address_as, pronouns, language, contact, other. Question: is this the set, and should 'other' exist, given 'never invented from inferred traits'? [decision] 3. D3: Card visibility. The lean shows action notes on people_card only with notes=true, and always in the App view JSON, whatever default_row.fields says. The 'notes' config keeps gating only the imported vCard NOTE (views.py:70,117-119,264). Question: should that config gate (ADR 0003 decisions 3 and 9) also govern action notes on the Card and in the App view? [decision] 4. D4: Undo strictness across a merge. A merge move bumps a note's revision (ruling 8, as for Handles and Suggestions), so under strict ruling 14 a note.add undo after a merge answers conflict. Question: accept that, or relax it as ADR 0005 Amendment 4 rule 7 did for review (check a body digest and id instead of the revision)? [decision] 5. D5 (pre-existing): actions.payload_digest keeps an unsalted SHA-256 of payloads that include note text, after apply and after Forget. The #103 gate (its D4) ruled this residue #114's. Question: confirm that note text joins that #114 note rather than being cleared in this slice. [decision] 6. V1: Physical erasure relies on secure_delete=ON; in-suite tests assert logical absence only, because ADR 0003 Am. 1 forbids an application checkpoint. Post-merge check on a test copy: add the note 'Pronounced KEE-ra', correct it, retract it, run graph.forget, run PRAGMA wal_checkpoint(TRUNCATE), then `grep -c 'KEE-ra' pm.db` returns 0. [verification] **Change:** Add a new `notes` table 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 answer `redirected` for a merged-away Person. Undo records hold ids, or the prior text and row. Add an `elif` to the undo dispatcher before the merge `else` (: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.py` **Decision:** 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`): - add label `svd:go` — approve; Half-B dispatch accepts exactly this spec (open risks accepted) - add label `svd:fire` **beside** `svd:go` — approve AND authorise the Half-B fire from the phone; never on its own - add label `svd:skip` — park it; dispatch refuses it and the issue stays for a human - add label `svd:respec` — discard this spec; the next Half-A run re-produces it with this record as prior-attempt context <sub>Spec: `/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.md`</sub>
Author
Member

This was generated by AI during triage.

SVD gate record: #100, HOLD (architect gate 2026-11-06, 11:20 AEDT)

Measured facts

  • Half-A run 20261106T000655Z-0f3b9801: CLEAN, 0 blocking defects, 14 primary files, anchored at main 2ba707e.
  • The spec adds a notes table 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 with store-schema-ahead.
  • The spec reports five open decisions (D1 to D5) and one verification (V1). No grill or ADR 0005 amendment records rulings for #100. #97, #98 and #78 each had an amendment first.

Buckets

  • Already decided: the five kinds note.add, note.correct, note.retract, preference.set and preference.retract on the notes bucket, with undo (ADR 0005, line 36). D5: the unsalted payload_digest residue routes to #114, as the #103 gate ruled (its D4).
  • Verification: V1, physical erasure of a retracted and forgotten note after PRAGMA wal_checkpoint(TRUNCATE), a post-merge operator check on a test copy.
  • Genuinely open:
    • D1: the note and preference model. The leans are a separate notes table; a note of at most 2000 characters and a preference of at most 200; preference.set always adds, so a change is retract plus set; note.correct makes the corrector the Author; retract deletes the row and the undo record carries it.
    • D2: the preference topic vocabulary. The lean is the closed set pronunciation, address_as, pronouns, language, contact, other. Whether other should exist, given "never invented from inferred traits".
    • D3: card visibility. Whether the notes config 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.
    • D4: undo across a merge. Strict ruling 14 answers conflict for a note.add undo 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:go added. 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.

> *This was generated by AI during triage.* **SVD gate record: #100, HOLD** (architect gate 2026-11-06, 11:20 AEDT) **Measured facts** - Half-A run `20261106T000655Z-0f3b9801`: CLEAN, 0 blocking defects, 14 primary files, anchored at `main` `2ba707e`. - The spec adds a `notes` table 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 with `store-schema-ahead`. - The spec reports five open decisions (D1 to D5) and one verification (V1). No grill or ADR 0005 amendment records rulings for #100. #97, #98 and #78 each had an amendment first. **Buckets** - Already decided: the five kinds `note.add`, `note.correct`, `note.retract`, `preference.set` and `preference.retract` on the `notes` bucket, with undo (ADR 0005, line 36). D5: the unsalted `payload_digest` residue routes to #114, as the #103 gate ruled (its D4). - Verification: V1, physical erasure of a retracted and forgotten note after `PRAGMA wal_checkpoint(TRUNCATE)`, a post-merge operator check on a test copy. - Genuinely open: - D1: the note and preference model. The leans are a separate `notes` table; a note of at most 2000 characters and a preference of at most 200; `preference.set` always adds, so a change is retract plus set; `note.correct` makes the corrector the Author; retract deletes the row and the undo record carries it. - D2: the preference topic vocabulary. The lean is the closed set `pronunciation`, `address_as`, `pronouns`, `language`, `contact`, `other`. Whether `other` should exist, given "never invented from inferred traits". - D3: card visibility. Whether the `notes` config 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. - D4: undo across a merge. Strict ruling 14 answers conflict for a `note.add` undo 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:go` added. 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`.
Collaborator

⏸ 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 effort high

Run: 20261106T030551Z-8c50d10f

Held because: CLEAN but 1 open risk(s) (1 verification) — HOLD-ALL parks everything. The risks, verbatim:

Open risks:

  1. V1, physical erasure of Note text, re-scoped to the ruled undo model. Changed since the last attempt: the note.add undo record now holds a text digest and the Author (ruling 7); the correct record holds the prior body and Author; Forget gains a $.note_id purge beside the redirect purge; the base is now 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)'. Expect grep -c 'KEE-ra' pm.db to 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:

  • New AUTOINCREMENT notes table at schema 13, through the additive TABLES/INDEXES upgrade block (store.py:29-54,189-217).
  • SCHEMA_12 becomes SCHEMA_13; SCHEMA_VERSION=13.
  • The 9 literal current-version pins in the tests become store.SCHEMA_VERSION (ruling 15). README goes to schema=13.

Actions:

  • Five kinds in KIND_BUCKET/UNDOABLE (actions.py:23-41), on the notes bucket.
  • PREFERENCE_TOPICS=(pronunciation, address_as, language, contact) and NOTE_LIMITS {note: 2000, preference: 200}.

Graph:

  • NOTE_KINDS apply branch after person.create (graph.py:788-792) and before the undo fall-through (:793). It mirrors the review branch (:724-787):
    • additions follow the redirect;
    • correct and retract check the revision and answer redirected;
    • an unknown topic gives failed reason=invalid-topic.
  • Undo elif before 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.
  • MOVE_NOTES goes after MOVE_SUGGESTIONS (:277), before DELETE_PERSON (:286).
  • link_merge records note ids (:556); unmerge moves them back (after :615-619).
  • notes is added to the person.create contributions tuple (:872).
  • forget gains a $.note_id undo purge (mirroring :527-531) and a redirect-aware purge, both before DELETE_PERSON (:532).

Server:

  • people_note and the app-only people_card_note mirror people_review/_review (server.py:462-512). The action→kind map is explicit; text is validated; topics are closed.
  • people_card gains notes=false. people_card_suggestions adds preference_topics.
  • build_app registration and app visibility (:597-623).

Views:

  • card(notes=) rows and card_suggestions.notes.
  • default_row, RESTRICTED and _card_fields are unchanged.

card.html:

  • Add note, Add preference, Correct and Retract controls, using textContent only, through submitNote, which mirrors submit() (:227-257).

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.py

Decision: 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):

  • add label svd:go — approve; Half-B dispatch accepts exactly this spec (open risks accepted)
  • add label svd:fire beside svd:go — approve AND authorise the Half-B fire from the phone; never on its own
  • add label svd:skip — park it; dispatch refuses it and the issue stays for a human
  • add label svd:respec — discard this spec; the next Half-A run re-produces it with this record as prior-attempt context

Spec: /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.md

### ⏸ 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 effort `high` **Run:** `20261106T030551Z-8c50d10f` **Held because:** CLEAN but 1 open risk(s) (1 verification) — HOLD-ALL parks everything. The risks, verbatim: **Open risks:** 1. V1, physical erasure of Note text, re-scoped to the ruled undo model. Changed since the last attempt: the note.add undo record now holds a text digest and the Author (ruling 7); the correct record holds the prior body and Author; Forget gains a $.note_id purge beside the redirect purge; the base is now 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)'. Expect `grep -c 'KEE-ra' pm.db` to 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: - New AUTOINCREMENT `notes` table at schema 13, through the additive TABLES/INDEXES upgrade block (store.py:29-54,189-217). - SCHEMA_12 becomes SCHEMA_13; SCHEMA_VERSION=13. - The 9 literal current-version pins in the tests become store.SCHEMA_VERSION (ruling 15). README goes to schema=13. Actions: - Five kinds in KIND_BUCKET/UNDOABLE (actions.py:23-41), on the notes bucket. - PREFERENCE_TOPICS=(pronunciation, address_as, language, contact) and NOTE_LIMITS {note: 2000, preference: 200}. Graph: - NOTE_KINDS apply branch after person.create (graph.py:788-792) and before the undo fall-through (:793). It mirrors the review branch (:724-787): - additions follow the redirect; - correct and retract check the revision and answer `redirected`; - an unknown topic gives `failed reason=invalid-topic`. - Undo `elif` before 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. - MOVE_NOTES goes after MOVE_SUGGESTIONS (:277), before DELETE_PERSON (:286). - link_merge records note ids (:556); unmerge moves them back (after :615-619). - `notes` is added to the person.create contributions tuple (:872). - forget gains a `$.note_id` undo purge (mirroring :527-531) and a redirect-aware purge, both before DELETE_PERSON (:532). Server: - people_note and the app-only people_card_note mirror people_review/_review (server.py:462-512). The action→kind map is explicit; text is validated; topics are closed. - people_card gains notes=false. people_card_suggestions adds preference_topics. - build_app registration and app visibility (:597-623). Views: - card(notes=) rows and card_suggestions.notes. - default_row, RESTRICTED and _card_fields are unchanged. card.html: - Add note, Add preference, Correct and Retract controls, using textContent only, through submitNote, which mirrors submit() (:227-257). 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.py` **Decision:** 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`): - add label `svd:go` — approve; Half-B dispatch accepts exactly this spec (open risks accepted) - add label `svd:fire` **beside** `svd:go` — approve AND authorise the Half-B fire from the phone; never on its own - add label `svd:skip` — park it; dispatch refuses it and the issue stays for a human - add label `svd:respec` — discard this spec; the next Half-A run re-produces it with this record as prior-attempt context <sub>Spec: `/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.md`</sub>
Collaborator

spec-verify-dispatch Half B for dev/people-mind-mcp#100 write-context-notes-and-stated-personal-preferences completed integration verify.

  • PR: #138
  • Branch: feat/svd-dev-people-mind-mcp-100-write-context-notes-and-stat-28623632
  • Commit: 357f8a69e0
  • Build: none
  • Test: green
  • Reader audit clean: True
  • Spec fidelity: True
  • Ready for merge: True
  • Check ci/woodpecker/pr/validation: green https://ci.groupthink.asia/repos/73/pipeline/96/1
  • Checks: required ci/woodpecker/pr/validation resolved pass by CI-wait poll
  • Warning: Integration tests (tests/test_deploy.py pin edits) were not run: Docker daemon unavailable per the coding subagent; covered by review only.
  • Warning: Remote Woodpecker check ci/woodpecker/pr/validation is still pending; the runner must re-poll before merge.
  • Warning: Spec #100 baseline on pristine e7d86dd base was not independently re-measured; the full non-integration suite passes on the PR head with no failures.
  • CI wait: ci/woodpecker/pr/validation -> pass
  • Decision: review the PR and merge? (codex-svd ship --run-id 20261106T031942Z-28623632 --confirm-merge)
spec-verify-dispatch Half B for dev/people-mind-mcp#100 write-context-notes-and-stated-personal-preferences completed integration verify. - PR: https://git.groupthink.asia/dev/people-mind-mcp/pulls/138 - Branch: feat/svd-dev-people-mind-mcp-100-write-context-notes-and-stat-28623632 - Commit: 357f8a69e02ac8bf44da426b2c256c5787f6cc2f - Build: none - Test: green - Reader audit clean: True - Spec fidelity: True - Ready for merge: True - Check ci/woodpecker/pr/validation: green https://ci.groupthink.asia/repos/73/pipeline/96/1 - Checks: required ci/woodpecker/pr/validation resolved pass by CI-wait poll - Warning: Integration tests (tests/test_deploy.py pin edits) were not run: Docker daemon unavailable per the coding subagent; covered by review only. - Warning: Remote Woodpecker check ci/woodpecker/pr/validation is still pending; the runner must re-poll before merge. - Warning: Spec #100 baseline on pristine e7d86dd base was not independently re-measured; the full non-integration suite passes on the PR head with no failures. - CI wait: ci/woodpecker/pr/validation -> pass - Decision: review the PR and merge? (`codex-svd ship --run-id 20261106T031942Z-28623632 --confirm-merge`)
svc-svd-writer 2026-11-06 03:50:10 +00:00
  • closed this issue
  • removed the
    svd:go
    label
Author
Member

This was generated by AI during triage.

SVD gate and ship record: #100 (architect gate 2026-11-06 14:20 AEDT, merge 14:52 AEDT)

Measured facts

  • Half-A run 20261106T030551Z-8c50d10f: CLEAN, 0 blocking defects, class substrate, 14 primary files, anchored at main e7d86dd.
  • Half-B run 20261106T031942Z-28623632: PR #138 at 357f8a6. Integrate readyForMerge true, 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.
  • Own execution: make check in a detached worktree at 357f8a6: 575 passed, 5 skipped, 0 failed (main e7d86dd: 547 passed, 0 failed).
  • Dispatch could not run the integration lane, because the Docker daemon was unavailable to it.
  • Merged as d9e4df2; svd:go stripped by ship.

Buckets

  • Already decided: ADR 0005 Amendment 5 (PR #137): ruling 2 topics pronunciation, address_as, language, contact; ruling 6 visibility; ruling 7 undo by text digest and Author; ruling 15 schema 13 and store.SCHEMA_VERSION pins.
  • Verification: V1, physical erasure of Note text on a scratch store copy (add "Pronounced KEE-ra", correct, retract, merge, Forget, PRAGMA wal_checkpoint(TRUNCATE), expect grep -c 'KEE-ra' pm.db = 0). Also owed: make test-integration on a host with Docker.
  • Genuinely open: none. The unsalted payload_digest residue 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.

> *This was generated by AI during triage.* **SVD gate and ship record: #100** (architect gate 2026-11-06 14:20 AEDT, merge 14:52 AEDT) **Measured facts** - Half-A run `20261106T030551Z-8c50d10f`: CLEAN, 0 blocking defects, class `substrate`, 14 primary files, anchored at `main` `e7d86dd`. - Half-B run `20261106T031942Z-28623632`: PR #138 at `357f8a6`. Integrate `readyForMerge` true, 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. - Own execution: `make check` in a detached worktree at `357f8a6`: 575 passed, 5 skipped, 0 failed (main `e7d86dd`: 547 passed, 0 failed). - Dispatch could not run the integration lane, because the Docker daemon was unavailable to it. - Merged as `d9e4df2`; `svd:go` stripped by ship. **Buckets** - Already decided: ADR 0005 Amendment 5 (PR #137): ruling 2 topics `pronunciation`, `address_as`, `language`, `contact`; ruling 6 visibility; ruling 7 undo by text digest and Author; ruling 15 schema 13 and `store.SCHEMA_VERSION` pins. - Verification: V1, physical erasure of Note text on a scratch store copy (add "Pronounced KEE-ra", correct, retract, merge, Forget, `PRAGMA wal_checkpoint(TRUNCATE)`, expect `grep -c 'KEE-ra' pm.db` = 0). Also owed: `make test-integration` on a host with Docker. - Genuinely open: none. The unsalted `payload_digest` residue 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`.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
dev/people-mind-mcp#100
No description provided.