decision-system S2c: moment record, log, cursor, extract CLI #1244
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#1244
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
Detected moments must persist in the Store as a stored format that other code parses. Nothing writes
DecisionMomentrecords today. A manual CLI is the tracer bullet that proves the whole chain on real train sessions.Approach
Required work:
DecisionMoment— check: presentclass DecisionMomentinplugins/os-me/lib/**/*.rbMomentLog, following thePredictionLogappend pattern — check: presentclass MomentLoginplugins/os-me/lib/**/*.rbExtractCursor— check: presentclass ExtractCursorinplugins/os-me/lib/**/*.rbos-me-extract, with a manual run and no hook — check: presentOsMeinplugins/os-me/bin/os-me-extractO-2 done 2026-10-23: the challenge narrowed it to the moment id scheme;
/os-adr:createrejected that (all readers inside os-me). No ADR. Use the format indocs/decision-system/extraction.md;MomentLogrows carryschema_version1 and read missing fields as nil, likePredictionLog#records. Orchestrator work: runos-me-extractover all train sessions. An agent checks a frozen sample of 50 points (train split) before any tuning. Gate:ConfidenceExtractorprecision at least 90%,ReplyShapeagreement at least 80%. Below that, run a tuning pass on those two objects (S10 method) before S3. Follow the AFK rules indocs/decision-system/build-plan.md: never wait for Jared, use the AFK default of each open item, and list each default used in the report.Acceptance criteria
os-me-extractruns, then the moment goes to the eval file and not to the train log.os-me-extractruns, thenMomentLoggains oneDecisionMomentin the format ofdocs/decision-system/extraction.md, withschema_version1.os-me-extractruns again, then it skips sessions already read.os-me-extractruns, then it exits with an error that names the Store path.abc, whenos-me-extractwrites it, then itsidisabc:7.Owner sketch
Scope and blocking
Blocked by: #1243
Fixtures: a held-out session that the CLI must route to the eval file. Reuse
Provenanceand thePredictionLogappend pattern.Non-goals: the SessionStart hook (S6); other moment kinds (S7).
Origin
DESIGN(docs/decision-system/build-plan.md).VERDICT: CREATE (user-approved; backlog search only)
jared referenced this issue2026-10-23 15:17:25 +00:00
jared referenced this issue2026-10-23 15:17:27 +00:00
jared referenced this issue2026-10-23 15:17:27 +00:00
jared referenced this issue2026-10-23 15:17:28 +00:00
Work started on branch ticket-1244 (worktree, stacked on ticket-1243). O-2: challenge narrowed to the id scheme; /os-adr:create rejected it; no ADR. Body updated: schema_version 1 and id-pin criterion 5. Log: docs/decision-system/afk-adr-log.md.
Resolution
Done: S2 extraction tracer complete: MomentExtractor, DecisionMoment, MomentLog, structured ReplyShape, mtime ExtractCursor; ReplyShape criteria tuned and the labeler moved from Haiku to Sonnet.
Evidence: Gate on the frozen 50: ConfidenceExtractor precision 35/37 = 94.6% (>= 90%); ReplyShape agreement 83.3% with Sonnet + tuned criteria (>= 80%; Haiku tuned 73.3%, first run 66%). Tune 86.7%, holdout 82.7%. Commits
dfaece2d(port),96fa1442(records),9a931fef; suite 211 runs 0 failures. Harness: plugins/os-me/eval/reply_shape/.Follow-ups: Rerun os-me-extract over all train sessions with the Sonnet labeler so moments.jsonl outcomes use the tuned criteria (orchestrator step, no ticket: the cursor skips unchanged sessions, so the rerun needs a fresh outcome pass; tracked in the S10 tuning stage #1252).