Correct Organisations, aliases and domain associations #106
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.
Depends on
#98 Accept or edit an enrichment suggestion from an MCP card
dev/people-mind-mcp
Reference
dev/people-mind-mcp#106
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
Correct an Organisation from Person context and make rejected domain-derived associations stay corrected.
Acceptance criteria
Blocked by
Filed under: operator word "ok" sha256:2689367b205c
⏸ SVD architect gate: dev/people-mind-mcp#106 correct-organisations-aliases-and-domain-associations
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:
20261107T013311Z-6cf6151bHeld because: CLEAN but 7 open risk(s) (2 verification · 5 decision) — HOLD-ALL parks everything. The risks, verbatim:
Open risks:
726d113,297468f, the suggestions table, review.accept), but this sandbox cannot read issue state. Check: gh issue view 98 -R dev/people-mind-mcp --json state -q .state returns CLOSED on git.groupthink.asia. [verification]f616f5abefore the first edit; after the change both pass and the failure set is unchanged except for the new passing tests. [verification]Change: Mirror #102 (commit
f616f5a) across the same file set. Schema 19 in store.py follows the UPGRADES/TABLES/INDEXES pattern (store.py:95-157): organisations.revision/name_author/name_action_id, org_aliases author/action_id/created_at, org_domains kind/author/action_id, and a new org_domain_rejections table. actions.py adds ORG_KINDS to KIND_BUCKET (organisations) and UNDOABLE. graph.py gains _apply_org/_undo_org, copying _apply_relation/_undo_relation (graph.py:1585-1684) and routed beside graph.py:2313 and :2510. They implement org.rename, org.alias, org.domain.assign (refuses domain-owned org=, public-domain, domain-present) and org.domain.reject, with content-checked undo; the _derive_domain/_underive helpers refresh derived rows and Suggestions and emit update per member. _derived_orgs (graph.py:446-464) skips a rejected, unowned domain. drain_actions (:2696) falls back to org_id for undo_records.person_id. Forget (graph.py:1041-1135) gets a provenance-aware ORPHAN_DERIVED_ORGANISATION without the EXISTS-domain precondition, and erases rejections and undo records for domains no remaining Handle holds. views.py: _organisation_candidates matches aliases; card_suggestions adds an organisation_details key (the organisations key is unchanged); card() adds Organisation rows only with revisions=true. server.py: people_org/people_card_org copy the people_relation pair (server.py:633-744) and are mounted in build_app. card.html copies the relation App section (card.html:221-331).Files:
src/people_mind_mcp/store.py·src/people_mind_mcp/actions.py·src/people_mind_mcp/graph.py·src/people_mind_mcp/views.py·src/people_mind_mcp/server.py·src/people_mind_mcp/card.html·README.md·tests/test_organisations.py·tests/test_actions.py·tests/test_card_app.py·tests/test_relations.pyDecision: 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):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-07-correct-organisations-aliases-and-domain-associations.md— next:codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-07-correct-organisations-aliases-and-domain-associations.mdspec-verify-dispatch Half B for dev/people-mind-mcp#106 correct-organisations-aliases-and-domain-associations completed integration verify.
b08dd5f2a2b08dd5f, which corrects the embedding fixtures for schema 19. tests/test_embed.py is not a file the spec named for edits, but the change is a small fixture fix.codex-svd ship --run-id 20261107T015733Z-33fda8c4 --confirm-merge)SVD gate and ship record: #106 (einfari gate 2026-11-07, merge 13:24 AEDT)
Measured facts
20261107T013311Z-6cf6151b: CLEAN, classsubstrate, 11 Primary Files, basef616f5a, 22 source hashes. Schema 19 is additive:organisationsgainsrevision,name_authorandname_action_id, and a neworg_domain_rejectionstable holds rejected domains.20261107T015733Z-33fda8c4oncodex/gpt-6.1-solcommitted8bbe792and opened PR #153. Its ownmake checkgave 781 passed and 2 failed. Both failures are intests/test_embed.py, outside the Primary Files: two fixtures run a positional three-columnINSERT INTO organisations, which the schema-19 table refuses. The agent left them unedited, as rider 4 told it to.b08dd5f. Integrate:readyForMergetrue, reworkconverged, CIci/woodpecker/pr/validationsuccess.b08dd5f:make checkgave 783 passed, 5 skipped, 0 failed. The base gave 769 passed. The Python 3.12 import ofpeople_mind_mcp.cliandpeople_mind_mcp.serversucceeds.test_forget_removes_only_orphaned_derived_organisationspasses, andtests/test_identity.pyis unchanged.tests/test_embed.pyadded by rider 7. All spec-named tests are present. No nested.git.card.htmladds noinnerHTML, nohttp(s)://and noeval(.a4a6754.Buckets
domain-ownedrefusal is the report. It makes no review-queue item.alias-presentapplies within one Organisation.org.aliascarries a revision.tests/test_embed.pyto the Primary Files and names one edit, which gives the two fixture INSERTs explicit columns. It changes no behaviour.Ruling
test_schema_19_migrates_on_writer_opencovers the upgrade fromuser_version=18.Drafted line
codex-svd ship --run-id 20261107T015733Z-33fda8c4 --confirm-merge(run, exit 0).Delegation
"this session is an einfari. you merge through 19:00", extended by "extend grant through 19:00" (gate,
svd:goand merge). "proceed" (D1 to D5). Standing pick "Throughput is more important than cost" (sol on substrate dispatch).Spec:
2026-11-07-correct-organisations-aliases-and-domain-associations.md, Agent Adjustments, riders 1 to 7. Ledger:2026-W45-arch.