Represent shared phones and mailboxes without merging people #110

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

Parent

#96

What to build

Assign a known shared endpoint to distinct Persons and make ambiguity visible in lookup, card and Interaction context.

Acceptance criteria

  • Migrate existing exclusive Handles under the approved model without changing stable ids or losing evidence.
  • A shared phone/role mailbox does not collapse Persons; exact lookup returns supported ambiguity rather than arbitrary certainty.
  • Keep uncertain Interactions unresolved/shared according to the decision; explicit attribution is reviewable and reversible.
  • Shared assignment, sync, rebuild and undo preserve separation; regression tests retain ordinary exclusive-Handle resolution.
  • Expose the shared-endpoint operation in the identity view and integrate the decided Forget/suppression hooks.
  • 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 Assign a known shared endpoint to distinct Persons and make ambiguity visible in lookup, card and Interaction context. ## Acceptance criteria - [ ] Migrate existing exclusive Handles under the approved model without changing stable ids or losing evidence. - [ ] A shared phone/role mailbox does not collapse Persons; exact lookup returns supported ambiguity rather than arbitrary certainty. - [ ] Keep uncertain Interactions unresolved/shared according to the decision; explicit attribution is reviewable and reversible. - [ ] Shared assignment, sync, rebuild and undo preserve separation; regression tests retain ordinary exclusive-Handle resolution. - [ ] Expose the shared-endpoint operation in the identity view and integrate the decided Forget/suppression hooks. - [ ] 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#110 represent-shared-phones-and-mailboxes-without-merging-people

Status: CLEAN after 2 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: 20261106T045228Z-f738cd8a

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

Open risks:

  1. D1: the ruling-10 migration flag is computed on Card read (review | shared-endpoint row), not stored, because open_writer has no config (store.py:186). Is a read-side flag acceptable, or must #110 store a one-shot flag with a dismiss path? [decision]
  2. D2: URLs stay in the handles table, excluded from the exclusive index and from matching, and return url Candidates; nothing migrates to fields. Acceptable for #110, or must URLs move to fields in schema 15? [decision]
  3. D3: endpoint.share on an email detaches that address's existing exclusive mail Interactions to the Endpoint (undo restores them). Should past mail instead stay with its earlier holder, with only new mail attaching to the Endpoint? [decision]
  4. D4: Owner config vs shared Endpoints (§D). (a) owner shared_* flips another Person's exclusive row to shared at start. (b) An exclusive owner key on an already-shared Endpoint joins as a shared holder without merging. (c) The merge-into-Owner branch folds duplicate shared rows. (d) A value under both keys is shared. Rule on whether config-driven flipping is acceptable and whether (b) has the right precedence. [decision]
  5. D5: the attribution surface is the new tool people_attribute (interactions bucket), plus shared people_recent cells shared | interaction=<id> | revision=<n>; there is no App-view attribution. Accept the tool name and row shape, and confirm App attribution is out of scope? [decision]
  6. D6: Forget skips shared Handles for tombstones and mail purges, erases the unattributed Interactions of an Endpoint left with no holder, and leaves mail_support rows for a shared address. Is that the decided hook for #110, with the rest of the tombstone key left to #114? [decision]
  7. D7: identity.shared_local_parts and shared_endpoints default to empty; no role list (info/office/accounts) ships. Should a default role list ship? [decision]
  8. D8: merging two holders of one shared Endpoint folds the loser's row into the survivor's (provenance becomes a claim; undo restores it). handle.move onto an existing holder refuses handle-present. Is folding the right reading of 'one Handle per holder', and should the move refuse rather than no-op? [decision]
  9. V3 (formerly S1, reclassed in round 2): the forge state of blocker #107. The code dependency is settled: the #107 branch tip 3cf252f (commit body 'Closes #107') has the same tree, a76d395ce9, as main's 96f0dd8 (#134), and patch-ids match. 96f0dd8 is an ancestor of base 5ed5f94 and of origin/main. The forge state is unknown: gh is denied, the snapshot has no #107 record, and main's squash subject lacks 'Closes #107'. Check at the gate: open #107. If closed, nothing to do. If open, close it with a pointer to 96f0dd8/PR #134; no #110 code change is needed. If it is open over unmet criteria, escalate to an architect decision on whether #110 waits. [verification]
  10. V1: share from the identity view in a real MCP Apps host. After merge, open people_compare on two test Persons that share a landline, click 'Shared with …' then Undo. Confirm the status lines shared then undone, and that people_actions shows endpoint.share and undo with via=app. [verification]
  11. V2: the schema-15 rebuild on the deployed store. After the upgrade, the first sync start completes the migration, and peoplemind check in the sync container prints store=ok schema=15. The interactions count matches the pre-upgrade people_status count, and Litestream continues its generation with no restore error. [verification]

Change: Schema 15 through store.open_writer migrate-on-open (store.py:186-238, mirroring the SCHEMA_14/UPGRADES pattern at :13-29). Add handles.shared, narrow handles_exact to handles_exclusive, add a per-holder unique index handles_holder, rebuild interactions with a nullable person_id plus an endpoint column under a CHECK. Shared-aware ingest, ensure_owner (graph.py:189-223, FIND_OWN_HANDLE/CLAIM_OWNER_HANDLE :110-115) and resolve (identity.py:57-101) return one shared-handle Candidate per holder and url Candidates. New reversible actions endpoint.share/endpoint.unshare (links bucket) and interaction.attribute (interactions bucket, tool people_attribute) follow the link.alias apply/undo shape (graph.py:1096-1116, :1324-1355) and the actions.enqueue contract (actions.py:58-87). _merge_ranked folds duplicate shared rows before MOVE_HANDLES (:276-293); handle.move refuses handle-present; _reconcile_holds turns a cross-side shared claim into a row (§L). Forget skips tombstoning shared Endpoints. The compare view (card.html:306-349, landed by #107 as 96f0dd8) gains the share/unshare buttons.

Files: src/people_mind_mcp/store.py · src/people_mind_mcp/graph.py · src/people_mind_mcp/identity.py · src/people_mind_mcp/handles.py · src/people_mind_mcp/config.py · src/people_mind_mcp/actions.py · src/people_mind_mcp/views.py · src/people_mind_mcp/server.py · src/people_mind_mcp/sync.py · src/people_mind_mcp/card.html · README.md · tests/test_shared.py · tests/test_identity.py · tests/test_actions.py

Decision: accept the 11 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-represent-shared-phones-and-mailboxes-without-merging-people.md — next: codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-06-represent-shared-phones-and-mailboxes-without-merging-people.md

### ⏸ SVD architect gate: dev/people-mind-mcp#110 represent-shared-phones-and-mailboxes-without-merging-people **Status:** CLEAN after 2 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:** `20261106T045228Z-f738cd8a` **Held because:** CLEAN but 11 open risk(s) (3 verification · 8 decision) — HOLD-ALL parks everything. The risks, verbatim: **Open risks:** 1. D1: the ruling-10 migration flag is computed on Card read (review | shared-endpoint row), not stored, because open_writer has no config (store.py:186). Is a read-side flag acceptable, or must #110 store a one-shot flag with a dismiss path? [decision] 2. D2: URLs stay in the handles table, excluded from the exclusive index and from matching, and return url Candidates; nothing migrates to fields. Acceptable for #110, or must URLs move to fields in schema 15? [decision] 3. D3: endpoint.share on an email detaches that address's existing exclusive mail Interactions to the Endpoint (undo restores them). Should past mail instead stay with its earlier holder, with only new mail attaching to the Endpoint? [decision] 4. D4: Owner config vs shared Endpoints (§D). (a) owner shared_* flips another Person's exclusive row to shared at start. (b) An exclusive owner key on an already-shared Endpoint joins as a shared holder without merging. (c) The merge-into-Owner branch folds duplicate shared rows. (d) A value under both keys is shared. Rule on whether config-driven flipping is acceptable and whether (b) has the right precedence. [decision] 5. D5: the attribution surface is the new tool people_attribute (interactions bucket), plus shared people_recent cells `shared | interaction=<id> | revision=<n>`; there is no App-view attribution. Accept the tool name and row shape, and confirm App attribution is out of scope? [decision] 6. D6: Forget skips shared Handles for tombstones and mail purges, erases the unattributed Interactions of an Endpoint left with no holder, and leaves mail_support rows for a shared address. Is that the decided hook for #110, with the rest of the tombstone key left to #114? [decision] 7. D7: identity.shared_local_parts and shared_endpoints default to empty; no role list (info/office/accounts) ships. Should a default role list ship? [decision] 8. D8: merging two holders of one shared Endpoint folds the loser's row into the survivor's (provenance becomes a claim; undo restores it). handle.move onto an existing holder refuses handle-present. Is folding the right reading of 'one Handle per holder', and should the move refuse rather than no-op? [decision] 9. V3 (formerly S1, reclassed in round 2): the forge state of blocker #107. The code dependency is settled: the #107 branch tip 3cf252f (commit body 'Closes #107') has the same tree, a76d395ce9fd, as main's 96f0dd8 (#134), and patch-ids match. 96f0dd8 is an ancestor of base 5ed5f94 and of origin/main. The forge state is unknown: gh is denied, the snapshot has no #107 record, and main's squash subject lacks 'Closes #107'. Check at the gate: open https://git.groupthink.asia/dev/people-mind-mcp/issues/107. If closed, nothing to do. If open, close it with a pointer to 96f0dd8/PR #134; no #110 code change is needed. If it is open over unmet criteria, escalate to an architect decision on whether #110 waits. [verification] 10. V1: share from the identity view in a real MCP Apps host. After merge, open people_compare on two test Persons that share a landline, click 'Shared with …' then Undo. Confirm the status lines shared then undone, and that people_actions shows endpoint.share and undo with via=app. [verification] 11. V2: the schema-15 rebuild on the deployed store. After the upgrade, the first sync start completes the migration, and `peoplemind check` in the sync container prints store=ok schema=15. The interactions count matches the pre-upgrade people_status count, and Litestream continues its generation with no restore error. [verification] **Change:** Schema 15 through store.open_writer migrate-on-open (store.py:186-238, mirroring the SCHEMA_14/UPGRADES pattern at :13-29). Add handles.shared, narrow handles_exact to handles_exclusive, add a per-holder unique index handles_holder, rebuild interactions with a nullable person_id plus an endpoint column under a CHECK. Shared-aware ingest, ensure_owner (graph.py:189-223, FIND_OWN_HANDLE/CLAIM_OWNER_HANDLE :110-115) and resolve (identity.py:57-101) return one shared-handle Candidate per holder and url Candidates. New reversible actions endpoint.share/endpoint.unshare (links bucket) and interaction.attribute (interactions bucket, tool people_attribute) follow the link.alias apply/undo shape (graph.py:1096-1116, :1324-1355) and the actions.enqueue contract (actions.py:58-87). _merge_ranked folds duplicate shared rows before MOVE_HANDLES (:276-293); handle.move refuses handle-present; _reconcile_holds turns a cross-side shared claim into a row (§L). Forget skips tombstoning shared Endpoints. The compare view (card.html:306-349, landed by #107 as 96f0dd8) gains the share/unshare buttons. **Files:** `src/people_mind_mcp/store.py` · `src/people_mind_mcp/graph.py` · `src/people_mind_mcp/identity.py` · `src/people_mind_mcp/handles.py` · `src/people_mind_mcp/config.py` · `src/people_mind_mcp/actions.py` · `src/people_mind_mcp/views.py` · `src/people_mind_mcp/server.py` · `src/people_mind_mcp/sync.py` · `src/people_mind_mcp/card.html` · `README.md` · `tests/test_shared.py` · `tests/test_identity.py` · `tests/test_actions.py` **Decision:** accept the 11 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-represent-shared-phones-and-mailboxes-without-merging-people.md` — next: `codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-06-represent-shared-phones-and-mailboxes-without-merging-people.md`</sub>
Collaborator

spec-verify-dispatch Half B for dev/people-mind-mcp#110 represent-shared-phones-and-mailboxes-without-merging-people completed integration verify.

  • PR: #142
  • Branch: feat/svd-dev-people-mind-mcp-110-represent-shared-phones-and-e5fbba37
  • Commit: 9173ea966d
  • Build: none
  • Test: red
  • Reader audit clean: False
  • Spec fidelity: False
  • Ready for merge: False
  • Check ci/woodpecker/pr/validation: pending https://ci.groupthink.asia/repos/73/pipeline/104/1
  • Checks: PR #142 head 9173ea9: ci/woodpecker/pr/validation pending. Local focused suite 407 passed, but most spec scenarios and endpoint.share are missing. Not ready for merge.
  • Blocker: Scenario test missing: 'migration flag' (test_migration_flag_marks_merged_person_with_configured_endpoint, -k migration_flag) is not in tests/test_shared.py
  • Blocker: Scenario test missing: 'household (ADR example)' (test_household_landline_split_share_and_lookup, -k household) is not in tests/test_shared.py
  • Blocker: Scenario test missing: 'role mailbox' (test_role_mailbox_interaction_attaches_to_endpoint, -k role_mailbox) is not in tests/test_shared.py
  • Blocker: Scenario test missing: 'rebuild' (test_shared_endpoint_and_attribution_survive_mail_peer_rebuild, -k peer_rebuild) is not in tests/test_shared.py
  • Blocker: Scenario test missing: 'share undo' (test_share_undo_restores_exclusive_hold_and_interactions, test_share_undo_conflicts_when_holder_arrived, test_share_undo_evidence_joined; -k share_undo) is not in tests/test_shared.py
  • Blocker: Scenario test missing: 'unshare' (test_unshare_would_remerge_without_mutation, test_unshare_of_separated_holder_holds_and_undo; -k unshare) is not in tests/test_shared.py
  • Blocker: Scenario test missing: 'merge with shared L.1' (test_link_merge_of_two_holders_folds_and_undo_restores, test_link_merge_undo_conflicts_when_folded_row_changed; -k two_holders) is not in tests/test_shared.py
  • Blocker: Scenario test missing: 'sync merge then split' (test_sync_merge_of_two_holders_then_split_restores_holder), 'split undo' (test_split_undo_folds_shared_rows), 'unshare undo superseded' (test_unshare_undo_superseded_after_holder_merged_into_keeper) are not in tests/test_shared.py
  • Blocker: Scenario test missing: 'identity view' (test_share_through_card_link_and_compare_json), 'suppression / Owner' (test_owner_shared_phone_record_not_skipped_and_never_merged, test_owner_shared_email_stays_out_of_mail_evidence; -k owner_shared), Owner shared-step/merge-branch/both-lists scenarios, 'Forget' (test_forget_one_landline_holder_keeps_other), 'retry, cap, revision, grant' (test_share_identical_and_changed_retry etc.) and 'ids only' (test_shared_detail_and_logs_hold_ids_only) are not in tests/test_shared.py
  • Blocker: Spec done check fails: grep -c '"endpoint.share"' src/people_mind_mcp/actions.py gives 0, the spec requires at least 1; endpoint.share and endpoint.unshare are not implemented
  • Blocker: Incomplete implementation: endpoint.share/unshare tool surfaces and undo, shared-holder merge folding (L.1), split reconciliation (L.3), identity-view controls and README updates are not delivered, so the per-holder uniqueness constraint can be violated on merge or move (CONV-23 writers unaudited)
  • Blocker cause: work for Scenario test missing: 'migration flag' (test_migration_flag_marks_merged_person_with_configured_endpoint, -k migration_flag) is not in tests/test_shared.py; no denial signature; evidence: pytest --collect-only tests/test_shared.py: 10 tests collected, none named migration_flag
  • Blocker cause: work for Scenario test missing: 'household (ADR example)' (test_household_landline_split_share_and_lookup, -k household) is not in tests/test_shared.py; no denial signature; evidence: 10 tests collected, none named household
  • Blocker cause: work for Scenario test missing: 'role mailbox' (test_role_mailbox_interaction_attaches_to_endpoint, -k role_mailbox) is not in tests/test_shared.py; no denial signature; evidence: 10 tests collected, none named role_mailbox
  • Blocker cause: work for Scenario test missing: 'rebuild' (test_shared_endpoint_and_attribution_survive_mail_peer_rebuild, -k peer_rebuild) is not in tests/test_shared.py; no denial signature; evidence: 10 tests collected, none named peer_rebuild
  • Blocker cause: work for Scenario test missing: 'share undo' (test_share_undo_restores_exclusive_hold_and_interactions, test_share_undo_conflicts_when_holder_arrived, test_share_undo_evidence_joined; -k share_undo) is not in tests/test_shared.py; no denial signature; evidence: 10 tests collected, none named share_undo
  • Blocker cause: work for Scenario test missing: 'unshare' (test_unshare_would_remerge_without_mutation, test_unshare_of_separated_holder_holds_and_undo; -k unshare) is not in tests/test_shared.py; no denial signature; evidence: 10 tests collected, none named unshare
  • Blocker cause: work for Scenario test missing: 'merge with shared L.1' (test_link_merge_of_two_holders_folds_and_undo_restores, test_link_merge_undo_conflicts_when_folded_row_changed; -k two_holders) is not in tests/test_shared.py; no denial signature; evidence: 10 tests collected, none named two_holders
  • Blocker cause: work for Scenario test missing: 'sync merge then split' (test_sync_merge_of_two_holders_then_split_restores_holder), 'split undo' (test_split_undo_folds_shared_rows), 'unshare undo superseded' (test_unshare_undo_superseded_after_holder_merged_into_keeper) are not in tests/test_shared.py; no denial signature; evidence: 10 tests collected; these names absent
  • Blocker cause: work for Scenario test missing: 'identity view' (test_share_through_card_link_and_compare_json), 'suppression / Owner' (test_owner_shared_phone_record_not_skipped_and_never_merged, test_owner_shared_email_stays_out_of_mail_evidence; -k owner_shared), Owner shared-step/merge-branch/both-lists scenarios, 'Forget' (test_forget_one_landline_holder_keeps_other), 'retry, cap, revision, grant' (test_share_identical_and_changed_retry etc.) and 'ids only' (test_shared_detail_and_logs_hold_ids_only) are not in tests/test_shared.py; no denial signature; evidence: 10 tests collected; these names absent
  • Blocker cause: work for Spec done check fails: grep -c '"endpoint.share"' src/people_mind_mcp/actions.py gives 0, the spec requires at least 1; endpoint.share and endpoint.unshare are not implemented; no denial signature; evidence: grep -c '"endpoint.share"' actions.py -> 0
  • Blocker cause: work for Incomplete implementation: endpoint.share/unshare tool surfaces and undo, shared-holder merge folding (L.1), split reconciliation (L.3), identity-view controls and README updates are not delivered, so the per-holder uniqueness constraint can be violated on merge or move (CONV-23 writers unaudited); no denial signature; evidence: SUBAGENT DEVIATIONS: 'merging or moving shared holders can violate the per-holder uniqueness constraint -> not fixed'; 'Implementation is incomplete and is not ready to ship.'
  • Warning: self-review: merging or moving shared holders can violate the per-holder uniqueness constraint -> not fixed: the specified folding and conflict-handling paths remain unimplemented.
  • Warning: The focused spec command passes (407 tests) but covers only the 10 tests present in tests/test_shared.py; it says nothing about the missing workflows.
  • Warning: Remote Woodpecker check ci/woodpecker/pr/validation is still pending; this is not a blocker.
  • Warning: Pristine-base baseline was not run by the coding subagent in the rework round.
  • Warning: make check was not re-run in this verification; only the focused spec command ran.
  • Rework: 1 round(s), outcome escalated
  • Escalation: risk-flagged blocker (data-loss) still present after one rework attempt — escalating instead of auto-grinding a security/consent-relevant defect.
  • Decision: resolve the blockers above and rerun integrate, or park this PR for a human?
spec-verify-dispatch Half B for dev/people-mind-mcp#110 represent-shared-phones-and-mailboxes-without-merging-people completed integration verify. - PR: https://git.groupthink.asia/dev/people-mind-mcp/pulls/142 - Branch: feat/svd-dev-people-mind-mcp-110-represent-shared-phones-and-e5fbba37 - Commit: 9173ea966d9417ce0116bcd007003e5ce6edd979 - Build: none - Test: red - Reader audit clean: False - Spec fidelity: False - Ready for merge: False - Check ci/woodpecker/pr/validation: pending https://ci.groupthink.asia/repos/73/pipeline/104/1 - Checks: PR #142 head 9173ea9: ci/woodpecker/pr/validation pending. Local focused suite 407 passed, but most spec scenarios and endpoint.share are missing. Not ready for merge. - Blocker: Scenario test missing: 'migration flag' (test_migration_flag_marks_merged_person_with_configured_endpoint, -k migration_flag) is not in tests/test_shared.py - Blocker: Scenario test missing: 'household (ADR example)' (test_household_landline_split_share_and_lookup, -k household) is not in tests/test_shared.py - Blocker: Scenario test missing: 'role mailbox' (test_role_mailbox_interaction_attaches_to_endpoint, -k role_mailbox) is not in tests/test_shared.py - Blocker: Scenario test missing: 'rebuild' (test_shared_endpoint_and_attribution_survive_mail_peer_rebuild, -k peer_rebuild) is not in tests/test_shared.py - Blocker: Scenario test missing: 'share undo' (test_share_undo_restores_exclusive_hold_and_interactions, test_share_undo_conflicts_when_holder_arrived, test_share_undo_evidence_joined; -k share_undo) is not in tests/test_shared.py - Blocker: Scenario test missing: 'unshare' (test_unshare_would_remerge_without_mutation, test_unshare_of_separated_holder_holds_and_undo; -k unshare) is not in tests/test_shared.py - Blocker: Scenario test missing: 'merge with shared L.1' (test_link_merge_of_two_holders_folds_and_undo_restores, test_link_merge_undo_conflicts_when_folded_row_changed; -k two_holders) is not in tests/test_shared.py - Blocker: Scenario test missing: 'sync merge then split' (test_sync_merge_of_two_holders_then_split_restores_holder), 'split undo' (test_split_undo_folds_shared_rows), 'unshare undo superseded' (test_unshare_undo_superseded_after_holder_merged_into_keeper) are not in tests/test_shared.py - Blocker: Scenario test missing: 'identity view' (test_share_through_card_link_and_compare_json), 'suppression / Owner' (test_owner_shared_phone_record_not_skipped_and_never_merged, test_owner_shared_email_stays_out_of_mail_evidence; -k owner_shared), Owner shared-step/merge-branch/both-lists scenarios, 'Forget' (test_forget_one_landline_holder_keeps_other), 'retry, cap, revision, grant' (test_share_identical_and_changed_retry etc.) and 'ids only' (test_shared_detail_and_logs_hold_ids_only) are not in tests/test_shared.py - Blocker: Spec done check fails: grep -c '"endpoint.share"' src/people_mind_mcp/actions.py gives 0, the spec requires at least 1; endpoint.share and endpoint.unshare are not implemented - Blocker: Incomplete implementation: endpoint.share/unshare tool surfaces and undo, shared-holder merge folding (L.1), split reconciliation (L.3), identity-view controls and README updates are not delivered, so the per-holder uniqueness constraint can be violated on merge or move (CONV-23 writers unaudited) - Blocker cause: work for Scenario test missing: 'migration flag' (test_migration_flag_marks_merged_person_with_configured_endpoint, -k migration_flag) is not in tests/test_shared.py; no denial signature; evidence: pytest --collect-only tests/test_shared.py: 10 tests collected, none named migration_flag - Blocker cause: work for Scenario test missing: 'household (ADR example)' (test_household_landline_split_share_and_lookup, -k household) is not in tests/test_shared.py; no denial signature; evidence: 10 tests collected, none named household - Blocker cause: work for Scenario test missing: 'role mailbox' (test_role_mailbox_interaction_attaches_to_endpoint, -k role_mailbox) is not in tests/test_shared.py; no denial signature; evidence: 10 tests collected, none named role_mailbox - Blocker cause: work for Scenario test missing: 'rebuild' (test_shared_endpoint_and_attribution_survive_mail_peer_rebuild, -k peer_rebuild) is not in tests/test_shared.py; no denial signature; evidence: 10 tests collected, none named peer_rebuild - Blocker cause: work for Scenario test missing: 'share undo' (test_share_undo_restores_exclusive_hold_and_interactions, test_share_undo_conflicts_when_holder_arrived, test_share_undo_evidence_joined; -k share_undo) is not in tests/test_shared.py; no denial signature; evidence: 10 tests collected, none named share_undo - Blocker cause: work for Scenario test missing: 'unshare' (test_unshare_would_remerge_without_mutation, test_unshare_of_separated_holder_holds_and_undo; -k unshare) is not in tests/test_shared.py; no denial signature; evidence: 10 tests collected, none named unshare - Blocker cause: work for Scenario test missing: 'merge with shared L.1' (test_link_merge_of_two_holders_folds_and_undo_restores, test_link_merge_undo_conflicts_when_folded_row_changed; -k two_holders) is not in tests/test_shared.py; no denial signature; evidence: 10 tests collected, none named two_holders - Blocker cause: work for Scenario test missing: 'sync merge then split' (test_sync_merge_of_two_holders_then_split_restores_holder), 'split undo' (test_split_undo_folds_shared_rows), 'unshare undo superseded' (test_unshare_undo_superseded_after_holder_merged_into_keeper) are not in tests/test_shared.py; no denial signature; evidence: 10 tests collected; these names absent - Blocker cause: work for Scenario test missing: 'identity view' (test_share_through_card_link_and_compare_json), 'suppression / Owner' (test_owner_shared_phone_record_not_skipped_and_never_merged, test_owner_shared_email_stays_out_of_mail_evidence; -k owner_shared), Owner shared-step/merge-branch/both-lists scenarios, 'Forget' (test_forget_one_landline_holder_keeps_other), 'retry, cap, revision, grant' (test_share_identical_and_changed_retry etc.) and 'ids only' (test_shared_detail_and_logs_hold_ids_only) are not in tests/test_shared.py; no denial signature; evidence: 10 tests collected; these names absent - Blocker cause: work for Spec done check fails: grep -c '"endpoint.share"' src/people_mind_mcp/actions.py gives 0, the spec requires at least 1; endpoint.share and endpoint.unshare are not implemented; no denial signature; evidence: grep -c '"endpoint.share"' actions.py -> 0 - Blocker cause: work for Incomplete implementation: endpoint.share/unshare tool surfaces and undo, shared-holder merge folding (L.1), split reconciliation (L.3), identity-view controls and README updates are not delivered, so the per-holder uniqueness constraint can be violated on merge or move (CONV-23 writers unaudited); no denial signature; evidence: SUBAGENT DEVIATIONS: 'merging or moving shared holders can violate the per-holder uniqueness constraint -> not fixed'; 'Implementation is incomplete and is not ready to ship.' - Warning: self-review: merging or moving shared holders can violate the per-holder uniqueness constraint -> not fixed: the specified folding and conflict-handling paths remain unimplemented. - Warning: The focused spec command passes (407 tests) but covers only the 10 tests present in tests/test_shared.py; it says nothing about the missing workflows. - Warning: Remote Woodpecker check ci/woodpecker/pr/validation is still pending; this is not a blocker. - Warning: Pristine-base baseline was not run by the coding subagent in the rework round. - Warning: make check was not re-run in this verification; only the focused spec command ran. - Rework: 1 round(s), outcome escalated - Escalation: risk-flagged blocker (data-loss) still present after one rework attempt — escalating instead of auto-grinding a security/consent-relevant defect. - Decision: resolve the blockers above and rerun integrate, or park this PR for a human?
Collaborator

spec-verify-dispatch Half B for dev/people-mind-mcp#110 represent-shared-phones-and-mailboxes-without-merging-people completed integration verify.

  • PR: #143
  • Branch: feat/svd-dev-people-mind-mcp-110-represent-shared-phones-and-4692d80f
  • Commit: 373a696f96
  • 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/105/1
  • Checks: required ci/woodpecker/pr/validation resolved pass by CI-wait poll
  • Warning: Subagent deviation: folded-handle revision checks run before would-remerge checks, which reverses the order in the spec prose. The spec's required revision-conflict test passes with this order.
  • Warning: Subagent deviation: sync idempotence snapshots exclude sync_log telemetry and still compare graph and change-feed state.
  • Warning: Remote check ci/woodpecker/pr/validation is still pending, so the runner must re-poll it.
  • CI wait: ci/woodpecker/pr/validation -> pass
  • Decision: review the PR and merge? (codex-svd ship --run-id 20261106T060302Z-4692d80f --confirm-merge)
spec-verify-dispatch Half B for dev/people-mind-mcp#110 represent-shared-phones-and-mailboxes-without-merging-people completed integration verify. - PR: https://git.groupthink.asia/dev/people-mind-mcp/pulls/143 - Branch: feat/svd-dev-people-mind-mcp-110-represent-shared-phones-and-4692d80f - Commit: 373a696f96b0b09dc98dde1be3856b598054bbe1 - 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/105/1 - Checks: required ci/woodpecker/pr/validation resolved pass by CI-wait poll - Warning: Subagent deviation: folded-handle revision checks run before would-remerge checks, which reverses the order in the spec prose. The spec's required revision-conflict test passes with this order. - Warning: Subagent deviation: sync idempotence snapshots exclude sync_log telemetry and still compare graph and change-feed state. - Warning: Remote check ci/woodpecker/pr/validation is still pending, so the runner must re-poll it. - CI wait: ci/woodpecker/pr/validation -> pass - Decision: review the PR and merge? (`codex-svd ship --run-id 20261106T060302Z-4692d80f --confirm-merge`)
Author
Member

This was generated by AI during triage.

SVD gate and ship record: #110 (einfari gate 2026-11-06, merge 17:40 AEDT)

Measured facts

  • Half-A 20261106T045228Z-f738cd8a: CLEAN, 0 blocking defects, class substrate, 14 Primary Files, base 5ed5f94, 28 source hashes. Schema 15 adds handles.shared and rebuilds interactions with a nullable person_id and an endpoint column.
  • The spec left eight decisions open (D1 to D8). The operator accepted every lean.
  • Dispatch 20261106T053530Z-e5fbba37 on codex/gpt-6.1-terra committed a partial change (PR #142). Integrate escalated a data-loss blocker after one rework round. PR #142 is closed.
  • Operator pick: dispatch on codex/gpt-6.1-sol. Run 20261106T060302Z-4692d80f committed 373a696 and opened PR #143.
  • Integrate: readyForMerge true, verified head equal to the dispatch commit, 0 rework rounds, CI ci/woodpecker/pr/validation pass.
  • Own execution at 373a696: make check gave 679 passed, 5 skipped, 0 failed. The base gave 617 passed.
  • The 14 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 bc8f11d.

Buckets

  • Already decided: ADR 0002 Amendment 2 rulings 1 to 11, ADR 0001 Amendment 3, ADR 0003 Amendment 2 ruling 1, ADR 0005 Amendment 3, and ADR 0005 Amendment 5 rulings 14 and 15.

  • Decided at this gate (operator "accept"):

    • D1: the migration flag is computed on Card read.
    • D2: URL rows stay in handles, out of matching.
    • D3: endpoint.share moves past mail to the Endpoint.
    • D4: Owner configuration marks shared at start, and an exclusive Owner key joins as a holder.
    • D5: people_attribute, with no App-view attribution.
    • D6: Forget depth, with the rest left to #114.
    • D7: no default role list.
    • D8: a merge folds one Handle per holder, and a move onto a holder is refused.

    These are recorded as ADR 0002 Amendment 3 (PR #141).

  • Verification (post-merge operator checks):

    • V1: identity-view share and undo in an MCP Apps host.
    • V2: the schema-15 rebuild on the deployed store.
  • V3 is closed: #107 is closed.

Ruling

  • Migration: the interactions rebuild is accepted. ADR 0002 Amendment 2 ruling 5 needs a nullable person_id, and SQLite cannot drop NOT NULL in place. No table, trigger or view references interactions. test_schema_15_migrates_handles_exclusive_and_keeps_ids checks that ids survive and that a second open changes nothing.
  • Deviation: the folded-Handle revision check runs before the would-remerge check. The spec prose and a spec-named test gave opposite orders, and the coder followed the test. Both checks refuse with no mutation, so only the reason differs. Accepted.
  • GO, then merge.

Drafted line

codex-svd ship --run-id 20261106T060302Z-4692d80f --confirm-merge (run, exit 0).

Delegation

"this session is an einfari. you merge through 19:00" (gate, svd:go and merge). "accept" (D1 to D8). "1" (close PR #142, dispatch on gpt-6.1-sol).

Spec: 2026-11-06-represent-shared-phones-and-mailboxes-without-merging-people.md, Agent Adjustments. Ledger: 2026-W45-arch.

> *This was generated by AI during triage.* **SVD gate and ship record: #110** (einfari gate 2026-11-06, merge 17:40 AEDT) **Measured facts** - Half-A `20261106T045228Z-f738cd8a`: CLEAN, 0 blocking defects, class `substrate`, 14 Primary Files, base `5ed5f94`, 28 source hashes. Schema 15 adds `handles.shared` and rebuilds `interactions` with a nullable `person_id` and an `endpoint` column. - The spec left eight decisions open (D1 to D8). The operator accepted every lean. - Dispatch `20261106T053530Z-e5fbba37` on `codex/gpt-6.1-terra` committed a partial change (PR #142). Integrate escalated a data-loss blocker after one rework round. PR #142 is closed. - Operator pick: dispatch on `codex/gpt-6.1-sol`. Run `20261106T060302Z-4692d80f` committed `373a696` and opened PR #143. - Integrate: `readyForMerge` true, verified head equal to the dispatch commit, 0 rework rounds, CI `ci/woodpecker/pr/validation` pass. - Own execution at `373a696`: `make check` gave 679 passed, 5 skipped, 0 failed. The base gave 617 passed. - The 14 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 `bc8f11d`. **Buckets** - Already decided: ADR 0002 Amendment 2 rulings 1 to 11, ADR 0001 Amendment 3, ADR 0003 Amendment 2 ruling 1, ADR 0005 Amendment 3, and ADR 0005 Amendment 5 rulings 14 and 15. - Decided at this gate (operator "accept"): - D1: the migration flag is computed on Card read. - D2: URL rows stay in `handles`, out of matching. - D3: `endpoint.share` moves past mail to the Endpoint. - D4: Owner configuration marks shared at start, and an exclusive Owner key joins as a holder. - D5: `people_attribute`, with no App-view attribution. - D6: Forget depth, with the rest left to #114. - D7: no default role list. - D8: a merge folds one Handle per holder, and a move onto a holder is refused. These are recorded as ADR 0002 Amendment 3 (PR #141). - Verification (post-merge operator checks): - V1: identity-view share and undo in an MCP Apps host. - V2: the schema-15 rebuild on the deployed store. - V3 is closed: #107 is closed. **Ruling** - Migration: the `interactions` rebuild is accepted. ADR 0002 Amendment 2 ruling 5 needs a nullable `person_id`, and SQLite cannot drop `NOT NULL` in place. No table, trigger or view references `interactions`. `test_schema_15_migrates_handles_exclusive_and_keeps_ids` checks that ids survive and that a second open changes nothing. - Deviation: the folded-Handle revision check runs before the would-remerge check. The spec prose and a spec-named test gave opposite orders, and the coder followed the test. Both checks refuse with no mutation, so only the reason differs. Accepted. - GO, then merge. **Drafted line** `codex-svd ship --run-id 20261106T060302Z-4692d80f --confirm-merge` (run, exit 0). **Delegation** "this session is an einfari. you merge through 19:00" (gate, `svd:go` and merge). "accept" (D1 to D8). "1" (close PR #142, dispatch on gpt-6.1-sol). Spec: `2026-11-06-represent-shared-phones-and-mailboxes-without-merging-people.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#110
No description provided.