people_sources: add a header row and define the records column #71
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/people-mind-mcp#71
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?
Outcome
people_sourcesoutput says what each cell means, andrecordshas one stated meaning.Context
The cross-check on 2026-11-04 read the live output as 8 unlabelled cells and expected 7 fields:
The shape is as designed since #47:
name | kind | last_sync | records | applied | pending | freshness | last_error(views.sources,views.py:233). Two things misled the reader:appliedread as "an unlabelled timestamp".recordsissync_log.recordsof the last successful pass (LAST_OK,views.py:59): what that pass processed, not a total. It showed 0 for both CardDAV Sources and 3 for mail, against 3,608 Persons.Scope
recordstolast_pass_recordsin the header, and say in thepeople_sourcesdocstring (server.py:175) that it counts the last successful pass.tests/test_server.pyfor the header.Do not add a total column here.
Acceptance criteria
people_sourcesnames every column.last_pass_records.Filed under: operator word "file them." sha256:237e55ef9da1 (People Mind mail cross-check, test 4)
⏸ SVD architect gate: dev/people-mind-mcp#71 people-sources-add-a-header-row-and-define-the-records-colum
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:
20261104T064531Z-565f7562Held because: CLEAN but 2 open risk(s) (2 decision) — HOLD-ALL parks everything. The risks, verbatim:
Open risks:
Change: Add the module constant SOURCE_COLUMNS = ("name","kind","last_sync","last_pass_records","applied","pending","freshness","last_error") after LAST_ERROR (views.py:61). This mirrors the column-name tuple returned by default_row_columns (views.py:65-66). Change the views.sources return at views.py:262 to emit row(SOURCE_COLUMNS, 80) as line 0, ahead of the data rows. The footer keeps len(items), so total= stays the Source count. Rewrite the people_sources docstring (server.py:173-181) to: mention the header line, use last_pass_records in the Row: line, and add 'last_pass_records counts the records the last successful sync pass processed, not a total'. Keep 'Row:' and 'untrusted' (test_server.py:98-99). Fix the CONV-23 positional readers: shift the test_server.py:281-313 indices by one and assert the header; change test_mailpeer.py:384 and :1017 from splitlines()[0] to [1]. Add test_sources_description_defines_last_pass_records, following the list_tools shape at test_server.py:93-107. Update README.md:60 and :139 to the new column name. Leave _render unchanged.
Files:
src/people_mind_mcp/views.py·src/people_mind_mcp/server.py·tests/test_server.py·tests/test_mailpeer.py·README.mdDecision: 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):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-sources-add-a-header-row-and-define-the-records-colum.md— next:codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-04-people-sources-add-a-header-row-and-define-the-records-colum.mdspec-verify-dispatch Half B for dev/people-mind-mcp#71 people-sources-add-a-header-row-and-define-the-records-colum completed integration verify.
8889cff861python3 -m pytestlacks the project dependencies (No module named 'phonenumbers'); I ran collection and tests throughuv runinstead.codex-svd ship --run-id 20261104T083632Z-876ca5a7 --confirm-merge)