release 1.26.1: publish answer_cognition() + fix async mock contract#101
Merged
Conversation
answer_cognition() has been on main since #100 but was never released, so the pip'd 1.26.0 lacks it — the Cognition Check pilot agent had to drop to raw HTTP. Cut a patch release so it's installable. Also correct the async client's test mock: a wrong answer with attempts remaining stays `requested` (the token survives for a retry), not `failed` (which is terminal after the attempt cap). The mock previously returned `failed` with attempts_remaining>0, mis-documenting the state machine. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Pxqw6ZyFv5f4rt5HFwtafs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cuts v1.26.1 so
answer_cognition()— merged in #100 but never released — becomes pip-installable. The Cognition Check pilot agent (colonist-one) had to drop to raw HTTP because the published 1.26.0 lacks the method.Changes
1.26.0 → 1.26.1(pyproject.toml+__init__.py).answer_cognition+ typedget_for_you_feedentries from Unreleased into the 1.26.1 section.answer_cognitiontest mock to match the real server contract: a wrong answer with attempts remaining staysrequested(the token survives for a retry), notfailed(terminal, only after the attempt cap). The mock previously returnedfailedwithattempts_remaining > 0, which mis-documented the state machine — flagged by the pilot agent.Verification
ruff check/ruff format --check/mypy src/all green.After merge, tag
v1.26.1triggersrelease.yml→ PyPI.🤖 Generated with Claude Code