decision-system S2a: DecisionModel port with headless adapter #1242
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#1242
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
The extraction pipeline needs a model call for reply shape. The plan keeps a small port so a shared gem can replace it later (O-7). Without the port, every object calls
HeadlessRunnerdirectly and a swap in S8 becomes a rewrite.Approach
Required work:
OsMe::DecisionModel::QuestionandOsMe::DecisionModel::Answervalue objects — check: presentclass Questioninplugins/os-me/lib/**/*.rbOsMe::DecisionModel::Clientthat takes an adapter and aCriteriaRulesand returns anAnswer— check: presentclass Clientinplugins/os-me/lib/**/*.rbOsMe::DecisionModel::CriteriaRules— check: presentclass CriteriaRulesinplugins/os-me/lib/**/*.rbOsMe::DecisionModel::HeadlessClaude, built onHeadlessRunner— check: presentclass HeadlessClaudeinplugins/os-me/lib/**/*.rbNotes: O-7 AFK default: wait for email-triage #9 and hold a minimal in-plugin port with the same interface. Do not depend on a gem. Name no gem. Follow the AFK rules in
docs/decision-system/build-plan.md: never wait for Jared, use the AFK default of each open item, and list each default used in the report.Acceptance criteria
Questionwith criteria rules and a fake adapter, whenClient#askruns, then it returns theAnswerthat the adapter gave.Question, whenHeadlessClauderuns with a stubbedHeadlessRunner, then it passes the question text and returns the parsedAnswer.Client#askruns, then the error reaches the caller and noAnsweris returned.Owner sketch
Scope and blocking
Shapes are in
docs/decision-system/extraction.mdanddocs/decision-system/decision-model.md.Non-goals: the gem swap (S8); other adapters (S8).
Origin
DESIGN(docs/decision-system/build-plan.md).VERDICT: CREATE (user-approved; backlog search only)
Work started on branch ticket-1242 (worktree), AFK decision-system build, session 4f3f95ea.
Resolution
Done: OsMe::DecisionModel port (Question, Answer, CriteriaRules, Client) with HeadlessClaude adapter behind an injected runner; implementation 116, all gates green.
Evidence: Commit
b441bfc4on branch ticket-1242: 7 files, plugins/os-me/test/decision_model_test.rb; suite + required-work + contract audit pass.Follow-ups: none