Chair learning: specific reasons only, and nothing used until you confirm it
pauljd/davidson-ci: Davidson CI / quality (push) Failing after 2m13s
pauljd/davidson-ci: Davidson CI / ai-review (push) Failing after 1m33s

Paul, 5 November 2026: two Ring X rejections (UFC 332, The Arena) taught
'fewer Action titles for Ring X', a broad conclusion from the one genre they
shared. Lessons now come from what decisions specifically share: a named
editorial concept (MMA, boxing, professional wrestling, made-for-TV
romance...) from two, or a genre that isn't one of the channel's own from
three; a channel's defining genres never make a lesson, and a concept beats
a genre for the same decisions. Every lesson is a proposal until confirmed
on the Chair (confirm, dismiss, or stop using it); only confirmed lessons
apply, and only while learning is on.

Also a read-only check of the proposed Ring X correction (wrestling first,
MMA events out); the channel's brief is unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-11-05 16:02:23 +00:00
co-authored by Claude Opus 5.5
parent 848c674546
commit 0d6d7ccf0c
6 changed files with 201 additions and 66 deletions
@@ -0,0 +1,31 @@
# Read-only check of the proposed Ring X correction (Paul, 5 Nov 2026): professional wrestling first, MMA events no longer Ring X. Not applied.
import sys,json,re
S='/tmp/claude-1000/-home-pauljd-Projects/c539a8ea-4816-4f5b-8d2a-3efd663b12ac/scratchpad'
sys.argv=['x',S+'/rx',S+'/fixture2']
src=open('/home/pauljd/Documents/Codex/orbit-tv/docs/replays/stage-d-trial-7.py').read().split("if __name__=='__main__':")[0]
g={}; exec(src,g)
ev,place,B,W,score=g['ev'],g['place'],g['B'],g['W'],g['score']
items=list(ev.values())
before={r['id']:place(r) for r in items}
PROMO=re.compile(r"WWE|World Wrestling|All Elite Wrestling|\bAEW\b|\bTNA\b|Total Nonstop|Impact Wrestling|New Japan|\bNJPW\b|Ring of Honor|\bROH\b|\bNWA\b|\bWCW\b|\bECW\b|Lucha|Stardom|Game Changer Wrestling",re.I)
MMA=re.compile(r"\b(UFC|MMA|mixed martial|Bellator|PFL|Ultimate Fighting|cage (fight|bout)|octagon)",re.I)
B['401']=dict(B['401'],themes=W('wrestl','WWE','AEW','TNA','NJPW','ROH','Impact Wrestling','NXT','SmackDown','WrestleMania','Royal Rumble','SummerSlam','Survivor Series','Money in the Bank','Bound for Glory','WrestleDream','title match','pay-per-view'),
against=W('romance'))
def score2(r,ch):
text=' '.join([r.get('name') or '',r.get('overview') or '',' '.join(r.get('studios') or [])])
if MMA.search(text) and not PROMO.search(text): return 0,['an MMA event: Ring X is professional wrestling, and no other channel takes combat sports events']
s,e=g['_score'](r,ch)
if ch=='401' and PROMO.search(' '.join(r.get('studios') or [])): s+=.15; e=e+['a verified wrestling promotion']
return s,e
g['_score']=score; g['score']=score2
after={r['id']:place(r) for r in items}
def rx(d,i): return d[i]['top']=='Ring X' and d[i]['verdict']=='suggested'
lost=[(before[i]['title'],before[i]['s1'],after[i]['top'],after[i]['s1'],after[i]['verdict']) for i in before if rx(before,i) and not rx(after,i)]
gained=[(after[i]['title'],after[i]['s1']) for i in after if rx(after,i) and not rx(before,i)]
print('Ring X suggested before',sum(rx(before,i) for i in before),'after',sum(rx(after,i) for i in after))
import collections
print('LOST',len(lost),collections.Counter('UFC' in x[0] for x in lost)); [print(' ',x) for x in lost if 'UFC' not in x[0]]
print('GAINED',gained)
other=[(after[i]['title'],after[i]['top'],after[i]['s1']) for i in after if not rx(before,i) and before[i]['top']!=after[i]['top'] and after[i]['verdict']=='suggested']
print('OTHER moves',other[:10])
json.dump(dict(lost=lost,gained=gained),open('rx-result.json','w'))