people_find adds a related=<n> footer hint on one-row answers #85
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.
Dependencies
No dependencies set.
Reference
dev/people-mind-mcp#85
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?
Problem
On rc.8, Grok answered "who is " with three calls:
people_find,people_cardandpeople_related. Thepeople_relatedcall returned 0 rows (#10 Q1 record). Thepeople_findanswer gave Grok no way to know that.The default row's
relationcell does not help. It holds only the Owner's own Relation to the Person (OWNER_RELATION,views.py:24-28, rendered atviews.py:94-97).people_relatedalso returns direct Relations in either direction, implied colleagues through a shared Organisation, and Persons who share a Tag (views.related,views.py:214-239). An emptyrelationcell therefore says nothing about whetherpeople_relatedhas rows.Change
people_findanswer has exactly one row, addrelated=<n>to its footer. This covers an exact Handle and a ranked answer withtotal=1.<n>is the number of rowspeople_relatedreturns for that Person with no limit.<n>from the same item list thatviews.relatedbuilds: extract the list builder and use it from both. Do not copy the queries, so the two counts cannot drift.views.relatedscans every membership, so a per-row count on a page would cost too much.people_finddocstring (the tool description clients read):related=<n>on a one-row answer counts thepeople_relatedrows, and 0 means nopeople_relatedcall is needed.people_findrow.Acceptance criteria
people_findfor a Person with no Relations, no Organisation peers and no shared Tags ends with a footer containingrelated=0.related=<n>equals the row count ofpeople_relatedfor that Person.people_findwith two or more rows, or with none, has the same footer as before.people_findtool description containsrelated=.make checkpasses.Out of scope
people_card. The rc.8 record shows Grok also calledpeople_cardto cross-check, and no footer key prevents that.Context
The #10 Grok record is comment 32564. Ruling (b) amends #10's call criterion to "the first call's rows hold the answer".
Filed under: operator word "File it as an enhancement after 0.1.0, and take ruling (b) for #10. Under (b), the hint is an optimisation, not a gate item." sha256:1d2e5f187c58
⏸ SVD architect gate: dev/people-mind-mcp#85 people-find-adds-a-related-n-footer-hint-on-one-row-answers
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
standard· dispatch effortmediumRun:
20261104T224040Z-8222127dHeld because: CLEAN but 3 open risk(s) (2 verification · 1 decision) — HOLD-ALL parks everything. The risks, verbatim:
Open risks:
make checkon the pristine base before the first edit, run it again after the change, and confirm the failure set is unchanged apart from the tests this spec adds or updates. test_find_one_row_answer_under_150_tokens must pass. [verification]Change: Move views.related's item builder (views.py:218-245, from the items list through the dedupe and the sort) unchanged into a private _related_items(conn, cfg, ref) -> list[list[object]]. Write it in the private-helper style of _organisation_candidates (views.py:113-130). related() then becomes
return _paged(_related_items(...), cursor, limit, max_chars). In views.find, afterselected, tail = page(matches, cursor, limit)(views.py:182), add:if len(matches) == 1 and selected: tail += f" related={len(_related_items(conn, cfg, selected[0][0]))}". Leave rows.footer and rows.page unchanged. Add oneFooter:sentence containingrelated=to the people_find docstring (server.py:108-116), mirroring the people_changesFooter:line at server.py:193. Append one sentence to the README.md:55 people_find row. Update the exact one-row footer assertion at tests/test_server.py:155 and add tests for: related=0, parity with the people_related total=, unchanged zero-row and multi-row footers, the description, and the 150-token budget on the whole answer.Files:
src/people_mind_mcp/views.py·src/people_mind_mcp/server.py·README.md·tests/test_server.pyDecision: accept the 3 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-04-people-find-adds-a-related-n-footer-hint-on-one-row-answers.md— next:codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-04-people-find-adds-a-related-n-footer-hint-on-one-row-answers.mdTriage: wontfix
The operator closed this as wontfix on 2026-11-05. The one-row hint would have saved no people_related call in the live records on #10:
Every people_related call followed a multi-row answer, and a count on multi-row pages is out of scope here on cost. The SVD spec held at the gate (run 20261104T224040Z-8222127d) is dropped.
The reason is recorded in
.out-of-scope/people-find-related-hint.md(PR #94). Reopen if a live record shows a one-row answer followed by an empty people_related call.Filed under: operator word "wontfix, close" sha256:269b28c3a6f8