Skip to content

chore(client): collapse verify_compliance_receipt + BudgetTracker docstrings - #200

Merged
jagmarques merged 2 commits into
mainfrom
chore/c18-slop-sdk-client
May 23, 2026
Merged

chore(client): collapse verify_compliance_receipt + BudgetTracker docstrings#200
jagmarques merged 2 commits into
mainfrom
chore/c18-slop-sdk-client

Conversation

@jagmarques

Copy link
Copy Markdown
Owner

Summary

Collapses two egregious multi-sentence docstrings in `python/src/asqav/client.py` to the CLAUDE.md rule-10 budget. Docstring-only diff; zero behaviour change.

Why

Cycle 18 deep slop hunt (`~/.company/cycles/c18/scans/SLOP-DEEP.md`) flagged `client.py` as the heaviest pattern-B offender in the SDK. The two worst:

  • `verify_compliance_receipt` (L2418): 23 sentences / 2062 chars, including a `spec Section 2.1` citation that violates CLAUDE.md rule 3.
  • `BudgetTracker` (L3626): 9-sentence preamble before the Example block.

Both are now 2-sentence summaries; per-arg detail in the verify helper is recoverable from the function signature and the structured `ComplianceReceiptVerification` return type.

Test plan

  • `git diff python/src/asqav/client.py` shows only docstring shrinkage (5 insertions, 57 deletions).
  • `uv run ruff check python/src/asqav/client.py` passes.
  • `uv run pytest tests/ -x -q` in `python/` is green (747 passed).
  • CI green.

comment hygiene clean

…strings

`verify_compliance_receipt` had a 23-sentence, 2062-char docstring with a
`spec Section 2.1` citation (rule-3 forbidden) and a multi-paragraph
narrative of every MUST. Collapsed to the rule-10 budget (2 sentences).

`BudgetTracker` class docstring had a 9-sentence prose preamble before the
Example block. Collapsed to 2 sentences; Example preserved.

Docstring-only diff; zero behaviour change.

comment hygiene clean
@jagmarques
jagmarques merged commit b57c4c7 into main May 23, 2026
6 checks passed
@jagmarques
jagmarques deleted the chore/c18-slop-sdk-client branch May 23, 2026 06:54
jagmarques added a commit that referenced this pull request May 23, 2026
CLAUDE.md rule 10 caps docstrings at 1-2 sentences. Cycle 18 deep
slop hunt found numerous multi-sentence docstrings across asqav-sdk
Python source that overran. This PR collapses them in place across
19 files. Excludes files in open PRs (client.py #200, extras/* #196
and #198, cli.py).

Doc / comment only; zero behaviour change. Tests pass (747/747).

comment hygiene clean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant