fix(sr-2): correct ORDER BY direction in spec, clarify forge param JSDoc, add globalCavemanMode+missing-row test #885
No reviewers
Labels
No labels
area:agents
area:dashboard
area:database
area:design
area:design-review
area:flows
area:infra
area:meta
area:security
area:sessions
area:webhook
area:workdir
security
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/claude-hooks!885
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "dev/870"
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?
Summary
Addresses three review findings from the SR-2 code review (#870):
1.
specs/skills-rework.md— FixORDER BYdirectionThe spec incorrectly stated
ORDER BY scope DESCand'instance' > 'type'. The implementation already usedASC(correct, because'i' = 0x69 < 't' = 0x74). Updated all three occurrences in the spec to match reality.2.
skill-loader.ts— Clarifyforgeparam JSDoc onabortDispatchMissingSkillExpanded the single-line
forgeparameter comment to explicitly state that the forge adapter is resolved fromrepoviacreateForgeAdapterForRepo— not from theforgeargument itself. The non-obvious part was easy to miss.3.
renderPrompt.test.ts— Add missing coverage forglobalCavemanMode=true+ missing caveman rowThe existing tests covered
apply_caveman=1+ missing caveman row (graceful skip), but not theglobalCavemanMode=trueoverride path hitting the same null-check. New test proves the skip +appendix_missingwarning fires correctly on the override branch too.Tests
All 24 tests in the SR-2 suite pass (23 existing + 1 new).
36c15bc7b3561d08c1fa