os-me: catch llm-stack BadReply and move to decision-model on llm-stack #1474
Labels
No labels
P0
P1
P2
P3
bug
category/code-change
category/cross-repo
category/eval-run
category/investigation
category/no-test-target
category/owner-ruling
category/prose-artifact
category/recurring-chore
category/structure
category/umbrella
crc-refactor
create
delete
enhancement
filed-by/agent
filed-by/user
frozen
lint-rule
needs-info
needs-triage
next
plugin/cc-architect
plugin/os
plugin/os-adr
plugin/os-aidd-lint
plugin/os-backlog
plugin/os-context
plugin/os-doc-hygiene
plugin/os-sdlc
plugin/os-vault
project/cc-os
ready-for-agent
ready-for-human
recurring
review
rule-proposal
update
waiting
wayfinder:grilling
wayfinder:map
wayfinder:map
wayfinder:research
wayfinder:task
wayfinder:task
wontfix
worklist/deviations
worklist/lint-rule
worklist/new-implement-build
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jared/cc-os#1474
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
os-me uses decision-model, and decision-model#11 moves it onto llm-stack
LLM::Client#decide.llm-stack raises
LLM::Http::Errors::BadReplywhere decision-model raisedResponseErrorfor a bad provider reply.plugins/os-me/lib/os_me/lever_run.rb:43rescues onlyDecision::Model::ResponseError.After #11, a bad reply is no longer rescued, and os-me stops catching it silently.
cc-os also locks decision-model at 0.2.0 in
Gemfile.lock, and decision-model drops version numbers.Blocked by: jared/decision-model#11
Approach
Required work:
plugins/os-me/lib/os_me/lever_run.rb:43, makerescue Decision::Model::ResponseErroralso catchLLM::Http::Errors::BadReply— check: presentLLM::Http::Errors::BadReplyinplugins/os-me/lib/os_me/lever_run.rbResponseErrorraise inplugins/os-me/lib/os_me/headless_result.rb:12.Gemfile.lock(locked at decision-model 0.2.0) to the #11ref:, and update the matching Gemfile entry.plugins/os-me/skills/decision-model/SKILL.md:107-113andplugins/os-me/eval/row_labels/README.md:34to the new error names.Acceptance criteria
LLM::Http::Errors::BadReply, then the lever run rescues it and does not raise.HeadlessResultgets an unusable reply, when it raisesResponseError, then the lever run still rescues it.Gemfile.lock, when bundler resolves, then decision-model comes from the #11ref:.Owner sketch
OsMe::LeverRunrescues bothDecision::Model::ResponseErrorandLLM::Http::Errors::BadReply.Non-goals
Replacing
HeadlessClaude. That work is jared/cc-os#1471.Discoverer: /home/jared/dev/ruby-gems/decision-model (worktree ticket-11), session 4dc4e6fe-637f-4ccb-bed0-958ba608ffe3, 2026-10-29. os-me depends on decision-model error classes that #11 changes.
decision-model#11 landed as commit 962bfe9 on main (pin
ref: "962bfe9").CloudflareJev.buildnow takescredentials:(a Hash with account_id, api_token) instead ofaccount:. Adapters takeclient:(anLLM::Client).