os-me: Stop hook appends prediction records; invocation hook records event and arguments #1075
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#1075
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
hooks/invocation_log.rb drops the hook event name and the skill arguments. Nothing can tell a typed prediction from an agent-called one. Nothing can tell an autopilot prediction either. No hook writes the record after the response.
Design
/home/jared/dev/cc-os/docs/takedown/1075-20261017-092011/final-design.json
Approach
InvocationLog keeps event and args in each entry, and a new PredictionRecorder (the single owner of origin/autopilot/idempotency) runs on Stop and calls OsMe::CLI.append in-process, then writes a Stop marker line into the same log.
Required work:
plugins/os-me/hooks/invocation_log.rbplugins/os-me/hooks/prediction_recorder.rbplugins/os-me/hooks/hooks.jsondocs/implementation-status/os-me.mdplugins/os-me/hooks/record_prediction.rbplugins/os-me/hooks/test/invocation_log_test.rbplugins/os-me/hooks/test/prediction_recorder_test.rbAcceptance criteria
Owner sketch
OsMe::CLI#append(unchanged)plugins/os-me/hooks/test/invocation_log_test.rbplugins/os-me/hooks/test/prediction_recorder_test.rbjared referenced this issue2026-10-17 12:31:36 +00:00
Also blocked by #1081: records must carry origin/autopilot (1075) and triggers/verdict (1077) first.
Work started on branch ticket-1075 (os-sdlc takedown-implement).
Resolution
Done: InvocationLog keeps event and args per entry; PredictionRecorder on Stop records each pending os-me:predict with origin (typed/agent) and autopilot through OsMe::CliAppender, then writes a Stop marker; a failed append writes no marker so the next Stop retries.
Evidence: Hand-finished after escalation 28 (implementation 55):
b8460ae9on ticket-1075. os-me suite 76 runs green (now includes hooks/test), rubocop clean, Stop-hook smoke test (loads, fails loudly with no marker; no-pending Stop exits 0 without loading the CLI). Opus design audit: 2 defects + 3 design findings + 2 nits, all corrected. Two pre-change Store sessions closed with Stop markers (os-me-store commit). Related placer defect fixed in12feb876.Follow-ups: none