Define the ruled_by vocabulary, a prediction id, and a session id for docs/decisions/rulings.tsv #1757
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#1757
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
ruled_bycolumn ofdocs/decisions/rulings.tsvis free text, and a predicted row has no id of its Prediction. So no program can count rulings by rung, and no program can join a predicted row to its record in~/dev/os-me-store/prediction-log.jsonl. The chain scoring step needs both.Observed
Counts on 2026-11-13 over 164 rows:
ruled_byhas 14 distinct spellings:predicted87,orchestrator32,os-me predict18,Jared9,jared7,human2,predict2, and 7 free-text values with 1 row each, for examplepredicted (80)andJared (route), orchestrator (fallback).plugins/os-context/prompts/session-start/40-decisions.mddefines four values:orchestrator,outcome,nearest,predicted. It defines no value for a ruling that Jared gives. 19 rows name Jared orhuman.outcomeornearest.tiercolumn hasjaredin 4 rows andhumanin 2 rows. These are not tiers.id date tier question ruling ruled_by confidence sha_before undo. So a row can be joined to its transcript only by date and text.docs/decision-system/backfill/2026-11-13-rulings-chain-join.tsv) could not find the session of file line 83 (id 79). It gave 18 rows a held-out session by inference from queue time, and 7 rows a session by inference from commit time.confidence.session:<n>with asession_idfield.40-decisions.mdsays: "Write-insha_beforeandundo." ADR-0304 decision 2 says that a row with confidence under 75% carries the SHA and the undo command. The two texts do not agree.plugins/readsdocs/decisions/rulings.tsvtoday. ADR-0304 names readers in os-me predict and os-sdlc decision-tiers.Reproduce
n/a: data and convention ticket.
Approach
An ADR is required. ADR-0304 fixes the file location and the nine columns. It does not define the
ruled_byvalues. A closedruled_byset that code parses is parsed vocabulary, and a prediction id changes the fixed column set or the format of an existing column. Each is a one-way door. Run/os-adr:createfor a decision that supersedes ADR-0304, and accept its verdict.The decision must give:
ruled_byset. Proposed:orchestrator,outcome,nearest,predicted,jared.prediction-log.jsonl.session:<n>and is unique only withsession_id; #1233 changes the id format, so decide the join format with #1233 in view.sha_beforeandundotexts is correct.Required work: none beyond the acceptance criteria.
Orchestrator work:
/os-adr:create; updateplugins/os-context/prompts/session-start/40-decisions.mdandplugins/os-me/skills/predict/SKILL.mdto the decided format; migrate the existing rows;bin/refresh-plugins.Acceptance criteria
ruled_byvalues, then each value is in the closed set.ruled_by=predictedwritten after the change, when a script reads its prediction id, then the id finds one record inprediction-log.jsonl.ruled_byset, the prediction id, and the session id, and ADR-0304 shows the ADR that supersedes it.#1753 depends on this ticket.
Origin
VERDICT: CREATE (ticket-skeptic, 2026-11-13): design gaps the session did not cause; #1753 needs the id join; no open ticket defines this vocabulary or id.
Define the ruled_by vocabulary and a prediction id for docs/decisions/rulings.tsvto Define the ruled_by vocabulary, a prediction id, and a session id for docs/decisions/rulings.tsvResolution
Done: ADR-0313 (Accepted) supersedes ADR-0304: rulings.tsv has 11 columns with prediction_id and session_id; ruled_by is a closed set (jared, outcome, predicted, orchestrator; nearest is dropped, rungs 1 and 2 write outcome). 165 rows migrated; ids unique (16b, 24b, 25b, 140b); 40-decisions.md states the new header and rules; sha_before and undo carry values when confidence is under 75%.
Evidence: ADR commit
a69dc050b; migration commitf0623e8898. Check script: every row has 11 fields; ruled_by values are orchestrator 34, predicted 111, jared 20; all ids unique. Row 161 carries prediction_id session:1 and its session id; that pair finds 1 record in prediction-log.jsonl and 1 transcript file. No Ruby code reads or writes docs/decisions/rulings.tsv (searched plugins/ and bin/).Follow-ups: #1753 (unblocked: scoring from later corrections uses the join). 119 old rows have no session_id and all old rows but 161 have no prediction_id: dropped, the chain join had no exact value. outcome_node in the Store log: the judge ruled it not an ADR matter; storing it stays with #1753/#1756. The fast-batch and crc ledgers keep their own ruled_by values (different files): dropped.