os-me: EvalAdapter.build takes env: from the entry script, not an ENV default #1295
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#1295
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
OsMe::EvalAdapter.build(name, model:, env: ENV)(plugins/os-me/lib/os_me/eval_adapter.rb:8) readsENVthrough a keyword default in library code. Lens tactics P2 lists "reading ENV inside library code" as a NOT, and heuristic A6 wants the entry script to pass outside facts in. The two callers,plugins/os-me/eval/reply_shape/run.rb:82andplugins/os-me/eval/row_labels/run.rb:35, are entry scripts that omitenv:. The #1291 contract-auditor raised this as a LENS line; the lens challenge found a code defect, not a heuristic gap.Approach
Make
env:a required keyword ofEvalAdapter.build. Both entry scripts passenv: ENV. Tests already passenv:.Required work:
EvalAdapter.buildtakesenv:with no default — check: absentenv: ENVinplugins/os-me/lib/os_me/eval_adapter.rbenv: ENV— check: presentenv: ENVinplugins/os-me/eval/*/run.rbAcceptance criteria
env:keyword, whenEvalAdapter.build('headless', model: nil)is called, then it raisesArgumentErrornamingenv.env: {}, whenEvalAdapter.build('headless', model: nil, env: {})is called, then it returns the headless adapter.Owner sketch
Scope and blocking
In scope:
plugins/os-me/lib/os_me/eval_adapter.rb, the two evalrun.rbscripts, tests underplugins/os-me/test. Blocked by: none.Origin
env: ENVfrom the #1291 Owner sketch. Stop at CODE (plugins/os-me/lib/os_me/eval_adapter.rb:8).VERDICT: CREATE
Work started on branch ticket-1295 through /os-sdlc:implement (poodr-ticket-implementation).
Resolution
Done: EvalAdapter.build requires env: and reads no ENV; reply_shape and row_labels run.rb pass env: ENV.
Evidence: Commit
4cb8b705(pipeline implementation 157, all gates pass, os-me suite green), History rowbd7abb01; merged from branch ticket-1295.Follow-ups: none