Port os-backlog hooks/session_start.py to Ruby so the journey tracer records it #1522
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#1522
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 journey tracer (#1514) records in-process Ruby messages. The os-backlog SessionStart hook is Python (
plugins/os-backlog/hooks/session_start.py, 109 lines), so no journey can reach it. Ruling 2026-11-02 (session c39c41b9): the unit of a trace is an entry point's use case, and hooks are entry points like CLI commands andbin/executables. One entry point of os-backlog stays untraceable while it is Python.Reproduce
n/a: feature ticket; the gap is structural.
Approach
Port the hook to Ruby, following the Ruby hooks that os-aidd-lint and os-me ship. Then tag one journey test for it under #1514's tagging convention. Takedown decides the owner and seam.
Required work: none beyond the acceptance criteria.
Non-goals
Other Python hooks (os-adr
pre_tool_use.pyandsession_start.py, oschecks.py). Whether they need the same port is a separate question.Origin
plugins/os-backlog/hooks/session_start.pypredates the Ruby hook convention in os-aidd-lint and os-me)VERDICT: CREATE
Work started by hand in worktree ticket-1522 (takedown run docs/takedown/1522-20261103-085052; green-suite failed only on the design's own environment-asserting test test_wrapper_does_not_depend_on_bundler, which Jared ruled dropped).
Resolution
Done: Ported the os-backlog SessionStart hook to Ruby: hooks/session_start.rb wraps Backlog::SessionStart and Backlog::SessionNote; the Python file is deleted; output is byte-identical to the Python hook for the same stdin.
Evidence: main
b8a64991(500fe331code,b8a64991History row). Suite: 350 runs, 838 assertions, 0 failures. Rubocop: placed files clean; plugin-wide count 36, unchanged from main. Takedown run docs/takedown/1522-20261103-085052; its environment-asserting test test_wrapper_does_not_depend_on_bundler dropped by Jared's ruling (it asserted the host environment, not behavior).Follow-ups: none; the other Python hooks (os-adr, os) are outside #1514's scope and not a ticket until the map asks for them. Rubocop root Gemfile gap: dropped, documented workaround BUNDLE_GEMFILE=plugins/os-sdlc/Gemfile.