Split mistaken identities and move Handles durably #109

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

Parent

#96

What to build

Repair an incorrect merge by selecting Handles and records to move, and remember explicit separation decisions.

Acceptance criteria

  • Allocate named Handles, Source links, Interactions, assertions and review decisions deliberately; ambiguous allocations require review.
  • The split and “different people” decisions survive unchanged input, Source re-sync, restart and Mail peer rebuild.
  • Refuse a split that would immediately re-merge until its source assignment is resolved; make no partial mutation.
  • Preserve stable ids/redirect behaviour and test revision conflicts, caps and safe undo through MCP and comparison UI.
  • Implement the exclusive-endpoint repair path under the decided model; shared endpoints are handled by #110.
  • 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 Repair an incorrect merge by selecting Handles and records to move, and remember explicit separation decisions. ## Acceptance criteria - [ ] Allocate named Handles, Source links, Interactions, assertions and review decisions deliberately; ambiguous allocations require review. - [ ] The split and “different people” decisions survive unchanged input, Source re-sync, restart and Mail peer rebuild. - [ ] Refuse a split that would immediately re-merge until its source assignment is resolved; make no partial mutation. - [ ] Preserve stable ids/redirect behaviour and test revision conflicts, caps and safe undo through MCP and comparison UI. - [ ] Implement the exclusive-endpoint repair path under the decided model; shared endpoints are handled by #110. - [ ] 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/107 - https://git.groupthink.asia/dev/people-mind-mcp/issues/108 Filed under: operator word "ok" sha256:2689367b205c
Collaborator

⏸ SVD architect gate: dev/people-mind-mcp#109 split-mistaken-identities-and-move-handles-durably

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: 20261106T004823Z-bbe33bf0

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

Open risks:

  1. D1: How should a split be undone? The lean folds C back into P with a forced-survivor _merge_ranked. That moves later arrivals on C too, inserts a C→P redirect and emits merge(P,C). ADR 0005 Am.3 ruling 4 says only 'moves them back by source link', and no ruling names the feed kind. Accept merge(P,C) plus the redirect, or require del C plus update P with no redirect, refusing with reason=contributions when C gained later rows? [decision]
  2. D2: Separation semantics have no ruling yet. Confirm or rule otherwise on each: (a) identity.separate carries no revision, like alias; (b) an explicit link.merge of two separated Persons applies, and the separation goes inert while merged and re-arms on merge undo, instead of refusing with reason=separated; (c) re-sending separate answers failed reason=already-separated. [decision]
  3. D3: What counts as 'ambiguous allocation requires review'? The lean refuses with conflict reason=ambiguous only for (i) a decided Suggestion whose support moves while it is unnamed, and (ii) a review-decision field named without its Suggestion. Unnamed local rows stay with the remainder. R6 would-remerge is read as criterion 3's 'until its source assignment is resolved'. Are these the intended review triggers, or should unnamed local rows also count as ambiguous? [decision]
  4. D4: Should handle.move ship in #109 or get its own issue? The issue title ('move Handles durably') and the ADR 0005 inventory row include it, but the acceptance criteria name only split and 'different people'. The lean ships it as a split into an existing target, which adds tests but no Primary Files. [decision]
  5. D5: Does #110 own both of these? (1) The ADR 0002 Am.2 ruling 10 migration review flag, which needs shared-Endpoint and role-local-part configuration. (2) Resolving a held Handle: no resolve kind or review-queue entry is added here; a held Handle stays visible on the Card until endpoint.share (#110), handle.move or a source edit clears it. Or should #109 add a review-queue entry or a resolve kind now? [decision]
  6. V1: The open/closed state of blockers #107 and #108 cannot be read in this sandbox (gh denied). Their deliverables are on main: 96f0dd8 (#134) and 64df4fe (#126, ADR 0002 Am.2). Check at the gate: both issues are closed on git.groupthink.asia, or #108's remaining scope is ADR-only. [verification]
  7. V2: Mail peer rebuild durability is proven only against FakePeer. Post-merge check on the deployed store: split one test Person by its mail link and address, then force a rebuild (change [owner] emails once). Confirm people_find returns the carved id and that pass's sync line reports merged=0. [verification]

Change: Add three links-bucket kinds: link.split (carve into a new Person), handle.move (carve into an existing Person) and identity.separate (record that two Persons are different). Both the preview and the worker use one read-only graph.split_plan.

Allocation rules: links are named by hashed refs, never raw source_record. Handles are named, or follow their origin link. Rows keyed to a link move with it, using the per-link UPDATE loop of graph.unmerge:588-602. Unnamed local rows stay with the remainder. A decided Suggestion must be named, or the split is refused as ambiguous.

Refusals mirror merge undo's would-remerge check at graph.py:905-913: a split is refused when a live link's claim on a Handle would cross sides. Guard order mirrors link.merge at graph.py:705-723 (redirected, owner, revision).

carve() creates C (feed add) or uses target T, moves rows, refreshes Suggestions, repairs display names, writes a separations row and emits update. It never touches person_redirects.

Undo of a split uses _merge_ranked(P, C) with P forced as survivor, giving a C→P redirect and a merge feed row. Undo of a move uses unmerge-style move-back with the alias evidence-joined check. Undo of a separate deletes the separation row.

Ingest (graph.py:359-398) gets a SEPARATED query that resolves redirects. A linked record's Handle that collides with a separated holder is held in handle_holds (FK cascade to the holder's Handle). An unlinked bridging record returns the new Outcome.held_separated and writes nothing.

Schema 13 is additive through store.TABLES/INDEXES and the open_writer upgrade block (store.py:189-217). forget gains a separations delete. people_link and people_card_link widen their action Literal and add handles/links/items lists. Two new read tools: people_split_preview and the app-only people_card_split. The card.html compare view gets a Split… flow; the Card gets held and separated rows; compare gets a separated cell.

Files: src/people_mind_mcp/store.py · src/people_mind_mcp/graph.py · src/people_mind_mcp/actions.py · src/people_mind_mcp/server.py · src/people_mind_mcp/views.py · src/people_mind_mcp/card.html · README.md · tests/test_split.py · tests/test_actions.py · tests/test_server.py · tests/test_card_app.py · tests/test_mailpeer.py · tests/test_identity.py

Decision: accept the 7 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-split-mistaken-identities-and-move-handles-durably.md — next: codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-06-split-mistaken-identities-and-move-handles-durably.md

### ⏸ SVD architect gate: dev/people-mind-mcp#109 split-mistaken-identities-and-move-handles-durably **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:** `20261106T004823Z-bbe33bf0` **Held because:** CLEAN but 7 open risk(s) (2 verification · 5 decision) — HOLD-ALL parks everything. The risks, verbatim: **Open risks:** 1. D1: How should a split be undone? The lean folds C back into P with a forced-survivor _merge_ranked. That moves later arrivals on C too, inserts a C→P redirect and emits merge(P,C). ADR 0005 Am.3 ruling 4 says only 'moves them back by source link', and no ruling names the feed kind. Accept merge(P,C) plus the redirect, or require del C plus update P with no redirect, refusing with reason=contributions when C gained later rows? [decision] 2. D2: Separation semantics have no ruling yet. Confirm or rule otherwise on each: (a) identity.separate carries no revision, like alias; (b) an explicit link.merge of two separated Persons applies, and the separation goes inert while merged and re-arms on merge undo, instead of refusing with reason=separated; (c) re-sending separate answers failed reason=already-separated. [decision] 3. D3: What counts as 'ambiguous allocation requires review'? The lean refuses with conflict reason=ambiguous only for (i) a decided Suggestion whose support moves while it is unnamed, and (ii) a review-decision field named without its Suggestion. Unnamed local rows stay with the remainder. R6 would-remerge is read as criterion 3's 'until its source assignment is resolved'. Are these the intended review triggers, or should unnamed local rows also count as ambiguous? [decision] 4. D4: Should handle.move ship in #109 or get its own issue? The issue title ('move Handles durably') and the ADR 0005 inventory row include it, but the acceptance criteria name only split and 'different people'. The lean ships it as a split into an existing target, which adds tests but no Primary Files. [decision] 5. D5: Does #110 own both of these? (1) The ADR 0002 Am.2 ruling 10 migration review flag, which needs shared-Endpoint and role-local-part configuration. (2) Resolving a held Handle: no resolve kind or review-queue entry is added here; a held Handle stays visible on the Card until endpoint.share (#110), handle.move or a source edit clears it. Or should #109 add a review-queue entry or a resolve kind now? [decision] 6. V1: The open/closed state of blockers #107 and #108 cannot be read in this sandbox (gh denied). Their deliverables are on main: 96f0dd8 (#134) and 64df4fe (#126, ADR 0002 Am.2). Check at the gate: both issues are closed on git.groupthink.asia, or #108's remaining scope is ADR-only. [verification] 7. V2: Mail peer rebuild durability is proven only against FakePeer. Post-merge check on the deployed store: split one test Person by its mail link and address, then force a rebuild (change [owner] emails once). Confirm people_find <address> returns the carved id and that pass's sync line reports merged=0. [verification] **Change:** Add three links-bucket kinds: link.split (carve into a new Person), handle.move (carve into an existing Person) and identity.separate (record that two Persons are different). Both the preview and the worker use one read-only graph.split_plan. Allocation rules: links are named by hashed refs, never raw source_record. Handles are named, or follow their origin link. Rows keyed to a link move with it, using the per-link UPDATE loop of graph.unmerge:588-602. Unnamed local rows stay with the remainder. A decided Suggestion must be named, or the split is refused as ambiguous. Refusals mirror merge undo's would-remerge check at graph.py:905-913: a split is refused when a live link's claim on a Handle would cross sides. Guard order mirrors link.merge at graph.py:705-723 (redirected, owner, revision). carve() creates C (feed add) or uses target T, moves rows, refreshes Suggestions, repairs display names, writes a separations row and emits update. It never touches person_redirects. Undo of a split uses _merge_ranked(P, C) with P forced as survivor, giving a C→P redirect and a merge feed row. Undo of a move uses unmerge-style move-back with the alias evidence-joined check. Undo of a separate deletes the separation row. Ingest (graph.py:359-398) gets a SEPARATED query that resolves redirects. A linked record's Handle that collides with a separated holder is held in handle_holds (FK cascade to the holder's Handle). An unlinked bridging record returns the new Outcome.held_separated and writes nothing. Schema 13 is additive through store.TABLES/INDEXES and the open_writer upgrade block (store.py:189-217). forget gains a separations delete. people_link and people_card_link widen their action Literal and add handles/links/items lists. Two new read tools: people_split_preview and the app-only people_card_split. The card.html compare view gets a Split… flow; the Card gets held and separated rows; compare gets a separated cell. **Files:** `src/people_mind_mcp/store.py` · `src/people_mind_mcp/graph.py` · `src/people_mind_mcp/actions.py` · `src/people_mind_mcp/server.py` · `src/people_mind_mcp/views.py` · `src/people_mind_mcp/card.html` · `README.md` · `tests/test_split.py` · `tests/test_actions.py` · `tests/test_server.py` · `tests/test_card_app.py` · `tests/test_mailpeer.py` · `tests/test_identity.py` **Decision:** accept the 7 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-split-mistaken-identities-and-move-handles-durably.md` — next: `codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-06-split-mistaken-identities-and-move-handles-durably.md`</sub>
Author
Member

This was generated by AI during triage.

SVD gate record: #109, HOLD (architect gate 2026-11-06, 12:06 AEDT)

Measured facts

  • Half-A run 20261106T004823Z-bbe33bf0: CLEAN, 0 blocking defects, 13 primary files, anchored at main 297468f.
  • The spec moves the store from schema 12 to schema 13 (store.py, Approach §A). The bump is forward-only: a revert needs a backup restore.
  • The spec reports five open decisions (D1 to D5) and two verifications (V1, V2).
  • V1 is resolved at the gate: #107 and #108 are both closed on git.groupthink.asia.

Buckets

  • Already decided: exclusive-Endpoint repair only; shared Endpoints, endpoint.share and the ADR 0002 Amendment 2 ruling 10 migration flag belong to #110. ADR 0005 Amendment 3 ruling 4: split undo "moves them back by source link".
  • Verification: V2, Mail peer rebuild durability on the deployed store after merge. Split a test Person by its mail link and address, force a rebuild, and confirm people_find <address> returns the carved id with merged=0 on that pass.
  • Genuinely open:
    • D1: split undo. Fold C back into P with a forced-survivor merge (moves later arrivals too, adds a C→P redirect, emits merge(P,C)), or del C plus update P with no redirect, refusing with reason=contributions when C gained later rows.
    • D2: separation semantics. (a) identity.separate carries no revision; (b) an explicit link.merge of two separated Persons applies and the separation goes inert until merge undo, instead of refusing with reason=separated; (c) a repeated separate answers already-separated.
    • D3: the review triggers for "ambiguous allocation". The lean limits them to a decided Suggestion whose support moves while unnamed, and a review-decision field named without its Suggestion. Whether unnamed local rows also count.
    • D4: whether handle.move ships in #109 or in its own issue.
    • D5: whether #110 owns both the migration review flag and the resolution of a held Handle, or #109 adds a review-queue entry or a resolve kind now.

Ruling

HOLD. Two auto-gate halt rules apply: a schema migration (12 to 13), and design forks (D1 to D5) that no ADR rules. #109 goes to the operator for a grill and an ADR 0005 amendment. After the rulings, re-run Half-A on the then-current main.

Drafted line

None. No svd:go added. No Half-B fired.

Delegation

"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-split-mistaken-identities-and-move-handles-durably.md, Open Risks. Ledger: 2026-W45-arch.

> *This was generated by AI during triage.* **SVD gate record: #109, HOLD** (architect gate 2026-11-06, 12:06 AEDT) **Measured facts** - Half-A run `20261106T004823Z-bbe33bf0`: CLEAN, 0 blocking defects, 13 primary files, anchored at `main` `297468f`. - The spec moves the store from schema 12 to schema 13 (`store.py`, Approach §A). The bump is forward-only: a revert needs a backup restore. - The spec reports five open decisions (D1 to D5) and two verifications (V1, V2). - V1 is resolved at the gate: #107 and #108 are both closed on git.groupthink.asia. **Buckets** - Already decided: exclusive-Endpoint repair only; shared Endpoints, `endpoint.share` and the ADR 0002 Amendment 2 ruling 10 migration flag belong to #110. ADR 0005 Amendment 3 ruling 4: split undo "moves them back by source link". - Verification: V2, Mail peer rebuild durability on the deployed store after merge. Split a test Person by its mail link and address, force a rebuild, and confirm `people_find <address>` returns the carved id with `merged=0` on that pass. - Genuinely open: - D1: split undo. Fold C back into P with a forced-survivor merge (moves later arrivals too, adds a C→P redirect, emits `merge(P,C)`), or `del C` plus `update P` with no redirect, refusing with `reason=contributions` when C gained later rows. - D2: separation semantics. (a) `identity.separate` carries no revision; (b) an explicit `link.merge` of two separated Persons applies and the separation goes inert until merge undo, instead of refusing with `reason=separated`; (c) a repeated separate answers `already-separated`. - D3: the review triggers for "ambiguous allocation". The lean limits them to a decided Suggestion whose support moves while unnamed, and a review-decision field named without its Suggestion. Whether unnamed local rows also count. - D4: whether `handle.move` ships in #109 or in its own issue. - D5: whether #110 owns both the migration review flag and the resolution of a held Handle, or #109 adds a review-queue entry or a resolve kind now. **Ruling** HOLD. Two auto-gate halt rules apply: a schema migration (12 to 13), and design forks (D1 to D5) that no ADR rules. #109 goes to the operator for a grill and an ADR 0005 amendment. After the rulings, re-run Half-A on the then-current `main`. **Drafted line** None. No `svd:go` added. No Half-B fired. **Delegation** "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-split-mistaken-identities-and-move-handles-durably.md`, Open Risks. Ledger: `2026-W45-arch`.
Collaborator

⏸ SVD architect gate: dev/people-mind-mcp#109 split-mistaken-identities-and-move-handles-durably

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: 20261106T035118Z-f6a49a5c

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

Open risks:

  1. V1, Mail peer rebuild durability on the deployed store (carried from prior V2). What changed: the gate accepted it as a post-merge verification, and the spec now adds the FakePeer test test_split_survives_mail_peer_rebuild. Post-merge check: split one test Person by its mail link and address, force a rebuild by changing [owner] emails once, then confirm people_find returns the carved id and that pass's sync line shows merged=0 and held_separated=0. [verification]
  2. V2, the Card App split flow in a real MCP Apps host. tests/test_card_app.py proves only the HTML strings and tool visibility. Post-merge check: in an MCP Apps host, call people_compare on two merged test Persons, then click Split…, tick one link, Preview, Split, Undo. Confirm the status lines 'split: new person p_…' then 'undone', and that people_actions shows both Actions with via=app. [verification]

Change: Build the code the operator ruled in ADR 0005 Amendment 5 rulings 9-15. (1) Schema 14, mirroring #100's schema-13 diff in store.py (:19, :29-60, :71, :223): add a separations table, one row per Action keyed by action_id; add handle_holds, shaped like handle_claims, pointing at the holder's Handle, with the record's side read through source_links. (2) One read-only graph.split_plan, used by both the worker and views.split_preview. It names links by a hashed ref, never by source_record. Handles follow their origin link (R2), link-keyed rows follow their link with the unmerge loop (graph.py:601-608), and unnamed local rows stay with P (ruling 12). conflict reason=ambiguous covers only the two Suggestion cases. would-remerge is narrowed to a named Handle whose own source link stays behind, so the ADR 0002 Household split applies. (3) carve() serves both link.split (new Person C: feed add then update) and handle.move (existing T). Guard order mirrors link.merge (graph.py:773-789). carve writes a Separation and runs _reconcile_holds, which turns cross-side claims into holds and collapses holds back into claims. identity.separate is a pure addition and answers failed reason=already-separated on a repeat. (4) Undo: a split folds C back with _merge_ranked(P, C) and P forced as survivor (ruling 9). A move moves the set back by source link, as Amendment 3 ruling 4 does. A separate deletes its row. (5) Ingest (graph.py:362-405) gains a redirect-resolving SEPARATED check. A colliding Handle on a linked record is held. An unlinked bridging record returns the new Outcome.held_separated, appended last in the enum, and writes nothing. link.merge is unchanged, so an explicit merge overrides a Separation (ruling 11). (6) forget deletes separations and holds. drain_actions' other_id falls back to record.other_id. The merge-undo superseded lookup also names a later split. people_link widens to split/move/separate with an explicit kind map. Two new read tools: people_split_preview and the app-only people_card_split. The Card gets separated and held rows, compare gets a separated cell, and card.html gets a Split… flow.

Files: src/people_mind_mcp/store.py · src/people_mind_mcp/graph.py · src/people_mind_mcp/actions.py · src/people_mind_mcp/server.py · src/people_mind_mcp/views.py · src/people_mind_mcp/card.html · README.md · tests/test_split.py · tests/test_actions.py · tests/test_server.py · tests/test_card_app.py

Decision: accept the 2 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-split-mistaken-identities-and-move-handles-durably.md — next: codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-06-split-mistaken-identities-and-move-handles-durably.md

### ⏸ SVD architect gate: dev/people-mind-mcp#109 split-mistaken-identities-and-move-handles-durably **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:** `20261106T035118Z-f6a49a5c` **Held because:** CLEAN but 2 open risk(s) (2 verification) — HOLD-ALL parks everything. The risks, verbatim: **Open risks:** 1. V1, Mail peer rebuild durability on the deployed store (carried from prior V2). What changed: the gate accepted it as a post-merge verification, and the spec now adds the FakePeer test test_split_survives_mail_peer_rebuild. Post-merge check: split one test Person by its mail link and address, force a rebuild by changing [owner] emails once, then confirm people_find <address> returns the carved id and that pass's sync line shows merged=0 and held_separated=0. [verification] 2. V2, the Card App split flow in a real MCP Apps host. tests/test_card_app.py proves only the HTML strings and tool visibility. Post-merge check: in an MCP Apps host, call people_compare on two merged test Persons, then click Split…, tick one link, Preview, Split, Undo. Confirm the status lines 'split: new person p_…' then 'undone', and that people_actions shows both Actions with via=app. [verification] **Change:** Build the code the operator ruled in ADR 0005 Amendment 5 rulings 9-15. (1) Schema 14, mirroring #100's schema-13 diff in store.py (:19, :29-60, :71, :223): add a `separations` table, one row per Action keyed by action_id; add `handle_holds`, shaped like `handle_claims`, pointing at the holder's Handle, with the record's side read through source_links. (2) One read-only graph.split_plan, used by both the worker and views.split_preview. It names links by a hashed ref, never by source_record. Handles follow their origin link (R2), link-keyed rows follow their link with the unmerge loop (graph.py:601-608), and unnamed local rows stay with P (ruling 12). `conflict reason=ambiguous` covers only the two Suggestion cases. would-remerge is narrowed to a named Handle whose own source link stays behind, so the ADR 0002 Household split applies. (3) carve() serves both link.split (new Person C: feed add then update) and handle.move (existing T). Guard order mirrors link.merge (graph.py:773-789). carve writes a Separation and runs _reconcile_holds, which turns cross-side claims into holds and collapses holds back into claims. identity.separate is a pure addition and answers `failed reason=already-separated` on a repeat. (4) Undo: a split folds C back with _merge_ranked(P, C) and P forced as survivor (ruling 9). A move moves the set back by source link, as Amendment 3 ruling 4 does. A separate deletes its row. (5) Ingest (graph.py:362-405) gains a redirect-resolving SEPARATED check. A colliding Handle on a linked record is held. An unlinked bridging record returns the new Outcome.held_separated, appended last in the enum, and writes nothing. link.merge is unchanged, so an explicit merge overrides a Separation (ruling 11). (6) forget deletes separations and holds. drain_actions' other_id falls back to record.other_id. The merge-undo superseded lookup also names a later split. people_link widens to split/move/separate with an explicit kind map. Two new read tools: people_split_preview and the app-only people_card_split. The Card gets separated and held rows, compare gets a separated cell, and card.html gets a Split… flow. **Files:** `src/people_mind_mcp/store.py` · `src/people_mind_mcp/graph.py` · `src/people_mind_mcp/actions.py` · `src/people_mind_mcp/server.py` · `src/people_mind_mcp/views.py` · `src/people_mind_mcp/card.html` · `README.md` · `tests/test_split.py` · `tests/test_actions.py` · `tests/test_server.py` · `tests/test_card_app.py` **Decision:** accept the 2 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-split-mistaken-identities-and-move-handles-durably.md` — next: `codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-06-split-mistaken-identities-and-move-handles-durably.md`</sub>
Collaborator

spec-verify-dispatch Half B for dev/people-mind-mcp#109 split-mistaken-identities-and-move-handles-durably completed integration verify.

  • PR: #139
  • Branch: feat/svd-dev-people-mind-mcp-109-split-mistaken-identities-an-e95ffcd7
  • Commit: 128cb0245e
  • 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/99/1
  • Checks: ci/woodpecker/pr/validation: green on 128cb02. Local make check and the focused pytest run pass.
  • Warning: Post-merge operator checks remain: deployed Mail rebuild and real MCP Apps host checks (per subagent deviations).
  • Warning: Subagent widened the server import-boundary test to permit graph and the SourceRecord protocol module; Source adapters are still verified unloaded.
  • Decision: review the PR and merge? (codex-svd ship --run-id 20261106T042128Z-e95ffcd7 --confirm-merge)
spec-verify-dispatch Half B for dev/people-mind-mcp#109 split-mistaken-identities-and-move-handles-durably completed integration verify. - PR: https://git.groupthink.asia/dev/people-mind-mcp/pulls/139 - Branch: feat/svd-dev-people-mind-mcp-109-split-mistaken-identities-an-e95ffcd7 - Commit: 128cb0245e49248f2c5c5756f5eac0d6cd388c2a - 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/99/1 - Checks: ci/woodpecker/pr/validation: green on 128cb02. Local make check and the focused pytest run pass. - Warning: Post-merge operator checks remain: deployed Mail rebuild and real MCP Apps host checks (per subagent deviations). - Warning: Subagent widened the server import-boundary test to permit graph and the SourceRecord protocol module; Source adapters are still verified unloaded. - Decision: review the PR and merge? (`codex-svd ship --run-id 20261106T042128Z-e95ffcd7 --confirm-merge`)
svc-svd-writer 2026-11-06 04:48:03 +00:00
  • closed this issue
  • removed the
    svd:go
    label
Author
Member

This was generated by AI during triage.

SVD gate and ship record: #109 (einfari gate 2026-11-06, merge 15:50 AEDT)

Measured facts

  • Half-A re-run 20261106T035118Z-f6a49a5c: CLEAN, 0 blocking defects, 11 Primary Files, base d9e4df2. Schema 14 adds the separations and handle_holds tables.
  • Dispatch runs 20261106T041147Z-02f2fa78 and 20261106T041611Z-4660b06a on codex/gpt-6.1-terra failed. The coder stopped after 2 to 3 minutes and reverted its edits. There was no commit and no rate limit.
  • Operator pick: dispatch on codex/gpt-6.1-sol. Run 20261106T042128Z-e95ffcd7 committed 128cb02 and opened PR #139.
  • Integrate: readyForMerge true, verified head equal to the dispatch commit, 0 rework rounds, CI ci/woodpecker/pr/validation pass.
  • Own execution at 128cb02: make check gave 617 passed, 5 skipped, 0 failed. The base gave 575 passed.
  • The 11 changed files are the Primary Files exactly. All spec-named tests are present. No nested .git or pytest cache. card.html adds no innerHTML, no http(s):// and no eval(.
  • Merged as 5ed5f94.

Buckets

  • Already decided: ADR 0005 Amendment 5 rulings 9 to 15 (split undo, Separation, explicit merge over a Separation, ambiguous, handle.move, Held Handles, schema order). The three gate readings R1 in the spec's Agent Adjustments.

  • Verification:

    • V1: a split survives a Mail peer rebuild on the deployed store.
    • V2: the Card App split flow in an MCP Apps host.

    Both are post-merge operator checks.

  • Genuinely open: the wording of Amendment 5 ruling 13. Read literally, undoing a move folds T into P. The gate reading is that undo moves the links back by source link. A text fix needs the operator's word.

Ruling

  • Deviation 1: tests/test_server.py now lets the server import graph. Before, the test banned it. The import follows from spec §B and invariant I1, which put graph.split_plan on the views reader. No ADR rule bans the import. The subprocess check still makes sure no source adapter and no vobject load when people_mind_mcp.server is imported. Accepted.
  • Deviations 2 and 3 are self-review fixes with added tests. Accepted.
  • GO, then merge.

Drafted line

codex-svd ship --run-id 20261106T042128Z-e95ffcd7 --confirm-merge (run, exit 0).

Delegation

"this session is an einfari. you merge through 19:00" (gate, svd:go and merge). "change dispatch to gpt-6.1-sol" (dispatch model).

Spec: 2026-11-06-split-mistaken-identities-and-move-handles-durably.md, Agent Adjustments. Ledger: 2026-W45-arch.

> *This was generated by AI during triage.* **SVD gate and ship record: #109** (einfari gate 2026-11-06, merge 15:50 AEDT) **Measured facts** - Half-A re-run `20261106T035118Z-f6a49a5c`: CLEAN, 0 blocking defects, 11 Primary Files, base `d9e4df2`. Schema 14 adds the `separations` and `handle_holds` tables. - Dispatch runs `20261106T041147Z-02f2fa78` and `20261106T041611Z-4660b06a` on `codex/gpt-6.1-terra` failed. The coder stopped after 2 to 3 minutes and reverted its edits. There was no commit and no rate limit. - Operator pick: dispatch on `codex/gpt-6.1-sol`. Run `20261106T042128Z-e95ffcd7` committed `128cb02` and opened PR #139. - Integrate: `readyForMerge` true, verified head equal to the dispatch commit, 0 rework rounds, CI `ci/woodpecker/pr/validation` pass. - Own execution at `128cb02`: `make check` gave 617 passed, 5 skipped, 0 failed. The base gave 575 passed. - The 11 changed files are the Primary Files exactly. All spec-named tests are present. No nested `.git` or pytest cache. `card.html` adds no `innerHTML`, no `http(s)://` and no `eval(`. - Merged as `5ed5f94`. **Buckets** - Already decided: ADR 0005 Amendment 5 rulings 9 to 15 (split undo, Separation, explicit merge over a Separation, `ambiguous`, `handle.move`, Held Handles, schema order). The three gate readings R1 in the spec's Agent Adjustments. - Verification: - V1: a split survives a Mail peer rebuild on the deployed store. - V2: the Card App split flow in an MCP Apps host. Both are post-merge operator checks. - Genuinely open: the wording of Amendment 5 ruling 13. Read literally, undoing a move folds T into P. The gate reading is that undo moves the links back by source link. A text fix needs the operator's word. **Ruling** - Deviation 1: `tests/test_server.py` now lets the server import `graph`. Before, the test banned it. The import follows from spec §B and invariant I1, which put `graph.split_plan` on the `views` reader. No ADR rule bans the import. The subprocess check still makes sure no source adapter and no `vobject` load when `people_mind_mcp.server` is imported. Accepted. - Deviations 2 and 3 are self-review fixes with added tests. Accepted. - GO, then merge. **Drafted line** `codex-svd ship --run-id 20261106T042128Z-e95ffcd7 --confirm-merge` (run, exit 0). **Delegation** "this session is an einfari. you merge through 19:00" (gate, `svd:go` and merge). "change dispatch to gpt-6.1-sol" (dispatch model). Spec: `2026-11-06-split-mistaken-identities-and-move-handles-durably.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#109
No description provided.