mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-27 21:29:04 +01:00
Some checks are pending
md-naming / markdown naming convention (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (mypy, mypy) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (pylint, pylint) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (rest, ) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (shellcheck, shellcheck) (push) Waiting to run
Python tests / test (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
Shell tests / shell-tests (push) Waiting to run
Shell tests / lib-tests (push) Waiting to run
Shell tests / arch-tests (push) Waiting to run
The claude wrapper reads the statusLine limit-state cache and routes to claude-free (public dirs only) when a usage window is at 100 %. CLAUDE_USE_FREE=1/0 forces either way. Claude workflow steps no longer fail the check when the limit is spent. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
36 lines
1.8 KiB
JSON
36 lines
1.8 KiB
JSON
{
|
|
"intent": "Claude-dependent features in testsAndMisc keep working once the Claude usage limit is spent: the interactive claude wrapper switches to the free models, and the Claude GitHub workflows no longer turn checks red.",
|
|
"scope": [
|
|
"linux_configuration/zsh/claude-tty-fix.zsh (claude and claude-* wrappers)",
|
|
".github/workflows/claude.yml, .github/workflows/claude-code-review.yml",
|
|
"python_pkg/code_tutor already falls back to Ollama on anthropic.APIError; unchanged",
|
|
"Non-goal: free models in private repos (free providers log prompts)"
|
|
],
|
|
"changes": [
|
|
"claude() reads the newest ~/.claude/cache/limit-state shard; a 5-hour or 7-day window at 100% with a future reset routes the call to claude-free when free-llm-check-dir allows the cwd",
|
|
"CLAUDE_USE_FREE=1 forces claude-free, CLAUDE_USE_FREE=0 keeps the real binary",
|
|
"Claude workflow steps get continue-on-error so a spent limit does not fail the check",
|
|
"Dependency pins bumped to newest stable for the freshness gate"
|
|
],
|
|
"verification": [
|
|
{
|
|
"command": "python3 -m pytest -q linux_configuration/tests/test_claude_tty_fix_free.py",
|
|
"result": "pass",
|
|
"evidence": "Red first: 3 failed, 7 passed (auto-routing absent). After the change: 10 passed."
|
|
},
|
|
{
|
|
"command": "LIMIT_STATE_DIR=<spent state> zsh -fc 'source claude-tty-fix.zsh; cd /tmp; claude -p \"Reply with exactly: FREE_OK\"'",
|
|
"result": "pass",
|
|
"evidence": "Answer FREE_OK came back through the OmniRoute free-best model; in ~/praca_magisterska the same state picked 'command claude'."
|
|
}
|
|
],
|
|
"risks": [
|
|
"A stale shard with a future reset could route to free models after an early reset; CLAUDE_USE_FREE=0 overrides",
|
|
"One jq fork per claude launch"
|
|
],
|
|
"rollback": [
|
|
"git revert the commit",
|
|
"Check that claude -p hi runs the real binary again"
|
|
]
|
|
}
|