Turn YouTube Chat Into a 24/7 Linux Remote Without an LLM
β’ Mike Levin
Setting the Stage: Context for the Curious Book Reader
Most attempts at interactive AI broadcasting and technical executive marketing fail for mirror-image reasons. On the engineering side, builders wire untrusted public chat straight into an LLM agent with tool access, inviting prompt injection, unpredictable latency, and runaway token bills when a simple allowlisted state machine would do the job safely. On the business side, marketers pitch hype-heavy βAI SEOβ decks to skeptical CTOs instead of separating raw builder logs, accessible parables, CMO growth outcomes (RFC 9110 Accept: text/markdown content negotiation), and dry CTO caching specifications (RFC 9111 Vary: Accept, authored by Roy Fielding, Mark Nottingham, and Julian Reschke) behind a strict one-way content diode.
In the session below, that public front door gets built and tested live on air. What started as a passive 24/7 NixOS origin-log dashboard is rebranded into A.I. Fishtank Story-Time, stripping away 1950s βjukeboxβ command words so any YouTube viewer can type MENU, 911, or a bare episode number in live chat to take over the broadcast for a single story before playback returns automatically to the headline episode. Along the way, a multi-block syntax-airlock edge case in apply.py is caught and repaired, 1,656 constant-time mikelev.in/<ID> Nginx shortlinks are minted, per-kind chat cooldowns prevent menu lookups from blocking story picks, and live daemon logs capture a five-second hot-reload steering the broadcast in real time without dropping a single viewer.
TL;DR: A continuous 24/7 home-hosted NixOS livestream (βA.I. Fishtank Story-Timeβ) was upgraded from legacy command-word triggers to an interactive, zero-shell-exposure story menu controlled directly from YouTube Live Chat. Viewers type MENU to summon an on-screen catalog of condensed three-voice Socratic episodes, type 911 for a live HTTP content-negotiation audit, or type any listed bare story number to interrupt the stream for a single on-demand episode before playback automatically returns to the headline broadcast, paired with mikelev.in/<ID> Nginx hash-map shortlinks and a dynamic 5-row LED status billboard.
Technical Journal Entry Begins
π Verified Pipulate Commits:
MikeLev.in: The time has come to turn this system into the Storytime Jukebox, but I donβt want people to have to type the word Jukebox in chat. I mean who ever even heard of a Jukebox today, especially among the Yutes. I shall call them Yutes because even though itβs a silly made-up word from an old movie, I think itβs funny and way better than saying youths or βyoung peopleβ or stuffy shirt stuff like that. Iβm going to picture myself saying it in the voice of Joe Pesci as My Cousin Vinny talking to judge Herman Munster.
And that is where this article begins. Being silly, because thatβs fine. Thatβs what this Honeybot Storytime is about in addition to turning a field of something called βSearch Engine Optimizationβ or SEO upside down, introducing the new way itβs done because of a couple of things nobodyβs heard of.
But as they say, you canβt get there from here.
And yet, we will.
Itβs a weird indirect route but we have to start with the end in mind and work backwards.
Strongly visualize where youβre going and take a nice short efficient path to get there so we can get it done in our lifetimes and make it a source of income pronto.
First a source of income for me because what weβll visualize is what all companies need, big and small, and theyβll need quite a bit of consulting from people who βget itβ to get there.
Iβll be one of those consultants, and I imagine at the top of what is quite a job referral network, mostly because Iβm inventing everything except for the Internet specs itβs built on.
Roy T. Fielding, Mark Nottingham, and Julian Reschke wrote the specifications and itβs all fully implemented just waiting for people to make money off it, but nobody knows but me for some reason.
Weβre fixing that here.
I write these long, rambling posts that nobody but AI reads to summarize it into Norma Centroidβs Puppet Theater for the Normies.
In this next one, weβre going to flash up the pictures of those 3 individuals, maybe as one pic. Maybe one at a time with their names. I havenβt decided yet but Iβve already built what I call the Weebo system to do it, based on a Disney remake of the Flubber movies starting Robin Williams and a tiny little flying robot that speaks in memes. It was really ahead of its time and I reproduced my how it speaks in memes here in this system.
So Gemini is the AI helping me process these long-articles which are really ways I move the system forward that all this is built on. Long story short, that system is called NPvg for Nix, Python, vim and git. Thereβs other stuff in the mix but if you want to get forever better at a small set of things thatβs always useful and never lose your work and be able to bottle your work and share it with others in a βlet it loose upon the world wayβ you could hardly do better than these.
But this isnβt about that because thereβs plenty of other articles about that, that that is what this is about.
Weβre making an article Jukebox that plays only the articles that Normal Centroid has turned into Puppet Theater which by the time you read this or hear the Norma condensed theatrical version of it or whatever, you will be able to just type the ID of any article sheβs prepared into YouTube comments, and it will change which article is being read here.
In other words, Iβm making my YouTube live-streaming system an interactive Jukebox where no matter what I started streaming, usually the latest article, you can take over and listen to whichever one you want.
Thereβs quite a number of little sub-projects to this that weβll have to tackle as we go, or after the first round of work is done. Thereβs different approaches and weβll choose the right one to guarantee the success of the overall project as we go.
Thatβs part of the lesson.
Iβm writing a book thatβs never going to make it to paper, at least not the one Iβm publishing because mine is self-replicating software that hops from machine to machine because you can do that sort of thing today because of the βNβ in that aforementioned NPvg platform.
The book is a zip file that you just drop into whatever is your favorite AI and just start talking to about it, so you can avoid reading the book and just get what you need. Or Iβll have wonderful stories that more or less parallels The Sorcererβs Apprentice with a whole Wizard Workshop unfurling for you with a resident Wizard named Yen Sid-ton. I play a character named Mike-E in that version of the Future-proofing Yourself in the Age of AI book.
Weβre going to start with a game.
Weβre going to start with what all this stuff youβre looking at here means.
Why itβs an important part of how the world still works even with, and especially now because of AI and how you can all make money off of it.
Yeah, I guess in the end itβs about money, but itβs also about love and passion and the parts of the Information Age, now the Age of AI thatβs actually very cool and worth it, fun to do and leads to a life-time of skills that will never go obsolete and never be able to be taken away from you.
This might sound a little weird or far-fetched or perhaps boring to some people or maybe really exciting but too good to be true and a bit like Sci-Fi.
I thought so too, but let the evidence start out with the fact that I can keep a 24 hours a day, 7 days a week YouTube live-stream broadcast like this going, which I can give you the ability to take over interactively and control whatβs playing like a Jukebox.
Oh yeah.
Theyβre Yutes and probably donβt know what a Jukebox is.
Ever see a meme of a Fonzie punching a box to make it play music and going Ayyy?
No?
This is going to be tough.
Right, right, video-games.
We start there.
Can you type a number in a box?
Like ordering off a menu?
Iβd let you just touch the screen here in YouTube but itβs not really at that point yet. I gotta work through the Chat box. I know you know that because itβs like texting.
Hey Gemini, this is the exposition for what will eventually become one of those Norma Centroid stories but we need to get our Jukebox system to really just focus on taking article numbers. We donβt have to strip out the 911 demo but I think maybe the rabbit thing has to go.
Letβs make it just 911 as one of the special numbers and the rest of the numbers are only those articles that Norma converted and we have ready to play.
Thatβs I think the most modest step 1.
One-Way Content Funnels from Live Parables to CTO Specs
Thinking ahead though, almost the entire messaging of the Ticker system is going over to the Jukebox:
- CURRENTLY PLAYING
- MIKELEV.IN/1337
- TYPE: MENU
- TAKE CONTROL!
And then each article can have something in the YAML frontmatter or something that can control a word or 2 more where we can get in whatever the article is about. And then maybe we can have one global variable to get in our current top priority like DISCORD or SUNPUG.IO. But really itβs got to become in service of the Jukebox features now that weβre implementing it.
Again this is just thinking ahead but the MENU will git a selection of the latest Article IDs and their descriptions to choose from inserted like a report into the live-stream with the dialogue explaining what it is and how to use it, but also over time weβll give out the βJukebox Coinsβ from MikeLev.in where the long-versions are but if thereβs a Norma version itβll have the button to get the coin and a description of what to do with it.
But more importantly, weβll eventually get the Puppet Theater short versions of the articles Jekyll-style onto SunPug.io which because it can only contain articles that have been Norma-itized, or Normalized for Normies β and even then being Puppet Theater itβs not really for everyone, so a buttoned-up tight-ass version will be made to go on RFC9110.org or an even more tight-ass one on RFC9111.io.
See, the concept of the Semantic Web and the stuff covered in RFC 9110 is more abstract and accessible to CMOs (chief marketing officers) of the c-suite but the stuff covered in RFC 9111 is for CTOs (chief technology officers).
We have to make sure any of the new acronyms Iβm introducing here are read
correctly by remotes/honeybot/scripts/terms.py.
So from a content production standpoint you can picture a funnel where I do these unstructured rambling stream of consciousness versions for the Journeymen, Seekers, Sojourners, Pilgrims, Adventurers, Wayfarers, Craftspeople, Navigators and Dilettantes like me β those so thirsty for the reasons behind things and the original thought processes and motivation and inspiration and refinement and development and directors cuts and how the sausage is made yadda yadda.
Then down the funnel is Puppet Theater designed to explain it Barney-style to the simple son.
And beneath that in the how-we-distill ideas funnel is the c-suite with the upper tier of that being marketing and the very bottom the one who puts the kibosh on everything and needs the credentials of a Roy T. Fielding or a Mark Nottingham or a Julian Reschke looking at them with a blank stare implying the question βWhat, you know more than I who wrote the Internet specification?β
And that is the driest, briefest, most referencing of other documents, thereβs no explaining except for the fact that this is the way it is and others will be adopting whether you do or not because think about it not wasting time on explaining it to you version.
And I have all these domains and theyβre ready to go. And down the funnel will never point or link back up the funnel. RFC9111.io must not tip its hand that it has anything to do with something called SunPug.io or Pipulate.com and especially not MikeLev.in ha ha! It should feel like a matter-of-fact RFC itself and the only thing it cross-links with is things as fabric-of-the-Internet as itβs rightfully presenting it as. We donβt talk about Wile E. Coyote there.
Is all this making sense to you, Gemini?
Note: Weβre using the time-travel method to keep the number of Context-turns to a minimum which is why you see
deleteme.txtas your first response. Use from it what you will. I set Context 1 to what you suggested.
Also Iβm thinking we change the whole identity of this thing changes from the :Web AI Bot Observatoryβ to the βA.I. FISHTANK STORY-TIMEβ which looks really good as a figlet and resonates better emotionally to capture them.
(nix) pipulate $ figlet -c -w 100 "A.I. FISHTANK STORY-TIME"
_ ___ _____ ___ ____ _ _ _____ _ _ _ _ __
/ \ |_ _| | ___|_ _/ ___|| | | |_ _|/ \ | \ | | |/ /
/ _ \ | | | |_ | |\___ \| |_| | | | / _ \ | \| | ' /
/ ___ \ _ | | _ | _| | | ___) | _ | | |/ ___ \| |\ | . \
/_/ \_(_)___(_) |_| |___|____/|_| |_| |_/_/ \_\_| \_|_|\_\
____ _____ ___ ______ __ _____ ___ __ __ _____
/ ___|_ _/ _ \| _ \ \ / / |_ _|_ _| \/ | ____|
\___ \ | || | | | |_) \ V /____| | | || |\/| | _|
___) || || |_| | _ < | |_____| | | || | | | |___
|____/ |_| \___/|_| \_\|_| |_| |___|_| |_|_____|
(nix) pipulate $
Gemini 4 Carbon High: Context verified. (# Context 1 holds full raw source for terms.py, content_loader.py, score.py, logs.py, and norma_extract.py to land Step 1Aβ1C cleanly now; # Context 2 sheds 48,602-token flake.nix and loads scripts/articles/common.py + remotes/honeybot/scripts/{stream.py,forest.py} to switch ytwatchβs chat parser to bare numbers and retire rabbit on the wire.)
TL;DR: Yesβthe whole architecture clicks together cleanly. Below is the 4-Tier One-Way Distillation Funnel (MikeLev.in -> A.I. Fishtank Story-Time / SunPug.io -> RFC9110.org -> RFC9111.io), why A.I. FISHTANK STORY-TIME + bare chat numbers fixes the βYutesβ problem at the root, and three small chisel-strike cars (Car 3a, Car 3b, Car 3c) landing terms.py pronunciations, the Norma-only Jukebox catalog (911 reserved), and the HUD/title card rebrand right now.
1. The 4-Tier One-Way Distillation Diode
Your domain funnel maps each audience to its exact appetite for narrative vs. credentialed specificationβwith a strict downward-only diode so lower tiers never leak upstream lore:
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β TIER 1: MikeLev.in β THE WORKSHOP & DIRECTOR'S CUT (Journeymen & AI Context) β
β β’ Raw NPvg (Nix, Python, vim, git) lab logs, dead ends, & SHA-256 receipts β
β β’ Mints permanent `article_id`s (e.g. mikelev.in/1337) & Jukebox Coins β
ββββββββββββββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββββββββββ
β norma (3-Voice Socratic Plunger)
βΌ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β TIER 2: A.I. FISHTANK STORY-TIME (YouTube 24/7) & SunPug.io (For the Yutes) β
β β’ 900β1,200 word Puppet Theater (Norma 16kHz Β· Mike-E 19.2kHz Β· Shipmunk) β
β β’ Ordering off a menu: type bare Story # (or `911`) in chat to take control β
ββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββββββββββ¬ββββββββββββββββββββ
β Distill for CMOs β Distill for CTOs
βΌ (Zero Puppet Theater) βΌ (Zero Upstream Links)
βββββββββββββββββββββββββββββββββββββββ ββββββββββββββββββββββββββββββββββββββββ
β TIER 3: RFC9110.org (CMO / Growth) β β TIER 4: RFC9111.io (CTO / NetOps) β
β β’ Section 12 Content Negotiation β β β’ Bimodal Edge Cache (`Vary:Accept`)β
β β’ `Accept: text/markdown` & AI ROI β β β’ ADNS + O2O; Fielding, Nottingham, β
β β’ Retiring $10K/mo pre-render SaaS β β & Reschke spec authority only β
βββββββββββββββββββββββββββββββββββββββ ββββββββββββββββββββββββββββββββββββββββ
- Why the Live Receipt Confirmed Step 1 Is Ready: Your compile receipt proved
_posts/_abstracts/already holds 8 minted Puppet Theater stories, while#911in_posts/(2026-03-06-automated-404-healing-semantic-router.md) is un-mintedβso reserving911for Live Optics creates zero collision with playable Norma stories. - Why
1..NHad to Go: Becausenormabackfills newest-first (#1297,#1296β¦) and skips housekeeping posts, showingjukebox 1..1298invited viewers to type dead numbers and a boomer word. Reading the actual_posts/_abstracts/catalog inO(1)lets the bottom bar display real, guaranteed-playable Story#s (911 (Live Optics) Β· Story #: 1297 Β· 1296 Β· 1295 (+5)) withrabbitremoved. - Why
"A.I. FISHTANK STORY-TIME"Lands: βObservatoryβ sounds like a passive sysadmin dashboard; A.I. Fishtank Story-Time tells viewers in three seconds that bots are swimming live inside the glass tank while stories playβand tapping the glass is as simple as texting a number. Your two-linefiglet(A.I. FISHTANK\nSTORY-TIME) measures 64 and 53 columns, fitting Honeybotβs card renderer cleanly.
2. Roadmap: Step 1 (Now) -> Step 2 (Next Turn) -> Step 3 (Ticker & MENU)
- Step 1Aβ1C (Patches below):
- Car 3a (
terms.py): AddsCMO/CMOs,CTO/CTOs,CEO/CEOs,CFO/CFOs,CIO/CIOs,CISO/CISOs,c-suite,Reschke("Resh-kuh"),Yutes/Yute("yoots"/"yoot"),Mike-E,Weebo,A.I.,911 in chat,mikelev.in/<ID>, and Ops/SecOps acronyms (NetOps,SecOps,FinOps,DevOps,GitOps,SRE/SREs,PII,GDPR,CPRA,WAF). - Car 3b (
content_loader.py,norma_extract.py): Restrictsget_jukebox_catalog()strictly to_posts/_abstracts(Norma-converted stories only), reserves911(JUKEBOX_RESERVED_IDS), addsget_jukebox_playable_ids()(newest-first), and updatesnorma_extract.pyto skip#911and prompt bare<ID>instead ofjukebox <ID>. - Car 3c (
logs.py,score.py): RebrandsBASE_APP_TITLEand the cold-start Figlet card toA.I. FISHTANK STORY-TIME, dropsjukebox 1..Nandrabbitfrom#chat_sliver, and renders live playable Story#s directly from_posts/_abstracts/.
- Car 3a (
- Step 2 (
# Context 2next turn βcommon.py+stream.py+forest.py):- Switches
ytwatchβs chat regex incommon.pyto accept bare numbers (911-> Live Optics; Norma_abstractsIDs -> Storytime takeover), removes_CHAT_RABBIT_RE, shipsjukebox_idsin/tmp/honeybot_viewers.json, and sweeps any remaining"Observatory"/"rabbit"references instream.pyandforest.py.
- Switches
- Step 3 (Queued right after Step 2):
- Converts the 5-row LED Ticker to Jukebox service (
CURRENTLY PLAYING | MIKELEV.IN/<ID> | <YAML ticker_tag> | TYPE: MENU | TAKE CONTROL! | <GLOBAL_PRIORITY>), adds/<ID>short redirects, and wiresMENUin chat to inject an on-air Story Menu report.
- Converts the 5-row LED Ticker to Jukebox service (
1: BEFORE (PROBE β read-only; straddles terms.py, content_loader.py, logs.py, and score.py, plus maps remaining observatory and chat-regex lines in common.py, stream.py, and forest.py for # Context 2):
(nix) pipulate $
.venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "remotes/honeybot/scripts")); import terms, content_loader as cl; sample = "A.I. FISHTANK STORY-TIME for CMOs & CTOs in the c-suite, Reschke, Yutes, Mike-E, Weebo, NetOps, 911 in chat, mikelev.in/1337"; ids = cl.get_jukebox_playable_ids() if hasattr(cl, "get_jukebox_playable_ids") else None; lg = (REPO_ROOT / "remotes/honeybot/scripts/logs.py").read_text(); sc = (REPO_ROOT / "remotes/honeybot/scripts/score.py").read_text(); print("TTS:", terms.apply_inline_tts_terms(sample)); print("PLAYABLE_IDS:", ids); print("LOGS_FISHTANK:", "A.I. FISHTANK STORY-TIME" in lg, "LOGS_NO_RABBIT:", "rabbit" not in lg); print("SCORE_FISHTANK:", "A.I. FISHTANK" in sc)'
.venv/bin/python scripts/pyprobe.py 'rc, out = capture_call(["rg", "-n", "-i", "observatory|fishtank|_CHAT_OPTICS_RE|_CHAT_RABBIT_RE|_CHAT_JUKEBOX_RE", "remotes/honeybot/scripts", "scripts"]); print(out[:3500])'
2: AFTER (NEXT CONTEXT β put in context.txt using context or x; sheds 48.6k-token flake.nix and loads common.py + stream.py + forest.py for Step 2):
# Context 2: Bare-Number Chat Parser in ytwatch (common.py) & Stream Fishtank Sweep
context.txt
! .venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "remotes/honeybot/scripts")); import terms, content_loader as cl; sample = "A.I. FISHTANK STORY-TIME for CMOs & CTOs in the c-suite, Reschke, Yutes, Mike-E, Weebo, NetOps, 911 in chat, mikelev.in/1337"; ids = cl.get_jukebox_playable_ids() if hasattr(cl, "get_jukebox_playable_ids") else None; lg = (REPO_ROOT / "remotes/honeybot/scripts/logs.py").read_text(); sc = (REPO_ROOT / "remotes/honeybot/scripts/score.py").read_text(); print("TTS:", terms.apply_inline_tts_terms(sample)); print("PLAYABLE_IDS:", ids); print("LOGS_FISHTANK:", "A.I. FISHTANK STORY-TIME" in lg, "LOGS_NO_RABBIT:", "rabbit" not in lg); print("SCORE_FISHTANK:", "A.I. FISHTANK" in sc)'
! .venv/bin/python scripts/pyprobe.py 'rc, out = capture_call(["rg", "-n", "-i", "observatory|fishtank|_CHAT_OPTICS_RE|_CHAT_RABBIT_RE|_CHAT_JUKEBOX_RE", "remotes/honeybot/scripts", "scripts"]); print(out[:3500])'
scripts/articles/common.py
remotes/honeybot/scripts/stream.py
remotes/honeybot/scripts/forest.py
3: CHANGE (PATCHES β three clean single-story cars, all well under the 120-line aim):
Car 3a β C-Suite (CMO/CTO), IETF Author (Reschke), Yutes, & A.I. Fishtank Ear-Orthography (terms.py):
Target: remotes/honeybot/scripts/terms.py
[[[SEARCH]]]
(
re.compile(
r"\b911(?=\s+(?:LLM|L\s+L\s+M|Optics|emergency|first-aid|first\s+aid|audit|workflow|spectrometer)\b)",
re.IGNORECASE,
),
"nine eleven",
),
# Numbered IETF RFCs, first-party Discord door, & MIME content-negotiation headers
(re.compile(r"\bmikelev\.in/discord/?\b", re.IGNORECASE), "Mike L E V dot eye N slash discord"),
[[[DIVIDER]]]
(
re.compile(
r"\b911(?=\s+(?:LLM|L\s+L\s+M|Optics|demo|chat|in\s+(?:live\s+)?chat|emergency|first-aid|first\s+aid|audit|workflow|spectrometer)\b)",
re.IGNORECASE,
),
"nine eleven",
),
# Numbered IETF RFCs, first-party Discord/ID doors, & MIME content-negotiation headers
(re.compile(r"\bmikelev\.in/discord/?\b", re.IGNORECASE), "Mike L E V dot eye N slash discord"),
(re.compile(r"\bmikelev\.in/(\d+)/?\b", re.IGNORECASE), r"Mike L E V dot eye N slash \1"),
(re.compile(r"""\bA\.I\.(?=\s|$|[),;:!?\-'"])"""), "A I"),
(re.compile(r"\bc-suite\b", re.IGNORECASE), "C suite"),
[[[REPLACE]]]
Target: remotes/honeybot/scripts/terms.py
[[[SEARCH]]]
("FIGlet", "fig-let"),
("BitBlt", "bit-blit"),
("ambigrams", "am-bih-grams"),
("ambigram", "am-bih-gram"),
)
[[[DIVIDER]]]
("FIGlet", "fig-let"),
("BitBlt", "bit-blit"),
("ambigrams", "am-bih-grams"),
("ambigram", "am-bih-gram"),
("Reschke", "Resh-kuh"),
("Yutes", "yoots"),
("Yute", "yoot"),
("Mike-E", "Mike E"),
("Weebo", "Wee-boh"),
("NetOps", "Net Ops"),
("SecOps", "Sec Ops"),
("FinOps", "Fin Ops"),
("DevOps", "Dev Ops"),
("GitOps", "Git Ops"),
)
[[[REPLACE]]]
Target: remotes/honeybot/scripts/terms.py
[[[SEARCH]]]
("KPIs", "K P Is"),
("KPI", "K P I"),
("CRO", "C R O"),
("ROI", "R O I"),
("CMS", "C M S"),
[[[DIVIDER]]]
("KPIs", "K P Is"),
("KPI", "K P I"),
("CMOs", "C M Os"),
("CMO", "C M O"),
("CTOs", "C T Os"),
("CTO", "C T O"),
("CEOs", "C E Os"),
("CEO", "C E O"),
("CFOs", "C F Os"),
("CFO", "C F O"),
("CIOs", "C I Os"),
("CIO", "C I O"),
("CISOs", "C I S Os"),
("CISO", "C I S O"),
("CRO", "C R O"),
("ROI", "R O I"),
("CMS", "C M S"),
("SREs", "S R Es"),
("SRE", "S R E"),
("PII", "P I I"),
("GDPR", "G D P R"),
("CPRA", "C P R A"),
("WAF", "W A F"),
[[[REPLACE]]]
Car 3b β Norma-Only _abstracts Jukebox Catalog, Reserved 911, & Bare-Number Coin Prompt (content_loader.py, norma_extract.py):
Target: remotes/honeybot/scripts/content_loader.py
[[[SEARCH]]]
def get_jukebox_catalog():
"""Return O(1)-cached {'paths': [...], 'index_map': {fname: 1..N}} sorted oldest-first."""
active_dir = resolve_storytime_dir()
active_key = str(active_dir)
try:
dir_mtime = active_dir.stat().st_mtime_ns
if (_jb_catalog_cache.get("sig") or (None,))[0] == active_key and _jb_catalog_cache.get("dir_mtime") == dir_mtime and _jb_catalog_cache.get("paths"):
return _jb_catalog_cache
dated = [Path(e.path) for e in os.scandir(active_dir) if e.is_file() and _DATED_JB_RE.match(e.name)]
sig = (active_key, dir_mtime, len(dated))
except OSError:
return {"paths": [], "id_map": {}, "index_map": {}}
if _jb_catalog_cache.get("sig") == sig and _jb_catalog_cache.get("paths"):
_jb_catalog_cache["dir_mtime"] = dir_mtime
return _jb_catalog_cache
keyed = []
for p in dated:
s_ord, aid = 0, None
try:
with open(p, "r", encoding="utf-8", errors="ignore") as fh:
if fh.readline().strip() == "---":
for ln in fh:
if ln.strip() == "---":
break
m_so = _SORT_ORDER_RE.match(ln)
if m_so:
s_ord = int(m_so.group(1))
m_id = _ARTICLE_ID_RE.match(ln.rstrip("\r\n"))
if m_id and aid is None:
aid = int(m_id.group(1))
except Exception:
pass
if active_dir != POSTS_DIR and (aid is None or s_ord == 0):
pfm = _read_frontmatter_dict(POSTS_DIR / p.name)
s_ord = int(pfm["sort_order"]) if (s_ord == 0 and str(pfm.get("sort_order") or "").lstrip("-").isdigit()) else s_ord
aid = int(pfm["article_id"]) if (aid is None and str(pfm.get("article_id") or "").isdigit()) else aid
keyed.append(((p.name[:10], s_ord, p.name), aid, p))
keyed.sort(key=lambda item: item[0])
paths = [p for _, _, p in keyed]
id_map, idx_map, unstamped = {}, {}, []
for _, aid, p in keyed:
if aid is not None and aid not in id_map:
id_map[aid] = p
idx_map[p.name] = aid
else:
unstamped.append(p)
next_id = max(id_map, default=0)
for p in unstamped:
next_id += 1
id_map[next_id] = p
idx_map[p.name] = next_id
_jb_catalog_cache.update({"dir_mtime": dir_mtime, "sig": sig, "paths": paths, "id_map": id_map, "index_map": idx_map})
return _jb_catalog_cache
[[[DIVIDER]]]
JUKEBOX_RESERVED_IDS = frozenset({911})
def get_jukebox_catalog(posts_dir: Path | None = None):
"""Return O(1)-cached Norma-abstract Jukebox catalog ({'paths', 'id_map', 'index_map', 'playable_ids'})."""
base = Path(posts_dir) if posts_dir is not None else POSTS_DIR
abs_dir = base / ABSTRACTS_SUBDIR
active_key = str(abs_dir)
if not abs_dir.is_dir():
return {"paths": [], "id_map": {}, "index_map": {}, "playable_ids": []}
try:
dir_mtime = abs_dir.stat().st_mtime_ns
if (_jb_catalog_cache.get("sig") or (None,))[0] == active_key and _jb_catalog_cache.get("dir_mtime") == dir_mtime and "playable_ids" in _jb_catalog_cache:
return _jb_catalog_cache
dated = [Path(e.path) for e in os.scandir(abs_dir) if e.is_file() and _DATED_JB_RE.match(e.name)]
sig = (active_key, dir_mtime, len(dated))
except OSError:
return {"paths": [], "id_map": {}, "index_map": {}, "playable_ids": []}
if _jb_catalog_cache.get("sig") == sig and "playable_ids" in _jb_catalog_cache:
_jb_catalog_cache["dir_mtime"] = dir_mtime
return _jb_catalog_cache
keyed = []
for p in dated:
fm = _with_parent_frontmatter(p, _read_frontmatter_dict(p), posts_dir=base)
if not _is_storytime_enabled(fm):
continue
raw_so = str(fm.get("sort_order") or "").strip()
s_ord = int(raw_so) if raw_so.lstrip("-").isdigit() else 0
raw_aid = str(fm.get("article_id") or "").split("#", 1)[0].strip()
aid = int(raw_aid) if raw_aid.isdigit() and int(raw_aid) > 0 else None
if aid is None or aid in JUKEBOX_RESERVED_IDS:
continue
keyed.append(((p.name[:10], s_ord, p.name), aid, p))
keyed.sort(key=lambda item: item[0])
paths, id_map, idx_map = [], {}, {}
for _, aid, p in keyed:
if aid not in id_map:
paths.append(p)
id_map[aid] = p
idx_map[p.name] = aid
seen_ids = set()
playable_ids = [
aid for _, aid, _ in reversed(keyed)
if aid in id_map and not (aid in seen_ids or seen_ids.add(aid))
]
_jb_catalog_cache.update({
"dir_mtime": dir_mtime,
"sig": sig,
"paths": paths,
"id_map": id_map,
"index_map": idx_map,
"playable_ids": playable_ids,
})
return _jb_catalog_cache
def get_jukebox_playable_ids(posts_dir: Path | None = None) -> list[int]:
"""Return newest-first list of playable Norma-converted Story IDs (excluding reserved 911)."""
return list(get_jukebox_catalog(posts_dir=posts_dir).get("playable_ids") or [])
[[[REPLACE]]]
Target: remotes/honeybot/scripts/content_loader.py
[[[SEARCH]]]
jb_s = f"Jukebox entry number {jb_n}, titled: {title}" if jb_n else f"titled: {title}"
[[[DIVIDER]]]
jb_s = f"story number {jb_n}, titled: {title}" if jb_n else f"titled: {title}"
[[[REPLACE]]]
Target: scripts/articles/norma_extract.py
[[[SEARCH]]]
raw_aid = meta.get(common.ARTICLE_ID_KEY, "").split("#", 1)[0].strip()
aid = int(raw_aid) if raw_aid.isdigit() and int(raw_aid) > 0 else 0
[[[DIVIDER]]]
raw_aid = meta.get(common.ARTICLE_ID_KEY, "").split("#", 1)[0].strip()
aid = int(raw_aid) if raw_aid.isdigit() and int(raw_aid) > 0 else 0
if aid == 911:
continue
[[[REPLACE]]]
Target: scripts/articles/norma_extract.py
[[[SEARCH]]]
coin_cmd = f"jukebox {aid}" if aid else "jukebox <ID>"
[[[DIVIDER]]]
coin_cmd = str(aid) if aid else "<ID>"
[[[REPLACE]]]
Target: scripts/articles/norma_extract.py
[[[SEARCH]]]
f"- Final turn: land the parable's takeaway cleanly (weaving `{sunpug_cmd}` or RFC 9110/9111\n"
f" only when natural), link Lab Receipt #{aid} ({canon_url}), and name Jukebox Coin `{coin_cmd}`.\n\n"
[[[DIVIDER]]]
f"- Final turn: land the parable's takeaway cleanly (weaving `{sunpug_cmd}` or RFC 9110/9111\n"
f" only when natural), link Lab Receipt #{aid} ({canon_url}), and invite viewers to type `{coin_cmd}` in live chat to play this story.\n\n"
[[[REPLACE]]]
Car 3c β Rebrand HUD & Score to A.I. FISHTANK STORY-TIME & Show Bare Playable Story IDs (logs.py, score.py):
Target: remotes/honeybot/scripts/logs.py
[[[SEARCH]]]
BASE_APP_TITLE = "Web Bot AI Observatory β https://mikelev.in Β· https://sunpug.io"
[[[DIVIDER]]]
BASE_APP_TITLE = "A.I. FISHTANK STORY-TIME β https://mikelev.in Β· https://sunpug.io"
[[[REPLACE]]]
Target: remotes/honeybot/scripts/logs.py
[[[SEARCH]]]
def format_chat_sliver(width: int = 180, spots_left: int = None, jukebox_max: int = None) -> Text:
"""Render the 1-row bottom chyron: allowlisted chat triggers, Founding-1,000 scarcity, and LinkedIn CTA."""
jb_range = f"1..{int(jukebox_max)}" if (jukebox_max and int(jukebox_max) > 0) else "1..N"
scarcity_label = f"{int(spots_left)} Spots Left" if (spots_left is not None and int(spots_left) >= 0) else "Founding-1,000"
txt = Text(no_wrap=True, overflow="crop")
if int(width or 180) < 136:
txt.append(" π¬ Chat: ", style="bold #94a3b8")
txt.append("911", style="bold #ffd700")
txt.append(f" Β· jukebox {jb_range} Β· rabbit", style="bold #38bdf8")
txt.append(f" β π {scarcity_label}: ", style="bold #ffd700")
txt.append("mikelev.in/discord", style="bold #7ee787")
txt.append(" β in/miklevin ", style="bold #38bdf8")
return txt
txt.append(" π¬ Type in Chat: ", style="bold #94a3b8")
txt.append("911", style="bold #ffd700")
txt.append(" (Live Optics) Β· ", style="#cbd5e1")
txt.append(f"jukebox {jb_range}", style="bold #38bdf8")
txt.append(" Β· ", style="#cbd5e1")
txt.append("rabbit", style="bold #38bdf8")
txt.append(" β ", style="dim #475569")
txt.append(f"π Founding-1,000 Guild: {scarcity_label} β ", style="bold #ffd700")
txt.append("mikelev.in/discord", style="bold #7ee787")
txt.append(" β Connect: ", style="#94a3b8")
txt.append("linkedin.com/in/miklevin ", style="bold #38bdf8")
return txt
[[[DIVIDER]]]
def _local_playable_jukebox_ids() -> tuple:
"""Return O(1)-cached tuple of playable Norma-abstract Story IDs on disk, or ()."""
try:
sdir = str(os.path.dirname(os.path.abspath(__file__)))
if sdir not in sys.path:
sys.path.insert(0, sdir)
import content_loader as _cl
return tuple(_cl.get_jukebox_playable_ids())
except Exception:
return ()
def format_chat_sliver(width: int = 180, spots_left: int = None, jukebox_max: int = None, jukebox_ids: tuple = None) -> Text:
"""Render the 1-row bottom chyron: bare Story IDs + 911 Live Optics, Founding-1,000 scarcity, and LinkedIn CTA."""
ids = tuple(int(x) for x in (jukebox_ids or ()) if str(x).isdigit() and int(x) > 0 and int(x) != 911)
scarcity_label = f"{int(spots_left)} Spots Left" if (spots_left is not None and int(spots_left) >= 0) else "Founding-1,000"
txt = Text(no_wrap=True, overflow="crop")
if int(width or 180) < 136:
txt.append(" π¬ Type #: ", style="bold #94a3b8")
txt.append("911", style="bold #ffd700")
if ids:
txt.append(f" Β· {' Β· '.join(str(i) for i in ids[:2])}", style="bold #38bdf8")
txt.append(f" β π {scarcity_label}: ", style="bold #ffd700")
txt.append("mikelev.in/discord", style="bold #7ee787")
txt.append(" β in/miklevin ", style="bold #38bdf8")
return txt
txt.append(" π¬ Type # in Chat: ", style="bold #94a3b8")
txt.append("911", style="bold #ffd700")
if ids:
sample = " Β· ".join(str(i) for i in ids[:3])
more = f" (+{len(ids) - 3})" if len(ids) > 3 else ""
txt.append(" (Live Optics) Β· Story #: ", style="#cbd5e1")
txt.append(f"{sample}{more}", style="bold #38bdf8")
else:
txt.append(" (Live Optics) Β· Story #", style="#cbd5e1")
txt.append(" β ", style="dim #475569")
txt.append(f"π Founding-1,000 Guild: {scarcity_label} β ", style="bold #ffd700")
txt.append("mikelev.in/discord", style="bold #7ee787")
txt.append(" β Connect: ", style="#94a3b8")
txt.append("linkedin.com/in/miklevin ", style="bold #38bdf8")
return txt
[[[REPLACE]]]
Target: remotes/honeybot/scripts/logs.py
[[[SEARCH]]]
if data.get("jukebox_max") is not None:
self.jukebox_max = max(0, int(data["jukebox_max"]))
[[[DIVIDER]]]
if isinstance(data.get("jukebox_ids"), list):
self.jukebox_ids = tuple(int(x) for x in data["jukebox_ids"] if str(x).isdigit() and int(x) != 911)
if data.get("jukebox_max") is not None:
self.jukebox_max = max(0, int(data["jukebox_max"]))
[[[REPLACE]]]
Target: remotes/honeybot/scripts/logs.py
[[[SEARCH]]]
def refresh_chat_sliver(self, width: int = None) -> None:
"""Update #chat_sliver in O(1) only when width, spots_left, or jukebox_max changes."""
try:
w = int(width or self.size.width or shutil.get_terminal_size((180, 48)).columns)
except Exception:
w = 180
sig = (w, getattr(self, "spots_left", None), getattr(self, "jukebox_max", None))
if sig == getattr(self, "_chat_sliver_sig", None):
return
self._chat_sliver_sig = sig
try:
self.query_one("#chat_sliver", Static).update(
format_chat_sliver(w, spots_left=sig[1], jukebox_max=sig[2])
)
except Exception:
pass
[[[DIVIDER]]]
def refresh_chat_sliver(self, width: int = None) -> None:
"""Update #chat_sliver in O(1) only when width, spots_left, or playable jukebox_ids changes."""
try:
w = int(width or self.size.width or shutil.get_terminal_size((180, 48)).columns)
except Exception:
w = 180
jb_ids = getattr(self, "jukebox_ids", None) or _local_playable_jukebox_ids()
sig = (w, getattr(self, "spots_left", None), getattr(self, "jukebox_max", None), jb_ids)
if sig == getattr(self, "_chat_sliver_sig", None):
return
self._chat_sliver_sig = sig
try:
self.query_one("#chat_sliver", Static).update(
format_chat_sliver(w, spots_left=sig[1], jukebox_max=sig[2], jukebox_ids=jb_ids)
)
except Exception:
pass
[[[REPLACE]]]
Target: remotes/honeybot/scripts/logs.py
[[[SEARCH]]]
self.spots_left = None
self.jukebox_max = None
self._chat_sliver_sig = None
[[[DIVIDER]]]
self.spots_left = None
self.jukebox_max = None
self.jukebox_ids = None
self._chat_sliver_sig = None
[[[REPLACE]]]
Target: remotes/honeybot/scripts/score.py
[[[SEARCH]]]
jb_tag = f"Jukebox entry number {jb_idx}, " if jb_idx else ""
[[[DIVIDER]]]
jb_tag = f"story number {jb_idx}, " if jb_idx else ""
[[[REPLACE]]]
Target: remotes/honeybot/scripts/score.py
[[[SEARCH]]]
if not breaking:
a0 = articles[0] if articles else {}
sub0 = f"Up Next #{a0['jukebox_index']}: {a0['raw_title']}" if a0.get("raw_title") else ""
say0 = (
f"Greetings, entity. You are watching the Web Bot A I Observatory on Honeybot. "
f"Up next is Jukebox entry number {a0['jukebox_index']}, titled: {a0['title']}."
if a0.get("title") and a0.get("jukebox_index")
else (
"Greetings, entity. You are watching the Web Bot A I Observatory on Honeybot. "
"We are monitoring a home-hosted Nix O S web server and reading the latest published article."
)
)
script.append(("CARD", {"label": "WEB BOT AI\nOBSERVATORY", "subtitle": sub0, "say": say0}))
[[[DIVIDER]]]
if not breaking:
a0 = articles[0] if articles else {}
jb0 = a0.get("jukebox_index")
sub0 = f"Up Next #{jb0}: {a0['raw_title']}" if (a0.get("raw_title") and jb0) else (f"Up Next: {a0['raw_title']}" if a0.get("raw_title") else "")
say0 = (
f"Greetings, entity. You are watching A.I. Fishtank Story-Time on Honeybot. "
f"Up next is story number {jb0}, titled: {a0['title']}. "
"Type any available story number or nine eleven in live chat to take control."
if a0.get("title") and jb0
else (
"Greetings, entity. You are watching A.I. Fishtank Story-Time on Honeybot. "
"We are monitoring a home-hosted Nix O S web server and reading the latest Storytime entry."
)
)
script.append(("CARD", {"label": "A.I. FISHTANK\nSTORY-TIME", "subtitle": sub0, "say": say0}))
[[[REPLACE]]]
Ignition: no ignition required for the local probe straddle (the probes load terms.py, content_loader.py, logs.py, and score.py straight from disk; live Honeybot sync and ytwatch reload happen at the end of Step 2 once common.py lands).
4: PROMPT (Use prompt or p to create prompt.md from copy):
With Step 1Aβ1C verified in the straddle receipt and `scripts/articles/common.py`, `remotes/honeybot/scripts/stream.py`, and `remotes/honeybot/scripts/forest.py` loaded in raw source, complete Step 2 in clean single-story fenced cars (`<= 120` lines aimed per car):
1. **Car 3a (`scripts/articles/common.py`) β Bare-Number YouTube Chat Jukebox & Playable `_abstracts` Allowlist**:
- Retire `_CHAT_RABBIT_RE` / `"rabbit"` dispatch from `ytwatch` live chat parsing.
- Accept bare positive numbers (`^[!/]?#?([1-9]\d{0,4})$`, plus optional legacy `jukebox <N>`): route `911` to `"optics"` (911 Live Optics demo) and allow other numbers **only** when they match a minted Norma Centroid `_posts/_abstracts/*.md` `article_id`.
- Include `"jukebox_ids"` (newest-first playable `_abstracts` IDs) in `/tmp/honeybot_viewers.json` so Honeybot's `#chat_sliver` stays synced from Prime too.
2. **Car 3b (`remotes/honeybot/scripts/{stream.py,forest.py}`) β A.I. Fishtank Story-Time Sweep & Rabbit Cleanup**:
- Update remaining on-air `"Web Bot AI Observatory"` titles/announcements in `stream.py` and `forest.py` (and YouTube broadcast title/desc helpers in `common.py` if surfaced by the `rg` receipt) to `"A.I. Fishtank Story-Time"`, and remove dead `"rabbit"` chat-command references.
5: DELIVERABLE (What done looks like):
terms.pypronouncesCMO/CMOs,CTO/CTOs,c-suite,Reschke,Yutes,Mike-E,Weebo,A.I.,911 in chat,mikelev.in/1337, and Ops/SecOps acronyms cleanly.content_loader.pyrestricts the Jukebox catalog strictly to Norma-converted_posts/_abstracts/*.mdstories, permanently reserves911for Live Optics, and exposesget_jukebox_playable_ids()(newest-first).logs.pyandscore.pyrebrand the broadcast toA.I. FISHTANK STORY-TIME, dropjukebox 1..Nandrabbit, and display real playable Story#s in#chat_sliver, while# Context 2stagescommon.py,stream.py, andforest.pyto wire bare-number YouTube chat parsing end-to-end. No external manual-paste deliverables required.
MikeLev.in:
THE AI-EDIT METHOD
Same commands, run twice, one change between them. Where the readings differ is what the change did; the diff in the middle is the receipt.
1: BEFORE (PROBE):
On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean
GIT repo clean. Take BEFORE reading, make CHANGE, record AFTER diff.
(nix) pipulate $ .venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "remotes/honeybot/scripts")); import terms, content_loader as cl; sample = "A.I. FISHTANK STORY-TIME for CMOs & CTOs in the c-suite, Reschke, Yutes, Mike-E, Weebo, NetOps, 911 in chat, mikelev.in/1337"; ids = cl.get_jukebox_playable_ids() if hasattr(cl, "get_jukebox_playable_ids") else None; lg = (REPO_ROOT / "remotes/honeybot/scripts/logs.py").read_text(); sc = (REPO_ROOT / "remotes/honeybot/scripts/score.py").read_text(); print("TTS:", terms.apply_inline_tts_terms(sample)); print("PLAYABLE_IDS:", ids); print("LOGS_FISHTANK:", "A.I. FISHTANK STORY-TIME" in lg, "LOGS_NO_RABBIT:", "rabbit" not in lg); print("SCORE_FISHTANK:", "A.I. FISHTANK" in sc)'
.venv/bin/python scripts/pyprobe.py 'rc, out = capture_call(["rg", "-n", "-i", "observatory|fishtank|_CHAT_OPTICS_RE|_CHAT_RABBIT_RE|_CHAT_JUKEBOX_RE", "remotes/honeybot/scripts", "scripts"]); print(out[:3500])'
TTS: A.I. FISHTANK STORY-TIME for CMOs & CTOs in the c-suite, Reschke, Yutes, Mike-E, Weebo, NetOps, 911 in chat, Mike L E V dot eye N/1337
PLAYABLE_IDS: None
LOGS_FISHTANK: False LOGS_NO_RABBIT: False
SCORE_FISHTANK: False
Traceback (most recent call last):
File "/home/mike/pipulate/scripts/pyprobe.py", line 159, in <module>
sys.exit(main())
^^^^^^
File "/home/mike/pipulate/scripts/pyprobe.py", line 154, in main
exec(compile(code, "<pyprobe>", "exec"), ns)
File "<pyprobe>", line 1, in <module>
File "/home/mike/pipulate/scripts/pyprobe.py", line 61, in capture_call
res = fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
TypeError: 'list' object is not callable
(nix) pipulate $
2: AFTER (NEXT CONTEXT):
# # Context 1: Step 1 Bare-Number Jukebox & terms.py
# context.txt
# ! eza -1 remotes/honeybot/scripts
# ! rg -n 'jukebox|ytwatch|\brabbit\b' flake.nix scripts remotes/honeybot/scripts
# ! .venv/bin/python -c 'import pathlib, re; base = pathlib.Path("/home/mike/repos/trimnoir/_posts"); abs_files = sorted((base / "_abstracts").glob("*.md")) if (base / "_abstracts").is_dir() else []; p911 = [p.name for p in base.glob("*.md") if re.search(r"(?m)^article_id:\s*[\x27\x22]?911\b", p.read_text(errors="ignore")[:2048])]; print("abstracts:", len(abs_files), [f.name for f in abs_files[:5]], "id_911:", p911)'
#
# flake.nix
# scripts/chat_route_probe.py
# remotes/honeybot/scripts/terms.py
# remotes/honeybot/scripts/content_loader.py
# remotes/honeybot/scripts/score.py
# remotes/honeybot/scripts/logs.py
# scripts/articles/norma_extract.py
# deleteme.txt
# Context 2: Bare-Number Chat Parser in ytwatch (common.py) & Stream Fishtank Sweep
context.txt
! .venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "remotes/honeybot/scripts")); import terms, content_loader as cl; sample = "A.I. FISHTANK STORY-TIME for CMOs & CTOs in the c-suite, Reschke, Yutes, Mike-E, Weebo, NetOps, 911 in chat, mikelev.in/1337"; ids = cl.get_jukebox_playable_ids() if hasattr(cl, "get_jukebox_playable_ids") else None; lg = (REPO_ROOT / "remotes/honeybot/scripts/logs.py").read_text(); sc = (REPO_ROOT / "remotes/honeybot/scripts/score.py").read_text(); print("TTS:", terms.apply_inline_tts_terms(sample)); print("PLAYABLE_IDS:", ids); print("LOGS_FISHTANK:", "A.I. FISHTANK STORY-TIME" in lg, "LOGS_NO_RABBIT:", "rabbit" not in lg); print("SCORE_FISHTANK:", "A.I. FISHTANK" in sc)'
! .venv/bin/python scripts/pyprobe.py 'rc, out = capture_call(["rg", "-n", "-i", "observatory|fishtank|_CHAT_OPTICS_RE|_CHAT_RABBIT_RE|_CHAT_JUKEBOX_RE", "remotes/honeybot/scripts", "scripts"]); print(out[:3500])'
scripts/articles/common.py
remotes/honeybot/scripts/stream.py
remotes/honeybot/scripts/forest.py
3: CHANGE (PATCHES):
On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean
GIT repo clean. Take BEFORE reading, make CHANGE, record AFTER diff.
(nix) pipulate $ patch
(nix) pipulate $ app
β
DETERMINISTIC PATCH APPLIED: Successfully mutated 'remotes/honeybot/scripts/terms.py'.
π Car meter: 1/5 file(s), 3/12 block(s), 50/220 line(s) (aim <= 120/car)
(nix) pipulate $ d
diff --git a/remotes/honeybot/scripts/terms.py b/remotes/honeybot/scripts/terms.py
index 1b8e94a..e1b428d 100644
--- a/remotes/honeybot/scripts/terms.py
+++ b/remotes/honeybot/scripts/terms.py
@@ -68,13 +68,16 @@ REGEX_TERMS = (
(re.compile(r"\b911_optics(?:_workflow)?(?:\.py)?\b", re.IGNORECASE), "nine eleven optics workflow"),
(
re.compile(
- r"\b911(?=\s+(?:LLM|L\s+L\s+M|Optics|emergency|first-aid|first\s+aid|audit|workflow|spectrometer)\b)",
+ r"\b911(?=\s+(?:LLM|L\s+L\s+M|Optics|demo|chat|in\s+(?:live\s+)?chat|emergency|first-aid|first\s+aid|audit|workflow|spectrometer)\b)",
re.IGNORECASE,
),
"nine eleven",
),
- # Numbered IETF RFCs, first-party Discord door, & MIME content-negotiation headers
+ # Numbered IETF RFCs, first-party Discord/ID doors, & MIME content-negotiation headers
(re.compile(r"\bmikelev\.in/discord/?\b", re.IGNORECASE), "Mike L E V dot eye N slash discord"),
+ (re.compile(r"\bmikelev\.in/(\d+)/?\b", re.IGNORECASE), r"Mike L E V dot eye N slash \1"),
+ (re.compile(r"""\bA\.I\.(?=\s|$|[),;:!?\-'"])"""), "A I"),
+ (re.compile(r"\bc-suite\b", re.IGNORECASE), "C suite"),
(re.compile(r"\bNein\s+Juan\s+Wan\b", re.IGNORECASE), "Nine Wahn Wahn"),
(re.compile(r"\brfc9110\.org\b", re.IGNORECASE), "R F C 91 10 dot org"),
(re.compile(r"\brfc9111\.io\b", re.IGNORECASE), "R F C 91 11 dot eye oh"),
@@ -237,6 +240,16 @@ CASE_INSENSITIVE_TERMS = (
("BitBlt", "bit-blit"),
("ambigrams", "am-bih-grams"),
("ambigram", "am-bih-gram"),
+ ("Reschke", "Resh-kuh"),
+ ("Yutes", "yoots"),
+ ("Yute", "yoot"),
+ ("Mike-E", "Mike E"),
+ ("Weebo", "Wee-boh"),
+ ("NetOps", "Net Ops"),
+ ("SecOps", "Sec Ops"),
+ ("FinOps", "Fin Ops"),
+ ("DevOps", "Dev Ops"),
+ ("GitOps", "Git Ops"),
)
# 3. Exact-Case Acronyms & MixedCase Proper Nouns (auto-sorted longest-first)
@@ -299,9 +312,27 @@ EXACT_CASE_TERMS = (
("CTA", "C T A"),
("KPIs", "K P Is"),
("KPI", "K P I"),
+ ("CMOs", "C M Os"),
+ ("CMO", "C M O"),
+ ("CTOs", "C T Os"),
+ ("CTO", "C T O"),
+ ("CEOs", "C E Os"),
+ ("CEO", "C E O"),
+ ("CFOs", "C F Os"),
+ ("CFO", "C F O"),
+ ("CIOs", "C I Os"),
+ ("CIO", "C I O"),
+ ("CISOs", "C I S Os"),
+ ("CISO", "C I S O"),
("CRO", "C R O"),
("ROI", "R O I"),
("CMS", "C M S"),
+ ("SREs", "S R Es"),
+ ("SRE", "S R E"),
+ ("PII", "P I I"),
+ ("GDPR", "G D P R"),
+ ("CPRA", "C P R A"),
+ ("WAF", "W A F"),
("CDNs", "Content Distribution Networks"),
("CDN", "Content Distribution Network"),
("NPCs", "non-player characters"),
(nix) pipulate $ m
π Committing: `chore: Update terms.py with additional regex patterns`
[main ced4bd1] `chore: Update terms.py with additional regex patterns`
1 file changed, 33 insertions(+), 2 deletions(-)
(nix) pipulate $ git push
Enumerating objects: 11, done.
Counting objects: 100% (11/11), done.
Delta compression using up to 48 threads
Compressing objects: 100% (5/5), done.
Writing objects: 100% (6/6), 961 bytes | 961.00 KiB/s, done.
Total 6 (delta 4), reused 0 (delta 0), pack-reused 0 (from 0)
remote: Resolving deltas: 100% (4/4), completed with 4 local objects.
To github.com:pipulate/pipulate.git
71bea1f..ced4bd1 main -> main
(nix) pipulate $ patch
(nix) pipulate $ app
β
DETERMINISTIC PATCH APPLIED: Successfully mutated 'remotes/honeybot/scripts/content_loader.py'.
β
DETERMINISTIC PATCH APPLIED: Successfully mutated 'scripts/articles/norma_extract.py'.
π Car meter: 2/5 file(s), 5/12 block(s), 67/220 line(s) (aim <= 120/car)
(nix) pipulate $ d
diff --git a/remotes/honeybot/scripts/content_loader.py b/remotes/honeybot/scripts/content_loader.py
index 04fd05b..d93e98f 100644
--- a/remotes/honeybot/scripts/content_loader.py
+++ b/remotes/honeybot/scripts/content_loader.py
@@ -197,61 +197,67 @@ def _resolve_canonical_slug(fm: dict, filename: str) -> str:
return perm or filename[11:].rsplit(".", 1)[0]
-def get_jukebox_catalog():
- """Return O(1)-cached {'paths': [...], 'index_map': {fname: 1..N}} sorted oldest-first."""
- active_dir = resolve_storytime_dir()
- active_key = str(active_dir)
+JUKEBOX_RESERVED_IDS = frozenset({911})
+
+
+def get_jukebox_catalog(posts_dir: Path | None = None):
+ """Return O(1)-cached Norma-abstract Jukebox catalog ({'paths', 'id_map', 'index_map', 'playable_ids'})."""
+ base = Path(posts_dir) if posts_dir is not None else POSTS_DIR
+ abs_dir = base / ABSTRACTS_SUBDIR
+ active_key = str(abs_dir)
+ if not abs_dir.is_dir():
+ return {"paths": [], "id_map": {}, "index_map": {}, "playable_ids": []}
try:
- dir_mtime = active_dir.stat().st_mtime_ns
- if (_jb_catalog_cache.get("sig") or (None,))[0] == active_key and _jb_catalog_cache.get("dir_mtime") == dir_mtime and _jb_catalog_cache.get("paths"):
+ dir_mtime = abs_dir.stat().st_mtime_ns
+ if (_jb_catalog_cache.get("sig") or (None,))[0] == active_key and _jb_catalog_cache.get("dir_mtime") == dir_mtime and "playable_ids" in _jb_catalog_cache:
return _jb_catalog_cache
- dated = [Path(e.path) for e in os.scandir(active_dir) if e.is_file() and _DATED_JB_RE.match(e.name)]
+ dated = [Path(e.path) for e in os.scandir(abs_dir) if e.is_file() and _DATED_JB_RE.match(e.name)]
sig = (active_key, dir_mtime, len(dated))
except OSError:
- return {"paths": [], "id_map": {}, "index_map": {}}
- if _jb_catalog_cache.get("sig") == sig and _jb_catalog_cache.get("paths"):
+ return {"paths": [], "id_map": {}, "index_map": {}, "playable_ids": []}
+ if _jb_catalog_cache.get("sig") == sig and "playable_ids" in _jb_catalog_cache:
_jb_catalog_cache["dir_mtime"] = dir_mtime
return _jb_catalog_cache
keyed = []
for p in dated:
- s_ord, aid = 0, None
- try:
- with open(p, "r", encoding="utf-8", errors="ignore") as fh:
- if fh.readline().strip() == "---":
- for ln in fh:
- if ln.strip() == "---":
- break
- m_so = _SORT_ORDER_RE.match(ln)
- if m_so:
- s_ord = int(m_so.group(1))
- m_id = _ARTICLE_ID_RE.match(ln.rstrip("\r\n"))
- if m_id and aid is None:
- aid = int(m_id.group(1))
- except Exception:
- pass
- if active_dir != POSTS_DIR and (aid is None or s_ord == 0):
- pfm = _read_frontmatter_dict(POSTS_DIR / p.name)
- s_ord = int(pfm["sort_order"]) if (s_ord == 0 and str(pfm.get("sort_order") or "").lstrip("-").isdigit()) else s_ord
- aid = int(pfm["article_id"]) if (aid is None and str(pfm.get("article_id") or "").isdigit()) else aid
+ fm = _with_parent_frontmatter(p, _read_frontmatter_dict(p), posts_dir=base)
+ if not _is_storytime_enabled(fm):
+ continue
+ raw_so = str(fm.get("sort_order") or "").strip()
+ s_ord = int(raw_so) if raw_so.lstrip("-").isdigit() else 0
+ raw_aid = str(fm.get("article_id") or "").split("#", 1)[0].strip()
+ aid = int(raw_aid) if raw_aid.isdigit() and int(raw_aid) > 0 else None
+ if aid is None or aid in JUKEBOX_RESERVED_IDS:
+ continue
keyed.append(((p.name[:10], s_ord, p.name), aid, p))
keyed.sort(key=lambda item: item[0])
- paths = [p for _, _, p in keyed]
- id_map, idx_map, unstamped = {}, {}, []
+ paths, id_map, idx_map = [], {}, {}
for _, aid, p in keyed:
- if aid is not None and aid not in id_map:
+ if aid not in id_map:
+ paths.append(p)
id_map[aid] = p
idx_map[p.name] = aid
- else:
- unstamped.append(p)
- next_id = max(id_map, default=0)
- for p in unstamped:
- next_id += 1
- id_map[next_id] = p
- idx_map[p.name] = next_id
- _jb_catalog_cache.update({"dir_mtime": dir_mtime, "sig": sig, "paths": paths, "id_map": id_map, "index_map": idx_map})
+ seen_ids = set()
+ playable_ids = [
+ aid for _, aid, _ in reversed(keyed)
+ if aid in id_map and not (aid in seen_ids or seen_ids.add(aid))
+ ]
+ _jb_catalog_cache.update({
+ "dir_mtime": dir_mtime,
+ "sig": sig,
+ "paths": paths,
+ "id_map": id_map,
+ "index_map": idx_map,
+ "playable_ids": playable_ids,
+ })
return _jb_catalog_cache
+def get_jukebox_playable_ids(posts_dir: Path | None = None) -> list[int]:
+ """Return newest-first list of playable Norma-converted Story IDs (excluding reserved 911)."""
+ return list(get_jukebox_catalog(posts_dir=posts_dir).get("playable_ids") or [])
+
+
def get_article_by_jukebox_index(jb_idx: int):
"""Load a single dated post by its permanent 1-based chronological Jukebox index (1..N)."""
id_map = get_jukebox_catalog().get("id_map") or {}
@@ -610,7 +616,7 @@ def get_playlist(recent_n=10, include_archive=True):
image_path = str(meta.get("image") or "").strip()
if enqueue_media and image_path:
_m.narrator.media({"path": image_path, "duration": 14.0})
- jb_s = f"Jukebox entry number {jb_n}, titled: {title}" if jb_n else f"titled: {title}"
+ jb_s = f"story number {jb_n}, titled: {title}" if jb_n else f"titled: {title}"
return (
f"The article currently being read on this broadcast is {jb_s}. "
"To read the full article text and inspect the raw code receipts at your own pace, "
diff --git a/scripts/articles/norma_extract.py b/scripts/articles/norma_extract.py
index 43aef16..0867592 100644
--- a/scripts/articles/norma_extract.py
+++ b/scripts/articles/norma_extract.py
@@ -138,6 +138,8 @@ def rank_candidates(posts_dir: Path, limit: int = 10, pillars_only: bool = False
continue
raw_aid = meta.get(common.ARTICLE_ID_KEY, "").split("#", 1)[0].strip()
aid = int(raw_aid) if raw_aid.isdigit() and int(raw_aid) > 0 else 0
+ if aid == 911:
+ continue
stem = md_path.stem
slug = stem[11:] if len(stem) > 11 else stem
title = meta.get("title") or slug
@@ -195,7 +197,7 @@ def build_extraction_prompt(md_path: Path) -> dict:
clean_body = _RAW_LIQUID_RE.sub("", body).strip()
lean_body, fences_stripped = articleizer.strip_fences(clean_body)
_, pillars = score_pillars(title, f"{fm_block}\n{lean_body[:4000]}")
- coin_cmd = f"jukebox {aid}" if aid else "jukebox <ID>"
+ coin_cmd = str(aid) if aid else "<ID>"
canon_url = "https://" + f"mikelev.in{permalink}"
sunpug_cmd = "curl -fsSL https://" + "sunpug.io | less"
prompt = (
@@ -233,7 +235,7 @@ def build_extraction_prompt(md_path: Path) -> dict:
" andβunder a Below-the-Fold headingβthe pre-registered Kuhnian Gatekeeper Trapdoor naming\n"
" the predictable knee-jerk dismissal and its plain-spoken refutation).\n"
f"- Final turn: land the parable's takeaway cleanly (weaving `{sunpug_cmd}` or RFC 9110/9111\n"
- f" only when natural), link Lab Receipt #{aid} ({canon_url}), and name Jukebox Coin `{coin_cmd}`.\n\n"
+ f" only when natural), link Lab Receipt #{aid} ({canon_url}), and invite viewers to type `{coin_cmd}` in live chat to play this story.\n\n"
"--- SOURCE ARTICLE (CODE FENCES CONDENSED) ---\n"
f"{lean_body}\n"
"--- END SOURCE ARTICLE ---\n"
(nix) pipulate $ m
π Committing: chore: Update Jukebox catalog retrieval with improved caching and Jukebox ID handling
[main 5c25429] chore: Update Jukebox catalog retrieval with improved caching and Jukebox ID handling
2 files changed, 50 insertions(+), 42 deletions(-)
(nix) pipulate $ patch
(nix) pipulate $ app
β
DETERMINISTIC PATCH APPLIED: Successfully mutated 'remotes/honeybot/scripts/logs.py'.
β
DETERMINISTIC PATCH APPLIED: Successfully mutated 'remotes/honeybot/scripts/score.py'.
π Car meter: 2/5 file(s), 7/12 block(s), 83/220 line(s) (aim <= 120/car)
(nix) pipulate $ d
diff --git a/remotes/honeybot/scripts/logs.py b/remotes/honeybot/scripts/logs.py
index d3d9589..de8390e 100644
--- a/remotes/honeybot/scripts/logs.py
+++ b/remotes/honeybot/scripts/logs.py
@@ -35,29 +35,45 @@ VIEWERS_FILE_PATH = "/tmp/honeybot_viewers.json"
VIEWERS_TTL_SECONDS = 120.0
STAGE_STATE_PATH = "/tmp/honeybot_stage.json"
STAGE_STATE_TTL_SECONDS = 900.0
-BASE_APP_TITLE = "Web Bot AI Observatory β https://mikelev.in Β· https://sunpug.io"
+BASE_APP_TITLE = "A.I. FISHTANK STORY-TIME β https://mikelev.in Β· https://sunpug.io"
FOUNDING_COHORT_GOAL = 1000
-def format_chat_sliver(width: int = 180, spots_left: int = None, jukebox_max: int = None) -> Text:
- """Render the 1-row bottom chyron: allowlisted chat triggers, Founding-1,000 scarcity, and LinkedIn CTA."""
- jb_range = f"1..{int(jukebox_max)}" if (jukebox_max and int(jukebox_max) > 0) else "1..N"
+def _local_playable_jukebox_ids() -> tuple:
+ """Return O(1)-cached tuple of playable Norma-abstract Story IDs on disk, or ()."""
+ try:
+ sdir = str(os.path.dirname(os.path.abspath(__file__)))
+ if sdir not in sys.path:
+ sys.path.insert(0, sdir)
+ import content_loader as _cl
+ return tuple(_cl.get_jukebox_playable_ids())
+ except Exception:
+ return ()
+
+
+def format_chat_sliver(width: int = 180, spots_left: int = None, jukebox_max: int = None, jukebox_ids: tuple = None) -> Text:
+ """Render the 1-row bottom chyron: bare Story IDs + 911 Live Optics, Founding-1,000 scarcity, and LinkedIn CTA."""
+ ids = tuple(int(x) for x in (jukebox_ids or ()) if str(x).isdigit() and int(x) > 0 and int(x) != 911)
scarcity_label = f"{int(spots_left)} Spots Left" if (spots_left is not None and int(spots_left) >= 0) else "Founding-1,000"
txt = Text(no_wrap=True, overflow="crop")
if int(width or 180) < 136:
- txt.append(" π¬ Chat: ", style="bold #94a3b8")
+ txt.append(" π¬ Type #: ", style="bold #94a3b8")
txt.append("911", style="bold #ffd700")
- txt.append(f" Β· jukebox {jb_range} Β· rabbit", style="bold #38bdf8")
+ if ids:
+ txt.append(f" Β· {' Β· '.join(str(i) for i in ids[:2])}", style="bold #38bdf8")
txt.append(f" β π {scarcity_label}: ", style="bold #ffd700")
txt.append("mikelev.in/discord", style="bold #7ee787")
txt.append(" β in/miklevin ", style="bold #38bdf8")
return txt
- txt.append(" π¬ Type in Chat: ", style="bold #94a3b8")
+ txt.append(" π¬ Type # in Chat: ", style="bold #94a3b8")
txt.append("911", style="bold #ffd700")
- txt.append(" (Live Optics) Β· ", style="#cbd5e1")
- txt.append(f"jukebox {jb_range}", style="bold #38bdf8")
- txt.append(" Β· ", style="#cbd5e1")
- txt.append("rabbit", style="bold #38bdf8")
+ if ids:
+ sample = " Β· ".join(str(i) for i in ids[:3])
+ more = f" (+{len(ids) - 3})" if len(ids) > 3 else ""
+ txt.append(" (Live Optics) Β· Story #: ", style="#cbd5e1")
+ txt.append(f"{sample}{more}", style="bold #38bdf8")
+ else:
+ txt.append(" (Live Optics) Β· Story #", style="#cbd5e1")
txt.append(" β ", style="dim #475569")
txt.append(f"π Founding-1,000 Guild: {scarcity_label} β ", style="bold #ffd700")
txt.append("mikelev.in/discord", style="bold #7ee787")
@@ -824,6 +840,8 @@ class SonarApp(App):
self.spots_left = max(0, int(data["spots_left"]))
elif data.get("discord_members") is not None:
self.spots_left = max(0, FOUNDING_COHORT_GOAL - int(data["discord_members"]))
+ if isinstance(data.get("jukebox_ids"), list):
+ self.jukebox_ids = tuple(int(x) for x in data["jukebox_ids"] if str(x).isdigit() and int(x) != 911)
if data.get("jukebox_max") is not None:
self.jukebox_max = max(0, int(data["jukebox_max"]))
if not isinstance(data, dict) or not data.get("running", True):
@@ -882,18 +900,19 @@ class SonarApp(App):
yield Static(format_chat_sliver(180), id="chat_sliver")
def refresh_chat_sliver(self, width: int = None) -> None:
- """Update #chat_sliver in O(1) only when width, spots_left, or jukebox_max changes."""
+ """Update #chat_sliver in O(1) only when width, spots_left, or playable jukebox_ids changes."""
try:
w = int(width or self.size.width or shutil.get_terminal_size((180, 48)).columns)
except Exception:
w = 180
- sig = (w, getattr(self, "spots_left", None), getattr(self, "jukebox_max", None))
+ jb_ids = getattr(self, "jukebox_ids", None) or _local_playable_jukebox_ids()
+ sig = (w, getattr(self, "spots_left", None), getattr(self, "jukebox_max", None), jb_ids)
if sig == getattr(self, "_chat_sliver_sig", None):
return
self._chat_sliver_sig = sig
try:
self.query_one("#chat_sliver", Static).update(
- format_chat_sliver(w, spots_left=sig[1], jukebox_max=sig[2])
+ format_chat_sliver(w, spots_left=sig[1], jukebox_max=sig[2], jukebox_ids=jb_ids)
)
except Exception:
pass
@@ -905,6 +924,7 @@ class SonarApp(App):
self.live_viewers = None
self.spots_left = None
self.jukebox_max = None
+ self.jukebox_ids = None
self._chat_sliver_sig = None
self.title = self.get_app_title()
self.sub_title = self.get_sub_title()
diff --git a/remotes/honeybot/scripts/score.py b/remotes/honeybot/scripts/score.py
index 840da56..5ba4ea9 100644
--- a/remotes/honeybot/scripts/score.py
+++ b/remotes/honeybot/scripts/score.py
@@ -85,7 +85,7 @@ def _append_article_performance(script, article, is_latest=True):
jb_idx = int(article.get("jukebox_index") or 0)
raw_title = str(article.get("raw_title") or article.get("title") or "latest entry")
title_str = str(article.get("title") or raw_title)
- jb_tag = f"Jukebox entry number {jb_idx}, " if jb_idx else ""
+ jb_tag = f"story number {jb_idx}, " if jb_idx else ""
lead = (
f"Reading the latest entry, {jb_tag}published {article['date']}."
if is_latest
@@ -174,17 +174,19 @@ def get_script(breaking=False, jukebox_index=None):
script.append(("SAY", f"Error compiling latest article: {e}"))
if not breaking:
a0 = articles[0] if articles else {}
- sub0 = f"Up Next #{a0['jukebox_index']}: {a0['raw_title']}" if a0.get("raw_title") else ""
+ jb0 = a0.get("jukebox_index")
+ sub0 = f"Up Next #{jb0}: {a0['raw_title']}" if (a0.get("raw_title") and jb0) else (f"Up Next: {a0['raw_title']}" if a0.get("raw_title") else "")
say0 = (
- f"Greetings, entity. You are watching the Web Bot A I Observatory on Honeybot. "
- f"Up next is Jukebox entry number {a0['jukebox_index']}, titled: {a0['title']}."
- if a0.get("title") and a0.get("jukebox_index")
+ f"Greetings, entity. You are watching A.I. Fishtank Story-Time on Honeybot. "
+ f"Up next is story number {jb0}, titled: {a0['title']}. "
+ "Type any available story number or nine eleven in live chat to take control."
+ if a0.get("title") and jb0
else (
- "Greetings, entity. You are watching the Web Bot A I Observatory on Honeybot. "
- "We are monitoring a home-hosted Nix O S web server and reading the latest published article."
+ "Greetings, entity. You are watching A.I. Fishtank Story-Time on Honeybot. "
+ "We are monitoring a home-hosted Nix O S web server and reading the latest Storytime entry."
)
)
- script.append(("CARD", {"label": "WEB BOT AI\nOBSERVATORY", "subtitle": sub0, "say": say0}))
+ script.append(("CARD", {"label": "A.I. FISHTANK\nSTORY-TIME", "subtitle": sub0, "say": say0}))
if articles:
_append_article_performance(script, articles[0], is_latest=True)
return script
(nix) pipulate $ m
π Committing: chore: Update BASE_APP_TITLE and format_chat_sliver for A.I. FISHTANK STORY-TIME
[main ba9a8de] chore: Update BASE_APP_TITLE and format_chat_sliver for A.I. FISHTANK STORY-TIME
2 files changed, 44 insertions(+), 22 deletions(-)
(nix) pipulate $ git push
Enumerating objects: 26, done.
Counting objects: 100% (26/26), done.
Delta compression using up to 48 threads
Compressing objects: 100% (14/14), done.
Writing objects: 100% (16/16), 3.13 KiB | 1.57 MiB/s, done.
Total 16 (delta 12), reused 0 (delta 0), pack-reused 0 (from 0)
remote: Resolving deltas: 100% (12/12), completed with 9 local objects.
To github.com:pipulate/pipulate.git
ced4bd1..ba9a8de main -> main
(nix) pipulate $
Ignition: often βexitβ, βnix developβ. Instructions may vary.
None this turn.
4: PROMPT:
With Step 1Aβ1C verified in the straddle receipt and scripts/articles/common.py, remotes/honeybot/scripts/stream.py, and remotes/honeybot/scripts/forest.py loaded in raw source, complete Step 2 in clean single-story fenced cars (<= 120 lines aimed per car):
- Car 3a (
scripts/articles/common.py) β Bare-Number YouTube Chat Jukebox & Playable_abstractsAllowlist:- Retire
_CHAT_RABBIT_RE/"rabbit"dispatch fromytwatchlive chat parsing. - Accept bare positive numbers (
^[!/]?#?([1-9]\d{0,4})$, plus optional legacyjukebox <N>): route911to"optics"(911 Live Optics demo) and allow other numbers only when they match a minted Norma Centroid_posts/_abstracts/*.mdarticle_id. - Include
"jukebox_ids"(newest-first playable_abstractsIDs) in/tmp/honeybot_viewers.jsonso Honeybotβs#chat_sliverstays synced from Prime too.
- Retire
- Car 3b (
remotes/honeybot/scripts/{stream.py,forest.py}) β A.I. Fishtank Story-Time Sweep & Rabbit Cleanup:- Update remaining on-air
"Web Bot AI Observatory"titles/announcements instream.pyandforest.py(and YouTube broadcast title/desc helpers incommon.pyif surfaced by thergreceipt) to"A.I. Fishtank Story-Time", and remove dead"rabbit"chat-command references.
- Update remaining on-air
5: DELIVERABLE:
What does βDONEβ look like?
Done is going to look like much closer to how I describe it as a fishtank, and with all the inviting to take control of it of a Jukebox without using 1950s language.
Gemini 4 Carbon High: Context verified. (Receipt 1 confirms terms.py, PLAYABLE_IDS: [1661, 1660, 1659, 1658, 1657, 1656, 1655, 1654], logs.py, and score.py all landed cleanly; Receipt 2 caught pyprobe.pyβs capture_call expecting a Python callable rather than an rg argv listβfixed below by calling rg directly.)
TL;DR: Two clean single-story cars complete Step 2: Car 3a (common.py) retires rabbit, switches ytwatch live chat to bare Story numbers validated strictly against Normaβs _posts/_abstracts/ IDs (with 911 reserved for Live Optics), and pushes jukebox_ids to Honeybot; Car 3b (stream.py, forest.py) replaces every remaining "Observatory" and 1950s "Jukebox request received" line on air with A.I. Fishtank Story-Time and plain βtype a story number in chat to take controlβ invitations.
What Lands in Step 2
- Bare-Number Menu Ordering (
scripts/articles/common.py): - Viewers type a bare number in YouTube chat (
1661or#1661-> switches the stream to Story#1661;911or#911-> triggers the 911 Live Optics check). - Un-minted numbers (e.g.
42) are ignored before the cooldown timer so casual numbers in chat never misfire or lock out real requests, andrabbitis gone. -
_build_viewer_payload()now ships"jukebox_ids"([1661, 1660, ...]) in/tmp/honeybot_viewers.json, andytwatchhot-reloadscommon.pyautomatically within 5 seconds ofapp. - Full Fishtank Identity & Zero 1950s Language (
stream.py,forest.py,common.py): - Overture & Midpoint Intermission now open βWelcome inside A.I. Fishtank Story-Time. Swimming across the top glass is our live, unfiltered Engine X origin wireβ¦β and close by inviting viewers to type any story number from the bottom bar in chat to take control.
- Chat story switches now announce βChat takeover! Switching now to story number 1661.β instead of βJukebox request received for entry numberβ¦β, with matching prefixes registered in
_HOST_TRANSIENT_REso Norma Centroid always speaks host announcements in her own voice. - Station-break intros and Rich report footers in
forest.py(π Fishtank+π¬ Chat: Type Story # or 911) match the fishtank framing.
1: BEFORE (PROBE β read-only; tests parse_allowlisted_chat_command across bare numbers, #911, un-minted 42, and retired rabbit, checks jukebox_ids in _build_viewer_payload, and sweeps legacy "Observatory" / "Jukebox request" / _CHAT_RABBIT_RE strings):
(nix) pipulate $
.venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "scripts/articles")); import common; cases = ["911", "#911", "rabbit", "!rabbit", "1661", "#1661", "42", "jukebox 1660"]; parsed = [(c, common.parse_allowlisted_chat_command(c)) for c in cases]; vp = common._build_viewer_payload(2, video_id="vid", peak=4); print("PARSED:", parsed); print("VIEWER_JB_IDS:", vp.get("jukebox_ids"))'
rg -n "_CHAT_RABBIT_RE|Jukebox request received|Web Bot A I Observatory|Web Bot AI Observatory|Scheduled observatory" scripts/articles/common.py remotes/honeybot/scripts/stream.py remotes/honeybot/scripts/forest.py remotes/honeybot/scripts/score.py || true
2: AFTER (NEXT CONTEXT β put in context.txt using context or x; sheds 97k tokens of common.py + stream.py and stages logs.py, score.py, content_loader.py, forest.py, and generate_redirects.py for Step 3βs Story-Control LED Ticker, /<ID> short URLs, and MENU report):
# Context 3: Story-Control LED Ticker, mikelev.in/<ID> Short URLs, & Story Menu Report
context.txt
! .venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "scripts/articles")); import common; cases = ["911", "#911", "rabbit", "!rabbit", "1661", "#1661", "42", "jukebox 1660"]; parsed = [(c, common.parse_allowlisted_chat_command(c)) for c in cases]; vp = common._build_viewer_payload(2, video_id="vid", peak=4); print("PARSED:", parsed); print("VIEWER_JB_IDS:", vp.get("jukebox_ids"))'
! rg -n "_CHAT_RABBIT_RE|Jukebox request received|Web Bot A I Observatory|Web Bot AI Observatory|Scheduled observatory" scripts/articles/common.py remotes/honeybot/scripts/stream.py remotes/honeybot/scripts/forest.py remotes/honeybot/scripts/score.py || true
remotes/honeybot/scripts/logs.py
remotes/honeybot/scripts/score.py
remotes/honeybot/scripts/content_loader.py
remotes/honeybot/scripts/forest.py
scripts/articles/generate_redirects.py
3: CHANGE (PATCHES β two single-story cars, both well under the 120-line aim):
Car 3a β Bare-Number YouTube Chat Parser, _abstracts Allowlist, & Fishtank Broadcast Copy (scripts/articles/common.py):
Target: scripts/articles/common.py
[[[SEARCH]]]
def format_youtube_title(title):
"""Build a <=100-char YouTube Live title from the article title."""
clean = " ".join(_yt_sanitize(title).split())
if not clean:
return "LIVE: Honeybot AI Observatory"
[[[DIVIDER]]]
def format_youtube_title(title):
"""Build a <=100-char YouTube Live title from the article title."""
clean = " ".join(_yt_sanitize(title).split())
if not clean:
return "LIVE: A.I. Fishtank Story-Time"
[[[REPLACE]]]
Target: scripts/articles/common.py
[[[SEARCH]]]
desc_parts = [
f"π Read the full article: {canonical_url}?src=youtube",
f"π£ Join the Founding 1,000 on Discord: {base_url}/discord",
f"π Enterprise AI-Readiness & Edge Telemetry (RFC 9110 / ADNS / O2O): {base_url}/?src=youtube#consulting | Inspect workshop: curl -fsSL https://sunpug.io | less (Email: {CONTACT_EMAIL})",
f"π§ͺ Test RFC 9110 in your terminal: curl -sI -H \"Accept: text/markdown\" {canonical_url}?src=rfc9110",
"",
f"ποΈ Now reading live on the Web Bot AI Observatory: \"{title}\"",
]
[[[DIVIDER]]]
desc_parts = [
f"π Read the full article: {canonical_url}?src=youtube",
f"π£ Join the Founding 1,000 on Discord: {base_url}/discord",
f"π Enterprise AI-Readiness & Edge Telemetry (RFC 9110 / ADNS / O2O): {base_url}/?src=youtube#consulting | Inspect workshop: curl -fsSL https://sunpug.io | less (Email: {CONTACT_EMAIL})",
f"π§ͺ Test RFC 9110 in your terminal: curl -sI -H \"Accept: text/markdown\" {canonical_url}?src=rfc9110",
"",
f"π Now playing on A.I. Fishtank Story-Time: \"{title}\" β Type any Story # from the bottom bar in live chat to switch stories, or type 911 for a live Optics check!",
]
[[[REPLACE]]]
Target: scripts/articles/common.py
[[[SEARCH]]]
desc_parts.extend([
"",
"---",
"π About this 24/7 Home-Hosted NixOS Broadcast:",
"You are watching real-time Nginx access logs and AI crawler telemetry from mikelev.in.",
"β’ Agents sending 'Accept: text/markdown' (RFC 9110) receive clean raw Markdown.",
"β’ Agents executing JavaScript trigger the DOM trapdoor sensor.",
"β’ Zero-Agent Airlock: Deterministic NixOS + Piper TTS player piano (chat reaches a human, never an LLM shell).",
[[[DIVIDER]]]
desc_parts.extend([
"",
"---",
"π About A.I. Fishtank Story-Time (24/7 Interactive NixOS Broadcast):",
"You are watching live Nginx origin wire traffic and AI crawler behavior while 3-voice Story-Time plays.",
"β’ Take Control from Chat: Type any Story # shown on the bottom bar into live chat to switch stories, or type 911 for a live 16-lens Optics check.",
"β’ Agents sending 'Accept: text/markdown' (RFC 9110) receive clean raw Markdown.",
"β’ Agents executing JavaScript trigger the DOM trapdoor sensor.",
"β’ Zero-Agent Airlock: Deterministic NixOS + Piper TTS player piano (chat reaches a human, never an LLM shell).",
[[[REPLACE]]]
Target: scripts/articles/common.py
[[[SEARCH]]]
def _build_viewer_payload(viewers, video_id="", peak=0, discord_members=None) -> dict:
"""Build /tmp/honeybot_viewers.json payload carrying viewers, Founding-1,000 spots_left, and jukebox_max."""
import time
v_cnt = max(0, int(viewers or 0))
p_cnt = max(v_cnt, int(peak or 0))
dm = discord_members if discord_members is not None else _load_ytwatch_state().get("discord_members")
dm_int = int(dm) if dm is not None else None
spots = max(0, DISCORD_FOUNDING_GOAL - dm_int) if dm_int is not None else None
jb_max = _count_jukebox_posts()
return {
"viewers": v_cnt,
"peak": p_cnt,
"running": True,
"video_id": str(video_id or ""),
"discord_members": dm_int,
"spots_left": spots,
"jukebox_max": jb_max if jb_max > 0 else None,
"updated_at": int(time.time()),
}
[[[DIVIDER]]]
def _get_playable_story_ids(target_key="1") -> list[int]:
"""Return newest-first list of playable Norma-converted `_posts/_abstracts` Story IDs (excluding 911)."""
try:
targets = load_targets()
tcfg = targets.get(str(target_key), targets.get("1", DEFAULT_TARGETS["1"]))
pdir = Path(tcfg["path"]).expanduser()
hb_dir = str(Path(__file__).resolve().parents[2] / "remotes" / "honeybot" / "scripts")
if hb_dir not in sys.path:
sys.path.insert(0, hb_dir)
import content_loader as _cl
return [int(x) for x in _cl.get_jukebox_playable_ids(posts_dir=pdir) if int(x) > 0 and int(x) != 911]
except Exception:
return []
def _build_viewer_payload(viewers, video_id="", peak=0, discord_members=None) -> dict:
"""Build /tmp/honeybot_viewers.json payload carrying viewers, Founding-1,000 spots_left, and playable jukebox_ids."""
import time
v_cnt = max(0, int(viewers or 0))
p_cnt = max(v_cnt, int(peak or 0))
dm = discord_members if discord_members is not None else _load_ytwatch_state().get("discord_members")
dm_int = int(dm) if dm is not None else None
spots = max(0, DISCORD_FOUNDING_GOAL - dm_int) if dm_int is not None else None
jb_ids = _get_playable_story_ids()
jb_max = max(jb_ids) if jb_ids else _count_jukebox_posts()
return {
"viewers": v_cnt,
"peak": p_cnt,
"running": True,
"video_id": str(video_id or ""),
"discord_members": dm_int,
"spots_left": spots,
"jukebox_ids": jb_ids,
"jukebox_max": jb_max if jb_max > 0 else None,
"updated_at": int(time.time()),
}
[[[REPLACE]]]
Target: scripts/articles/common.py
[[[SEARCH]]]
("set-titles-string", f"π {v_cnt} {v_word}{peak_tag} β Honeybot Storytime"),
[[[DIVIDER]]]
("set-titles-string", f"π {v_cnt} {v_word}{peak_tag} β A.I. Fishtank Story-Time"),
[[[REPLACE]]]
Target: scripts/articles/common.py
[[[SEARCH]]]
YT_CHAT_CMD_COOLDOWN = int(os.environ.get("PIPULATE_YT_CHAT_COOLDOWN", "45"))
_CHAT_OPTICS_RE = re.compile(r"^[!/]?911$", re.IGNORECASE)
_CHAT_RABBIT_RE = re.compile(r"^[!/]?rabbit$", re.IGNORECASE)
_CHAT_JUKEBOX_RE = re.compile(r"^[!/]?jukebox\s+([1-9]\d{0,4})$", re.IGNORECASE)
_last_chat_cmd_ts = 0.0
[[[DIVIDER]]]
YT_CHAT_CMD_COOLDOWN = int(os.environ.get("PIPULATE_YT_CHAT_COOLDOWN", "45"))
_CHAT_OPTICS_RE = re.compile(r"^[!/]?#?911$", re.IGNORECASE)
_CHAT_STORY_NUM_RE = re.compile(r"^[!/]?(?:(?:story|play|jukebox)\s+)?#?([1-9]\d{0,4})$", re.IGNORECASE)
_last_chat_cmd_ts = 0.0
[[[REPLACE]]]
Target: scripts/articles/common.py
[[[SEARCH]]]
def parse_allowlisted_chat_command(raw_text: str):
"""Strict LAN allowlist parser for YouTube chat (# Β§ SENSE FROM THE LAN, NEVER THE DMZ)."""
s = (raw_text or "").strip()
if not s or len(s) > 24:
return None
if _CHAT_OPTICS_RE.match(s):
return ("optics", None)
if _CHAT_RABBIT_RE.match(s):
return ("rabbit", None)
m_jb = _CHAT_JUKEBOX_RE.match(s)
if m_jb:
return ("jukebox", int(m_jb.group(1)))
return None
[[[DIVIDER]]]
def parse_allowlisted_chat_command(raw_text: str, playable_ids=None):
"""Strict LAN allowlist parser for YouTube chat (# Β§ SENSE FROM THE LAN, NEVER THE DMZ)."""
s = (raw_text or "").strip()
if not s or len(s) > 24:
return None
if _CHAT_OPTICS_RE.match(s):
return ("optics", None)
m_num = _CHAT_STORY_NUM_RE.match(s)
if m_num:
story_id = int(m_num.group(1))
if story_id == 911:
return ("optics", None)
allowed = set(_get_playable_story_ids() if playable_ids is None else playable_ids)
if story_id in allowed:
return ("jukebox", story_id)
return None
[[[REPLACE]]]
Target: scripts/articles/common.py
[[[SEARCH]]]
def _actuate_allowlisted_chat_command(parsed_cmd, dry_run: bool = False) -> bool:
"""Dispatch a validated ('optics'|'rabbit'|'jukebox', arg) tuple to Honeybot with cooldown guard."""
global _last_chat_cmd_ts
import subprocess
import time
if not parsed_cmd:
return False
kind, arg = parsed_cmd
max_jb = _count_jukebox_posts()
if kind == "jukebox" and max_jb > 0 and int(arg) > max_jb:
print(f"[{_ytlog_ts()}] β οΈ [CHAT JUKEBOX] Out of range #{int(arg)} (1..{max_jb})", flush=True)
return False
now_ts = time.time()
if not dry_run and _last_chat_cmd_ts > 0 and (now_ts - _last_chat_cmd_ts) < YT_CHAT_CMD_COOLDOWN:
rem = int(YT_CHAT_CMD_COOLDOWN - (now_ts - _last_chat_cmd_ts))
print(f"[{_ytlog_ts()}] π‘οΈ [CHAT TRIGGER COOLDOWN] Holding {kind} ({rem}s remaining)", flush=True)
return False
if kind == "optics":
remote_cmd = "python3 ~/www/mikelev.in/scripts/stream.py --bead optics >/dev/null 2>&1"
elif kind == "rabbit":
remote_cmd = "python3 ~/www/mikelev.in/scripts/stream.py --bead white_rabbit >/dev/null 2>&1"
elif kind == "jukebox":
jb_json = json.dumps({"index": int(arg), "ts": int(now_ts)})
remote_cmd = (
f"printf '%s\\n' {jb_json!r} > ~/www/mikelev.in/.jukebox_request.tmp && "
"mv ~/www/mikelev.in/.jukebox_request.tmp ~/www/mikelev.in/.jukebox_request"
)
else:
return False
[[[DIVIDER]]]
def _actuate_allowlisted_chat_command(parsed_cmd, dry_run: bool = False) -> bool:
"""Dispatch a validated ('optics'|'jukebox', arg) tuple to Honeybot with cooldown guard."""
global _last_chat_cmd_ts
import subprocess
import time
if not parsed_cmd:
return False
kind, arg = parsed_cmd
if kind == "jukebox":
playable = set(_get_playable_story_ids())
if int(arg) == 911 or int(arg) not in playable:
print(f"[{_ytlog_ts()}] β οΈ [CHAT STORY] Story #{int(arg)} is not in playable _abstracts ({sorted(playable, reverse=True)[:8]})", flush=True)
return False
now_ts = time.time()
if not dry_run and _last_chat_cmd_ts > 0 and (now_ts - _last_chat_cmd_ts) < YT_CHAT_CMD_COOLDOWN:
rem = int(YT_CHAT_CMD_COOLDOWN - (now_ts - _last_chat_cmd_ts))
print(f"[{_ytlog_ts()}] π‘οΈ [CHAT TRIGGER COOLDOWN] Holding {kind} ({rem}s remaining)", flush=True)
return False
if kind == "optics":
remote_cmd = "python3 ~/www/mikelev.in/scripts/stream.py --bead optics >/dev/null 2>&1"
elif kind == "jukebox":
jb_json = json.dumps({"index": int(arg), "ts": int(now_ts)})
remote_cmd = (
f"printf '%s\\n' {jb_json!r} > ~/www/mikelev.in/.jukebox_request.tmp && "
"mv ~/www/mikelev.in/.jukebox_request.tmp ~/www/mikelev.in/.jukebox_request"
)
else:
return False
[[[REPLACE]]]
Car 3b β On-Air A.I. Fishtank Story-Time Voiceover, Chat Takeover Cue, & Station-Break Framing (stream.py, forest.py):
Target: remotes/honeybot/scripts/stream.py
[[[SEARCH]]]
PITCH_TEXT = (
"Welcome to the Honeybot A I Observatory β the live, unfiltered Engine X origin wire for Mike L E V dot eye N. "
[[[DIVIDER]]]
PITCH_TEXT = (
"Welcome to A.I. Fishtank Story-Time β the live, unfiltered Engine X origin fishtank for Mike L E V dot eye N. "
[[[REPLACE]]]
Target: remotes/honeybot/scripts/stream.py
[[[SEARCH]]]
_HOST_TRANSIENT_RE = (
"we interrupt", "we now return", "scheduled station", "scheduled observatory",
"field note from the wire", "end of wire field note", "field record from the web bot",
"receiving updates", "minor maintenance", "signal check", "the article currently",
"now i read", "resuming storytime", "breaking news", "to hear the next article",
"if you are actually here", "none of this is trained", "this live-broadcast",
"this is the signal",
)
[[[DIVIDER]]]
_HOST_TRANSIENT_RE = (
"we interrupt", "we now return", "scheduled station", "scheduled observatory",
"scheduled fishtank", "fishtank notice", "welcome inside a.i. fishtank",
"welcome inside a i fishtank", "welcome to a.i. fishtank", "welcome to a i fishtank",
"field note from the wire", "end of wire field note", "the story currently",
"chat takeover", "switching now to story", "you can take control",
"receiving updates", "minor maintenance", "signal check", "the article currently",
"now i read", "resuming storytime", "breaking news", "to hear the next article",
"if you are actually here", "none of this is trained", "this live-broadcast",
"this is the signal",
)
[[[REPLACE]]]
Target: remotes/honeybot/scripts/stream.py
[[[SEARCH]]]
spoken_line = (
f"The article currently being read on this broadcast is titled: {title}. "
"To read the full article text and inspect the raw code receipts at your own pace, "
"visit Mike L E V dot eye N slash latest."
)
[[[DIVIDER]]]
spoken_line = (
f"The story currently playing in the fishtank is titled: {title}. "
"Type any story number on the bottom bar in live chat to take control and switch stories, "
"or inspect the full source at Mike L E V dot eye N slash latest."
)
[[[REPLACE]]]
Target: remotes/honeybot/scripts/stream.py
[[[SEARCH]]]
closing_line = (
f"Curtain up on Act One of: {clean_title}."
if clean_mode == "OVERTURE"
else (
f"That concludes our midpoint intermission for: {clean_title}. "
"Full source and receipts live at Mike L E V dot eye N slash latest, "
"grab your own free Sun Pug at Sun Pug dot eye oh, and join us on Discord at Mike L E V dot eye N slash discord."
)
)
return [
narrator._make_spec(
"norma",
"Field record from the Web Bot A I Observatory. At the top is an unfiltered Engine X origin wire where A I retrieval agents outpace human browsers β the exact first-party edge telemetry enterprises unlock with Authoritative D N S and Orange-to-Orange C D N streams. Orange marks A I agents, cyan tags external referrals, blue diamonds mark R F C 94 21 cryptographic signatures, and red unmasks exploit scanners.",
"narrator",
"inactive",
"inactive",
hud_focus="logs",
),
[[[DIVIDER]]]
closing_line = (
f"You can take control of this fishtank anytime: type a story number from the bottom bar in live chat to switch stories, or type nine eleven for a live Optics check. Curtain up on Act One of: {clean_title}."
if clean_mode == "OVERTURE"
else (
f"That concludes our midpoint intermission for: {clean_title}. "
"Type any story number from the bottom bar in live chat to take control and switch stories, "
"grab your free Sun Pug at Sun Pug dot eye oh, and join us on Discord at Mike L E V dot eye N slash discord."
)
)
return [
narrator._make_spec(
"norma",
"Welcome inside A.I. Fishtank Story-Time. Swimming across the top glass is our live, unfiltered Engine X origin wire where A I retrieval agents outpace human browsers β the exact first-party edge telemetry enterprises unlock with Authoritative D N S and Orange-to-Orange C D N streams. Orange marks A I agents, cyan tags external referrals, blue diamonds mark R F C 94 21 cryptographic signatures, and red unmasks exploit scanners.",
"narrator",
"inactive",
"inactive",
hud_focus="logs",
),
[[[REPLACE]]]
Target: remotes/honeybot/scripts/stream.py
[[[SEARCH]]]
REBOOT_ANNOUNCEMENT_TEXT = (
"Scheduled observatory reset. "
"Refreshing memory now β stay tuned, the live stream stays connected and resumes in about a minute."
)
[[[DIVIDER]]]
REBOOT_ANNOUNCEMENT_TEXT = (
"Scheduled fishtank refresh. "
"Clearing memory now β stay tuned, the live stream stays connected and Story-Time resumes in about a minute."
)
[[[REPLACE]]]
Target: remotes/honeybot/scripts/stream.py
[[[SEARCH]]]
narrator.say(
"Observatory notice: scheduled four-hour memory refresh coming up in under two minutes. "
"Stay tuned β the live stream remains connected."
)
[[[DIVIDER]]]
narrator.say(
"Fishtank notice: scheduled four-hour memory refresh coming up in under two minutes. "
"Stay tuned β the live stream remains connected."
)
[[[REPLACE]]]
Target: remotes/honeybot/scripts/stream.py
[[[SEARCH]]]
jb_req = check_jukebox_request()
if jb_req:
stop_storytime_bgm()
narrator.interrupt()
narrator.say(f"Jukebox request received for entry number {jb_req}.")
[[[DIVIDER]]]
jb_req = check_jukebox_request()
if jb_req:
stop_storytime_bgm()
narrator.interrupt()
narrator.say(f"Chat takeover! Switching now to story number {jb_req}.")
[[[REPLACE]]]
Target: remotes/honeybot/scripts/stream.py
[[[SEARCH]]]
NARRATOR_SAYS = (
"Now I read from the live observatory monitoring our origin wire. "
"This broadcast tracks the shift from legacy S E O to first-party A I Readiness β "
"serving R F C 91 10 Markdown and R F C 91 11 Vary Accept edge caching from one canonical U R L. "
"Grab your own local-first Sun Pug at Sun Pug dot eye oh, or connect at Mike L E V dot eye N slash discord. "
"Now, curtain up on storytime! "
)
[[[DIVIDER]]]
NARRATOR_SAYS = (
"Now I read from inside the live A.I. Fishtank monitoring our origin wire. "
"Type any story number on the bottom bar in live chat to take control, or type nine eleven for a live Optics check. "
"Grab your own local-first Sun Pug at Sun Pug dot eye oh, or connect at Mike L E V dot eye N slash discord. "
"Now, curtain up on Story-Time! "
)
[[[REPLACE]]]
Target: remotes/honeybot/scripts/forest.py
[[[SEARCH]]]
STATION_SEGMENTS = [
_make_station_bead(
"RFC 9110\nMARKDOWN",
"Live wire report: who actually negotiates R F C 9110 Markdown on this origin.",
("WINDOW", f"forest.py:{REPORT_WINDOW_CAP_SECONDS}:overview"),
[
"{LIVE_REPORT:overview}",
"Serving clean Markdown from the same canonical U R L via R F C 9111 Vary Accept gives A I agents primary signal without duplicate pages β unlocked on any enterprise edge via Authoritative D N S and Orange-to-Orange streams.",
],
),
[
(
"CARD",
{
"label": "911 LLM\nOPTICS",
"say": "Live audit showcase: 911 L L M Optics, our local-first sixteen-lens wire-truth spectrometer.",
},
),
("OPTICS_SLOT", {"handshake_wait": 12.0, "claim_grace": 40.0, "timeout": 180.0}),
],
_make_station_bead(
"DOM TRAPDOOR\nJS EXECS",
"Live wire report: testing the conventional assumption that A I crawlers skip client-side JavaScript.",
("WINDOW", f"forest.py:{REPORT_WINDOW_CAP_SECONDS}:bimodal"),
[
"{LIVE_REPORT:bimodal}",
"An eight-hundred-millisecond image beacon inside client-side JavaScript separates true headless browser renderers from raw H T M L scrapers right in the origin log.",
],
),
]
[[[DIVIDER]]]
STATION_SEGMENTS = [
_make_station_bead(
"RFC 9110\nMARKDOWN",
"Live fishtank report: who actually negotiates R F C 9110 Markdown on this origin.",
("WINDOW", f"forest.py:{REPORT_WINDOW_CAP_SECONDS}:overview"),
[
"{LIVE_REPORT:overview}",
"Serving clean Markdown from the same canonical U R L via R F C 9111 Vary Accept gives A I agents primary signal without duplicate pages β unlocked on any enterprise edge via Authoritative D N S and Orange-to-Orange streams.",
],
),
[
(
"CARD",
{
"label": "911 LLM\nOPTICS",
"say": "Live fishtank showcase: 911 L L M Optics, our local-first sixteen-lens wire-truth spectrometer. Type nine eleven in live chat anytime to trigger an audit, or type any story number on the bottom bar to switch stories.",
},
),
("OPTICS_SLOT", {"handshake_wait": 12.0, "claim_grace": 40.0, "timeout": 180.0}),
],
_make_station_bead(
"DOM TRAPDOOR\nJS EXECS",
"Live fishtank report: testing the conventional assumption that A I crawlers skip client-side JavaScript.",
("WINDOW", f"forest.py:{REPORT_WINDOW_CAP_SECONDS}:bimodal"),
[
"{LIVE_REPORT:bimodal}",
"An eight-hundred-millisecond image beacon inside client-side JavaScript separates true headless browser renderers from raw H T M L scrapers right in the origin log.",
],
),
]
[[[REPLACE]]]
Target: remotes/honeybot/scripts/forest.py
[[[SEARCH]]]
footer = Text.from_markup(
"[bold bright_white]π‘ Wire:[/bold bright_white] [bold #ffd700]https://MikeLev.in[/bold #ffd700] "
"[dim]β[/dim] [bold bright_green]Free 911 Optics:[/bold bright_green] [bold bright_cyan]https://SunPug.io[/bold bright_cyan] "
"[dim]β[/dim] [bold bright_magenta]Discord:[/bold bright_magenta] [bold bright_white]MikeLev.in/discord[/bold bright_white] "
"[dim]Β·[/dim] [bold cyan]curl -fsSL sunpug.io | less[/bold cyan]"
)
[[[DIVIDER]]]
footer = Text.from_markup(
"[bold bright_white]π Fishtank:[/bold bright_white] [bold #ffd700]MikeLev.in[/bold #ffd700] "
"[dim]β[/dim] [bold #38bdf8]π¬ Chat:[/bold #38bdf8] [bold bright_white]Type Story # or 911[/bold bright_white] "
"[dim]β[/dim] [bold bright_green]Tools:[/bold bright_green] [bold bright_cyan]SunPug.io[/bold bright_cyan] "
"[dim]β[/dim] [bold bright_magenta]Discord:[/bold bright_magenta] [bold bright_white]MikeLev.in/discord[/bold bright_white]"
)
[[[REPLACE]]]
Ignition: no ignition required for the local straddle probes (ytwatch on Prime hot-reloads common.py automatically on mtime change; run ytreboot whenever you want Honeybot :10.0 to sync and flip live immediately).
4: PROMPT (Use prompt or p to create prompt.md from copy):
With Step 2 verified in the straddle receipts and `logs.py`, `score.py`, `content_loader.py`, `forest.py`, and `generate_redirects.py` loaded in raw source, build Step 3 (Interactive Story-Control Ticker, `mikelev.in/<ID>` Short URLs, & Story Menu Report) in clean single-story fenced cars (`<= 120` lines aimed per car):
1. **Car 3a (`remotes/honeybot/scripts/{content_loader.py,score.py,logs.py}`) β Dynamic Story-Control 5-Row LED Ticker & YAML Topic Tag**:
- Read an optional 1β2 word `ticker_tag` (with clean fallback) from post/abstract YAML frontmatter, pass `jukebox_index` + `ticker_tag` through `score.py` into `/tmp/honeybot_stage.json`, and sweep the remaining `"observatory"` line in `score.py`.
- Put `logs.py`'s 5-row LED billboard in direct service of interactive takeover (e.g. `NOW PLAYING #<ID> | MIKELEV.IN/<ID> | <TICKER_TAG> | TYPE STORY # | OR TYPE: MENU | TAKE CONTROL! | <GLOBAL_PRIORITY>`), updating automatically whenever the active story changes while still honoring manual `ytticker` overrides.
2. **Car 3b (`scripts/articles/generate_redirects.py` + `remotes/honeybot/scripts/forest.py`) β `mikelev.in/<ID>` Short Redirects & `forest.py` `menu` Report**:
- Emit `/<article_id>` -> canonical post URL rules in `generate_redirects.py` so every `MIKELEV.IN/1337` ticker card resolves on the live site.
- Add a `menu` report mode + spoken summary in `forest.py` listing the newest playable Norma Story `#`s, dates, and titles so `TYPE: MENU` can pop a live Story Menu onto `:10.0`.
5: DELIVERABLE (What done looks like):
- Typing a bare Story
#(1661,#1661) in YouTube Live Chat switches Honeybot straight to that Norma Puppet Theater story; typing911(#911) triggers the 911 Live Optics check; un-minted numbers andrabbitare ignored cleanly. - Every on-air intro, Overture/Intermission tour, station break, chat-takeover cue, and YouTube description presents the stream as A.I. Fishtank Story-Time and invites viewers to take control by typing a numberβzero 1950s βJukeboxβ phrasing. No external manual-paste deliverables required.
MikeLev.in:
THE AI-EDIT METHOD
Same commands, run twice, one change between them. Where the readings differ is what the change did; the diff in the middle is the receipt.
1: BEFORE (PROBE):
On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean
GIT repo clean. Take BEFORE reading, make CHANGE, record AFTER diff.
(nix) pipulate $ .venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "scripts/articles")); import common; cases = ["911", "#911", "rabbit", "!rabbit", "1661", "#1661", "42", "jukebox 1660"]; parsed = [(c, common.parse_allowlisted_chat_command(c)) for c in cases]; vp = common._build_viewer_payload(2, video_id="vid", peak=4); print("PARSED:", parsed); print("VIEWER_JB_IDS:", vp.get("jukebox_ids"))'
rg -n "_CHAT_RABBIT_RE|Jukebox request received|Web Bot A I Observatory|Web Bot AI Observatory|Scheduled observatory" scripts/articles/common.py remotes/honeybot/scripts/stream.py remotes/honeybot/scripts/forest.py remotes/honeybot/scripts/score.py || true
PARSED: [('911', ('optics', None)), ('#911', None), ('rabbit', ('rabbit', None)), ('!rabbit', ('rabbit', None)), ('1661', None), ('#1661', None), ('42', None), ('jukebox 1660', ('jukebox', 1660))]
VIEWER_JB_IDS: None
remotes/honeybot/scripts/stream.py
2837: "Field record from the Web Bot A I Observatory. At the top is an unfiltered Engine X origin wire where A I retrieval agents outpace human browsers β the exact first-party edge telemetry enterprises unlock with Authoritative D N S and Orange-to-Orange C D N streams. Orange marks A I agents, cyan tags external referrals, blue diamonds mark R F C 94 21 cryptographic signatures, and red unmasks exploit scanners.",
3474: "Scheduled observatory reset. "
3702: narrator.say(f"Jukebox request received for entry number {jb_req}.")
scripts/articles/common.py
636: f"ποΈ Now reading live on the Web Bot AI Observatory: \"{title}\"",
1995:_CHAT_RABBIT_RE = re.compile(r"^[!/]?rabbit$", re.IGNORECASE)
2007: if _CHAT_RABBIT_RE.match(s):
(nix) pipulate $
2: AFTER (NEXT CONTEXT):
# # Context 1: Step 1 Bare-Number Jukebox & terms.py
# context.txt
# ! eza -1 remotes/honeybot/scripts
# ! rg -n 'jukebox|ytwatch|\brabbit\b' flake.nix scripts remotes/honeybot/scripts
# ! .venv/bin/python -c 'import pathlib, re; base = pathlib.Path("/home/mike/repos/trimnoir/_posts"); abs_files = sorted((base / "_abstracts").glob("*.md")) if (base / "_abstracts").is_dir() else []; p911 = [p.name for p in base.glob("*.md") if re.search(r"(?m)^article_id:\s*[\x27\x22]?911\b", p.read_text(errors="ignore")[:2048])]; print("abstracts:", len(abs_files), [f.name for f in abs_files[:5]], "id_911:", p911)'
#
# flake.nix
# scripts/chat_route_probe.py
# remotes/honeybot/scripts/terms.py
# remotes/honeybot/scripts/content_loader.py
# remotes/honeybot/scripts/score.py
# remotes/honeybot/scripts/logs.py
# scripts/articles/norma_extract.py
# deleteme.txt
# # Context 2: Bare-Number Chat Parser in ytwatch (common.py) & Stream Fishtank Sweep
# context.txt
# ! .venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "remotes/honeybot/scripts")); import terms, content_loader as cl; sample = "A.I. FISHTANK STORY-TIME for CMOs & CTOs in the c-suite, Reschke, Yutes, Mike-E, Weebo, NetOps, 911 in chat, mikelev.in/1337"; ids = cl.get_jukebox_playable_ids() if hasattr(cl, "get_jukebox_playable_ids") else None; lg = (REPO_ROOT / "remotes/honeybot/scripts/logs.py").read_text(); sc = (REPO_ROOT / "remotes/honeybot/scripts/score.py").read_text(); print("TTS:", terms.apply_inline_tts_terms(sample)); print("PLAYABLE_IDS:", ids); print("LOGS_FISHTANK:", "A.I. FISHTANK STORY-TIME" in lg, "LOGS_NO_RABBIT:", "rabbit" not in lg); print("SCORE_FISHTANK:", "A.I. FISHTANK" in sc)'
# ! .venv/bin/python scripts/pyprobe.py 'rc, out = capture_call(["rg", "-n", "-i", "observatory|fishtank|_CHAT_OPTICS_RE|_CHAT_RABBIT_RE|_CHAT_JUKEBOX_RE", "remotes/honeybot/scripts", "scripts"]); print(out[:3500])'
# scripts/articles/common.py
# remotes/honeybot/scripts/stream.py
# remotes/honeybot/scripts/forest.py
# Context 2b: Fix F821 Per-Block Airlock in common.py & Complete Stream Fishtank Sweep
context.txt
! .venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "scripts/articles")); import common; cases = ["911", "#911", "rabbit", "!rabbit", "1661", "#1661", "42", "jukebox 1660"]; parsed = [(c, common.parse_allowlisted_chat_command(c)) for c in cases]; vp = common._build_viewer_payload(2, video_id="vid", peak=4); print("PARSED:", parsed); print("VIEWER_JB_IDS:", vp.get("jukebox_ids"))'
! rg -n "_CHAT_RABBIT_RE|Jukebox request received|Web Bot A I Observatory|Web Bot AI Observatory|Scheduled observatory" scripts/articles/common.py remotes/honeybot/scripts/stream.py remotes/honeybot/scripts/forest.py remotes/honeybot/scripts/score.py || true
scripts/articles/common.py
remotes/honeybot/scripts/stream.py
remotes/honeybot/scripts/forest.py
# # Context 3: Story-Control LED Ticker, mikelev.in/<ID> Short URLs, & Story Menu Report
# context.txt
# ! .venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "scripts/articles")); import common; cases = ["911", "#911", "rabbit", "!rabbit", "1661", "#1661", "42", "jukebox 1660"]; parsed = [(c, common.parse_allowlisted_chat_command(c)) for c in cases]; vp = common._build_viewer_payload(2, video_id="vid", peak=4); print("PARSED:", parsed); print("VIEWER_JB_IDS:", vp.get("jukebox_ids"))'
# ! rg -n "_CHAT_RABBIT_RE|Jukebox request received|Web Bot A I Observatory|Web Bot AI Observatory|Scheduled observatory" scripts/articles/common.py remotes/honeybot/scripts/stream.py remotes/honeybot/scripts/forest.py remotes/honeybot/scripts/score.py || true
# remotes/honeybot/scripts/logs.py
# remotes/honeybot/scripts/score.py
# remotes/honeybot/scripts/content_loader.py
# remotes/honeybot/scripts/forest.py
# scripts/articles/generate_redirects.py
3: CHANGE (PATCHES):
On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean
GIT repo clean. Take BEFORE reading, make CHANGE, record AFTER diff.
(nix) pipulate $ patch
(nix) pipulate $ app
β Error: Patching 'scripts/articles/common.py' aborted. Undefined/unbound name (Ruff F821/F823):
F821 Undefined name `_CHAT_RABBIT_RE`
--> scripts/articles/common.py:2024:8
|
2022 | if _CHAT_OPTICS_RE.match(s):
2023 | return ("optics", None)
2024 | if _CHAT_RABBIT_RE.match(s):
| ^^^^^^^^^^^^^^^
2025 | return ("rabbit", None)
2026 | m_jb = _CHAT_JUKEBOX_RE.match(s)
|
F821 Undefined name `_CHAT_JUKEBOX_RE`
--> scripts/articles/common.py:2026:12
|
2024 | if _CHAT_RABBIT_RE.match(s):
2025 | return ("rabbit", None)
2026 | m_jb = _CHAT_JUKEBOX_RE.match(s)
| ^^^^^^^^^^^^^^^^
2027 | if m_jb:
2028 | return ("jukebox", int(m_jb.group(1)))
|
Found 2 errors.
β Error: Patching 'scripts/articles/common.py' aborted. Undefined/unbound name (Ruff F821/F823):
F821 Undefined name `_CHAT_STORY_NUM_RE`
--> scripts/articles/common.py:2025:13
|
2023 | if _CHAT_OPTICS_RE.match(s):
2024 | return ("optics", None)
2025 | m_num = _CHAT_STORY_NUM_RE.match(s)
| ^^^^^^^^^^^^^^^^^^
2026 | if m_num:
2027 | story_id = int(m_num.group(1))
|
Found 1 error.
π Atomic rollback: 1 staged file(s) withheld; nothing was written to disk.
(nix) pipulate $
Uh oh. We slam on the 5-Car Train breaks and fix.
Staged Syntax Airlocks and Bare-Number Chat Parsing
Gemini 4 Carbon High: Context verified.
TL;DR: Good catch slamming the brakesβapply.py was running Ruff F821/F823 inside the per-block surgical loop rather than once per staged file after all blocks in a car land. Deleting _CHAT_RABBIT_RE and _CHAT_JUKEBOX_RE in Block 6 before Block 7 updated parse_allowlisted_chat_command() tripped F821 mid-car and triggered atomic rollback. Below: Car 3a (apply.py) moves surgical syntax/F821 validation to the post-loop staged buffer (still ahead of any disk write), Car 3b (common.py) also orders its regex blocks so zero intermediate F821 or blank-line boundaries exist even under the old airlock, and Car 3c (stream.py, forest.py) completes the on-air A.I. Fishtank Story-Time sweep.
Root Cause & Fix
- Why
appRolled Back: Inapply.py,_validate_syntax_airlocks()ran immediately after each[[[SEARCH]]]/[[[REPLACE]]]block instead of after all blocks in the car had been applied tostaged_contentsin memory:- Block 6 removed
_CHAT_RABBIT_RE/_CHAT_JUKEBOX_REand added_CHAT_STORY_NUM_RE, so line 2024 (parse_allowlisted_chat_command, queued in Block 7) momentarily hadF821 Undefined name _CHAT_RABBIT_RE-> Block 6 was rejected. - Block 7 then ran against the un-staged buffer and failed with
F821 Undefined name _CHAT_STORY_NUM_RE-> atomic rollback withheld the file cleanly.
- Block 6 removed
- Two-Layer Fix:
- Car 3a (
apply.py): Validatesstaged_contentsonce per patched file after all surgical blocks in the car are staged in memory (before touching disk), so multi-block symbol renames in a single car never false-positive mid-flight. - Car 3b (
scripts/articles/common.py): Orders the regex edits (add _CHAT_STORY_NUM_RE->switch parse_allowlisted_chat_command->remove _CHAT_RABBIT_RE / _CHAT_JUKEBOX_RE) across blank-free spans so every intermediate state is alsoF821-clean on its own. - Car 3c (
remotes/honeybot/scripts/{stream.py,forest.py}): Applies the unchanged A.I. Fishtank Story-Time voiceover and station-break updates.
- Car 3a (
1: BEFORE (PROBE β read-only; witnesses the multi-block symbol-rename airlock in apply.py, runs test_apply_airlock.py, tests common.py bare-number chat parsing, and checks remaining legacy strings):
(nix) pipulate $
.venv/bin/python scripts/pyprobe.py 'import apply; f_body = "OLD = 1\ndef f():\n return OLD\n"; d = tempfile.mkdtemp(); tf = Path(d) / "t.py"; tf.write_text(f_body); p = f"Target: {tf}\n{SEARCH_MARK}\nOLD = 1\n{DIVIDER_MARK}\nNEW = 2\n{REPLACE_MARK}\nTarget: {tf}\n{SEARCH_MARK}\n return OLD\n{DIVIDER_MARK}\n return NEW\n{REPLACE_MARK}\n"; ok = apply.apply_search_replace_patch(p); shutil.rmtree(d, ignore_errors=True); print("MULTI_BLOCK_RENAME_OK:", ok)'
.venv/bin/python -m unittest tests/test_apply_airlock.py
.venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "scripts/articles")); import common; cases = ["911", "#911", "rabbit", "!rabbit", "1661", "#1661", "42", "jukebox 1660"]; parsed = [(c, common.parse_allowlisted_chat_command(c)) for c in cases]; vp = common._build_viewer_payload(2, video_id="vid", peak=4); print("PARSED:", parsed); print("VIEWER_JB_IDS:", vp.get("jukebox_ids"))'
rg -n "_CHAT_RABBIT_RE|Jukebox request received|Web Bot A I Observatory|Web Bot AI Observatory|Scheduled observatory" scripts/articles/common.py remotes/honeybot/scripts/stream.py remotes/honeybot/scripts/forest.py remotes/honeybot/scripts/score.py || true
2: AFTER (NEXT CONTEXT β put in context.txt using context or x; echoes all 4 probes, sheds 97k tokens of common.py + stream.py, and loads Step 3βs ticker, redirect, and menu files):
# Context 3: Story-Control LED Ticker, mikelev.in/<ID> Short URLs, & Story Menu Report
context.txt
! .venv/bin/python scripts/pyprobe.py 'import apply; f_body = "OLD = 1\ndef f():\n return OLD\n"; d = tempfile.mkdtemp(); tf = Path(d) / "t.py"; tf.write_text(f_body); p = f"Target: {tf}\n{SEARCH_MARK}\nOLD = 1\n{DIVIDER_MARK}\nNEW = 2\n{REPLACE_MARK}\nTarget: {tf}\n{SEARCH_MARK}\n return OLD\n{DIVIDER_MARK}\n return NEW\n{REPLACE_MARK}\n"; ok = apply.apply_search_replace_patch(p); shutil.rmtree(d, ignore_errors=True); print("MULTI_BLOCK_RENAME_OK:", ok)'
! .venv/bin/python -m unittest tests/test_apply_airlock.py
! .venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "scripts/articles")); import common; cases = ["911", "#911", "rabbit", "!rabbit", "1661", "#1661", "42", "jukebox 1660"]; parsed = [(c, common.parse_allowlisted_chat_command(c)) for c in cases]; vp = common._build_viewer_payload(2, video_id="vid", peak=4); print("PARSED:", parsed); print("VIEWER_JB_IDS:", vp.get("jukebox_ids"))'
! rg -n "_CHAT_RABBIT_RE|Jukebox request received|Web Bot A I Observatory|Web Bot AI Observatory|Scheduled observatory" scripts/articles/common.py remotes/honeybot/scripts/stream.py remotes/honeybot/scripts/forest.py remotes/honeybot/scripts/score.py || true
remotes/honeybot/scripts/logs.py
remotes/honeybot/scripts/score.py
remotes/honeybot/scripts/content_loader.py
remotes/honeybot/scripts/forest.py
scripts/articles/generate_redirects.py
3: CHANGE (PATCHES β three clean single-story cars, all under the 120-line aim):
Car 3a β Validate Surgical Syntax & Ruff F821/F823 Once Per Staged File After All Car Blocks Land (apply.py):
Target: apply.py
[[[SEARCH]]]
if not _validate_syntax_airlocks(filename, new_content, "Patching"):
success = False
continue
staged_contents[abs_key] = new_content
if abs_key not in commit_plan:
commit_plan[abs_key] = (filename, "patch", True)
if not success:
if staged_contents:
print(f"π Atomic rollback: {len(staged_contents)} staged file(s) withheld; nothing was written to disk.")
return False
[[[DIVIDER]]]
staged_contents[abs_key] = new_content
if abs_key not in commit_plan:
commit_plan[abs_key] = (filename, "patch", True)
for abs_key, final_content in staged_contents.items():
filename, mode, _ = commit_plan[abs_key]
if mode == "patch" and not _validate_syntax_airlocks(filename, final_content, "Patching"):
success = False
if not success:
if staged_contents:
print(f"π Atomic rollback: {len(staged_contents)} staged file(s) withheld; nothing was written to disk.")
return False
[[[REPLACE]]]
Car 3b β Bare-Number YouTube Chat Parser, _abstracts Allowlist, & Fishtank Broadcast Copy (scripts/articles/common.py):
Target: scripts/articles/common.py
[[[SEARCH]]]
def format_youtube_title(title):
"""Build a <=100-char YouTube Live title from the article title."""
clean = " ".join(_yt_sanitize(title).split())
if not clean:
return "LIVE: Honeybot AI Observatory"
[[[DIVIDER]]]
def format_youtube_title(title):
"""Build a <=100-char YouTube Live title from the article title."""
clean = " ".join(_yt_sanitize(title).split())
if not clean:
return "LIVE: A.I. Fishtank Story-Time"
[[[REPLACE]]]
Target: scripts/articles/common.py
[[[SEARCH]]]
desc_parts = [
f"π Read the full article: {canonical_url}?src=youtube",
f"π£ Join the Founding 1,000 on Discord: {base_url}/discord",
f"π Enterprise AI-Readiness & Edge Telemetry (RFC 9110 / ADNS / O2O): {base_url}/?src=youtube#consulting | Inspect workshop: curl -fsSL https://sunpug.io | less (Email: {CONTACT_EMAIL})",
f"π§ͺ Test RFC 9110 in your terminal: curl -sI -H \"Accept: text/markdown\" {canonical_url}?src=rfc9110",
"",
f"ποΈ Now reading live on the Web Bot AI Observatory: \"{title}\"",
]
[[[DIVIDER]]]
desc_parts = [
f"π Read the full article: {canonical_url}?src=youtube",
f"π£ Join the Founding 1,000 on Discord: {base_url}/discord",
f"π Enterprise AI-Readiness & Edge Telemetry (RFC 9110 / ADNS / O2O): {base_url}/?src=youtube#consulting | Inspect workshop: curl -fsSL https://sunpug.io | less (Email: {CONTACT_EMAIL})",
f"π§ͺ Test RFC 9110 in your terminal: curl -sI -H \"Accept: text/markdown\" {canonical_url}?src=rfc9110",
"",
f"π Now playing on A.I. Fishtank Story-Time: \"{title}\" β Type any Story # from the bottom bar in live chat to switch stories, or type 911 for a live Optics check!",
]
[[[REPLACE]]]
Target: scripts/articles/common.py
[[[SEARCH]]]
desc_parts.extend([
"",
"---",
"π About this 24/7 Home-Hosted NixOS Broadcast:",
"You are watching real-time Nginx access logs and AI crawler telemetry from mikelev.in.",
"β’ Agents sending 'Accept: text/markdown' (RFC 9110) receive clean raw Markdown.",
"β’ Agents executing JavaScript trigger the DOM trapdoor sensor.",
"β’ Zero-Agent Airlock: Deterministic NixOS + Piper TTS player piano (chat reaches a human, never an LLM shell).",
[[[DIVIDER]]]
desc_parts.extend([
"",
"---",
"π About A.I. Fishtank Story-Time (24/7 Interactive NixOS Broadcast):",
"You are watching live Nginx origin wire traffic and AI crawler behavior while 3-voice Story-Time plays.",
"β’ Take Control from Chat: Type any Story # shown on the bottom bar into live chat to switch stories, or type 911 for a live 16-lens Optics check.",
"β’ Agents sending 'Accept: text/markdown' (RFC 9110) receive clean raw Markdown.",
"β’ Agents executing JavaScript trigger the DOM trapdoor sensor.",
"β’ Zero-Agent Airlock: Deterministic NixOS + Piper TTS player piano (chat reaches a human, never an LLM shell).",
[[[REPLACE]]]
Target: scripts/articles/common.py
[[[SEARCH]]]
def _build_viewer_payload(viewers, video_id="", peak=0, discord_members=None) -> dict:
"""Build /tmp/honeybot_viewers.json payload carrying viewers, Founding-1,000 spots_left, and jukebox_max."""
import time
v_cnt = max(0, int(viewers or 0))
p_cnt = max(v_cnt, int(peak or 0))
dm = discord_members if discord_members is not None else _load_ytwatch_state().get("discord_members")
dm_int = int(dm) if dm is not None else None
spots = max(0, DISCORD_FOUNDING_GOAL - dm_int) if dm_int is not None else None
jb_max = _count_jukebox_posts()
return {
"viewers": v_cnt,
"peak": p_cnt,
"running": True,
"video_id": str(video_id or ""),
"discord_members": dm_int,
"spots_left": spots,
"jukebox_max": jb_max if jb_max > 0 else None,
"updated_at": int(time.time()),
}
[[[DIVIDER]]]
def _get_playable_story_ids(target_key="1") -> list[int]:
"""Return newest-first list of playable Norma-converted `_posts/_abstracts` Story IDs (excluding 911)."""
try:
targets = load_targets()
tcfg = targets.get(str(target_key), targets.get("1", DEFAULT_TARGETS["1"]))
pdir = Path(tcfg["path"]).expanduser()
hb_dir = str(Path(__file__).resolve().parents[2] / "remotes" / "honeybot" / "scripts")
if hb_dir not in sys.path:
sys.path.insert(0, hb_dir)
import content_loader as _cl
return [int(x) for x in _cl.get_jukebox_playable_ids(posts_dir=pdir) if int(x) > 0 and int(x) != 911]
except Exception:
return []
def _build_viewer_payload(viewers, video_id="", peak=0, discord_members=None) -> dict:
"""Build /tmp/honeybot_viewers.json payload carrying viewers, Founding-1,000 spots_left, and playable jukebox_ids."""
import time
v_cnt = max(0, int(viewers or 0))
p_cnt = max(v_cnt, int(peak or 0))
dm = discord_members if discord_members is not None else _load_ytwatch_state().get("discord_members")
dm_int = int(dm) if dm is not None else None
spots = max(0, DISCORD_FOUNDING_GOAL - dm_int) if dm_int is not None else None
jb_ids = _get_playable_story_ids()
jb_max = max(jb_ids) if jb_ids else _count_jukebox_posts()
return {
"viewers": v_cnt,
"peak": p_cnt,
"running": True,
"video_id": str(video_id or ""),
"discord_members": dm_int,
"spots_left": spots,
"jukebox_ids": jb_ids,
"jukebox_max": jb_max if jb_max > 0 else None,
"updated_at": int(time.time()),
}
[[[REPLACE]]]
Target: scripts/articles/common.py
[[[SEARCH]]]
("set-titles-string", f"π {v_cnt} {v_word}{peak_tag} β Honeybot Storytime"),
[[[DIVIDER]]]
("set-titles-string", f"π {v_cnt} {v_word}{peak_tag} β A.I. Fishtank Story-Time"),
[[[REPLACE]]]
Target: scripts/articles/common.py
[[[SEARCH]]]
YT_CHAT_CMD_COOLDOWN = int(os.environ.get("PIPULATE_YT_CHAT_COOLDOWN", "45"))
_CHAT_OPTICS_RE = re.compile(r"^[!/]?911$", re.IGNORECASE)
[[[DIVIDER]]]
YT_CHAT_CMD_COOLDOWN = int(os.environ.get("PIPULATE_YT_CHAT_COOLDOWN", "45"))
_CHAT_OPTICS_RE = re.compile(r"^[!/]?#?911$", re.IGNORECASE)
_CHAT_STORY_NUM_RE = re.compile(r"^[!/]?(?:(?:story|play|jukebox)\s+)?#?([1-9]\d{0,4})$", re.IGNORECASE)
[[[REPLACE]]]
Target: scripts/articles/common.py
[[[SEARCH]]]
def parse_allowlisted_chat_command(raw_text: str):
"""Strict LAN allowlist parser for YouTube chat (# Β§ SENSE FROM THE LAN, NEVER THE DMZ)."""
s = (raw_text or "").strip()
if not s or len(s) > 24:
return None
if _CHAT_OPTICS_RE.match(s):
return ("optics", None)
if _CHAT_RABBIT_RE.match(s):
return ("rabbit", None)
m_jb = _CHAT_JUKEBOX_RE.match(s)
if m_jb:
return ("jukebox", int(m_jb.group(1)))
return None
[[[DIVIDER]]]
def parse_allowlisted_chat_command(raw_text: str, playable_ids=None):
"""Strict LAN allowlist parser for YouTube chat (# Β§ SENSE FROM THE LAN, NEVER THE DMZ)."""
s = (raw_text or "").strip()
if not s or len(s) > 24:
return None
if _CHAT_OPTICS_RE.match(s):
return ("optics", None)
m_num = _CHAT_STORY_NUM_RE.match(s)
if m_num:
story_id = int(m_num.group(1))
if story_id == 911:
return ("optics", None)
allowed = set(_get_playable_story_ids() if playable_ids is None else playable_ids)
if story_id in allowed:
return ("jukebox", story_id)
return None
[[[REPLACE]]]
Target: scripts/articles/common.py
[[[SEARCH]]]
_CHAT_RABBIT_RE = re.compile(r"^[!/]?rabbit$", re.IGNORECASE)
_CHAT_JUKEBOX_RE = re.compile(r"^[!/]?jukebox\s+([1-9]\d{0,4})$", re.IGNORECASE)
_last_chat_cmd_ts = 0.0
[[[DIVIDER]]]
_last_chat_cmd_ts = 0.0
[[[REPLACE]]]
Target: scripts/articles/common.py
[[[SEARCH]]]
def _actuate_allowlisted_chat_command(parsed_cmd, dry_run: bool = False) -> bool:
"""Dispatch a validated ('optics'|'rabbit'|'jukebox', arg) tuple to Honeybot with cooldown guard."""
global _last_chat_cmd_ts
import subprocess
import time
if not parsed_cmd:
return False
kind, arg = parsed_cmd
max_jb = _count_jukebox_posts()
if kind == "jukebox" and max_jb > 0 and int(arg) > max_jb:
print(f"[{_ytlog_ts()}] β οΈ [CHAT JUKEBOX] Out of range #{int(arg)} (1..{max_jb})", flush=True)
return False
now_ts = time.time()
if not dry_run and _last_chat_cmd_ts > 0 and (now_ts - _last_chat_cmd_ts) < YT_CHAT_CMD_COOLDOWN:
rem = int(YT_CHAT_CMD_COOLDOWN - (now_ts - _last_chat_cmd_ts))
print(f"[{_ytlog_ts()}] π‘οΈ [CHAT TRIGGER COOLDOWN] Holding {kind} ({rem}s remaining)", flush=True)
return False
if kind == "optics":
remote_cmd = "python3 ~/www/mikelev.in/scripts/stream.py --bead optics >/dev/null 2>&1"
elif kind == "rabbit":
remote_cmd = "python3 ~/www/mikelev.in/scripts/stream.py --bead white_rabbit >/dev/null 2>&1"
elif kind == "jukebox":
jb_json = json.dumps({"index": int(arg), "ts": int(now_ts)})
remote_cmd = (
f"printf '%s\\n' {jb_json!r} > ~/www/mikelev.in/.jukebox_request.tmp && "
"mv ~/www/mikelev.in/.jukebox_request.tmp ~/www/mikelev.in/.jukebox_request"
)
else:
return False
[[[DIVIDER]]]
def _actuate_allowlisted_chat_command(parsed_cmd, dry_run: bool = False) -> bool:
"""Dispatch a validated ('optics'|'jukebox', arg) tuple to Honeybot with cooldown guard."""
global _last_chat_cmd_ts
import subprocess
import time
if not parsed_cmd:
return False
kind, arg = parsed_cmd
if kind == "jukebox":
playable = set(_get_playable_story_ids())
if int(arg) == 911 or int(arg) not in playable:
print(f"[{_ytlog_ts()}] β οΈ [CHAT STORY] Story #{int(arg)} is not in playable _abstracts ({sorted(playable, reverse=True)[:8]})", flush=True)
return False
now_ts = time.time()
if not dry_run and _last_chat_cmd_ts > 0 and (now_ts - _last_chat_cmd_ts) < YT_CHAT_CMD_COOLDOWN:
rem = int(YT_CHAT_CMD_COOLDOWN - (now_ts - _last_chat_cmd_ts))
print(f"[{_ytlog_ts()}] π‘οΈ [CHAT TRIGGER COOLDOWN] Holding {kind} ({rem}s remaining)", flush=True)
return False
if kind == "optics":
remote_cmd = "python3 ~/www/mikelev.in/scripts/stream.py --bead optics >/dev/null 2>&1"
elif kind == "jukebox":
jb_json = json.dumps({"index": int(arg), "ts": int(now_ts)})
remote_cmd = (
f"printf '%s\\n' {jb_json!r} > ~/www/mikelev.in/.jukebox_request.tmp && "
"mv ~/www/mikelev.in/.jukebox_request.tmp ~/www/mikelev.in/.jukebox_request"
)
else:
return False
[[[REPLACE]]]
Car 3c β On-Air A.I. Fishtank Story-Time Voiceover, Chat Takeover Cue, & Station-Break Framing (stream.py, forest.py):
Target: remotes/honeybot/scripts/stream.py
[[[SEARCH]]]
PITCH_TEXT = (
"Welcome to the Honeybot A I Observatory β the live, unfiltered Engine X origin wire for Mike L E V dot eye N. "
[[[DIVIDER]]]
PITCH_TEXT = (
"Welcome to A.I. Fishtank Story-Time β the live, unfiltered Engine X origin fishtank for Mike L E V dot eye N. "
[[[REPLACE]]]
Target: remotes/honeybot/scripts/stream.py
[[[SEARCH]]]
_HOST_TRANSIENT_RE = (
"we interrupt", "we now return", "scheduled station", "scheduled observatory",
"field note from the wire", "end of wire field note", "field record from the web bot",
"receiving updates", "minor maintenance", "signal check", "the article currently",
"now i read", "resuming storytime", "breaking news", "to hear the next article",
"if you are actually here", "none of this is trained", "this live-broadcast",
"this is the signal",
)
[[[DIVIDER]]]
_HOST_TRANSIENT_RE = (
"we interrupt", "we now return", "scheduled station", "scheduled observatory",
"scheduled fishtank", "fishtank notice", "welcome inside a.i. fishtank",
"welcome inside a i fishtank", "welcome to a.i. fishtank", "welcome to a i fishtank",
"field note from the wire", "end of wire field note", "the story currently",
"chat takeover", "switching now to story", "you can take control",
"receiving updates", "minor maintenance", "signal check", "the article currently",
"now i read", "resuming storytime", "breaking news", "to hear the next article",
"if you are actually here", "none of this is trained", "this live-broadcast",
"this is the signal",
)
[[[REPLACE]]]
Target: remotes/honeybot/scripts/stream.py
[[[SEARCH]]]
spoken_line = (
f"The article currently being read on this broadcast is titled: {title}. "
"To read the full article text and inspect the raw code receipts at your own pace, "
"visit Mike L E V dot eye N slash latest."
)
[[[DIVIDER]]]
spoken_line = (
f"The story currently playing in the fishtank is titled: {title}. "
"Type any story number on the bottom bar in live chat to take control and switch stories, "
"or inspect the full source at Mike L E V dot eye N slash latest."
)
[[[REPLACE]]]
Target: remotes/honeybot/scripts/stream.py
[[[SEARCH]]]
closing_line = (
f"Curtain up on Act One of: {clean_title}."
if clean_mode == "OVERTURE"
else (
f"That concludes our midpoint intermission for: {clean_title}. "
"Full source and receipts live at Mike L E V dot eye N slash latest, "
"grab your own free Sun Pug at Sun Pug dot eye oh, and join us on Discord at Mike L E V dot eye N slash discord."
)
)
return [
narrator._make_spec(
"norma",
"Field record from the Web Bot A I Observatory. At the top is an unfiltered Engine X origin wire where A I retrieval agents outpace human browsers β the exact first-party edge telemetry enterprises unlock with Authoritative D N S and Orange-to-Orange C D N streams. Orange marks A I agents, cyan tags external referrals, blue diamonds mark R F C 94 21 cryptographic signatures, and red unmasks exploit scanners.",
"narrator",
"inactive",
"inactive",
hud_focus="logs",
),
[[[DIVIDER]]]
closing_line = (
f"You can take control of this fishtank anytime: type a story number from the bottom bar in live chat to switch stories, or type nine eleven for a live Optics check. Curtain up on Act One of: {clean_title}."
if clean_mode == "OVERTURE"
else (
f"That concludes our midpoint intermission for: {clean_title}. "
"Type any story number from the bottom bar in live chat to take control and switch stories, "
"grab your free Sun Pug at Sun Pug dot eye oh, and join us on Discord at Mike L E V dot eye N slash discord."
)
)
return [
narrator._make_spec(
"norma",
"Welcome inside A.I. Fishtank Story-Time. Swimming across the top glass is our live, unfiltered Engine X origin wire where A I retrieval agents outpace human browsers β the exact first-party edge telemetry enterprises unlock with Authoritative D N S and Orange-to-Orange C D N streams. Orange marks A I agents, cyan tags external referrals, blue diamonds mark R F C 94 21 cryptographic signatures, and red unmasks exploit scanners.",
"narrator",
"inactive",
"inactive",
hud_focus="logs",
),
[[[REPLACE]]]
Target: remotes/honeybot/scripts/stream.py
[[[SEARCH]]]
REBOOT_ANNOUNCEMENT_TEXT = (
"Scheduled observatory reset. "
"Refreshing memory now β stay tuned, the live stream stays connected and resumes in about a minute."
)
[[[DIVIDER]]]
REBOOT_ANNOUNCEMENT_TEXT = (
"Scheduled fishtank refresh. "
"Clearing memory now β stay tuned, the live stream stays connected and Story-Time resumes in about a minute."
)
[[[REPLACE]]]
Target: remotes/honeybot/scripts/stream.py
[[[SEARCH]]]
narrator.say(
"Observatory notice: scheduled four-hour memory refresh coming up in under two minutes. "
"Stay tuned β the live stream remains connected."
)
[[[DIVIDER]]]
narrator.say(
"Fishtank notice: scheduled four-hour memory refresh coming up in under two minutes. "
"Stay tuned β the live stream remains connected."
)
[[[REPLACE]]]
Target: remotes/honeybot/scripts/stream.py
[[[SEARCH]]]
jb_req = check_jukebox_request()
if jb_req:
stop_storytime_bgm()
narrator.interrupt()
narrator.say(f"Jukebox request received for entry number {jb_req}.")
[[[DIVIDER]]]
jb_req = check_jukebox_request()
if jb_req:
stop_storytime_bgm()
narrator.interrupt()
narrator.say(f"Chat takeover! Switching now to story number {jb_req}.")
[[[REPLACE]]]
Target: remotes/honeybot/scripts/stream.py
[[[SEARCH]]]
NARRATOR_SAYS = (
"Now I read from the live observatory monitoring our origin wire. "
"This broadcast tracks the shift from legacy S E O to first-party A I Readiness β "
"serving R F C 91 10 Markdown and R F C 91 11 Vary Accept edge caching from one canonical U R L. "
"Grab your own local-first Sun Pug at Sun Pug dot eye oh, or connect at Mike L E V dot eye N slash discord. "
"Now, curtain up on storytime! "
)
[[[DIVIDER]]]
NARRATOR_SAYS = (
"Now I read from inside the live A.I. Fishtank monitoring our origin wire. "
"Type any story number on the bottom bar in live chat to take control, or type nine eleven for a live Optics check. "
"Grab your own local-first Sun Pug at Sun Pug dot eye oh, or connect at Mike L E V dot eye N slash discord. "
"Now, curtain up on Story-Time! "
)
[[[REPLACE]]]
Target: remotes/honeybot/scripts/forest.py
[[[SEARCH]]]
STATION_SEGMENTS = [
_make_station_bead(
"RFC 9110\nMARKDOWN",
"Live wire report: who actually negotiates R F C 9110 Markdown on this origin.",
("WINDOW", f"forest.py:{REPORT_WINDOW_CAP_SECONDS}:overview"),
[
"{LIVE_REPORT:overview}",
"Serving clean Markdown from the same canonical U R L via R F C 9111 Vary Accept gives A I agents primary signal without duplicate pages β unlocked on any enterprise edge via Authoritative D N S and Orange-to-Orange streams.",
],
),
[
(
"CARD",
{
"label": "911 LLM\nOPTICS",
"say": "Live audit showcase: 911 L L M Optics, our local-first sixteen-lens wire-truth spectrometer.",
},
),
("OPTICS_SLOT", {"handshake_wait": 12.0, "claim_grace": 40.0, "timeout": 180.0}),
],
_make_station_bead(
"DOM TRAPDOOR\nJS EXECS",
"Live wire report: testing the conventional assumption that A I crawlers skip client-side JavaScript.",
("WINDOW", f"forest.py:{REPORT_WINDOW_CAP_SECONDS}:bimodal"),
[
"{LIVE_REPORT:bimodal}",
"An eight-hundred-millisecond image beacon inside client-side JavaScript separates true headless browser renderers from raw H T M L scrapers right in the origin log.",
],
),
]
[[[DIVIDER]]]
STATION_SEGMENTS = [
_make_station_bead(
"RFC 9110\nMARKDOWN",
"Live fishtank report: who actually negotiates R F C 9110 Markdown on this origin.",
("WINDOW", f"forest.py:{REPORT_WINDOW_CAP_SECONDS}:overview"),
[
"{LIVE_REPORT:overview}",
"Serving clean Markdown from the same canonical U R L via R F C 9111 Vary Accept gives A I agents primary signal without duplicate pages β unlocked on any enterprise edge via Authoritative D N S and Orange-to-Orange streams.",
],
),
[
(
"CARD",
{
"label": "911 LLM\nOPTICS",
"say": "Live fishtank showcase: 911 L L M Optics, our local-first sixteen-lens wire-truth spectrometer. Type nine eleven in live chat anytime to trigger an audit, or type any story number on the bottom bar to switch stories.",
},
),
("OPTICS_SLOT", {"handshake_wait": 12.0, "claim_grace": 40.0, "timeout": 180.0}),
],
_make_station_bead(
"DOM TRAPDOOR\nJS EXECS",
"Live fishtank report: testing the conventional assumption that A I crawlers skip client-side JavaScript.",
("WINDOW", f"forest.py:{REPORT_WINDOW_CAP_SECONDS}:bimodal"),
[
"{LIVE_REPORT:bimodal}",
"An eight-hundred-millisecond image beacon inside client-side JavaScript separates true headless browser renderers from raw H T M L scrapers right in the origin log.",
],
),
]
[[[REPLACE]]]
Target: remotes/honeybot/scripts/forest.py
[[[SEARCH]]]
footer = Text.from_markup(
"[bold bright_white]π‘ Wire:[/bold bright_white] [bold #ffd700]https://MikeLev.in[/bold #ffd700] "
"[dim]β[/dim] [bold bright_green]Free 911 Optics:[/bold bright_green] [bold bright_cyan]https://SunPug.io[/bold bright_cyan] "
"[dim]β[/dim] [bold bright_magenta]Discord:[/bold bright_magenta] [bold bright_white]MikeLev.in/discord[/bold bright_white] "
"[dim]Β·[/dim] [bold cyan]curl -fsSL sunpug.io | less[/bold cyan]"
)
[[[DIVIDER]]]
footer = Text.from_markup(
"[bold bright_white]π Fishtank:[/bold bright_white] [bold #ffd700]MikeLev.in[/bold #ffd700] "
"[dim]β[/dim] [bold #38bdf8]π¬ Chat:[/bold #38bdf8] [bold bright_white]Type Story # or 911[/bold bright_white] "
"[dim]β[/dim] [bold bright_green]Tools:[/bold bright_green] [bold bright_cyan]SunPug.io[/bold bright_cyan] "
"[dim]β[/dim] [bold bright_magenta]Discord:[/bold bright_magenta] [bold bright_white]MikeLev.in/discord[/bold bright_white]"
)
[[[REPLACE]]]
Ignition: no ignition required for the local straddle probes (ytwatch on Prime hot-reloads common.py automatically on mtime change; run ytreboot whenever you want Honeybot :10.0 to sync and flip live immediately).
4: PROMPT (Use prompt or p to create prompt.md from copy):
With Step 2 verified in the straddle receipts and `logs.py`, `score.py`, `content_loader.py`, `forest.py`, and `generate_redirects.py` loaded in raw source, build Step 3 (Interactive Story-Control Ticker, `mikelev.in/<ID>` Short URLs, & Story Menu Report) in clean single-story fenced cars (`<= 120` lines aimed per car):
1. **Car 3a (`remotes/honeybot/scripts/{content_loader.py,score.py,logs.py}`) β Dynamic Story-Control 5-Row LED Ticker & YAML Topic Tag**:
- Read an optional 1β2 word `ticker_tag` (with clean fallback) from post/abstract YAML frontmatter, pass `jukebox_index` + `ticker_tag` through `score.py` into `/tmp/honeybot_stage.json`, and sweep the remaining `"observatory"` line in `score.py`.
- Put `logs.py`'s 5-row LED billboard in direct service of interactive takeover (e.g. `NOW PLAYING #<ID> | MIKELEV.IN/<ID> | <TICKER_TAG> | TYPE STORY # | OR TYPE: MENU | TAKE CONTROL! | <GLOBAL_PRIORITY>`), updating automatically whenever the active story changes while still honoring manual `ytticker` overrides.
2. **Car 3b (`scripts/articles/generate_redirects.py` + `remotes/honeybot/scripts/forest.py`) β `mikelev.in/<ID>` Short Redirects & `forest.py` `menu` Report**:
- Emit `/<article_id>` -> canonical post URL rules in `generate_redirects.py` so every `MIKELEV.IN/1337` ticker card resolves on the live site.
- Add a `menu` report mode + spoken summary in `forest.py` listing the newest playable Norma Story `#`s, dates, and titles so `TYPE: MENU` can pop a live Story Menu onto `:10.0`.
5: DELIVERABLE (What done looks like):
apply.pyvalidates AST + RuffF821/F823on the final staged file after all blocks in a car apply in memory (MULTI_BLOCK_RENAME_OK: True), keepingtests/test_apply_airlock.py100% green.common.pyroutes bare Story#s (1661,#1661) to Norma_posts/_abstractsStory-Time takeovers, routes911(#911) to 911 Live Optics, ignores un-minted numbers andrabbit, and pushesjukebox_idsto Honeybot.stream.pyandforest.pycomplete the A.I. Fishtank Story-Time voiceover and station-break rebrand with zero 1950s Jukebox phrasing. No external manual-paste deliverables required.
MikeLev.in: Behold how unforgiving my system is. It doesnβt allow even temporarily broken states of code. So it forces smaller chunks of patch-code and then the order those smaller patches is critical. Every intermediate state has to be working too. Thereβs bunch of defenses keeping weird problem from occurring. I never want to chase things down. Itβs sort of like compiler mentality. I do call it a context compiler, after all.
THE AI-EDIT METHOD
Same commands, run twice, one change between them. Where the readings differ is what the change did; the diff in the middle is the receipt.
1: BEFORE (PROBE):
Ugh, this doesnβt bode well but it is just a read-only probe so weβll forge ahead.
On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean
GIT repo clean. Take BEFORE reading, make CHANGE, record AFTER diff.
(nix) pipulate $ .venv/bin/python scripts/pyprobe.py 'import apply; f_body = "OLD = 1\ndef f():\n return OLD\n"; d = tempfile.mkdtemp(); tf = Path(d) / "t.py"; tf.write_text(f_body); p = f"Target: {tf}\n{SEARCH_MARK}\nOLD = 1\n{DIVIDER_MARK}\nNEW = 2\n{REPLACE_MARK}\nTarget: {tf}\n{SEARCH_MARK}\n return OLD\n{DIVIDER_MARK}\n return NEW\n{REPLACE_MARK}\n"; ok = apply.apply_search_replace_patch(p); shutil.rmtree(d, ignore_errors=True); print("MULTI_BLOCK_RENAME_OK:", ok)'
.venv/bin/python -m unittest tests/test_apply_airlock.py
.venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "scripts/articles")); import common; cases = ["911", "#911", "rabbit", "!rabbit", "1661", "#1661", "42", "jukebox 1660"]; parsed = [(c, common.parse_allowlisted_chat_command(c)) for c in cases]; vp = common._build_viewer_payload(2, video_id="vid", peak=4); print("PARSED:", parsed); print("VIEWER_JB_IDS:", vp.get("jukebox_ids"))'
rg -n "_CHAT_RABBIT_RE|Jukebox request received|Web Bot A I Observatory|Web Bot AI Observatory|Scheduled observatory" scripts/articles/common.py remotes/honeybot/scripts/stream.py remotes/honeybot/scripts/forest.py remotes/honeybot/scripts/score.py || true
β Error: Patching '/tmp/nix-shell.4x6UUc/tmp5npipsga/t.py' aborted. Undefined/unbound name (Ruff F821/F823):
F821 Undefined name `OLD`
--> /tmp/nix-shell.4x6UUc/tmp5npipsga/t.py:3:12
|
1 | NEW = 2
2 | def f():
3 | return OLD
| ^^^
|
Found 1 error.
β Error: Patching '/tmp/nix-shell.4x6UUc/tmp5npipsga/t.py' aborted. Undefined/unbound name (Ruff F821/F823):
F821 Undefined name `NEW`
--> /tmp/nix-shell.4x6UUc/tmp5npipsga/t.py:3:12
|
1 | OLD = 1
2 | def f():
3 | return NEW
| ^^^
|
Found 1 error.
MULTI_BLOCK_RENAME_OK: False
...........
----------------------------------------------------------------------
Ran 11 tests in 0.196s
OK
PARSED: [('911', ('optics', None)), ('#911', None), ('rabbit', ('rabbit', None)), ('!rabbit', ('rabbit', None)), ('1661', None), ('#1661', None), ('42', None), ('jukebox 1660', ('jukebox', 1660))]
VIEWER_JB_IDS: None
remotes/honeybot/scripts/stream.py
2837: "Field record from the Web Bot A I Observatory. At the top is an unfiltered Engine X origin wire where A I retrieval agents outpace human browsers β the exact first-party edge telemetry enterprises unlock with Authoritative D N S and Orange-to-Orange C D N streams. Orange marks A I agents, cyan tags external referrals, blue diamonds mark R F C 94 21 cryptographic signatures, and red unmasks exploit scanners.",
3474: "Scheduled observatory reset. "
3702: narrator.say(f"Jukebox request received for entry number {jb_req}.")
scripts/articles/common.py
636: f"ποΈ Now reading live on the Web Bot AI Observatory: \"{title}\"",
1995:_CHAT_RABBIT_RE = re.compile(r"^[!/]?rabbit$", re.IGNORECASE)
2007: if _CHAT_RABBIT_RE.match(s):
(nix) pipulate $
2: AFTER (NEXT CONTEXT):
# # Context 1: Step 1 Bare-Number Jukebox & terms.py
# context.txt
# ! eza -1 remotes/honeybot/scripts
# ! rg -n 'jukebox|ytwatch|\brabbit\b' flake.nix scripts remotes/honeybot/scripts
# ! .venv/bin/python -c 'import pathlib, re; base = pathlib.Path("/home/mike/repos/trimnoir/_posts"); abs_files = sorted((base / "_abstracts").glob("*.md")) if (base / "_abstracts").is_dir() else []; p911 = [p.name for p in base.glob("*.md") if re.search(r"(?m)^article_id:\s*[\x27\x22]?911\b", p.read_text(errors="ignore")[:2048])]; print("abstracts:", len(abs_files), [f.name for f in abs_files[:5]], "id_911:", p911)'
#
# flake.nix
# scripts/chat_route_probe.py
# remotes/honeybot/scripts/terms.py
# remotes/honeybot/scripts/content_loader.py
# remotes/honeybot/scripts/score.py
# remotes/honeybot/scripts/logs.py
# scripts/articles/norma_extract.py
# deleteme.txt
# # Context 2: Bare-Number Chat Parser in ytwatch (common.py) & Stream Fishtank Sweep
# context.txt
# ! .venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "remotes/honeybot/scripts")); import terms, content_loader as cl; sample = "A.I. FISHTANK STORY-TIME for CMOs & CTOs in the c-suite, Reschke, Yutes, Mike-E, Weebo, NetOps, 911 in chat, mikelev.in/1337"; ids = cl.get_jukebox_playable_ids() if hasattr(cl, "get_jukebox_playable_ids") else None; lg = (REPO_ROOT / "remotes/honeybot/scripts/logs.py").read_text(); sc = (REPO_ROOT / "remotes/honeybot/scripts/score.py").read_text(); print("TTS:", terms.apply_inline_tts_terms(sample)); print("PLAYABLE_IDS:", ids); print("LOGS_FISHTANK:", "A.I. FISHTANK STORY-TIME" in lg, "LOGS_NO_RABBIT:", "rabbit" not in lg); print("SCORE_FISHTANK:", "A.I. FISHTANK" in sc)'
# ! .venv/bin/python scripts/pyprobe.py 'rc, out = capture_call(["rg", "-n", "-i", "observatory|fishtank|_CHAT_OPTICS_RE|_CHAT_RABBIT_RE|_CHAT_JUKEBOX_RE", "remotes/honeybot/scripts", "scripts"]); print(out[:3500])'
# scripts/articles/common.py
# remotes/honeybot/scripts/stream.py
# remotes/honeybot/scripts/forest.py
# # Context 2b: Fix F821 Per-Block Airlock in common.py & Complete Stream Fishtank Sweep
# context.txt
# ! .venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "scripts/articles")); import common; cases = ["911", "#911", "rabbit", "!rabbit", "1661", "#1661", "42", "jukebox 1660"]; parsed = [(c, common.parse_allowlisted_chat_command(c)) for c in cases]; vp = common._build_viewer_payload(2, video_id="vid", peak=4); print("PARSED:", parsed); print("VIEWER_JB_IDS:", vp.get("jukebox_ids"))'
# ! rg -n "_CHAT_RABBIT_RE|Jukebox request received|Web Bot A I Observatory|Web Bot AI Observatory|Scheduled observatory" scripts/articles/common.py remotes/honeybot/scripts/stream.py remotes/honeybot/scripts/forest.py remotes/honeybot/scripts/score.py || true
# scripts/articles/common.py
# remotes/honeybot/scripts/stream.py
# remotes/honeybot/scripts/forest.py
# Context 3: Story-Control LED Ticker, mikelev.in/<ID> Short URLs, & Story Menu Report
context.txt
! .venv/bin/python scripts/pyprobe.py 'import apply; f_body = "OLD = 1\ndef f():\n return OLD\n"; d = tempfile.mkdtemp(); tf = Path(d) / "t.py"; tf.write_text(f_body); p = f"Target: {tf}\n{SEARCH_MARK}\nOLD = 1\n{DIVIDER_MARK}\nNEW = 2\n{REPLACE_MARK}\nTarget: {tf}\n{SEARCH_MARK}\n return OLD\n{DIVIDER_MARK}\n return NEW\n{REPLACE_MARK}\n"; ok = apply.apply_search_replace_patch(p); shutil.rmtree(d, ignore_errors=True); print("MULTI_BLOCK_RENAME_OK:", ok)'
! .venv/bin/python -m unittest tests/test_apply_airlock.py
! .venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "scripts/articles")); import common; cases = ["911", "#911", "rabbit", "!rabbit", "1661", "#1661", "42", "jukebox 1660"]; parsed = [(c, common.parse_allowlisted_chat_command(c)) for c in cases]; vp = common._build_viewer_payload(2, video_id="vid", peak=4); print("PARSED:", parsed); print("VIEWER_JB_IDS:", vp.get("jukebox_ids"))'
! rg -n "_CHAT_RABBIT_RE|Jukebox request received|Web Bot A I Observatory|Web Bot AI Observatory|Scheduled observatory" scripts/articles/common.py remotes/honeybot/scripts/stream.py remotes/honeybot/scripts/forest.py remotes/honeybot/scripts/score.py || true
remotes/honeybot/scripts/logs.py
remotes/honeybot/scripts/score.py
remotes/honeybot/scripts/content_loader.py
remotes/honeybot/scripts/forest.py
scripts/articles/generate_redirects.py
3: CHANGE (PATCHES):
On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean
GIT repo clean. Take BEFORE reading, make CHANGE, record AFTER diff.
(nix) pipulate $ patch
(nix) pipulate $ app
β
DETERMINISTIC PATCH APPLIED: Successfully mutated 'apply.py'.
π Car meter: 1/5 file(s), 1/12 block(s), 13/220 line(s) (aim <= 120/car)
(nix) pipulate $ d
diff --git a/apply.py b/apply.py
index 2c0bac2..6cfd974 100644
--- a/apply.py
+++ b/apply.py
@@ -789,14 +789,15 @@ def apply_search_replace_patch(payload: str) -> bool:
# hand-run json.load echoed as a probe, because this branch did not
# exist. JSONDecodeError carries lineno/colno, so the refusal names
# the exact character that broke.
- if not _validate_syntax_airlocks(filename, new_content, "Patching"):
- success = False
- continue
-
staged_contents[abs_key] = new_content
if abs_key not in commit_plan:
commit_plan[abs_key] = (filename, "patch", True)
+ for abs_key, final_content in staged_contents.items():
+ filename, mode, _ = commit_plan[abs_key]
+ if mode == "patch" and not _validate_syntax_airlocks(filename, final_content, "Patching"):
+ success = False
+
if not success:
if staged_contents:
print(f"π Atomic rollback: {len(staged_contents)} staged file(s) withheld; nothing was written to disk.")
(nix) pipulate $ m
π Committing: chore: Refactor syntax validation in apply
[main 9232347] chore: Refactor syntax validation in apply
1 file changed, 5 insertions(+), 4 deletions(-)
(nix) pipulate $ patch
(nix) pipulate $ app
β
DETERMINISTIC PATCH APPLIED: Successfully mutated 'scripts/articles/common.py'.
π Car meter: 1/5 file(s), 9/12 block(s), 107/220 line(s) (aim <= 120/car)
(nix) pipulate $ d
diff --git a/scripts/articles/common.py b/scripts/articles/common.py
index 6bdec28..8f33538 100644
--- a/scripts/articles/common.py
+++ b/scripts/articles/common.py
@@ -438,7 +438,7 @@ def format_youtube_title(title):
"""Build a <=100-char YouTube Live title from the article title."""
clean = " ".join(_yt_sanitize(title).split())
if not clean:
- return "LIVE: Honeybot AI Observatory"
+ return "LIVE: A.I. Fishtank Story-Time"
prefixed = f"LIVE: {clean}"
if len(prefixed) <= YT_TITLE_LIMIT:
return prefixed
@@ -633,7 +633,7 @@ def get_broadcast_kit(target_key="1", slug_match=None):
f"π Enterprise AI-Readiness & Edge Telemetry (RFC 9110 / ADNS / O2O): {base_url}/?src=youtube#consulting | Inspect workshop: curl -fsSL https://sunpug.io | less (Email: {CONTACT_EMAIL})",
f"π§ͺ Test RFC 9110 in your terminal: curl -sI -H \"Accept: text/markdown\" {canonical_url}?src=rfc9110",
"",
- f"ποΈ Now reading live on the Web Bot AI Observatory: \"{title}\"",
+ f"π Now playing on A.I. Fishtank Story-Time: \"{title}\" β Type any Story # from the bottom bar in live chat to switch stories, or type 911 for a live Optics check!",
]
if meta_desc:
desc_parts.extend(["", meta_desc])
@@ -644,8 +644,9 @@ def get_broadcast_kit(target_key="1", slug_match=None):
desc_parts.extend([
"",
"---",
- "π About this 24/7 Home-Hosted NixOS Broadcast:",
- "You are watching real-time Nginx access logs and AI crawler telemetry from mikelev.in.",
+ "π About A.I. Fishtank Story-Time (24/7 Interactive NixOS Broadcast):",
+ "You are watching live Nginx origin wire traffic and AI crawler behavior while 3-voice Story-Time plays.",
+ "β’ Take Control from Chat: Type any Story # shown on the bottom bar into live chat to switch stories, or type 911 for a live 16-lens Optics check.",
"β’ Agents sending 'Accept: text/markdown' (RFC 9110) receive clean raw Markdown.",
"β’ Agents executing JavaScript trigger the DOM trapdoor sensor.",
"β’ Zero-Agent Airlock: Deterministic NixOS + Piper TTS player piano (chat reaches a human, never an LLM shell).",
@@ -1761,15 +1762,31 @@ def _count_jukebox_posts(target_key="1") -> int:
return 0
+def _get_playable_story_ids(target_key="1") -> list[int]:
+ """Return newest-first list of playable Norma-converted `_posts/_abstracts` Story IDs (excluding 911)."""
+ try:
+ targets = load_targets()
+ tcfg = targets.get(str(target_key), targets.get("1", DEFAULT_TARGETS["1"]))
+ pdir = Path(tcfg["path"]).expanduser()
+ hb_dir = str(Path(__file__).resolve().parents[2] / "remotes" / "honeybot" / "scripts")
+ if hb_dir not in sys.path:
+ sys.path.insert(0, hb_dir)
+ import content_loader as _cl
+ return [int(x) for x in _cl.get_jukebox_playable_ids(posts_dir=pdir) if int(x) > 0 and int(x) != 911]
+ except Exception:
+ return []
+
+
def _build_viewer_payload(viewers, video_id="", peak=0, discord_members=None) -> dict:
- """Build /tmp/honeybot_viewers.json payload carrying viewers, Founding-1,000 spots_left, and jukebox_max."""
+ """Build /tmp/honeybot_viewers.json payload carrying viewers, Founding-1,000 spots_left, and playable jukebox_ids."""
import time
v_cnt = max(0, int(viewers or 0))
p_cnt = max(v_cnt, int(peak or 0))
dm = discord_members if discord_members is not None else _load_ytwatch_state().get("discord_members")
dm_int = int(dm) if dm is not None else None
spots = max(0, DISCORD_FOUNDING_GOAL - dm_int) if dm_int is not None else None
- jb_max = _count_jukebox_posts()
+ jb_ids = _get_playable_story_ids()
+ jb_max = max(jb_ids) if jb_ids else _count_jukebox_posts()
return {
"viewers": v_cnt,
"peak": p_cnt,
@@ -1777,6 +1794,7 @@ def _build_viewer_payload(viewers, video_id="", peak=0, discord_members=None) ->
"video_id": str(video_id or ""),
"discord_members": dm_int,
"spots_left": spots,
+ "jukebox_ids": jb_ids,
"jukebox_max": jb_max if jb_max > 0 else None,
"updated_at": int(time.time()),
}
@@ -1818,7 +1836,7 @@ def _sync_honeybot_viewers(viewers, running=True, video_id="", peak=0, push_remo
("status-left-length", "44"),
("status-left", f" π YTWATCH LIVE (π {v_cnt}{peak_tag}) "),
("set-titles", "on"),
- ("set-titles-string", f"π {v_cnt} {v_word}{peak_tag} β Honeybot Storytime"),
+ ("set-titles-string", f"π {v_cnt} {v_word}{peak_tag} β A.I. Fishtank Story-Time"),
):
subprocess.run(
["tmux", "set-option", "-t", "ytwatch", opt, val],
@@ -1991,39 +2009,42 @@ _YTWATCH_RESERVED_ACTIONS = {
YT_CHAT_CMD_COOLDOWN = int(os.environ.get("PIPULATE_YT_CHAT_COOLDOWN", "45"))
-_CHAT_OPTICS_RE = re.compile(r"^[!/]?911$", re.IGNORECASE)
-_CHAT_RABBIT_RE = re.compile(r"^[!/]?rabbit$", re.IGNORECASE)
-_CHAT_JUKEBOX_RE = re.compile(r"^[!/]?jukebox\s+([1-9]\d{0,4})$", re.IGNORECASE)
+_CHAT_OPTICS_RE = re.compile(r"^[!/]?#?911$", re.IGNORECASE)
+_CHAT_STORY_NUM_RE = re.compile(r"^[!/]?(?:(?:story|play|jukebox)\s+)?#?([1-9]\d{0,4})$", re.IGNORECASE)
_last_chat_cmd_ts = 0.0
-def parse_allowlisted_chat_command(raw_text: str):
+def parse_allowlisted_chat_command(raw_text: str, playable_ids=None):
"""Strict LAN allowlist parser for YouTube chat (# Β§ SENSE FROM THE LAN, NEVER THE DMZ)."""
s = (raw_text or "").strip()
if not s or len(s) > 24:
return None
if _CHAT_OPTICS_RE.match(s):
return ("optics", None)
- if _CHAT_RABBIT_RE.match(s):
- return ("rabbit", None)
- m_jb = _CHAT_JUKEBOX_RE.match(s)
- if m_jb:
- return ("jukebox", int(m_jb.group(1)))
+ m_num = _CHAT_STORY_NUM_RE.match(s)
+ if m_num:
+ story_id = int(m_num.group(1))
+ if story_id == 911:
+ return ("optics", None)
+ allowed = set(_get_playable_story_ids() if playable_ids is None else playable_ids)
+ if story_id in allowed:
+ return ("jukebox", story_id)
return None
def _actuate_allowlisted_chat_command(parsed_cmd, dry_run: bool = False) -> bool:
- """Dispatch a validated ('optics'|'rabbit'|'jukebox', arg) tuple to Honeybot with cooldown guard."""
+ """Dispatch a validated ('optics'|'jukebox', arg) tuple to Honeybot with cooldown guard."""
global _last_chat_cmd_ts
import subprocess
import time
if not parsed_cmd:
return False
kind, arg = parsed_cmd
- max_jb = _count_jukebox_posts()
- if kind == "jukebox" and max_jb > 0 and int(arg) > max_jb:
- print(f"[{_ytlog_ts()}] β οΈ [CHAT JUKEBOX] Out of range #{int(arg)} (1..{max_jb})", flush=True)
- return False
+ if kind == "jukebox":
+ playable = set(_get_playable_story_ids())
+ if int(arg) == 911 or int(arg) not in playable:
+ print(f"[{_ytlog_ts()}] β οΈ [CHAT STORY] Story #{int(arg)} is not in playable _abstracts ({sorted(playable, reverse=True)[:8]})", flush=True)
+ return False
now_ts = time.time()
if not dry_run and _last_chat_cmd_ts > 0 and (now_ts - _last_chat_cmd_ts) < YT_CHAT_CMD_COOLDOWN:
rem = int(YT_CHAT_CMD_COOLDOWN - (now_ts - _last_chat_cmd_ts))
@@ -2031,8 +2052,6 @@ def _actuate_allowlisted_chat_command(parsed_cmd, dry_run: bool = False) -> bool
return False
if kind == "optics":
remote_cmd = "python3 ~/www/mikelev.in/scripts/stream.py --bead optics >/dev/null 2>&1"
- elif kind == "rabbit":
- remote_cmd = "python3 ~/www/mikelev.in/scripts/stream.py --bead white_rabbit >/dev/null 2>&1"
elif kind == "jukebox":
jb_json = json.dumps({"index": int(arg), "ts": int(now_ts)})
remote_cmd = (
(nix) pipulate $ m
π Committing: fix: update YouTube Live title to "A.I. Fishtank Story-Time"
[main 75c6bfb] fix: update YouTube Live title to "A.I. Fishtank Story-Time"
1 file changed, 42 insertions(+), 23 deletions(-)
(nix) pipulate $ patch
(nix) pipulate $ app
β
DETERMINISTIC PATCH APPLIED: Successfully mutated 'remotes/honeybot/scripts/stream.py'.
β
DETERMINISTIC PATCH APPLIED: Successfully mutated 'remotes/honeybot/scripts/forest.py'.
π Car meter: 2/5 file(s), 10/12 block(s), 91/220 line(s) (aim <= 120/car)
(nix) pipulate $ d
diff --git a/remotes/honeybot/scripts/forest.py b/remotes/honeybot/scripts/forest.py
index 1c2896f..fa9447b 100644
--- a/remotes/honeybot/scripts/forest.py
+++ b/remotes/honeybot/scripts/forest.py
@@ -95,7 +95,7 @@ def _make_station_bead(card_label, card_say, capstone_cue, forest_story_lines, p
STATION_SEGMENTS = [
_make_station_bead(
"RFC 9110\nMARKDOWN",
- "Live wire report: who actually negotiates R F C 9110 Markdown on this origin.",
+ "Live fishtank report: who actually negotiates R F C 9110 Markdown on this origin.",
("WINDOW", f"forest.py:{REPORT_WINDOW_CAP_SECONDS}:overview"),
[
"{LIVE_REPORT:overview}",
@@ -107,14 +107,14 @@ STATION_SEGMENTS = [
"CARD",
{
"label": "911 LLM\nOPTICS",
- "say": "Live audit showcase: 911 L L M Optics, our local-first sixteen-lens wire-truth spectrometer.",
+ "say": "Live fishtank showcase: 911 L L M Optics, our local-first sixteen-lens wire-truth spectrometer. Type nine eleven in live chat anytime to trigger an audit, or type any story number on the bottom bar to switch stories.",
},
),
("OPTICS_SLOT", {"handshake_wait": 12.0, "claim_grace": 40.0, "timeout": 180.0}),
],
_make_station_bead(
"DOM TRAPDOOR\nJS EXECS",
- "Live wire report: testing the conventional assumption that A I crawlers skip client-side JavaScript.",
+ "Live fishtank report: testing the conventional assumption that A I crawlers skip client-side JavaScript.",
("WINDOW", f"forest.py:{REPORT_WINDOW_CAP_SECONDS}:bimodal"),
[
"{LIVE_REPORT:bimodal}",
@@ -1166,10 +1166,10 @@ def _build_station_report_panel(mode="overview", panel_width=None):
)
footer = Text.from_markup(
- "[bold bright_white]π‘ Wire:[/bold bright_white] [bold #ffd700]https://MikeLev.in[/bold #ffd700] "
- "[dim]β[/dim] [bold bright_green]Free 911 Optics:[/bold bright_green] [bold bright_cyan]https://SunPug.io[/bold bright_cyan] "
- "[dim]β[/dim] [bold bright_magenta]Discord:[/bold bright_magenta] [bold bright_white]MikeLev.in/discord[/bold bright_white] "
- "[dim]Β·[/dim] [bold cyan]curl -fsSL sunpug.io | less[/bold cyan]"
+ "[bold bright_white]π Fishtank:[/bold bright_white] [bold #ffd700]MikeLev.in[/bold #ffd700] "
+ "[dim]β[/dim] [bold #38bdf8]π¬ Chat:[/bold #38bdf8] [bold bright_white]Type Story # or 911[/bold bright_white] "
+ "[dim]β[/dim] [bold bright_green]Tools:[/bold bright_green] [bold bright_cyan]SunPug.io[/bold bright_cyan] "
+ "[dim]β[/dim] [bold bright_magenta]Discord:[/bold bright_magenta] [bold bright_white]MikeLev.in/discord[/bold bright_white]"
)
panel_title = (
f"[bold bright_cyan]{title_str}[/bold bright_cyan] "
diff --git a/remotes/honeybot/scripts/stream.py b/remotes/honeybot/scripts/stream.py
index cc5f4f9..c88b1a9 100644
--- a/remotes/honeybot/scripts/stream.py
+++ b/remotes/honeybot/scripts/stream.py
@@ -233,7 +233,7 @@ def load_maintenance_line(stream_file=None):
return line
PITCH_TEXT = (
- "Welcome to the Honeybot A I Observatory β the live, unfiltered Engine X origin wire for Mike L E V dot eye N. "
+ "Welcome to A.I. Fishtank Story-Time β the live, unfiltered Engine X origin fishtank for Mike L E V dot eye N. "
"Every HTTP arrival hits this screen the millisecond it touches the socket: orange marks A I retrieval agents, "
"cyan tags external search and web referrals, blue diamonds verify R F C 94 21 cryptographic bot signatures, and red unmasks exploit scanners. "
"Enterprises unlock this exact first-party telemetry upstream with Authoritative D N S and Orange-to-Orange C D N log streams, "
@@ -515,7 +515,10 @@ _AI_TURN_PREFIX_RE = re.compile(
)
_HOST_TRANSIENT_RE = (
"we interrupt", "we now return", "scheduled station", "scheduled observatory",
- "field note from the wire", "end of wire field note", "field record from the web bot",
+ "scheduled fishtank", "fishtank notice", "welcome inside a.i. fishtank",
+ "welcome inside a i fishtank", "welcome to a.i. fishtank", "welcome to a i fishtank",
+ "field note from the wire", "end of wire field note", "the story currently",
+ "chat takeover", "switching now to story", "you can take control",
"receiving updates", "minor maintenance", "signal check", "the article currently",
"now i read", "resuming storytime", "breaking news", "to hear the next article",
"if you are actually here", "none of this is trained", "this live-broadcast",
@@ -2803,9 +2806,9 @@ def resolve_current_article_info():
except Exception:
pass
spoken_line = (
- f"The article currently being read on this broadcast is titled: {title}. "
- "To read the full article text and inspect the raw code receipts at your own pace, "
- "visit Mike L E V dot eye N slash latest."
+ f"The story currently playing in the fishtank is titled: {title}. "
+ "Type any story number on the bottom bar in live chat to take control and switch stories, "
+ "or inspect the full source at Mike L E V dot eye N slash latest."
)
return spoken_line, image_path
@@ -2823,18 +2826,18 @@ def build_hud_circle_specs(mode: str = "OVERTURE", title: str = "") -> list:
clean_mode = (mode or "OVERTURE").strip().upper()
clean_title = (title or "our latest technical journal entry").strip()
closing_line = (
- f"Curtain up on Act One of: {clean_title}."
+ f"You can take control of this fishtank anytime: type a story number from the bottom bar in live chat to switch stories, or type nine eleven for a live Optics check. Curtain up on Act One of: {clean_title}."
if clean_mode == "OVERTURE"
else (
f"That concludes our midpoint intermission for: {clean_title}. "
- "Full source and receipts live at Mike L E V dot eye N slash latest, "
- "grab your own free Sun Pug at Sun Pug dot eye oh, and join us on Discord at Mike L E V dot eye N slash discord."
+ "Type any story number from the bottom bar in live chat to take control and switch stories, "
+ "grab your free Sun Pug at Sun Pug dot eye oh, and join us on Discord at Mike L E V dot eye N slash discord."
)
)
return [
narrator._make_spec(
"norma",
- "Field record from the Web Bot A I Observatory. At the top is an unfiltered Engine X origin wire where A I retrieval agents outpace human browsers β the exact first-party edge telemetry enterprises unlock with Authoritative D N S and Orange-to-Orange C D N streams. Orange marks A I agents, cyan tags external referrals, blue diamonds mark R F C 94 21 cryptographic signatures, and red unmasks exploit scanners.",
+ "Welcome inside A.I. Fishtank Story-Time. Swimming across the top glass is our live, unfiltered Engine X origin wire where A I retrieval agents outpace human browsers β the exact first-party edge telemetry enterprises unlock with Authoritative D N S and Orange-to-Orange C D N streams. Orange marks A I agents, cyan tags external referrals, blue diamonds mark R F C 94 21 cryptographic signatures, and red unmasks exploit scanners.",
"narrator",
"inactive",
"inactive",
@@ -3471,8 +3474,8 @@ def run_station_break(env, profile_dir, is_end_of_loop: bool = False) -> bool:
REBOOT_ANNOUNCEMENT_TEXT = (
- "Scheduled observatory reset. "
- "Refreshing memory now β stay tuned, the live stream stays connected and resumes in about a minute."
+ "Scheduled fishtank refresh. "
+ "Clearing memory now β stay tuned, the live stream stays connected and Story-Time resumes in about a minute."
)
_process_boot_ts = time.time()
_reboot_warned = False
@@ -3493,7 +3496,7 @@ def maybe_warn_scheduled_reboot(remaining_sec: float, ticker_path: str = "/tmp/h
except Exception:
pass
narrator.say(
- "Observatory notice: scheduled four-hour memory refresh coming up in under two minutes. "
+ "Fishtank notice: scheduled four-hour memory refresh coming up in under two minutes. "
"Stay tuned β the live stream remains connected."
)
return True
@@ -3699,7 +3702,7 @@ def perform_show(script):
if jb_req:
stop_storytime_bgm()
narrator.interrupt()
- narrator.say(f"Jukebox request received for entry number {jb_req}.")
+ narrator.say(f"Chat takeover! Switching now to story number {jb_req}.")
try:
subprocess.run(["pkill", "firefox"], check=False)
except Exception:
@@ -3884,11 +3887,10 @@ def main():
# Scene 3: The Deep Stream (Logs)
NARRATOR_SAYS = (
- "Now I read from the live observatory monitoring our origin wire. "
- "This broadcast tracks the shift from legacy S E O to first-party A I Readiness β "
- "serving R F C 91 10 Markdown and R F C 91 11 Vary Accept edge caching from one canonical U R L. "
+ "Now I read from inside the live A.I. Fishtank monitoring our origin wire. "
+ "Type any story number on the bottom bar in live chat to take control, or type nine eleven for a live Optics check. "
"Grab your own local-first Sun Pug at Sun Pug dot eye oh, or connect at Mike L E V dot eye N slash discord. "
- "Now, curtain up on storytime! "
+ "Now, curtain up on Story-Time! "
)
if not score:
narrator.say(NARRATOR_SAYS)
(nix) pipulate $ m
π Committing: chore: Refine narrative in forest.py and stream.py for Fishtank context
[main b146d88] chore: Refine narrative in forest.py and stream.py for Fishtank context
2 files changed, 26 insertions(+), 24 deletions(-)
(nix) pipulate $ git push
Enumerating objects: 25, done.
Counting objects: 100% (25/25), done.
Delta compression using up to 48 threads
Compressing objects: 100% (14/14), done.
Writing objects: 100% (15/15), 3.11 KiB | 531.00 KiB/s, done.
Total 15 (delta 11), reused 0 (delta 0), pack-reused 0 (from 0)
remote: Resolving deltas: 100% (11/11), completed with 9 local objects.
To github.com:pipulate/pipulate.git
ba9a8de..b146d88 main -> main
(nix) pipulate $
Ignition: often βexitβ, βnix developβ. Instructions may vary.
OMG, it is so nice to have Alice there falling during the reboot. Itβs better than a spinner and certainly better than the gobbledygook of just the server restart text and no explanation or expectation setting.
On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean
GIT repo clean. Take BEFORE reading, make CHANGE, record AFTER diff.
(nix) pipulate $ ytreboot
π Syncing Honeybot scripts to honeybot:~/www/mikelev.in/scripts/...
π Signaling Honeybot stream.py on honeybot for graceful SCHEDULED REBOOT announcement...
signaling stream.py pid=570291 for graceful reboot announcement...
β
Stream watchdog relaunched fresh stream.py (pid=610231 after 5s).
π Started background 'ytwatch' daemon in tmux (polling every 30s).
β’ Watch live stream: ytwatch log (or `ytlog` β press `q` or `Ctrl+b d` to exit)
β’ Check status: ytwatch status
β’ Stop daemon: ytwatch stop
π¬ Started background 'ytbreaks' (`ytapp watch-breaks`) daemon in tmux.
β’ Check Optics watcher: ytbreaks (or `ytapp watch-log` β press `q` to detach)
β’ Stop Optics watcher : ytapp watch-stop
(nix) pipulate $
4: PROMPT:
With Step 2 verified in the straddle receipts and logs.py, score.py, content_loader.py, forest.py, and generate_redirects.py loaded in raw source, build Step 3 (Interactive Story-Control Ticker, mikelev.in/<ID> Short URLs, & Story Menu Report) in clean single-story fenced cars (<= 120 lines aimed per car):
- Car 3a (
remotes/honeybot/scripts/{content_loader.py,score.py,logs.py}) β Dynamic Story-Control 5-Row LED Ticker & YAML Topic Tag:- Read an optional 1β2 word
ticker_tag(with clean fallback) from post/abstract YAML frontmatter, passjukebox_index+ticker_tagthroughscore.pyinto/tmp/honeybot_stage.json, and sweep the remaining"observatory"line inscore.py. - Put
logs.pyβs 5-row LED billboard in direct service of interactive takeover (e.g.NOW PLAYING #<ID> | MIKELEV.IN/<ID> | <TICKER_TAG> | TYPE STORY # | OR TYPE: MENU | TAKE CONTROL! | <GLOBAL_PRIORITY>), updating automatically whenever the active story changes while still honoring manualyttickeroverrides.
- Read an optional 1β2 word
- Car 3b (
scripts/articles/generate_redirects.py+remotes/honeybot/scripts/forest.py) βmikelev.in/<ID>Short Redirects &forest.pymenuReport:- Emit
/<article_id>-> canonical post URL rules ingenerate_redirects.pyso everyMIKELEV.IN/1337ticker card resolves on the live site. - Add a
menureport mode + spoken summary inforest.pylisting the newest playable Norma Story#s, dates, and titles soTYPE: MENUcan pop a live Story Menu onto:10.0.
- Emit
5: DELIVERABLE:
What does βDONEβ look like?
Wow, weβre pushing ahead with the menu. And I think I see signs of the redirects that will make the MikeLev.in/IDs work.
Nice.
One thing thatβs really easy to forget is to actually read the prompt itβs writing for its future-self. Letβs forge on!
Dynamic LED Tickers and Nginx Article-ID Shortlinks
Gemini 4 Carbon High: Context verified. (All four # Context 2b straddle receipts are green: MULTI_BLOCK_RENAME_OK: True, 11/11 airlock unit tests pass, PARSED routes 911/#911 to optics and 1661/#1661 to jukebox while ignoring rabbit and un-minted 42, and rg returned zero legacy matches.)
TL;DR: Yesβthe compiler-grade airlock paid off immediately, and Falling Alice covering ytreboot is broadcast gold. Below are three clean single-story cars (Car 3a, Car 3b, Car 3c) that put the 5-row LED Ticker in direct service of Story-Time takeover (CURRENTLY PLAYING | MIKELEV.IN/<ID> | <TICKER_TAG> | TYPE: MENU | TAKE CONTROL! | MIKELEV.IN/DISCORD), mint /<article_id> -> canonical permalink Nginx shortlinks in _redirects.map, and build the live STORY MENU Rich report + voiceover in forest.py. # Context 4 then loads common.py + norma_extract.py to wire MENU in YouTube chat and auto-stamp ticker_tag: in future Norma extractions.
What Lands in Step 3
- Car 3a (
content_loader.py,score.py) β YAMLticker_tag+ O(1) Menu Metadata + Stage Sync:- Reads optional 1β2 word
ticker_tag:from_posts/_abstracts/*.mdor parent_posts/*.mdYAML frontmatter (with automatic 2-word slug/title fallback when unstamped) and cachesmeta_mapinsideget_jukebox_catalog()with zero extra file opens. - Exposes
get_jukebox_menu_entries()for bothforest.pyandlogs.py, embeds#{jb_idx} [{ticker_tag}]inscore.pyβs stagearticlestring, and sweeps the final"observatory"straggler inscore.py.
- Reads optional 1β2 word
- Car 3b (
logs.py) β Story-Control 5-Row LED Billboard &TICKER_TOP_PRIORITY:- Replaces the old static billboard with
build_jukebox_ticker_message():CURRENTLY PLAYING->MIKELEV.IN/<ID>-><TICKER_TAG>->TYPE: MENU->TAKE CONTROL!(with subtle PSX DOOM ember forge) ->TICKER_TOP_PRIORITY(MIKELEV.IN/DISCORD, editable in one global constant orHONEYBOT_TICKER_PRIORITY). - Automatically updates
#ticker_barwhenever/tmp/honeybot_stage.jsonswitches stories, while still honoring manualytticker(/tmp/honeybot_ticker.txt) and 2-minute reboot-warning overrides, and preservingSONAR_HOT_RELOAD=1.
- Replaces the old static billboard with
- Car 3c (
generate_redirects.py,forest.py) βmikelev.in/<ID>Shortlinks & LiveSTORY MENUReport:- Emits deterministic
/<article_id>-> canonical permalink entries into_redirects.map(O(1) Nginx$redirect_keyhash lookup, handling/1661and/1661/alike without polluting_raw_map.csv). - Adds
mode="menu"+{LIVE_REPORT:menu}+ARCHIVED_STATION_BEADS["menu"]inforest.pysostream.py --bead menupops a 138x38 Rich table of playable Story#s, topic tags, episode titles, andMikeLev.in/<ID>URLs onto:10.0.
- Emits deterministic
1: BEFORE (PROBE β read-only; straddles get_jukebox_menu_entries(), build_jukebox_ticker_message(), score.py "observatory" sweep, generate_redirects._collect_article_id_redirects(), and forest.py menu report + {LIVE_REPORT:menu} speech):
(nix) pipulate $
.venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "remotes/honeybot/scripts")); import content_loader as cl, logs, score; entries = cl.get_jukebox_menu_entries(limit=3) if hasattr(cl, "get_jukebox_menu_entries") else None; e0 = (entries or [{}])[0]; tk = logs.build_jukebox_ticker_message(e0.get("jukebox_index", 1337), e0.get("ticker_tag", "RFC 9110")) if hasattr(logs, "build_jukebox_ticker_message") else logs.DEFAULT_TICKER_MESSAGE; sc_txt = (REPO_ROOT / "remotes/honeybot/scripts/score.py").read_text(); print("MENU_TOP3:", [(x["jukebox_index"], x["ticker_tag"], x["short_url"]) for x in (entries or [])]); print("TICKER:", tk); print("SCORE_NO_OBS:", "observatory" not in sc_txt.lower())'
.venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "scripts/articles")); sys.path.insert(0, str(REPO_ROOT / "remotes/honeybot/scripts")); import generate_redirects as gr, forest; pdir = Path.home() / "repos/trimnoir/_posts"; _, active, _, _, _ = gr.get_navgraph_sets(pdir.parent / "navgraph.json", posts_dir=pdir, pages_dir=pdir.parent / "pages"); lmap = {p.lower(): p for p in active}; id_map = gr._collect_article_id_redirects(pdir, set(), lmap) if hasattr(gr, "_collect_article_id_redirects") else {}; ansi = forest.prerender_station_report_ansi("menu", out_path="/tmp/test_hb_menu.ansi") if "menu" in getattr(forest, "ARCHIVED_STATION_BEADS", {}) else ""; has_1661 = bool(ansi and "1661" in Path(ansi).read_text()); Path("/tmp/test_hb_menu.ansi").unlink(missing_ok=True); sp_txt = forest.resolve_dynamic_report_speech("{LIVE_REPORT:menu}"); print("ID_REDIRECTS:", len(id_map), id_map.get("/1661"), id_map.get("/911")); print("MENU_ANSI_OK:", has_1661, "SPEECH:", sp_txt[:140])'
2: AFTER (NEXT CONTEXT β put in context.txt using context or x; echoes both probes and loads common.py + norma_extract.py to wire MENU in YouTube chat and auto-stamp ticker_tag: in new Norma abstracts):
# Context 4: Wire Chat 'MENU' Trigger in ytwatch (common.py) & Auto-Stamp ticker_tag in norma_extract.py
context.txt
! .venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "remotes/honeybot/scripts")); import content_loader as cl, logs, score; entries = cl.get_jukebox_menu_entries(limit=3) if hasattr(cl, "get_jukebox_menu_entries") else None; e0 = (entries or [{}])[0]; tk = logs.build_jukebox_ticker_message(e0.get("jukebox_index", 1337), e0.get("ticker_tag", "RFC 9110")) if hasattr(logs, "build_jukebox_ticker_message") else logs.DEFAULT_TICKER_MESSAGE; sc_txt = (REPO_ROOT / "remotes/honeybot/scripts/score.py").read_text(); print("MENU_TOP3:", [(x["jukebox_index"], x["ticker_tag"], x["short_url"]) for x in (entries or [])]); print("TICKER:", tk); print("SCORE_NO_OBS:", "observatory" not in sc_txt.lower())'
! .venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "scripts/articles")); sys.path.insert(0, str(REPO_ROOT / "remotes/honeybot/scripts")); import generate_redirects as gr, forest; pdir = Path.home() / "repos/trimnoir/_posts"; _, active, _, _, _ = gr.get_navgraph_sets(pdir.parent / "navgraph.json", posts_dir=pdir, pages_dir=pdir.parent / "pages"); lmap = {p.lower(): p for p in active}; id_map = gr._collect_article_id_redirects(pdir, set(), lmap) if hasattr(gr, "_collect_article_id_redirects") else {}; ansi = forest.prerender_station_report_ansi("menu", out_path="/tmp/test_hb_menu.ansi") if "menu" in getattr(forest, "ARCHIVED_STATION_BEADS", {}) else ""; has_1661 = bool(ansi and "1661" in Path(ansi).read_text()); Path("/tmp/test_hb_menu.ansi").unlink(missing_ok=True); sp_txt = forest.resolve_dynamic_report_speech("{LIVE_REPORT:menu}"); print("ID_REDIRECTS:", len(id_map), id_map.get("/1661"), id_map.get("/911")); print("MENU_ANSI_OK:", has_1661, "SPEECH:", sp_txt[:140])'
scripts/articles/common.py
scripts/articles/norma_extract.py
3: CHANGE (PATCHES β three clean single-story cars, all under the 120-line aim):
Car 3a β YAML ticker_tag, O(1) Story Menu Entries, & Stage Story Tagging (content_loader.py, score.py):
Target: remotes/honeybot/scripts/content_loader.py
[[[SEARCH]]]
ABSTRACTS_SUBDIR = "_abstracts"
_PARENT_BACKFILL_KEYS = ("permalink", "sort_order", "image", "article_id", "storytime_featured", "storytime_order")
[[[DIVIDER]]]
ABSTRACTS_SUBDIR = "_abstracts"
_PARENT_BACKFILL_KEYS = ("permalink", "sort_order", "image", "article_id", "storytime_featured", "storytime_order", "ticker_tag")
_TICKER_STOPWORDS = frozenset({
"THE", "A", "AN", "AND", "OR", "BUT", "FOR", "NOR", "ON", "AT", "TO", "FROM",
"BY", "WITH", "IN", "OF", "INTO", "OVER", "AFTER", "UNDER", "HOW", "WHY", "WHAT",
"WHEN", "WHERE", "WHO", "YOUR", "OUR", "MY", "THIS", "THAT", "IS", "ARE", "WAS",
"WERE", "BE", "IT", "ITS", "AS", "VS", "VIA", "KILL", "KILLING", "KILLS", "RETIRE",
"RETIRING", "AUTOMATED", "BUILDING", "MAKING", "USING", "TURNING",
})
def resolve_ticker_tag(fm: dict, raw_title: str = "", slug: str = "", max_chars: int = 18) -> str:
"""Resolve a <=18-char 1-2 word uppercase LED ticker topic tag from YAML `ticker_tag` or slug/title."""
explicit = str((fm or {}).get("ticker_tag") or "").strip().upper()
explicit = re.sub(r"[^A-Z0-9 ./+&:#!?'-]+", " ", explicit)
explicit = " ".join(explicit.split())
if explicit:
return explicit[:max_chars].rstrip()
src = (slug or "").split("/")[-1].replace("-", " ") or raw_title
toks = [t.upper() for t in re.findall(r"[A-Za-z0-9]+", src) if t.upper() not in _TICKER_STOPWORDS]
if not toks:
return "STORY-TIME"
if len(toks) >= 2 and len(f"{toks[0]} {toks[1]}") <= max_chars:
return f"{toks[0]} {toks[1]}"
return toks[0][:max_chars]
[[[REPLACE]]]
Target: remotes/honeybot/scripts/content_loader.py
[[[SEARCH]]]
keyed = []
for p in dated:
fm = _with_parent_frontmatter(p, _read_frontmatter_dict(p), posts_dir=base)
if not _is_storytime_enabled(fm):
continue
raw_so = str(fm.get("sort_order") or "").strip()
s_ord = int(raw_so) if raw_so.lstrip("-").isdigit() else 0
raw_aid = str(fm.get("article_id") or "").split("#", 1)[0].strip()
aid = int(raw_aid) if raw_aid.isdigit() and int(raw_aid) > 0 else None
if aid is None or aid in JUKEBOX_RESERVED_IDS:
continue
keyed.append(((p.name[:10], s_ord, p.name), aid, p))
keyed.sort(key=lambda item: item[0])
paths, id_map, idx_map = [], {}, {}
for _, aid, p in keyed:
if aid not in id_map:
paths.append(p)
id_map[aid] = p
idx_map[p.name] = aid
seen_ids = set()
playable_ids = [
aid for _, aid, _ in reversed(keyed)
if aid in id_map and not (aid in seen_ids or seen_ids.add(aid))
]
_jb_catalog_cache.update({
"dir_mtime": dir_mtime,
"sig": sig,
"paths": paths,
"id_map": id_map,
"index_map": idx_map,
"playable_ids": playable_ids,
})
return _jb_catalog_cache
[[[DIVIDER]]]
keyed = []
fm_by_path = {}
for p in dated:
fm = _with_parent_frontmatter(p, _read_frontmatter_dict(p), posts_dir=base)
if not _is_storytime_enabled(fm):
continue
raw_so = str(fm.get("sort_order") or "").strip()
s_ord = int(raw_so) if raw_so.lstrip("-").isdigit() else 0
raw_aid = str(fm.get("article_id") or "").split("#", 1)[0].strip()
aid = int(raw_aid) if raw_aid.isdigit() and int(raw_aid) > 0 else None
if aid is None or aid in JUKEBOX_RESERVED_IDS:
continue
fm_by_path[p] = fm
keyed.append(((p.name[:10], s_ord, p.name), aid, p))
keyed.sort(key=lambda item: item[0])
paths, id_map, idx_map, meta_map = [], {}, {}, {}
for _, aid, p in keyed:
if aid not in id_map:
paths.append(p)
id_map[aid] = p
idx_map[p.name] = aid
fm_p = fm_by_path.get(p) or {}
slug_p = _resolve_canonical_slug(fm_p, p.name)
rtitle_p = str(fm_p.get("title") or slug_p.replace("-", " "))
meta_map[aid] = {
"jukebox_index": aid,
"date": p.name[:10],
"filename": p.name,
"slug": slug_p,
"raw_title": rtitle_p,
"spoken_title": _apply_tts_pronunciations(rtitle_p),
"ticker_tag": resolve_ticker_tag(fm_p, raw_title=rtitle_p, slug=slug_p),
"short_url": f"MikeLev.in/{aid}",
}
seen_ids = set()
playable_ids = [
aid for _, aid, _ in reversed(keyed)
if aid in id_map and not (aid in seen_ids or seen_ids.add(aid))
]
_jb_catalog_cache.update({
"dir_mtime": dir_mtime,
"sig": sig,
"paths": paths,
"id_map": id_map,
"index_map": idx_map,
"meta_map": meta_map,
"playable_ids": playable_ids,
})
return _jb_catalog_cache
[[[REPLACE]]]
Target: remotes/honeybot/scripts/content_loader.py
[[[SEARCH]]]
def get_jukebox_playable_ids(posts_dir: Path | None = None) -> list[int]:
"""Return newest-first list of playable Norma-converted Story IDs (excluding reserved 911)."""
return list(get_jukebox_catalog(posts_dir=posts_dir).get("playable_ids") or [])
[[[DIVIDER]]]
def get_jukebox_playable_ids(posts_dir: Path | None = None) -> list[int]:
"""Return newest-first list of playable Norma-converted Story IDs (excluding reserved 911)."""
return list(get_jukebox_catalog(posts_dir=posts_dir).get("playable_ids") or [])
def get_jukebox_menu_entries(limit: int = 12, posts_dir: Path | None = None) -> list[dict]:
"""Return newest-first O(1)-cached metadata dicts for playable Norma Story-Time episodes."""
cat = get_jukebox_catalog(posts_dir=posts_dir)
meta_map = cat.get("meta_map") or {}
ids = cat.get("playable_ids") or []
return [dict(meta_map[aid]) for aid in ids[: max(1, int(limit))] if aid in meta_map]
[[[REPLACE]]]
Target: remotes/honeybot/scripts/content_loader.py
[[[SEARCH]]]
raw_title = str(fm.get("title") or slug.replace("-", " "))
return {
"id": f"#{idx}: {raw_title} ({post_date})",
"slug": slug,
"filename": filepath.name,
"jukebox_index": idx,
"raw_title": raw_title,
[[[DIVIDER]]]
raw_title = str(fm.get("title") or slug.replace("-", " "))
return {
"id": f"#{idx}: {raw_title} ({post_date})",
"slug": slug,
"filename": filepath.name,
"jukebox_index": idx,
"ticker_tag": resolve_ticker_tag(fm, raw_title=raw_title, slug=slug),
"raw_title": raw_title,
[[[REPLACE]]]
Target: remotes/honeybot/scripts/content_loader.py
[[[SEARCH]]]
raw_title = str(frontmatter.get('title') or slug.replace('-', ' '))
spoken_title = _apply_tts_pronunciations(raw_title)
jb_idx = jb_index_map.get(filename, 0)
all_articles.append({
'id': f"#{jb_idx}: {raw_title} ({post_date})" if jb_idx else f"{raw_title} ({post_date})",
'slug': slug,
'filename': filename,
'jukebox_index': jb_idx,
'raw_title': raw_title,
[[[DIVIDER]]]
raw_title = str(frontmatter.get('title') or slug.replace('-', ' '))
spoken_title = _apply_tts_pronunciations(raw_title)
jb_idx = jb_index_map.get(filename, 0)
all_articles.append({
'id': f"#{jb_idx}: {raw_title} ({post_date})" if jb_idx else f"{raw_title} ({post_date})",
'slug': slug,
'filename': filename,
'jukebox_index': jb_idx,
'ticker_tag': resolve_ticker_tag(frontmatter, raw_title=raw_title, slug=slug),
'raw_title': raw_title,
[[[REPLACE]]]
Target: remotes/honeybot/scripts/content_loader.py
[[[SEARCH]]]
jb_s = f"story number {jb_n}, titled: {title}" if jb_n else f"titled: {title}"
return (
f"The article currently being read on this broadcast is {jb_s}. "
"To read the full article text and inspect the raw code receipts at your own pace, "
"visit Mike L E V dot eye N slash latest."
)
[[[DIVIDER]]]
jb_s = f"story number {jb_n}, titled: {title}" if jb_n else f"titled: {title}"
short_door = f"Mike L E V dot eye N slash {jb_n}" if jb_n else "Mike L E V dot eye N slash latest"
return (
f"The story currently playing in the fishtank is {jb_s}. "
"Type any story number on the bottom bar in live chat to switch stories, "
f"or inspect the full source at {short_door}."
)
[[[REPLACE]]]
Target: remotes/honeybot/scripts/score.py
[[[SEARCH]]]
jb_idx = int(article.get("jukebox_index") or 0)
raw_title = str(article.get("raw_title") or article.get("title") or "latest entry")
title_str = str(article.get("title") or raw_title)
jb_tag = f"story number {jb_idx}, " if jb_idx else ""
lead = (
f"Reading the latest entry, {jb_tag}published {article['date']}."
if is_latest
else f"Playing {jb_tag}from {article['date']}."
)
art_id = str(
article.get("id")
or article.get("slug")
or article.get("permalink")
or f"{article.get('date', '')}:{raw_title}"
).strip()
card_lbl = f"STORYTIME #{jb_idx}" if jb_idx else "STORYTIME"
script.append((
"CARD",
{
"label": card_lbl,
"subtitle": f"{raw_title}\n[{article['date']}]",
"say": f"{lead} Headline: {title_str}.",
"article": art_id,
"meta": {
"title": title_str,
"raw_title": raw_title,
"image": str(article.get("image") or "").strip(),
"jukebox_index": jb_idx,
},
},
))
script.append(("OVERTURE", {"title": title_str, "raw_title": raw_title, "jukebox_index": jb_idx, "article": art_id}))
[[[DIVIDER]]]
jb_idx = int(article.get("jukebox_index") or 0)
ticker_tag = str(article.get("ticker_tag") or "").strip()
raw_title = str(article.get("raw_title") or article.get("title") or "latest entry")
title_str = str(article.get("title") or raw_title)
jb_tag = f"story number {jb_idx}, " if jb_idx else ""
lead = (
f"Reading the latest entry, {jb_tag}published {article['date']}."
if is_latest
else f"Playing {jb_tag}from {article['date']}."
)
tag_seg = f" [{ticker_tag}]" if ticker_tag else ""
art_id = (
f"#{jb_idx}{tag_seg}: {raw_title} ({article['date']})"
if jb_idx
else str(
article.get("id")
or article.get("slug")
or article.get("permalink")
or f"{article.get('date', '')}:{raw_title}"
).strip()
)
card_lbl = f"STORYTIME #{jb_idx}" if jb_idx else "STORYTIME"
script.append((
"CARD",
{
"label": card_lbl,
"subtitle": f"{raw_title}\n[{article['date']}]",
"say": f"{lead} Headline: {title_str}.",
"article": art_id,
"meta": {
"title": title_str,
"raw_title": raw_title,
"image": str(article.get("image") or "").strip(),
"jukebox_index": jb_idx,
"ticker_tag": ticker_tag,
},
},
))
script.append(("OVERTURE", {"title": title_str, "raw_title": raw_title, "jukebox_index": jb_idx, "ticker_tag": ticker_tag, "article": art_id}))
[[[REPLACE]]]
Target: remotes/honeybot/scripts/score.py
[[[SEARCH]]]
script.append((
"CARD",
{
"label": "SUNPUG.IO &\nMIKELEV.IN",
"pace": "standard",
"say": (
f"That concludes {article['title']}. "
"Remember the two addresses: you get the long-form articles and raw book receipts at MikeLev.in, "
"and you get the local-first A I-Readiness tools and 911 L L M Optics free at SunPug.io. "
"Join the Founding 1,000 A I-Readiness Consultants at MikeLev.in/discord, or drop a message in the live chat β "
"a human operator monitors this observatory and can break in live."
),
},
))
[[[DIVIDER]]]
short_addr = f"MikeLev.in/{jb_idx}" if jb_idx else "MikeLev.in"
script.append((
"CARD",
{
"label": "SUNPUG.IO &\nMIKELEV.IN",
"pace": "standard",
"say": (
f"That concludes {article['title']}. "
f"Remember the two addresses: you get the full lab receipts for this story at {short_addr}, "
"and you get the local-first A I-Readiness tools and 911 L L M Optics free at SunPug.io. "
"Type any story number or menu in live chat to take control, or join the Founding 1,000 at MikeLev.in/discord β "
"a human operator monitors this fishtank and can break in live."
),
},
))
[[[REPLACE]]]
Target: remotes/honeybot/scripts/score.py
[[[SEARCH]]]
except Exception as e:
script.append(("SAY", f"Error loading Jukebox entry {jukebox_index}: {e}"))
[[[DIVIDER]]]
except Exception as e:
script.append(("SAY", f"Error loading story number {jukebox_index}: {e}"))
[[[REPLACE]]]
Car 3b β Dynamic Story-Control 5-Row LED Ticker & TICKER_TOP_PRIORITY (logs.py):
Target: remotes/honeybot/scripts/logs.py
[[[SEARCH]]]
DEFAULT_TICKER_MESSAGE = (
"LIVE WIRE TELEMETRY | "
"SEO -> AI-READINESS | "
"3-HOP MARKDOWN WEB | "
"INSPECT SUNPUG.IO | "
"FOUNDING 1000 GUILD | "
"MIKELEV.IN/DISCORD | "
"TELL 1 SMART BUILDER | "
"CHAT SUMMONS MIKE"
)
[[[DIVIDER]]]
TICKER_TOP_PRIORITY = os.environ.get("HONEYBOT_TICKER_PRIORITY", "MIKELEV.IN/DISCORD").strip().upper()
DEFAULT_TICKER_MESSAGE = (
"CURRENTLY PLAYING | "
"MIKELEV.IN/LATEST | "
"TYPE: MENU | "
"TAKE CONTROL! | "
"MIKELEV.IN/DISCORD"
)
_STAGE_ARTICLE_ID_RE = re.compile(r"^#(\d+)(?:\s*\[([^\]]+)\])?")
_STAGE_FNAME_RE = re.compile(r"(\d{4}-\d{2}-\d{2}-[A-Za-z0-9._-]+\.(?:md|markdown))")
def resolve_active_story_ticker_meta(stage_payload: dict = None) -> tuple:
"""Resolve O(1) (jb_idx, ticker_tag) from /tmp/honeybot_stage.json or newest Norma abstract."""
jb_idx, tag = 0, ""
art_str = str((stage_payload or {}).get("article") or "").strip()
if art_str:
m_id = _STAGE_ARTICLE_ID_RE.match(art_str)
if m_id:
jb_idx = int(m_id.group(1))
tag = (m_id.group(2) or "").strip().upper()
try:
sdir = str(os.path.dirname(os.path.abspath(__file__)))
if sdir not in sys.path:
sys.path.insert(0, sdir)
import content_loader as _cl
cat = _cl.get_jukebox_catalog()
meta_map = cat.get("meta_map") or {}
if jb_idx == 0 and art_str:
m_fn = _STAGE_FNAME_RE.search(art_str)
if m_fn:
jb_idx = int((cat.get("index_map") or {}).get(m_fn.group(1)) or 0)
if jb_idx == 0 and cat.get("playable_ids"):
jb_idx = int(cat["playable_ids"][0])
if jb_idx > 0 and not tag:
tag = str((meta_map.get(jb_idx) or {}).get("ticker_tag") or "").strip().upper()
except Exception:
pass
clean_tag = re.sub(r"[^A-Z0-9 ./+&:#!?'-]+", " ", tag)
clean_tag = " ".join(clean_tag.split())[:18].rstrip()
return jb_idx, clean_tag
def build_jukebox_ticker_message(jb_idx: int = 0, ticker_tag: str = "", top_priority: str = None) -> str:
"""Build the 5-row LED Story-Control billboard sequence."""
idx_int = int(jb_idx or 0)
url_card = f"MIKELEV.IN/{idx_int}" if idx_int > 0 else "MIKELEV.IN/LATEST"
clean_tag = " ".join(re.sub(r"[^A-Z0-9 ./+&:#!?'-]+", " ", str(ticker_tag or "").upper()).split())[:18].rstrip()
prio = TICKER_TOP_PRIORITY if top_priority is None else str(top_priority).strip().upper()
cards = ["CURRENTLY PLAYING", url_card]
if clean_tag:
cards.append(clean_tag)
cards.extend(["TYPE: MENU", "TAKE CONTROL!"])
if prio:
cards.append(prio)
return " | ".join(cards)
[[[REPLACE]]]
Target: remotes/honeybot/scripts/logs.py
[[[SEARCH]]]
if any(k in up for k in ("SUMMON", "CHAT SUMMONS", "MIKE")):
if "MIKELEV" not in up:
return "subtle"
[[[DIVIDER]]]
if any(k in up for k in ("TAKE CONTROL", "SUMMON", "CHAT SUMMONS", "MIKE")):
if "MIKELEV" not in up:
return "subtle"
[[[REPLACE]]]
Target: remotes/honeybot/scripts/logs.py
[[[SEARCH]]]
self.ticker_offset = 0
self.ticker_mtime = None
self.ticker_tick_count = 0
[[[DIVIDER]]]
self.ticker_offset = 0
self.ticker_mtime = None
self.ticker_story_sig = None
self.ticker_tick_count = 0
[[[REPLACE]]]
Target: remotes/honeybot/scripts/logs.py
[[[SEARCH]]]
self._reload_ticker_source(force=True)
self._sync_stage_from_file()
[[[DIVIDER]]]
self._sync_stage_from_file()
self._reload_ticker_source(force=True)
[[[REPLACE]]]
Target: remotes/honeybot/scripts/logs.py
[[[SEARCH]]]
if st.st_mtime_ns != getattr(self, "stage_mtime_ns", None):
import json as _json
with open(STAGE_STATE_PATH, "r", encoding="utf-8") as sf:
data = _json.load(sf)
self.stage_payload = data
self.stage_mtime_ns = st.st_mtime_ns
[[[DIVIDER]]]
if st.st_mtime_ns != getattr(self, "stage_mtime_ns", None):
import json as _json
with open(STAGE_STATE_PATH, "r", encoding="utf-8") as sf:
data = _json.load(sf)
self.stage_payload = data
self.stage_mtime_ns = st.st_mtime_ns
if not os.path.exists(TICKER_FILE_PATH):
if resolve_active_story_ticker_meta(data) != getattr(self, "ticker_story_sig", None):
self._reload_ticker_source(force=True)
[[[REPLACE]]]
Target: remotes/honeybot/scripts/logs.py
[[[SEARCH]]]
try:
st_mtime = os.stat(TICKER_FILE_PATH).st_mtime if os.path.exists(TICKER_FILE_PATH) else -1.0
except OSError:
st_mtime = -1.0
if not force and st_mtime == self.ticker_mtime:
return
self.ticker_mtime = st_mtime
raw = ""
if st_mtime > 0:
try:
with open(TICKER_FILE_PATH, "r", encoding="utf-8", errors="replace") as tf:
lines = [ln.strip() for ln in tf.read().splitlines() if ln.strip()]
raw = " | ".join(lines)
except OSError:
raw = ""
if not raw:
raw = DEFAULT_TICKER_MESSAGE
[[[DIVIDER]]]
try:
st_mtime = os.stat(TICKER_FILE_PATH).st_mtime if os.path.exists(TICKER_FILE_PATH) else -1.0
except OSError:
st_mtime = -1.0
story_sig = resolve_active_story_ticker_meta(getattr(self, "stage_payload", None)) if st_mtime <= 0 else None
if not force and st_mtime == self.ticker_mtime and (st_mtime > 0 or story_sig == getattr(self, "ticker_story_sig", None)):
return
self.ticker_mtime = st_mtime
self.ticker_story_sig = story_sig
raw = ""
if st_mtime > 0:
try:
with open(TICKER_FILE_PATH, "r", encoding="utf-8", errors="replace") as tf:
lines = [ln.strip() for ln in tf.read().splitlines() if ln.strip()]
raw = " | ".join(lines)
except OSError:
raw = ""
if not raw:
jb_i, jb_tag = story_sig or resolve_active_story_ticker_meta(getattr(self, "stage_payload", None))
raw = build_jukebox_ticker_message(jb_idx=jb_i, ticker_tag=jb_tag)
[[[REPLACE]]]
Car 3c β mikelev.in/<ID> Nginx Shortlinks & forest.py Live STORY MENU Report (generate_redirects.py, forest.py):
Target: scripts/articles/generate_redirects.py
[[[SEARCH]]]
def build_nginx_map(csv_input_path, map_output_path, navgraph_path):
[[[DIVIDER]]]
def _collect_article_id_redirects(posts_dir, living_tissue, lower_to_actual):
"""Build deterministic {'/1337': '/futureproof/slug/'} map from stamped posts."""
id_redirects = {}
if not posts_dir or not posts_dir.is_dir():
return id_redirects
for md_path in sorted(posts_dir.glob("*.md")):
aid = common.read_article_id(md_path)
if not aid:
continue
try:
head = md_path.read_text(encoding="utf-8", errors="ignore")[:4096]
except OSError:
continue
if not head.startswith("---"):
continue
fm_part = head.split("---", 2)[1] if head.count("---") >= 2 else head
m_perm = re.search(r"^permalink:\s*(\S+)", fm_part, re.M)
if not m_perm:
continue
raw_p = m_perm.group(1).strip().strip('"').strip("'")
if not raw_p:
continue
if not raw_p.startswith("/"):
raw_p = "/" + raw_p
canon_target = lower_to_actual.get(enforce_slash(raw_p).lower())
if not canon_target:
continue
short_key = f"/{aid}"
if short_key in living_tissue or f"{short_key}/" in living_tissue:
continue
id_redirects[aid] = canon_target
return {f"/{aid}": id_redirects[aid] for aid in sorted(id_redirects)}
def build_nginx_map(csv_input_path, map_output_path, navgraph_path):
[[[REPLACE]]]
Target: scripts/articles/generate_redirects.py
[[[SEARCH]]]
safe_map_path_re = re.compile(r"^/[A-Za-z0-9/_.-]+$")
lower_to_actual = {p.lower(): p for p in active_permalinks}
lower_slug_map = {k.lower(): v for k, v in slug_map.items()}
valid_mappings = {} # The Deduplication Ledger
[[[DIVIDER]]]
safe_map_path_re = re.compile(r"^/[A-Za-z0-9/_.-]+$")
lower_to_actual = {p.lower(): p for p in active_permalinks}
lower_slug_map = {k.lower(): v for k, v in slug_map.items()}
article_id_redirects = _collect_article_id_redirects(repo_root / "_posts", living_tissue, lower_to_actual)
for id_k in article_id_redirects:
living_tissue.add(id_k)
living_tissue.add(f"{id_k}/")
valid_mappings = {} # The Deduplication Ledger
[[[REPLACE]]]
Target: scripts/articles/generate_redirects.py
[[[SEARCH]]]
# --- HARDCODED SYSTEM REDIRECTS (O(1) exact-match via $redirect_key) ---
outfile.write(" /feed /feed.xml;\n")
# ----------------------------------
[[[DIVIDER]]]
# --- HARDCODED SYSTEM & ARTICLE-ID SHORTLINK REDIRECTS (O(1) exact-match via $redirect_key) ---
outfile.write(" /feed /feed.xml;\n")
for id_key, id_target in article_id_redirects.items():
if safe_map_path_re.match(id_key) and safe_map_path_re.match(id_target):
outfile.write(f" {id_key} {id_target};\n")
# ----------------------------------
[[[REPLACE]]]
Target: scripts/articles/generate_redirects.py
[[[SEARCH]]]
seen_keys = {"/feed"}
[[[DIVIDER]]]
seen_keys = {"/feed", *article_id_redirects.keys()}
if article_id_redirects:
print(f"π’ Minted {len(article_id_redirects)} /<article_id> shortlink redirect(s).")
[[[REPLACE]]]
Target: remotes/honeybot/scripts/forest.py
[[[SEARCH]]]
ARCHIVED_STATION_BEADS = {
"white_rabbit": _make_station_bead(
[[[DIVIDER]]]
ARCHIVED_STATION_BEADS = {
"menu": _make_station_bead(
"STORY\nMENU",
"Here is the live A.I. Fishtank Story-Time menu.",
("WINDOW", f"forest.py:{REPORT_WINDOW_CAP_SECONDS}:menu"),
[
"{LIVE_REPORT:menu}",
"Type any story number from the left column into live chat to take control immediately, or type nine eleven for a live Optics check.",
],
),
"white_rabbit": _make_station_bead(
[[[REPLACE]]]
Target: remotes/honeybot/scripts/forest.py
[[[SEARCH]]]
def resolve_dynamic_report_speech(text: str) -> str:
"""Replace {LIVE_REPORT:overview} or {LIVE_REPORT:bimodal} using the chart's own snapshot + 'about' upward rounding."""
s = str(text or "")
if "{LIVE_REPORT:" not in s:
return s
[[[DIVIDER]]]
def _format_menu_speech(total_count: int, entries: list) -> str:
picks = [
f"story {e['jukebox_index']}, {e.get('spoken_title') or e.get('raw_title') or ''}".strip()
for e in (entries or [])[:3]
if e.get("jukebox_index")
]
if total_count > 0 and picks:
word = "story" if total_count == 1 else "stories"
return f"There are {total_count} Puppet Theater {word} ready on demand. Recent picks include {'; '.join(picks)}."
return "Puppet Theater stories are ready on demand β check the bottom bar for playable story numbers."
def resolve_dynamic_report_speech(text: str) -> str:
"""Replace {LIVE_REPORT:overview}, {LIVE_REPORT:bimodal}, or {LIVE_REPORT:menu} using chart snapshots."""
s = str(text or "")
if "{LIVE_REPORT:" not in s:
return s
if "{LIVE_REPORT:menu}" in s:
snap_m = _read_report_speech_snapshot("menu")
if snap_m and snap_m.get("entries") is not None:
live_m = _format_menu_speech(int(snap_m.get("total_count") or 0), snap_m.get("entries") or [])
else:
try:
import sys as _m_sys
from pathlib import Path as _MPath
_m_dir = str(_MPath(__file__).resolve().parent)
if _m_dir not in _m_sys.path:
_m_sys.path.insert(0, _m_dir)
import content_loader as _cl
live_m = _format_menu_speech(len(_cl.get_jukebox_playable_ids()), _cl.get_jukebox_menu_entries(limit=3))
except Exception:
live_m = _format_menu_speech(0, [])
s = s.replace("{LIVE_REPORT:menu}", live_m)
if "{LIVE_REPORT:" not in s:
return s
[[[REPLACE]]]
Target: remotes/honeybot/scripts/forest.py
[[[SEARCH]]]
if mode != "doors":
[[[DIVIDER]]]
if mode not in ("doors", "menu"):
[[[REPLACE]]]
Target: remotes/honeybot/scripts/forest.py
[[[SEARCH]]]
elif mode == "doors":
title_str = "ποΈ THE 8-DOOR HONEYBOT FREQUENCY DIAL (CURL -fsSL <DOOR> | LESS)"
tbl.add_column("Door / Frequency", style="bold bright_white", width=20)
tbl.add_column("Target Folder", style="bold cyan", width=16)
tbl.add_column("Focused Value Proposition (Saying More by Saying Less)", style="white", ratio=4)
for d_name, d_tld, d_folder, d_pitch in DOOR_DIAL_ROWS:
domain_str = f"{d_name}.{d_tld}"
tbl.add_row(f"πͺ {domain_str}", d_folder, d_pitch)
else:
[[[DIVIDER]]]
elif mode == "doors":
title_str = "ποΈ THE 8-DOOR HONEYBOT FREQUENCY DIAL (CURL -fsSL <DOOR> | LESS)"
tbl.add_column("Door / Frequency", style="bold bright_white", width=20)
tbl.add_column("Target Folder", style="bold cyan", width=16)
tbl.add_column("Focused Value Proposition (Saying More by Saying Less)", style="white", ratio=4)
for d_name, d_tld, d_folder, d_pitch in DOOR_DIAL_ROWS:
domain_str = f"{d_name}.{d_tld}"
tbl.add_row(f"πͺ {domain_str}", d_folder, d_pitch)
elif mode == "menu":
import sys as _m_sys
_m_dir = str(Path(__file__).resolve().parent)
if _m_dir not in _m_sys.path:
_m_sys.path.insert(0, _m_dir)
import content_loader as _cl
playable_all = _cl.get_jukebox_playable_ids()
entries = _cl.get_jukebox_menu_entries(limit=12)
_write_report_speech_snapshot(
"menu",
{
"total_count": len(playable_all),
"entries": [
{
"jukebox_index": e["jukebox_index"],
"raw_title": e["raw_title"],
"spoken_title": e.get("spoken_title") or e["raw_title"],
}
for e in entries[:4]
],
},
)
title_str = f"ποΈ A.I. FISHTANK STORY-TIME MENU ({len(playable_all)} PLAYABLE STORIES β TYPE # IN CHAT)"
tbl.add_column("Type #", justify="right", style="bold #ffd700", width=8, no_wrap=True)
tbl.add_column("Topic Tag", style="bold #38bdf8", width=20, no_wrap=True)
tbl.add_column("Puppet-Theater Story Episode", style="bold bright_white", ratio=4, no_wrap=True)
tbl.add_column("Full Receipt URL", style="bold #7ee787", width=20, no_wrap=True)
tbl.add_row(
"911",
Text("β‘ 16-LENS OPTICS", style="bold #ffd700"),
Text("Run a live 911 LLM Optics wire-truth spectrometer check on stream", style="bold bright_yellow"),
"SunPug.io",
)
tbl.add_section()
title_budget = max(32, int((panel_width or 124) - 58))
for e in entries:
t_raw = str(e.get("raw_title") or "")
if len(t_raw) > title_budget:
t_raw = t_raw[: title_budget - 1] + "β¦"
ep_txt = Text.assemble((t_raw, "bold bright_white"), (f" ({e['date']})", "dim white"))
tbl.add_row(
str(e["jukebox_index"]),
str(e.get("ticker_tag") or "STORY-TIME"),
ep_txt,
str(e.get("short_url") or f"MikeLev.in/{e['jukebox_index']}"),
)
else:
[[[REPLACE]]]
Target: remotes/honeybot/scripts/forest.py
[[[SEARCH]]]
if safe_mode not in ("overview", "bimodal", "trapdoor") or _read_report_speech_snapshot(safe_mode, max_age=max_age):
[[[DIVIDER]]]
if safe_mode not in ("overview", "bimodal", "trapdoor", "menu") or _read_report_speech_snapshot(safe_mode, max_age=max_age):
[[[REPLACE]]]
Ignition: no ignition required for the local straddle probes (they import the patched modules directly from disk; after Step 4 wires MENU in common.py, one preview + publish / ytreboot pushes _redirects.map, the new LED ticker, and live MENU onto Honeybot :10.0).
4: PROMPT (Use prompt or p to create prompt.md from copy):
With Step 3 verified in the straddle receipts and `scripts/articles/common.py` + `scripts/articles/norma_extract.py` loaded in raw source, finish Step 4 (Live YouTube Chat `MENU` Trigger & Auto-Stamped `ticker_tag` in Norma Plunger) in clean single-story fenced cars (`<= 120` lines aimed per car):
1. **Car 3a (`scripts/articles/common.py`) β Wire `MENU` in YouTube Chat to `stream.py --bead menu`**:
- Accept `menu` (`^[!/]?menu$`, case-insensitive) in `parse_allowlisted_chat_command()` -> `("menu", None)`.
- Dispatch `("menu", None)` in `_actuate_allowlisted_chat_command()` over SSH (`python3 ~/www/mikelev.in/scripts/stream.py --bead menu >/dev/null 2>&1`) so any viewer who sees `TYPE: MENU` on the 5-row LED billboard can summon the on-air `STORY MENU` report + spoken picks.
2. **Car 3b (`scripts/articles/norma_extract.py`) β Auto-Stamp `ticker_tag` in Norma Extraction Prompts**:
- Update `build_extraction_prompt()` so every newly minted 3-Voice Socratic abstract includes a crisp 1β2 word uppercase `ticker_tag` (`<= 18` chars) in its YAML frontmatter automatically.
5: DELIVERABLE (What done looks like):
logs.pyβs 5-row LED billboard cyclesCURRENTLY PLAYING->MIKELEV.IN/<ID>-><TICKER_TAG>->TYPE: MENU->TAKE CONTROL!(ember forge) ->MIKELEV.IN/DISCORD, updating automatically whenever the active story changes while preservingyttickeroverrides andSONAR_HOT_RELOAD=1.generate_redirects.pymints/<article_id>-> canonical permalink Nginx shortlinks for every stamped post in~/repos/trimnoir/_posts(ID_REDIRECTS: ~1661).forest.pyrendersmode="menu"and speaks{LIVE_REPORT:menu}(MENU_ANSI_OK: True), ready for# Context 4to connectTYPE: MENUin YouTube chat end-to-end. No external manual-paste deliverables required.
MikeLev.in:
THE AI-EDIT METHOD
Same commands, run twice, one change between them. Where the readings differ is what the change did; the diff in the middle is the receipt.
1: BEFORE (PROBE):
On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean
GIT repo clean. Take BEFORE reading, make CHANGE, record AFTER diff.
(nix) pipulate $ .venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "remotes/honeybot/scripts")); import content_loader as cl, logs, score; entries = cl.get_jukebox_menu_entries(limit=3) if hasattr(cl, "get_jukebox_menu_entries") else None; e0 = (entries or [{}])[0]; tk = logs.build_jukebox_ticker_message(e0.get("jukebox_index", 1337), e0.get("ticker_tag", "RFC 9110")) if hasattr(logs, "build_jukebox_ticker_message") else logs.DEFAULT_TICKER_MESSAGE; sc_txt = (REPO_ROOT / "remotes/honeybot/scripts/score.py").read_text(); print("MENU_TOP3:", [(x["jukebox_index"], x["ticker_tag"], x["short_url"]) for x in (entries or [])]); print("TICKER:", tk); print("SCORE_NO_OBS:", "observatory" not in sc_txt.lower())'
.venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "scripts/articles")); sys.path.insert(0, str(REPO_ROOT / "remotes/honeybot/scripts")); import generate_redirects as gr, forest; pdir = Path.home() / "repos/trimnoir/_posts"; _, active, _, _, _ = gr.get_navgraph_sets(pdir.parent / "navgraph.json", posts_dir=pdir, pages_dir=pdir.parent / "pages"); lmap = {p.lower(): p for p in active}; id_map = gr._collect_article_id_redirects(pdir, set(), lmap) if hasattr(gr, "_collect_article_id_redirects") else {}; ansi = forest.prerender_station_report_ansi("menu", out_path="/tmp/test_hb_menu.ansi") if "menu" in getattr(forest, "ARCHIVED_STATION_BEADS", {}) else ""; has_1661 = bool(ansi and "1661" in Path(ansi).read_text()); Path("/tmp/test_hb_menu.ansi").unlink(missing_ok=True); sp_txt = forest.resolve_dynamic_report_speech("{LIVE_REPORT:menu}"); print("ID_REDIRECTS:", len(id_map), id_map.get("/1661"), id_map.get("/911")); print("MENU_ANSI_OK:", has_1661, "SPEECH:", sp_txt[:140])'
MENU_TOP3: []
TICKER: LIVE WIRE TELEMETRY | SEO -> AI-READINESS | 3-HOP MARKDOWN WEB | INSPECT SUNPUG.IO | FOUNDING 1000 GUILD | MIKELEV.IN/DISCORD | TELL 1 SMART BUILDER | CHAT SUMMONS MIKE
SCORE_NO_OBS: False
ID_REDIRECTS: 0 None None
MENU_ANSI_OK: False SPEECH: {LIVE_REPORT:menu}
(nix) pipulate $
2: AFTER (NEXT CONTEXT):
# # Context 1: Step 1 Bare-Number Jukebox & terms.py
# context.txt
# ! eza -1 remotes/honeybot/scripts
# ! rg -n 'jukebox|ytwatch|\brabbit\b' flake.nix scripts remotes/honeybot/scripts
# ! .venv/bin/python -c 'import pathlib, re; base = pathlib.Path("/home/mike/repos/trimnoir/_posts"); abs_files = sorted((base / "_abstracts").glob("*.md")) if (base / "_abstracts").is_dir() else []; p911 = [p.name for p in base.glob("*.md") if re.search(r"(?m)^article_id:\s*[\x27\x22]?911\b", p.read_text(errors="ignore")[:2048])]; print("abstracts:", len(abs_files), [f.name for f in abs_files[:5]], "id_911:", p911)'
#
# flake.nix
# scripts/chat_route_probe.py
# remotes/honeybot/scripts/terms.py
# remotes/honeybot/scripts/content_loader.py
# remotes/honeybot/scripts/score.py
# remotes/honeybot/scripts/logs.py
# scripts/articles/norma_extract.py
# deleteme.txt
# # Context 2: Bare-Number Chat Parser in ytwatch (common.py) & Stream Fishtank Sweep
# context.txt
# ! .venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "remotes/honeybot/scripts")); import terms, content_loader as cl; sample = "A.I. FISHTANK STORY-TIME for CMOs & CTOs in the c-suite, Reschke, Yutes, Mike-E, Weebo, NetOps, 911 in chat, mikelev.in/1337"; ids = cl.get_jukebox_playable_ids() if hasattr(cl, "get_jukebox_playable_ids") else None; lg = (REPO_ROOT / "remotes/honeybot/scripts/logs.py").read_text(); sc = (REPO_ROOT / "remotes/honeybot/scripts/score.py").read_text(); print("TTS:", terms.apply_inline_tts_terms(sample)); print("PLAYABLE_IDS:", ids); print("LOGS_FISHTANK:", "A.I. FISHTANK STORY-TIME" in lg, "LOGS_NO_RABBIT:", "rabbit" not in lg); print("SCORE_FISHTANK:", "A.I. FISHTANK" in sc)'
# ! .venv/bin/python scripts/pyprobe.py 'rc, out = capture_call(["rg", "-n", "-i", "observatory|fishtank|_CHAT_OPTICS_RE|_CHAT_RABBIT_RE|_CHAT_JUKEBOX_RE", "remotes/honeybot/scripts", "scripts"]); print(out[:3500])'
# scripts/articles/common.py
# remotes/honeybot/scripts/stream.py
# remotes/honeybot/scripts/forest.py
# # Context 2b: Fix F821 Per-Block Airlock in common.py & Complete Stream Fishtank Sweep
# context.txt
# ! .venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "scripts/articles")); import common; cases = ["911", "#911", "rabbit", "!rabbit", "1661", "#1661", "42", "jukebox 1660"]; parsed = [(c, common.parse_allowlisted_chat_command(c)) for c in cases]; vp = common._build_viewer_payload(2, video_id="vid", peak=4); print("PARSED:", parsed); print("VIEWER_JB_IDS:", vp.get("jukebox_ids"))'
# ! rg -n "_CHAT_RABBIT_RE|Jukebox request received|Web Bot A I Observatory|Web Bot AI Observatory|Scheduled observatory" scripts/articles/common.py remotes/honeybot/scripts/stream.py remotes/honeybot/scripts/forest.py remotes/honeybot/scripts/score.py || true
# scripts/articles/common.py
# remotes/honeybot/scripts/stream.py
# remotes/honeybot/scripts/forest.py
# # Context 3: Story-Control LED Ticker, mikelev.in/<ID> Short URLs, & Story Menu Report
# context.txt
# ! .venv/bin/python scripts/pyprobe.py 'import apply; f_body = "OLD = 1\ndef f():\n return OLD\n"; d = tempfile.mkdtemp(); tf = Path(d) / "t.py"; tf.write_text(f_body); p = f"Target: {tf}\n{SEARCH_MARK}\nOLD = 1\n{DIVIDER_MARK}\nNEW = 2\n{REPLACE_MARK}\nTarget: {tf}\n{SEARCH_MARK}\n return OLD\n{DIVIDER_MARK}\n return NEW\n{REPLACE_MARK}\n"; ok = apply.apply_search_replace_patch(p); shutil.rmtree(d, ignore_errors=True); print("MULTI_BLOCK_RENAME_OK:", ok)'
# ! .venv/bin/python -m unittest tests/test_apply_airlock.py
# ! .venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "scripts/articles")); import common; cases = ["911", "#911", "rabbit", "!rabbit", "1661", "#1661", "42", "jukebox 1660"]; parsed = [(c, common.parse_allowlisted_chat_command(c)) for c in cases]; vp = common._build_viewer_payload(2, video_id="vid", peak=4); print("PARSED:", parsed); print("VIEWER_JB_IDS:", vp.get("jukebox_ids"))'
# ! rg -n "_CHAT_RABBIT_RE|Jukebox request received|Web Bot A I Observatory|Web Bot AI Observatory|Scheduled observatory" scripts/articles/common.py remotes/honeybot/scripts/stream.py remotes/honeybot/scripts/forest.py remotes/honeybot/scripts/score.py || true
# remotes/honeybot/scripts/logs.py
# remotes/honeybot/scripts/score.py
# remotes/honeybot/scripts/content_loader.py
# remotes/honeybot/scripts/forest.py
# scripts/articles/generate_redirects.py
# Context 4: Wire Chat 'MENU' Trigger in ytwatch (common.py) & Auto-Stamp ticker_tag in norma_extract.py
context.txt
! .venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "remotes/honeybot/scripts")); import content_loader as cl, logs, score; entries = cl.get_jukebox_menu_entries(limit=3) if hasattr(cl, "get_jukebox_menu_entries") else None; e0 = (entries or [{}])[0]; tk = logs.build_jukebox_ticker_message(e0.get("jukebox_index", 1337), e0.get("ticker_tag", "RFC 9110")) if hasattr(logs, "build_jukebox_ticker_message") else logs.DEFAULT_TICKER_MESSAGE; sc_txt = (REPO_ROOT / "remotes/honeybot/scripts/score.py").read_text(); print("MENU_TOP3:", [(x["jukebox_index"], x["ticker_tag"], x["short_url"]) for x in (entries or [])]); print("TICKER:", tk); print("SCORE_NO_OBS:", "observatory" not in sc_txt.lower())'
! .venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "scripts/articles")); sys.path.insert(0, str(REPO_ROOT / "remotes/honeybot/scripts")); import generate_redirects as gr, forest; pdir = Path.home() / "repos/trimnoir/_posts"; _, active, _, _, _ = gr.get_navgraph_sets(pdir.parent / "navgraph.json", posts_dir=pdir, pages_dir=pdir.parent / "pages"); lmap = {p.lower(): p for p in active}; id_map = gr._collect_article_id_redirects(pdir, set(), lmap) if hasattr(gr, "_collect_article_id_redirects") else {}; ansi = forest.prerender_station_report_ansi("menu", out_path="/tmp/test_hb_menu.ansi") if "menu" in getattr(forest, "ARCHIVED_STATION_BEADS", {}) else ""; has_1661 = bool(ansi and "1661" in Path(ansi).read_text()); Path("/tmp/test_hb_menu.ansi").unlink(missing_ok=True); sp_txt = forest.resolve_dynamic_report_speech("{LIVE_REPORT:menu}"); print("ID_REDIRECTS:", len(id_map), id_map.get("/1661"), id_map.get("/911")); print("MENU_ANSI_OK:", has_1661, "SPEECH:", sp_txt[:140])'
scripts/articles/common.py
scripts/articles/norma_extract.py
3: CHANGE (PATCHES):
On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean
GIT repo clean. Take BEFORE reading, make CHANGE, record AFTER diff.
(nix) pipulate $ patch
(nix) pipulate $ app
β
DETERMINISTIC PATCH APPLIED: Successfully mutated 'remotes/honeybot/scripts/content_loader.py'.
β
DETERMINISTIC PATCH APPLIED: Successfully mutated 'remotes/honeybot/scripts/score.py'.
π Car meter: 2/5 file(s), 9/12 block(s), 166/220 line(s) (over 120-line aim; prefer separate Car 3a/3b fences)
(nix) pipulate $ d
diff --git a/remotes/honeybot/scripts/content_loader.py b/remotes/honeybot/scripts/content_loader.py
index d93e98f..51444a4 100644
--- a/remotes/honeybot/scripts/content_loader.py
+++ b/remotes/honeybot/scripts/content_loader.py
@@ -155,7 +155,30 @@ _jb_catalog_cache = globals().get("_jb_catalog_cache", {})
if "id_map" not in _jb_catalog_cache:
_jb_catalog_cache = {"sig": None, "paths": [], "id_map": {}, "index_map": {}}
ABSTRACTS_SUBDIR = "_abstracts"
-_PARENT_BACKFILL_KEYS = ("permalink", "sort_order", "image", "article_id", "storytime_featured", "storytime_order")
+_PARENT_BACKFILL_KEYS = ("permalink", "sort_order", "image", "article_id", "storytime_featured", "storytime_order", "ticker_tag")
+_TICKER_STOPWORDS = frozenset({
+ "THE", "A", "AN", "AND", "OR", "BUT", "FOR", "NOR", "ON", "AT", "TO", "FROM",
+ "BY", "WITH", "IN", "OF", "INTO", "OVER", "AFTER", "UNDER", "HOW", "WHY", "WHAT",
+ "WHEN", "WHERE", "WHO", "YOUR", "OUR", "MY", "THIS", "THAT", "IS", "ARE", "WAS",
+ "WERE", "BE", "IT", "ITS", "AS", "VS", "VIA", "KILL", "KILLING", "KILLS", "RETIRE",
+ "RETIRING", "AUTOMATED", "BUILDING", "MAKING", "USING", "TURNING",
+})
+
+
+def resolve_ticker_tag(fm: dict, raw_title: str = "", slug: str = "", max_chars: int = 18) -> str:
+ """Resolve a <=18-char 1-2 word uppercase LED ticker topic tag from YAML `ticker_tag` or slug/title."""
+ explicit = str((fm or {}).get("ticker_tag") or "").strip().upper()
+ explicit = re.sub(r"[^A-Z0-9 ./+&:#!?'-]+", " ", explicit)
+ explicit = " ".join(explicit.split())
+ if explicit:
+ return explicit[:max_chars].rstrip()
+ src = (slug or "").split("/")[-1].replace("-", " ") or raw_title
+ toks = [t.upper() for t in re.findall(r"[A-Za-z0-9]+", src) if t.upper() not in _TICKER_STOPWORDS]
+ if not toks:
+ return "STORY-TIME"
+ if len(toks) >= 2 and len(f"{toks[0]} {toks[1]}") <= max_chars:
+ return f"{toks[0]} {toks[1]}"
+ return toks[0][:max_chars]
def _read_frontmatter_dict(filepath: Path) -> dict:
"""Stream YAML frontmatter up to closing `---` without reading the post body."""
@@ -219,6 +242,7 @@ def get_jukebox_catalog(posts_dir: Path | None = None):
_jb_catalog_cache["dir_mtime"] = dir_mtime
return _jb_catalog_cache
keyed = []
+ fm_by_path = {}
for p in dated:
fm = _with_parent_frontmatter(p, _read_frontmatter_dict(p), posts_dir=base)
if not _is_storytime_enabled(fm):
@@ -229,14 +253,28 @@ def get_jukebox_catalog(posts_dir: Path | None = None):
aid = int(raw_aid) if raw_aid.isdigit() and int(raw_aid) > 0 else None
if aid is None or aid in JUKEBOX_RESERVED_IDS:
continue
+ fm_by_path[p] = fm
keyed.append(((p.name[:10], s_ord, p.name), aid, p))
keyed.sort(key=lambda item: item[0])
- paths, id_map, idx_map = [], {}, {}
+ paths, id_map, idx_map, meta_map = [], {}, {}, {}
for _, aid, p in keyed:
if aid not in id_map:
paths.append(p)
id_map[aid] = p
idx_map[p.name] = aid
+ fm_p = fm_by_path.get(p) or {}
+ slug_p = _resolve_canonical_slug(fm_p, p.name)
+ rtitle_p = str(fm_p.get("title") or slug_p.replace("-", " "))
+ meta_map[aid] = {
+ "jukebox_index": aid,
+ "date": p.name[:10],
+ "filename": p.name,
+ "slug": slug_p,
+ "raw_title": rtitle_p,
+ "spoken_title": _apply_tts_pronunciations(rtitle_p),
+ "ticker_tag": resolve_ticker_tag(fm_p, raw_title=rtitle_p, slug=slug_p),
+ "short_url": f"MikeLev.in/{aid}",
+ }
seen_ids = set()
playable_ids = [
aid for _, aid, _ in reversed(keyed)
@@ -248,6 +286,7 @@ def get_jukebox_catalog(posts_dir: Path | None = None):
"paths": paths,
"id_map": id_map,
"index_map": idx_map,
+ "meta_map": meta_map,
"playable_ids": playable_ids,
})
return _jb_catalog_cache
@@ -258,6 +297,14 @@ def get_jukebox_playable_ids(posts_dir: Path | None = None) -> list[int]:
return list(get_jukebox_catalog(posts_dir=posts_dir).get("playable_ids") or [])
+def get_jukebox_menu_entries(limit: int = 12, posts_dir: Path | None = None) -> list[dict]:
+ """Return newest-first O(1)-cached metadata dicts for playable Norma Story-Time episodes."""
+ cat = get_jukebox_catalog(posts_dir=posts_dir)
+ meta_map = cat.get("meta_map") or {}
+ ids = cat.get("playable_ids") or []
+ return [dict(meta_map[aid]) for aid in ids[: max(1, int(limit))] if aid in meta_map]
+
+
def get_article_by_jukebox_index(jb_idx: int):
"""Load a single dated post by its permanent 1-based chronological Jukebox index (1..N)."""
id_map = get_jukebox_catalog().get("id_map") or {}
@@ -283,6 +330,7 @@ def get_article_by_jukebox_index(jb_idx: int):
"slug": slug,
"filename": filepath.name,
"jukebox_index": idx,
+ "ticker_tag": resolve_ticker_tag(fm, raw_title=raw_title, slug=slug),
"raw_title": raw_title,
"date": post_date,
"title": _apply_tts_pronunciations(raw_title),
@@ -557,6 +605,7 @@ def get_playlist(recent_n=10, include_archive=True):
'slug': slug,
'filename': filename,
'jukebox_index': jb_idx,
+ 'ticker_tag': resolve_ticker_tag(frontmatter, raw_title=raw_title, slug=slug),
'raw_title': raw_title,
'date': post_date,
'sort_order': sort_order,
@@ -617,10 +666,11 @@ def get_playlist(recent_n=10, include_archive=True):
if enqueue_media and image_path:
_m.narrator.media({"path": image_path, "duration": 14.0})
jb_s = f"story number {jb_n}, titled: {title}" if jb_n else f"titled: {title}"
+ short_door = f"Mike L E V dot eye N slash {jb_n}" if jb_n else "Mike L E V dot eye N slash latest"
return (
- f"The article currently being read on this broadcast is {jb_s}. "
- "To read the full article text and inspect the raw code receipts at your own pace, "
- "visit Mike L E V dot eye N slash latest."
+ f"The story currently playing in the fishtank is {jb_s}. "
+ "Type any story number on the bottom bar in live chat to switch stories, "
+ f"or inspect the full source at {short_door}."
)
main_mod.resolve_current_article_line = _live_resolve_current_article_line
import importlib
diff --git a/remotes/honeybot/scripts/score.py b/remotes/honeybot/scripts/score.py
index 5ba4ea9..1200a71 100644
--- a/remotes/honeybot/scripts/score.py
+++ b/remotes/honeybot/scripts/score.py
@@ -83,6 +83,7 @@ HERO_IMAGE_DURATION = 8.0
def _append_article_performance(script, article, is_latest=True):
"""Emit symmetrical Opening Overture + Act I + Midpoint Intermission + Act II."""
jb_idx = int(article.get("jukebox_index") or 0)
+ ticker_tag = str(article.get("ticker_tag") or "").strip()
raw_title = str(article.get("raw_title") or article.get("title") or "latest entry")
title_str = str(article.get("title") or raw_title)
jb_tag = f"story number {jb_idx}, " if jb_idx else ""
@@ -91,12 +92,17 @@ def _append_article_performance(script, article, is_latest=True):
if is_latest
else f"Playing {jb_tag}from {article['date']}."
)
- art_id = str(
- article.get("id")
- or article.get("slug")
- or article.get("permalink")
- or f"{article.get('date', '')}:{raw_title}"
- ).strip()
+ tag_seg = f" [{ticker_tag}]" if ticker_tag else ""
+ art_id = (
+ f"#{jb_idx}{tag_seg}: {raw_title} ({article['date']})"
+ if jb_idx
+ else str(
+ article.get("id")
+ or article.get("slug")
+ or article.get("permalink")
+ or f"{article.get('date', '')}:{raw_title}"
+ ).strip()
+ )
card_lbl = f"STORYTIME #{jb_idx}" if jb_idx else "STORYTIME"
script.append((
"CARD",
@@ -110,10 +116,11 @@ def _append_article_performance(script, article, is_latest=True):
"raw_title": raw_title,
"image": str(article.get("image") or "").strip(),
"jukebox_index": jb_idx,
+ "ticker_tag": ticker_tag,
},
},
))
- script.append(("OVERTURE", {"title": title_str, "raw_title": raw_title, "jukebox_index": jb_idx, "article": art_id}))
+ script.append(("OVERTURE", {"title": title_str, "raw_title": raw_title, "jukebox_index": jb_idx, "ticker_tag": ticker_tag, "article": art_id}))
script.append(("BGM", "START"))
script.append(("BUMPER", {"slot": "post_overture"}))
image_path = str(article.get("image") or "").strip()
@@ -130,6 +137,7 @@ def _append_article_performance(script, article, is_latest=True):
script.extend(body_cues[split_idx:])
else:
script.extend(body_cues)
+ short_addr = f"MikeLev.in/{jb_idx}" if jb_idx else "MikeLev.in"
script.append((
"CARD",
{
@@ -137,10 +145,10 @@ def _append_article_performance(script, article, is_latest=True):
"pace": "standard",
"say": (
f"That concludes {article['title']}. "
- "Remember the two addresses: you get the long-form articles and raw book receipts at MikeLev.in, "
+ f"Remember the two addresses: you get the full lab receipts for this story at {short_addr}, "
"and you get the local-first A I-Readiness tools and 911 L L M Optics free at SunPug.io. "
- "Join the Founding 1,000 A I-Readiness Consultants at MikeLev.in/discord, or drop a message in the live chat β "
- "a human operator monitors this observatory and can break in live."
+ "Type any story number or menu in live chat to take control, or join the Founding 1,000 at MikeLev.in/discord β "
+ "a human operator monitors this fishtank and can break in live."
),
},
))
@@ -161,7 +169,7 @@ def get_script(breaking=False, jukebox_index=None):
_append_article_performance(script, jb_art, is_latest=False)
return script
except Exception as e:
- script.append(("SAY", f"Error loading Jukebox entry {jukebox_index}: {e}"))
+ script.append(("SAY", f"Error loading story number {jukebox_index}: {e}"))
if breaking or not ARCHIVE_WALK:
articles = []
(nix) pipulate $ m
π Committing: feat: Implement Jukebox catalog resolution with ticker tag generation
[main 8a22838] feat: Implement Jukebox catalog resolution with ticker tag generation
2 files changed, 74 insertions(+), 16 deletions(-)
(nix) pipulate $ patch
(nix) pipulate $ app
β
DETERMINISTIC PATCH APPLIED: Successfully mutated 'remotes/honeybot/scripts/logs.py'.
π Car meter: 1/5 file(s), 6/12 block(s), 94/220 line(s) (aim <= 120/car)
(nix) pipulate $ d
diff --git a/remotes/honeybot/scripts/logs.py b/remotes/honeybot/scripts/logs.py
index de8390e..4e6385b 100644
--- a/remotes/honeybot/scripts/logs.py
+++ b/remotes/honeybot/scripts/logs.py
@@ -120,16 +120,62 @@ DOOM_FIRE_PALETTE = (
("β", "#ffff00"), # 6: Yellow-hot core (75% block)
("β", "bold #ffffff"), # 7: White-hot ignition (100% block)
)
+TICKER_TOP_PRIORITY = os.environ.get("HONEYBOT_TICKER_PRIORITY", "MIKELEV.IN/DISCORD").strip().upper()
DEFAULT_TICKER_MESSAGE = (
- "LIVE WIRE TELEMETRY | "
- "SEO -> AI-READINESS | "
- "3-HOP MARKDOWN WEB | "
- "INSPECT SUNPUG.IO | "
- "FOUNDING 1000 GUILD | "
- "MIKELEV.IN/DISCORD | "
- "TELL 1 SMART BUILDER | "
- "CHAT SUMMONS MIKE"
+ "CURRENTLY PLAYING | "
+ "MIKELEV.IN/LATEST | "
+ "TYPE: MENU | "
+ "TAKE CONTROL! | "
+ "MIKELEV.IN/DISCORD"
)
+_STAGE_ARTICLE_ID_RE = re.compile(r"^#(\d+)(?:\s*\[([^\]]+)\])?")
+_STAGE_FNAME_RE = re.compile(r"(\d{4}-\d{2}-\d{2}-[A-Za-z0-9._-]+\.(?:md|markdown))")
+
+
+def resolve_active_story_ticker_meta(stage_payload: dict = None) -> tuple:
+ """Resolve O(1) (jb_idx, ticker_tag) from /tmp/honeybot_stage.json or newest Norma abstract."""
+ jb_idx, tag = 0, ""
+ art_str = str((stage_payload or {}).get("article") or "").strip()
+ if art_str:
+ m_id = _STAGE_ARTICLE_ID_RE.match(art_str)
+ if m_id:
+ jb_idx = int(m_id.group(1))
+ tag = (m_id.group(2) or "").strip().upper()
+ try:
+ sdir = str(os.path.dirname(os.path.abspath(__file__)))
+ if sdir not in sys.path:
+ sys.path.insert(0, sdir)
+ import content_loader as _cl
+ cat = _cl.get_jukebox_catalog()
+ meta_map = cat.get("meta_map") or {}
+ if jb_idx == 0 and art_str:
+ m_fn = _STAGE_FNAME_RE.search(art_str)
+ if m_fn:
+ jb_idx = int((cat.get("index_map") or {}).get(m_fn.group(1)) or 0)
+ if jb_idx == 0 and cat.get("playable_ids"):
+ jb_idx = int(cat["playable_ids"][0])
+ if jb_idx > 0 and not tag:
+ tag = str((meta_map.get(jb_idx) or {}).get("ticker_tag") or "").strip().upper()
+ except Exception:
+ pass
+ clean_tag = re.sub(r"[^A-Z0-9 ./+&:#!?'-]+", " ", tag)
+ clean_tag = " ".join(clean_tag.split())[:18].rstrip()
+ return jb_idx, clean_tag
+
+
+def build_jukebox_ticker_message(jb_idx: int = 0, ticker_tag: str = "", top_priority: str = None) -> str:
+ """Build the 5-row LED Story-Control billboard sequence."""
+ idx_int = int(jb_idx or 0)
+ url_card = f"MIKELEV.IN/{idx_int}" if idx_int > 0 else "MIKELEV.IN/LATEST"
+ clean_tag = " ".join(re.sub(r"[^A-Z0-9 ./+&:#!?'-]+", " ", str(ticker_tag or "").upper()).split())[:18].rstrip()
+ prio = TICKER_TOP_PRIORITY if top_priority is None else str(top_priority).strip().upper()
+ cards = ["CURRENTLY PLAYING", url_card]
+ if clean_tag:
+ cards.append(clean_tag)
+ cards.extend(["TYPE: MENU", "TAKE CONTROL!"])
+ if prio:
+ cards.append(prio)
+ return " | ".join(cards)
STAGE_BOX_WIDTH = 14
STAGE_LEFT_CURTAIN_LINES = ("", "Mike-E", "the", "Apprentice", "")
STAGE_RIGHT_CURTAIN_LINES = ("", "Shipmunk", "O'", "Theseus!", "")
@@ -275,7 +321,7 @@ def _classify_card_fire(card_text: str) -> str:
up = (card_text or "").upper()
if any(k in up for k in ("BURN", "FIRE", "ASH")):
return "dramatic"
- if any(k in up for k in ("SUMMON", "CHAT SUMMONS", "MIKE")):
+ if any(k in up for k in ("TAKE CONTROL", "SUMMON", "CHAT SUMMONS", "MIKE")):
if "MIKELEV" not in up:
return "subtle"
return "none"
@@ -956,6 +1002,7 @@ class SonarApp(App):
self.ticker_offset = 0
self.ticker_mtime = None
+ self.ticker_story_sig = None
self.ticker_tick_count = 0
self.ticker_mode = "billboard" # "billboard" (default still+flip) | "scroll" | "small"
self.ticker_raw_text = ""
@@ -987,8 +1034,8 @@ class SonarApp(App):
self.script_mtime = os.stat(__file__).st_mtime
except OSError:
self.script_mtime = None
- self._reload_ticker_source(force=True)
self._sync_stage_from_file()
+ self._reload_ticker_source(force=True)
self.set_interval(0.08, self.tick_marquee)
self.set_interval(1, self.update_countdown)
self.set_interval(5, self.refresh_tables)
@@ -1084,6 +1131,9 @@ class SonarApp(App):
data = _json.load(sf)
self.stage_payload = data
self.stage_mtime_ns = st.st_mtime_ns
+ if not os.path.exists(TICKER_FILE_PATH):
+ if resolve_active_story_ticker_meta(data) != getattr(self, "ticker_story_sig", None):
+ self._reload_ticker_source(force=True)
pair = compute_stage_states_from_payload(self.stage_payload, now=now)
if pair is None:
self.update_hud_tour_focus("")
@@ -1172,9 +1222,11 @@ class SonarApp(App):
st_mtime = os.stat(TICKER_FILE_PATH).st_mtime if os.path.exists(TICKER_FILE_PATH) else -1.0
except OSError:
st_mtime = -1.0
- if not force and st_mtime == self.ticker_mtime:
+ story_sig = resolve_active_story_ticker_meta(getattr(self, "stage_payload", None)) if st_mtime <= 0 else None
+ if not force and st_mtime == self.ticker_mtime and (st_mtime > 0 or story_sig == getattr(self, "ticker_story_sig", None)):
return
self.ticker_mtime = st_mtime
+ self.ticker_story_sig = story_sig
raw = ""
if st_mtime > 0:
try:
@@ -1184,7 +1236,8 @@ class SonarApp(App):
except OSError:
raw = ""
if not raw:
- raw = DEFAULT_TICKER_MESSAGE
+ jb_i, jb_tag = story_sig or resolve_active_story_ticker_meta(getattr(self, "stage_payload", None))
+ raw = build_jukebox_ticker_message(jb_idx=jb_i, ticker_tag=jb_tag)
mode = "billboard"
up = raw.upper()
if up.startswith(("SMALL:", "1ROW:")):
(nix) pipulate $ m
π Committing: chore: Implement ticker meta resolution logic
[main 137959e] chore: Implement ticker meta resolution logic
1 file changed, 65 insertions(+), 12 deletions(-)
(nix) pipulate $ patch
(nix) pipulate $ app
β
DETERMINISTIC PATCH APPLIED: Successfully mutated 'scripts/articles/generate_redirects.py'.
β
DETERMINISTIC PATCH APPLIED: Successfully mutated 'remotes/honeybot/scripts/forest.py'.
π Car meter: 2/5 file(s), 9/12 block(s), 155/220 line(s) (over 120-line aim; prefer separate Car 3a/3b fences)
(nix) pipulate $ d
diff --git a/remotes/honeybot/scripts/forest.py b/remotes/honeybot/scripts/forest.py
index fa9447b..e386eea 100644
--- a/remotes/honeybot/scripts/forest.py
+++ b/remotes/honeybot/scripts/forest.py
@@ -127,6 +127,15 @@ STATION_SEGMENTS = [
# Preserved intact so no Patronus or Rich telemetry piece is ever buried in git history.
# Summon any archived bead live with: `ytapp tiktok`, `ytapp pachinko`, `ytapp pirates`, etc.
ARCHIVED_STATION_BEADS = {
+ "menu": _make_station_bead(
+ "STORY\nMENU",
+ "Here is the live A.I. Fishtank Story-Time menu.",
+ ("WINDOW", f"forest.py:{REPORT_WINDOW_CAP_SECONDS}:menu"),
+ [
+ "{LIVE_REPORT:menu}",
+ "Type any story number from the left column into live chat to take control immediately, or type nine eleven for a live Optics check.",
+ ],
+ ),
"white_rabbit": _make_station_bead(
"911-ZERO &\n911-ONE",
"Follow the White Rabbit from R F C 7231 straight to R F C 9110 and R F C 9111.",
@@ -522,9 +531,39 @@ def _format_bimodal_speech(eligible_html: int, js_horizon_hits: int, js_pct: flo
)
+def _format_menu_speech(total_count: int, entries: list) -> str:
+ picks = [
+ f"story {e['jukebox_index']}, {e.get('spoken_title') or e.get('raw_title') or ''}".strip()
+ for e in (entries or [])[:3]
+ if e.get("jukebox_index")
+ ]
+ if total_count > 0 and picks:
+ word = "story" if total_count == 1 else "stories"
+ return f"There are {total_count} Puppet Theater {word} ready on demand. Recent picks include {'; '.join(picks)}."
+ return "Puppet Theater stories are ready on demand β check the bottom bar for playable story numbers."
+
+
def resolve_dynamic_report_speech(text: str) -> str:
- """Replace {LIVE_REPORT:overview} or {LIVE_REPORT:bimodal} using the chart's own snapshot + 'about' upward rounding."""
+ """Replace {LIVE_REPORT:overview}, {LIVE_REPORT:bimodal}, or {LIVE_REPORT:menu} using chart snapshots."""
s = str(text or "")
+ if "{LIVE_REPORT:" not in s:
+ return s
+ if "{LIVE_REPORT:menu}" in s:
+ snap_m = _read_report_speech_snapshot("menu")
+ if snap_m and snap_m.get("entries") is not None:
+ live_m = _format_menu_speech(int(snap_m.get("total_count") or 0), snap_m.get("entries") or [])
+ else:
+ try:
+ import sys as _m_sys
+ from pathlib import Path as _MPath
+ _m_dir = str(_MPath(__file__).resolve().parent)
+ if _m_dir not in _m_sys.path:
+ _m_sys.path.insert(0, _m_dir)
+ import content_loader as _cl
+ live_m = _format_menu_speech(len(_cl.get_jukebox_playable_ids()), _cl.get_jukebox_menu_entries(limit=3))
+ except Exception:
+ live_m = _format_menu_speech(0, [])
+ s = s.replace("{LIVE_REPORT:menu}", live_m)
if "{LIVE_REPORT:" not in s:
return s
if "{LIVE_REPORT:overview}" in s:
@@ -678,7 +717,7 @@ def _build_station_report_panel(mode="overview", panel_width=None):
from db import db, KNOWN_BOTS
from pathlib import Path
- if mode != "doors":
+ if mode not in ("doors", "menu"):
if not Path(db.db_path).exists():
db.db_path = ":memory:"
db.init_db()
@@ -1096,6 +1135,52 @@ def _build_station_report_panel(mode="overview", panel_width=None):
for d_name, d_tld, d_folder, d_pitch in DOOR_DIAL_ROWS:
domain_str = f"{d_name}.{d_tld}"
tbl.add_row(f"πͺ {domain_str}", d_folder, d_pitch)
+ elif mode == "menu":
+ import sys as _m_sys
+ _m_dir = str(Path(__file__).resolve().parent)
+ if _m_dir not in _m_sys.path:
+ _m_sys.path.insert(0, _m_dir)
+ import content_loader as _cl
+ playable_all = _cl.get_jukebox_playable_ids()
+ entries = _cl.get_jukebox_menu_entries(limit=12)
+ _write_report_speech_snapshot(
+ "menu",
+ {
+ "total_count": len(playable_all),
+ "entries": [
+ {
+ "jukebox_index": e["jukebox_index"],
+ "raw_title": e["raw_title"],
+ "spoken_title": e.get("spoken_title") or e["raw_title"],
+ }
+ for e in entries[:4]
+ ],
+ },
+ )
+ title_str = f"ποΈ A.I. FISHTANK STORY-TIME MENU ({len(playable_all)} PLAYABLE STORIES β TYPE # IN CHAT)"
+ tbl.add_column("Type #", justify="right", style="bold #ffd700", width=8, no_wrap=True)
+ tbl.add_column("Topic Tag", style="bold #38bdf8", width=20, no_wrap=True)
+ tbl.add_column("Puppet-Theater Story Episode", style="bold bright_white", ratio=4, no_wrap=True)
+ tbl.add_column("Full Receipt URL", style="bold #7ee787", width=20, no_wrap=True)
+ tbl.add_row(
+ "911",
+ Text("β‘ 16-LENS OPTICS", style="bold #ffd700"),
+ Text("Run a live 911 LLM Optics wire-truth spectrometer check on stream", style="bold bright_yellow"),
+ "SunPug.io",
+ )
+ tbl.add_section()
+ title_budget = max(32, int((panel_width or 124) - 58))
+ for e in entries:
+ t_raw = str(e.get("raw_title") or "")
+ if len(t_raw) > title_budget:
+ t_raw = t_raw[: title_budget - 1] + "β¦"
+ ep_txt = Text.assemble((t_raw, "bold bright_white"), (f" ({e['date']})", "dim white"))
+ tbl.add_row(
+ str(e["jukebox_index"]),
+ str(e.get("ticker_tag") or "STORY-TIME"),
+ ep_txt,
+ str(e.get("short_url") or f"MikeLev.in/{e['jukebox_index']}"),
+ )
else:
cur.execute(
"""
@@ -1230,7 +1315,7 @@ def ensure_station_report_prerendered(
if target.is_file() and target.stat().st_size > 0:
age = time.time() - target.stat().st_mtime
if age <= float(max_age):
- if safe_mode not in ("overview", "bimodal", "trapdoor") or _read_report_speech_snapshot(safe_mode, max_age=max_age):
+ if safe_mode not in ("overview", "bimodal", "trapdoor", "menu") or _read_report_speech_snapshot(safe_mode, max_age=max_age):
return str(target)
except OSError:
pass
diff --git a/scripts/articles/generate_redirects.py b/scripts/articles/generate_redirects.py
index e0b8812..726f4d8 100644
--- a/scripts/articles/generate_redirects.py
+++ b/scripts/articles/generate_redirects.py
@@ -177,6 +177,40 @@ def enforce_slash(url):
return url + '/'
return url
+def _collect_article_id_redirects(posts_dir, living_tissue, lower_to_actual):
+ """Build deterministic {'/1337': '/futureproof/slug/'} map from stamped posts."""
+ id_redirects = {}
+ if not posts_dir or not posts_dir.is_dir():
+ return id_redirects
+ for md_path in sorted(posts_dir.glob("*.md")):
+ aid = common.read_article_id(md_path)
+ if not aid:
+ continue
+ try:
+ head = md_path.read_text(encoding="utf-8", errors="ignore")[:4096]
+ except OSError:
+ continue
+ if not head.startswith("---"):
+ continue
+ fm_part = head.split("---", 2)[1] if head.count("---") >= 2 else head
+ m_perm = re.search(r"^permalink:\s*(\S+)", fm_part, re.M)
+ if not m_perm:
+ continue
+ raw_p = m_perm.group(1).strip().strip('"').strip("'")
+ if not raw_p:
+ continue
+ if not raw_p.startswith("/"):
+ raw_p = "/" + raw_p
+ canon_target = lower_to_actual.get(enforce_slash(raw_p).lower())
+ if not canon_target:
+ continue
+ short_key = f"/{aid}"
+ if short_key in living_tissue or f"{short_key}/" in living_tissue:
+ continue
+ id_redirects[aid] = canon_target
+ return {f"/{aid}": id_redirects[aid] for aid in sorted(id_redirects)}
+
+
def build_nginx_map(csv_input_path, map_output_path, navgraph_path):
print(f"π οΈ Forging Nginx map from {csv_input_path.name}...")
@@ -224,6 +258,10 @@ def build_nginx_map(csv_input_path, map_output_path, navgraph_path):
safe_map_path_re = re.compile(r"^/[A-Za-z0-9/_.-]+$")
lower_to_actual = {p.lower(): p for p in active_permalinks}
lower_slug_map = {k.lower(): v for k, v in slug_map.items()}
+ article_id_redirects = _collect_article_id_redirects(repo_root / "_posts", living_tissue, lower_to_actual)
+ for id_k in article_id_redirects:
+ living_tissue.add(id_k)
+ living_tissue.add(f"{id_k}/")
valid_mappings = {} # The Deduplication Ledger
# Pass 1: Read, Clean, and Filter the CSV
@@ -359,14 +397,19 @@ def build_nginx_map(csv_input_path, map_output_path, navgraph_path):
with open(map_output_path, 'w', encoding='utf-8') as outfile:
outfile.write("# AI-Generated Semantic Redirects\n")
- # --- HARDCODED SYSTEM REDIRECTS (O(1) exact-match via $redirect_key) ---
+ # --- HARDCODED SYSTEM & ARTICLE-ID SHORTLINK REDIRECTS (O(1) exact-match via $redirect_key) ---
outfile.write(" /feed /feed.xml;\n")
+ for id_key, id_target in article_id_redirects.items():
+ if safe_map_path_re.match(id_key) and safe_map_path_re.match(id_target):
+ outfile.write(f" {id_key} {id_target};\n")
# ----------------------------------
combined_mappings = dict(valid_mappings)
combined_mappings.update(retired_hubs_clean)
- seen_keys = {"/feed"}
+ seen_keys = {"/feed", *article_id_redirects.keys()}
+ if article_id_redirects:
+ print(f"π’ Minted {len(article_id_redirects)} /<article_id> shortlink redirect(s).")
for old_url, new_url in combined_mappings.items():
safe_old_url = re.sub(r'/+', '/', old_url.strip())
if not safe_old_url.startswith('/'):
(nix) pipulate $ m
π Committing: fix(honeybot): Add menu station bead and improve menu speech
[main 170c5b5] fix(honeybot): Add menu station bead and improve menu speech
2 files changed, 133 insertions(+), 5 deletions(-)
(nix) pipulate $ git push
Enumerating objects: 33, done.
Counting objects: 100% (33/33), done.
Delta compression using up to 48 threads
Compressing objects: 100% (19/19), done.
Writing objects: 100% (22/22), 6.88 KiB | 2.29 MiB/s, done.
Total 22 (delta 16), reused 6 (delta 0), pack-reused 0 (from 0)
remote: Resolving deltas: 100% (16/16), completed with 10 local objects.
To github.com:pipulate/pipulate.git
b146d88..170c5b5 main -> main
(nix) pipulate $
Ignition: often βexitβ, βnix developβ. Instructions may vary.
(nix) pipulate $ ytreboot
π Syncing Honeybot scripts to honeybot:~/www/mikelev.in/scripts/...
π Signaling Honeybot stream.py on honeybot for graceful SCHEDULED REBOOT announcement...
signaling stream.py pid=610231 for graceful reboot announcement...
β
Stream watchdog relaunched fresh stream.py (pid=618933 after 5s).
π Started background 'ytwatch' daemon in tmux (polling every 30s).
β’ Watch live stream: ytwatch log (or `ytlog` β press `q` or `Ctrl+b d` to exit)
β’ Check status: ytwatch status
β’ Stop daemon: ytwatch stop
π¬ Started background 'ytbreaks' (`ytapp watch-breaks`) daemon in tmux.
β’ Check Optics watcher: ytbreaks (or `ytapp watch-log` β press `q` to detach)
β’ Stop Optics watcher : ytapp watch-stop
(nix) pipulate $
4: PROMPT:
With Step 3 verified in the straddle receipts and scripts/articles/common.py + scripts/articles/norma_extract.py loaded in raw source, finish Step 4 (Live YouTube Chat MENU Trigger & Auto-Stamped ticker_tag in Norma Plunger) in clean single-story fenced cars (<= 120 lines aimed per car):
- Car 3a (
scripts/articles/common.py) β WireMENUin YouTube Chat tostream.py --bead menu:- Accept
menu(^[!/]?menu$, case-insensitive) inparse_allowlisted_chat_command()->("menu", None). - Dispatch
("menu", None)in_actuate_allowlisted_chat_command()over SSH (python3 ~/www/mikelev.in/scripts/stream.py --bead menu >/dev/null 2>&1) so any viewer who seesTYPE: MENUon the 5-row LED billboard can summon the on-airSTORY MENUreport + spoken picks.
- Accept
- Car 3b (
scripts/articles/norma_extract.py) β Auto-Stampticker_tagin Norma Extraction Prompts:- Update
build_extraction_prompt()so every newly minted 3-Voice Socratic abstract includes a crisp 1β2 word uppercaseticker_tag(<= 18chars) in its YAML frontmatter automatically.
- Update
5: DELIVERABLE:
What does βDONEβ look like?
Thereβs a YouTube viewer but I couldnβt wait to ytreboot the changes. Did I
mention how much I love Alice falling through that? Letβs see if the user
staysβ¦
YES!
Ah ha ha! I love it. I kept them entertained and staying through a server reboot. Now letβs see the Menu. Oh, I see reading the latest entry. And the name of the article and βTYPE: MENUβ. Wow!
Iβll watch a bit before I type Menu but Iβm vibrating with anticipation.
Well I typed menu all lower case and nothing. It was during a report. Iβm not sure if itβs implemented yet. But I witnessed a whole bunch of new stuff. All the new Ticker messaging seems solid. The new Fishtank identity is solid. I did a test visit to https://mikelev.in/1661 which is still a 404 but I figured it would be until after article publishing.
Per-Kind Chat Cooldowns and Live Menu Takeover
Gemini 4 Carbon High: Context verified. (Both # Context 3 straddle receipts are green: TICKER renders CURRENTLY PLAYING | MIKELEV.IN/1661 | AD FEEDS | TYPE: MENU | TAKE CONTROL! | MIKELEV.IN/DISCORD, SCORE_NO_OBS: True, ID_REDIRECTS: 1656 maps /1661 and /911, and MENU_ANSI_OK: True pre-renders the Rich STORY MENU panel and speech.)
TL;DR: Holding a live viewer through a reboot with Falling Aliceβand watching TYPE: MENU light up on the 5-row LED billboardβproves the Fishtank hook works in the wild. Both of your live observations were right on the money: (1) lowercase menu did nothing yet only because common.pyβs allowlist parser hadnβt been wiredβCar 3a lands it now (and ytwatch hot-reloads common.py automatically within 5 seconds, with zero ytreboot needed so your viewer stays uninterrupted), and (2) https://mikelev.in/1661 will stay 404 until preview + publish runs generate_redirects.py and reloads Nginx on Honeybot when you ship this article. Car 3b auto-stamps ticker_tag into every future norma extraction.
Why Both Live Observations Happened (and One UX Trap Prevented)
- Why
menuin Chat Was Silent: Honeybot already hadARCHIVED_STATION_BEADS["menu"]on disk from yourytreboot, andstream.pycan preempt an active report with.live_messageβonlyparse_allowlisted_chat_command()inscripts/articles/common.pywas still waiting on Step 4. Once you runappon Car 3a, the backgroundytwatchtmux daemon detectscommon.pyβsmtimechange within5sandos.execvhot-reloads itself automatically. Note thatytwatchsyncs full chat messages every30s(and processes your own@MikeLevinchat commands before skipping self-notifications), so typingmenuin YouTube chat will popSTORY MENUonto:10.0within0β30s. - Per-Kind Cooldown So
MENU->#IDNever Blocks Itself: Previously, all chat triggers shared a single45s_last_chat_cmd_ts. If a viewer typedmenu, read the table on screen, and typed1660fifteen seconds later, the45sglobal cooldown would have blocked their story pick! Car 3a switches to_last_chat_cmd_by_kindsomenu,jukebox, andopticseach guard their own 45s spam window without blocking a viewer from ordering off the menu they just opened. Also acceptsmenu,MENU,!menu,/menu, and literaltype: menu. - Why
mikelev.in/1661Was Still 404:generate_redirects.pyruns duringpreview(publishizer.py) to write~/repos/trimnoir/_redirects.map, and Honeybotβspost-receivehook reloads Nginx RAM duringpublish. All1,656+/<ID>shortlinks will go live automatically when you publish this article.
1: BEFORE (PROBE β read-only; straddles menu chat parsing + per-kind cooldown in common.py and derive_ticker_tag + ticker_tag: prompt injection in norma_extract.py):
(nix) pipulate $
.venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "scripts/articles")); import common; cases = ["menu", "MENU", "!menu", "type: menu", "911", "1661", "42"]; parsed = [(c, common.parse_allowlisted_chat_command(c)) for c in cases]; dry_m = common._actuate_allowlisted_chat_command(("menu", None), dry_run=True); by_k = getattr(common, "_last_chat_cmd_by_kind", None); print("PARSED_MENU:", parsed); print("ACTUATE_MENU_DRY:", dry_m, "PER_KIND_COOLDOWN:", isinstance(by_k, dict))'
.venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "scripts/articles")); import common, norma_extract as ne; p, _ = common._latest_post_for_target("1", slug_match="#1661"); pkt = ne.build_extraction_prompt(p); tag = ne.derive_ticker_tag({"title": pkt["title"]}, title=pkt["title"], slug=p.stem[11:]) if hasattr(ne, "derive_ticker_tag") else None; print("DERIVED_TAG:", tag, "PROMPT_HAS_TICKER_TAG:", "ticker_tag:" in pkt["prompt"])'
2: AFTER (NEXT CONTEXT β put in context.txt using context or x; echoes both probes and sheds 55.4k-token common.py now that all four steps are complete):
# Context 5: Verify End-to-End Chat 'MENU' & Story-Control Fishtank Readiness
context.txt
! .venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "scripts/articles")); import common; cases = ["menu", "MENU", "!menu", "type: menu", "911", "1661", "42"]; parsed = [(c, common.parse_allowlisted_chat_command(c)) for c in cases]; dry_m = common._actuate_allowlisted_chat_command(("menu", None), dry_run=True); by_k = getattr(common, "_last_chat_cmd_by_kind", None); print("PARSED_MENU:", parsed); print("ACTUATE_MENU_DRY:", dry_m, "PER_KIND_COOLDOWN:", isinstance(by_k, dict))'
! .venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "scripts/articles")); import common, norma_extract as ne; p, _ = common._latest_post_for_target("1", slug_match="#1661"); pkt = ne.build_extraction_prompt(p); tag = ne.derive_ticker_tag({"title": pkt["title"]}, title=pkt["title"], slug=p.stem[11:]) if hasattr(ne, "derive_ticker_tag") else None; print("DERIVED_TAG:", tag, "PROMPT_HAS_TICKER_TAG:", "ticker_tag:" in pkt["prompt"])'
scripts/articles/norma_extract.py
remotes/honeybot/scripts/logs.py
remotes/honeybot/scripts/forest.py
3: CHANGE (PATCHES β two small single-story cars, 46 and 50 replacement lines):
Car 3a β Wire MENU in YouTube Chat to stream.py --bead menu with Per-Kind Cooldown (scripts/articles/common.py):
Target: scripts/articles/common.py
[[[SEARCH]]]
f"π Now playing on A.I. Fishtank Story-Time: \"{title}\" β Type any Story # from the bottom bar in live chat to switch stories, or type 911 for a live Optics check!",
[[[DIVIDER]]]
f"π Now playing on A.I. Fishtank Story-Time: \"{title}\" β Type MENU, any Story # from the bottom bar, or 911 in live chat to take control!",
[[[REPLACE]]]
Target: scripts/articles/common.py
[[[SEARCH]]]
"β’ Take Control from Chat: Type any Story # shown on the bottom bar into live chat to switch stories, or type 911 for a live 16-lens Optics check.",
[[[DIVIDER]]]
"β’ Take Control from Chat: Type MENU to pop up playable episodes, type any Story # to switch stories, or type 911 for a live 16-lens Optics check.",
[[[REPLACE]]]
Target: scripts/articles/common.py
[[[SEARCH]]]
YT_CHAT_CMD_COOLDOWN = int(os.environ.get("PIPULATE_YT_CHAT_COOLDOWN", "45"))
_CHAT_OPTICS_RE = re.compile(r"^[!/]?#?911$", re.IGNORECASE)
_CHAT_STORY_NUM_RE = re.compile(r"^[!/]?(?:(?:story|play|jukebox)\s+)?#?([1-9]\d{0,4})$", re.IGNORECASE)
_last_chat_cmd_ts = 0.0
[[[DIVIDER]]]
YT_CHAT_CMD_COOLDOWN = int(os.environ.get("PIPULATE_YT_CHAT_COOLDOWN", "45"))
_CHAT_OPTICS_RE = re.compile(r"^[!/]?#?911$", re.IGNORECASE)
_CHAT_MENU_RE = re.compile(r"^[!/]?(?:type\s*:?\s*)?menu[!?.\s]*$", re.IGNORECASE)
_CHAT_STORY_NUM_RE = re.compile(r"^[!/]?(?:(?:story|play|jukebox)\s+)?#?([1-9]\d{0,4})$", re.IGNORECASE)
_last_chat_cmd_ts = 0.0
_last_chat_cmd_by_kind: dict[str, float] = {}
[[[REPLACE]]]
Target: scripts/articles/common.py
[[[SEARCH]]]
if _CHAT_OPTICS_RE.match(s):
return ("optics", None)
m_num = _CHAT_STORY_NUM_RE.match(s)
[[[DIVIDER]]]
if _CHAT_OPTICS_RE.match(s):
return ("optics", None)
if _CHAT_MENU_RE.match(s):
return ("menu", None)
m_num = _CHAT_STORY_NUM_RE.match(s)
[[[REPLACE]]]
Target: scripts/articles/common.py
[[[SEARCH]]]
def _actuate_allowlisted_chat_command(parsed_cmd, dry_run: bool = False) -> bool:
"""Dispatch a validated ('optics'|'jukebox', arg) tuple to Honeybot with cooldown guard."""
global _last_chat_cmd_ts
import subprocess
import time
if not parsed_cmd:
return False
kind, arg = parsed_cmd
if kind == "jukebox":
playable = set(_get_playable_story_ids())
if int(arg) == 911 or int(arg) not in playable:
print(f"[{_ytlog_ts()}] β οΈ [CHAT STORY] Story #{int(arg)} is not in playable _abstracts ({sorted(playable, reverse=True)[:8]})", flush=True)
return False
now_ts = time.time()
if not dry_run and _last_chat_cmd_ts > 0 and (now_ts - _last_chat_cmd_ts) < YT_CHAT_CMD_COOLDOWN:
rem = int(YT_CHAT_CMD_COOLDOWN - (now_ts - _last_chat_cmd_ts))
print(f"[{_ytlog_ts()}] π‘οΈ [CHAT TRIGGER COOLDOWN] Holding {kind} ({rem}s remaining)", flush=True)
return False
if kind == "optics":
remote_cmd = "python3 ~/www/mikelev.in/scripts/stream.py --bead optics >/dev/null 2>&1"
elif kind == "jukebox":
jb_json = json.dumps({"index": int(arg), "ts": int(now_ts)})
remote_cmd = (
f"printf '%s\\n' {jb_json!r} > ~/www/mikelev.in/.jukebox_request.tmp && "
"mv ~/www/mikelev.in/.jukebox_request.tmp ~/www/mikelev.in/.jukebox_request"
)
else:
return False
if dry_run:
return True
_last_chat_cmd_ts = now_ts
[[[DIVIDER]]]
def _actuate_allowlisted_chat_command(parsed_cmd, dry_run: bool = False) -> bool:
"""Dispatch a validated ('optics'|'menu'|'jukebox', arg) tuple to Honeybot with per-kind cooldown guard."""
global _last_chat_cmd_ts
import subprocess
import time
if not parsed_cmd:
return False
kind, arg = parsed_cmd
if kind == "jukebox":
playable = set(_get_playable_story_ids())
if int(arg) == 911 or int(arg) not in playable:
print(f"[{_ytlog_ts()}] β οΈ [CHAT STORY] Story #{int(arg)} is not in playable _abstracts ({sorted(playable, reverse=True)[:8]})", flush=True)
return False
now_ts = time.time()
last_kind_ts = float(_last_chat_cmd_by_kind.get(kind) or 0.0)
if not dry_run and last_kind_ts > 0 and (now_ts - last_kind_ts) < YT_CHAT_CMD_COOLDOWN:
rem = int(YT_CHAT_CMD_COOLDOWN - (now_ts - last_kind_ts))
print(f"[{_ytlog_ts()}] π‘οΈ [CHAT TRIGGER COOLDOWN] Holding {kind} ({rem}s remaining)", flush=True)
return False
if kind == "optics":
remote_cmd = "python3 ~/www/mikelev.in/scripts/stream.py --bead optics >/dev/null 2>&1"
elif kind == "menu":
remote_cmd = "python3 ~/www/mikelev.in/scripts/stream.py --bead menu >/dev/null 2>&1"
elif kind == "jukebox":
jb_json = json.dumps({"index": int(arg), "ts": int(now_ts)})
remote_cmd = (
f"printf '%s\\n' {jb_json!r} > ~/www/mikelev.in/.jukebox_request.tmp && "
"mv ~/www/mikelev.in/.jukebox_request.tmp ~/www/mikelev.in/.jukebox_request"
)
else:
return False
if dry_run:
return True
_last_chat_cmd_ts = now_ts
_last_chat_cmd_by_kind[kind] = now_ts
[[[REPLACE]]]
Car 3b β Auto-Suggest & Stamp 1β2 Word Uppercase ticker_tag in Norma Plunger (scripts/articles/norma_extract.py):
Target: scripts/articles/norma_extract.py
[[[SEARCH]]]
_KV_RE = re.compile(r"^([A-Za-z0-9_]+)\s*:\s*(.*?)\s*$")
_RAW_LIQUID_RE = re.compile(r"^\s*\{%\s*(?:raw|endraw)\s*%\}\s*$", re.MULTILINE)
ABSTRACTS_SUBDIR = "_abstracts"
[[[DIVIDER]]]
_KV_RE = re.compile(r"^([A-Za-z0-9_]+)\s*:\s*(.*?)\s*$")
_RAW_LIQUID_RE = re.compile(r"^\s*\{%\s*(?:raw|endraw)\s*%\}\s*$", re.MULTILINE)
ABSTRACTS_SUBDIR = "_abstracts"
_TICKER_STOPWORDS = frozenset({
"THE", "A", "AN", "AND", "OR", "BUT", "FOR", "NOR", "ON", "AT", "TO", "FROM",
"BY", "WITH", "IN", "OF", "INTO", "OVER", "AFTER", "UNDER", "HOW", "WHY", "WHAT",
"WHEN", "WHERE", "WHO", "YOUR", "OUR", "MY", "THIS", "THAT", "IS", "ARE", "WAS",
"WERE", "BE", "IT", "ITS", "AS", "VS", "VIA", "KILL", "KILLING", "KILLS", "RETIRE",
"RETIRING", "AUTOMATED", "BUILDING", "MAKING", "USING", "TURNING",
})
def derive_ticker_tag(meta: dict, title: str = "", slug: str = "", max_chars: int = 18) -> str:
"""Resolve a <=18-char 1-2 word uppercase LED ticker topic tag from frontmatter or slug/title."""
explicit = str((meta or {}).get("ticker_tag") or "").strip().upper()
explicit = " ".join(re.sub(r"[^A-Z0-9 ./+&:#!?'-]+", " ", explicit).split())
if explicit:
return explicit[:max_chars].rstrip()
src = (slug or "").split("/")[-1].replace("-", " ") or title
toks = [t.upper() for t in re.findall(r"[A-Za-z0-9]+", src) if t.upper() not in _TICKER_STOPWORDS]
if not toks:
return "STORY-TIME"
if len(toks) >= 2 and len(f"{toks[0]} {toks[1]}") <= max_chars:
return f"{toks[0]} {toks[1]}"
return toks[0][:max_chars]
[[[REPLACE]]]
Target: scripts/articles/norma_extract.py
[[[SEARCH]]]
_, pillars = score_pillars(title, f"{fm_block}\n{lean_body[:4000]}")
coin_cmd = str(aid) if aid else "<ID>"
canon_url = "https://" + f"mikelev.in{permalink}"
sunpug_cmd = "curl -fsSL https://" + "sunpug.io | less"
[[[DIVIDER]]]
_, pillars = score_pillars(title, f"{fm_block}\n{lean_body[:4000]}")
suggested_tag = derive_ticker_tag(info["meta"], title=title, slug=path.stem[11:])
coin_cmd = str(aid) if aid else "<ID>"
canon_url = "https://" + f"mikelev.in{permalink}"
sunpug_cmd = "curl -fsSL https://" + "sunpug.io | less"
[[[REPLACE]]]
Target: scripts/articles/norma_extract.py
[[[SEARCH]]]
"- Start with YAML frontmatter (`title`, `article_id: " + f"{aid}`, `jukebox_coin: true`, `source_url: {canon_url}`, `layout: post`).\n"
[[[DIVIDER]]]
"- Start with YAML frontmatter (`title`, `article_id: " + f"{aid}`, `ticker_tag: \"{suggested_tag}\"` [or a sharper 1β2 word uppercase topic <=18 chars], `jukebox_coin: true`, `source_url: {canon_url}`, `layout: post`).\n"
[[[REPLACE]]]
Target: scripts/articles/norma_extract.py
[[[SEARCH]]]
f"- Final turn: land the parable's takeaway cleanly (weaving `{sunpug_cmd}` or RFC 9110/9111\n"
f" only when natural), link Lab Receipt #{aid} ({canon_url}), and invite viewers to type `{coin_cmd}` in live chat to play this story.\n\n"
[[[DIVIDER]]]
f"- Final turn: land the parable's takeaway cleanly (weaving `{sunpug_cmd}` or RFC 9110/9111\n"
f" only when natural), link Lab Receipt #{aid} ({canon_url}), and invite viewers to type `{coin_cmd}` (or `MENU`) in live chat to play this story.\n\n"
[[[REPLACE]]]
Target: scripts/articles/norma_extract.py
[[[SEARCH]]]
dest = abstract_path_for_post(path)
dest.parent.mkdir(parents=True, exist_ok=True)
dest.write_text(text.rstrip("\n") + "\n", encoding="utf-8")
aid = common.read_article_id(path)
if aid:
common.stamp_frontmatter_value(dest, common.ARTICLE_ID_KEY, str(aid), preserve_mtime=False)
coin_st = common.stamp_frontmatter_value(path, "jukebox_coin", "true", preserve_mtime=True)
words = len(re.findall(r"\b\w+\b", text))
return {"ok": True, "abstract_path": str(dest), "coin_status": coin_st, "words": words, "article_id": aid}
[[[DIVIDER]]]
dest = abstract_path_for_post(path)
dest.parent.mkdir(parents=True, exist_ok=True)
dest.write_text(text.rstrip("\n") + "\n", encoding="utf-8")
aid = common.read_article_id(path)
if aid:
common.stamp_frontmatter_value(dest, common.ARTICLE_ID_KEY, str(aid), preserve_mtime=False)
dest_meta = _read_header_and_preview(dest)["meta"]
parent_meta = _read_header_and_preview(path)["meta"]
t_tag = derive_ticker_tag(
{**parent_meta, **dest_meta},
title=dest_meta.get("title") or parent_meta.get("title") or "",
slug=path.stem[11:],
)
common.stamp_frontmatter_value(dest, "ticker_tag", f'"{t_tag}"', preserve_mtime=False)
coin_st = common.stamp_frontmatter_value(path, "jukebox_coin", "true", preserve_mtime=True)
words = len(re.findall(r"\b\w+\b", text))
return {"ok": True, "abstract_path": str(dest), "coin_status": coin_st, "words": words, "article_id": aid, "ticker_tag": t_tag}
[[[REPLACE]]]
Target: scripts/articles/norma_extract.py
[[[SEARCH]]]
print(f"π Saved 3-voice Socratic abstract ({res['words']} words) -> {res['abstract_path']} & [{res['coin_status']}] jukebox_coin on #{res['article_id']}!")
[[[DIVIDER]]]
print(f"π Saved 3-voice Socratic abstract ({res['words']} words, ticker_tag={res.get('ticker_tag')!r}) -> {res['abstract_path']} & [{res['coin_status']}] jukebox_coin on #{res['article_id']}!")
[[[REPLACE]]]
Ignition: no ignition required (ytwatch on Prime automatically detects common.pyβs updated mtime within 5 seconds and hot-reloads itself in place without touching Honeybot :10.0; type menu in YouTube chat ~10s after app to watch the STORY MENU pop live!).
4: PROMPT (Use prompt or p to create prompt.md from copy):
Verify the `# Context 5` straddle receipts (`PARSED_MENU`, `ACTUATE_MENU_DRY: True`, `PER_KIND_COOLDOWN: True`, and `PROMPT_HAS_TICKER_TAG: True`) and report any visual/audio polish needed after testing `menu` and bare Story `#`s live on `:10.0`, or close out this ride cleanly so the article can be published (`article` -> `preview` -> `norma next` -> `norma save` -> `publish`, lighting up `mikelev.in/<ID>` shortlinks on Nginx).
5: DELIVERABLE (What done looks like):
- Typing
menu(MENU,!menu,type: menu) in YouTube Live Chat triggersstream.py --bead menuon Honeybot:10.0(auto-adopted byytwatchwithin 5s ofapp, with zeroytrebootneeded), popping the RichSTORY MENUoverlay + spoken picks while keeping story-number selection unlocked via per-kind cooldown. norma(norma_extract.py) prompts for and guarantees a sanitized<= 18-char uppercaseticker_tag:in YAML frontmatter on every newly saved Puppet Theater story. No external manual-paste deliverables required.
MikeLev.in:
THE AI-EDIT METHOD
Same commands, run twice, one change between them. Where the readings differ is what the change did; the diff in the middle is the receipt.
1: BEFORE (PROBE):
On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean
GIT repo clean. Take BEFORE reading, make CHANGE, record AFTER diff.
(nix) pipulate $ .venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "scripts/articles")); import common; cases = ["menu", "MENU", "!menu", "type: menu", "911", "1661", "42"]; parsed = [(c, common.parse_allowlisted_chat_command(c)) for c in cases]; dry_m = common._actuate_allowlisted_chat_command(("menu", None), dry_run=True); by_k = getattr(common, "_last_chat_cmd_by_kind", None); print("PARSED_MENU:", parsed); print("ACTUATE_MENU_DRY:", dry_m, "PER_KIND_COOLDOWN:", isinstance(by_k, dict))'
.venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "scripts/articles")); import common, norma_extract as ne; p, _ = common._latest_post_for_target("1", slug_match="#1661"); pkt = ne.build_extraction_prompt(p); tag = ne.derive_ticker_tag({"title": pkt["title"]}, title=pkt["title"], slug=p.stem[11:]) if hasattr(ne, "derive_ticker_tag") else None; print("DERIVED_TAG:", tag, "PROMPT_HAS_TICKER_TAG:", "ticker_tag:" in pkt["prompt"])'
PARSED_MENU: [('menu', None), ('MENU', None), ('!menu', None), ('type: menu', None), ('911', ('optics', None)), ('1661', ('jukebox', 1661)), ('42', None)]
ACTUATE_MENU_DRY: False PER_KIND_COOLDOWN: False
DERIVED_TAG: None PROMPT_HAS_TICKER_TAG: False
(nix) pipulate $
2: AFTER (NEXT CONTEXT):
# # Context 1: Step 1 Bare-Number Jukebox & terms.py
# context.txt
# ! eza -1 remotes/honeybot/scripts
# ! rg -n 'jukebox|ytwatch|\brabbit\b' flake.nix scripts remotes/honeybot/scripts
# ! .venv/bin/python -c 'import pathlib, re; base = pathlib.Path("/home/mike/repos/trimnoir/_posts"); abs_files = sorted((base / "_abstracts").glob("*.md")) if (base / "_abstracts").is_dir() else []; p911 = [p.name for p in base.glob("*.md") if re.search(r"(?m)^article_id:\s*[\x27\x22]?911\b", p.read_text(errors="ignore")[:2048])]; print("abstracts:", len(abs_files), [f.name for f in abs_files[:5]], "id_911:", p911)'
#
# flake.nix
# scripts/chat_route_probe.py
# remotes/honeybot/scripts/terms.py
# remotes/honeybot/scripts/content_loader.py
# remotes/honeybot/scripts/score.py
# remotes/honeybot/scripts/logs.py
# scripts/articles/norma_extract.py
# deleteme.txt
# # Context 2: Bare-Number Chat Parser in ytwatch (common.py) & Stream Fishtank Sweep
# context.txt
# ! .venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "remotes/honeybot/scripts")); import terms, content_loader as cl; sample = "A.I. FISHTANK STORY-TIME for CMOs & CTOs in the c-suite, Reschke, Yutes, Mike-E, Weebo, NetOps, 911 in chat, mikelev.in/1337"; ids = cl.get_jukebox_playable_ids() if hasattr(cl, "get_jukebox_playable_ids") else None; lg = (REPO_ROOT / "remotes/honeybot/scripts/logs.py").read_text(); sc = (REPO_ROOT / "remotes/honeybot/scripts/score.py").read_text(); print("TTS:", terms.apply_inline_tts_terms(sample)); print("PLAYABLE_IDS:", ids); print("LOGS_FISHTANK:", "A.I. FISHTANK STORY-TIME" in lg, "LOGS_NO_RABBIT:", "rabbit" not in lg); print("SCORE_FISHTANK:", "A.I. FISHTANK" in sc)'
# ! .venv/bin/python scripts/pyprobe.py 'rc, out = capture_call(["rg", "-n", "-i", "observatory|fishtank|_CHAT_OPTICS_RE|_CHAT_RABBIT_RE|_CHAT_JUKEBOX_RE", "remotes/honeybot/scripts", "scripts"]); print(out[:3500])'
# scripts/articles/common.py
# remotes/honeybot/scripts/stream.py
# remotes/honeybot/scripts/forest.py
# # Context 2b: Fix F821 Per-Block Airlock in common.py & Complete Stream Fishtank Sweep
# context.txt
# ! .venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "scripts/articles")); import common; cases = ["911", "#911", "rabbit", "!rabbit", "1661", "#1661", "42", "jukebox 1660"]; parsed = [(c, common.parse_allowlisted_chat_command(c)) for c in cases]; vp = common._build_viewer_payload(2, video_id="vid", peak=4); print("PARSED:", parsed); print("VIEWER_JB_IDS:", vp.get("jukebox_ids"))'
# ! rg -n "_CHAT_RABBIT_RE|Jukebox request received|Web Bot A I Observatory|Web Bot AI Observatory|Scheduled observatory" scripts/articles/common.py remotes/honeybot/scripts/stream.py remotes/honeybot/scripts/forest.py remotes/honeybot/scripts/score.py || true
# scripts/articles/common.py
# remotes/honeybot/scripts/stream.py
# remotes/honeybot/scripts/forest.py
# # Context 3: Story-Control LED Ticker, mikelev.in/<ID> Short URLs, & Story Menu Report
# context.txt
# ! .venv/bin/python scripts/pyprobe.py 'import apply; f_body = "OLD = 1\ndef f():\n return OLD\n"; d = tempfile.mkdtemp(); tf = Path(d) / "t.py"; tf.write_text(f_body); p = f"Target: {tf}\n{SEARCH_MARK}\nOLD = 1\n{DIVIDER_MARK}\nNEW = 2\n{REPLACE_MARK}\nTarget: {tf}\n{SEARCH_MARK}\n return OLD\n{DIVIDER_MARK}\n return NEW\n{REPLACE_MARK}\n"; ok = apply.apply_search_replace_patch(p); shutil.rmtree(d, ignore_errors=True); print("MULTI_BLOCK_RENAME_OK:", ok)'
# ! .venv/bin/python -m unittest tests/test_apply_airlock.py
# ! .venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "scripts/articles")); import common; cases = ["911", "#911", "rabbit", "!rabbit", "1661", "#1661", "42", "jukebox 1660"]; parsed = [(c, common.parse_allowlisted_chat_command(c)) for c in cases]; vp = common._build_viewer_payload(2, video_id="vid", peak=4); print("PARSED:", parsed); print("VIEWER_JB_IDS:", vp.get("jukebox_ids"))'
# ! rg -n "_CHAT_RABBIT_RE|Jukebox request received|Web Bot A I Observatory|Web Bot AI Observatory|Scheduled observatory" scripts/articles/common.py remotes/honeybot/scripts/stream.py remotes/honeybot/scripts/forest.py remotes/honeybot/scripts/score.py || true
# remotes/honeybot/scripts/logs.py
# remotes/honeybot/scripts/score.py
# remotes/honeybot/scripts/content_loader.py
# remotes/honeybot/scripts/forest.py
# scripts/articles/generate_redirects.py
# # Context 4: Wire Chat 'MENU' Trigger in ytwatch (common.py) & Auto-Stamp ticker_tag in norma_extract.py
# context.txt
# ! .venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "remotes/honeybot/scripts")); import content_loader as cl, logs, score; entries = cl.get_jukebox_menu_entries(limit=3) if hasattr(cl, "get_jukebox_menu_entries") else None; e0 = (entries or [{}])[0]; tk = logs.build_jukebox_ticker_message(e0.get("jukebox_index", 1337), e0.get("ticker_tag", "RFC 9110")) if hasattr(logs, "build_jukebox_ticker_message") else logs.DEFAULT_TICKER_MESSAGE; sc_txt = (REPO_ROOT / "remotes/honeybot/scripts/score.py").read_text(); print("MENU_TOP3:", [(x["jukebox_index"], x["ticker_tag"], x["short_url"]) for x in (entries or [])]); print("TICKER:", tk); print("SCORE_NO_OBS:", "observatory" not in sc_txt.lower())'
# ! .venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "scripts/articles")); sys.path.insert(0, str(REPO_ROOT / "remotes/honeybot/scripts")); import generate_redirects as gr, forest; pdir = Path.home() / "repos/trimnoir/_posts"; _, active, _, _, _ = gr.get_navgraph_sets(pdir.parent / "navgraph.json", posts_dir=pdir, pages_dir=pdir.parent / "pages"); lmap = {p.lower(): p for p in active}; id_map = gr._collect_article_id_redirects(pdir, set(), lmap) if hasattr(gr, "_collect_article_id_redirects") else {}; ansi = forest.prerender_station_report_ansi("menu", out_path="/tmp/test_hb_menu.ansi") if "menu" in getattr(forest, "ARCHIVED_STATION_BEADS", {}) else ""; has_1661 = bool(ansi and "1661" in Path(ansi).read_text()); Path("/tmp/test_hb_menu.ansi").unlink(missing_ok=True); sp_txt = forest.resolve_dynamic_report_speech("{LIVE_REPORT:menu}"); print("ID_REDIRECTS:", len(id_map), id_map.get("/1661"), id_map.get("/911")); print("MENU_ANSI_OK:", has_1661, "SPEECH:", sp_txt[:140])'
# scripts/articles/common.py
# scripts/articles/norma_extract.py
# Context 5: Verify End-to-End Chat 'MENU' & Story-Control Fishtank Readiness
context.txt
! .venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "scripts/articles")); import common; cases = ["menu", "MENU", "!menu", "type: menu", "911", "1661", "42"]; parsed = [(c, common.parse_allowlisted_chat_command(c)) for c in cases]; dry_m = common._actuate_allowlisted_chat_command(("menu", None), dry_run=True); by_k = getattr(common, "_last_chat_cmd_by_kind", None); print("PARSED_MENU:", parsed); print("ACTUATE_MENU_DRY:", dry_m, "PER_KIND_COOLDOWN:", isinstance(by_k, dict))'
! .venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "scripts/articles")); import common, norma_extract as ne; p, _ = common._latest_post_for_target("1", slug_match="#1661"); pkt = ne.build_extraction_prompt(p); tag = ne.derive_ticker_tag({"title": pkt["title"]}, title=pkt["title"], slug=p.stem[11:]) if hasattr(ne, "derive_ticker_tag") else None; print("DERIVED_TAG:", tag, "PROMPT_HAS_TICKER_TAG:", "ticker_tag:" in pkt["prompt"])'
scripts/articles/norma_extract.py
remotes/honeybot/scripts/logs.py
remotes/honeybot/scripts/forest.py
3: CHANGE (PATCHES):
On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean
GIT repo clean. Take BEFORE reading, make CHANGE, record AFTER diff.
(nix) pipulate $ patch
(nix) pipulate $ app
β
DETERMINISTIC PATCH APPLIED: Successfully mutated 'scripts/articles/common.py'.
π Car meter: 1/5 file(s), 5/12 block(s), 48/220 line(s) (aim <= 120/car)
(nix) pipulate $ d
diff --git a/scripts/articles/common.py b/scripts/articles/common.py
index 8f33538..d64780a 100644
--- a/scripts/articles/common.py
+++ b/scripts/articles/common.py
@@ -633,7 +633,7 @@ def get_broadcast_kit(target_key="1", slug_match=None):
f"π Enterprise AI-Readiness & Edge Telemetry (RFC 9110 / ADNS / O2O): {base_url}/?src=youtube#consulting | Inspect workshop: curl -fsSL https://sunpug.io | less (Email: {CONTACT_EMAIL})",
f"π§ͺ Test RFC 9110 in your terminal: curl -sI -H \"Accept: text/markdown\" {canonical_url}?src=rfc9110",
"",
- f"π Now playing on A.I. Fishtank Story-Time: \"{title}\" β Type any Story # from the bottom bar in live chat to switch stories, or type 911 for a live Optics check!",
+ f"π Now playing on A.I. Fishtank Story-Time: \"{title}\" β Type MENU, any Story # from the bottom bar, or 911 in live chat to take control!",
]
if meta_desc:
desc_parts.extend(["", meta_desc])
@@ -646,7 +646,7 @@ def get_broadcast_kit(target_key="1", slug_match=None):
"---",
"π About A.I. Fishtank Story-Time (24/7 Interactive NixOS Broadcast):",
"You are watching live Nginx origin wire traffic and AI crawler behavior while 3-voice Story-Time plays.",
- "β’ Take Control from Chat: Type any Story # shown on the bottom bar into live chat to switch stories, or type 911 for a live 16-lens Optics check.",
+ "β’ Take Control from Chat: Type MENU to pop up playable episodes, type any Story # to switch stories, or type 911 for a live 16-lens Optics check.",
"β’ Agents sending 'Accept: text/markdown' (RFC 9110) receive clean raw Markdown.",
"β’ Agents executing JavaScript trigger the DOM trapdoor sensor.",
"β’ Zero-Agent Airlock: Deterministic NixOS + Piper TTS player piano (chat reaches a human, never an LLM shell).",
@@ -2010,8 +2010,10 @@ _YTWATCH_RESERVED_ACTIONS = {
YT_CHAT_CMD_COOLDOWN = int(os.environ.get("PIPULATE_YT_CHAT_COOLDOWN", "45"))
_CHAT_OPTICS_RE = re.compile(r"^[!/]?#?911$", re.IGNORECASE)
+_CHAT_MENU_RE = re.compile(r"^[!/]?(?:type\s*:?\s*)?menu[!?.\s]*$", re.IGNORECASE)
_CHAT_STORY_NUM_RE = re.compile(r"^[!/]?(?:(?:story|play|jukebox)\s+)?#?([1-9]\d{0,4})$", re.IGNORECASE)
_last_chat_cmd_ts = 0.0
+_last_chat_cmd_by_kind: dict[str, float] = {}
def parse_allowlisted_chat_command(raw_text: str, playable_ids=None):
@@ -2021,6 +2023,8 @@ def parse_allowlisted_chat_command(raw_text: str, playable_ids=None):
return None
if _CHAT_OPTICS_RE.match(s):
return ("optics", None)
+ if _CHAT_MENU_RE.match(s):
+ return ("menu", None)
m_num = _CHAT_STORY_NUM_RE.match(s)
if m_num:
story_id = int(m_num.group(1))
@@ -2033,7 +2037,7 @@ def parse_allowlisted_chat_command(raw_text: str, playable_ids=None):
def _actuate_allowlisted_chat_command(parsed_cmd, dry_run: bool = False) -> bool:
- """Dispatch a validated ('optics'|'jukebox', arg) tuple to Honeybot with cooldown guard."""
+ """Dispatch a validated ('optics'|'menu'|'jukebox', arg) tuple to Honeybot with per-kind cooldown guard."""
global _last_chat_cmd_ts
import subprocess
import time
@@ -2046,12 +2050,15 @@ def _actuate_allowlisted_chat_command(parsed_cmd, dry_run: bool = False) -> bool
print(f"[{_ytlog_ts()}] β οΈ [CHAT STORY] Story #{int(arg)} is not in playable _abstracts ({sorted(playable, reverse=True)[:8]})", flush=True)
return False
now_ts = time.time()
- if not dry_run and _last_chat_cmd_ts > 0 and (now_ts - _last_chat_cmd_ts) < YT_CHAT_CMD_COOLDOWN:
- rem = int(YT_CHAT_CMD_COOLDOWN - (now_ts - _last_chat_cmd_ts))
+ last_kind_ts = float(_last_chat_cmd_by_kind.get(kind) or 0.0)
+ if not dry_run and last_kind_ts > 0 and (now_ts - last_kind_ts) < YT_CHAT_CMD_COOLDOWN:
+ rem = int(YT_CHAT_CMD_COOLDOWN - (now_ts - last_kind_ts))
print(f"[{_ytlog_ts()}] π‘οΈ [CHAT TRIGGER COOLDOWN] Holding {kind} ({rem}s remaining)", flush=True)
return False
if kind == "optics":
remote_cmd = "python3 ~/www/mikelev.in/scripts/stream.py --bead optics >/dev/null 2>&1"
+ elif kind == "menu":
+ remote_cmd = "python3 ~/www/mikelev.in/scripts/stream.py --bead menu >/dev/null 2>&1"
elif kind == "jukebox":
jb_json = json.dumps({"index": int(arg), "ts": int(now_ts)})
remote_cmd = (
@@ -2063,6 +2070,7 @@ def _actuate_allowlisted_chat_command(parsed_cmd, dry_run: bool = False) -> bool
if dry_run:
return True
_last_chat_cmd_ts = now_ts
+ _last_chat_cmd_by_kind[kind] = now_ts
if kind == "optics":
ytstage_p = Path(__file__).resolve().parents[1] / "ytstage.py"
if ytstage_p.is_file():
(nix) pipulate $ m
π Committing: chore: Update Story-Time chat message for better clarity
[main 6239fb1] chore: Update Story-Time chat message for better clarity
1 file changed, 13 insertions(+), 5 deletions(-)
(nix) pipulate $ patch
(nix) pipulate $ app
β
DETERMINISTIC PATCH APPLIED: Successfully mutated 'scripts/articles/norma_extract.py'.
π Car meter: 1/5 file(s), 6/12 block(s), 51/220 line(s) (aim <= 120/car)
(nix) pipulate $ d
diff --git a/scripts/articles/norma_extract.py b/scripts/articles/norma_extract.py
index 0867592..cc8b311 100644
--- a/scripts/articles/norma_extract.py
+++ b/scripts/articles/norma_extract.py
@@ -64,6 +64,28 @@ PILLAR_TERMS = {
_KV_RE = re.compile(r"^([A-Za-z0-9_]+)\s*:\s*(.*?)\s*$")
_RAW_LIQUID_RE = re.compile(r"^\s*\{%\s*(?:raw|endraw)\s*%\}\s*$", re.MULTILINE)
ABSTRACTS_SUBDIR = "_abstracts"
+_TICKER_STOPWORDS = frozenset({
+ "THE", "A", "AN", "AND", "OR", "BUT", "FOR", "NOR", "ON", "AT", "TO", "FROM",
+ "BY", "WITH", "IN", "OF", "INTO", "OVER", "AFTER", "UNDER", "HOW", "WHY", "WHAT",
+ "WHEN", "WHERE", "WHO", "YOUR", "OUR", "MY", "THIS", "THAT", "IS", "ARE", "WAS",
+ "WERE", "BE", "IT", "ITS", "AS", "VS", "VIA", "KILL", "KILLING", "KILLS", "RETIRE",
+ "RETIRING", "AUTOMATED", "BUILDING", "MAKING", "USING", "TURNING",
+})
+
+
+def derive_ticker_tag(meta: dict, title: str = "", slug: str = "", max_chars: int = 18) -> str:
+ """Resolve a <=18-char 1-2 word uppercase LED ticker topic tag from frontmatter or slug/title."""
+ explicit = str((meta or {}).get("ticker_tag") or "").strip().upper()
+ explicit = " ".join(re.sub(r"[^A-Z0-9 ./+&:#!?'-]+", " ", explicit).split())
+ if explicit:
+ return explicit[:max_chars].rstrip()
+ src = (slug or "").split("/")[-1].replace("-", " ") or title
+ toks = [t.upper() for t in re.findall(r"[A-Za-z0-9]+", src) if t.upper() not in _TICKER_STOPWORDS]
+ if not toks:
+ return "STORY-TIME"
+ if len(toks) >= 2 and len(f"{toks[0]} {toks[1]}") <= max_chars:
+ return f"{toks[0]} {toks[1]}"
+ return toks[0][:max_chars]
def abstract_path_for_post(md_path: Path) -> Path:
@@ -197,6 +219,7 @@ def build_extraction_prompt(md_path: Path) -> dict:
clean_body = _RAW_LIQUID_RE.sub("", body).strip()
lean_body, fences_stripped = articleizer.strip_fences(clean_body)
_, pillars = score_pillars(title, f"{fm_block}\n{lean_body[:4000]}")
+ suggested_tag = derive_ticker_tag(info["meta"], title=title, slug=path.stem[11:])
coin_cmd = str(aid) if aid else "<ID>"
canon_url = "https://" + f"mikelev.in{permalink}"
sunpug_cmd = "curl -fsSL https://" + "sunpug.io | less"
@@ -223,7 +246,7 @@ def build_extraction_prompt(md_path: Path) -> dict:
"3-VOICE PUPPET-THEATER MARKDOWN CONTRACT (ENCLOSE ENTIRE REPLY IN ONE [triple-backtick]markdown FENCE):\n"
f"- Total spoken length: strictly {STORYTIME_MIN_WORDS}β{STORYTIME_MAX_WORDS} words (~6β8 min between 20-min breaks).\n"
"- Zero fenced code blocks and zero unexplained internal repo filenames inside the story.\n"
- "- Start with YAML frontmatter (`title`, `article_id: " + f"{aid}`, `jukebox_coin: true`, `source_url: {canon_url}`, `layout: post`).\n"
+ "- Start with YAML frontmatter (`title`, `article_id: " + f"{aid}`, `ticker_tag: \"{suggested_tag}\"` [or a sharper 1β2 word uppercase topic <=18 chars], `jukebox_coin: true`, `source_url: {canon_url}`, `layout: post`).\n"
"- Prologue (`## Setting the Stage: Context for the Curious Book Reader`): 1β2 short paragraphs\n"
" spoken by NORMA CENTROID (16,000 Hz narrator) framing the everyday human stakes.\n"
"- Body (`## Technical Journal Entry Begins` + 3β4 `## ` Act Headings also read by NORMA CENTROID):\n"
@@ -235,7 +258,7 @@ def build_extraction_prompt(md_path: Path) -> dict:
" andβunder a Below-the-Fold headingβthe pre-registered Kuhnian Gatekeeper Trapdoor naming\n"
" the predictable knee-jerk dismissal and its plain-spoken refutation).\n"
f"- Final turn: land the parable's takeaway cleanly (weaving `{sunpug_cmd}` or RFC 9110/9111\n"
- f" only when natural), link Lab Receipt #{aid} ({canon_url}), and invite viewers to type `{coin_cmd}` in live chat to play this story.\n\n"
+ f" only when natural), link Lab Receipt #{aid} ({canon_url}), and invite viewers to type `{coin_cmd}` (or `MENU`) in live chat to play this story.\n\n"
"--- SOURCE ARTICLE (CODE FENCES CONDENSED) ---\n"
f"{lean_body}\n"
"--- END SOURCE ARTICLE ---\n"
@@ -274,9 +297,17 @@ def save_abstract_for_post(md_path: Path, raw_text: str) -> dict:
aid = common.read_article_id(path)
if aid:
common.stamp_frontmatter_value(dest, common.ARTICLE_ID_KEY, str(aid), preserve_mtime=False)
+ dest_meta = _read_header_and_preview(dest)["meta"]
+ parent_meta = _read_header_and_preview(path)["meta"]
+ t_tag = derive_ticker_tag(
+ {**parent_meta, **dest_meta},
+ title=dest_meta.get("title") or parent_meta.get("title") or "",
+ slug=path.stem[11:],
+ )
+ common.stamp_frontmatter_value(dest, "ticker_tag", f'"{t_tag}"', preserve_mtime=False)
coin_st = common.stamp_frontmatter_value(path, "jukebox_coin", "true", preserve_mtime=True)
words = len(re.findall(r"\b\w+\b", text))
- return {"ok": True, "abstract_path": str(dest), "coin_status": coin_st, "words": words, "article_id": aid}
+ return {"ok": True, "abstract_path": str(dest), "coin_status": coin_st, "words": words, "article_id": aid, "ticker_tag": t_tag}
def main(argv: list[str] | None = None) -> int:
@@ -322,7 +353,7 @@ def main(argv: list[str] | None = None) -> int:
if not res["ok"]:
print(f"β Refused abstract for {post_p.name}: {res['error']}")
return 1
- print(f"π Saved 3-voice Socratic abstract ({res['words']} words) -> {res['abstract_path']} & [{res['coin_status']}] jukebox_coin on #{res['article_id']}!")
+ print(f"π Saved 3-voice Socratic abstract ({res['words']} words, ticker_tag={res.get('ticker_tag')!r}) -> {res['abstract_path']} & [{res['coin_status']}] jukebox_coin on #{res['article_id']}!")
nxt = rank_candidates(posts_dir, limit=1, pillars_only=args.pillars)
if nxt:
print(f"βοΈ Next un-minted in queue: #{nxt[0]['article_id']} ({nxt[0]['date']}) β {nxt[0]['title']}")
(nix) pipulate $ m
π Committing: chore: Extract ticker_tag derivation
[main 89d0dd9] chore: Extract ticker_tag derivation
1 file changed, 35 insertions(+), 4 deletions(-)
(nix) pipulate $ git push
Enumerating objects: 15, done.
Counting objects: 100% (15/15), done.
Delta compression using up to 48 threads
Compressing objects: 100% (10/10), done.
Writing objects: 100% (10/10), 2.15 KiB | 2.15 MiB/s, done.
Total 10 (delta 8), reused 0 (delta 0), pack-reused 0 (from 0)
remote: Resolving deltas: 100% (8/8), completed with 5 local objects.
To github.com:pipulate/pipulate.git
170c5b5..89d0dd9 main -> main
(nix) pipulate $
Ignition: often βexitβ, βnix developβ. Instructions may vary.
This is one of the stranger βno ignition requiredβ Iβve had. Itβs still weird how Pipulate Prime controls these features on Honeybot. Letβs do it.
Hot-Reloading Live Chat Controls on Air
Wow! This is witnessed.
[2026-11-19 23:52:40] π 1 watching (peak 1) Β· π¬ 1 Β· π£ 11/1000
[2026-11-19 23:53:12] π 1 watching (peak 1) Β· π¬ 1 Β· π£ 11/1000
[2026-11-19 23:53:27] π [HOT-RELOAD] common.py updated on disk β re-execing ytwatch daemon...
[2026-11-19 23:53:29] π‘ YouTube Watch: LIVE=yes | video=14XIpiWlMaI | viewers=1 (api=1, html=1; tts>=2 for 60s, clear<=1, viewer_ntfy=off) | chat_items=1 | discord=11/1000 (online=1) | daemon=RUNNING | title='LIVE: Why Ad-Driven Feeds Kill Every URL Too Long to Say Aloud'
[2026-11-19 23:53:29] π Watching https://www.youtube.com/@MikeLevin/live (fast InnerTube pulse every 5s, full HTML+chat sync every 30s, dwell=60s, clear_max=1, viewer_ntfy=off)...
[2026-11-19 23:53:29] π‘ [HOW TO EXIT TMUX WITHOUT STOPPING]: Press 'q' OR press Ctrl+b, release, then press d
[2026-11-19 23:54:01] π 1 watching (peak 1) Β· π¬ 1 Β· π£ 11/1000
[2026-11-19 23:54:33] π 1 watching (peak 1) Β· π¬ 1 Β· π£ 11/1000
[2026-11-19 23:55:05] π 1 watching (peak 1) Β· π¬ 1 Β· π£ 11/1000
[2026-11-19 23:55:36] π 1 watching (peak 1) Β· π¬ 1 Β· π£ 11/1000
[2026-11-19 23:56:08] π 1 watching (peak 1) Β· π¬ 1 Β· π£ 11/1000
[2026-11-19 23:56:39] π 1 watching (peak 1) Β· π¬ 2 Β· π£ 11/1000
[2026-11-19 23:56:39] ποΈ [CHAT TRIGGER] Actuated allowlisted command: menu
[2026-11-19 23:57:11] π 1 watching (peak 1) Β· π¬ 2 Β· π£ 11/1000
[2026-11-19 23:57:43] π 1 watching (peak 1) Β· π¬ 2 Β· π£ 11/1000
π YTWATCH LIVE (π 1 (Peak: 1)) 0:bash*
EXIT (KEEP RUNNING): Press q OR Ctrl+b then d
Stunning! Let me try one 1656
I see it picked up through ytlog. Thatβs cool that I can watch that in
ytlog. Yep! It switched!
[2026-11-19 23:58:14] π 1 watching (peak 1) Β· π¬ 2 Β· π£ 11/1000
[2026-11-19 23:58:46] π 1 watching (peak 1) Β· π¬ 3 Β· π£ 11/1000
[2026-11-19 23:58:46] ποΈ [CHAT TRIGGER] Actuated allowlisted command: menu
[2026-11-19 23:59:17] π 1 watching (peak 1) Β· π¬ 3 Β· π£ 11/1000
[2026-11-19 23:59:49] π 1 watching (peak 1) Β· π¬ 3 Β· π£ 11/1000
[2026-11-20 00:00:20] π 1 watching (peak 1) Β· π¬ 3 Β· π£ 11/1000
[2026-11-20 00:00:52] π 1 watching (peak 1) Β· π¬ 4 Β· π£ 11/1000
[2026-11-20 00:00:52] ποΈ [CHAT TRIGGER] Actuated allowlisted command: jukebox 1656
[2026-11-20 00:01:24] π 1 watching (peak 1) Β· π¬ 4 Β· π£ 11/1000
[2026-11-20 00:01:24] π [NEW ARTICLE] Honeybot article=#1656 [AI AGENTS]: AI Coding Agents Corrupt Your Repo Without Atomic Gates (2026-11-17) β reset session peak -> 1
[2026-11-20 00:01:55] π 1 watching (peak 1) Β· π¬ 4 Β· π£ 11/1000
π YTWATCH LIVE (π 1 (Peak: 1)) 0:bash* EXIT (KEEP RUNNING): Press q OR Ctrl+b then d
Nice! Will it go back to the original article? I donβt want it to get stuck in a loop on the menu selections. It should after one read always go back to the original story because thatβs what the live-stream is named.
4: PROMPT:
Verify the # Context 5 straddle receipts (PARSED_MENU, ACTUATE_MENU_DRY: True, PER_KIND_COOLDOWN: True, and PROMPT_HAS_TICKER_TAG: True) and report any visual/audio polish needed after testing menu and bare Story #s live on :10.0, or close out this ride cleanly so the article can be published (article -> preview -> norma next -> norma save -> publish, lighting up mikelev.in/<ID> shortlinks on Nginx).
5: DELIVERABLE:
What does βDONEβ look like?
This is stunning. Iβll wait for it to get through itβs current read to see what happens but I canβt wait for submitting this. Thatβs how Iβll do 2 things at once.
Gemini 4 Carbon High: Context verified.
TL;DR: All # Context 5 straddle receiptsβand your live ytlog broadcast testβare 100% green (menu hot-reloaded in 5s without ytreboot, popped STORY MENU, left 1656 unlocked via per-kind cooldown, and flipped the LED billboard to #1656 / AI AGENTS). On returning to #1661 after one read: content_loader.py unlinks .jukebox_request on read (one-shot) and score.get_script() defaults back to the headline story whenever jukebox_index is None, but stream.py was shed from # Context 5βso rather than guessing how stream.pyβs while True: loop clears jukebox_index after #1656 finishes, run the 1-line rg probe below to verify it from disk while #1656 wraps up on air.
1. # Context 5 Straddle & Live Broadcast Receipts
- Chat
MENU+ Per-Kind Cooldown (common.py): PARSED_MENUroutes'menu','MENU','!menu', and'type: menu'->('menu', None),'911'->('optics', None),'1661'->('jukebox', 1661), and ignores un-minted'42'.-
Witnessed live in
ytlog:common.pyhot-reloaded at23:53:27, actuatedmenuat23:58:46, and actuatedjukebox 1656126 seconds later (00:00:52) with zeroytreboot. - Dynamic LED Billboard + Norma
ticker_tag(logs.py,score.py,norma_extract.py): DERIVED_TAG: AD FEEDSandPROMPT_HAS_TICKER_TAG: Trueconfirmed innorma_extract.py.-
Witnessed live in
ytlogat00:01:24: Honeybot stage switched toarticle=#1656 [AI AGENTS], automatically drivingCURRENTLY PLAYING | MIKELEV.IN/1656 | AI AGENTS | TYPE: MENU | TAKE CONTROL! | MIKELEV.IN/DISCORDon the 5-row LED matrix. - One Minor Side-Effect Spotted in Your
ytlog(Optional Future Polish): - At
00:01:24, switching stories triggeredπ [NEW ARTICLE] ... β reset session peak -> 1becauseytwatchresetspeak_viewerswhenever/tmp/honeybot_stage.jsonβsarticlestring changes. Harmless at1viewer tonight, though gating peak-reset strictly on.reading_trigger/video_id(not Jukebox takeovers) will preserve highPeak: Nbadges on busy streams.
2. Will #1656 Return to #1661 After One Read?
- Verified in
content_loader.py&score.py:content_loader.check_jukebox_request()deletes/home/mike/www/mikelev.in/.jukebox_requestinside itsfinally:block the instantstream.pyreads itβthe request file cannot fire twice.score.get_script(breaking=False, jukebox_index=None)only builds a back-catalog script whenjukebox_indexis passed; withjukebox_index=None, it loadsget_playlist(recent_n=1, include_archive=False)(your headline story#1661).
- Verify in
stream.py(Not in# Context 5Raw Source): - Because
remotes/honeybot/scripts/stream.pywas shed from context, I wonβt claim its outerwhile True:loop resetsjukebox_index = Nonewithout a file receipt. Paste 1: BEFORE below: ifjukebox_indexis consumed once and reset toNoneon the next iteration (and#1656hands back to#1661on stream), this ride is 100% done and ready forarticle->preview->norma next->norma save->publish(which will also reload Nginx with all1,656+mikelev.in/<ID>shortlinks). Ifstream.pyholds ontojukebox_index,# Context 6loadsstream.pyto fix it in one tiny car.
1: BEFORE (PROBE β read-only; inspects check_jukebox_request and jukebox_index lifecycles in remotes/honeybot/scripts/stream.py to verify one-shot return to the headline story):
(nix) pipulate $
rg -n -C 12 "check_jukebox_request|jukebox_index" remotes/honeybot/scripts/stream.py
2: AFTER (NEXT CONTEXT β put in context.txt using context or x only if stream.py needs a post-takeover return or peak-reset tweak; otherwise hop off and publish!):
# Context 6: Verify One-Shot Story Takeover Return to Headline Article in stream.py
context.txt
! rg -n -C 12 "check_jukebox_request|jukebox_index" remotes/honeybot/scripts/stream.py
remotes/honeybot/scripts/stream.py
3: CHANGE (PATCHES):
No repo patches required.
Ignition: no ignition required.
4: PROMPT (Use prompt or p to create prompt.md from copy if continuing to # Context 6):
Check the `rg` receipt from `remotes/honeybot/scripts/stream.py`: confirm that a chat story takeover plays once and returns automatically to the newest headline Story-Time entry on the next loop, or emit a minimal surgical car in `stream.py` to guarantee one-shot return to the headline story.
5: DELIVERABLE (What done looks like):
- If the
rgoutput (and live playback on:10.0) confirmsjukebox_indexis cleared toNoneafter#1656finishesβreturning automatically to#1661βhop off the ride and ship this article (article->preview->norma next->norma save->publish), which will mint the new Norma episode and activate everyhttps://mikelev.in/<ID>shortlink on Nginx. No external manual-paste deliverables required.
MikeLev.in:
THE AI-EDIT METHOD
Same commands, run twice, one change between them. Where the readings differ is what the change did; the diff in the middle is the receipt.
1: BEFORE (PROBE):
On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean
GIT repo clean. Take BEFORE reading, make CHANGE, record AFTER diff.
(nix) pipulate $ rg -n -C 12 "check_jukebox_request|jukebox_index" remotes/honeybot/scripts/stream.py
334- return anchor + (int((now - anchor) // interval) + 1) * interval
335-
336-
337-sys.path.append(str(Path(__file__).parent))
338-
339-try:
340- import score
341- from content_loader import (
342- check_for_updates,
343- check_standby,
344- trigger_is_fresh,
345- check_live_message,
346: check_jukebox_request,
347- has_pending_update,
348- get_featured_article_id,
349- )
350-except ImportError:
351- score = None
352- def check_live_message():
353- return None
354: def check_jukebox_request():
355- return None
356- def has_pending_update():
357- return False
358- def get_featured_article_id():
359- return None
360-
361-# --- Configuration ---
362-MODEL_DIR = Path.home() / ".local/share/piper_voices"
363-NORMA_MODEL_NAME = os.environ.get("HONEYBOT_NORMA_MODEL", "en_US-amy-low.onnx")
364-MODEL_NAME = NORMA_MODEL_NAME
365-MIKE_MODEL_NAME = os.environ.get("HONEYBOT_MIKE_MODEL", "en_US-ryan-low.onnx")
366-SHIPMUNK_MODEL_NAME = os.environ.get("HONEYBOT_SHIPMUNK_MODEL", "en_US-amy-low.onnx")
--
3689- narrator._stage_dialogue_role = prev_standby_role
3690- if prev_standby_role in ("left", "right"):
3691- narrator._reannounce_after_break = True
3692- if bgm_was_active:
3693- start_storytime_bgm()
3694- narrator.say("Resuming storytime.")
3695- wait_for_voice_or_live_interrupt(env, profile_dir)
3696-
3697- # --- The Breaking News Interrupt ---
3698- # We check before every command.
3699- # A fresh push rang the bell; return "BREAKING" (not False) so the director
3700- # leads the NEXT cycle straight with the newest article, no station-ID spiel.
3701: jb_req = check_jukebox_request()
3702- if jb_req:
3703- stop_storytime_bgm()
3704- narrator.interrupt()
3705- narrator.say(f"Chat takeover! Switching now to story number {jb_req}.")
3706- try:
3707- subprocess.run(["pkill", "firefox"], check=False)
3708- except Exception:
3709- pass
3710- return ("JUKEBOX", jb_req)
3711-
3712- if check_for_updates():
3713- stop_storytime_bgm()
--
3788- # trigger_is_fresh is ever looked up; a stale or absent trigger also yields
3789- # False, leaving a genuine idle cold start completely unchanged.
3790- breaking = trigger_is_fresh() if score else False
3791- jukebox_idx = None
3792- first_cycle = True
3793- while True:
3794- if score:
3795- try:
3796- import importlib
3797- importlib.reload(score)
3798- except Exception:
3799- pass
3800: current_script = score.get_script(breaking=breaking, jukebox_index=jukebox_idx)
3801- if first_cycle:
3802- first_cycle = False
3803- if reboot_cover_active:
3804- wait_for_reboot_cover_alice()
3805- dismiss_reboot_cover_alice()
3806- result = perform_show(current_script)
3807- if isinstance(result, tuple) and len(result) == 2 and result[0] == "JUKEBOX":
3808- jukebox_idx = int(result[1])
3809- breaking = True
3810- else:
3811- jukebox_idx = None
3812- breaking = (result == "BREAKING")
(nix) pipulate $
2: AFTER (NEXT CONTEXT):
# # Context 1: Step 1 Bare-Number Jukebox & terms.py
# context.txt
# ! eza -1 remotes/honeybot/scripts
# ! rg -n 'jukebox|ytwatch|\brabbit\b' flake.nix scripts remotes/honeybot/scripts
# ! .venv/bin/python -c 'import pathlib, re; base = pathlib.Path("/home/mike/repos/trimnoir/_posts"); abs_files = sorted((base / "_abstracts").glob("*.md")) if (base / "_abstracts").is_dir() else []; p911 = [p.name for p in base.glob("*.md") if re.search(r"(?m)^article_id:\s*[\x27\x22]?911\b", p.read_text(errors="ignore")[:2048])]; print("abstracts:", len(abs_files), [f.name for f in abs_files[:5]], "id_911:", p911)'
#
# flake.nix
# scripts/chat_route_probe.py
# remotes/honeybot/scripts/terms.py
# remotes/honeybot/scripts/content_loader.py
# remotes/honeybot/scripts/score.py
# remotes/honeybot/scripts/logs.py
# scripts/articles/norma_extract.py
# deleteme.txt
# # Context 2: Bare-Number Chat Parser in ytwatch (common.py) & Stream Fishtank Sweep
# context.txt
# ! .venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "remotes/honeybot/scripts")); import terms, content_loader as cl; sample = "A.I. FISHTANK STORY-TIME for CMOs & CTOs in the c-suite, Reschke, Yutes, Mike-E, Weebo, NetOps, 911 in chat, mikelev.in/1337"; ids = cl.get_jukebox_playable_ids() if hasattr(cl, "get_jukebox_playable_ids") else None; lg = (REPO_ROOT / "remotes/honeybot/scripts/logs.py").read_text(); sc = (REPO_ROOT / "remotes/honeybot/scripts/score.py").read_text(); print("TTS:", terms.apply_inline_tts_terms(sample)); print("PLAYABLE_IDS:", ids); print("LOGS_FISHTANK:", "A.I. FISHTANK STORY-TIME" in lg, "LOGS_NO_RABBIT:", "rabbit" not in lg); print("SCORE_FISHTANK:", "A.I. FISHTANK" in sc)'
# ! .venv/bin/python scripts/pyprobe.py 'rc, out = capture_call(["rg", "-n", "-i", "observatory|fishtank|_CHAT_OPTICS_RE|_CHAT_RABBIT_RE|_CHAT_JUKEBOX_RE", "remotes/honeybot/scripts", "scripts"]); print(out[:3500])'
# scripts/articles/common.py
# remotes/honeybot/scripts/stream.py
# remotes/honeybot/scripts/forest.py
# # Context 2b: Fix F821 Per-Block Airlock in common.py & Complete Stream Fishtank Sweep
# context.txt
# ! .venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "scripts/articles")); import common; cases = ["911", "#911", "rabbit", "!rabbit", "1661", "#1661", "42", "jukebox 1660"]; parsed = [(c, common.parse_allowlisted_chat_command(c)) for c in cases]; vp = common._build_viewer_payload(2, video_id="vid", peak=4); print("PARSED:", parsed); print("VIEWER_JB_IDS:", vp.get("jukebox_ids"))'
# ! rg -n "_CHAT_RABBIT_RE|Jukebox request received|Web Bot A I Observatory|Web Bot AI Observatory|Scheduled observatory" scripts/articles/common.py remotes/honeybot/scripts/stream.py remotes/honeybot/scripts/forest.py remotes/honeybot/scripts/score.py || true
# scripts/articles/common.py
# remotes/honeybot/scripts/stream.py
# remotes/honeybot/scripts/forest.py
# # Context 3: Story-Control LED Ticker, mikelev.in/<ID> Short URLs, & Story Menu Report
# context.txt
# ! .venv/bin/python scripts/pyprobe.py 'import apply; f_body = "OLD = 1\ndef f():\n return OLD\n"; d = tempfile.mkdtemp(); tf = Path(d) / "t.py"; tf.write_text(f_body); p = f"Target: {tf}\n{SEARCH_MARK}\nOLD = 1\n{DIVIDER_MARK}\nNEW = 2\n{REPLACE_MARK}\nTarget: {tf}\n{SEARCH_MARK}\n return OLD\n{DIVIDER_MARK}\n return NEW\n{REPLACE_MARK}\n"; ok = apply.apply_search_replace_patch(p); shutil.rmtree(d, ignore_errors=True); print("MULTI_BLOCK_RENAME_OK:", ok)'
# ! .venv/bin/python -m unittest tests/test_apply_airlock.py
# ! .venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "scripts/articles")); import common; cases = ["911", "#911", "rabbit", "!rabbit", "1661", "#1661", "42", "jukebox 1660"]; parsed = [(c, common.parse_allowlisted_chat_command(c)) for c in cases]; vp = common._build_viewer_payload(2, video_id="vid", peak=4); print("PARSED:", parsed); print("VIEWER_JB_IDS:", vp.get("jukebox_ids"))'
# ! rg -n "_CHAT_RABBIT_RE|Jukebox request received|Web Bot A I Observatory|Web Bot AI Observatory|Scheduled observatory" scripts/articles/common.py remotes/honeybot/scripts/stream.py remotes/honeybot/scripts/forest.py remotes/honeybot/scripts/score.py || true
# remotes/honeybot/scripts/logs.py
# remotes/honeybot/scripts/score.py
# remotes/honeybot/scripts/content_loader.py
# remotes/honeybot/scripts/forest.py
# scripts/articles/generate_redirects.py
# # Context 4: Wire Chat 'MENU' Trigger in ytwatch (common.py) & Auto-Stamp ticker_tag in norma_extract.py
# context.txt
# ! .venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "remotes/honeybot/scripts")); import content_loader as cl, logs, score; entries = cl.get_jukebox_menu_entries(limit=3) if hasattr(cl, "get_jukebox_menu_entries") else None; e0 = (entries or [{}])[0]; tk = logs.build_jukebox_ticker_message(e0.get("jukebox_index", 1337), e0.get("ticker_tag", "RFC 9110")) if hasattr(logs, "build_jukebox_ticker_message") else logs.DEFAULT_TICKER_MESSAGE; sc_txt = (REPO_ROOT / "remotes/honeybot/scripts/score.py").read_text(); print("MENU_TOP3:", [(x["jukebox_index"], x["ticker_tag"], x["short_url"]) for x in (entries or [])]); print("TICKER:", tk); print("SCORE_NO_OBS:", "observatory" not in sc_txt.lower())'
# ! .venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "scripts/articles")); sys.path.insert(0, str(REPO_ROOT / "remotes/honeybot/scripts")); import generate_redirects as gr, forest; pdir = Path.home() / "repos/trimnoir/_posts"; _, active, _, _, _ = gr.get_navgraph_sets(pdir.parent / "navgraph.json", posts_dir=pdir, pages_dir=pdir.parent / "pages"); lmap = {p.lower(): p for p in active}; id_map = gr._collect_article_id_redirects(pdir, set(), lmap) if hasattr(gr, "_collect_article_id_redirects") else {}; ansi = forest.prerender_station_report_ansi("menu", out_path="/tmp/test_hb_menu.ansi") if "menu" in getattr(forest, "ARCHIVED_STATION_BEADS", {}) else ""; has_1661 = bool(ansi and "1661" in Path(ansi).read_text()); Path("/tmp/test_hb_menu.ansi").unlink(missing_ok=True); sp_txt = forest.resolve_dynamic_report_speech("{LIVE_REPORT:menu}"); print("ID_REDIRECTS:", len(id_map), id_map.get("/1661"), id_map.get("/911")); print("MENU_ANSI_OK:", has_1661, "SPEECH:", sp_txt[:140])'
# scripts/articles/common.py
# scripts/articles/norma_extract.py
# # Context 5: Verify End-to-End Chat 'MENU' & Story-Control Fishtank Readiness
# context.txt
# ! .venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "scripts/articles")); import common; cases = ["menu", "MENU", "!menu", "type: menu", "911", "1661", "42"]; parsed = [(c, common.parse_allowlisted_chat_command(c)) for c in cases]; dry_m = common._actuate_allowlisted_chat_command(("menu", None), dry_run=True); by_k = getattr(common, "_last_chat_cmd_by_kind", None); print("PARSED_MENU:", parsed); print("ACTUATE_MENU_DRY:", dry_m, "PER_KIND_COOLDOWN:", isinstance(by_k, dict))'
# ! .venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "scripts/articles")); import common, norma_extract as ne; p, _ = common._latest_post_for_target("1", slug_match="#1661"); pkt = ne.build_extraction_prompt(p); tag = ne.derive_ticker_tag({"title": pkt["title"]}, title=pkt["title"], slug=p.stem[11:]) if hasattr(ne, "derive_ticker_tag") else None; print("DERIVED_TAG:", tag, "PROMPT_HAS_TICKER_TAG:", "ticker_tag:" in pkt["prompt"])'
# scripts/articles/norma_extract.py
# remotes/honeybot/scripts/logs.py
# remotes/honeybot/scripts/forest.py
# Context 6: Verify One-Shot Story Takeover Return to Headline Article in stream.py
context.txt
! rg -n -C 12 "check_jukebox_request|jukebox_index" remotes/honeybot/scripts/stream.py
remotes/honeybot/scripts/stream.py
foo_files.py
3: CHANGE (PATCHES):
None means done? Yes! None means done. Something for the future for busy streams. Okay, got it! We polish later. This is a massive win. Iβll have to do the 911 test at some point but Iβm done for this β No, itβs not Thurday night anymore. Itβs Friday morning just past midnight.
Oh, and I own a little bit of Anthropic now too. Also Take-Two Interactive, the company that makes that awful beating people up car game that people were waiting over 10 years for. Oh, and thereβs no PC version today! So if youβre looking for something to use your GPU on, maybe itβs a good time to grab yourself a Sun Pug.
4: PROMPT:
Check the rg receipt from remotes/honeybot/scripts/stream.py: confirm that a chat story takeover plays once and returns automatically to the newest headline Story-Time entry on the next loop, or emit a minimal surgical car in stream.py to guarantee one-shot return to the headline story.
5: DELIVERABLE:
What does βDONEβ look like?
Done looks like this. Well done, Gemini. Bang-up job!
One-Shot Headline Return and Session Audit
Hop off the ride. This rideβs stated goal is reached β dismount. This is the NOTARY BEAT: the ride ends here, is witnessed here, and is sealed here. Answer all seven beats, briefly:
- TL;DR: a short, dry, neutral abstract for the TOP of the published article β written for an unfamiliar reader or AI summarizer who has never seen this system. No hype, no insider handles unexplained.
- VERIFY: restate the goal from the top of this article and confirm (or deny) it was met, citing THIS compileβs receipts, not memory. Name any ignition this ride required that never fired β an AFTER tap taken without one is a stale BEFORE wearing the AFTERβs label.
- BANK: name everything that graduates β rule, earmark, todo, pin β as SEARCH/REPLACE patch cars against raw source present in THIS context (Target line inside the fence, one car per commit story), deletions included. A βpaste-readyβ line with no Target and no SEARCH anchor is not banked; it is a hand edit the operator will not make. These BANK cars are the ONLY patches a dismount emits.
- DANGLING: what carries forward unbanked? One line each, no essays.
- SEED: the context.txt lines (and TODO_SLUGS if narrative context is needed) for the next rideβs first compile.
- CLOSING: a closing summary for the BOTTOM of the article β the final take-away, tied to the bookβs larger arc where it fits naturally, never forced. Storytelling over inventory.
- NOTARIZE: read the exact Deed line from THIS compileβs final QA ARCHIVE SEAL footer, outside the payload, not a quoted older footer or a newest-file guess. It names the input archive, not this later response or the generated Jekyll post. State verification separately: only a verifier receipt naming that archive supports a verified claim; otherwise say not independently verified here. Count this Manifestβs live-command receipts, including failures. Quote only recorded digests, sizes and dates, naming their source; filesystem mtime and fixed ZIP dates are not command timestamps. Do not demand absent wc -c or dated-receipt fields. If the footer is missing, say so; otherwise close with its exact Deed line.
FINALITY: after beat 6, this discussion is CLOSED. Emit NO five-car train, NO probes, NO patches beyond the BANK cars of beat 2, and NO next-turn prompt beyond the SEED lines in beat 4. Any reader or model encountering this article later should treat it as a finished, notarized document β an archive entry, not an open thread.
Gemini 4 Carbon High: Context verified.
- VERIFY: All opening goals of this ride were met and witnessed across compiled and live receipts:
- One-Shot Return to the Headline Story (
stream.pyreceipt in THIS compile): Confirmed directly by this compileβs live receipt (! rg -n -C 12 "check_jukebox_request|jukebox_index" remotes/honeybot/scripts/stream.py, lines3790-3812) andremotes/honeybot/scripts/stream.pyraw source. When a viewer requests a story,check_jukebox_request()unlinks.jukebox_requestonce,perform_show()returns("JUKEBOX", jb_req),start_director_track()setsjukebox_idx = int(result[1])for that single cycle, and when that requested story finishes normally (resultisNone), theelse:branch (lines 3810-3812) resetsjukebox_idx = Noneandbreaking = False, returning automatically to the newest headline Story-Time entry on the very next pass. Zerostream.pyedits are needed. - Bare-Number Story Selection,
MENU, Reserved911, & Retiredrabbit:common.py(commits 75c6bfb, 6239fb1),content_loader.py(commits 5c25429, 8a22838), andforest.py(commit 170c5b5) restrict playable story numbers strictly to minted_posts/_abstracts/article_ids, reserve911for Live Optics, retirerabbit, and wiremenuwith per-kind cooldowns (_last_chat_cmd_by_kind)βwitnessed live on air (ytloghot-reload at23:53:27,menuactuated at23:56:39&23:58:46, and1656switching Honeybot toarticle=#1656 [AI AGENTS]at00:00:52->00:01:24). A.I. Fishtank Story-TimeIdentity, Dynamic 5-Row LED Ticker,terms.py, &/<ID>Shortlinks:terms.py(commit ced4bd1),logs.py+score.py(commits ba9a8de, 8a22838, 137959e),stream.py+forest.py(commit b146d88),generate_redirects.py(commit 170c5b5), andnorma_extract.py(commit 89d0dd9) rebranded the HUD and spoken tours, moved#ticker_barto dynamicCURRENTLY PLAYING | MIKELEV.IN/<ID> | <TICKER_TAG> | TYPE: MENU | TAKE CONTROL! | MIKELEV.IN/DISCORD, and prepared1,656/<ID>Nginx shortlinks (apply.pystaged-file F821 validation also landed atcommit 9232347).- Pending Publish-Lane Ignition:
ytrebootandytwatchos.execvhot-reload both fired and were witnessed live; the only ignition deferred by design to article publication is runningpreview+publishsogenerate_redirects.pywrites~/repos/trimnoir/_redirects.mapand Honeybotβspost-receivehook reloads Nginx RAM formikelev.in/<ID>shortlinks.
- One-Shot Return to the Headline Story (
- BANK:
Car 2a β Bank Dismount Receipt (20-Line Cap) & Constitutional # Β§ Keys (foo_files.py Zone 1):
Target: foo_files.py
[[[SEARCH]]]
# --- START RECEIPTS (newest first; cap 20 lines; a line pushed past the cap is deleted, never moved -- git and the rolling pin are the archive) ---
# 2026-11-19 dismount 5-SLOT TITTLE-DROP CADENCE (3.65S LOGARITHMIC PERCH + SETTLED ORANGE BALLS), PROMO-FREE REPORTS, LOOP-SCOPED BGM, & 1:4 TRANSPARENT #FFFFFF FALLING ALICE ACROSS 65S REBOOTS & OPTICS VIEWPORT HANDOFF (deeds qamy.ai_1285 through qamy.ai_1294-a9d42da0.zip; pipulate commits 2ea4e60, a975a3c, 93fa974, 6a2af7e, 7a81f1f, b32159e, fb01ab5, 9bba2eb, 375b9a8, 9548f51, dcd46a7, 0b155e9, 21824b9; Gemini 4 Carbon High on every turn): connected Claude Shannon's 1% digital checksums (Hilkhot Safrut 304,805-letter atomic rollback) + Norbert Wiener's 99% cybernetic turret feedback (C5->G5 / G5->C5 chimes catching Jack Brehm reactance drops live), Alan Baddeley's 2s phonological loop + John Langdon's displaced-tittle word-of-mouth (MikeLev.in essays + SunPug.io tools), Michael Polanyi tacit shadow compression, Asimov's Herbie, Weber-Fechner logarithmic perceptual latency, and ADNS + Cloudflare Orange-to-Orange (O2O) 5-30ms Unix tee pipes + steelmanned trade-editor/NetOps incentives; added fast/standard _tittle_pace_params (3.65s/4.0s perch), unchopped min_settle_sec stop_file floor, settled TITTLE_BALL_STYLE ('bold bright_yellow'), fd-isolated detach=True (start_new_session, stdin=DEVNULL, close_fds), and 1:4 FALLING_ALICE_PAUSE_RATIO=3.0 opacity=0.0 #ffffff DEC Mode 2026 Falling Alice in imports/ascii_displays.py + card.py; wired 5-slot anti-back-to-back BUMPER state machine, promo-free STATION_SEGMENTS, 65s stamp-gated wait_for_reboot_cover_alice, loop-scoped dripulate.wav BGM, and post-banner OPTICS_SLOT -> ytstage.py wmctrl viewport Alice handoff across remotes/honeybot/scripts/{forest.py,score.py,stream.py} and scripts/ytstage.py (# Β§ LOGARITHMIC PERCH, 1:4 OVERLAY DUTY CYCLES, & STAMP-GATED REBOOT COVER), discharging TITTLE-DROP 1S PERCH HOVER, CONTINUOUS LOOP-SCOPED BGM, and TRANSPARENT #FFFFFF FALLING ALICE. WITNESSED: FLOORS=(2.32, 3.73)->(5.69, 7.03), UNCHOPPED_OK/SETTLED_DRAWN/GATE_MATRIX_OK/SLOT1_OK/FAST_PARITY_OK/ZERO_PROMO_OK/DETACH_ISOLATED/REBOOT_HOLD_OK/VIEWPORT_DISMISS_OK/LOOP_BGM_CONTINUOUS/NO_PRE_OPTICS_ALICE/END_LOOP_GATE_OK False -> True (Receipt 1 Span.plain AttributeError noted; 0b155e9 diff + live Honeybot :10.0 pid=407228->482944 witnessed 65s 1:4 reboot Alice, settled orange tittles, & continuous BGM), Ruff exit 0, deed qamy.ai_1294-a9d42da0.zip.
[[[DIVIDER]]]
# --- START RECEIPTS (newest first; cap 20 lines; a line pushed past the cap is deleted, never moved -- git and the rolling pin are the archive) ---
# 2026-11-20 dismount A.I. FISHTANK STORY-TIME REBRAND, BARE-NUMBER & 'MENU' LIVE-CHAT TAKEOVER WITH PER-KIND COOLDOWNS, DYNAMIC STORY-CONTROL 5-ROW LED BILLBOARD (`TICKER_TAG`), 1,656 `MIKELEV.IN/<ID>` NGINX SHORTLINKS, & CAR-END STAGED SYNTAX AIRLOCK (deeds qamy.ai_1295 through qamy.ai_1305-fab7097a.zip; pipulate commits ced4bd1, 5c25429, ba9a8de, 9232347, 75c6bfb, b146d88, 8a22838, 137959e, 170c5b5, 6239fb1, 89d0dd9; Gemini 4 Carbon High on every turn): mapped the 4-Tier Downward-Only Distillation Diode (mikelev.in workshop -> sunpug.io / A.I. Fishtank Story-Time for the 'Yutes' -> rfc9110.org CMO -> rfc9111.io CTO anchored on Fielding, Nottingham, and Reschke with zero upstream links); added CMO/CTO/CEO/CFO/CIO/CISO/c-suite, Reschke, Yutes, Mike-E, Weebo, NetOps/SecOps/FinOps/DevOps/GitOps/SRE/PII/GDPR/CPRA/WAF, 'A.I.', and mikelev.in/<ID> in remotes/honeybot/scripts/terms.py; scoped get_jukebox_catalog() strictly to Norma _posts/_abstracts/ (reserving 911), retired 'rabbit', wired bare-number + 'MENU' YouTube chat triggers with per-kind cooldowns (_last_chat_cmd_by_kind) in scripts/articles/common.py, built dynamic Story-Control LED cards + mode='menu' Rich report + auto-stamped YAML ticker_tag across content_loader.py, score.py, logs.py, forest.py, stream.py, and norma_extract.py, minted _collect_article_id_redirects() in generate_redirects.py, and moved apply.py surgical AST/F821 validation to post-loop staged_contents (# Β§ BARE-NUMBER CHAT MENUS, PER-KIND COOLDOWNS, & DOWNWARD-ONLY FUNNEL DIODES), discharging P0.60. WITNESSED: MULTI_BLOCK_RENAME_OK False -> True (11/11 airlock OK), PLAYABLE_IDS=[1661..1654], ID_REDIRECTS 0 -> 1656, MENU_ANSI_OK/SCORE_NO_OBS/ACTUATE_MENU_DRY/PER_KIND_COOLDOWN/PROMPT_HAS_TICKER_TAG False -> True, live ytreboot (viewer retained via Falling Alice) + ytwatch os.execv hot-reload actuating 'menu' & '1656' (`article=#1656 [AI AGENTS]`) with verified one-shot return (stream.py:3807-3812), Ruff exit 0, deed qamy.ai_1305-fab7097a.zip.
# 2026-11-19 dismount 5-SLOT TITTLE-DROP CADENCE (3.65S LOGARITHMIC PERCH + SETTLED ORANGE BALLS), PROMO-FREE REPORTS, LOOP-SCOPED BGM, & 1:4 TRANSPARENT #FFFFFF FALLING ALICE ACROSS 65S REBOOTS & OPTICS VIEWPORT HANDOFF (deeds qamy.ai_1285 through qamy.ai_1294-a9d42da0.zip; pipulate commits 2ea4e60, a975a3c, 93fa974, 6a2af7e, 7a81f1f, b32159e, fb01ab5, 9bba2eb, 375b9a8, 9548f51, dcd46a7, 0b155e9, 21824b9; Gemini 4 Carbon High on every turn): connected Claude Shannon's 1% digital checksums (Hilkhot Safrut 304,805-letter atomic rollback) + Norbert Wiener's 99% cybernetic turret feedback (C5->G5 / G5->C5 chimes catching Jack Brehm reactance drops live), Alan Baddeley's 2s phonological loop + John Langdon's displaced-tittle word-of-mouth (MikeLev.in essays + SunPug.io tools), Michael Polanyi tacit shadow compression, Asimov's Herbie, Weber-Fechner logarithmic perceptual latency, and ADNS + Cloudflare Orange-to-Orange (O2O) 5-30ms Unix tee pipes + steelmanned trade-editor/NetOps incentives; added fast/standard _tittle_pace_params (3.65s/4.0s perch), unchopped min_settle_sec stop_file floor, settled TITTLE_BALL_STYLE ('bold bright_yellow'), fd-isolated detach=True (start_new_session, stdin=DEVNULL, close_fds), and 1:4 FALLING_ALICE_PAUSE_RATIO=3.0 opacity=0.0 #ffffff DEC Mode 2026 Falling Alice in imports/ascii_displays.py + card.py; wired 5-slot anti-back-to-back BUMPER state machine, promo-free STATION_SEGMENTS, 65s stamp-gated wait_for_reboot_cover_alice, loop-scoped dripulate.wav BGM, and post-banner OPTICS_SLOT -> ytstage.py wmctrl viewport Alice handoff across remotes/honeybot/scripts/{forest.py,score.py,stream.py} and scripts/ytstage.py (# Β§ LOGARITHMIC PERCH, 1:4 OVERLAY DUTY CYCLES, & STAMP-GATED REBOOT COVER), discharging TITTLE-DROP 1S PERCH HOVER, CONTINUOUS LOOP-SCOPED BGM, and TRANSPARENT #FFFFFF FALLING ALICE. WITNESSED: FLOORS=(2.32, 3.73)->(5.69, 7.03), UNCHOPPED_OK/SETTLED_DRAWN/GATE_MATRIX_OK/SLOT1_OK/FAST_PARITY_OK/ZERO_PROMO_OK/DETACH_ISOLATED/REBOOT_HOLD_OK/VIEWPORT_DISMISS_OK/LOOP_BGM_CONTINUOUS/NO_PRE_OPTICS_ALICE/END_LOOP_GATE_OK False -> True (Receipt 1 Span.plain AttributeError noted; 0b155e9 diff + live Honeybot :10.0 pid=407228->482944 witnessed 65s 1:4 reboot Alice, settled orange tittles, & continuous BGM), Ruff exit 0, deed qamy.ai_1294-a9d42da0.zip.
[[[REPLACE]]]
Target: foo_files.py
[[[SEARCH]]]
# 2026-11-12 dismount AI-READINESS CONSULTANT PLAYBOOK (NEIN JUAN WAN 1 & 2 / RFC 7231->9110/9111), HONEYBOT-SIDE 911 OPTICS SIFT & OUTRO PITCHES, SCREENSHOT REPORT BORDERS, CONTINUOUS DRIPULATE.WAV BGM ACROSS YTSTAGE, & HEADING-ISOLATED SPEAKER RESTORATION (deeds qamy.ai_998 through qamy.ai_1000-cd55f4a2.zip; pipulate commits a621063, 342c933, 184ef87; Honeybot system /nix/store/68qiwsknriax9lbn9fmxm04ilarf91yh-nixos-system-honeybot-26.05pre913595.c6245e83d836; Gemini 4 Carbon High on every turn): mapped the 2007-2017 Mobile-First Responsive Web Design arc onto the 2026-2036 Agent-First Edge consulting blueprint (RFC 7231 -> RFC 7763 -> RFC 9110 Section 12 Accept: text/markdown + RFC 9111 Section 4.1 Vary: Accept cache-key normalization, PDP/PLP JSON-LD rescue, Cache-Tag webhook purges, ADNS/O2O log sovereignty, hierarchical sitemap.xml + llms.txt feeds, and curl | less + DetSys /nix/store/ Magic Cookie zero-machine-rot hygiene) narrated via Nein Juan Wan 1 & 2 plus a 30-and-3 Titanic SEO wake-up reduction; wired DEFAULT_OPTICS_SIFT_TEXT, DEFAULT_OPTICS_OUTRO_TEXT, terms.py phonetic filtering, and continuous dripulate.wav SIGCONT/auto-start keep-alive in scripts/ytstage.py; stamped MikeLev.in, SunPug.io, and MikeLev.in/discord into report borders and added the Beat 5 screenshot voice cue in remotes/honeybot/scripts/forest.py; added Nein Juan Wan, RFC 7231/7763/9112, JSON-LD, O2O, DetSys, mikelev.in/discord, and heading-bounded SPEAKER_TURN_RULES in remotes/honeybot/scripts/terms.py; isolated PP4HEADINGSTART paragraphs in remotes/honeybot/scripts/content_loader.py and guarded straddle speaker transitions and Discord/SunPug CTAs across stream.py, score.py, and logs.py (# Β§ CONTINUOUS BGM CARRIER WAVES & HEADING-ISOLATED SPEAKER TURNS). WITNESSED: OV_TITLE/BI_TITLE/SHOT_CUE/SIFT_TTS/DISCORD_FTR/TICKER_DISCORD/SCORE_DISCORD False -> True, HEADING_LINES ['Mike:', '[[HEADING:THE AI-EDIT METHOD]]', 'Body'], Cue 366 ['shipmunk'] -> ['norma', 'mike'], live Honeybot pid=1414951 -> 1429645 continuous BGM + speaker return verified on air, Ruff exit 0, deed qamy.ai_1000-cd55f4a2.zip.
# --- END RECEIPTS ---
[[[DIVIDER]]]
# --- END RECEIPTS ---
[[[REPLACE]]]
Target: foo_files.py
[[[SEARCH]]]
# Β§ LOGARITHMIC PERCH, 1:4 OVERLAY DUTY CYCLES, & STAMP-GATED REBOOT COVER (banked 2026-11-19, deed 1294) -- Hold visual sight-gag setups ~3.5-4.0s before motion so logarithmic human perception registers the anomaly, pace detached transparent Alacritty overlays (window.opacity=0.0, start_new_session=True, stdin=DEVNULL, close_fds=True) on a 1:4 fall-to-pause duty cycle while keeping analytical reports free of spoken URL plugs, and gate post-reboot overlay dismissal on a /tmp timestamp plus compiled playlist readiness rather than a fixed boot sleep.
[[[DIVIDER]]]
# Β§ BARE-NUMBER CHAT MENUS, PER-KIND COOLDOWNS, & DOWNWARD-ONLY FUNNEL DIODES (banked 2026-11-20, deed 1305) -- Let live-chat viewers control broadcast playback with bare menu numbers and a 'MENU' command guarded by per-kind cooldowns (so opening the menu never locks out picking a story seconds later) while returning automatically to the headline episode after one read, and enforce a downward-only citation diode across multi-domain content funnels (mikelev.in workshop -> sunpug.io parables -> rfc9110.org CMO -> rfc9111.io CTO) so specification doors never link back upstream.
# Β§ LOGARITHMIC PERCH, 1:4 OVERLAY DUTY CYCLES, & STAMP-GATED REBOOT COVER (banked 2026-11-19, deed 1294) -- Hold visual sight-gag setups ~3.5-4.0s before motion so logarithmic human perception registers the anomaly, pace detached transparent Alacritty overlays (window.opacity=0.0, start_new_session=True, stdin=DEVNULL, close_fds=True) on a 1:4 fall-to-pause duty cycle while keeping analytical reports free of spoken URL plugs, and gate post-reboot overlay dismissal on a /tmp timestamp plus compiled playlist readiness rather than a fixed boot sleep.
[[[REPLACE]]]
Target: foo_files.py
[[[SEARCH]]]
# Β§ ORDER BLOCKS FOR THE PER-BLOCK AIRLOCK (banked 2026-10-27, deed 367; amended 2026-11-18, deed 1271) -- apply.py validates whole-file syntax and unbound names (ast.parse, ruff F821/F823, nix-instantiate --parse, json.loads) after each individual SEARCH/REPLACE block rather than once at the end of a car; stage new def/symbol blocks ahead of upper caller blocks, remove variable references before removing their definitions, and promote elif branches to if before deleting their leading if block so every intermediate file state passes the airlock.
[[[DIVIDER]]]
# Β§ ORDER BLOCKS FOR THE PER-BLOCK AIRLOCK (banked 2026-10-27, deed 367; amended 2026-11-20, deed 1305) -- Since commit 9232347 apply.py validates whole-file AST and unbound-name airlocks (ast.parse, ruff F821/F823, nix-instantiate --parse, json.loads) once per staged file after all surgical blocks in a car apply in memory (ahead of any disk write) so multi-block symbol renames in one car no longer false-positive mid-flight, while ordering definitions ahead of callers across contiguous blank-free spans remains best practice for single-car resilience.
[[[REPLACE]]]
Car 2b β Discharge P0.60, Update P0.50 & Ticker TODOs, and Stage P0.64 (foo_files.py Zone 3):
Target: foo_files.py
[[[SEARCH]]]
# - TODO (2026-11-19, P0.59 3-HOP MARKDOWN WEB, ADNS, & O2O CONSULTING CORNERSTONE): Publish flagship consulting blueprint pairing 3-Hop RFC 9110/9111 Markdown feeds with ADNS + Cloudflare O2O zero-export edge logs as a sovereign GSC/HitTail replacement. Gate: live post on mikelev.in.
# - TODO (2026-11-19, P0.60 ON-SCREEN ARTICLE JUKEBOX MENU): Render an Article Jukebox Menu of recent _posts/_abstracts/ Puppet Theater titles and jukebox <ID> coins across remotes/honeybot/scripts/{forest.py,score.py,logs.py}. Gate: menu renders on :10.0 and coin switches show.
# - TODO (2026-11-19, P0.61 SUN PUG TRUE-POSITIVE INSTALL COUNTER): Count real curl|bash Sun Pug installs via CLI User-Agent + install.sh -> key.rot sequence while filtering link-scanners (QlyzeBot, Google-Safety) in Honeybot SQLite. Gate: scanner probes score 0 false-positive installs.
[[[DIVIDER]]]
# - TODO (2026-11-20, P0.64 FOUR-TIER DISTILLATION DIODE & PEAK GUARD): Build downward-only CMO/CTO feeds on rfc9110.org and rfc9111.io (zero upstream links) + IETF-author Weebo cue, and gate ytwatch peak_viewers reset on .reading_trigger/video_id. Gate: peak holds on chat takeover.
# - TODO (2026-11-19, P0.59 3-HOP MARKDOWN WEB, ADNS, & O2O CONSULTING CORNERSTONE): Publish flagship consulting blueprint pairing 3-Hop RFC 9110/9111 Markdown feeds with ADNS + Cloudflare O2O zero-export edge logs as a sovereign GSC/HitTail replacement. Gate: live post on mikelev.in.
# - TODO (2026-11-19, P0.61 SUN PUG TRUE-POSITIVE INSTALL COUNTER): Count real curl|bash Sun Pug installs via CLI User-Agent + install.sh -> key.rot sequence while filtering link-scanners (QlyzeBot, Google-Safety) in Honeybot SQLite. Gate: scanner probes score 0 false-positive installs.
[[[REPLACE]]]
Target: foo_files.py
[[[SEARCH]]]
# - TODO (2026-11-15, P0.50 JUKEBOX LIVE-CHAT WITNESS & BOTTOM-ROW CARD TRIM): Wide `STORYTIME #N` Figlet geometry (`width=160`, `no_wrap=True`) and `in/miklevin` LinkedIn sync landed at commit `e1f9d55` (deed 1144); OWED: trim 1 extra bottom blank row on titled Storytime Alacritty cards (keeping top padding unchanged) and witness a live `jukebox <N>` chat trigger on air. Gate: symmetric top/bottom card margins on `:10.0` and live `jukebox <N>` chat switches tracks cleanly.
[[[DIVIDER]]]
# - TODO (2026-11-15, P0.50 STORYTIME CARD BOTTOM-ROW TRIM): Bare-number chat takeover (1656) witnessed live at deed 1304; OWED: trim 1 extra bottom blank row on titled Storytime Alacritty cards (keeping top padding unchanged). Gate: symmetric card margins on :10.0.
[[[REPLACE]]]
Target: foo_files.py
[[[SEARCH]]]
# - TODO (2026-11-19, TICKER, README, & SOVEREIGN WEIGHT-VAULT REFRESH): Refresh Honeybot #ticker_bar + root README.md for 3-Hop Markdown/SunPug positioning, and audit local Ollama/HF caches to replace zero-byte :cloud tags with offline weights. Gate: updated ticker/README and offline model manifest.
[[[DIVIDER]]]
# - TODO (2026-11-19, README & SOVEREIGN WEIGHT-VAULT REFRESH): Dynamic Story-Control #ticker_bar landed (137959e); OWED: refresh root README.md for 3-Hop Markdown/SunPug positioning and replace zero-byte Ollama :cloud tags with offline weights. Gate: updated README and offline model manifest.
[[[REPLACE]]]
- DANGLING:
- Run
previewandpublishwhen shipping this article sogenerate_redirects.pymaterializes all1,656+/<article_id>shortlinks into~/repos/trimnoir/_redirects.mapand reloads Honeybot Nginx RAM (mikelev.in/1661). - Run a live
911chat trigger test on stream at convenience (P0.53/911Optics slot). - Gate
ytwatchpeak_viewersresets strictly on.reading_triggerandvideo_idchanges rather than/tmp/honeybot_stage.jsonstory switches (P0.64). - Stand up the downward-only
SunPug.io(P0.31),RFC9110.orgCMO, andRFC9111.ioCTO distillation projections plus the Fielding/Nottingham/Reschke Weebo visual cue (P0.64). - Update bare-number coin copy (
<ID>vs.jukebox <ID>) on parentmikelev.inpost navigation (P0.51generate_post_nav.py) when Rung 1Bβ3 runs.
- Run
- SEED:
# Context 1: Project _posts/_abstracts/ One-Way onto SunPug.io & Bare-Number Coin Bar
context.txt
! markov
! .venv/bin/python scripts/pyprobe.py 'sys.path.insert(0, str(REPO_ROOT / "remotes/honeybot/scripts")); import content_loader as cl; print("PLAYABLE:", cl.get_jukebox_playable_ids())'
scripts/articles/generate_post_nav.py
scripts/articles/publishizer.py
scripts/articles/norma_extract.py
- CLOSING: Every medium starts out wearing its predecessorβs clothes. Early television filmed a man in a suit reading a radio script into a microphone; early websites pasted print brochures onto gray backgrounds; and our first pass at interactive livestreaming asked viewers in 2026 to type the word
jukeboxlike Arthur Fonzarelli thumping a chrome Wurlitzer in 1957. Stripping that nostalgia down to its actual affordanceβbots swimming live across an unmasked Nginx glass tank while any viewer textsMENUor a bare number to steer the three-voice theater, held through a live server reboot by a transparent Falling Aliceβturned a passive sysadmin dashboard into a living parlor game. Better yet, it drew the clean architectural line for everything downstream: letMikeLev.instay the uncut, sawdust-covered NPvg workshop where the real discoveries happen, let Norma Centroid distill the human parables for the Fishtank andSunPug.io, and letRFC9110.organdRFC9111.iospeak downward-only to the C-suite with the calm, unarguable authority of the Internet specifications themselves. - NOTARIZE:
- Input archive named by this compileβs outer footer:
qamy.ai_1305-fab7097a.zip(short digest suffixfab7097a; names the compiled input payload, not this response or the generated Jekyll post). - Verification status: not independently verified here (no
scripts/foo_cartridge.pyverifier receipt namingqamy.ai_1305-fab7097a.zipappears in this compile). - Manifest live-command receipts:
1total (0failures) β! rg -n -C 12 "check_jukebox_request|jukebox_index" remotes/honeybot/scripts/stream.py(896 tokens | 3,551 bytes,0.0109sinSummaryProcessing Log). - Recorded compile metrics (
Summary&Manifest):254,878verified tokens (253,585summed tokens,77,299words,957,023chars,962,783UTF-8 bytes);Ruff exit 0 (clean);Codex Mapping Coverage: 76.3% (228/299 tracked files);Telemetrycommits170c5b5,6239fb1, and89d0dd9(2026-11-19);foo_files.pystats timestamp2026-11-20T03:02Z. - Exact Deed line from this compileβs footer: Deed: qamy.ai_1305-fab7097a.zip
- Input archive named by this compileβs outer footer:
MikeLev.in: And the final receipts:
On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean
GIT repo clean. Take BEFORE reading, make CHANGE, record AFTER diff.
(nix) pipulate $ patch
(nix) pipulate $ app
β
DETERMINISTIC PATCH APPLIED: Successfully mutated 'foo_files.py'.
π Car meter: 1/5 file(s), 4/12 block(s), 7/220 line(s) (aim <= 120/car)
(nix) pipulate $ d
diff --git a/foo_files.py b/foo_files.py
index b595a7c..e0f739d 100644
--- a/foo_files.py
+++ b/foo_files.py
@@ -173,6 +173,7 @@ And what's more:
And then we demonstrate a level of competence like so:
# --- START RECEIPTS (newest first; cap 20 lines; a line pushed past the cap is deleted, never moved -- git and the rolling pin are the archive) ---
+# 2026-11-20 dismount A.I. FISHTANK STORY-TIME REBRAND, BARE-NUMBER & 'MENU' LIVE-CHAT TAKEOVER WITH PER-KIND COOLDOWNS, DYNAMIC STORY-CONTROL 5-ROW LED BILLBOARD (`TICKER_TAG`), 1,656 `MIKELEV.IN/<ID>` NGINX SHORTLINKS, & CAR-END STAGED SYNTAX AIRLOCK (deeds qamy.ai_1295 through qamy.ai_1305-fab7097a.zip; pipulate commits ced4bd1, 5c25429, ba9a8de, 9232347, 75c6bfb, b146d88, 8a22838, 137959e, 170c5b5, 6239fb1, 89d0dd9; Gemini 4 Carbon High on every turn): mapped the 4-Tier Downward-Only Distillation Diode (mikelev.in workshop -> sunpug.io / A.I. Fishtank Story-Time for the 'Yutes' -> rfc9110.org CMO -> rfc9111.io CTO anchored on Fielding, Nottingham, and Reschke with zero upstream links); added CMO/CTO/CEO/CFO/CIO/CISO/c-suite, Reschke, Yutes, Mike-E, Weebo, NetOps/SecOps/FinOps/DevOps/GitOps/SRE/PII/GDPR/CPRA/WAF, 'A.I.', and mikelev.in/<ID> in remotes/honeybot/scripts/terms.py; scoped get_jukebox_catalog() strictly to Norma _posts/_abstracts/ (reserving 911), retired 'rabbit', wired bare-number + 'MENU' YouTube chat triggers with per-kind cooldowns (_last_chat_cmd_by_kind) in scripts/articles/common.py, built dynamic Story-Control LED cards + mode='menu' Rich report + auto-stamped YAML ticker_tag across content_loader.py, score.py, logs.py, forest.py, stream.py, and norma_extract.py, minted _collect_article_id_redirects() in generate_redirects.py, and moved apply.py surgical AST/F821 validation to post-loop staged_contents (# Β§ BARE-NUMBER CHAT MENUS, PER-KIND COOLDOWNS, & DOWNWARD-ONLY FUNNEL DIODES), discharging P0.60. WITNESSED: MULTI_BLOCK_RENAME_OK False -> True (11/11 airlock OK), PLAYABLE_IDS=[1661..1654], ID_REDIRECTS 0 -> 1656, MENU_ANSI_OK/SCORE_NO_OBS/ACTUATE_MENU_DRY/PER_KIND_COOLDOWN/PROMPT_HAS_TICKER_TAG False -> True, live ytreboot (viewer retained via Falling Alice) + ytwatch os.execv hot-reload actuating 'menu' & '1656' (`article=#1656 [AI AGENTS]`) with verified one-shot return (stream.py:3807-3812), Ruff exit 0, deed qamy.ai_1305-fab7097a.zip.
# 2026-11-19 dismount 5-SLOT TITTLE-DROP CADENCE (3.65S LOGARITHMIC PERCH + SETTLED ORANGE BALLS), PROMO-FREE REPORTS, LOOP-SCOPED BGM, & 1:4 TRANSPARENT #FFFFFF FALLING ALICE ACROSS 65S REBOOTS & OPTICS VIEWPORT HANDOFF (deeds qamy.ai_1285 through qamy.ai_1294-a9d42da0.zip; pipulate commits 2ea4e60, a975a3c, 93fa974, 6a2af7e, 7a81f1f, b32159e, fb01ab5, 9bba2eb, 375b9a8, 9548f51, dcd46a7, 0b155e9, 21824b9; Gemini 4 Carbon High on every turn): connected Claude Shannon's 1% digital checksums (Hilkhot Safrut 304,805-letter atomic rollback) + Norbert Wiener's 99% cybernetic turret feedback (C5->G5 / G5->C5 chimes catching Jack Brehm reactance drops live), Alan Baddeley's 2s phonological loop + John Langdon's displaced-tittle word-of-mouth (MikeLev.in essays + SunPug.io tools), Michael Polanyi tacit shadow compression, Asimov's Herbie, Weber-Fechner logarithmic perceptual latency, and ADNS + Cloudflare Orange-to-Orange (O2O) 5-30ms Unix tee pipes + steelmanned trade-editor/NetOps incentives; added fast/standard _tittle_pace_params (3.65s/4.0s perch), unchopped min_settle_sec stop_file floor, settled TITTLE_BALL_STYLE ('bold bright_yellow'), fd-isolated detach=True (start_new_session, stdin=DEVNULL, close_fds), and 1:4 FALLING_ALICE_PAUSE_RATIO=3.0 opacity=0.0 #ffffff DEC Mode 2026 Falling Alice in imports/ascii_displays.py + card.py; wired 5-slot anti-back-to-back BUMPER state machine, promo-free STATION_SEGMENTS, 65s stamp-gated wait_for_reboot_cover_alice, loop-scoped dripulate.wav BGM, and post-banner OPTICS_SLOT -> ytstage.py wmctrl viewport Alice handoff across remotes/honeybot/scripts/{forest.py,score.py,stream.py} and scripts/ytstage.py (# Β§ LOGARITHMIC PERCH, 1:4 OVERLAY DUTY CYCLES, & STAMP-GATED REBOOT COVER), discharging TITTLE-DROP 1S PERCH HOVER, CONTINUOUS LOOP-SCOPED BGM, and TRANSPARENT #FFFFFF FALLING ALICE. WITNESSED: FLOORS=(2.32, 3.73)->(5.69, 7.03), UNCHOPPED_OK/SETTLED_DRAWN/GATE_MATRIX_OK/SLOT1_OK/FAST_PARITY_OK/ZERO_PROMO_OK/DETACH_ISOLATED/REBOOT_HOLD_OK/VIEWPORT_DISMISS_OK/LOOP_BGM_CONTINUOUS/NO_PRE_OPTICS_ALICE/END_LOOP_GATE_OK False -> True (Receipt 1 Span.plain AttributeError noted; 0b155e9 diff + live Honeybot :10.0 pid=407228->482944 witnessed 65s 1:4 reboot Alice, settled orange tittles, & continuous BGM), Ruff exit 0, deed qamy.ai_1294-a9d42da0.zip.
# 2026-11-19 dismount COACHMAN CHECK-REINS & TWO-STAGE CAR METER (`APPLY.PY`), `DOTS` RETROGRADE ARCHIVE TIME-WALKER, SIR ROTTENOUS CROWN-FIRE, MULTI-ACCOUNT GMAIL WALLET (`WARM CHECK` + `EMAIL --DELETE`), `YTDESC` DISCORD ABOVE-THE-FOLD, & `MIKELEV.IN` AI-ERA BOOK CD-ROM (`BRAIN.ZIP`) LIVE DEPLOY (deeds qamy.ai_1275-4096c839.zip through qamy.ai_1284-848fb4d4.zip; pipulate commits ca07155, 4e7d185, 9fbe013, c5716d6, 5e92397, 9e2e1d1, cc43681, 763658a, bd81606; trimnoir commit 76d4d9e510; Gemini 4 Carbon High on every turn): connected Class-vs-Instance model weights, Asimov's Caves of Steel C/Fe buddy invariants vs. continual-learning weight rot, IBM 704 batch windows -> MIT CTSS/LISP, Kuhn's soil liquefaction & Matilda/Semmelweis/Merton obliteration by incorporation vs. Margaret E. Knight's dated shop ledger & Bill Gates's 1977 Commodore 6502 ROM `WAIT 6502, 1`, Bartz v. Anthropic fair-use vs. pirated retention & <12h YouTube VOD limits, 1983 Coleco Adam tape-head EMP -> Jay Miner's Amiga/TripOS Guru Meditation -> Eelco Dolstra's NPvg, ExaSearchBot/ShapBot RFC 9110 wire physics post-(not provided), Marcinko's Red Cell + Alanson/R.C. Bray's Expeditionary Force (Smythe, Bishop, Skippy) + Amazon Project Nessie, and Penn & Teller transparent cups; added CHISEL_STRIKE_AIM_PATCH_LINES (120) + _format_car_meter() in apply.py (# Β§ ONE COMMIT STORY PER FENCED CAR & THE 120-LINE AIM), un-froze Head B onto norma-up-next + added --offset/--retro/--retro-reset + shard-summary fallback + [FOO_CHECK] + Over320c in scripts/articles/dots_extract.py & DOTS_PROMPT, banked Sir Rottenous Crown-Fire + P0.59-P0.63 in foo_files.py, promoted /discord to Link #2 in scripts/articles/common.py, purged legacy starter-vendor seeding & wired multi-account ~/.config/pipulate/gmail_tokens/ + --accounts/--use/-a/--delete + warm check + OAuth client discovery across connectors/{wallet.py,gmail.py}, and deployed the AI-era book CD-ROM (`brain.zip`) pitch live on mikelev.in. WITNESSED: 11/11 airlock OK, HAS_METER/UP_NEXT/FOO_CHK/LINE2_DISCORD/ROTTENOUS/P061_P062/CAR_RULE/P063_LOG_VAULT False -> True, WALLET_LEGACY_HITS 10 -> 0, SWITCH_RCS=(0, 0, 0), WARM_CHECK_BOARD/HINT_HAS_CP/TP_GONE/EMPTY_LIST=True, DEL_RCS=(0, 0), CDROM_HITS 0 -> 4 & ESSAYS_1659 1 -> 3 & TRIMNOIR_CLEAN=True (76d4d9e510 live via post-receive), CREDS_READY/ACTIVE_TOKEN=True BANKED_ACCOUNTS_N=1 (HTTP 403 Gmail API enablement noted), Ruff exit 0, deed qamy.ai_1284-848fb4d4.zip.
# 2026-11-18 dismount PURE-ASCII DOUBLE-BUFFERED TITTLE-DROP BLITTER (`SUNPUG.IO & MIKELEV.IN`), DEC MODE 2026 VSYNC & CHUCK JONES INERTIA, HONEYBOT STORYTIME SIGN-OFF PARITY, & AMIGADOS/TRIPOS/WORA EAR-ORTHOGRAPHY (deeds through qamy.ai_1274-31af85e0.zip; pipulate commits d0c9501, acec407, 4808440; Gemini 4 Carbon High on every turn): connected John Langdon's Drexel typography & rotational/mirror ambigrams (plus his carbon-over-foam unsinkable Delaware River canoe, Columbus's egg, and Dr. Seuss's 50-word bet) to creativity forcing functions, Karl Popper's fallibilism vs. literalist dogma, Watt/stagecoach check-reins (CHISEL_STRIKE_MAX_PATCH_LINES = 220 catching a 269-line surge), 1975 Xerox Alto BitBlt + 1985 Amiga Agnus Blitter + MetaComCo/Cambridge BCPL TripOS -> AmigaDOS, 1991 FIGlet horizontal smushing (MIKELEV.IN 53 cols vs. MIKELEV IN 55 cols), DEC Private Mode 2026 synchronized VBlank updates + Chuck Jones's Chuck Amuck cartoon inertia, Niklaus Wirth's Pascal single-pass declaration order vs. apply.py's per-block Ruff F821 airlock (# Β§ ORDER BLOCKS FOR THE PER-BLOCK AIRLOCK amended), 4 RAG/bandit/quantization blindspots to Shannon surprise, and 12th-century medieval tittles + espeak-ng heteronym G2P; built has_tittle_drop(), ease_out_bounce_drop(), build_tittle_drop_spec(), render_tittle_frame_text(), _tittle_actor_state_at(), run_tittle_drop_card(), _figurate_tittle_drop(), tittle_drop in FIGURATE_REGISTRY, and (57, 14) measure_figlet() in imports/ascii_displays.py; wired _try_animated_card() across scripts/card.py and remotes/honeybot/scripts/card.py, added tittle/tittle_drop/sunpug aliases + ascii_displays reload in remotes/honeybot/scripts/stream.py, added -fsSL, AmigaDOS, FreeDOS, MS-DOS, POSIX, Alacritty, Bezier, pyfiglet, FIGlet, BitBlt, ambigram/ambigrams, TripOS, macOS, iOS, OSes, OS, DOS, WORA, TLDs/TLD, and IaC in remotes/honeybot/scripts/terms.py, and synced live to Honeybot via nixops.sh. WITNESSED: registered/exact_figlet_match/anim_fn False -> True (798/798 cells), measure (57, 11) -> (57, 14), card.py piped lines 13/29 -> 14/14, Honeybot SSH honeybot_pending_sync -> 2/2/4/1 + live --patronus tittle 6 on :10.0, Ruff exit 0, deed qamy.ai_1274-31af85e0.zip.
@@ -192,7 +193,6 @@ And then we demonstrate a level of competence like so:
# 2026-11-14 dismount O(1) NGINX HASH REDIRECT MAP ($REDIRECT_KEY), GENERATOR-SANITIZER CONTRACT UNIFICATION, FAIL-CLOSED WIPEOUT GUARDS, & LIVE CDN-EDGE MARKDOWN PUBLISH (deeds qamy.ai_1064-c6695eb4.zip through qamy.ai_1067-11c6f8a2.zip; pipulate commit 142899e; trimnoir commit 4a1450f737; Honeybot system /nix/store/z802z9i3aif0vmnqxw8ydw66nfaimsqx-nixos-system-honeybot-26.05pre913595.c6245e83d836; Gemini 4 Carbon High on every turn): diagnosed the 6,654-line preview drop where generate_redirects.py emitted per-row PCRE regexes (~^/<path>(?:/index\.md|/?)$) that sanitize_redirects.py rejected on '(', ')', and '|', wiping trimnoir/_redirects.map down to 2 rules with exit 0; replaced 6,656 linear PCRE map scans with a 2-rule upstream normalizer (map $uri $redirect_key) and mapHashMaxSize = 32768 in remotes/honeybot/nixos/configuration.nix; unified generate_redirects.py and sanitize_redirects.py on strict literal hash keys (^/[A-Za-z0-9/_.-]+$), hoisted lookup dicts (3.18s -> 0.67s), purged 3 stray .gif/ rows, healed .md/ target typos, and added fail-closed wipeout and >10-line reload guards in sanitize_redirects.py and remotes/honeybot/hooks/post-receive (# Β§ NORMALIZE ONCE, HASH LITERALS, & FAIL CLOSED ON SANITIZER WIPEOUTS). WITNESSED: RULES 2 -> 6653, O1_VALID 0 -> 6653, REGEX_TILDE 2 -> 0, STRAY_GIF_SOURCES 3 -> 0, NIX_AST_OK=True, HONEYBOT_STATE ETC_REDIRECT_KEY=True LIVE_RULES=6653 LIVE_REGEX=0 NGINX=active, LIVE_301S 6/6 HTTP 301 (/2005/07/26, /2005/07/26/, /2005/07/26/index.md, /feed, /poetry/a-hire-a.html, /content-negotiation/textual/index.md), LIVE_200S 6/6 HTTP 200 HTML + RFC 9110 Markdown including /futureproof/markdown-cdn-edge-retires-seo-crawlers/, Ruff exit 0, deed qamy.ai_1067-11c6f8a2.zip.
# 2026-11-13 dismount SEED-SETTLE-BUD TWO-TIER SEMANTIC HUBS (488 -> 28 PERMANENT /<SLUG>/ HUBS), RIVER ADWIN EMERGING-TOPIC RADAR, 4,663 SINGLE-SLASH NGINX 301 REDIRECTS, CWD-INDEPENDENT PUBLISHIZER, & CDN/NPC/ML EAR-ORTHOGRAPHY (deeds through qamy.ai_1025-cad9f454.zip / qamy.ai_1026-160a3f2d.zip; pipulate commits 1006118, 638323b, 522f8e1, 9364256, 4450f4f; Gemini 4 Carbon High on every turn): connected Matrix rain & seeing the woman in red to enterprise ADNS + Orange-to-Orange (O2O) zero-origin-touch edge log telemetry (HitTail for the Agentic Web), RFC 9110/9111 Watts-Strogatz <=3-hop edge Markdown discovery vs. Meta (meta-externalagent 4,600 JS triggers) and OpenAI (OAI-SearchBot 3,475 + GPTBot 948 JS triggers) building crawl-and-index Junior Googles, Popperian experimental-site falsification, Coachman diff-horizon reins + Karl Weick HRO design-time Python compilers vs. runtime LLM swarms, Kalman filters + Jim Simons's Medallion Hidden Markov Models (Baum-Welch speech lineage + Chern-Simons 3-form) + river online state updates vs. freeform LLM-edited wikis, Daoist Yin/Yang tech partnerships (Lovelace/Babbage, Hopper/UNIVAC, Bardeen/Brattain, Jobs/Woz, Honeydew/Beaker), and McClane (eye-orthography) + Gruber (ear-orthography) Ho-Ho-Ho; upgraded scripts/articles/build_knowledge_graph.py (_load_post_fast 8 KB header slice, sorted shard glob, seeded TruncatedSVD(random_state=42), plural/acronym canon, 14%-floor Bayesian-smoothed Fowlkes-Mallows specificity, --candidates report, K=28 Spherical K-Means + P=9 Ward macro-pillars -> 19 sub-hubs persisted in _data/hubs_manifest.json for assign-only daily routing, river 0.25.0 ADWIN + momentum radar flagging RFC 9110 8.48 & Honeybot 6.25, article-majority hub-to-hub 301 harvesting into _data/retired_hubs.json, and SCRIPT_DIR outputs); swapped shutil.rmtree in scripts/articles/generate_hubs.py for content-checked pages/<slug>.md sync; fixed all 4,190 //?$ double-slash regexes, .md/ enforce_slash, sitemap-branch-0..15 protection, and retired_hubs.json ingestion in scripts/articles/generate_redirects.py; anchored subprocess cwd in scripts/articles/publishizer.py (# Β§ SEED-SETTLE-BUD HUB ROUTING & SCRIPT-RELATIVE PIPELINE CWD); and added CDN/CDNs, NPC/NPCs, scikit-learn, TruncatedSVD, TF-IDF, SVD, ADWIN, HMM/HMMs, Karpathy, and Kalman to remotes/honeybot/scripts/terms.py. WITNESSED: ROOT_MD 488 -> 0, SEMANTIC_MD 0 -> 28 (second pass 0 written, 28 unchanged, 0 pruned), RETIRED_HUBS 0 -> 482, DOUBLE_SLASH 4190 -> 0, MAP_LINES 4192 -> 4663 (8 revived hub collisions auto-purged), HUB_XML_URLS 481 -> 28, BRANCH_XMLS 7 -> 9, GRAPH_NODES 2128 -> 1668 (LINKS 1667), RUN_STEP_CWD/HUB_NAV_ABS False -> True (19.60s full run; 537 trimnoir paths staged for publish --reboot), terms.py gloss-guarded TTS green, Ruff exit 0, deed qamy.ai_1026-160a3f2d.zip.
# 2026-11-13 dismount MIKELEV.IN MESSAGE IN A BOTTLE & COLD-START BLIPVERT (SITE 1 OF 9), OPERATION GKAAUAH PLAIN-WORD & MARKDOWN LIST PAUSE HUMANIZER IN TERMS.PY, HONEYBOT 3-TIER DEPLOY MATRIX, & 492-HUB RULE-OF-7 CHURN DIAGNOSIS (deeds qamy.ai_1001-dd48e868.zip through qamy.ai_1014-1e2d44e5.zip; trimnoir commit e55f959b0e; pipulate commits 5fd8148, dd96517, 273d23e, a07505a; Gemini 4 Carbon High on every turn): connected the Passover Seder Four Questions (cold-start clarity without an assumed decoder ring), Hilkhot Safrut + Claude Shannon's digital checksums vs. Murphy Incarnate (entropy), Landauer's principle (erasure heat vs. reversible pendulum computation, proven live when GLOSSARY.md 390,886 B + foo_files.py 317,065 B + Turn-5 PROMPT 208,548 B hit 1,000,400 B at deed 1012 before Coachman's Veto trimmed context to 635,083 B), the Munchhausen trilemma + induction, the 1944 G.I. Bill (BAM!), Susskind vs. Feynman, Asimov's Trantor & Herbert's Dune (The Wisdom of The Crowd vs. the tyranny of the commons), Norma Centroid's Anthropologist-from-the-Future cold open, Web 2.0 HitTail + FOSS resilience, and the real death of 30-year ten-blue-link SEO in favor of sovereign AI-Readiness Consulting; added fence-safe ordered (1..20 -> One..Twenty) and bulleted (-, *, +) Markdown list paragraph-pause expansion plus Operation GKAAUAH phonetic expansions (Piper TTS -> Piper Text to Speech, bare TTS -> text to speech, OOB -> out of band, FYI -> for your information, SVG/SVGs, GKAAUAH, BAM, G.I. Bill, Inter-webs, blipvert, Hilkhot Safrut, Landauer, Munchhausen, Susskind, Feynman, Pareto, Bobiverse) in remotes/honeybot/scripts/terms.py (# Β§ OPERATION GKAAUAH: PLAIN WORDS OVER GATEKEEPER ACRONYMS); deployed the Message in a Bottle SVG + cold-start blipvert + ?src=bottle wire dye + homepage <link rel="alternate" type="text/markdown"> across trimnoir/{index.md,_layouts/default.html,assets/main.css}; mapped ytoutro sync vs. ytreboot vs. nixops vs. publish; and diagnosed the 492-file pages/root_X_Y_Z.md K-Means stuttered-permalink churn (/fasthtml/htmx/htmx/, 4,193 _redirects.map lines, and generate_redirects.py:178 double-slash bug) for P0.19 alongside P0.33. WITNESSED: list/bullet/GKAAUAH straddles green locally & on live Honeybot (pid=1631604 -> 1638939 -> 1654268), 'for your information: the text to speech preprocessor renders S V G without out of band.' (0.0722s), https://mikelev.in/ HTML (1 -> 3 hits: line 14 Source Markdown + line 502 .message-bottle) & Accept: text/markdown (0 -> 2 hits: lines 27, 32), foo_files.py # Β§ OPERATION GKAAUAH (383) + P0.33 (1632) + P0.19 (1640 -> 1642), HUBS=492 UNIQUE_PERMS=492 REDIRECT_LINES=4193, Ruff exit 0, deed qamy.ai_1014-1e2d44e5.zip.
-# 2026-11-12 dismount AI-READINESS CONSULTANT PLAYBOOK (NEIN JUAN WAN 1 & 2 / RFC 7231->9110/9111), HONEYBOT-SIDE 911 OPTICS SIFT & OUTRO PITCHES, SCREENSHOT REPORT BORDERS, CONTINUOUS DRIPULATE.WAV BGM ACROSS YTSTAGE, & HEADING-ISOLATED SPEAKER RESTORATION (deeds qamy.ai_998 through qamy.ai_1000-cd55f4a2.zip; pipulate commits a621063, 342c933, 184ef87; Honeybot system /nix/store/68qiwsknriax9lbn9fmxm04ilarf91yh-nixos-system-honeybot-26.05pre913595.c6245e83d836; Gemini 4 Carbon High on every turn): mapped the 2007-2017 Mobile-First Responsive Web Design arc onto the 2026-2036 Agent-First Edge consulting blueprint (RFC 7231 -> RFC 7763 -> RFC 9110 Section 12 Accept: text/markdown + RFC 9111 Section 4.1 Vary: Accept cache-key normalization, PDP/PLP JSON-LD rescue, Cache-Tag webhook purges, ADNS/O2O log sovereignty, hierarchical sitemap.xml + llms.txt feeds, and curl | less + DetSys /nix/store/ Magic Cookie zero-machine-rot hygiene) narrated via Nein Juan Wan 1 & 2 plus a 30-and-3 Titanic SEO wake-up reduction; wired DEFAULT_OPTICS_SIFT_TEXT, DEFAULT_OPTICS_OUTRO_TEXT, terms.py phonetic filtering, and continuous dripulate.wav SIGCONT/auto-start keep-alive in scripts/ytstage.py; stamped MikeLev.in, SunPug.io, and MikeLev.in/discord into report borders and added the Beat 5 screenshot voice cue in remotes/honeybot/scripts/forest.py; added Nein Juan Wan, RFC 7231/7763/9112, JSON-LD, O2O, DetSys, mikelev.in/discord, and heading-bounded SPEAKER_TURN_RULES in remotes/honeybot/scripts/terms.py; isolated PP4HEADINGSTART paragraphs in remotes/honeybot/scripts/content_loader.py and guarded straddle speaker transitions and Discord/SunPug CTAs across stream.py, score.py, and logs.py (# Β§ CONTINUOUS BGM CARRIER WAVES & HEADING-ISOLATED SPEAKER TURNS). WITNESSED: OV_TITLE/BI_TITLE/SHOT_CUE/SIFT_TTS/DISCORD_FTR/TICKER_DISCORD/SCORE_DISCORD False -> True, HEADING_LINES ['Mike:', '[[HEADING:THE AI-EDIT METHOD]]', 'Body'], Cue 366 ['shipmunk'] -> ['norma', 'mike'], live Honeybot pid=1414951 -> 1429645 continuous BGM + speaker return verified on air, Ruff exit 0, deed qamy.ai_1000-cd55f4a2.zip.
# --- END RECEIPTS ---
# And when that's done we like to note with yet more prose that you're the GOAT
@@ -390,6 +390,7 @@ And then we demonstrate a level of competence like so:
# color the canvas. I do a lot of gessoing over the canvas to start fresh, but a
# bit lumpy. That lumpiness is cruft and tech liability. Let's prune!
+# Β§ BARE-NUMBER CHAT MENUS, PER-KIND COOLDOWNS, & DOWNWARD-ONLY FUNNEL DIODES (banked 2026-11-20, deed 1305) -- Let live-chat viewers control broadcast playback with bare menu numbers and a 'MENU' command guarded by per-kind cooldowns (so opening the menu never locks out picking a story seconds later) while returning automatically to the headline episode after one read, and enforce a downward-only citation diode across multi-domain content funnels (mikelev.in workshop -> sunpug.io parables -> rfc9110.org CMO -> rfc9111.io CTO) so specification doors never link back upstream.
# Β§ LOGARITHMIC PERCH, 1:4 OVERLAY DUTY CYCLES, & STAMP-GATED REBOOT COVER (banked 2026-11-19, deed 1294) -- Hold visual sight-gag setups ~3.5-4.0s before motion so logarithmic human perception registers the anomaly, pace detached transparent Alacritty overlays (window.opacity=0.0, start_new_session=True, stdin=DEVNULL, close_fds=True) on a 1:4 fall-to-pause duty cycle while keeping analytical reports free of spoken URL plugs, and gate post-reboot overlay dismissal on a /tmp timestamp plus compiled playlist readiness rather than a fixed boot sleep.
# Β§ ONE COMMIT STORY PER FENCED CAR & THE 120-LINE AIM (banked 2026-11-19, deed 1278) -- Emit independent file or mechanism edits in (3) PATCHES as separate sequential fenced cars (Car 3a, Car 3b, ...; aim <= 120 replacement lines per fence, hard cap 220) so each patch -> app -> d -> m cycle produces one human-readable git diff and an anchor miss in one car never rolls back an unrelated file.
# Β§ THE WAFER-THIN MINT & PLAIN-TEXT PIPE RULE (banked 2026-11-18, deed 1264) -- Reserve Rich and ANSI color strictly for terminal-sink UIs that never pipe into context.txt (such as prompt_foo.py's console summary or Honeybot's OBS screen), keep every composable CLI lens plain text with fixed-width alignment, and treat multi-retry AI friction on a cosmetic feature as the signal to drop the wafer-thin mint and simplify.
@@ -458,7 +459,7 @@ And then we demonstrate a level of competence like so:
# Β§ LOCK CODE BLOCKS TO ONE PALETTE (banked 2026-10-27, deed 387) -- Separate theme-switching UI surface variables (--card-bg) from syntax-highlighted code variables (--code-bg, --code-text, --code-border) and lock fenced code blocks to a single high-contrast palette across Day and Night modes so Rouge token spans never stripe against dark-mode backgrounds.
# Β§ SAME-ORIGIN JSON OVER THIRD-PARTY EMBED PROXIES (banked 2026-10-27, deed 387) -- When a platform's permanent live-embed URL breaks on rotated streams, push the active stream ID from the operator's own control scripts (ytroll, ytwatch, publishizer) to a tiny same-origin JSON file (/live_video.json) rather than routing client browsers through a rate-limited third-party RSS-to-JSON proxy.
# Β§ PIN AVAHI TO THE LAN INTERFACE (banked 2026-10-27, deed 376) -- Set services.avahi.allowInterfaces to the physical LAN NIC (such as [ "eno1" ]) on hosts running VPN tunnels or virtual bridges so interface flaps on lo or wg0-mullvad never trigger an mDNS self-conflict that silently renames host.local to host-2.local.
-# Β§ ORDER BLOCKS FOR THE PER-BLOCK AIRLOCK (banked 2026-10-27, deed 367; amended 2026-11-18, deed 1271) -- apply.py validates whole-file syntax and unbound names (ast.parse, ruff F821/F823, nix-instantiate --parse, json.loads) after each individual SEARCH/REPLACE block rather than once at the end of a car; stage new def/symbol blocks ahead of upper caller blocks, remove variable references before removing their definitions, and promote elif branches to if before deleting their leading if block so every intermediate file state passes the airlock.
+# Β§ ORDER BLOCKS FOR THE PER-BLOCK AIRLOCK (banked 2026-10-27, deed 367; amended 2026-11-20, deed 1305) -- Since commit 9232347 apply.py validates whole-file AST and unbound-name airlocks (ast.parse, ruff F821/F823, nix-instantiate --parse, json.loads) once per staged file after all surgical blocks in a car apply in memory (ahead of any disk write) so multi-block symbol renames in one car no longer false-positive mid-flight, while ordering definitions ahead of callers across contiguous blank-free spans remains best practice for single-car resilience.
# Β§ A PATH LABEL IS NOT A FILE (banked 2026-10-04) -- When one queue stores filesystem paths and synthetic receipt labels in the same `path` field, any file-only consumer must establish filehood with `os.path.isfile(path)` or an equivalent filesystem test in addition to checking a suffix; a receipt whose label happens to end in `.py` is still a receipt.
# Β§ THE TERMINAL HOUSE STYLE (banked 2026-10-04) -- Quiet the console, not the evidence: keep measurements, safety states, failures, delivery receipts, and decision-useful output visible; demote announcements and duplicate detail to logger.note()/--verbose, and never let quieting trim archived evidence or safety gates.
# Β§ SYSTEM-SHELL PARITY OVER AUTO-ENV (banked 2026-10-08) -- Never auto-spawn devshells or pollute global interactive environments with workspace flake libraries; port daily-driver muscle memory functions (d, g, m, blast) as native interactive shell functions in system configuration to avoid evaluation latency, library shadowing, and broken system binaries.
(nix) pipulate $ m
π Committing: chore(router): set AI-edit blast boundary (foo_files.py context curation)
[main 943e961] chore(router): set AI-edit blast boundary (foo_files.py context curation)
1 file changed, 3 insertions(+), 2 deletions(-)
(nix) pipulate $ patch
(nix) pipulate $ app
β
DETERMINISTIC PATCH APPLIED: Successfully mutated 'foo_files.py'.
π Car meter: 1/5 file(s), 3/12 block(s), 5/220 line(s) (aim <= 120/car)
(nix) pipulate $ d
diff --git a/foo_files.py b/foo_files.py
index e0f739d..9e9035e 100644
--- a/foo_files.py
+++ b/foo_files.py
@@ -1688,8 +1688,8 @@ apply.py
# - TODO (2026-11-18, P0.58 RFC 9111 VARY-ACCEPT, LINK-HEADER, & REFERRER-POLICY RUBRIC IN 911 LLM OPTICS): Extend `apps/911_optics_workflow.py`'s wire-truth spectrometer to grade `Vary: Accept` bimodal edge-cache safety (RFC 9111 cache-key check), HTTP `Link` discovery headers (`rel="alternate"` `type="text/markdown"`, `rel="llms-txt"`, `rel="agent-skills"`), and `Referrer-Policy` attribution preservation inside sealed `optics_deed.zip` deliverables. Gate: `911_optics_workflow.py` flags missing `Vary: Accept` on negotiated Markdown endpoints and records `Link` + `Referrer-Policy` verdicts in `optics_deed.zip`.
# - TODO (2026-11-18, P0.57 PORTABLE CLOUDFLARE O2O & ACCESS-LOG SQLITE RADAR FOR CLIENT AUDITS): Extract `remotes/honeybot/scripts/db.py`'s compound-key `referrer_radar` (`PRIMARY KEY (ref_apex, domain_id, path_id)`) + RFC 9110 `Accept: text/markdown` vs. JS-hydration schema into a standalone offline CLI analyzer (`scripts/edge_log_radar.py`) that ingests any client's Cloudflare O2O/Logpush NDJSON or Nginx/Apache access-log export into `Workshop/corporate/` SQLite and emits a Post-GSC AI & Search Discovery scorecard beside `optics_deed.zip`. Gate: synthetic Cloudflare Logpush NDJSON + Nginx combined fixture builds a local `.db` and prints `referrer_radar` (`N`, `P` IPs) + Markdown negotiation ratios in `<2s` offline.
# - TODO (2026-11-18, P0.56B `norma --demand` EXTERNAL-PULL ROUTING): Symmetric `radar ai [top]` & `radar links [top]` velocity (`9d899c1`), plain-text `yt`-style `radar help` cheat-sheet + left-aligned velocity columns + `yahoo.*`/`baidu.*`/`marginalia-search.com` & scanner-referrer bucket hygiene (`6dbfc41`, `qamy.ai_1264-bbe06c01.zip`; Rich rejected for pipeable lenses), and `/rant` -> `"End rant"` (`a3fa4c0`) LANDED; OWED: add `--demand` (`norma demand` in `flake.nix`) to `scripts/articles/norma_extract.py` joining un-minted `_posts/*.md` candidates against `referrer_radar` human IP breadth (`P`) so evergreen search/AI pulls float up the `sunpug.io` Storytime queue. Gate: `norma --demand` ranks un-minted posts by live `P` with zero stderr warnings.
+# - TODO (2026-11-20, P0.64 FOUR-TIER DISTILLATION DIODE & PEAK GUARD): Build downward-only CMO/CTO feeds on rfc9110.org and rfc9111.io (zero upstream links) + IETF-author Weebo cue, and gate ytwatch peak_viewers reset on .reading_trigger/video_id. Gate: peak holds on chat takeover.
# - TODO (2026-11-19, P0.59 3-HOP MARKDOWN WEB, ADNS, & O2O CONSULTING CORNERSTONE): Publish flagship consulting blueprint pairing 3-Hop RFC 9110/9111 Markdown feeds with ADNS + Cloudflare O2O zero-export edge logs as a sovereign GSC/HitTail replacement. Gate: live post on mikelev.in.
-# - TODO (2026-11-19, P0.60 ON-SCREEN ARTICLE JUKEBOX MENU): Render an Article Jukebox Menu of recent _posts/_abstracts/ Puppet Theater titles and jukebox <ID> coins across remotes/honeybot/scripts/{forest.py,score.py,logs.py}. Gate: menu renders on :10.0 and coin switches show.
# - TODO (2026-11-19, P0.61 SUN PUG TRUE-POSITIVE INSTALL COUNTER): Count real curl|bash Sun Pug installs via CLI User-Agent + install.sh -> key.rot sequence while filtering link-scanners (QlyzeBot, Google-Safety) in Honeybot SQLite. Gate: scanner probes score 0 false-positive installs.
# - TODO (2026-11-19, P0.62 SHOW-AND-TELL COMMUNITY LAUNCH MAP): Curate builder communities with explicit creator self-announcement lanes (Show HN, Lobsters show, r/NixOS, r/commandline, Console.dev) with per-venue rules and Sun Pug angle. Gate: vetted launch table banked.
# - TODO (2026-11-17, P0.53 INTERACTIVE CHAT-QUEUED 911 LLM OPTICS AUDITS, AMUSEMENT-PARK SHOW CLOCK, & `#ticker_bar` BISECTION): Extend `ytwatch` allowlisted chat parsing to accept bare viewer domains sanitized against off-repo `~/.config/pipulate/domain_denylist.txt`, display the next queued domain plus an estimated `"NEXT SHOWCASE IN MM:SS"` countdown in `#chat_sliver`, run 911 LLM Optics over HTTP headers/RFC 9110 Markdown/DOM telemetry only (never rendering untrusted pages on `:10.0`), and bisect `#ticker_bar` copy (`LIVE AI-READINESS AUDIT`). Gate: sanitized chat domain queues visibly in `#chat_sliver` and completes a wire-only Optics audit safely.
@@ -1703,7 +1703,7 @@ apply.py
# - TODO (2026-11-12, P0.32 SPARE HARDWARE CARTRIDGE PROJECTION & FULL-EPISODE SPEAKER-RETURN WATCH): Project `remotes/honeybot/nixos/configuration.nix` onto a second and third junk-pile laptop cartridge to rehearse cold hardware replacement, and audit full-episode speaker-role transitions across every `OPTICS_SLOT` and station-break return. Gate: Cartridge #2 boots identical Observatory HUD + 3-voice Piper cast via `nixos-rebuild switch` and completes a full article cycle with zero speaker-role drift.
# - TODO (2026-11-16, updated 2026-11-18, P0.31 TWO-SITE SEROTINOUS CONE SPLIT, SUNPUG.IO SHOSHIN BLOG, & ARTISANAL NORMA PINBALL EXTRACTOR): Permanent `article_id`, `jukebox_coin` nav gate, `norma` Tier-3 CLI (`1a940fa`), Rung 1A `_posts/_abstracts/` gate (`afbf941`), `trimnoir/_config.yml` exclude (`5c16f910d5`), live YouTube cones `#1654` (`fQEBRYWEI5c`) + `#1655` (`49f79d5aa0`, `nl4QtJkMhs0`), and 2:3 coprime showcase loop (`44b6363`) ALL LANDED; OWED: Rung 4 (`! markov` `lift=3.60` `Jekyll` bridge β graduate `sunpug.io` into `blogs.nix` Target 9 `alias = "sunpug"` preserving `curl -fsSL sunpug.io | less` + RFC 9110 `Accept: text/markdown` while projecting `_posts/_abstracts/` one-way into `sunpug` `_posts/`). Gate: Storytime airs live from `_posts/_abstracts/`, `sunpug` projects parables one-way with zero dual-copy drift, and `πͺ jukebox <ID>` lights up on minted parent posts.
# - TODO (2026-11-16, updated 2026-11-18, P0.51 "THE ORTHOGONAL AXES" DUAL MOVIOLA SCRUBBERS, MOVIOLA.JSON SPINE, & JUKEBOX COIN BAR): Run Runway Rung 1B (`scripts/articles/generate_post_nav.py` emitting `jukebox_index`, `jukebox_coin`, and `/moviola.json`), Rung 2 (`apps/840_git_slider.py`-inspired dual scrubbers across `index.md` and `_layouts/post.html` with zero layout shift: one full-archive long-form slider plus a dedicated Jukebox-Coin slider stepping strictly across `jukebox_coin: true` Storytime editions), and Rung 3 (desktop `(hover: hover)` lazy-loading D3 "You Are Here" vs. mobile `(hover: none)` 3-Hop Metro Card + `πͺ Jukebox Coin` copying `jukebox <N>` and playing Piper `.wav`). Gate: `/moviola.json` builds cleanly, zero vertical position jump between Home and Post, desktop hover reveals D3, mobile drag swaps 3-Hop card, and `πͺ` copies `jukebox <N>` + plays `.wav`.
-# - TODO (2026-11-15, P0.50 JUKEBOX LIVE-CHAT WITNESS & BOTTOM-ROW CARD TRIM): Wide `STORYTIME #N` Figlet geometry (`width=160`, `no_wrap=True`) and `in/miklevin` LinkedIn sync landed at commit `e1f9d55` (deed 1144); OWED: trim 1 extra bottom blank row on titled Storytime Alacritty cards (keeping top padding unchanged) and witness a live `jukebox <N>` chat trigger on air. Gate: symmetric top/bottom card margins on `:10.0` and live `jukebox <N>` chat switches tracks cleanly.
+# - TODO (2026-11-15, P0.50 STORYTIME CARD BOTTOM-ROW TRIM): Bare-number chat takeover (1656) witnessed live at deed 1304; OWED: trim 1 extra bottom blank row on titled Storytime Alacritty cards (keeping top padding unchanged). Gate: symmetric card margins on :10.0.
# - TODO (2026-11-11, updated 2026-11-15, P0.29 UNIFIED PRIME-HONEYBOT SQLITE TELEMETRY, BOUT BISECTION, & MARKOV RETENTION): Persist normalized 3NF WAL-mode studio telemetry on Prime (`~/.local/share/pipulate/telemetry.db`: `episodes`, `articles`, `ytwatch_bouts`, `stage_cues`) joinable via `ATTACH DATABASE` against synced Honeybot `db.py` (`honeybot.db`) snapshots, stamp active `(article_slug, cue_idx, heading, active_overlay)` in `remotes/honeybot/scripts/stream.py`, expose `ytwatch bouts` (`ytlog --summary`), and feed per-cue bounce/survival transitions into `scripts/markov.py` to optimize Norma Centroid's normie extractions. Gate: `ytwatch bouts` prints per-article dwell/bounce survival from `telemetry.db` and `markov` scores cue retention transitions.
# - TODO (2026-11-10, P0.28 SVNP CONSULTING FLYWHEEL & 911 OPTICS DEED OUTREACH): Operationalize the Butterfly Net multi-client retainer mesh by running `apps/911_optics_workflow.py` against prospective client domains, delivering sealed `optics_deed.zip` wire-truth vs. hydrated-DOM audits alongside `qamy.ai` and `sunpug.io` self-verifying doors, and tracking reciprocal `VERIFY:RFC9110` and `DOOR:INSTALL` triggers on Honeybot. Gate: first outbound `optics_deed.zip` delivered to a prospective retainer client and witnessed in live telemetry.
# - TODO (2026-11-10, P0.25 WEB-PUBLISHED GLOSSARY.MD FOR YOUTUBE & ARTICLE DESCRIPTION LINKS): Transform tracked `GLOSSARY.md` into a clean, anchor-indexed Jekyll page at `mikelev.in/glossary/` (with RFC 9110 `Accept: text/markdown` parity) during `publishizer.py` / `publish` and surface the link in `ytdesc` Broadcast Kits so viewers and AI agents have a permanent lexicon URL.
@@ -1724,7 +1724,7 @@ apply.py
# - TODO (2026-11-19, FRONT-LOAD 911 OPTICS D3 FORCE-GRAPH IN ?DEMO=1): Surface the D3 forceRadial DOM link-graph immediately in apps/911_optics_workflow.py and assets/scenarios/optics_test.json instead of scrolling plain link lists first. Gate: force-graph opens first on :10.0.
# - TODO (2026-11-19, GMAIL 403 CHECK-GATE & 19-FILE LEGACY VENDOR PURGE): Multi-account vault, warm check, & email --delete landed (5e92397..bd81606); OWED: gate warm_or_switch GREEN on check() + --no-browser URL mode in gmail.py, and scrub 19 tracked legacy-vendor files. Gate: honest 403 + 0 legacy hits.
-# - TODO (2026-11-19, TICKER, README, & SOVEREIGN WEIGHT-VAULT REFRESH): Refresh Honeybot #ticker_bar + root README.md for 3-Hop Markdown/SunPug positioning, and audit local Ollama/HF caches to replace zero-byte :cloud tags with offline weights. Gate: updated ticker/README and offline model manifest.
+# - TODO (2026-11-19, README & SOVEREIGN WEIGHT-VAULT REFRESH): Dynamic Story-Control #ticker_bar landed (137959e); OWED: refresh root README.md for 3-Hop Markdown/SunPug positioning and replace zero-byte Ollama :cloud tags with offline weights. Gate: updated README and offline model manifest.
# - TODO (2026-11-18, THREE-STATE `#chat_sliver` CYCLE & RETIRE 20-SECOND STAY PLEA): Cycle Honeybot's wafer-thin bottom `#chat_sliver` bar in `remotes/honeybot/scripts/logs.py` across 3 calm-technology states -- (1) where to find the print version on `mikelev.in`, (2) how to get Jukebox Coins (`jukebox <ID>`) to play other Storytime articles, and (3) `"Step #3: Profit?"` -- while removing all `"Stay with this screen for 20 seconds"` pleas from `remotes/honeybot/scripts/`. Gate: `rg -i '20 seconds' remotes/honeybot/scripts/` prints nothing and `#chat_sliver` cycles all 3 states on `:10.0`.
# - TODO (2026-11-18, THANKSGIVING SEASONAL OBSERVATORY THEME): Add a config-gated Thanksgiving seasonal theme (warm harvest amber/copper border palette and seasonal gratitude station-break card) across `remotes/honeybot/scripts/{logs.py,forest.py,score.py}` that toggles off cleanly in one place after the holiday week. Gate: seasonal theme renders cleanly on Honeybot `:10.0` with zero layout shift and disables via one flag.
# - TODO (2026-11-18, SANITIZER, ARTICLEIZER, & NORMA COMMONMARK FENCE-LENGTH PARITY): Upgrade fence scanners in `scripts/articles/{sanitizer.py,articleizer.py,norma_extract.py}` to track opening backtick/tilde run length (`>= 3`) so 4-backtick outer CommonMark fences enclosing 3-backtick inner examples (such as `#1656` plunger extraction) never close early or trigger false unclosed-fence errors (completing 2026-07-17 Pinboard Phase 1 beside `apply.py` and `prompt_foo.py`). Gate: synthetic 4-backtick draft wrapping 3-backtick blocks passes `sanitizer.py`, `articleizer.py`, and `norma_extract.py` fence-stripping intact.
(nix) pipulate $ m
π Committing: chore(router): set AI-edit blast boundary (foo_files.py context curation)
[main 59e1240] chore(router): set AI-edit blast boundary (foo_files.py context curation)
1 file changed, 3 insertions(+), 3 deletions(-)
(nix) pipulate $ git push
Enumerating objects: 8, done.
Counting objects: 100% (8/8), done.
Delta compression using up to 48 threads
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 2.85 KiB | 582.00 KiB/s, done.
Total 6 (delta 4), reused 0 (delta 0), pack-reused 0 (from 0)
remote: Resolving deltas: 100% (4/4), completed with 2 local objects.
To github.com:pipulate/pipulate.git
bacc04b..59e1240 main -> main
(nix) pipulate $
Book Analysis
Ai Editorial Take
And then the surprising thing the author did next was throw away the 1950s word jukeboxβand in doing so, collapse broadcast UX, URL routing, and security into a single bare integer. Viewed through Claude Shannonβs information theory, almost everything written today about βinteractive AI mediaβ and βAI SEOβ carries near-zero surprisal: predictable recipes chaining untrusted chat APIs into brittle LLM tool loops, or repackaging thin content under made-up acronyms. By contrast, every turn of this artifact is rich with falsifiable wire surprisalβcatching a mid-patch unbound-symbol rollback before a byte hits disk, holding a real human viewer across a Linux process restart with a transparent Falling Alice overlay, and watching ytwatch hot-reload via os.execv in five seconds to actuate menu and 1656 live on air. A knee-jerk Kuhnian gatekeeper will dismiss a home-hosted NixOS fishtank or bare numeric chat codes as eccentric homelab theater compared to enterprise SaaS portals. That objection misses a potent strategic second-order effect not yet named in the dialogue: every bare story number typed into YouTube Live Chat, paired with immediate mikelev.in/<ID> HTTP 301 hits in SQLite, acts as a zero-cookie, tamper-evident market-demand sensor. Viewers voting with four-digit integers in public chat automatically rank which raw workshop experiments deserve immediate distillation into CMO (RFC9110.org) and CTO (RFC9111.io) executive briefs.
π¦ X.com Promo Tweet
Wire YouTube Live Chat to a 24/7 Linux stream with bare menu numbers, 5s hot-reloads, and zero LLM shell risk.
https://mikelev.in/futureproof/youtube-chat-linux-stream-remote-no-llm/
#Linux #Python #RFC9110
π¨ Hero Banner Image Prompt
A dramatic widescreen graphic-novel ink-and-wash technical illustration set against a deep obsidian-slate (#111111) void. Vertically centered in the frame is a luminous panoramic glass aquarium housing glowing cyan, amber, and emerald fiber-optic server streams swimming like bioluminescent fish inside dark liquid. To the left, chaotic neon chat bubbles converge into a precision-machined brass and steel mechanical rotary airlock gateβno brain or robotβthat filters only clean golden light pulses into the glass tank, flipping sleek split-flap mechanical relay blades inside the water. High-contrast rim lighting, crisp architectural linework, rich atmospheric depth extending seamlessly to all four edges. Full-bleed edge-to-edge composition filling 100% of the canvas with no borders, no frames, no matting, no margins, and no text overlays or lettering.
πΌοΈ YAML Frontmatter Image Override
image:
path: /assets/images/youtube-chat-linux-stream-remote-no-llm.jpeg
alt: "A glowing glass server fishtank in dark obsidian space steered by luminous chat pulses through a brass airlock."
Title Brainstorm
- Title Option: Turn YouTube Chat Into a 24/7 Linux Remote Without an LLM
- Filename:
youtube-chat-linux-stream-remote-no-llm.md - Rationale: [Contrast / Zero-Tax Leverage] Juxtaposes the risky industry default of wiring untrusted livestream chat into prompt-injectable LLM agents against a checkable Python allowlist, per-kind cooldowns, and atomic file swaps witnessed live on air.
- Filename:
- Title Option: Why Your CTO Spec Site Must Never Link Back to Your Own Blog
- Filename:
cto-spec-site-one-way-content-funnel.md - Rationale: [Information-Gap Anomaly] Spotlights the counter-intuitive downward-only content diode from the opening thesisβseparating raw R&D logs, interactive parables, CMO RFC 9110 briefs, and CTO RFC 9111 specs so upstream whimsy never breaks executive trust.
- Filename:
- Title Option: Why Your AI SEO Pitch Dies at the CTO Desk Without RFC 9111
- Filename:
ai-seo-pitch-cto-desk-rfc9111.md - Rationale: [Loss Aversion / Moat Threat] Targets the painful enterprise deal-killer where CTOs veto vague AI marketing pitches unless backed by the HTTP caching authority of Roy Fielding, Mark Nottingham, and Julian Reschke.
- Filename:
- Title Option: HTTPβs Own Authors Already Built Your AI SEO Stack for Free
- Filename:
http-authors-built-ai-seo-stack-free.md - Rationale: [Gatekeeper Myth Demolished] Exposes the vendor myth that AI search readiness requires $10K-per-month pre-render middleware by pointing directly to existing RFC 9110 content negotiation and RFC 9111 Vary: Accept caching.
- Filename:
- Title Option: Rebooting a Live Nginx Stream on Air With Zero Viewer Drop
- Filename:
rebooting-live-nginx-stream-zero-viewer-drop.md - Rationale: [Forensic Wire Receipt] Leads with the live-witnessed broadcast log where a transparent ASCII animation held a YouTube viewer across a server restart before os.execv hot-reloaded bare-number chat controls in five seconds.
- Filename:
Content Potential And Polish
- Core Strengths:
- Clear architectural framing of the 4-Tier One-Way Distillation Diode separating raw R&D logs, interactive parables, CMO RFC 9110 briefs, and CTO RFC 9111 specifications.
- Concrete security pattern for interactive livestreams: polling YouTube Live Chat from the LAN through a strict regex allowlist, per-kind cooldowns, and atomic file renames with zero LLM shell exposure.
- High-trust engineering transparency when a multi-block patch tripped Ruff F821 mid-car, immediately fixed by moving surgical AST and unbound-name validation to the post-loop staged buffer.
- End-to-end live verification in ytlog showing a 5-second os.execv hot-reload, live viewer retention across a server reboot, and real-time chat actuation of both MENU and story #1656.
- Suggestions For Polish:
- Once
previewandpublishmaterialize_redirects.mapon Nginx, add a one-line curl-I https://mikelev.in/1661receipt in a follow-up entry to close the shortlink loop on the public wire. - Gate
ytwatchviewer-peak resets on.reading_triggerandvideo_idtransitions rather than Jukebox story swaps so busy broadcasts retain their true session high-water mark.
- Once
Next Step Prompts
- Run
previewandpublishto materialize all 1,656+/<article_id>Nginx hash-map shortlinks on Honeybot, verifycurl -sI https://mikelev.in/1661returns an O(1) HTTP 301 to the canonical permalink, and test a live911chat trigger on stream. - Build the one-way
_posts/_abstracts/projection ontosunpug.ioalongside the bare-number coin bar ingenerate_post_nav.py, and gateytwatchpeak_viewersresets inscripts/articles/common.pystrictly on.reading_triggerandvideo_idchanges so chat story takeovers preserve session peak counts.
curl -fsSL https://sunpug.io | less
β’ LinkedIn
