people_sources: add a header row and define the records column #71

Closed
opened 2026-11-04 06:38:11 +00:00 by svc-svd-writer · 2 comments
Collaborator

Outcome

people_sources output says what each cell means, and records has one stated meaning.

Context

The cross-check on 2026-11-04 read the live output as 8 unlabelled cells and expected 7 fields:

mail | mailmind | 2026-11-04T06:25:11Z | 3 | 2026-11-04T06:25:10Z | 0 | current |

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:

  • The output has no header row, so applied read as "an unlabelled timestamp".
  • records is sync_log.records of 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

  • Add one header row naming the eight columns.
  • Rename records to last_pass_records in the header, and say in the people_sources docstring (server.py:175) that it counts the last successful pass.
  • Update tests/test_server.py for the header.

Do not add a total column here.

Acceptance criteria

  • The first line of people_sources names every column.
  • The docstring states the meaning of last_pass_records.

Filed under: operator word "file them." sha256:237e55ef9da1 (People Mind mail cross-check, test 4)

## Outcome `people_sources` output says what each cell means, and `records` has one stated meaning. ## Context The cross-check on 2026-11-04 read the live output as 8 unlabelled cells and expected 7 fields: ``` mail | mailmind | 2026-11-04T06:25:11Z | 3 | 2026-11-04T06:25:10Z | 0 | current | ``` 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: - The output has no header row, so `applied` read as "an unlabelled timestamp". - `records` is `sync_log.records` of 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 - Add one header row naming the eight columns. - Rename `records` to `last_pass_records` in the header, and say in the `people_sources` docstring (`server.py:175`) that it counts the last successful pass. - Update `tests/test_server.py` for the header. Do not add a total column here. ## Acceptance criteria - [ ] The first line of `people_sources` names every column. - [ ] The docstring states the meaning of `last_pass_records`. Filed under: operator word "file them." sha256:237e55ef9da1 (People Mind mail cross-check, test 4)
Author
Collaborator

⏸ 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 effort medium

Run: 20261104T064531Z-565f7562

Held because: CLEAN but 2 open risk(s) (2 decision) — HOLD-ALL parks everything. The risks, verbatim:

Open risks:

  1. _render (server.py:80-95) logs rows= by counting every line that is not a footer, so tool=people_sources rows= becomes N+1 once the header lands. No test asserts it. Question: accept this (lean: yes, leave _render unchanged and generic), or should _render or people_sources subtract the header line? [decision]
  2. The issue Scope names views/server/test_server only. The spec also edits README.md:60 and :139, which describe the row shape with 'records', so the repo does not use two names for one column. Question: keep the README edit (lean: yes) or strike that Primary Files row to stay strictly within issue scope? [decision]

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.md

Decision: 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):

  • 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-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.md

### ⏸ 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 effort `medium` **Run:** `20261104T064531Z-565f7562` **Held because:** CLEAN but 2 open risk(s) (2 decision) — HOLD-ALL parks everything. The risks, verbatim: **Open risks:** 1. _render (server.py:80-95) logs rows= by counting every line that is not a footer, so tool=people_sources rows= becomes N+1 once the header lands. No test asserts it. Question: accept this (lean: yes, leave _render unchanged and generic), or should _render or people_sources subtract the header line? [decision] 2. The issue Scope names views/server/test_server only. The spec also edits README.md:60 and :139, which describe the row shape with 'records', so the repo does not use two names for one column. Question: keep the README edit (lean: yes) or strike that Primary Files row to stay strictly within issue scope? [decision] **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.md` **Decision:** 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`): - 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-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.md`</sub>
Author
Collaborator

spec-verify-dispatch Half B for dev/people-mind-mcp#71 people-sources-add-a-header-row-and-define-the-records-colum completed integration verify.

  • PR: #75
  • Branch: feat/svd-dev-people-mind-mcp-71-people-sources-add-a-header-r-876ca5a7
  • Commit: 8889cff861
  • 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/35/1
  • Checks: required ci/woodpecker/pr/validation resolved pass by CI-wait poll
  • Warning: Bare python3 -m pytest lacks the project dependencies (No module named 'phonenumbers'); I ran collection and tests through uv run instead.
  • Warning: The spec's -k filtered fast-verify collected 9 tests, including the new test_sources_description_defines_last_pass_records and test_sources_row_shape_last_sync_and_error_code. The unfiltered non-integration suite also passed.
  • Warning: README edit is outside the issue Scope but inside the spec's Primary Files and the architect ruling.
  • CI wait: ci/woodpecker/pr/validation -> pass
  • Decision: review the PR and merge? (codex-svd ship --run-id 20261104T083632Z-876ca5a7 --confirm-merge)
spec-verify-dispatch Half B for dev/people-mind-mcp#71 people-sources-add-a-header-row-and-define-the-records-colum completed integration verify. - PR: https://git.groupthink.asia/dev/people-mind-mcp/pulls/75 - Branch: feat/svd-dev-people-mind-mcp-71-people-sources-add-a-header-r-876ca5a7 - Commit: 8889cff861f37be252f6d6ae61c16ac5550f048b - 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/35/1 - Checks: required ci/woodpecker/pr/validation resolved pass by CI-wait poll - Warning: Bare `python3 -m pytest` lacks the project dependencies (No module named 'phonenumbers'); I ran collection and tests through `uv run` instead. - Warning: The spec's -k filtered fast-verify collected 9 tests, including the new test_sources_description_defines_last_pass_records and test_sources_row_shape_last_sync_and_error_code. The unfiltered non-integration suite also passed. - Warning: README edit is outside the issue Scope but inside the spec's Primary Files and the architect ruling. - CI wait: ci/woodpecker/pr/validation -> pass - Decision: review the PR and merge? (`codex-svd ship --run-id 20261104T083632Z-876ca5a7 --confirm-merge`)
svc-svd-writer 2026-11-04 09:02:25 +00:00
  • closed this issue
  • removed the
    svd:go
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
dev/people-mind-mcp#71
No description provided.