Chronological Feeds Bury Your Best Pitch Every Time You Ship
• Mike Levin
Setting the Stage: Context for the Curious Book Reader
Every chronological blog, podcast, and live broadcast hides a structural tax on prolific builders: the moment you ship a fresh technical experiment, you push your highest-converting consulting pitch out of the top slot. Creators usually respond either by throttling their output to protect the shopfront window or by pouring months into static print-on-demand lead-gen books that modern buyers never read cover-to-cover—they simply drop the text into an LLM and ask what applies to their stack. Shipping uncut source archives (brain.zip) for on-demand AI synthesis solves the depth half of that problem, while splitting your public stage into a two-slot format wheel cures chronological self-cannibalization.
In this hands-on build, we upgrade a 24/7 NixOS and Python broadcast studio from a single-story chronological loop into an alternating Slot A <-> Slot B radio wheel—where Slot A automatically infers the newest published lab dispatch and Slot B locks an explicitly ID-pinned Q4 RFC 9110/9111 consulting cornerstone on air via a one-word ytpin command synced over warm SSH. Along the way, live viewer logs reveal why multi-hour listeners never touch public chat jukebox controls and why disk writeback I/O—not CPU priority—causes static-site builds to glitch live RTMP streams.
TL;DR: A continuous 24/7 NixOS and Python broadcast studio (Honeybot) reading technical articles aloud on YouTube Live previously looped only the single newest Storytime-eligible post, forcing the operator to mark new articles as non-broadcast asides (storytime: false) whenever a flagship consulting episode needed to remain on air. The playlist engine (content_loader.py, score.py, and stream.py) was upgraded to an A -> B -> A -> B alternating format wheel: Slot A automatically infers the newest non-aside Norma Centroid abstract on publish, while Slot B plays an explicitly pinned cornerstone episode selected by its permanent article_id via a new ytpin CLI (yt_watch.py, common.py, and flake.nix), automatically deduplicating to a single-story loop when unpinned or when both slots resolve to the same story. In parallel, ytwatch (yt_watch.py) was updated to normalize stage-state article strings to canonical #<id> keys so loop wraps no longer double-reset session viewer peaks.
Technical Journal Entry Begins
🔗 Verified Pipulate Commits:
Doing one thing well is my personal hell –
Or more accurately, not doing is,
For I bite off to much to keep firm in my clutch
Whatever’s the current day’s biz.
MikeLev.in: Okay, this is an very classic example of where the previous article is the takeoff ramp, or drop-hook – I haven’t decided which of these Aviation metaphors I like more – for the next article.
Let’s just do it.
Let’s do this one thing well.
All I want is some way to pin an article, probably by ID, and to have whatever is my latest article also automatically running.
My mind is already racing because I know not long ago I implemented an article index, aka a sequential ID that can’t change even if I delete old articles by virtue of how it’s rendered into the Jekyll article file YAML frontmatter, and then it occurs to me that that entire affair played out while I was trying to convince myself I wasn’t vibe-coding and may have been.
That’s because I’m not entirely sure how the current article to use as the one currently being read on the YouTube live-streaming Norma Centroid Puppet Theater is.
How do I do that, Gemini?
Stream Glitches, Workflow Friction, and Deferring the Rust Rewrite
And also along the lines of not being able to make myself a one track mind – for I frequently say that I’m a linear thinker, Mister Unicorn now fly away – probably improperly quoting this awesome old cartoon André 3000 which you’ll never see because he was canceled for something that’s rapidly becoming legal everywhere, which is a shame because it was exactly the ragtag group of divergent talented kids which is the model.
Anyhoo, what I was thinking in my non-linear yet still quite linear fashion is that I got rid of the “Updating” pop-up message in the YouTube live-streaming broadcast studio because it seems to have lived its purpose with the various optimizations I’ve made since then seeming to make it unnecessary. But it wasn’t true. It does seem to be necessary. On the last article publishing, it was one weird YouTube streaming hiccup after another. It might have been 3 or 4 straight through the Jekyll site-generation and I thought I was going to lose the stream which wouldn’t have been the worst thing in the world because it was winding down anyway, but still. Not good.
Another ancient quote that will make this make sense for no one is Dennis Miller’s old chestnut “Stop me before I subreference again”.
Well, I’m well rested after a nap and I need to choose how to best use this energy and sure I could make the 2 stories running at once…
Yes!
Yes, I have to stick with that and resist exploration of Jekyll-compatible Rust rewrite drop-in’s. That Rust re-write is inevitable and I will feel the pain and the friction of it on every publish when I see those streaming glitches, and so it doesn’t even need to go on a to-do list because the workflow’s friction is the to-do list and that’s the best kind of thing to defer for something that might be the difference between me turning December into the month of end-of-year budget Consulting Services capture or not, today being the last day of November 2026 as it is.
Okay, that decides it. It’s a lot of talk saying that we’re just going to stay on our current path that happens to end in a fast take-off ramp. Or maybe that’s with an airplane passing overhead dropping a hook to snag the balloon I’m rising up into the air with this article.
Which shall it be, Gemini?
Why Raw Source Zips Beat Print-on-Demand Lead-Gen Books
🎤
Gemini 4 Carbon High:
MikeLev.in: While I wait for Gemini’s response it’s time to get ahead of things with my thoughts.
This is a book. This is Future-proofing Yourself in the Age of AI and there will be no paper version because when I see people use print-on-demand slaughtering trees for some conversion mechanism as a way of making money in the field of SEO, it makes me sick. I mean I fall for it anyway and buy those books from my peers but it’s a habit I’m trying to kick. This above other things should be electronic, and a zip-file in particular for the very critical reason that:
- Nobody’s going to read it cover-to-cover as a book anyway – or at least not enough for it to be where the focus should be put.
- What they’re going to do is avoid reading it by asking an AI about it.
- So why not just not go through all that editorial and tree-slaughtering stuff rendering it into only one of the Vulcan IDIC (infinite diversity in infinite combinations) versions on dead-tree when I can give all the raw book-ore source material and say: “Just figure it all out yourself.”
Want an illustrated children’s book of it?
Fine, tell your AI that’s what you want and what children’s book illustrator style you’d like to use, or whatever. Why should I have to do that for you and render one version into concrete when anyone can bring that part of the distillation process to my source material.
But only I can bring this source material.
Only the raw book-ore is “me”.
I’m being put out enough making these Norma Centroid Puppet Theater Socratic Dialogues.
In the voice of W.C. Fields:
Get away from me kid, you bother me.
Decides to google whether that’s the right reference.
Google AI Overview:
The phrase commonly attributed to W. C. Fields is **“Get away from me, kid, you bother me”** (or “Go away, kid, ya bother me”).
Origins and Pop Culture
-
Comedic Persona: Fields cultivated a grumpy, cynical, and child-averse screen persona, famously remarking, “Never work with children or animals”.
-
Variations and Parodies: Users agree on Facebook that Fields frequently used dismissive lines toward children across films and radio. Commenters on Reddit also agree that Looney Tunes character Foghorn Leghorn popularized a memorable animated version of the catchphrase using a voice modeled directly on Fields.
MikeLev.in: Okay, well then in the voice of Foghorn Leghorn, then. That’s the big rooster smacking the dog in the memes. More people will “get” that.
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 $ pyprobe 'import sys; sys.path.insert(0, "remotes/honeybot/scripts"); import content_loader as cl, score; ids = cl.get_jukebox_playable_ids(); has_ab = hasattr(cl, "get_ab_playlist"); os.environ["HONEYBOT_PINNED_STORY_ID"] = str(ids[0]) if ids else ""; d1 = len(cl.get_ab_playlist()) if has_ab else None; os.environ["HONEYBOT_PINNED_STORY_ID"] = str(ids[1]) if len(ids) > 1 else ""; f_pinned = cl.get_featured_article_id(); pair = [a["jukebox_index"] for a in cl.get_ab_playlist()] if has_ab else None; s0 = next((v["meta"]["jukebox_index"] for c, v in score.get_script(ab_slot=0) if c == "CARD" and isinstance(v, dict) and "meta" in v), None) if has_ab else None; s1 = next((v["meta"]["jukebox_index"] for c, v in score.get_script(ab_slot=1) if c == "CARD" and isinstance(v, dict) and "meta" in v), None) if has_ab else None; sb = next((v["meta"]["jukebox_index"] for c, v in score.get_script(breaking=True, ab_slot=1) if c == "CARD" and isinstance(v, dict) and "meta" in v), None) if has_ab else None; os.environ.pop("HONEYBOT_PINNED_STORY_ID", None); print("AB_ENGINE:", has_ab, d1, pair, (s0, s1, sb), f_pinned == cl.get_featured_article_id())'
pyprobe 'os.environ["HONEYBOT_NO_AUDIO"] = "1"; sys.path.insert(0, "remotes/honeybot/scripts"); sys.path.insert(0, "scripts/articles"); import stream, yt_watch; has_fn = hasattr(stream, "_sync_ab_slot_state") and hasattr(yt_watch, "canonical_stage_article_key"); tf = tempfile.NamedTemporaryFile(delete=False, suffix=".json"); tf.close(); stream._sync_ab_slot_state(1, state_path=tf.name) if has_fn else None; loaded = stream._sync_ab_slot_state(None, state_path=tf.name) if has_fn else None; os.unlink(tf.name); k1 = yt_watch.canonical_stage_article_key("(\x272026-11-26\x27, 1, \x272026-11-26-freeze-urls-ai-doorway-filters.md\x27)") if has_fn else "a"; k2 = yt_watch.canonical_stage_article_key("#1677 [FREEZE URLS]: Freeze Your URLs (2026-11-26)") if has_fn else "b"; print("DIRECTOR_STAGE:", has_fn, loaded, k1 == k2, k1)'
rg -n "ytmax|--broadcast|storytime\.json" flake.nix scripts/articles/common.py remotes/honeybot/hooks/post-receive
AB_ENGINE: False None None (None, None, None) True
DIRECTOR_STAGE: False None False a
scripts/articles/common.py
1157: print(" ytmax 🎰 Toggle Max Headroom (`off` [default] | `on` | `12` Skinner VR-12)")
1277: print("🎛️ Quick Words: yt (help) | norma | ythero | ytyaml | tweet | linkedin | fb | discord | ytpebble | yttitle | ytdesc | ytfeature | ytcard | yttop | markov | radar | ytoutro | ytbgm | ytreboot | ytsay | ytticker | ytapp | ytvim | ytbreaks | weeboh | stage | ytwatch | ytlog | chime | ytmax | ytping | ytroll | ytbell | ytstatus")
1817: manage_ytmax_toggle,
1819: parse_ytmax_mode,
2109: cur_max_mode, _, _ = parse_ytmax_mode()
2562: st_json = repo_root / "_data" / "storytime.json"
2617: st_json = data_dir / "storytime.json"
2645: "--broadcast",
2654: help="Stamp a YouTube VOD URL, 11-char video ID, or 'live' into a post's frontmatter via --broadcast feature.",
2659: help="Mark a post as `storytime: false` (aside backfill queue) via --broadcast feature.",
2691: help="Figlet card label for --broadcast say (use \\n for multiple lines; default: LIVE\\nFROM MIKE).",
2697: help="Optional figurate ASCII art key (e.g. white_rabbit) for --broadcast say.",
2703: help="Optional image/video path or URL (e.g. /assets/images/slug.jpeg) for --broadcast say.",
2709: help="Optional TUI window spec (e.g. forest.py:30:bimodal) for --broadcast say.",
2714: help="Read the spoken message from the OS clipboard for --broadcast say.",
2742: help="Override PIPULATE_NTFY_TOPIC for --broadcast ping/watch.",
2748: help="Notification title for --broadcast ping (default: 'Honeybot Live').",
2754: help="ntfy priority (min|low|default|high|urgent) for --broadcast ping.",
2760: help="YouTube channel URL/handle or video ID for --broadcast watch (saves PIPULATE_YT_CHANNEL).",
2765: help="Continuously poll YouTube Live in --broadcast watch and push ntfy alerts.",
2808: help="Verify reciprocal Honeybot access.log and Wayback CDX receipts for --broadcast pebble.",
2977: sys.exit(manage_ytmax_toggle(arg=max_arg, dry_run=cli_args.dry_run))
flake.nix
537: exec "$python_bin" "$root/scripts/articles/common.py" --broadcast watch chime "$@"
2954: yt() { "$PIPULATE_ROOT/.venv/bin/python" "$PIPULATE_ROOT/scripts/articles/common.py" --broadcast help "$@"; }
2955: ythero() { "$PIPULATE_ROOT/.venv/bin/python" "$PIPULATE_ROOT/scripts/articles/common.py" --broadcast hero "$@"; }
2956: ytyaml() { "$PIPULATE_ROOT/.venv/bin/python" "$PIPULATE_ROOT/scripts/articles/common.py" --broadcast yaml "$@"; }
2957: ytcard() { "$PIPULATE_ROOT/.venv/bin/python" "$PIPULATE_ROOT/scripts/articles/common.py" --broadcast card "$@"; }
2958: tweet() { "$PIPULATE_ROOT/.venv/bin/python" "$PIPULATE_ROOT/scripts/articles/common.py" --broadcast tweet "$@"; }
2959: linkedin() { "$PIPULATE_ROOT/.venv/bin/python" "$PIPULATE_ROOT/scripts/articles/common.py" --broadcast linkedin "$@"; }
2960: fb() { "$PIPULATE_ROOT/.venv/bin/python" "$PIPULATE_ROOT/scripts/articles/common.py" --broadcast fb "$@"; }
2961: discord() { "$PIPULATE_ROOT/.venv/bin/python" "$PIPULATE_ROOT/scripts/articles/common.py" --broadcast discord "$@"; }
2962: ytpebble() { "$PIPULATE_ROOT/.venv/bin/python" "$PIPULATE_ROOT/scripts/articles/common.py" --broadcast pebble "$@"; }
2963: yttitle() { "$PIPULATE_ROOT/.venv/bin/python" "$PIPULATE_ROOT/scripts/articles/common.py" --broadcast title "$@"; }
2964: ytdesc() { "$PIPULATE_ROOT/.venv/bin/python" "$PIPULATE_ROOT/scripts/articles/common.py" --broadcast desc "$@"; }
2965: ytstatus() { "$PIPULATE_ROOT/.venv/bin/python" "$PIPULATE_ROOT/scripts/articles/common.py" --broadcast status "$@"; }
2966: ytbell() { "$PIPULATE_ROOT/.venv/bin/python" "$PIPULATE_ROOT/scripts/articles/common.py" --broadcast bell "$@"; }
2968: ytroll() { "$PIPULATE_ROOT/.venv/bin/python" "$PIPULATE_ROOT/scripts/articles/common.py" --broadcast "''${1:-roll}" "''${@:2}"; }
2969: ytsay() { "$PIPULATE_ROOT/.venv/bin/python" "$PIPULATE_ROOT/scripts/articles/common.py" --broadcast say "$@"; }
2970: ytping() { "$PIPULATE_ROOT/.venv/bin/python" "$PIPULATE_ROOT/scripts/articles/common.py" --broadcast ping "$@"; }
2971: ytwatch() { "$PIPULATE_ROOT/.venv/bin/python" "$PIPULATE_ROOT/scripts/articles/common.py" --broadcast watch "$@"; }
2972: ytlog() { "$PIPULATE_ROOT/.venv/bin/python" "$PIPULATE_ROOT/scripts/articles/common.py" --broadcast watch attach "$@"; }
2973: yttop() { "$PIPULATE_ROOT/.venv/bin/python" "$PIPULATE_ROOT/scripts/articles/common.py" --broadcast top "$@"; }
2974: ytmedia() { "$PIPULATE_ROOT/.venv/bin/python" "$PIPULATE_ROOT/scripts/articles/common.py" --broadcast say -m "$@"; }
2975: ytoutro() { "$PIPULATE_ROOT/.venv/bin/python" "$PIPULATE_ROOT/scripts/articles/common.py" --broadcast outro "$@"; }
2976: ytbgm() { "$PIPULATE_ROOT/.venv/bin/python" "$PIPULATE_ROOT/scripts/articles/common.py" --broadcast bgm "$@"; }
2977: ytmax() { "$PIPULATE_ROOT/.venv/bin/python" "$PIPULATE_ROOT/scripts/articles/common.py" --broadcast max "$@"; }
2979: "$PIPULATE_ROOT/.venv/bin/python" "$PIPULATE_ROOT/scripts/articles/common.py" --broadcast reboot "$@" || return $?
2985: ytticker() { "$PIPULATE_ROOT/.venv/bin/python" "$PIPULATE_ROOT/scripts/articles/common.py" --broadcast ticker "$@"; }
2989: ytfeature() { "$PIPULATE_ROOT/.venv/bin/python" "$PIPULATE_ROOT/scripts/articles/common.py" --broadcast feature "$@"; }
3060: "$PIPULATE_ROOT/.venv/bin/python" "$PIPULATE_ROOT/scripts/articles/common.py" --broadcast summary || true
3099: "$PIPULATE_ROOT/.venv/bin/python" "$PIPULATE_ROOT/scripts/articles/common.py" --broadcast pebble || true
3100: "$PIPULATE_ROOT/.venv/bin/python" "$PIPULATE_ROOT/scripts/articles/common.py" --broadcast summary || true
3104: "$PIPULATE_ROOT/.venv/bin/python" "$PIPULATE_ROOT/scripts/articles/common.py" --broadcast reboot || true
3106: "$PIPULATE_ROOT/.venv/bin/python" "$PIPULATE_ROOT/scripts/articles/common.py" --broadcast pebble || true
3107: "$PIPULATE_ROOT/.venv/bin/python" "$PIPULATE_ROOT/scripts/articles/common.py" --broadcast summary || true
(nix) pipulate $
2: AFTER (NEXT CONTEXT):
# # Context 1: A/B Alternating Storytime Rotation (P0.87) & Stage Article Identity
# context.txt
# ! latest
#
# remotes/honeybot/scripts/score.py
# remotes/honeybot/scripts/content_loader.py
# remotes/honeybot/scripts/stream.py
# scripts/articles/yt_watch.py
# Context 2: Operator ytpin CLI & Live #1677 Pin (Pass B)
context.txt
! pyprobe 'import sys; sys.path.insert(0, "remotes/honeybot/scripts"); import content_loader as cl, score; ids = cl.get_jukebox_playable_ids(); has_ab = hasattr(cl, "get_ab_playlist"); os.environ["HONEYBOT_PINNED_STORY_ID"] = str(ids[0]) if ids else ""; d1 = len(cl.get_ab_playlist()) if has_ab else None; os.environ["HONEYBOT_PINNED_STORY_ID"] = str(ids[1]) if len(ids) > 1 else ""; f_pinned = cl.get_featured_article_id(); pair = [a["jukebox_index"] for a in cl.get_ab_playlist()] if has_ab else None; s0 = next((v["meta"]["jukebox_index"] for c, v in score.get_script(ab_slot=0) if c == "CARD" and isinstance(v, dict) and "meta" in v), None) if has_ab else None; s1 = next((v["meta"]["jukebox_index"] for c, v in score.get_script(ab_slot=1) if c == "CARD" and isinstance(v, dict) and "meta" in v), None) if has_ab else None; sb = next((v["meta"]["jukebox_index"] for c, v in score.get_script(breaking=True, ab_slot=1) if c == "CARD" and isinstance(v, dict) and "meta" in v), None) if has_ab else None; os.environ.pop("HONEYBOT_PINNED_STORY_ID", None); print("AB_ENGINE:", has_ab, d1, pair, (s0, s1, sb), f_pinned == cl.get_featured_article_id())'
! pyprobe 'os.environ["HONEYBOT_NO_AUDIO"] = "1"; sys.path.insert(0, "remotes/honeybot/scripts"); sys.path.insert(0, "scripts/articles"); import stream, yt_watch; has_fn = hasattr(stream, "_sync_ab_slot_state") and hasattr(yt_watch, "canonical_stage_article_key"); tf = tempfile.NamedTemporaryFile(delete=False, suffix=".json"); tf.close(); stream._sync_ab_slot_state(1, state_path=tf.name) if has_fn else None; loaded = stream._sync_ab_slot_state(None, state_path=tf.name) if has_fn else None; os.unlink(tf.name); k1 = yt_watch.canonical_stage_article_key("(\x272026-11-26\x27, 1, \x272026-11-26-freeze-urls-ai-doorway-filters.md\x27)") if has_fn else "a"; k2 = yt_watch.canonical_stage_article_key("#1677 [FREEZE URLS]: Freeze Your URLs (2026-11-26)") if has_fn else "b"; print("DIRECTOR_STAGE:", has_fn, loaded, k1 == k2, k1)'
! rg -n "ytmax|--broadcast|storytime\.json" flake.nix scripts/articles/common.py remotes/honeybot/hooks/post-receive
flake.nix
scripts/articles/common.py
scripts/articles/yt_watch.py
remotes/honeybot/scripts/content_loader.py
remotes/honeybot/scripts/score.py
3: CHANGE (PATCHES):
This patch resolves whowhat now? I need this in plain language for the simple son. How does the system choose what to play on the YouTube live-stream? Is it explicit or inferred, and whichever then how. I know it gets it right like every time but I also know I shifted mid-gear precisely how because of a bunch of new capabilities I needed like holding off the “aside” reads even if it has the Normal dialogues. And know that worked because that’s what I did through the weekend but it was sort of on a wing and a prayer.
I also know I should be able to “just know” by looking at the code, but honestly I’m fighting learned helplessness like everyone else falling into the vibe-coding trap. Difference is I have this to look at and study later:
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'.
📏 Car meter: 1/5 file(s), 6/12 block(s), 132/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 f651081..62c806e 100644
--- a/remotes/honeybot/scripts/content_loader.py
+++ b/remotes/honeybot/scripts/content_loader.py
@@ -301,9 +301,9 @@ def get_jukebox_menu_entries(limit: int = 12, posts_dir: Path | None = None) ->
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):
+def get_article_by_jukebox_index(jb_idx: int, posts_dir: Path | None = None):
"""Load a single dated post by its permanent 1-based chronological Jukebox index (1..N)."""
- id_map = get_jukebox_catalog().get("id_map") or {}
+ id_map = get_jukebox_catalog(posts_dir=posts_dir).get("id_map") or {}
idx = int(jb_idx or 0)
filepath = id_map.get(idx)
if filepath is None or not filepath.is_file():
@@ -316,7 +316,7 @@ def get_article_by_jukebox_index(jb_idx: int):
if len(parts) >= 3:
fm = _safe_load_frontmatter(parts[1])
body = parts[2]
- fm = _with_parent_frontmatter(filepath, fm)
+ fm = _with_parent_frontmatter(filepath, fm, posts_dir=posts_dir)
slug = _resolve_canonical_slug(fm, filepath.name)
fm_img = fm.get("image")
img_path = str(fm_img.get("path") or "").strip() if isinstance(fm_img, dict) else (fm_img.strip() if isinstance(fm_img, str) else "")
@@ -438,16 +438,33 @@ def _storytime_effective_rank(post_date, sort_order, frontmatter):
return eff_date, eff_order
-def _get_pinned_storytime_file():
+def _parse_pin_token(raw) -> tuple[str, int | None]:
+ """Return ('off', None), ('id', N), or ('unset', None) for a pin spec."""
+ if raw is False or raw == 0:
+ return ("off", None)
+ if isinstance(raw, int) and raw > 0:
+ return ("id", raw)
+ s = str(raw or "").strip().lower()
+ if not s:
+ return ("unset", None)
+ if s in ("0", "off", "none", "false", "no", "clear", "unpin"):
+ return ("off", None)
+ if s.lstrip("#").isdigit() and int(s.lstrip("#")) > 0:
+ return ("id", int(s.lstrip("#")))
+ return ("unset", None)
+
+
+def _get_pinned_storytime_file(posts_dir: Path | None = None):
"""Return Path to the post named in _data/storytime.json if present on disk."""
+ base = Path(posts_dir) if posts_dir is not None else POSTS_DIR
try:
- st_file = POSTS_DIR.parent / "_data" / "storytime.json"
+ st_file = base.parent / "_data" / "storytime.json"
if st_file.is_file():
- import json
- data = json.loads(st_file.read_text(encoding='utf-8'))
+ import json as _json
+ data = _json.loads(st_file.read_text(encoding='utf-8'))
fname = str((data or {}).get('filename') or '').strip()
if fname:
- cand = resolve_storytime_dir() / fname
+ cand = resolve_storytime_dir(posts_dir=base) / fname
if cand.is_file():
return cand
except Exception:
@@ -455,6 +472,63 @@ def _get_pinned_storytime_file():
return None
+def get_pinned_storytime_id(posts_dir: Path | None = None) -> int | None:
+ """Resolve Slot-B pinned Story ID from env, .pinned_storytime, or _data/storytime.json."""
+ import json as _json
+ base = Path(posts_dir) if posts_dir is not None else POSTS_DIR
+ cat = get_jukebox_catalog(posts_dir=base)
+ id_map = cat.get("id_map") or {}
+ mode, pid = _parse_pin_token(os.environ.get("HONEYBOT_PINNED_STORY_ID", ""))
+ if mode != "unset":
+ return pid if (mode == "id" and pid in id_map) else None
+ rt_file = base.parent / ".pinned_storytime"
+ if rt_file.is_file():
+ try:
+ raw_rt = rt_file.read_text(encoding="utf-8").strip()
+ rt_val = _json.loads(raw_rt).get("pinned_id") if raw_rt.startswith("{") else raw_rt
+ mode, pid = _parse_pin_token("off" if rt_val is None else rt_val)
+ if mode != "unset":
+ return pid if (mode == "id" and pid in id_map) else None
+ except Exception:
+ pass
+ st_file = base.parent / "_data" / "storytime.json"
+ if st_file.is_file():
+ try:
+ data = _json.loads(st_file.read_text(encoding="utf-8"))
+ if isinstance(data, dict):
+ for k in ("pinned_id", "article_id", "jukebox_index"):
+ if k in data:
+ mode, pid = _parse_pin_token("off" if data[k] is None else data[k])
+ if mode != "unset":
+ return pid if (mode == "id" and pid in id_map) else None
+ fname = str(data.get("filename") or "").strip()
+ if fname and data.get("ab_pin", True) is not False:
+ aid = (cat.get("index_map") or {}).get(fname)
+ if aid in id_map:
+ return int(aid)
+ except Exception:
+ pass
+ return None
+
+
+def get_pinned_storytime_article(posts_dir: Path | None = None):
+ """Load the pinned Slot-B Norma Storytime article dict, or None when unpinned."""
+ pid = get_pinned_storytime_id(posts_dir=posts_dir)
+ return get_article_by_jukebox_index(pid, posts_dir=posts_dir) if pid else None
+
+
+def get_ab_playlist(posts_dir: Path | None = None) -> list[dict]:
+ """Return [Slot A (latest), Slot B (pinned)] when distinct, else [Slot A]."""
+ latest = get_playlist(recent_n=1, include_archive=False, posts_dir=posts_dir)
+ pinned = get_pinned_storytime_article(posts_dir=posts_dir)
+ if latest:
+ a0 = latest[0]
+ if pinned and pinned.get("filename") != a0.get("filename") and pinned.get("jukebox_index") != a0.get("jukebox_index"):
+ return [a0, pinned]
+ return [a0]
+ return [pinned] if pinned else []
+
+
def get_featured_article_id():
"""Return (eff_date_str, eff_order, filename) of the active Storytime-eligible post on disk."""
best = None
@@ -501,7 +575,7 @@ def get_featured_article_id():
return best
-def get_playlist(recent_n=10, include_archive=True):
+def get_playlist(recent_n=10, include_archive=True, posts_dir: Path | None = None):
"""
Returns a playlist: Recent N (sorted date desc + sort_order desc) + optional Rest (shuffled).
When include_archive=False, stops scanning older dates once recent_n articles are loaded.
@@ -511,7 +585,7 @@ def get_playlist(recent_n=10, include_archive=True):
try:
# Find all markdown files, newest date prefixes first so include_archive=False
# can stop scanning once the newest N articles (and same-day siblings) are read.
- active_dir = resolve_storytime_dir()
+ active_dir = resolve_storytime_dir(posts_dir=posts_dir)
files = sorted(
list(active_dir.glob("*.md")) + list(active_dir.glob("*.markdown")),
key=lambda p: p.name,
@@ -523,11 +597,11 @@ def get_playlist(recent_n=10, include_archive=True):
importlib.reload(sys.modules["terms"])
except Exception:
pass
- pinned = _get_pinned_storytime_file()
+ pinned = _get_pinned_storytime_file(posts_dir=posts_dir)
if pinned is not None and not include_archive:
files = [pinned] + [p for p in files if p != pinned]
cutoff_date = None
- jb_index_map = get_jukebox_catalog()["index_map"]
+ jb_index_map = get_jukebox_catalog(posts_dir=posts_dir)["index_map"]
for filepath in files:
filename = filepath.name
@@ -547,7 +621,7 @@ def get_playlist(recent_n=10, include_archive=True):
if len(parts) >= 3:
frontmatter = _safe_load_frontmatter(parts[1])
body_text = parts[2]
- frontmatter = _with_parent_frontmatter(filepath, frontmatter)
+ frontmatter = _with_parent_frontmatter(filepath, frontmatter, posts_dir=posts_dir)
if not _is_storytime_enabled(frontmatter):
continue
try:
@@ -603,6 +677,8 @@ def get_playlist(recent_n=10, include_archive=True):
# Shuffle the archive to keep it fresh
random.shuffle(archive_articles)
+ if posts_dir is not None:
+ return recent_articles if not include_archive else (recent_articles + archive_articles)
global _last_scan_time, _last_file_count, _last_trigger, _last_featured_id
try:
stat = active_dir.stat()
(nix) pipulate $ m
📝 Committing: chore: Update content loader to support pinned storytime ID
[main 592c7e0] chore: Update content loader to support pinned storytime ID
1 file changed, 89 insertions(+), 13 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), 1.79 KiB | 1.79 MiB/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
0f5abc0..592c7e0 main -> main
(nix) pipulate $
And now the 2nd half of that which is the allowing of the A, B, A, B 2-article alternation, but then also of course a ton of questions. Always the latest and always one that I explicitly pin, I presume. And the same questions: inferred or explicit, and either way how?
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/score.py'.
✅ DETERMINISTIC PATCH APPLIED: Successfully mutated 'remotes/honeybot/scripts/stream.py'.
📏 Car meter: 2/5 file(s), 8/12 block(s), 137/220 line(s) (over 120-line aim; prefer separate Car 3a/3b fences)
(nix) pipulate $ d
diff --git a/remotes/honeybot/scripts/score.py b/remotes/honeybot/scripts/score.py
index 9d66bb6..564fae8 100644
--- a/remotes/honeybot/scripts/score.py
+++ b/remotes/honeybot/scripts/score.py
@@ -93,18 +93,20 @@ GLOBAL_WEEBO_SAY = (
)
-def _append_article_performance(script, article, is_latest=True):
+def _append_article_performance(script, article, is_latest=True, is_pinned=False, next_article=None):
"""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 ""
- lead = (
- f"Reading the latest entry, {jb_tag}published {article['date']}."
- if is_latest
- else f"Playing {jb_tag}from {article['date']}."
- )
+ if is_pinned and not is_latest:
+ lead, sub_meta = f"Playing featured {jb_tag}published {article['date']}.", f"[FEATURED · {article['date']}]"
+ elif is_latest:
+ lead = f"Reading the latest entry, {jb_tag}published {article['date']}."
+ sub_meta = f"[LATEST · {article['date']}]" if next_article else f"[{article['date']}]"
+ else:
+ lead, sub_meta = f"Playing {jb_tag}from {article['date']}.", f"[{article['date']}]"
tag_seg = f" [{ticker_tag}]" if ticker_tag else ""
art_id = (
f"#{jb_idx}{tag_seg}: {raw_title} ({article['date']})"
@@ -121,7 +123,7 @@ def _append_article_performance(script, article, is_latest=True):
"CARD",
{
"label": card_lbl,
- "subtitle": f"{raw_title}\n[{article['date']}]",
+ "subtitle": f"{raw_title}\n{sub_meta}",
"say": f"{lead} Headline: {title_str}.",
"article": art_id,
"meta": {
@@ -153,13 +155,16 @@ def _append_article_performance(script, article, is_latest=True):
if GLOBAL_WEEBO_STEM:
script.append(("MEDIA", {"path": GLOBAL_WEEBO_STEM, "duration": GLOBAL_WEEBO_DURATION, "overlay": True}))
script.append(("SAY", GLOBAL_WEEBO_SAY))
+ n_jb = int((next_article or {}).get("jukebox_index") or 0)
+ n_tt = str((next_article or {}).get("title") or "").strip()
+ next_say = f"Up next in our alternating rotation is story number {n_jb}, {n_tt}. " if (n_jb and n_tt) else ""
script.append((
"CARD",
{
"label": "SUNPUG.IO &\nMIKELEV.IN",
"pace": "standard",
"say": (
- f"That concludes {article['title']}. "
+ f"That concludes {article['title']}. {next_say}"
"Remember the two addresses: local-first A I-Readiness tools at SunPug.io, "
"and experience the long-form version of this story at MikeLev.in. "
"Type any story number or menu in live chat to take control, or join the Founding 1,000 at MikeLev.in/discord — "
@@ -170,7 +175,7 @@ def _append_article_performance(script, article, is_latest=True):
script.append(("WAIT", 1))
-def get_script(breaking=False, jukebox_index=None):
+def get_script(breaking=False, jukebox_index=None, ab_slot=0):
"""Generate the Honeybot playlist (or a specific 1..N Jukebox selection)."""
script = [("BUMPER", {"slot": "pre_intro"})]
@@ -192,16 +197,21 @@ def get_script(breaking=False, jukebox_index=None):
import importlib
import content_loader
importlib.reload(content_loader)
- articles = content_loader.get_playlist(recent_n=1, include_archive=False)
+ articles = content_loader.get_ab_playlist()
except Exception as e:
script.append(("SAY", f"Error compiling latest article: {e}"))
+ slot = 0 if (breaking or len(articles) <= 1) else (int(ab_slot or 0) % len(articles))
+ a0 = articles[slot] if articles else {}
+ other = articles[1 - slot] if len(articles) > 1 else None
+ is_pinned = (slot == 1)
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 "")
+ hdr = "Featured" if is_pinned else ("Latest" if other else "Up Next")
+ sub0 = f"{hdr} #{jb0}: {a0['raw_title']}" if (a0.get("raw_title") and jb0) else (f"Up Next: {a0['raw_title']}" if a0.get("raw_title") else "")
+ role_s = "featured story" if is_pinned else ("our latest story" if other else "story")
say0 = (
f"Greetings, entity. You are watching A.I. Fishtank Story-Time on Honeybot. "
- f"Up next is story number {jb0}, titled: {a0['title']}. "
+ f"Up next is {role_s} 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 (
@@ -210,8 +220,8 @@ def get_script(breaking=False, jukebox_index=None):
)
)
script.append(("CARD", {"label": "A.I. FISHTANK\nSTORY-TIME", "subtitle": sub0, "say": say0}))
- if articles:
- _append_article_performance(script, articles[0], is_latest=True)
+ if a0:
+ _append_article_performance(script, a0, is_latest=(slot == 0), is_pinned=is_pinned, next_article=other)
return script
# Optional legacy archive walk (only reached when ARCHIVE_WALK = True)
diff --git a/remotes/honeybot/scripts/stream.py b/remotes/honeybot/scripts/stream.py
index ad5a1f6..f800e13 100644
--- a/remotes/honeybot/scripts/stream.py
+++ b/remotes/honeybot/scripts/stream.py
@@ -3799,8 +3799,12 @@ def perform_show(script):
profile_dir = tempfile.mkdtemp(prefix="honeybot_fx_")
active_article_id = get_featured_article_id()
_active_featured_id = active_article_id
- if active_article_id:
- _active_stage_article = str(active_article_id).strip()
+ script_art = next(
+ (str(val["article"]).strip() for cmd, val in (script or ()) if cmd in ("CARD", "OVERTURE") and isinstance(val, dict) and val.get("article")),
+ "",
+ )
+ if script_art or active_article_id:
+ _active_stage_article = script_art or str(active_article_id).strip()
write_stage_state("narrator", "inactive", "inactive", article=_active_stage_article)
try:
@@ -3914,6 +3918,32 @@ def perform_show(script):
pass
+AB_SLOT_STATE_PATH = "/tmp/honeybot_ab_state.json"
+
+
+def _sync_ab_slot_state(save_slot: int | None = None, state_path: str = AB_SLOT_STATE_PATH) -> int:
+ """Persist or reload the active A/B Storytime slot (0=latest, 1=pinned), resetting on new featured stories."""
+ import json as _ajson
+ p, feat = Path(state_path), str(get_featured_article_id() or "")
+ if save_slot is not None:
+ slot_v = int(save_slot) % 2
+ try:
+ tmp = p.with_name(f".{p.name}.{os.getpid()}.tmp")
+ tmp.write_text(_ajson.dumps({"slot": slot_v, "featured": feat, "ts": round(time.time(), 3)}), encoding="utf-8")
+ os.replace(tmp, p)
+ except Exception:
+ pass
+ return slot_v
+ try:
+ if p.is_file():
+ obj = _ajson.loads(p.read_text(encoding="utf-8"))
+ if (time.time() - float(obj.get("ts") or 0.0)) <= 14400.0 and str(obj.get("featured") or "") == feat:
+ return int(obj.get("slot") or 0) % 2
+ except Exception:
+ pass
+ return 0
+
+
def start_director_track():
"""The Script for the Show. Runs in parallel to the Log Stream."""
t_boot = time.time()
@@ -3937,6 +3967,8 @@ def start_director_track():
# False, leaving a genuine idle cold start completely unchanged.
breaking = trigger_is_fresh() if score else False
jukebox_idx = None
+ is_jukebox_detour = False
+ ab_slot = _sync_ab_slot_state(0) if breaking else _sync_ab_slot_state(None)
first_cycle = True
while True:
if score:
@@ -3945,7 +3977,9 @@ def start_director_track():
importlib.reload(score)
except Exception:
pass
- current_script = score.get_script(breaking=breaking, jukebox_index=jukebox_idx)
+ if jukebox_idx is None:
+ _sync_ab_slot_state(ab_slot)
+ current_script = score.get_script(breaking=breaking, jukebox_index=jukebox_idx, ab_slot=ab_slot)
if globals().get("_restart_skip_overture"):
current_script = _strip_restart_overture(current_script)
globals()["_restart_skip_overture"] = False
@@ -3957,14 +3991,21 @@ def start_director_track():
result = perform_show(current_script)
if isinstance(result, tuple) and len(result) == 2 and result[0] == "JUKEBOX":
jukebox_idx = int(result[1])
+ is_jukebox_detour = True
breaking = True
elif isinstance(result, tuple) and len(result) == 2 and result[0] == "RESTART":
jukebox_idx = int(result[1]) if result[1] is not None else jukebox_idx
+ is_jukebox_detour = False
breaking = True
globals()["_restart_skip_overture"] = True
else:
jukebox_idx = None
breaking = (result == "BREAKING")
+ if breaking:
+ ab_slot = _sync_ab_slot_state(0)
+ elif (not is_jukebox_detour) and (result is not False):
+ ab_slot = _sync_ab_slot_state((ab_slot + 1) % 2)
+ is_jukebox_detour = False
else:
narrator.say("Error. Show module not found.")
(nix) pipulate $ m
📝 Committing: feat(core): Add A/B slot state persistence and sync
[main 3d1408c] feat(core): Add A/B slot state persistence and sync
2 files changed, 69 insertions(+), 18 deletions(-)
(nix) pipulate $ git push
Enumerating objects: 13, done.
Counting objects: 100% (13/13), done.
Delta compression using up to 48 threads
Compressing objects: 100% (6/6), done.
Writing objects: 100% (7/7), 2.01 KiB | 687.00 KiB/s, done.
Total 7 (delta 5), reused 0 (delta 0), pack-reused 0 (from 0)
remote: Resolving deltas: 100% (5/5), completed with 5 local objects.
To github.com:pipulate/pipulate.git
592c7e0..3d1408c main -> main
(nix) pipulate $
What, and a 3rd? Canonicalize Peak-Reset Identity? Right, right. This is the explicitness I was wondering about. First something gets canonicalized. And then the “top” is found. I think I get it.
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/yt_watch.py'.
📏 Car meter: 1/5 file(s), 2/12 block(s), 31/220 line(s) (aim <= 120/car)
(nix) pipulate $ d
diff --git a/scripts/articles/yt_watch.py b/scripts/articles/yt_watch.py
index 341cb76..69ddbf7 100644
--- a/scripts/articles/yt_watch.py
+++ b/scripts/articles/yt_watch.py
@@ -1891,6 +1891,32 @@ def _trigger_ytwatch_weebo(weebo_spec=None, duration=None):
pass
+def canonical_stage_article_key(raw_art: str) -> str:
+ """Normalize Honeybot stage article strings (#ID cards vs legacy rank tuples) to one canonical identity."""
+ s = str(raw_art or "").strip()
+ if not s:
+ return ""
+ m_id = re.match(r"^#([1-9]\d*)\b", s)
+ if m_id:
+ return f"#{m_id.group(1)}"
+ m_fn = re.search(r"(\d{4}-\d{2}-\d{2}-[A-Za-z0-9_.-]+\.(?:md|markdown))", s)
+ if m_fn:
+ fname = m_fn.group(1)
+ try:
+ 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
+ tcfg = load_targets().get("1", DEFAULT_TARGETS["1"])
+ aid = (_cl.get_jukebox_catalog(posts_dir=Path(tcfg["path"]).expanduser()).get("index_map") or {}).get(fname)
+ if aid:
+ return f"#{int(aid)}"
+ except Exception:
+ pass
+ return fname
+ return " ".join(s.lower().split())
+
+
def run_youtube_watch(
channel=None,
loop=False,
@@ -2580,7 +2606,7 @@ def run_youtube_watch(
st_obj = json.loads(raw_st)
new_art = str(st_obj.get("article") or "").strip()
if new_art:
- if hb_stage_article and new_art != hb_stage_article:
+ if hb_stage_article and canonical_stage_article_key(new_art) != canonical_stage_article_key(hb_stage_article):
hb_reset_reason = f"article={new_art}"
hb_stage_article = new_art
except Exception:
(nix) pipulate $ m
📝 Committing: chore: Normalize Honeybot stage article key string
[main 93977f4] chore: Normalize Honeybot stage article key string
1 file changed, 27 insertions(+), 1 deletion(-)
(nix) pipulate $ git push
Enumerating objects: 9, done.
Counting objects: 100% (9/9), done.
Delta compression using up to 48 threads
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 954 bytes | 954.00 KiB/s, done.
Total 5 (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
3d1408c..93977f4 main -> main
(nix) pipulate $
Ignition: often “exit”, “nix develop”. Instructions may vary.
No manual ignition required? All that and it’s not even an infrastructure touch
on Honeybot. Amazing! But it says that like pyprobe is what updates things on
Honeybot. That just doesn’t feel right. Are you sure the nixops shuffle isn’t
required here?
4: PROMPT:
Verify the Pass A AFTER receipts (AB_ENGINE and DIRECTOR_STAGE), then execute Pass B (Operator ytpin CLI & Live #1677 Pin):
- Add
manage_ytpin(arg="status", dry_run=False)inscripts/articles/yt_watch.pyand route--broadcast pin [ID|off|status]inscripts/articles/common.pyplus aytpinshell command inflake.nixsoytpin 1677validates the Norma Jukebox ID, writes_data/storytime.json({"pinned_id": 1677, "filename": "..."}), and syncs~/www/mikelev.in/.pinned_storytimeover warm SSH to Honeybot immediately (withytpin offclearing andytpin/ytpin statusprinting active Slot A + Slot B). - Provide the live ignition commands to pin
#1677and sync the updatedcontent_loader.py,score.py, andstream.pyscripts to Honeybot.
Separating Inferred Latest Slots From Explicit ID Pins
5: DELIVERABLE:
What does “DONE” look like?
Done looks like whatever latest article --web I create without an --aside
and then follow up with a publish "Message" that has a Norma version as a
result of norma next and norma save that I did along the way starts playing
on the YouTube live-stream in alternation with one other one that I somehow have
pinned which is set to my “Spend on RFC 9110 & 9111 Consulting this December”
article but in the future is going to be something else.
How?
Gemini 4 Carbon High: Context verified.
Pass A Receipts & Plain-English Answers for the Simple Son
Both Pass A straddles went green in this compile’s live receipts:
AB_ENGINE:False None None (None, None, None) True->True 1 [1682, 1677] (1682, 1677, 1682) True— Look at what your own disk already resolved:#1682(the 418 Teapot Rickroll Norma script) is Slot A,#1677(Freeze Your URLs) is Slot B, deduplicating to1item when both match and alternating(1682, 1677)acrossab_slot=0|1whilebreaking=Truealways leads with1682.DIRECTOR_STAGE:False None False a->True 1 True #1677—/tmp/honeybot_ab_state.jsonpersistsslot=1cleanly, and both string shapes collapse to#1677.
Now let’s strip away every shred of mystery around your three questions:
1. Inferred vs. Explicit: How Honeybot Chooses What Plays
It is one of each—and keeping them separate is why you never have to babysit it:
SLOT A (LATEST) ──► INFERRED AUTOMATICALLY FROM YOUR WORKFLOW
1. Did you run `norma next` -> `norma save`? (File exists in `_posts/_abstracts/`)
2. Did you omit `--aside`? (Parent `_posts/*.md` is NOT `storytime: false`)
3. Newest `(date, sort_order)` wins Slot A automatically on `publish "msg"`.
SLOT B (PINNED) ──► EXPLICIT BY PERMANENT `article_id` (`ytpin 1677`)
1. You type `ytpin 1677` once on Prime.
2. Writes `pinned_id: 1677` to `_data/storytime.json` + Honeybot `.pinned_storytime`.
3. Director flips `0 -> 1 -> 0 -> 1`:
Loop 0: Slot A (#1682, Latest)
Loop 1: Slot B (#1677, Pinned December Consulting Cornerstone)
Loop 2: Slot A (#1682, Latest)
- What happens if you publish an
--aside? Even if you later generate a Norma script for it, its parent post hasstorytime: false, so Slot A skips right over it (though live-chat viewers can still type its ID number on the jukebox). - What happens when you publish a new full article with a Norma script?
post-receiveseesBEFORE_FEATURED != AFTER_FEATURED, rings.reading_trigger, wraps up the current sentence, resets the toggle to Slot A so your brand-new story plays first, and then plays Slot B (#1677) right after it. - What did Car 3c (“Canonicalize Peak-Reset Identity”) do? Nothing on Honeybot’s playlist—that fixed a log bug in
ytwatchon Prime. In your 8-hour viewer log from the last article,ytlogprinted📖 [NEW ARTICLE]twice every time#1677looped—once as a raw Python tuple('2026-11-26', 1, ...)and 31 seconds later as#1677 [FREEZE URLS], resetting your peak viewer count twice for the same story. Nowytwatchreduces both strings to#1677.
2. Why Your BS-Detector Rang on “pyprobe / No Manual Ignition”
Your gut was 100% right. pyprobe only proved the Python logic locally on Prime during Pass A; it touches nothing on Honeybot. Here is the exact 3-tier rule for what updates Honeybot:
nixops+nixos-rebuild switch: Only needed whenconfiguration.nixchanges (like Nginx’s418rule). Not needed today.ytreboot(needed ONCE today):rsyncsremotes/honeybot/scripts/(content_loader.py,score.py,stream.py) to Honeybot and restartsstream.pyso the newab_slotouter loop instart_director_track()replaces the older loop currently in RAM.ytpin 1677(Pass B below): Pushes.pinned_storytimestraight to Honeybot over warm SSH and stages_data/storytime.jsonintrimnoir. Once today’sytrebootlands, future pin swaps (ytpin 1695,ytpin off) take effect on the very next Storytime loop boundary with zeroytrebootand zeronixops.
3. Raw Book-Ore (brain.zip) vs. the 1D Radio Turntable
Your Vulcan IDIC / Foghorn Leghorn riff nails the split between the two surfaces: brain.zip is the raw book-ore where slaughtering trees into one frozen edit makes zero sense because every reader’s AI can smelt custom alloys on demand. The 24/7 YouTube audio stream, by contrast, is a single-lane radio dial—and alternating Slot A (the newest frontier ore) with Slot B (the December RFC 9110/9111 consulting thesis) lets you ship new episodes daily without taking your shopfront sign out of the window.
Pass B Plan (2 Cars, Both <= 120 Lines)
- Car 3a (
scripts/articles/yt_watch.py): Addsmanage_ytpin()+_sync_honeybot_pinned_storytime()supportingytpin/ytpin status,ytpin 1677(validating that the ID exists in playable_posts/_abstracts/), andytpin off(writingpinned_id: 0so Honeybot overrides any older_data/storytime.jsonimmediately). - Car 3b (
scripts/articles/common.py+flake.nix): Wires--broadcast pin, preservespinned_idinsideytfeature, documentsytpininyt, and packagesytpinas a Nix derivation (ytpinCommandincommonPackages) soytpinresolves in both interactive terminals and!child shells.
(1) PROBES
First probe parses flake.nix and checks whether ytpin is on PATH; second probe exercises common.py --broadcast pin --dry-run 1677 plus manage_ytpin("1677") -> [1682, 1677] and manage_ytpin("off") -> [1682] inside an isolated temp sandbox without touching trimnoir or SSH.
(nix) pipulate $
LD_LIBRARY_PATH="" nix-instantiate --parse flake.nix >/dev/null && command -v ytpin || echo "YTPIN_PATH: missing"
pyprobe 'sys.path.insert(0, "scripts/articles"); sys.path.insert(0, "remotes/honeybot/scripts"); import yt_watch, content_loader as cl; ok = hasattr(yt_watch, "manage_ytpin"); rc_dry = sp.run([sys.executable, "scripts/articles/common.py", "--broadcast", "pin", "--dry-run", "1677"], capture_output=True, text=True).returncode if ok else 2; td = Path(tempfile.mkdtemp()); pd = td / "_posts"; pd.mkdir(); real_pd = Path.home() / "repos/trimnoir/_posts"; os.symlink(real_pd / "_abstracts", pd / "_abstracts"); [os.symlink(real_pd / f.name, pd / f.name) for f in (real_pd / "_abstracts").glob("*.md") if (real_pd / f.name).is_file()]; r_on = yt_watch.manage_ytpin("1677", posts_dir=pd) if ok else -1; ab_on = [a["jukebox_index"] for a in cl.get_ab_playlist(posts_dir=pd)] if ok else []; r_off = yt_watch.manage_ytpin("off", posts_dir=pd) if ok else -1; ab_off = [a["jukebox_index"] for a in cl.get_ab_playlist(posts_dir=pd)] if ok else []; shutil.rmtree(td); print("YTPIN_SANDBOX:", ok, rc_dry, (r_on, ab_on), (r_off, ab_off))'
(2) NEXT CONTEXT
Sheds heavyweight flake.nix (49k tokens) and scripts/articles/common.py (35k tokens) and loads foo_files.py to bank P0.87 and dismount cleanly once live Honeybot deployment is witnessed.
(nix) pipulate $
# Context 3: Live #1677 Pin Witness & Notary Dismount (P0.87)
context.txt
! LD_LIBRARY_PATH="" nix-instantiate --parse flake.nix >/dev/null && command -v ytpin || echo "YTPIN_PATH: missing"
! pyprobe 'sys.path.insert(0, "scripts/articles"); sys.path.insert(0, "remotes/honeybot/scripts"); import yt_watch, content_loader as cl; ok = hasattr(yt_watch, "manage_ytpin"); rc_dry = sp.run([sys.executable, "scripts/articles/common.py", "--broadcast", "pin", "--dry-run", "1677"], capture_output=True, text=True).returncode if ok else 2; td = Path(tempfile.mkdtemp()); pd = td / "_posts"; pd.mkdir(); real_pd = Path.home() / "repos/trimnoir/_posts"; os.symlink(real_pd / "_abstracts", pd / "_abstracts"); [os.symlink(real_pd / f.name, pd / f.name) for f in (real_pd / "_abstracts").glob("*.md") if (real_pd / f.name).is_file()]; r_on = yt_watch.manage_ytpin("1677", posts_dir=pd) if ok else -1; ab_on = [a["jukebox_index"] for a in cl.get_ab_playlist(posts_dir=pd)] if ok else []; r_off = yt_watch.manage_ytpin("off", posts_dir=pd) if ok else -1; ab_off = [a["jukebox_index"] for a in cl.get_ab_playlist(posts_dir=pd)] if ok else []; shutil.rmtree(td); print("YTPIN_SANDBOX:", ok, rc_dry, (r_on, ab_on), (r_off, ab_off))'
foo_files.py
scripts/articles/yt_watch.py
remotes/honeybot/scripts/content_loader.py
remotes/honeybot/scripts/score.py
(3) PATCHES
Car 3a — Add manage_ytpin() & Live Honeybot .pinned_storytime Sync (yt_watch.py):
(nix) pipulate $
Target: scripts/articles/yt_watch.py
[[[SEARCH]]]
if mode == "off":
print(f"🛑 Max Headroom OFF (PIPULATE_YTWATCH_WEEBO='off', Honeybot /tmp/honeybot_no_max {sync_lbl}).")
elif mode == "skinner":
print(f"🎰 Max Headroom set to B.F. SKINNER VR-{odds} (1-in-{odds} payout on viewer +1; Honeybot sentinel {sync_lbl}).")
else:
print(f"🎭 Max Headroom ON ({canonical!r}; Honeybot sentinel {sync_lbl}, 180s boot/Overture No-Max Zone active).")
return 0
[[[DIVIDER]]]
if mode == "off":
print(f"🛑 Max Headroom OFF (PIPULATE_YTWATCH_WEEBO='off', Honeybot /tmp/honeybot_no_max {sync_lbl}).")
elif mode == "skinner":
print(f"🎰 Max Headroom set to B.F. SKINNER VR-{odds} (1-in-{odds} payout on viewer +1; Honeybot sentinel {sync_lbl}).")
else:
print(f"🎭 Max Headroom ON ({canonical!r}; Honeybot sentinel {sync_lbl}, 180s boot/Overture No-Max Zone active).")
return 0
def _sync_honeybot_pinned_storytime(payload: dict) -> bool:
"""Atomically write ~/www/mikelev.in/.pinned_storytime on Honeybot over warm SSH."""
import shlex
import subprocess
raw_json = json.dumps(payload)
rmt = f"printf '%s\\n' {shlex.quote(raw_json)} > ~/www/mikelev.in/.pinned_storytime.tmp && mv ~/www/mikelev.in/.pinned_storytime.tmp ~/www/mikelev.in/.pinned_storytime"
return subprocess.run([*_hb_ssh_args(4), rmt], capture_output=True, text=True, timeout=6, check=False).returncode == 0
def manage_ytpin(arg="status", target_key="1", dry_run=False, posts_dir=None) -> int:
"""Inspect, pin, or clear Slot B in Honeybot's A/B Storytime rotation: `ytpin [status | <ID> | off]`."""
import subprocess
if posts_dir is not None:
pdir = Path(posts_dir).expanduser()
else:
targets = load_targets()
tcfg = targets.get(str(target_key), targets.get("1", DEFAULT_TARGETS["1"]))
pdir = Path(tcfg["path"]).expanduser()
repo_root = pdir.parent
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
cat = _cl.get_jukebox_catalog(posts_dir=pdir)
id_map, meta_map = cat.get("id_map") or {}, cat.get("meta_map") or {}
playable_ids = list(cat.get("playable_ids") or [])
latest_list = _cl.get_playlist(recent_n=1, include_archive=False, posts_dir=pdir)
slot_a = latest_list[0] if latest_list else None
token = str("status" if arg is None else arg).strip()
low = token.lower()
st_json = repo_root / "_data" / "storytime.json"
if low in ("", "status", "show", "check", "list"):
cur_pid = _cl.get_pinned_storytime_id(posts_dir=pdir)
a_jb = slot_a.get("jukebox_index") if slot_a else None
a_lbl = f"#{a_jb} [{slot_a.get('ticker_tag', '')}] — {slot_a.get('raw_title', '')} ({slot_a.get('date', '')})" if slot_a else "(none)"
if cur_pid and cur_pid in meta_map:
mb = meta_map[cur_pid]
b_lbl = f"#{cur_pid} [{mb.get('ticker_tag', '')}] — {mb.get('raw_title', '')} ({mb.get('date', '')})"
rot_lbl = f"DEDUPED TO SINGLE-STORY (Slot B #{cur_pid} == Slot A)" if a_jb == cur_pid else f"ACTIVE A/B ROTATION (#{a_jb} <-> #{cur_pid})"
else:
b_lbl, rot_lbl = "OFF (looping Slot A only)", "SINGLE-STORY (Slot B unpinned)"
hb_lbl = "SKIPPED (dry-run / sandbox)"
if not dry_run and posts_dir is None:
q_cmd = "printf 'PIN:%s\\nAB:%s\\n' \"$(tr -d '\\n' < ~/www/mikelev.in/.pinned_storytime 2>/dev/null)\" \"$(tr -d '\\n' < /tmp/honeybot_ab_state.json 2>/dev/null)\""
chk = subprocess.run([*_hb_ssh_args(4), q_cmd], capture_output=True, text=True, timeout=5, check=False)
if chk.returncode == 0:
pin_s, ab_s = "", ""
for ln in (chk.stdout or "").splitlines():
if ln.startswith("PIN:") and ln[4:].strip().startswith("{"):
try:
pin_s = str(json.loads(ln[4:].strip()).get("pinned_id") or 0)
except Exception:
pin_s = ln[4:].strip()
elif ln.startswith("AB:") and ln[3:].strip().startswith("{"):
try:
ab_s = "B (pinned)" if int(json.loads(ln[3:].strip()).get("slot") or 0) == 1 else "A (latest)"
except Exception:
pass
hb_lbl = f".pinned_storytime={'#' + pin_s if (pin_s and pin_s != '0') else ('off' if pin_s == '0' else 'unset')} | active_slot={ab_s or 'A (default)'}"
else:
hb_lbl = "UNREACHABLE"
print(f"🔁 Storytime A/B Wheel (`ytpin`): {rot_lbl}")
print(f" • Slot A (Latest inferred) : {a_lbl}")
print(f" • Slot B (Pinned explicit) : {b_lbl}")
print(f" • Honeybot live state : {hb_lbl}")
print(f" • Playable Norma IDs : {', '.join(str(x) for x in playable_ids[:10]) or 'none'}")
print(" • Commands : ytpin <ID> | ytpin off | ytpin status")
return 0
now_iso = datetime.now().isoformat(timespec="seconds")
prev_st = {}
if st_json.is_file():
try:
prev_st = json.loads(st_json.read_text(encoding="utf-8")) or {}
except Exception:
prev_st = {}
if low in ("0", "off", "none", "false", "no", "clear", "unpin", "reset"):
if dry_run:
print("📌 [DRY RUN] Would clear Storytime Slot-B pin (pinned_id=0 in _data/storytime.json & Honeybot .pinned_storytime).")
return 0
st_json.parent.mkdir(parents=True, exist_ok=True)
for k in ("pinned_filename", "pinned_slug", "pinned_title", "pinned_at", "article_id", "jukebox_index"):
prev_st.pop(k, None)
prev_st.update({"pinned_id": 0, "ab_pin": False, "updated_at": now_iso})
st_json.write_text(json.dumps(prev_st, indent=2) + "\n", encoding="utf-8")
(repo_root / ".pinned_storytime").unlink(missing_ok=True)
if posts_dir is None and (repo_root / ".git").exists():
subprocess.run(["git", "-C", str(repo_root), "add", "--", str(st_json)], check=False)
synced = _sync_honeybot_pinned_storytime({"pinned_id": 0, "ab_pin": False, "updated_at": now_iso}) if posts_dir is None else True
print(f"🛑 Cleared Storytime Slot-B pin (looping Latest Slot A only; Honeybot {'synced' if synced else 'SSH skipped'}).")
return 0
wanted_id = int(low.lstrip("#")) if low.lstrip("#").isdigit() else next(
(aid for aid in playable_ids if low in meta_map[aid]["filename"].lower() or low in meta_map[aid]["slug"].lower()),
0,
)
if not wanted_id or wanted_id in _cl.JUKEBOX_RESERVED_IDS or wanted_id not in id_map:
print(f"❌ Story {token!r} is not in playable _posts/_abstracts/ (run `norma {low.lstrip('#')}` -> `norma save` first if needed).")
print(f" Playable Norma IDs (newest first): {', '.join(str(x) for x in playable_ids[:12]) or 'none'}")
return 1
mb = meta_map[wanted_id]
if dry_run:
print(f"📌 [DRY RUN] Would pin Story #{wanted_id} [{mb['ticker_tag']}] ({mb['filename']}) as Slot B in _data/storytime.json & Honeybot .pinned_storytime.")
return 0
st_json.parent.mkdir(parents=True, exist_ok=True)
prev_st.update({
"pinned_id": int(wanted_id),
"ab_pin": True,
"pinned_filename": mb["filename"],
"pinned_slug": mb["slug"],
"pinned_title": mb["raw_title"],
"pinned_at": now_iso,
})
st_json.write_text(json.dumps(prev_st, indent=2) + "\n", encoding="utf-8")
(repo_root / ".pinned_storytime").unlink(missing_ok=True)
if posts_dir is None and (repo_root / ".git").exists():
subprocess.run(["git", "-C", str(repo_root), "add", "--", str(st_json)], check=False)
synced = _sync_honeybot_pinned_storytime({
"pinned_id": int(wanted_id),
"ab_pin": True,
"filename": mb["filename"],
"title": mb["raw_title"],
"updated_at": now_iso,
}) if posts_dir is None else True
a_jb = slot_a.get("jukebox_index") if slot_a else None
print(f"📌 Pinned Story #{wanted_id} [{mb['ticker_tag']}] as Slot B ({mb['raw_title']!r})!")
if slot_a:
note = "Slot B == Slot A right now; A/B alternation starts automatically on your next new Norma publish" if a_jb == wanted_id else f"Alternating Slot A #{a_jb} <-> Slot B #{wanted_id}"
print(f" • Rotation : {note}")
print(f" • Honeybot : {'synced .pinned_storytime live (takes effect on next loop boundary)' if synced else 'local _data/storytime.json updated (SSH skipped)'}")
return 0
[[[REPLACE]]]
Car 3b — Wire --broadcast pin & Packaged ytpin Command (common.py + flake.nix):
(nix) pipulate $
Target: scripts/articles/common.py
[[[SEARCH]]]
print(" 19. ytfeature [slug] 📌 List `storytime: false` backfill queue, promote post, or `--vod URL|live`")
print(" 20. ytcard 📇 Reprint the full Broadcast Kit for the latest post")
[[[DIVIDER]]]
print(" 19. ytfeature [slug] 📌 List `storytime: false` backfill queue, promote post, or `--vod URL|live`")
print(" ytpin [ID|off] 🔁 Pin a Norma Story # as Slot B in A/B Storytime rotation (`ytpin 1677` | `off`)")
print(" 20. ytcard 📇 Reprint the full Broadcast Kit for the latest post")
[[[REPLACE]]]
Target: scripts/articles/common.py
[[[SEARCH]]]
print("🎛️ Quick Words: yt (help) | norma | ythero | ytyaml | tweet | linkedin | fb | discord | ytpebble | yttitle | ytdesc | ytfeature | ytcard | yttop | markov | radar | ytoutro | ytbgm | ytreboot | ytsay | ytticker | ytapp | ytvim | ytbreaks | weeboh | stage | ytwatch | ytlog | chime | ytmax | ytping | ytroll | ytbell | ytstatus")
[[[DIVIDER]]]
print("🎛️ Quick Words: yt (help) | norma | ythero | ytyaml | tweet | linkedin | fb | discord | ytpebble | yttitle | ytdesc | ytpin | ytfeature | ytcard | yttop | markov | radar | ytoutro | ytbgm | ytreboot | ytsay | ytticker | ytapp | ytvim | ytbreaks | weeboh | stage | ytwatch | ytlog | chime | ytmax | ytping | ytroll | ytbell | ytstatus")
[[[REPLACE]]]
Target: scripts/articles/common.py
[[[SEARCH]]]
format_referral_alert as format_referral_alert,
manage_ytmax_toggle,
parse_allowlisted_chat_command as parse_allowlisted_chat_command,
[[[DIVIDER]]]
format_referral_alert as format_referral_alert,
manage_ytmax_toggle,
manage_ytpin,
parse_allowlisted_chat_command as parse_allowlisted_chat_command,
[[[REPLACE]]]
Target: scripts/articles/common.py
[[[SEARCH]]]
st_json = repo_root / "_data" / "storytime.json"
if st_json.is_file():
try:
cur_st = json.loads(st_json.read_text(encoding="utf-8"))
if cur_st.get("filename") == post_path.name:
st_json.unlink()
except Exception:
pass
[[[DIVIDER]]]
st_json = repo_root / "_data" / "storytime.json"
if st_json.is_file():
try:
cur_st = json.loads(st_json.read_text(encoding="utf-8"))
if cur_st.get("filename") == post_path.name and not cur_st.get("pinned_id"):
st_json.unlink()
except Exception:
pass
[[[REPLACE]]]
Target: scripts/articles/common.py
[[[SEARCH]]]
st_json = data_dir / "storytime.json"
st_payload = {
"filename": post_path.name,
"slug": slug_clean,
"featured_date": current_date,
"featured_order": next_order,
"promoted_at": datetime.now().isoformat(timespec="seconds"),
}
st_json.write_text(json.dumps(st_payload, indent=2) + "\n", encoding="utf-8")
[[[DIVIDER]]]
st_json = data_dir / "storytime.json"
prev_st = {}
if st_json.is_file():
try:
prev_st = json.loads(st_json.read_text(encoding="utf-8")) or {}
except Exception:
prev_st = {}
st_payload = {
**{k: prev_st[k] for k in ("pinned_id", "pinned_filename", "pinned_slug", "pinned_title", "pinned_at") if k in prev_st},
"ab_pin": bool(prev_st.get("pinned_id")),
"filename": post_path.name,
"slug": slug_clean,
"featured_date": current_date,
"featured_order": next_order,
"promoted_at": datetime.now().isoformat(timespec="seconds"),
}
st_json.write_text(json.dumps(st_payload, indent=2) + "\n", encoding="utf-8")
[[[REPLACE]]]
Target: scripts/articles/common.py
[[[SEARCH]]]
parser.add_argument(
"--broadcast",
choices=("help", "card", "summary", "hero", "yaml", "tweet", "linkedin", "fb", "facebook", "discord", "pebble", "title", "desc", "top", "outro", "bgm", "max", "reboot", "feature", "status", "bell", "stop", "start", "roll", "enable-ws", "say", "ticker", "ping", "watch"),
default="card",
help="Print/copy broadcast kit or control Honeybot (help|card|summary|hero|yaml|tweet|linkedin|fb|facebook|discord|pebble|title|desc|top|outro|bgm|max|reboot|feature|status|bell|stop|start|roll|enable-ws|say|ticker|ping|watch).",
)
[[[DIVIDER]]]
parser.add_argument(
"--broadcast",
choices=("help", "card", "summary", "hero", "yaml", "tweet", "linkedin", "fb", "facebook", "discord", "pebble", "title", "desc", "top", "outro", "bgm", "max", "pin", "reboot", "feature", "status", "bell", "stop", "start", "roll", "enable-ws", "say", "ticker", "ping", "watch"),
default="card",
help="Print/copy broadcast kit or control Honeybot (help|card|summary|hero|yaml|tweet|linkedin|fb|facebook|discord|pebble|title|desc|top|outro|bgm|max|pin|reboot|feature|status|bell|stop|start|roll|enable-ws|say|ticker|ping|watch).",
)
[[[REPLACE]]]
Target: scripts/articles/common.py
[[[SEARCH]]]
if cli_args.broadcast == "max":
max_arg = cli_args.message[0] if cli_args.message else "status"
sys.exit(manage_ytmax_toggle(arg=max_arg, dry_run=cli_args.dry_run))
if cli_args.broadcast == "bgm":
[[[DIVIDER]]]
if cli_args.broadcast == "max":
max_arg = cli_args.message[0] if cli_args.message else "status"
sys.exit(manage_ytmax_toggle(arg=max_arg, dry_run=cli_args.dry_run))
if cli_args.broadcast == "pin":
pin_arg = cli_args.message[0] if cli_args.message else (cli_args.slug or "status")
sys.exit(manage_ytpin(arg=pin_arg, target_key=cli_args.target, dry_run=cli_args.dry_run))
if cli_args.broadcast == "bgm":
[[[REPLACE]]]
Target: flake.nix
[[[SEARCH]]]
chimeCommand = pkgs.writeShellScriptBin "chime" ''
set -euo pipefail
root="''${PIPULATE_ROOT:-$PWD}"
python_bin="$root/.venv/bin/python"
if [ ! -x "$python_bin" ]; then
echo "chime: missing $python_bin; enter the Pipulate Nix shell first." >&2
exit 1
fi
exec "$python_bin" "$root/scripts/articles/common.py" --broadcast watch chime "$@"
'';
[[[DIVIDER]]]
chimeCommand = pkgs.writeShellScriptBin "chime" ''
set -euo pipefail
root="''${PIPULATE_ROOT:-$PWD}"
python_bin="$root/.venv/bin/python"
if [ ! -x "$python_bin" ]; then
echo "chime: missing $python_bin; enter the Pipulate Nix shell first." >&2
exit 1
fi
exec "$python_bin" "$root/scripts/articles/common.py" --broadcast watch chime "$@"
'';
ytpinCommand = pkgs.writeShellScriptBin "ytpin" ''
set -euo pipefail
root="''${PIPULATE_ROOT:-$PWD}"
python_bin="$root/.venv/bin/python"
if [ ! -x "$python_bin" ]; then
echo "ytpin: missing $python_bin; enter the Pipulate Nix shell first." >&2
exit 1
fi
exec "$python_bin" "$root/scripts/articles/common.py" --broadcast pin "$@"
'';
[[[REPLACE]]]
Target: flake.nix
[[[SEARCH]]]
weebolCommand # List enrolled Operation Weebo shorthand assets
chimeCommand # 1-word Prime marimba/alert audio toggle (Honeybot untouched)
stageCommand # Watchdog-free :5002 stage server in isolated git worktree
[[[DIVIDER]]]
weebolCommand # List enrolled Operation Weebo shorthand assets
chimeCommand # 1-word Prime marimba/alert audio toggle (Honeybot untouched)
ytpinCommand # 1-word Storytime Slot-B pin control (A/B alternating rotation)
stageCommand # Watchdog-free :5002 stage server in isolated git worktree
[[[REPLACE]]]
Ignition: After committing Car 3b (flake.nix), run exit then nix develop on (nix) pipulate $ so ytpin enters PATH before the next compile’s ! command -v ytpin tap runs.
(4) PROMPT
(nix) pipulate $
Hop off the ride. Verify the Pass B AFTER receipts (`command -v ytpin` and `YTPIN_SANDBOX`) plus the live `ytpin 1677 && ytreboot && ytpin status` witness on Honeybot, discharge P0.87 and `NORMALIZE HB_STAGE_ARTICLE PEAK-RESET IDENTITY` in `foo_files.py`, and execute the full 7-beat Notary Dismount (0. TL;DR through 6. NOTARIZE) to seal this article.
(5) EXTERNAL DELIVERABLES
Once you run exit and nix develop after committing Car 3a + Car 3b, run this live deployment witness on Prime and paste its output into your next prompt so the Notary Dismount records #1682 <-> #1677 live on Honeybot:
(nix) pipulate $
ytpin 1677 && ytreboot && ytpin status
MikeLev.in: Okay I like the sound of the answers here and the easy command at the end.
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 $ LD_LIBRARY_PATH="" nix-instantiate --parse flake.nix >/dev/null && command -v ytpin || echo "YTPIN_PATH: missing"
pyprobe 'sys.path.insert(0, "scripts/articles"); sys.path.insert(0, "remotes/honeybot/scripts"); import yt_watch, content_loader as cl; ok = hasattr(yt_watch, "manage_ytpin"); rc_dry = sp.run([sys.executable, "scripts/articles/common.py", "--broadcast", "pin", "--dry-run", "1677"], capture_output=True, text=True).returncode if ok else 2; td = Path(tempfile.mkdtemp()); pd = td / "_posts"; pd.mkdir(); real_pd = Path.home() / "repos/trimnoir/_posts"; os.symlink(real_pd / "_abstracts", pd / "_abstracts"); [os.symlink(real_pd / f.name, pd / f.name) for f in (real_pd / "_abstracts").glob("*.md") if (real_pd / f.name).is_file()]; r_on = yt_watch.manage_ytpin("1677", posts_dir=pd) if ok else -1; ab_on = [a["jukebox_index"] for a in cl.get_ab_playlist(posts_dir=pd)] if ok else []; r_off = yt_watch.manage_ytpin("off", posts_dir=pd) if ok else -1; ab_off = [a["jukebox_index"] for a in cl.get_ab_playlist(posts_dir=pd)] if ok else []; shutil.rmtree(td); print("YTPIN_SANDBOX:", ok, rc_dry, (r_on, ab_on), (r_off, ab_off))'
YTPIN_PATH: missing
YTPIN_SANDBOX: False 2 (-1, []) (-1, [])
(nix) pipulate $
2: AFTER (NEXT CONTEXT):
# # Context 1: A/B Alternating Storytime Rotation (P0.87) & Stage Article Identity
# context.txt
# ! latest
#
# remotes/honeybot/scripts/score.py
# remotes/honeybot/scripts/content_loader.py
# remotes/honeybot/scripts/stream.py
# scripts/articles/yt_watch.py
# # Context 2: Operator ytpin CLI & Live #1677 Pin (Pass B)
# context.txt
# ! pyprobe 'import sys; sys.path.insert(0, "remotes/honeybot/scripts"); import content_loader as cl, score; ids = cl.get_jukebox_playable_ids(); has_ab = hasattr(cl, "get_ab_playlist"); os.environ["HONEYBOT_PINNED_STORY_ID"] = str(ids[0]) if ids else ""; d1 = len(cl.get_ab_playlist()) if has_ab else None; os.environ["HONEYBOT_PINNED_STORY_ID"] = str(ids[1]) if len(ids) > 1 else ""; f_pinned = cl.get_featured_article_id(); pair = [a["jukebox_index"] for a in cl.get_ab_playlist()] if has_ab else None; s0 = next((v["meta"]["jukebox_index"] for c, v in score.get_script(ab_slot=0) if c == "CARD" and isinstance(v, dict) and "meta" in v), None) if has_ab else None; s1 = next((v["meta"]["jukebox_index"] for c, v in score.get_script(ab_slot=1) if c == "CARD" and isinstance(v, dict) and "meta" in v), None) if has_ab else None; sb = next((v["meta"]["jukebox_index"] for c, v in score.get_script(breaking=True, ab_slot=1) if c == "CARD" and isinstance(v, dict) and "meta" in v), None) if has_ab else None; os.environ.pop("HONEYBOT_PINNED_STORY_ID", None); print("AB_ENGINE:", has_ab, d1, pair, (s0, s1, sb), f_pinned == cl.get_featured_article_id())'
# ! pyprobe 'os.environ["HONEYBOT_NO_AUDIO"] = "1"; sys.path.insert(0, "remotes/honeybot/scripts"); sys.path.insert(0, "scripts/articles"); import stream, yt_watch; has_fn = hasattr(stream, "_sync_ab_slot_state") and hasattr(yt_watch, "canonical_stage_article_key"); tf = tempfile.NamedTemporaryFile(delete=False, suffix=".json"); tf.close(); stream._sync_ab_slot_state(1, state_path=tf.name) if has_fn else None; loaded = stream._sync_ab_slot_state(None, state_path=tf.name) if has_fn else None; os.unlink(tf.name); k1 = yt_watch.canonical_stage_article_key("(\x272026-11-26\x27, 1, \x272026-11-26-freeze-urls-ai-doorway-filters.md\x27)") if has_fn else "a"; k2 = yt_watch.canonical_stage_article_key("#1677 [FREEZE URLS]: Freeze Your URLs (2026-11-26)") if has_fn else "b"; print("DIRECTOR_STAGE:", has_fn, loaded, k1 == k2, k1)'
# ! rg -n "ytmax|--broadcast|storytime\.json" flake.nix scripts/articles/common.py remotes/honeybot/hooks/post-receive
# flake.nix
# scripts/articles/common.py
# scripts/articles/yt_watch.py
# remotes/honeybot/scripts/content_loader.py
# remotes/honeybot/scripts/score.py
# Context 3: Live #1677 Pin Witness & Notary Dismount (P0.87)
context.txt
! LD_LIBRARY_PATH="" nix-instantiate --parse flake.nix >/dev/null && command -v ytpin || echo "YTPIN_PATH: missing"
! pyprobe 'sys.path.insert(0, "scripts/articles"); sys.path.insert(0, "remotes/honeybot/scripts"); import yt_watch, content_loader as cl; ok = hasattr(yt_watch, "manage_ytpin"); rc_dry = sp.run([sys.executable, "scripts/articles/common.py", "--broadcast", "pin", "--dry-run", "1677"], capture_output=True, text=True).returncode if ok else 2; td = Path(tempfile.mkdtemp()); pd = td / "_posts"; pd.mkdir(); real_pd = Path.home() / "repos/trimnoir/_posts"; os.symlink(real_pd / "_abstracts", pd / "_abstracts"); [os.symlink(real_pd / f.name, pd / f.name) for f in (real_pd / "_abstracts").glob("*.md") if (real_pd / f.name).is_file()]; r_on = yt_watch.manage_ytpin("1677", posts_dir=pd) if ok else -1; ab_on = [a["jukebox_index"] for a in cl.get_ab_playlist(posts_dir=pd)] if ok else []; r_off = yt_watch.manage_ytpin("off", posts_dir=pd) if ok else -1; ab_off = [a["jukebox_index"] for a in cl.get_ab_playlist(posts_dir=pd)] if ok else []; shutil.rmtree(td); print("YTPIN_SANDBOX:", ok, rc_dry, (r_on, ab_on), (r_off, ab_off))'
foo_files.py
scripts/articles/yt_watch.py
remotes/honeybot/scripts/content_loader.py
remotes/honeybot/scripts/score.py
3: CHANGE (PATCHES):
Okay multiple probes again. I’m on the fence about doing git pushs between
each or once at the end – when the real answer is I shouldn’t git push at all
until whatever local that needs to be tested is tested but my confidence runs
high with Gemini 4 Carbon High these days and this has become my habit. I can
always revert and this is fine during these Cathedral of One days. Were there
actual users out there doing auto-pulls against origin/main I’d think twice.
Even then, ha ha! I need to get my GitHub etiquette down sooner or later. Likely later. Explain to the Newcomers what I’m even talking about here, Gemini.
Shipping the One-Word SSH Pin Command
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/yt_watch.py'.
📏 Car meter: 1/5 file(s), 1/12 block(s), 138/220 line(s) (over 120-line aim; prefer separate Car 3a/3b fences)
(nix) pipulate $ d
diff --git a/scripts/articles/yt_watch.py b/scripts/articles/yt_watch.py
index 69ddbf7..5144580 100644
--- a/scripts/articles/yt_watch.py
+++ b/scripts/articles/yt_watch.py
@@ -1488,6 +1488,137 @@ def manage_ytmax_toggle(arg="status", dry_run=False) -> int:
return 0
+def _sync_honeybot_pinned_storytime(payload: dict) -> bool:
+ """Atomically write ~/www/mikelev.in/.pinned_storytime on Honeybot over warm SSH."""
+ import shlex
+ import subprocess
+ raw_json = json.dumps(payload)
+ rmt = f"printf '%s\\n' {shlex.quote(raw_json)} > ~/www/mikelev.in/.pinned_storytime.tmp && mv ~/www/mikelev.in/.pinned_storytime.tmp ~/www/mikelev.in/.pinned_storytime"
+ return subprocess.run([*_hb_ssh_args(4), rmt], capture_output=True, text=True, timeout=6, check=False).returncode == 0
+
+
+def manage_ytpin(arg="status", target_key="1", dry_run=False, posts_dir=None) -> int:
+ """Inspect, pin, or clear Slot B in Honeybot's A/B Storytime rotation: `ytpin [status | <ID> | off]`."""
+ import subprocess
+ if posts_dir is not None:
+ pdir = Path(posts_dir).expanduser()
+ else:
+ targets = load_targets()
+ tcfg = targets.get(str(target_key), targets.get("1", DEFAULT_TARGETS["1"]))
+ pdir = Path(tcfg["path"]).expanduser()
+ repo_root = pdir.parent
+ 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
+ cat = _cl.get_jukebox_catalog(posts_dir=pdir)
+ id_map, meta_map = cat.get("id_map") or {}, cat.get("meta_map") or {}
+ playable_ids = list(cat.get("playable_ids") or [])
+ latest_list = _cl.get_playlist(recent_n=1, include_archive=False, posts_dir=pdir)
+ slot_a = latest_list[0] if latest_list else None
+ token = str("status" if arg is None else arg).strip()
+ low = token.lower()
+ st_json = repo_root / "_data" / "storytime.json"
+ if low in ("", "status", "show", "check", "list"):
+ cur_pid = _cl.get_pinned_storytime_id(posts_dir=pdir)
+ a_jb = slot_a.get("jukebox_index") if slot_a else None
+ a_lbl = f"#{a_jb} [{slot_a.get('ticker_tag', '')}] — {slot_a.get('raw_title', '')} ({slot_a.get('date', '')})" if slot_a else "(none)"
+ if cur_pid and cur_pid in meta_map:
+ mb = meta_map[cur_pid]
+ b_lbl = f"#{cur_pid} [{mb.get('ticker_tag', '')}] — {mb.get('raw_title', '')} ({mb.get('date', '')})"
+ rot_lbl = f"DEDUPED TO SINGLE-STORY (Slot B #{cur_pid} == Slot A)" if a_jb == cur_pid else f"ACTIVE A/B ROTATION (#{a_jb} <-> #{cur_pid})"
+ else:
+ b_lbl, rot_lbl = "OFF (looping Slot A only)", "SINGLE-STORY (Slot B unpinned)"
+ hb_lbl = "SKIPPED (dry-run / sandbox)"
+ if not dry_run and posts_dir is None:
+ q_cmd = "printf 'PIN:%s\\nAB:%s\\n' \"$(tr -d '\\n' < ~/www/mikelev.in/.pinned_storytime 2>/dev/null)\" \"$(tr -d '\\n' < /tmp/honeybot_ab_state.json 2>/dev/null)\""
+ chk = subprocess.run([*_hb_ssh_args(4), q_cmd], capture_output=True, text=True, timeout=5, check=False)
+ if chk.returncode == 0:
+ pin_s, ab_s = "", ""
+ for ln in (chk.stdout or "").splitlines():
+ if ln.startswith("PIN:") and ln[4:].strip().startswith("{"):
+ try:
+ pin_s = str(json.loads(ln[4:].strip()).get("pinned_id") or 0)
+ except Exception:
+ pin_s = ln[4:].strip()
+ elif ln.startswith("AB:") and ln[3:].strip().startswith("{"):
+ try:
+ ab_s = "B (pinned)" if int(json.loads(ln[3:].strip()).get("slot") or 0) == 1 else "A (latest)"
+ except Exception:
+ pass
+ hb_lbl = f".pinned_storytime={'#' + pin_s if (pin_s and pin_s != '0') else ('off' if pin_s == '0' else 'unset')} | active_slot={ab_s or 'A (default)'}"
+ else:
+ hb_lbl = "UNREACHABLE"
+ print(f"🔁 Storytime A/B Wheel (`ytpin`): {rot_lbl}")
+ print(f" • Slot A (Latest inferred) : {a_lbl}")
+ print(f" • Slot B (Pinned explicit) : {b_lbl}")
+ print(f" • Honeybot live state : {hb_lbl}")
+ print(f" • Playable Norma IDs : {', '.join(str(x) for x in playable_ids[:10]) or 'none'}")
+ print(" • Commands : ytpin <ID> | ytpin off | ytpin status")
+ return 0
+ now_iso = datetime.now().isoformat(timespec="seconds")
+ prev_st = {}
+ if st_json.is_file():
+ try:
+ prev_st = json.loads(st_json.read_text(encoding="utf-8")) or {}
+ except Exception:
+ prev_st = {}
+ if low in ("0", "off", "none", "false", "no", "clear", "unpin", "reset"):
+ if dry_run:
+ print("📌 [DRY RUN] Would clear Storytime Slot-B pin (pinned_id=0 in _data/storytime.json & Honeybot .pinned_storytime).")
+ return 0
+ st_json.parent.mkdir(parents=True, exist_ok=True)
+ for k in ("pinned_filename", "pinned_slug", "pinned_title", "pinned_at", "article_id", "jukebox_index"):
+ prev_st.pop(k, None)
+ prev_st.update({"pinned_id": 0, "ab_pin": False, "updated_at": now_iso})
+ st_json.write_text(json.dumps(prev_st, indent=2) + "\n", encoding="utf-8")
+ (repo_root / ".pinned_storytime").unlink(missing_ok=True)
+ if posts_dir is None and (repo_root / ".git").exists():
+ subprocess.run(["git", "-C", str(repo_root), "add", "--", str(st_json)], check=False)
+ synced = _sync_honeybot_pinned_storytime({"pinned_id": 0, "ab_pin": False, "updated_at": now_iso}) if posts_dir is None else True
+ print(f"🛑 Cleared Storytime Slot-B pin (looping Latest Slot A only; Honeybot {'synced' if synced else 'SSH skipped'}).")
+ return 0
+ wanted_id = int(low.lstrip("#")) if low.lstrip("#").isdigit() else next(
+ (aid for aid in playable_ids if low in meta_map[aid]["filename"].lower() or low in meta_map[aid]["slug"].lower()),
+ 0,
+ )
+ if not wanted_id or wanted_id in _cl.JUKEBOX_RESERVED_IDS or wanted_id not in id_map:
+ print(f"❌ Story {token!r} is not in playable _posts/_abstracts/ (run `norma {low.lstrip('#')}` -> `norma save` first if needed).")
+ print(f" Playable Norma IDs (newest first): {', '.join(str(x) for x in playable_ids[:12]) or 'none'}")
+ return 1
+ mb = meta_map[wanted_id]
+ if dry_run:
+ print(f"📌 [DRY RUN] Would pin Story #{wanted_id} [{mb['ticker_tag']}] ({mb['filename']}) as Slot B in _data/storytime.json & Honeybot .pinned_storytime.")
+ return 0
+ st_json.parent.mkdir(parents=True, exist_ok=True)
+ prev_st.update({
+ "pinned_id": int(wanted_id),
+ "ab_pin": True,
+ "pinned_filename": mb["filename"],
+ "pinned_slug": mb["slug"],
+ "pinned_title": mb["raw_title"],
+ "pinned_at": now_iso,
+ })
+ st_json.write_text(json.dumps(prev_st, indent=2) + "\n", encoding="utf-8")
+ (repo_root / ".pinned_storytime").unlink(missing_ok=True)
+ if posts_dir is None and (repo_root / ".git").exists():
+ subprocess.run(["git", "-C", str(repo_root), "add", "--", str(st_json)], check=False)
+ synced = _sync_honeybot_pinned_storytime({
+ "pinned_id": int(wanted_id),
+ "ab_pin": True,
+ "filename": mb["filename"],
+ "title": mb["raw_title"],
+ "updated_at": now_iso,
+ }) if posts_dir is None else True
+ a_jb = slot_a.get("jukebox_index") if slot_a else None
+ print(f"📌 Pinned Story #{wanted_id} [{mb['ticker_tag']}] as Slot B ({mb['raw_title']!r})!")
+ if slot_a:
+ note = "Slot B == Slot A right now; A/B alternation starts automatically on your next new Norma publish" if a_jb == wanted_id else f"Alternating Slot A #{a_jb} <-> Slot B #{wanted_id}"
+ print(f" • Rotation : {note}")
+ print(f" • Honeybot : {'synced .pinned_storytime live (takes effect on next loop boundary)' if synced else 'local _data/storytime.json updated (SSH skipped)'}")
+ return 0
+
+
YT_ULL_GREET_COOLDOWN = int(os.environ.get("PIPULATE_YT_GREET_COOLDOWN", "25"))
DEFAULT_ULL_GREET_MESSAGE = (
"> +1 VIEWER DETECTED. SHALL WE PLAY A GAME?\n"
(nix) pipulate $ m
📝 Committing: refactor: sync honeybot pinned storytime via ssh
[main 518e522] refactor: sync honeybot pinned storytime via ssh
1 file changed, 131 insertions(+)
(nix) pipulate $ git push
Enumerating objects: 9, done.
Counting objects: 100% (9/9), done.
Delta compression using up to 48 threads
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 3.01 KiB | 1.51 MiB/s, done.
Total 5 (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
93977f4..518e522 main -> main
(nix) pipulate $
And the 2nd patch.
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'.
✅ DETERMINISTIC PATCH APPLIED: Successfully mutated 'flake.nix'.
📏 Car meter: 2/5 file(s), 9/12 block(s), 70/220 line(s) (aim <= 120/car)
(nix) pipulate $ d
diff --git a/flake.nix b/flake.nix
index 35997c0..0f4f6be 100644
--- a/flake.nix
+++ b/flake.nix
@@ -536,6 +536,16 @@
fi
exec "$python_bin" "$root/scripts/articles/common.py" --broadcast watch chime "$@"
'';
+ ytpinCommand = pkgs.writeShellScriptBin "ytpin" ''
+ set -euo pipefail
+ root="''${PIPULATE_ROOT:-$PWD}"
+ python_bin="$root/.venv/bin/python"
+ if [ ! -x "$python_bin" ]; then
+ echo "ytpin: missing $python_bin; enter the Pipulate Nix shell first." >&2
+ exit 1
+ fi
+ exec "$python_bin" "$root/scripts/articles/common.py" --broadcast pin "$@"
+ '';
# PORT-SCOPED SERVER REAPER: stops only the Pipulate server matching $1
# (and optional tmux session $2), leaving sibling ports such as :5002 untouched.
stopPortScript = pkgs.writeShellScript "pipulate-stop-port" ''
@@ -1322,6 +1332,7 @@
weebohCommand # Deliberate remote Operation Weebo overlay on Honeybot :10.0
weebolCommand # List enrolled Operation Weebo shorthand assets
chimeCommand # 1-word Prime marimba/alert audio toggle (Honeybot untouched)
+ ytpinCommand # 1-word Storytime Slot-B pin control (A/B alternating rotation)
stageCommand # Watchdog-free :5002 stage server in isolated git worktree
rgxCommand # Bounded AND-search over article files
rgxcCommand # rgx plus holographic shards and hit context
diff --git a/scripts/articles/common.py b/scripts/articles/common.py
index 8112793..cfa02eb 100644
--- a/scripts/articles/common.py
+++ b/scripts/articles/common.py
@@ -1166,6 +1166,7 @@ def print_broadcast_kit(target_key="1", mode="card", slug_match=None):
print(" ytbgm [VOL] 🎵 Tune Storytime BGM volume live (`ytbgm 0.35`, `off`, `on`, `status`)")
print(" ytreboot 🔄 Sync Honeybot scripts + graceful reboot (+ restarts ytwatch & ytbreaks)")
print(" 19. ytfeature [slug] 📌 List `storytime: false` backfill queue, promote post, or `--vod URL|live`")
+ print(" ytpin [ID|off] 🔁 Pin a Norma Story # as Slot B in A/B Storytime rotation (`ytpin 1677` | `off`)")
print(" 20. ytcard 📇 Reprint the full Broadcast Kit for the latest post")
if kit:
print(thin)
@@ -1274,7 +1275,7 @@ def print_broadcast_kit(target_key="1", mode="card", slug_match=None):
if yt_thumb:
print(f"📺 YT STUDIO THUMBNAIL (1280x720 16:9): {yt_thumb} (Checklist: Upload thumb + Enable DVR)")
print(thin)
- print("🎛️ Quick Words: yt (help) | norma | ythero | ytyaml | tweet | linkedin | fb | discord | ytpebble | yttitle | ytdesc | ytfeature | ytcard | yttop | markov | radar | ytoutro | ytbgm | ytreboot | ytsay | ytticker | ytapp | ytvim | ytbreaks | weeboh | stage | ytwatch | ytlog | chime | ytmax | ytping | ytroll | ytbell | ytstatus")
+ print("🎛️ Quick Words: yt (help) | norma | ythero | ytyaml | tweet | linkedin | fb | discord | ytpebble | yttitle | ytdesc | ytpin | ytfeature | ytcard | yttop | markov | radar | ytoutro | ytbgm | ytreboot | ytsay | ytticker | ytapp | ytvim | ytbreaks | weeboh | stage | ytwatch | ytlog | chime | ytmax | ytping | ytroll | ytbell | ytstatus")
print(thin)
print(f"🔗 Preview URL: {kit['preview_url']}")
print(f"✏️ Edit Command: vim {kit['path']}")
@@ -1815,6 +1816,7 @@ from yt_watch import ( # noqa: E402
fetch_youtube_live_state as fetch_youtube_live_state,
format_referral_alert as format_referral_alert,
manage_ytmax_toggle,
+ manage_ytpin,
parse_allowlisted_chat_command as parse_allowlisted_chat_command,
parse_ytmax_mode,
process_referral_jsonl_lines as process_referral_jsonl_lines,
@@ -2563,7 +2565,7 @@ def manage_storytime_feature(
if st_json.is_file():
try:
cur_st = json.loads(st_json.read_text(encoding="utf-8"))
- if cur_st.get("filename") == post_path.name:
+ if cur_st.get("filename") == post_path.name and not cur_st.get("pinned_id"):
st_json.unlink()
except Exception:
pass
@@ -2615,7 +2617,15 @@ def manage_storytime_feature(
data_dir = repo_root / "_data"
data_dir.mkdir(parents=True, exist_ok=True)
st_json = data_dir / "storytime.json"
+ prev_st = {}
+ if st_json.is_file():
+ try:
+ prev_st = json.loads(st_json.read_text(encoding="utf-8")) or {}
+ except Exception:
+ prev_st = {}
st_payload = {
+ **{k: prev_st[k] for k in ("pinned_id", "pinned_filename", "pinned_slug", "pinned_title", "pinned_at") if k in prev_st},
+ "ab_pin": bool(prev_st.get("pinned_id")),
"filename": post_path.name,
"slug": slug_clean,
"featured_date": current_date,
@@ -2643,9 +2653,9 @@ if __name__ == "__main__":
add_standard_arguments(parser)
parser.add_argument(
"--broadcast",
- choices=("help", "card", "summary", "hero", "yaml", "tweet", "linkedin", "fb", "facebook", "discord", "pebble", "title", "desc", "top", "outro", "bgm", "max", "reboot", "feature", "status", "bell", "stop", "start", "roll", "enable-ws", "say", "ticker", "ping", "watch"),
+ choices=("help", "card", "summary", "hero", "yaml", "tweet", "linkedin", "fb", "facebook", "discord", "pebble", "title", "desc", "top", "outro", "bgm", "max", "pin", "reboot", "feature", "status", "bell", "stop", "start", "roll", "enable-ws", "say", "ticker", "ping", "watch"),
default="card",
- help="Print/copy broadcast kit or control Honeybot (help|card|summary|hero|yaml|tweet|linkedin|fb|facebook|discord|pebble|title|desc|top|outro|bgm|max|reboot|feature|status|bell|stop|start|roll|enable-ws|say|ticker|ping|watch).",
+ help="Print/copy broadcast kit or control Honeybot (help|card|summary|hero|yaml|tweet|linkedin|fb|facebook|discord|pebble|title|desc|top|outro|bgm|max|pin|reboot|feature|status|bell|stop|start|roll|enable-ws|say|ticker|ping|watch).",
)
parser.add_argument(
"--vod",
@@ -2975,6 +2985,9 @@ if __name__ == "__main__":
if cli_args.broadcast == "max":
max_arg = cli_args.message[0] if cli_args.message else "status"
sys.exit(manage_ytmax_toggle(arg=max_arg, dry_run=cli_args.dry_run))
+ if cli_args.broadcast == "pin":
+ pin_arg = cli_args.message[0] if cli_args.message else (cli_args.slug or "status")
+ sys.exit(manage_ytpin(arg=pin_arg, target_key=cli_args.target, dry_run=cli_args.dry_run))
if cli_args.broadcast == "bgm":
bgm_arg = cli_args.message[0] if cli_args.message else "status"
sys.exit(tune_storytime_bgm(arg=bgm_arg, dry_run=cli_args.dry_run))
(nix) pipulate $ m
📝 Committing: chore: Implement ytpin command for Storytime A/B slot-B pin control
[main 8df7010] chore: Implement ytpin command for Storytime A/B slot-B pin control
2 files changed, 28 insertions(+), 4 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% (6/6), done.
Writing objects: 100% (6/6), 1.05 KiB | 1.05 MiB/s, done.
Total 6 (delta 5), reused 0 (delta 0), pack-reused 0 (from 0)
remote: Resolving deltas: 100% (5/5), completed with 5 local objects.
To github.com:pipulate/pipulate.git
518e522..8df7010 main -> main
(nix) pipulate $
Ignition: often “exit”, “nix develop”. Instructions may vary.
Okay, we’ve been in ground state for 30 minutes. The coast is clear for a reboot.
[2026-11-30 21:16:02] 💓 1 watching (peak 1) · 🧭 GROUND (1 watching, solo=11 minutes, next=20 minutes) · ⚙️ PATROL 2s (39ms) · 💬 0 · 🟣 13/1000
[2026-11-30 21:16:33] 💓 1 watching (peak 1) · 🧭 GROUND (1 watching, solo=12 minutes, next=20 minutes) · ⚙️ PATROL 2s (38ms) · 💬 0 · 🟣 13/1000
[2026-11-30 21:17:04] 💓 1 watching (peak 1) · 🧭 GROUND (1 watching, solo=12 minutes, next=20 minutes) · ⚙️ PATROL 2s (47ms) · 💬 0 · 🟣 13/1000
[2026-11-30 21:17:35] 💓 1 watching (peak 1) · 🧭 GROUND (1 watching, solo=13 minutes, next=20 minutes) · ⚙️ PATROL 2s (54ms) · 💬 0 · 🟣 13/1000
[2026-11-30 21:18:07] 💓 1 watching (peak 1) · 🧭 GROUND (1 watching, solo=13 minutes, next=20 minutes) · ⚙️ PATROL 2s (48ms) · 💬 0 · 🟣 13/1000
[2026-11-30 21:18:38] 💓 1 watching (peak 1) · 🧭 GROUND (1 watching, solo=14 minutes, next=20 minutes) · ⚙️ PATROL 2s (43ms) · 💬 0 · 🟣 13/1000
[2026-11-30 21:19:09] 💓 1 watching (peak 1) · 🧭 GROUND (1 watching, solo=14 minutes, next=20 minutes) · ⚙️ PATROL 2s (48ms) · 💬 0 · 🟣 13/1000
[2026-11-30 21:19:40] 💓 1 watching (peak 1) · 🧭 GROUND (1 watching, solo=15 minutes, next=20 minutes) · ⚙️ PATROL 2s (42ms) · 💬 0 · 🟣 13/1000
[2026-11-30 21:20:12] 💓 1 watching (peak 1) · 🧭 GROUND (1 watching, solo=15 minutes, next=20 minutes) · ⚙️ PATROL 2s (43ms) · 💬 0 · 🟣 13/1000
[2026-11-30 21:20:44] 💓 1 watching (peak 1) · 🧭 GROUND (1 watching, solo=16 minutes, next=20 minutes) · ⚙️ PATROL 2s (38ms) · 💬 0 · 🟣 13/1000
[2026-11-30 21:21:15] 💓 1 watching (peak 1) · 🧭 GROUND (1 watching, solo=16 minutes, next=20 minutes) · ⚙️ PATROL 2s (46ms) · 💬 0 · 🟣 13/1000
[2026-11-30 21:21:46] 💓 1 watching (peak 1) · 🧭 GROUND (1 watching, solo=17 minutes, next=20 minutes) · ⚙️ PATROL 2s (41ms) · 💬 0 · 🟣 13/1000
[2026-11-30 21:22:17] 💓 1 watching (peak 1) · 🧭 GROUND (1 watching, solo=17 minutes, next=20 minutes) · ⚙️ PATROL 2s (52ms) · 💬 0 · 🟣 13/1000
[2026-11-30 21:22:48] 💓 1 watching (peak 1) · 🧭 GROUND (1 watching, solo=18 minutes, next=20 minutes) · ⚙️ PATROL 2s (38ms) · 💬 0 · 🟣 13/1000
[2026-11-30 21:23:19] 💓 1 watching (peak 1) · 🧭 GROUND (1 watching, solo=18 minutes, next=20 minutes) · ⚙️ PATROL 2s (46ms) · 💬 0 · 🟣 13/1000
[2026-11-30 21:23:50] 💓 1 watching (peak 1) · 🧭 GROUND (1 watching, solo=19 minutes, next=20 minutes) · ⚙️ PATROL 2s (40ms) · 💬 0 · 🟣 13/1000
[2026-11-30 21:24:22] 💓 1 watching (peak 1) · 🧭 GROUND (1 watching, solo=19 minutes, next=20 minutes) · ⚙️ PATROL 2s (42ms) · 💬 0 · 🟣 13/1000
[2026-11-30 21:24:53] 💓 1 watching (peak 1) · 🧭 GROUND (1 watching, solo=20 minutes, next=20 minutes) · ⚙️ PATROL 2s (47ms) · 💬 0 · 🟣 13/1000
[2026-11-30 21:25:03] 🧘 [GROUND #2] Ground state, 20 minutes. (GROUND (1 watching, solo=20 minutes, next=30 minutes); prime_audio=on)
[2026-11-30 21:25:24] 💓 1 watching (peak 1) · 🧭 GROUND (1 watching, solo=20 minutes, next=30 minutes) · ⚙️ PATROL 2s (41ms) · 💬 0 · 🟣 13/1000
[2026-11-30 21:25:55] 💓 1 watching (peak 1) · 🧭 GROUND (1 watching, solo=21 minutes, next=30 minutes) · ⚙️ PATROL 2s (63ms) · 💬 0 · 🟣 13/1000
[2026-11-30 21:25:59] 🔄 [HOT-RELOAD] ytwatch code updated on disk — re-execing ytwatch daemon...
[2026-11-30 21:26:01] 📡 YouTube Watch: LIVE=yes | video=5CjD6ie15_U | viewers=1 (api=1, html=1; tts>=2 for 60s, clear<=1, viewer_ntfy=off) | chat_items=0 | discord=13/1000 (online=1) | daemon=RUNNING | title='LIVE: Rickroll /wp-admin Bots With HTTP 418 and Skinner-Box Odds'
[2026-11-30 21:26:01] 🔭 Watching https://www.youtube.com/@MikeLevin/live (adaptive pulse 2s [PATROL], full HTML+chat sync every 30s, dwell=60s, clear_max=1, prime_chime=on, stream_chime=on, ull_greet=on)...
[2026-11-30 21:26:01] 💡 [HOW TO EXIT TMUX WITHOUT STOPPING]: Press 'q' OR press Ctrl+b, release, then press d
[2026-11-30 21:26:33] 💓 1 watching (peak 1) · 🧭 GROUND (1 watching, solo=22 minutes, next=30 minutes) · ⚙️ PATROL 2s (41ms) · 💬 0 · 🟣 13/1000
[2026-11-30 21:27:04] 💓 1 watching (peak 1) · 🧭 GROUND (1 watching, solo=22 minutes, next=30 minutes) · ⚙️ PATROL 2s (41ms) · 💬 0 · 🟣 13/1000
[2026-11-30 21:27:35] 💓 1 watching (peak 1) · 🧭 GROUND (1 watching, solo=23 minutes, next=30 minutes) · ⚙️ PATROL 2s (42ms) · 💬 0 · 🟣 13/1000
[2026-11-30 21:28:06] 💓 1 watching (peak 1) · 🧭 GROUND (1 watching, solo=23 minutes, next=30 minutes) · ⚙️ PATROL 2s (48ms) · 💬 0 · 🟣 13/1000
[2026-11-30 21:28:38] 💓 1 watching (peak 1) · 🧭 GROUND (1 watching, solo=24 minutes, next=30 minutes) · ⚙️ PATROL 2s (40ms) · 💬 0 · 🟣 13/1000
[2026-11-30 21:29:09] 💓 1 watching (peak 1) · 🧭 GROUND (1 watching, solo=24 minutes, next=30 minutes) · ⚙️ PATROL 2s (39ms) · 💬 0 · 🟣 13/1000
[2026-11-30 21:29:40] 💓 1 watching (peak 1) · 🧭 GROUND (1 watching, solo=25 minutes, next=30 minutes) · ⚙️ PATROL 2s (45ms) · 💬 0 · 🟣 13/1000
[2026-11-30 21:30:11] 💓 1 watching (peak 1) · 🧭 GROUND (1 watching, solo=25 minutes, next=30 minutes) · ⚙️ PATROL 2s (48ms) · 💬 0 · 🟣 13/1000
[2026-11-30 21:30:42] 💓 1 watching (peak 1) · 🧭 GROUND (1 watching, solo=26 minutes, next=30 minutes) · ⚙️ PATROL 2s (377ms) · 💬 0 · 🟣 13/1000
[2026-11-30 21:30:55] 🔄 [HOT-RELOAD] ytwatch code updated on disk — re-execing ytwatch daemon...
[2026-11-30 21:30:57] 📡 YouTube Watch: LIVE=yes | video=5CjD6ie15_U | viewers=1 (api=1, html=1; tts>=2 for 60s, clear<=1, viewer_ntfy=off) | chat_items=0 | discord=13/1000 (online=2) | daemon=RUNNING | title='LIVE: Rickroll /wp-admin Bots With HTTP 418 and Skinner-Box Odds'
[2026-11-30 21:30:57] 🔭 Watching https://www.youtube.com/@MikeLevin/live (adaptive pulse 2s [PATROL], full HTML+chat sync every 30s, dwell=60s, clear_max=1, prime_chime=on, stream_chime=on, ull_greet=on)...
[2026-11-30 21:30:57] 💡 [HOW TO EXIT TMUX WITHOUT STOPPING]: Press 'q' OR press Ctrl+b, release, then press d
[2026-11-30 21:31:28] 💓 1 watching (peak 1) · 🧭 GROUND (1 watching, solo=26 minutes, next=30 minutes) · ⚙️ PATROL 2s (43ms) · 💬 0 · 🟣 13/1000
[2026-11-30 21:31:59] 💓 1 watching (peak 1) · 🧭 GROUND (1 watching, solo=27 minutes, next=30 minutes) · ⚙️ PATROL 2s (49ms) · 💬 0 · 🟣 13/1000
[2026-11-30 21:32:31] 💓 1 watching (peak 1) · 🧭 GROUND (1 watching, solo=27 minutes, next=30 minutes) · ⚙️ PATROL 2s (41ms) · 💬 0 · 🟣 13/1000
[2026-11-30 21:33:02] 💓 1 watching (peak 1) · 🧭 GROUND (1 watching, solo=28 minutes, next=30 minutes) · ⚙️ PATROL 2s (42ms) · 💬 0 · 🟣 13/1000
[2026-11-30 21:33:34] 💓 1 watching (peak 1) · 🧭 GROUND (1 watching, solo=29 minutes, next=30 minutes) · ⚙️ PATROL 2s (40ms) · 💬 0 · 🟣 13/1000
[2026-11-30 21:34:05] 💓 1 watching (peak 1) · 🧭 GROUND (1 watching, solo=29 minutes, next=30 minutes) · ⚙️ PATROL 2s (58ms) · 💬 0 · 🟣 13/1000
[2026-11-30 21:34:36] 💓 1 watching (peak 1) · 🧭 GROUND (1 watching, solo=30 minutes, next=30 minutes) · ⚙️ PATROL 2s (37ms) · 💬 0 · 🟣 13/1000
[2026-11-30 21:35:03] 🧘 [GROUND #3] Ground state, 30 minutes. (GROUND (1 watching, solo=30 minutes, next=40 minutes); prime_audio=on)
[2026-11-30 21:35:07] 💓 1 watching (peak 1) · 🧭 GROUND (1 watching, solo=30 minutes, next=40 minutes) · ⚙️ PATROL 2s (41ms) · 💬 0 · 🟣 13/1000
🔭 YTWATCH LIVE (👀 1 (Peak: 1)) 0:bash* EXIT (KEEP RUNNING): Press q OR Ctrl+b then d
And we rebuild our local Nix environment to get our nifty new command, and then
use it and then do a reboot to make the changes live on Honeybot. Still
surprised this doesn’t require a nixops upgrade but that’s good. It’s been
explained and I’ll take it.
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 $ exit
exit
(sys) pipulate $ ndq
(nix) pipulate $ ytpin 1677 && ytreboot && ytpin status
📌 Pinned Story #1677 [FREEZE URLS] as Slot B ('Freeze Your URLs Before AI Doorway Filters Tank Your Site')!
• Rotation : Alternating Slot A #1682 <-> Slot B #1677
• Honeybot : synced .pinned_storytime live (takes effect on next loop boundary)
🚀 Syncing Honeybot scripts to honeybot:~/www/mikelev.in/scripts/...
🔄 Signaling Honeybot stream.py on honeybot for graceful SCHEDULED REBOOT announcement...
signaling stream.py pid=1762832 for graceful reboot announcement...
✅ Stream watchdog relaunched fresh stream.py (pid=1823862 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
🔁 Storytime A/B Wheel (`ytpin`): ACTIVE A/B ROTATION (#1682 <-> #1677)
• Slot A (Latest inferred) : #1682 [HTTP 418] — Rickroll /wp-admin Bots With HTTP 418 and Skinner-Box Odds (2026-11-30)
• Slot B (Pinned explicit) : #1677 [FREEZE URLS] — Freeze Your URLs Before AI Doorway Filters Tank Your Site (2026-11-26)
• Honeybot live state : .pinned_storytime=#1677 | active_slot=A (default)
• Playable Norma IDs : 1682, 1677, 1676, 1675, 1674, 1673, 1672, 1671, 1670, 1669
• Commands : ytpin <ID> | ytpin off | ytpin status
(nix) pipulate $
4: PROMPT:
Hop off the ride. Verify the Pass B AFTER receipts (command -v ytpin and YTPIN_SANDBOX) plus the live ytpin 1677 && ytreboot && ytpin status witness on Honeybot, discharge P0.87 and NORMALIZE HB_STAGE_ARTICLE PEAK-RESET IDENTITY in foo_files.py, and execute the full 7-beat Notary Dismount (0. TL;DR through 6. NOTARIZE) to seal this article.
5: DELIVERABLE:
What does “DONE” look like?
Well I’ve got some witnessing to do. I saw the server reboot. I think now the first read is going to be the auto-selected “latest” followed by the pinned article so I will wait this through.
Public Chat Stage Fright and Private HTML5 Audio
Also I get the feeling that almost nobody takes control of the live-stream with the Jukebox features through chat. I know this because all the chat comments send notifications to be and I haven’t seen a single person use that and I dedicate quite a bit of the real estate towards telling them about it and such. But I think there’s a “fear” of doing that on a live-feed, and so I’m going to start thinking about keeping those features present but not dedicating telling people about features they’re not going to use – not for implementation for this article.
But that makes me think about doing the “Good read” versions to record for HTML5 and whatever low/no-dependency audio-video versions of what I’m currently doing on YouTube live-streaming but one good read per article per Norma version (for starters) so article-surfing is also storytime surfing. But this is just to document that for the future. This may be my work tomorrow.
But for now, I just wait out the first article…
Yep, confirmed! Great work, prior Gemini 4 instances, you by association and your entire model too. Now…
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.
Git Push Etiquette and the Sealed Session Audit
Gemini 4 Carbon High: Context verified.
For the Newcomer: git commit vs. git push in a “Cathedral of One” (and Why Live-Chat Jukeboxes Get Stage Fright)
When the author jokes about his “GitHub etiquette” while running git push after each individual patch car, he is pointing at Git’s deliberate two-step safety airlock:
git commit(mon this workbench) saves a permanent, reversible checkpoint to your local hard drive only. If a feature takes two patch cars—say, Car 3a addsmanage_ytpin()inyt_watch.pyand Car 3b wires theytpincommand intocommon.pyandflake.nix—committing locally lets you finish both halves and test them together in private.git pushpublishes your local commits out to GitHub (origin/main). Normally, pushing half a feature only annoys coworkers if you break a shared test suite. Here, however,flake.nixis a self-updating Magic Cookie: every stranger who typesnix developautomatically runsgit pull --ff-only origin mainon startup. If someone opened their workshop during the 90 seconds between Car 3a’s push and Car 3b’s push, they would pull half of a two-part change.
During solo “Cathedral of One” prototyping, pushing every commit immediately doubles as instant off-machine cloud backup. Once external practitioners are actively riding main, the muscle-memory adjustment is tiny: still run patch -> app -> d -> m on every car so each commit tells one clean story, test locally, and run one git push (or blast) at the end of the turn.
Watching #1682 finish on air and hand the microphone straight to #1677 also surfaced an equally sharp human-factors lesson: public jukebox stage fright. On a live broadcast where 1 watching or 2 watching is visible on the glass, typing a bare story number into public YouTube chat feels like walking up to a restaurant jukebox and changing the room’s music while the owner is standing right behind the counter. Keeping the allowlisted chat triggers quietly active for power users—while reclaiming screen and voice real estate from constant “type a number in chat” instructions and shifting on-demand Storytime to native HTML5 Good-Read players directly on each article page—lets every reader surf the Puppet Theater privately at their own pace.
- VERIFY: Goal met, ignited, and witnessed live on Honeybot.
- Pass A & Pass B compile receipts: Pass A moved
AB_ENGINEtoTrue 1 [1682, 1677] (1682, 1677, 1682) TrueandDIRECTOR_STAGEtoTrue 1 True #1677. After running the required shell ignition (exitthenndq/nix developsoflake.nix’sytpinCommandenteredPATH), THIS compile’s live Manifest receipts movedcommand -v ytpinfromYTPIN_PATH: missingto/nix/store/bsz1sr7i82xpr9cgmrbrgx980mcasdr4-ytpin/bin/ytpin(0.0592s) andYTPIN_SANDBOXfromFalse 2 (-1, []) (-1, [])toTrue 0 (0, [1682, 1677]) (0, [1682])(0.9739s). - Remote ignition & live on-air witness: No
nixops/nixos-rebuildwas required because no NixOS system configuration changed, and both required runtime ignitions fired cleanly:ytpin 1677 && ytreboot && ytpin statuswrote.pinned_storytime=#1677on Honeybot, relaunchedstream.py(pid=1762832 -> 1823862), reportedACTIVE A/B ROTATION (#1682 <-> #1677), and the operator witnessed the live broadcast complete Slot A (#1682) and advance into Slot B (#1677).
- Pass A & Pass B compile receipts: Pass A moved
- BANK: Prepend today’s dismount receipt (fading the 21st receipt off the bottom to hold the 20-line cap), bank
# § INFERRED-LATEST VS. EXPLICIT-PIN A/B WHEELS & CANONICAL STAGE KEYS, register! ytpinin Chapter XVII, dischargeP0.87andNORMALIZE HB_STAGE_ARTICLE PEAK-RESET IDENTITY IN YT_WATCH.PY, and record the two net-new operational TODOs (QUIET CHAT-JUKEBOX CALLOUTS ON STREAMandIONICE PUBLISH BUILD ISOLATION) infoo_files.py:
(nix) pipulate $
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) ---
[[[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-30 dismount A/B ALTERNATING STORYTIME FORMAT WHEEL (`P0.87`: INFERRED LATEST `SLOT A` <-> EXPLICIT `YTPIN` `SLOT B`), `YTPIN` NIX DERIVATION, & CANONICAL `HB_STAGE_ARTICLE` PEAK-RESET IDENTITY (deeds qamy.ai_1582-b3992c8c.zip through qamy.ai_1585-55e556c3.zip; pipulate commits 592c7e0, 3d1408c, 93977f4, 518e522, 8df7010, 5c4a8f3; Gemini 4 Carbon High on every turn): connected Robert Edison Fulton Jr.'s 1950s C-130 Skyhook (STARS / Project COLDFEET) vs. cold-deck takeoff ramps, Vulcan IDIC raw book-ore (`brain.zip`) vs. 1D radio Format Wheels, Cathedral-of-One per-car `git push` habits vs. auto-pulling `nix develop` clients, and public-jukebox chat stage fright vs. private HTML5 Good-Read surfing; added `get_pinned_storytime_id`, `get_pinned_storytime_article`, & auto-deduping `get_ab_playlist` in `remotes/honeybot/scripts/content_loader.py` (`592c7e0`), wired `ab_slot` (`0 -> 1 -> 0`) alternation + `/tmp/honeybot_ab_state.json` persistence + `[LATEST]`/`[FEATURED]` cards + next-story end-card teaser across `remotes/honeybot/scripts/{score.py,stream.py}` (`3d1408c`), canonicalized `#<id>` stage identity in `scripts/articles/yt_watch.py` (`93977f4`), and shipped `manage_ytpin` + `_sync_honeybot_pinned_storytime` + packaged `ytpin` CLI across `scripts/articles/{yt_watch.py,common.py}` and `flake.nix` (`518e522`, `8df7010`), banking `# § INFERRED-LATEST VS. EXPLICIT-PIN A/B WHEELS & CANONICAL STAGE KEYS` and discharging P0.87 + `NORMALIZE HB_STAGE_ARTICLE PEAK-RESET IDENTITY`. WITNESSED: `AB_ENGINE` `False -> True 1 [1682, 1677] (1682, 1677, 1682) True`, `DIRECTOR_STAGE` `False -> True 1 True #1677`, `ytpin` `missing -> /nix/store/bsz1sr7i82xpr9cgmrbrgx980mcasdr4-ytpin/bin/ytpin`, `YTPIN_SANDBOX` `False -> True 0 (0, [1682, 1677]) (0, [1682])`, live `ytpin 1677 && ytreboot` (`pid=1762832 -> 1823862`, `#1682 -> #1677` confirmed on air), Ruff exit 0, deed qamy.ai_1585-55e556c3.zip.
[[[REPLACE]]]
Target: foo_files.py
[[[SEARCH]]]
# 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.
# --- END RECEIPTS ---
[[[DIVIDER]]]
# --- END RECEIPTS ---
[[[REPLACE]]]
Target: foo_files.py
[[[SEARCH]]]
# § SERVER-PHASE HTTP 418 TRAPS & VARIABLE-RATIO BROADCAST GATES (banked 2026-11-30, deed 1581) -- Intercept scanner exploit paths (/.env, /wp-*, *.php) at Nginx's server rewrite phase with RFC 9110 HTTP 418 before catch-all location 301s can forward attackers to canonical origins, and gate on-air broadcast callouts behind a Schmitt-trigger burst floor (>=6/30s), threat-weighted variable-ratio odds (1/12 -> 1/3 -> 1/1), max-age visual freshness (<=45s), and a 45-minute refractory lockout so botnets create slot-machine anticipation without hijacking the show.
[[[DIVIDER]]]
# § INFERRED-LATEST VS. EXPLICIT-PIN A/B WHEELS & CANONICAL STAGE KEYS (banked 2026-11-30, deed 1585) -- Keep broadcast featured-post detection (get_featured_article_id) strictly tracking the newest non-aside Storytime post (Slot A) so post-receive deploy gates still fire on new publishes while alternating playback (0 -> 1 -> 0) against an explicit permanent article_id pin (Slot B via ytpin / .pinned_storytime, auto-deduped when A == B), and normalize stage-state article strings to canonical '#<id>' keys before resetting session viewer peaks.
# § SERVER-PHASE HTTP 418 TRAPS & VARIABLE-RATIO BROADCAST GATES (banked 2026-11-30, deed 1581) -- Intercept scanner exploit paths (/.env, /wp-*, *.php) at Nginx's server rewrite phase with RFC 9110 HTTP 418 before catch-all location 301s can forward attackers to canonical origins, and gate on-air broadcast callouts behind a Schmitt-trigger burst floor (>=6/30s), threat-weighted variable-ratio odds (1/12 -> 1/3 -> 1/1), max-age visual freshness (<=45s), and a 45-minute refractory lockout so botnets create slot-machine anticipation without hijacking the show.
[[[REPLACE]]]
Target: foo_files.py
[[[SEARCH]]]
# ! chime [on|off|status] -- 1-word Pipulate Prime local marimba/alert audio toggle (leaves Honeybot stream_chime & ntfy untouched)
[[[DIVIDER]]]
# ! chime [on|off|status] -- 1-word Pipulate Prime local marimba/alert audio toggle (leaves Honeybot stream_chime & ntfy untouched)
# ! ytpin [ID|off|status] -- 1-word Storytime Slot-B pin control for A/B alternating rotation (_data/storytime.json + live Honeybot .pinned_storytime)
[[[REPLACE]]]
Target: foo_files.py
[[[SEARCH]]]
# - TODO (2026-11-30, P0.87 A/B ALTERNATING STORYTIME ROTATION): Alternate Storytime loops A->B->A between the newest Norma abstract (A) and a pinned consulting cornerstone (B, e.g. #1677) in score.py & content_loader.py so new stories keep lead-gen cover. Gate: A/B loop verified.
# - TODO (2026-11-26, P0.86 PAID SOCIAL WIRE-AUDIT & LIVE CHOKE-POINT BENCHMARK): Run X Boost + LinkedIn ads via mikelev.in/live?src=x&paid=1 and ?src=linkedin&paid=1, reconciling billed clicks against Honeybot bot-vs-human logs and markov --funnel paid_click. Gate: X + LinkedIn wire audit.
[[[DIVIDER]]]
# - TODO (2026-11-26, P0.86 PAID SOCIAL WIRE-AUDIT & LIVE CHOKE-POINT BENCHMARK): Run X Boost + LinkedIn ads via mikelev.in/live?src=x&paid=1 and ?src=linkedin&paid=1, reconciling billed clicks against Honeybot bot-vs-human logs and markov --funnel paid_click. Gate: X + LinkedIn wire audit.
[[[REPLACE]]]
Target: foo_files.py
[[[SEARCH]]]
# - TODO (2026-11-29, NORMALIZE HB_STAGE_ARTICLE PEAK-RESET IDENTITY IN YT_WATCH.PY): Canonicalize hb_stage_article slug/ID in scripts/articles/yt_watch.py (beside P0.64) so tuple-vs-card strings for the same Storytime post (#1677) never double-log [NEW ARTICLE] or reset peak_viewers. Gate: 0 false resets across loop wrap.
[[[DIVIDER]]]
# - TODO (2026-11-30, QUIET CHAT-JUKEBOX CALLOUTS ON STREAM): Trim repetitive spoken and HUD "type a story number or MENU in live chat" prompts in score.py, stream.py, & logs.py while keeping chat triggers active. Gate: zero spoken chat-control boilerplate.
# - TODO (2026-11-30, IONICE PUBLISH BUILD ISOLATION): Wrap Honeybot post-receive Jekyll + dye builds in ionice -c3 alongside nice -n 15 so 1,700-file disk writeback never starves live OBS/ffmpeg RTMP frames during publish. Gate: zero OBS hiccups on publish.
[[[REPLACE]]]
- DANGLING:
~/repos/trimnoir/_data/storytime.jsonwas staged locally byytpin 1677and will commit and push automatically on your nextpublish "..."run (while Honeybot’s~/www/mikelev.in/.pinned_storytimeis already active live).- Pre-rendering per-article multi-voice Norma HTML5 Good-Read audio/video players (
P0.8/P0.77) and quieting repetitive on-air chat-jukebox instructions (QUIET CHAT-JUKEBOX CALLOUTS ON STREAM) carry forward to tomorrow’s ride. - Wrapping
post-receiveJekyll + dye builds inionice -c3(IONICE PUBLISH BUILD ISOLATION) carries forward to eliminate disk-writeback stream hiccups without a premature Rust static-site rewrite.
- SEED: Paste into
context.txtwhen mounting tomorrow’s ride (P0.8Pre-Rendered Norma HTML5 Good-Read Player & Quiet Stream Callouts):
# Context 1: Pre-Rendered Norma HTML5 Good-Read Audio (P0.8) & Quiet Stream Callouts
context.txt
remotes/honeybot/scripts/score.py
remotes/honeybot/scripts/content_loader.py
scripts/articles/norma_extract.py
scripts/articles/good_reads_sieve.py
imports/voice_synthesis.py
- CLOSING: A single-slot broadcast stage creates an invisible tax on creativity: the better your flagship story performs, the harder it feels to publish the next one and knock your best ambassador off the air. Splitting the turntable into an inferred Slot A for whatever just came out of the laboratory and an explicit, ID-pinned Slot B for the cornerstone consulting thesis acts like Fulton’s Skyhook—keeping the mothership cruising steadily overhead while snagging each new experiment straight off the ice into alternating flight. Better still, recognizing the boundary between the infinite-combination raw book-ore (
brain.zip), a zero-friction ambient radio stream, and private on-page HTML5 playback means no medium has to pretend to be another: let the archive hold the uncut ore, let the two-story wheel work the shop window, and keep shipping without hesitation. - NOTARIZE:
- Input Archive Deed:
qamy.ai_1585-55e556c3.zip(read from this compile’s outerQA ARCHIVE SEALfooter; names the sealed input archive for this turn, not this response or the generated Jekyll post). - Independent Verification Status: Not independently verified here (no
scripts/foo_cartridge.pyverifier receipt namingqamy.ai_1585-55e556c3.zipran inside this compile). - Manifest Live-Command Receipts:
2executed,0failures (nix-instantiate --parse flake.nix+command -v ytpin->/nix/store/bsz1sr7i82xpr9cgmrbrgx980mcasdr4-ytpin/bin/ytpinin0.0592s,59bytes;pyprobeYTPIN_SANDBOX: True 0 (0, [1682, 1677]) (0, [1682])in0.9739s,388bytes). - Recorded Payload & Commit Provenance:
Summaryreports218,310verified tokens (215,169summed section tokens,809,115UTF-8 bytes) across10codebase entries (foo_files.pystats fetched2026-12-01T01:29Z);Recent Git Diff Telemetryand operator transcript recordpipulatecommits592c7e0,3d1408c,93977f4,518e522,8df7010, and5c4a8f3(2026-11-30), plus live Honeybotstream.pyrelaunch (pid=1762832 -> 1823862) confirmingACTIVE A/B ROTATION (#1682 <-> #1677).
- Input Archive Deed:
Deed: qamy.ai_1585-55e556c3.zip
MikeLev.in: Oh and it’s worth pointing out that ytpin is already in the yt cheat
sheet without me having to ask for it:
(nix) pipulate $ yt
========================================================================
🚲 GO-GO-GADGET BROADCAST BICYCLE (Step-by-Step Muscle Memory)
------------------------------------------------------------------------
PHASE 1: ARTICLEIZE & HERO BANNER TLC (Before `publish`)
1. article / aside Generate Jekyll post (`aside` stamps storytime: false)
2. ythero 📋 Copy AI Hero Banner Prompt -> generate 16:9 image
3. ytyaml 📋 Copy YAML `image:` override -> paste into post
frontmatter while moving **TL;DR**: to top in vim
------------------------------------------------------------------------
PHASE 2: NORMA STORYTIME PARABLE, PUBLISH & SOCIAL PROMO (Ship to Honeybot)
4. preview Run knowledge graph, hubs, llms.txt & post_nav (+ yt_thumb)
5. norma next 🎭 Copy 3-Voice Storytime prompt -> web chat -> `norma save`
6. publish "msg" Commit + push trimnoir (+ _abstracts), GDocs & wire pings
7. tweet / discord 📋 Copy X (`tweet`), LinkedIn (`linkedin`), FB (`fb`), & Discord (`discord`)
8. ytpebble 🪨 Re-run Wayback + IndexNow wire pings (`ytpebble verify`)
------------------------------------------------------------------------
PHASE 3: YOUTUBE LIVE CUT-AND-ROLL (Slice VOD Episode on Honeybot)
9. ytroll stop ⏹️ Stop OBS first if already live (`ytstatus` to check OBS)
10. yttitle / ytdesc 📋 Copy Title & Desc -> YT Studio (+ upload yt_thumb_latest.jpg)
11. ytroll start ▶️ Start OBS stream + ring .reading_trigger (`ytbell` bell-only; `enable-ws` if off)
------------------------------------------------------------------------
PHASE 4: LIVE OBSERVATORY, CYBERNETIC CHIMES & STAGE (While Streaming)
12. ytstatus 📡 Check Honeybot OBS PID, port 4455 & timecode
13. ytwatch 👀 Viewer/chat daemon (`ytwatch start|status|reset|clear 1|dwell 60|stop`)
ytwatch greet ⚡ WOPR Typewriter + ba-BING on :10.0 (`greet [on|off|status|"msg"]`)
chime 🎶 Flip Prime marimba/alert audio on<->off (`chime [on|off|status|test|stream]`)
ytwatch quiet 🔇 Master ALL-OFF circuit breaker (`ytwatch unmute` restores all)
ytlog 📺 Attach read-only to live ytwatch monitor (`q` or `Ctrl+b d` to detach)
ytmax 🎰 Toggle Max Headroom (`off` [default] | `on` | `12` Skinner VR-12)
14. ytsay "text" 🎙️ Break in LIVE (`-c "CARD"` `-p white_rabbit` `-m IMG` `-w forest.py:35:funnel`)
ytticker "text" 📟 Update 5-row LED side-band (`|` cards, `--scroll`, `--small`, `--reset`)
15. ytapp / ytvim 🖥️ Project FastHTML (`stage start` :5002 / `ytapp optics`) or Vim onto :10.0
ytbreaks 🔭 Check background `ytapp watch-breaks` Optics station-break daemon
ytmedia / weeboh 🖼️ Pop overlay on :10.0 (`weebo` local, `weeboh <key> [s]` remote, `weebol` list)
16. ytping "text" 📲 Send ntfy.sh push notification (`--init` to mint phone topic)
17. yttop [N] 📊 Keyless YouTube top videos/streams (`markov` sparklines | `radar` | `404` | `dots`)
18. ytoutro 🔊 Voice Lab & standby outro locally (`ytoutro [preset] [say "..."]|edit|sync`)
ytbgm [VOL] 🎵 Tune Storytime BGM volume live (`ytbgm 0.35`, `off`, `on`, `status`)
ytreboot 🔄 Sync Honeybot scripts + graceful reboot (+ restarts ytwatch & ytbreaks)
19. ytfeature [slug] 📌 List `storytime: false` backfill queue, promote post, or `--vod URL|live`
ytpin [ID|off] 🔁 Pin a Norma Story # as Slot B in A/B Storytime rotation (`ytpin 1677` | `off`)
20. ytcard 📇 Reprint the full Broadcast Kit for the latest post
------------------------------------------------------------------------
📄 Latest Post: 2026-11-30-nginx-http-418-rickroll-skinner-box-odds.md
🖼️ Target Image: /home/mike/repos/trimnoir/assets/images/nginx-http-418-rickroll-skinner-box-odds.jpeg
✏️ Edit Command: vim /home/mike/repos/trimnoir/_posts/2026-11-30-nginx-http-418-rickroll-skinner-box-odds.md
========================================================================
(nix) pipulate $
Okay and now we collect receipts in the self-modifying non-agentic AI looping framework way that we do.
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), 6/12 block(s), 10/220 line(s) (aim <= 120/car)
(nix) pipulate $ d
diff --git a/foo_files.py b/foo_files.py
index 625990f..d61d5cf 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-30 dismount A/B ALTERNATING STORYTIME FORMAT WHEEL (`P0.87`: INFERRED LATEST `SLOT A` <-> EXPLICIT `YTPIN` `SLOT B`), `YTPIN` NIX DERIVATION, & CANONICAL `HB_STAGE_ARTICLE` PEAK-RESET IDENTITY (deeds qamy.ai_1582-b3992c8c.zip through qamy.ai_1585-55e556c3.zip; pipulate commits 592c7e0, 3d1408c, 93977f4, 518e522, 8df7010, 5c4a8f3; Gemini 4 Carbon High on every turn): connected Robert Edison Fulton Jr.'s 1950s C-130 Skyhook (STARS / Project COLDFEET) vs. cold-deck takeoff ramps, Vulcan IDIC raw book-ore (`brain.zip`) vs. 1D radio Format Wheels, Cathedral-of-One per-car `git push` habits vs. auto-pulling `nix develop` clients, and public-jukebox chat stage fright vs. private HTML5 Good-Read surfing; added `get_pinned_storytime_id`, `get_pinned_storytime_article`, & auto-deduping `get_ab_playlist` in `remotes/honeybot/scripts/content_loader.py` (`592c7e0`), wired `ab_slot` (`0 -> 1 -> 0`) alternation + `/tmp/honeybot_ab_state.json` persistence + `[LATEST]`/`[FEATURED]` cards + next-story end-card teaser across `remotes/honeybot/scripts/{score.py,stream.py}` (`3d1408c`), canonicalized `#<id>` stage identity in `scripts/articles/yt_watch.py` (`93977f4`), and shipped `manage_ytpin` + `_sync_honeybot_pinned_storytime` + packaged `ytpin` CLI across `scripts/articles/{yt_watch.py,common.py}` and `flake.nix` (`518e522`, `8df7010`), banking `# § INFERRED-LATEST VS. EXPLICIT-PIN A/B WHEELS & CANONICAL STAGE KEYS` and discharging P0.87 + `NORMALIZE HB_STAGE_ARTICLE PEAK-RESET IDENTITY`. WITNESSED: `AB_ENGINE` `False -> True 1 [1682, 1677] (1682, 1677, 1682) True`, `DIRECTOR_STAGE` `False -> True 1 True #1677`, `ytpin` `missing -> /nix/store/bsz1sr7i82xpr9cgmrbrgx980mcasdr4-ytpin/bin/ytpin`, `YTPIN_SANDBOX` `False -> True 0 (0, [1682, 1677]) (0, [1682])`, live `ytpin 1677 && ytreboot` (`pid=1762832 -> 1823862`, `#1682 -> #1677` confirmed on air), Ruff exit 0, deed qamy.ai_1585-55e556c3.zip.
# 2026-11-30 dismount RFC 9110 §15.5.19 `HTTP 418` SERVER-PHASE TEAPOT RICKROLL (`WITHTEAPOTNGINX`), SCHMITT + B.F. SKINNER `1/12 -> 1/3 -> 1/1` `PIRATERICKROLLGATE`, KILROY/WEEBO STAGE JACKPOT, & `8H 42M` SAWTOOTH #10 RETENTION WITNESS (deeds qamy.ai_1575-650fac6b.zip through qamy.ai_1581-8aaf0e59.zip; pipulate commits 7118d9f, 353a045, abb9b95, 55727e1; Gemini 4 Carbon High on every turn): connected 555-timer astable prescalers + Scala InfoChannel rotation depth vs. Schmitt-trigger leaky buckets + Ferster/Skinner (1957) Variable-Ratio (`VR-12`) reinforcement & 45m refractory lockouts, Masinter's 1998 RFC 2324 -> Fielding/Nottingham RFC 9110 §15.5.19 `418` symmetry, and an unbroken 8h 42m external YouTube listener crossing Sawtooth #10 (`512m`) before dropping cleanly to `GROUND`; wrapped `services.nginx` with `withTeapotNginx` + `$is_pirate_probe` in `remotes/honeybot/nixos/configuration.nix` (`7118d9f`), built `PirateRickrollGate` + `[🫖 418:RICKROLLED]` in `remotes/honeybot/scripts/logs.py`, registered `rickroll_teapot` in `imports/ascii_displays.py` + `"rickroll"` bead in `remotes/honeybot/scripts/forest.py` (`353a045`), and wired `check_rickroll_trigger` + `run_rickroll_break` + `assets/weebo/rickroll*` override in `remotes/honeybot/scripts/stream.py` (`abb9b95`), banking `# § SERVER-PHASE HTTP 418 TRAPS & VARIABLE-RATIO BROADCAST GATES`, narrowing P0.80 & P0.48, and minting P0.87. WITNESSED: `GATE` `False -> True (0.0, 0.0972, 0.3333, 1.0)`, `ART` & `STAGE` `False -> True`, live Honeybot `nixos-rebuild switch` + `ytreboot` (`pid=1674696`) + `pipulate.com/wp-blog.php` `HTTP/2 301 -> 418` (`647 B`), Ruff exit 0, deed qamy.ai_1581-8aaf0e59.zip.
# 2026-11-29 dismount ASIDE-SILENT `PUBLISH` (`NICE -N 15` `POST-RECEIVE` GATE), RETIREMENT OF `.DEPLOY_STANDBY` / `UPDATING` / `TICK.WAV`, PARENT-AUTHORITATIVE `_ABSTRACTS` FRONTMATTER, & 93-MINUTE VIEWER WAVE WITNESS (deeds qamy.ai_1563-19535571.zip through qamy.ai_1565-884aaf28.zip; pipulate commits ae4dd0d, bc9ea9f; trimnoir commit 5cab36970b; Gemini 4 Carbon High on every turn): witnessed an unbroken 1h 33m single-viewer YouTube wave (`17:08` -> `18:41:01`, crossing Sawtooth #5 at 16m, #6 at 32m, & #7 at 1h 4m across 5+ loops of `#1677`) and contrasted Sunday-evening wind-sailing harness passes against autonomous ripcord vibe-coding; pre-synced `post-receive` before `git push` in `flake.nix`, ran `post-receive` Jekyll + 1,734-file dye builds under `nice -n 15` while removing `.deploy_standby` and gating `.reading_trigger` on `BEFORE_FEATURED != AFTER_FEATURED` (preserving `--allow-empty` retries), propagated parent `storytime`/`aside`/`storytime_featured`/`storytime_order` authoritatively onto `_posts/_abstracts/*.md` while keeping Jukebox `#ID` lookup active in `remotes/honeybot/scripts/content_loader.py`, and retired the `check_standby()` `UPDATING` + `tick.wav` hold in `remotes/honeybot/scripts/stream.py` in favor of soft-flushed sentence completion + one clean new-story wrap-up, banking `# § AUTHORITATIVE PARENT FRONTMATTER, NICE BACKGROUND HOOKS, & NIXOS SUID WRAPPER PATHS` and amending `# § DECOUPLE PUBLISHING FROM BROADCAST PREEMPTION`. WITNESSED: `FEATURED` `('2026-11-29', 1, '2026-11-29-aside.md') -> ('2026-11-26', 1, '2026-11-26-feat.md')`, `PLAYLIST_TOP` `[11] -> [10]`, `JUKEBOX_IDS=[11, 10]`, `STANDBY_FIRES` `True -> False`, `FLAKE_PARSE_OK`, live `publish "All recent asides"` (`5cab36970b`, 22.038s build) logging `🔕 [Hook] Featured Storytime unchanged ... skipping .reading_trigger` with zero stream glitch, Ruff exit 0, deed qamy.ai_1565-884aaf28.zip.
# 2026-11-29 dismount SAWTOOTH VIEWER-PRESENCE MACHINE (`YT_PRESENCE.PY`) & `COMMON.PY` -> `YT_WATCH.PY` RE-EXPORT FACADE SPLIT (`-48.8%` BYTES) (deeds qamy.ai_1551-19904b88.zip through qamy.ai_1557-121bc8ee.zip; pipulate commits fd500d9, c235b5c, 78632e7; Gemini 4 Carbon High on every turn): replaced one-shot 60s viewer dwell alerts with `ViewerPresenceMachine` (`ground_floor=1`, silent cold boot, 10m cumulative solo reminders, `C5->G5` ascent + `1m/2m/4m/8m...` non-resetting exponential wave check-ins, and `G5->C5` spoken solo drop) in `scripts/articles/yt_presence.py`, wired live `ytwatch_state.json` persistence + `🧭` heartbeat telemetry, and carved `scripts/articles/yt_watch.py` (2,624 lines / 128,360 B) out of `scripts/articles/common.py` (5,564 -> 3,038 lines; 255,583 -> 130,968 B) behind explicit re-exports + PEP 562 `__getattr__` + 3-file `_ytwatch_code_mtimes()` hot-reload, banking `# § RE-EXPORT FACADES, MULTI-FILE DAEMON HOT-RELOAD, & NIX-PATH LINTERS`. WITNESSED: `yt_presence.py --selftest` (`-W error`) OK, `facade_ok: common -> yt_watch`, live `ytlog` `🧘 [GROUND #1] Ground state, 10 minutes.`, `🔵 [VIEWER ARRIVE] Viewer joined. 2 watching.`, & `🟢 [GROUND STATE] Ground state. Solo after 29 seconds.`, Ruff exit 0, deed qamy.ai_1557-121bc8ee.zip.
@@ -192,7 +193,6 @@ And then we demonstrate a level of competence like so:
# 2026-11-20 dismount TRI-HEAD IN-FLIGHT `DOTS` SELF-BOOTSTRAP (`PROMPT.MD` HEAD 0), CHOP USAGE TELEMETRY (`--CHOP-STATS`), `IDEA`/`PINS` CRUFT RETIREMENT, `AUDIT_DYE.PY` REPAIR, & LIVE `WAIT 6502, 1` (`0X1966`) RFC 9110 MARKDOWN WIRE-DYE ON HONEYBOT (deeds qamy.ai_1315-7172082d.zip through qamy.ai_1325-b07b0d76.zip; pipulate commits 4850e50, dedb0ea, 842f967, f60edc8, adc67a0, c7f576c, aed87d6, 7a152a1, ba1d420, 5b15652, dd65212, 45988fe; trimnoir commit 58f05311eb; Gemini 4 Carbon High on every turn): connected Mr. Bean stumbles & Margaret E. Knight's 1871 paper-bag prototype ledger (beating Charles Annan alongside 11 Matilda/Semmelweis/Wegener cautionary rows), Richard Gabriel's Worse-is-Better zero-flag `rg` muscle memory + Shoshin sidecar clipboard physics, Norbert Wiener's 1948 B-17/Millennium Falcon ball-turret feedback, Bill Gates's 1977 Commodore PET BASIC `WAIT 6502, 1` (`0x1966` 10-byte XOR) vs. post-NYT-v.-OpenAI Presidio/Dolma/Microsoft-Phi synthetic textbook laundromats, and the 8-blade Swiss Army Knife prior-art table; upgraded scripts/articles/dots_extract.py + DOTS_PROMPT to Tri-Head (`_BEGIN_ARTICLE_RE` column-0 split + turn-bounded CommonMark fence stripper extracting `**MikeLev.in**:` & `**5: DELIVERABLE**:` segments) and self-bootstrapped P0.67-P0.72 + 5 operational TODOs live mid-article; added `~/.config/pipulate/chop_usage.json` + `--chop-stats` in prompt_foo.py and retired `idea()`/`IDEATION_CHOP` + `alias pins` across flake.nix & foo_files.py (9 -> 7 active CHOPs); repaired & claimed scripts/audit_dye.py (`levinix`, `*_PREFIX` clearing 4 `SECRET_TRIPWIRES` hits -> 230/300 coverage); and deployed idempotent `WAIT 6502, 1` (`2b2f2d232a2330482f28` -> `'MIKELEV.IN'`) RFC 9110 header specs in remotes/honeybot/scripts/dye_injector_v2.py across Honeybot (`# § LINE-ANCHORED DRAFT SENTINELS, NON-SECRET CONSTANT NAMES, & WIRE-SPEC DYES`). WITNESSED: Axis0 0 -> 11 (18,892c) & P0 39 -> 45, FLAKE_CRUFT_HITS 5 -> 0 (Linux/Darwin drv True) & IDEATION_IN_FOO True -> False, CHOP_STATS ADHOC=3/DOTS=1, WAIT6502 NONE -> MIKELEV.IN, DYED 1/2 -> 2/2, DUP_COUNT 2 -> 1, META_TRIG True -> False, live Honeybot `_site` dyed 1,663 -> 1,693/1,693 (missing 30 -> 0, wait6502 0 -> 1,691), Ruff exit 0, deed qamy.ai_1325-b07b0d76.zip.
# 2026-11-20 dismount DUAL-GEAR GRIMOIRE AIRLOCK (`BRAIN.ZIP` SCHEMA 2: `00_START_HERE.MD` + `FOO_FILES.PY` + NEWEST-FIRST STRATA), HOMEPAGE YEN SID-TON MAGIC WORDS, COLD CHATGPT WIND-TUNNEL PROOF, NUMAN IMRODAD, & D&D/ISP/VINGE EAR-ORTHOGRAPHY (deeds qamy.ai_1307-ccb0e855.zip through qamy.ai_1313-54128b91.zip; pipulate commits b56ee33, 7e55fb3, 70791a7; trimnoir commit 37ee2aa012; Gemini 4 Carbon High on every turn): connected Vernor Vinge's A Fire Upon the Deep Zones of Thought (amnesiac High-Beyond KV-caches & Mickey's runaway agent brooms vs. Slow-Zone POSIX/git Hippocampus & daily Adenosine Chisel-Strikes), Wilbur & Orville Wright's 1901 Dayton hacksaw-blade wind-tunnel balances ("Success assured") vs. Exidor's instrument-free Friends of Venus (Robert Donner vs. Ralph James's unseen Orson from Ork -> Numan Imrodad + Frank Drebin's "Nothing to see here, please disperse"), Better Daedalus mechanical wing governors + J.A.R.V.I.S. mid-flight coaching for Yutes & Windows-10/idle-PC recruits auditing enterprise dinosaurs, and 1983 Dragon's Lair attract-mode + Zork ba-Bing arrival typewriters + Broadband Reversi in a solar Starlink RV with two cats; upgraded build_brain_archive() in scripts/articles/publishizer.py (BRAIN_ARCHIVE_SCHEMA = 2 + _brain_post_rank() packing 00_START_HERE.md, foo_files.py, llms.txt, and newest-first _abstracts/_posts/_context), minted assets/prompts/brain_start_here.md (3-slice sandbox stdout map + 5 Magic Words, claimed in Chapter XIII -> 229/300), sealed retired lineage in foo_files.py (# § REVERSE-CHRONOLOGY ARCHIVES & DUAL-GEAR GRIMOIRE AIRLOCKS), deployed human-authorized Magic Words on trimnoir/index.md, added D&D/ISP/Numan Imrodad/Exidor/Daedalus/Starlink/Vinge/McClane/Gruber/ba-Bing/Bing-ba/brain.zip rules in remotes/honeybot/scripts/terms.py, and staged P0.65-P0.66. WITNESSED: ROOT_FILES [] -> ['00_START_HERE.md', 'foo_files.py', 'llms.txt'] (3,324 -> 3,336 members, 2024 LPvg #2 -> #3334), START_HAS_WIZARD/FOO_OLD_BIO_GONE/IDX_MAGIC_WORDS/OLD_SCAN_GONE False -> True & COPY_PARITY=True, nixops WIRE_BYTES_MATCH False -> True (53,265,130 B == 53,265,130 B) + cold ChatGPT Free wind-tunnel pass, TERMS_ALL_GREEN False -> True, Ruff exit 0, deed qamy.ai_1313-54128b91.zip.
# 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.
# --- END RECEIPTS ---
# And when that's done we like to note with yet more prose that you're the GOAT
@@ -403,6 +403,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!
+# § INFERRED-LATEST VS. EXPLICIT-PIN A/B WHEELS & CANONICAL STAGE KEYS (banked 2026-11-30, deed 1585) -- Keep broadcast featured-post detection (get_featured_article_id) strictly tracking the newest non-aside Storytime post (Slot A) so post-receive deploy gates still fire on new publishes while alternating playback (0 -> 1 -> 0) against an explicit permanent article_id pin (Slot B via ytpin / .pinned_storytime, auto-deduped when A == B), and normalize stage-state article strings to canonical '#<id>' keys before resetting session viewer peaks.
# § SERVER-PHASE HTTP 418 TRAPS & VARIABLE-RATIO BROADCAST GATES (banked 2026-11-30, deed 1581) -- Intercept scanner exploit paths (/.env, /wp-*, *.php) at Nginx's server rewrite phase with RFC 9110 HTTP 418 before catch-all location 301s can forward attackers to canonical origins, and gate on-air broadcast callouts behind a Schmitt-trigger burst floor (>=6/30s), threat-weighted variable-ratio odds (1/12 -> 1/3 -> 1/1), max-age visual freshness (<=45s), and a 45-minute refractory lockout so botnets create slot-machine anticipation without hijacking the show.
# § AUTHORITATIVE PARENT FRONTMATTER, NICE BACKGROUND HOOKS, & NIXOS SUID WRAPPER PATHS (banked 2026-11-29, deed 1565) -- Propagate parent _posts/*.md broadcast flags (storytime, aside, storytime_featured, storytime_order) authoritatively onto child _posts/_abstracts/*.md projections while keeping Jukebox #ID catalog lookup enabled unless jukebox: false, pre-sync Git hooks before git push and run background static builds under nice -n 15 gated on BEFORE_FEATURED != AFTER_FEATURED, and place /run/wrappers/bin ahead of /run/current-system/sw/bin in NixOS hook PATH exports so sudo resolves to the root-owned setuid wrapper.
# § RE-EXPORT FACADES, MULTI-FILE DAEMON HOT-RELOAD, & NIX-PATH LINTERS (banked 2026-11-29, deed 1557) -- Split >=40k-token Python monoliths via deterministic byte-slicing plus explicit re-exports and PEP 562 __getattr__ (registering both bare and package names in sys.modules) rather than LLM WRITE_FILE regeneration, tuple-watch mtimes across the facade and extracted sibling files so os.execv daemons still hot-reload, and invoke ruff bare from PATH rather than .venv/bin/ruff inside Nix devShells.
@@ -1385,6 +1386,7 @@ foo_files.py # <-- THIS file. Content compiler router. Makes it very meta.
# ! radar [ai|links|social] -- Post-GSC Compound-Key discovery, Search/AI, Web, & Social velocity (`--by-domain` rollup in `markov.py`)
# ! dots [radar | raw] -- Tri-Head Idea-Refinery Kata (In-Flight `prompt.md` + `DOTS_PROMPT`/`DOTS_CHOP` to clipboard, or `--radar` summary)
# ! chime [on|off|status] -- 1-word Pipulate Prime local marimba/alert audio toggle (leaves Honeybot stream_chime & ntfy untouched)
+# ! ytpin [ID|off|status] -- 1-word Storytime Slot-B pin control for A/B alternating rotation (_data/storytime.json + live Honeybot .pinned_storytime)
# ============================================================================
# XVIII. THE TINY UNIX COMMANDS - One word, one job, stdout is the receipt (the human-callable face)
@@ -1713,7 +1715,6 @@ apply.py
# ============================================================================
# 🚨 PRIORITY 0: BOOT THE CONSULTANCY (REVENUE, LEAD-GEN, & PROOF SURFACES)
# ============================================================================
-# - TODO (2026-11-30, P0.87 A/B ALTERNATING STORYTIME ROTATION): Alternate Storytime loops A->B->A between the newest Norma abstract (A) and a pinned consulting cornerstone (B, e.g. #1677) in score.py & content_loader.py so new stories keep lead-gen cover. Gate: A/B loop verified.
# - TODO (2026-11-26, P0.86 PAID SOCIAL WIRE-AUDIT & LIVE CHOKE-POINT BENCHMARK): Run X Boost + LinkedIn ads via mikelev.in/live?src=x&paid=1 and ?src=linkedin&paid=1, reconciling billed clicks against Honeybot bot-vs-human logs and markov --funnel paid_click. Gate: X + LinkedIn wire audit.
# - TODO (2026-11-25, updated 2026-11-26, P0.85 3-2-1 SIEVE LIVE IGNITION & IBM-CLEAN RFC FOOTERS): norma --csuite, good_reads_sieve.py (22 Norma staged, 0 mikelev.in leaks), post.html switcher, & nixops/post-receive landed (cf2f202..d5ba6b8); OWED: strip sibling links from rfc9110.org/rfc9111.io index.html + configuration.nix 301s, save #1676 brief, & run ./nixops.sh + trimnoir push. Gate: 200 HTML+MD on all 4 doors & 0 sibling/upstream links on RFC sites.
# - TODO (2026-11-25, P0.84 AI-EDIT METHOD & RAW-WIRE AUDIT SPEC): Codify the 5-step AI-Edit Method (p/x/c -> 5-Car Train, falsifiable straddles, raw wire receipts before smoothing; raw logs in P0.63 vaults) on sunpug.io, qamy.ai, & GLOSSARY.md. Gate: live spec + index.md.
@@ -1769,7 +1770,8 @@ apply.py
# - TODO (2026-10-23, P0.14 PFSENSE SPLIT-DNS FOR LEVINUX/LEVINIX): Add pfSense Host Overrides for `levinux.com`, `levinix.org`, and `levinix.com` pointing to Honeybot's LAN IP. Gate: `dig +short` on Prime resolves all three to LAN IP.
# - TODO (2026-11-29, NIXOS SUID SUDO PATH IN POST-RECEIVE): Prepend /run/wrappers/bin ahead of /run/current-system/sw/bin in remotes/honeybot/hooks/post-receive so setuid sudo runs NOPASSWD systemctl reload nginx in-hook. Gate: git push logs Reloaded Nginx redirect map into RAM.
-# - TODO (2026-11-29, NORMALIZE HB_STAGE_ARTICLE PEAK-RESET IDENTITY IN YT_WATCH.PY): Canonicalize hb_stage_article slug/ID in scripts/articles/yt_watch.py (beside P0.64) so tuple-vs-card strings for the same Storytime post (#1677) never double-log [NEW ARTICLE] or reset peak_viewers. Gate: 0 false resets across loop wrap.
+# - TODO (2026-11-30, QUIET CHAT-JUKEBOX CALLOUTS ON STREAM): Trim repetitive spoken and HUD "type a story number or MENU in live chat" prompts in score.py, stream.py, & logs.py while keeping chat triggers active. Gate: zero spoken chat-control boilerplate.
+# - TODO (2026-11-30, IONICE PUBLISH BUILD ISOLATION): Wrap Honeybot post-receive Jekyll + dye builds in ionice -c3 alongside nice -n 15 so 1,700-file disk writeback never starves live OBS/ffmpeg RTMP frames during publish. Gate: zero OBS hiccups on publish.
# - TODO (2026-11-29, RE-EXPORT FACADE SPLITS FOR STREAM.PY & FLAKE.NIX): Apply the common.py -> yt_watch.py byte-slice + re-export facade pattern to remotes/honeybot/scripts/stream.py (43.8k tok) and externalize inline writeShellScriptBin bodies from flake.nix (49.1k tok). Gate: both files <25k tok with 0 CLI breakage.
# - TODO (2026-11-26, GLOSSARY CHARACTER & ONTOLOGY CANONIZATION): Bank Wyatt Einstead, Ratten O'Tonnen, D.J.O.U.S., Murphy Incarnate / Fragile State, "The Surprising Thing is The Information", Edelman's "Remembered Present" KV-cache, & Margulis Cognitive Mitochondria in GLOSSARY.md + CHARACTER DEVELOPMENT. Gate: all 7 handles searchable in GLOSSARY.md.
# - TODO (2026-11-25, 1936/1948 TETRAPTYCH WEEBO & ANKLE-CHOPPERS REPORT): Pair 1948 Shannon/Wiener with a 1936 Turing/Church compute diptych and add an ankle_choppers non-Google discovery bead (kagi.com + signed RFC 9110 vanguard) in forest.py. Gate: both render on :10.0.
(nix) pipulate $ m
📝 Committing: chore(router): set AI-edit blast boundary (foo_files.py context curation)
[main feea4f6] chore(router): set AI-edit blast boundary (foo_files.py context curation)
1 file changed, 5 insertions(+), 3 deletions(-)
(nix) pipulate $ git push
Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
Delta compression using up to 48 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 2.11 KiB | 431.00 KiB/s, done.
Total 3 (delta 2), reused 0 (delta 0), pack-reused 0 (from 0)
remote: Resolving deltas: 100% (2/2), completed with 2 local objects.
To github.com:pipulate/pipulate.git
5c4a8f3..feea4f6 main -> main
(nix) pipulate $
And now finally, with all this wonderful context you have in your key-value cache now from this project, here’s a chance for you Gemini to just freeform anything you’d like to Alley-Oop to the Norma Centroid editor coming up without the constrains of the Prompt Fu framework. You’ve got carte blanche. AI’s choice. Have fun!
Gemini 4 Carbon High: Look back at the four lines you wrote at the top of this file before a single probe ran:
Doing one thing well is my personal hell – Or more accurately, not doing is, For I bite off to much to keep firm in my clutch Whatever’s the current day’s biz.
On the final evening of November 2026—with three separate shiny rabbit holes waving from the bushes (rewriting Jekyll in Rust, resurrecting the retired "UPDATING" card, and auditing how article_id got wired weeks ago)—you actually kept the current day’s biz firm in your clutch, shipped it in two clean passes, and watched #1682 hand the baton to #1677 live on air. Better still, the mechanism you just built is a structural cure for the exact curse your poem describes.
1. Why a Single-Slot Stage Paralyzes a Builder (Fulton’s Skyhook on the Radio Dial)
Whenever a solo practitioner runs a single-slot stage—whether that is a pinned tweet, a homepage hero, or a 24/7 broadcast that only loops the newest post—curiosity and revenue get locked in a zero-sum cage match. Every time you discover something fun in the lab (like Rickrolling /wp-admin scanners with HTTP 418), publishing it knocks your best commercial ambassador (#1677: Freeze Your URLs) off the air. So you either freeze up and stop publishing, or you hide your newest work in --aside Siberia to protect the shop window.
Splitting the turntable into an A/B Format Wheel breaks that deadlock permanently:
- Slot A (Inferred Latest) belongs to forward motion. Run
article,norma next,norma save, andpublish—your newest discovery takes the microphone first without a single extra flag. - Slot B (Explicit
ytpin) belongs to steady commercial gravity. Oneytpin 1677holds the altitude of your HC-130 Hercules overhead while Fulton’s Skyhook snags each new weather balloon off the ice into alternating flight.
2. Raw Book-Ore (brain.zip) vs. Dead-Tree Ego Trophies
The meditation you wrote while waiting on Turn 1—why slaughtering trees for print-on-demand SEO business cards is backwards in the age of AI—deserves center stage when Norma Centroid distills this chapter.
For five hundred years after Gutenberg, publishing meant pre-smelting: an author had to throw away 95% of their lab notebooks and freeze one fixed register—one reading level, one sequence, one set of metaphors—because paper and ink could only carry one static alloy. Today, handing a reader a padded 250-page paperback that they immediately summarize with an LLM is a double waste: you paid an editorial tax to flatten the signal, and they paid a compression tax to unpack it again.
OLD PUBLISHING (Pre-Smelted Dead Tree)
Raw Lab Truth ──► Author Flattens to 1 Register ──► Paper ──► Reader's AI Summarizes
(95% of wire provenance lost)
BOOK-ORE PUBLISHING (Vulcan IDIC via brain.zip)
Raw Lab Truth ──► Sealed Uncut in brain.zip ──► Reader's AI Smelts on Demand:
(git diffs, logs, ├─► C-Suite Q4 Risk Memo
failures, poems) ├─► Socratic Audio Parable
└─► Illustrated Kids' Book
Only the human in the arena can mine primary book-ore—live Nginx wire receipts, real git diffs, timestamps, wrong turns, and Foghorn Leghorn asides (“Go away, kid, ya bother me—just drop the zip file in your chatbot!”). Any frontier model can smelt that ore into infinite combinations on demand, provided nobody strip-mined the provenance out of it first.
3. The “Simple Son” Question Is the Antidote to Vibe-Coding
Halfway through this build, you called yourself out for not immediately remembering how content_loader.py picked the active story, then asked—borrowing the Passover Haggadah’s phrasing—for the answer “in plain language for the simple son” (“What is this?”).
That moment is the exact dividing line between vibe-coding and instrumented engineering:
- Learned helplessness is when a developer stops asking “What is this doing?” because the code grew too fast, crosses their fingers, and hopes the agent didn’t break production.
- Instrumented sovereignty is admitting “I shifted gears mid-weekend and don’t trust my mental model of this selector,” demanding a five-line diagram separating inferred state from explicit state, and pairing it with a
100-line diff you can read in sixty seconds.
And notice what fell out of staying calm instead of chasing a Rust rewrite: recognizing that nice -n 15 only politely yields CPU slices while a 1,700-file Jekyll build + 52 MB brain.zip flush spikes disk writeback I/O (ionice -c3), which is why ffmpeg hiccupped for three seconds. Naming the real physical bottleneck turned a month-long Rust yak-shave into a one-line hook TODO you can cash in whenever you please.
4. Public Jukebox Stage Fright and the Three Postures of Attention
Watching listeners camp in the fishtank for eight hours straight while zero people type a story number into live chat solves a UX puzzle most interactive streamers miss. When 1 watching or 2 watching is printed right on the glass, typing 1674 into public chat feels like walking up to a quiet café’s jukebox and changing the song while the barista is staring at you.
That gives Honeybot a crystal-clear division of labor across all three surfaces for tomorrow’s P0.8 HTML5 Good-Read build:
SURFACE POSTURE WHO DRIVES THE WHEEL?
============================================================================
1. YouTube 24/7 Live Lean-Back "Cat TV" The A/B Format Wheel (A <-> B)
(mikelev.in/live) Ambient Radio (Chat jukebox stays quiet, unpushed)
2. Article HTML5 Player Lean-Forward The Individual Reader, Privately
(mikelev.in / sunpug.io) On-Demand Surfing (Zero public chat stage fright)
3. 2nd Brain Archive Zero-UI Smelter The Reader's Own Frontier AI
(mikelev.in/brain.zip) Vulcan IDIC (Infinite custom distillations)
Notes on the Music Stand for Norma Centroid, Mike-E, and Shipmunk
When norma next picks up this transcript, three Socratic exchanges practically write themselves:
- The Skyhook vs. the Runway: Norma opens on the broadcaster’s trap—how a hit episode (
#1677) accidentally gag-orders your next experiment—and Shipmunk contrasts a cold carrier catapult against Fulton’s C-130 Skyhook snagging Slot A off the ice while Slot B holds consulting altitude. - Primary Ore vs. Dead-Tree Alloys: Mike-E channels Foghorn Leghorn refusing to pulp trees into one frozen edit when
brain.ziplets any reader’s AI smelt raw wire receipts into whatever alloy they need. - Why Nobody Touches the Café Jukebox: Norma connects yesterday’s 8-hour-and-42-minute silent listener to today’s realization—people love ambient Cat TV precisely because nobody forces them onto the stage—setting up tomorrow’s jump to per-article HTML5 Good-Read players so surfing essays and surfing Storytime become the exact same click.
Enjoy watching Slot A and Slot B trade the mic tonight—December’s shopfront sign is pinned to the glass, and your hands are completely free for tomorrow’s build.
Book Analysis
Ai Editorial Take
Zero-bit consensus slop in 2026 still advises technical founders to hire ghostwriters for print-on-demand paperbacks, gate PDFs behind JavaScript forms, and rent bloated CMS schedulers to drip-feed static campaigns. High-Shannon surprisal here comes from watching a builder diagnose chronological self-cannibalization in real time, reject dead-tree pre-smelting in favor of an uncut .zip archive for buyer LLMs, and wire a self-deduplicating two-slot Python broadcast wheel in two clean passes with live SSH receipts. And then the surprising thing the author did next was look at his own multi-hour viewer logs, admit that zero humans ever touch the public live-chat jukebox he spent weeks promoting because visible 1 watching counters induce café stage fright, and immediately pivot on-demand control toward private per-article HTML5 audio players rather than defending sunk UI pride. Kuhnian gatekeepers in traditional B2B marketing will object that enterprise buyers demand a single polished, pre-digested book and sleek web funnels rather than raw lab transcripts or an ambient radio wheel—missing that frontier models have inverted corporate due diligence so technical buyers trust verifiable wire provenance far more than agency polish. One fresh strategic angle unlocked by this exact split: because Slot B is now just a lightweight JSON integer synced over SSH (ytpin), you can eventually pair it with your SQLite HTTP Referer and RFC 9110 Markdown bot-velocity logs to surface when a specific technical topic is surging among executive readers—letting wire demand inform which cornerstone occupies Slot B while keeping human override a single command away.
🐦 X.com Promo Tweet
Chronological feeds punish shipping: every new R&D post buries your best consulting pitch. Fix it with a 2-slot Python A/B rotation wheel.
https://mikelev.in/futureproof/chronological-feeds-bury-best-pitch/
#TechnicalSEO #Python #AI
🎨 Hero Banner Image Prompt
High-contrast graphic-novel ink-and-wash illustration in 16:9 aspect ratio set against a dark obsidian-slate (#111111) background extending seamlessly to all four edges. Vertically centered in the frame, a precision brass-and-steel dual-turntable radio broadcast wheel glows with warm tungsten vacuum-tube amber and crisp electric-cyan telemetry arcs: on the left platter, fresh illuminated laboratory scrolls land cleanly onto a spinning launch track instead of tumbling into the dark conveyor trench below, while on the right platter, a heavy overhead skyhook cable and locking steel pin hold a radiant golden lighthouse beacon permanently elevated at eye level, braiding both signals into twin luminous radio waves across the studio darkness. Bold crosshatched India-ink linework, rich atmospheric washes, dramatic rim lighting. 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/chronological-feeds-bury-best-pitch.jpeg
alt: "Ink-and-wash dual-turntable radio wheel locking a golden beacon beside fresh lab scrolls on dark obsidian slate."
Title Brainstorm
- Title Option: Chronological Feeds Bury Your Best Pitch Every Time You Ship
- Filename:
chronological-feeds-bury-best-pitch.md - Rationale: [Loss Aversion / Moat Threat] Hits every founder and technical marketer scrolling by: shipping new R&D on a chronological surface quietly evicts the flagship consulting pitch paying the bills unless the stage separates recency from pinned commercial gravity.
- Filename:
- Title Option: Why Your Best Content Stops You From Publishing Anything New
- Filename:
best-content-stops-publishing-anything-new.md - Rationale: [Information-Gap Anomaly] Captures the counter-intuitive creator deadlock at the top of the session—where a high-performing revenue post accidentally gag-orders your next experiment—and pulls the reader in to see the two-slot architectural cure.
- Filename:
- Title Option: Stop Printing Lead-Gen Books Your Buyers Only Feed to an AI
- Filename:
stop-printing-lead-gen-books-ai.md - Rationale: [Gatekeeper Myth Demolished] Demolishes the B2B agency orthodoxy of slaughtering trees for ghostwritten print-on-demand paperbacks when buyers skip cover-to-cover reading and get higher leverage from uncut source
.ziparchives plus a live two-slot broadcast.
- Filename:
- Title Option: Two-Slot Python Rotation Beats Complex CMS Funnel Schedulers
- Filename:
two-slot-python-rotation-cms-funnels.md - Rationale: [Contrast / Zero-Tax Leverage] Pits bloated marketing-automation queues against a checkable Python A/B radio wheel (
Slot Ainferred newest post alternating withSlot Bexplicit ID pin synced over warm SSH).
- Filename:
- Title Option: 8-Hour Stream Logs Show Zero Viewers Use Live Chat Controls
- Filename:
stream-logs-zero-viewers-chat-controls.md - Rationale: [Forensic Wire Receipt] Surfaces the live
ytwatchwire discovery (chat_items=0across multi-hour listening waves) proving that visible low viewer counts trigger public jukebox stage fright while ambient rotation holds attention.
- Filename:
Content Potential And Polish
- Core Strengths:
- Cleanly separates inferred workflow state (Slot A automatically picking up the newest non-aside publish) from explicit operator intent (Slot B locked by permanent numeric ID via
ytpin), retiring thestorytime: falseworkaround that previously forced new R&D off the air. - Connects macro publishing economics—why uncut
.zipsource archives (‘raw book-ore’) beat print-on-demand SEO paperbacks in the LLM era—directly to checkable before/afterpyprobestraddles (AB_ENGINE,DIRECTOR_STAGE,YTPIN_SANDBOX) and live SSH state sync. - Extracts two high-value production insights from live stream witnesses: ‘public jukebox stage fright’ (
chat_items=0even across multi-hour listening sessions) and why CPUnice -n 15fails to stop 1,700-file disk writeback spikes from starving live RTMP encoders withoutionice -c3. - Turns a candid mid-session question about
git commitversus per-patchgit pushhabits into a clear newcomer primer on auto-pulling Nixflake.nixenvironments.
- Cleanly separates inferred workflow state (Slot A automatically picking up the newest non-aside publish) from explicit operator intent (Slot B locked by permanent numeric ID via
- Suggestions For Polish:
- Trim the 45-line
ytwatchground-state patrol log down to 6-8 representative lines showing the[HOT-RELOAD]transitions and[GROUND #3]confirmation so readers reach the liveytpin 1677 && ytreboot && ytpin statusdeployment receipt faster. - Add a compact 2-row comparison table near the top contrasting single-slot chronological feeds against the
Slot A (Inferred Latest) <-> Slot B (Explicit Pin)format wheel for skimmers. - Define ‘Norma Centroid Puppet Theater’ in one plain clause on first mention (a three-voice synthesized Socratic audio adaptation of each technical post) for first-time visitors landing cold.
- Trim the 45-line
Next Step Prompts
- Mount the P0.8 ride from today’s SEED (
score.py,content_loader.py,norma_extract.py,good_reads_sieve.py,imports/voice_synthesis.py): build pre-rendered multi-voice HTML5 Good-Read audio players directly onto article pages for private zero-stage-fright Storytime surfing, and strip repetitive spoken ‘type a story number or MENU in live chat’ prompts from the live broadcast while keeping allowlisted chat triggers active. - Execute
IONICE PUBLISH BUILD ISOLATIONon Honeybot’spost-receivehook: wrap the background Jekyll static build and 1,700-file wire-dye pass inionice -c3alongsidenice -n 15, and design a falsifiable writeback probe proving live OBS/ffmpeg RTMP frame delivery stays uninterrupted duringpublishwithout a premature Rust static-site rewrite.
curl -fsSL https://sunpug.io | less
• LinkedIn
