os-me: prediction records carry triggers, verdict, origin, and autopilot #1081
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#1081
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 #1074 takedown design (docs/takedown/1074-20261017-082123/final-design.json) stores id, session_id, text, confidence, and depth per ruling. Its grade names the fields that Jared decided on 2026-10-17 and that are still missing: trigger ids from the Why bullets, verdict set by the learner, origin and autopilot supplied by the hook. Without them bin/os-me-report (#1077) cannot compute hit rate per trigger or accept rate by origin, and the learning gate (#1078) cannot tell autopilot accepts from discussed sessions.
Design
/home/jared/dev/cc-os/docs/takedown/1081-20261017-083611/final-design.json
Approach
PredictionLog owns the record field list and null-normalized reads, while PredictionParser extracts triggers and CLI supplies origin, autopilot, verdict and scored_at.
Required work:
plugins/os-me/lib/os_me/prediction_log.rbplugins/os-me/lib/os_me/prediction_parser.rbplugins/os-me/lib/os_me/cli.rbplugins/os-me/test/prediction_fields_test.rbAcceptance criteria
Owner sketch
plugins/os-me/test/prediction_fields_test.rbLens challenge on the #1074 merge (A3): the record shape has no owner. PredictionParser builds id/text/confidence with symbol keys, cli.rb merges session_id and depth, PredictionLog reads string keys and decides matches in matching_indexes. When adding triggers, verdict, origin, and autopilot, give the record one owner (an OsMe::Prediction record with matches?(id, session_id) and one key shape) instead of spreading more keys across three files.
Work started on branch ticket-1081 (os-sdlc takedown-implement).
Resolution
Done: Prediction log owns the field list with null-normalized reads; parser extracts triggers; CLI supplies origin, autopilot, verdict, scored_at.
Evidence: Implementation 54 on takedown-implement: design placed, behavior-verifier pass (9/9 criteria), suite pass, contract-auditor pass. Commit
aa74938bon ticket-1081.Follow-ups: none