Skip to content

Fix squattable pkgguard extra and Claude provider; prepare PyPI release - #1

Merged
rxslice merged 3 commits into
mainfrom
claude/confident-edison-eqb0pf
Nov 12, 2026
Merged

rxslice merged 3 commits into
mainfrom
claude/confident-edison-eqb0pf

Conversation

@rxslice

@rxslice rxslice commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner

Summary

Broken install fixed. The [pkgguard] extra depended on the PyPI name pkgguard, which doesn't exist, so pip install "slopbench[pkgguard]" failed. PyPI refused to register that bare name for the real package because it is too similar to the existing pkg-guard, which makes it unlikely anyone else could register it either. Even so, a dependency should never point at a name you don't own. The extra now names the published distribution, blvkware-pkgguard>=0.1.2. I installed it live and ran slopbench's registry checks through it against PyPI, npm and crates.io.

Provider fix. The anthropic provider sent temperature on every request. Current Claude models reject it with HTTP 400, so every sample failed and no report was written. Now, on that specific 400, the provider drops temperature for the rest of the run. It records the change on each sample and in the cache, and the CLI, HTML and Markdown reports state how many samples ran at the model's default sampling. max_tokens is raised to 16000 because always-on thinking counts against the same limit.

PyPI release. .github/workflows/release.yml publishes on a v* tag through PyPI trusted publishing, so no token is stored anywhere. Before publishing it runs the tests, checks that the tag matches __version__, and runs twine check --strict. The package metadata now uses an SPDX license expression, so the build has no warnings.

Docs and discoverability.

  • README: pip install slopbench, absolute links so they work on PyPI, current Claude model in the example, OPENAI_API_KEY fallback, prompt counts, and an FAQ.
  • New CITATION.cff and AGENTS.md.
  • A column dictionary for the panel CSVs.
  • Fuller package metadata.

Agent permissions. .claude/settings.json lets Claude Code sessions run pip installs and use the repo's .venv.

Verification

  • 65 tests pass locally, including 3 new ones for the provider fallback. CI is green on Python 3.9 and 3.12.
  • I recomputed every published rate and Wilson interval in the October panel report, and all match. The repo CSV matches the live CSV on blvkware.dev byte for byte.
  • The built wheel installs, and its CLI and bundled prompt corpus work.

After merge

Create a GitHub release with tag v0.1.0 on main. That starts the release workflow, which publishes to PyPI.

🤖 Generated with Claude Code

https://claude.ai/code/session_011GFY8v4QeVYzawpSLcJCzz

…ility

- The [pkgguard] extra depended on the PyPI name "pkgguard", which is
  unregistered: the install failed today, and whoever registered the name
  first would run code on every machine installing the extra. It now names
  the published distribution, blvkware-pkgguard>=0.1.2 (wheel checked: it
  provides pkgguard.service.verify_many, Python >=3.9).
- The anthropic provider sent temperature on every request. Current Claude
  models reject it with HTTP 400, so every sample failed and no report was
  written. On that specific 400 the provider now drops temperature for the
  rest of the run, records it per sample (and in the cache), and the CLI,
  HTML and Markdown reports state how many samples used default sampling.
  max_tokens raised to 16000 because always-on thinking shares that limit.
- README: install-from-git path (not on PyPI), current Claude model in the
  example, OPENAI_API_KEY fallback and default base URL, prompt counts per
  registry and tier, FAQ, citation and data licence.
- Add CITATION.cff, AGENTS.md, CSV column dictionary for the panel report,
  and fuller package metadata (URLs, classifiers, keywords).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011GFY8v4QeVYzawpSLcJCzz
Lets the agent do live installs (for example the [pkgguard] extra) without
being blocked. Scoped to pip and the repo's .venv; nothing else is allowed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011GFY8v4QeVYzawpSLcJCzz
…data

- Release workflow publishes on a v* tag via PyPI trusted publishing (no
  stored token); it runs the tests, checks the tag matches __version__,
  and validates the build with twine --strict first.
- License as an SPDX expression with license-files (setuptools>=77); the
  table form and license classifier are deprecated. Build is warning-free.
- README links are absolute so they work on the PyPI project page, and
  install instructions use `pip install slopbench`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011GFY8v4QeVYzawpSLcJCzz
@rxslice
rxslice merged commit 381ce4b into main Nov 12, 2026
4 checks passed
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.

2 participants