Declare tool annotations and shorten untrusted-content wording #31

Merged
piers merged 1 commit from feat/svd-dev-peoplemind-mcp-29-declare-tool-annotations-and-s-c99944fc into main 2026-11-01 22:27:40 +00:00
Collaborator

Annotate all eight tools, marking only people_changes_ack writable. Shorten each field-specific untrusted sentence, update README conventions, and assert all four annotation hints through read-token discovery.

Validation: discovery test and all 23 server tests pass; make check matches the pristine baseline with 258 passed, 5 skipped and 4 deselected. Native package build succeeds. Tool bodies remain unchanged apart from docstrings.

Measurements before → after: total 5777 → 6482; without_annotations 5777 → 5577; descriptions 2148 → 1948; annotated 0 → 8; untrusted_all remains True.

Closes #29
Co-Authored-By: gpt-6.1-sol noreply@openai.com

Annotate all eight tools, marking only people_changes_ack writable. Shorten each field-specific untrusted sentence, update README conventions, and assert all four annotation hints through read-token discovery. Validation: discovery test and all 23 server tests pass; make check matches the pristine baseline with 258 passed, 5 skipped and 4 deselected. Native package build succeeds. Tool bodies remain unchanged apart from docstrings. Measurements before → after: total 5777 → 6482; without_annotations 5777 → 5577; descriptions 2148 → 1948; annotated 0 → 8; untrusted_all remains True. Closes #29 Co-Authored-By: gpt-6.1-sol <noreply@openai.com>
Annotate all eight tools, marking only people_changes_ack writable. Shorten each field-specific untrusted sentence, update README conventions, and assert all four annotation hints through read-token discovery.

Validation: discovery test and all 23 server tests pass; make check matches the pristine baseline with 258 passed, 5 skipped and 4 deselected. Native package build succeeds. Tool bodies remain unchanged apart from docstrings.

Measurements before → after: total 5777 → 6482; without_annotations 5777 → 5577; descriptions 2148 → 1948; annotated 0 → 8; untrusted_all remains True.

Closes #29
Co-Authored-By: gpt-6.1-sol <noreply@openai.com>

Architect host verification: approved for merge

Verified on a scratch worktree at 68a6ae2 with the project venv, 09:25 to 09:26 +1100.

  • uv run python3 -m pytest -m "not integration": 258 passed, 5 skipped, 4 deselected. Same set as the main baseline; the extended discovery test is among the passes (fast run: 1 passed).
  • mypy strict: no issues in 32 files. ruff check and format: clean.
  • tools/list over the in-process server: all 8 tools annotated; only people_changes_ack has readOnlyHint=False; every description contains untrusted.
  • Size, restated criterion from the gate: total 5777 to 6482 (recorded, no threshold); excluding annotations 5777 to 5577; descriptions 2148 to 1948. Matches the PR body exactly.
  • Diff: 3 files, 28 insertions, 18 deletions. Inside server.py only the two constants, eight decorator lines and eight docstring lines change; no function body changed. No nested .git, no cache files.

No CI on this repo; this comment is the own-execution gate. Operator may merge.

## Architect host verification: approved for merge Verified on a scratch worktree at 68a6ae2 with the project venv, 09:25 to 09:26 +1100. - `uv run python3 -m pytest -m "not integration"`: 258 passed, 5 skipped, 4 deselected. Same set as the main baseline; the extended discovery test is among the passes (fast run: 1 passed). - mypy strict: no issues in 32 files. ruff check and format: clean. - `tools/list` over the in-process server: all 8 tools annotated; only `people_changes_ack` has `readOnlyHint=False`; every description contains `untrusted`. - Size, restated criterion from the gate: total 5777 to 6482 (recorded, no threshold); excluding `annotations` 5777 to 5577; descriptions 2148 to 1948. Matches the PR body exactly. - Diff: 3 files, 28 insertions, 18 deletions. Inside `server.py` only the two constants, eight decorator lines and eight docstring lines change; no function body changed. No nested `.git`, no cache files. No CI on this repo; this comment is the own-execution gate. Operator may merge.
piers merged commit cee097207e into main 2026-11-01 22:27:40 +00:00
Sign in to join this conversation.
No description provided.