Lens proposal: A15 does not count a rescue of a raiser-nested error as a caller #1287
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#1287
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
Lens heuristic A15 counts a rescue of an error class as a call from the rescuing concept. A nested error that one concept raises and a second concept rescues then counts as called from two concepts, so A15 asks to move it to the top level. The move hides the raiser from the reader. Two contract-auditor dispatches in #1284 flagged
Daemon::LspErrorthis way. An earlier signal flaggedAdr::Record::ParseErrorin os-adr the same way, and that clause was deferred.Observed
LENS lines from implementation 149 (#1284):
Lens challenge (opus, 2026-10-23), verdict for both lines: edit proposed. One edit to A15 covers both, because A2 defects (2) and (3) count callers as A15 does. The challenge rejected the broader "value or error" wording: it would also excuse
Daemon::Location, which Evidence builds itself (evidence/probe/lsp/lookup.rb:25).Reproduce
n/a: lens heuristic proposal; the LENS lines above are the evidence.
Approach
Add one NOT clause to A15 in
plugins/os-sdlc/skills/lens-architecture/SKILL.md: "NOT counting a rescue as a caller when the error class is nested under the object whose public method raises it and every outside reference rescues it around a call to that method; a rescuer is a caller of the raiser." Sources: POODR ch. 4, Ousterhout ch. 10. Add a lens-cases CASE entry withDaemon::LspErrorandAdr::Record::ParseError. Append signal lines tolens-signals/A15.jsonl(edited) andlens-signals/A8.jsonl(code). Check the earlier A15 signal lines (DesignPlacement, LintRun, WrongCostAssessor); none is an error class.Required work: none beyond the acceptance criteria.
Acceptance criteria
Daemon::LspError(raised byDaemon::Client#answer, rescued only around that call in Evidence), then A15 keeps it nested underDaemon.Daemon::Location(built by Evidence atlookup.rb:25), then A15 still flags it.Origin
/os-sdlc:implement 1284, implementation 149,os-sdlc-implementation-reportlens list, then the lens challengeplugins/os-sdlc/skills/lens-architecture/SKILL.mdA15)Ticket: #1284
VERDICT: CREATE