Create a Person before a contact or email exists #103
Labels
No labels
bug
enhancement
epic
needs-info
needs-triage
ready-for-agent
ready-for-human
svd:fire
svd:go
svd:hold
svd:respec
svd:skip
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Blocks
Depends on
#113 Remove selected local data with an explicit scope
dev/people-mind-mcp
#117 Create a provider contact from a locally remembered Person
dev/people-mind-mcp
#98 Accept or edit an enrichment suggestion from an MCP card
dev/people-mind-mcp
Reference
dev/people-mind-mcp#103
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
#96
What to build
Remember someone by name and context without requiring a Handle, then associate later evidence through normal identity resolution.
Acceptance criteria
Blocked by
Filed under: operator word "ok" sha256:2689367b205c
⏸ SVD architect gate: dev/people-mind-mcp#103 create-a-person-before-a-contact-or-email-exists
Status: CLEAN after 0 rework round(s) · 0 blocking defect(s) · 0 lens(es) INCONCLUSIVE (could not run) · 0 lens(es) DEGRADED (deterministic denial) · complexity
substrate· dispatch efforthighRun:
20261105T233851Z-66edb6fcHeld because: CLEAN but 5 open risk(s) (1 verification · 4 decision) — HOLD-ALL parks everything. The risks, verbatim:
Open risks:
grep -c 'Dr Bruce' pm.dbmust return 0. This is not asserted in-suite because ADR 0003 Am.1 forbids an application checkpoint. [verification]Change: Add the Action kind person.create (create bucket, cap 50) through the existing outbox, worker and undo pipeline.
actions.py:23-30: add "person.create": "create" to KIND_BUCKET and add the kind to UNDOABLE.
graph.py: add a new create_person() beside assert_field (:631-649). It mirrors the new-Person branch of ingest_record (:371-377): INSERT_PERSON, then INSERT_NAME keyed ('action', str(action_id)) with kind primary, then INSERT_FIELD asserted rows for organisation and title whose Author is the token label (read as at :727), then _change(conn, 'add', pid).
graph.py, _apply_action: put the person.create branch BEFORE the undo fall-through at :743. It returns detail person= and the undo record {person_id, revision}.
graph.py, undo dispatcher: add an elif before the merge else at :789.
card.html: add a "New person" form inside load() (Edit-form pattern :95-107) that calls people_card_create. When the create is applied, call setPerson(new id); the card's existing Attach control then adds a Handle through link.alias, which already validates ownership.
Read projections need no change; views already render action-sourced names and fields.
Update README.md:80.
No schema change.
Files:
src/people_mind_mcp/actions.py·src/people_mind_mcp/graph.py·src/people_mind_mcp/server.py·src/people_mind_mcp/card.html·tests/test_create.py·tests/test_actions.py·tests/test_card_app.py·README.mdDecision: accept the 5 open risk(s) above and dispatch this spec (
svd:go), or park (svd:skip) / re-spec (svd:respec)?Your call (when this issue is held at the gate via
svd:hold):svd:go— approve; Half-B dispatch accepts exactly this spec (open risks accepted)svd:firebesidesvd:go— approve AND authorise the Half-B fire from the phone; never on its ownsvd:skip— park it; dispatch refuses it and the issue stays for a humansvd:respec— discard this spec; the next Half-A run re-produces it with this record as prior-attempt contextSpec:
/Users/piers/.local/state/exhaust/groupthink/specs/2026-11-05-create-a-person-before-a-contact-or-email-exists.md— next:codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-05-create-a-person-before-a-contact-or-email-exists.mdspec-verify-dispatch Half B for dev/people-mind-mcp#103 create-a-person-before-a-contact-or-email-exists completed integration verify.
81fec5d272codex-svd ship --run-id 20261105T235237Z-55c5b375 --confirm-merge)SVD gate and ship record: #103 (architect gate 2026-11-06, merge 11:05 AEDT)
Measured facts
20261105T233851Z-66edb6fc: CLEAN, 0 blocking defects, classsubstrate, 8 primary files, 28 of 28 source hashes matched96f0dd8.20261105T235237Z-55c5b375: PR #135 at81fec5d, CIci/woodpecker/pr/validationpass, no rework, integrate head equal to the dispatch commit, all 13 spec-named tests intests/test_create.pypresent.2ba707e;svd:gostripped by ship.Buckets
person.create | create | undo; conflict if later contributions exist; key-only idempotency (ruling 9); no expected revision (ruling 10); feedaddanddel(ruling 18).PRAGMA wal_checkpoint(TRUNCATE). This is a post-merge operator check on a test copy, because ADR 0003 Amendment 1 forbids an application checkpoint.actions.payload_digestresidue. It is pre-existing and routes to #114 and #55.Ruling
person.createtakes no Handles.link.aliasadds them afterwards and validates ownership.Drafted line
codex-svd ship --run-id 20261105T235237Z-55c5b375 --confirm-merge(run, exit 0).Delegation
"go 103 auto-gate" (gate); "I auth this session T4 merge and svd:go write, through 14:00aedt" (merge and label).
Spec:
2026-11-05-create-a-person-before-a-contact-or-email-exists.md, Agent Adjustments. Ledger:2026-W45-arch.