From cca9005c5d5e31c52af92a67fd6df4cd8a8a9ab8 Mon Sep 17 00:00:00 2001 From: Mike Levin Date: Thu, 5 Mar 2026 00:09:42 -0500 Subject: [PATCH] About to integrated 404 redirects --- foo_files.py | 34 ++++++++++----------- remotes/honeybot/queries/hot_404_remaps.sql | 3 +- 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/foo_files.py b/foo_files.py index 614faf47..2a9c4c50 100644 --- a/foo_files.py +++ b/foo_files.py @@ -18,8 +18,9 @@ # foo_files.py # prompt_foo.py -! python scripts/articles/ls_semantic.py -! echo "--- HOT 404 REMAPS (Structural Signal) ---" && cat remotes/honeybot/queries/hot_404_remaps.sql | ssh honeybot 'sqlite3 -header -column ~/www/mikelev.in/honeybot.db' +# # PRODUCE A NEW 404 REDIRECT MAP +# ! python scripts/articles/ls_semantic.py +# ! echo "--- HOT 404 REMAPS (Structural Signal) ---" && cat remotes/honeybot/queries/hot_404_remaps.sql | ssh honeybot 'sqlite3 -header -column ~/www/mikelev.in/honeybot.db' # scripts/articles/update_graphs.py # <-- This picks the publishing workflow based on the target choice # scripts/articles/contextualizer.py @@ -126,23 +127,22 @@ # /home/mike/repos/trimnoir/_posts/2026-03-04-architecting-ai-context-data-density-blueprint-404-remapping.md # [Idx: 898 | Order: 2 | Tokens: 20,275 | Bytes: 80,587] # # # CHAPTER 15: JEKYLL PUBLISHING -# /home/mike/repos/nixos/init.lua # <-- The creator of this system uses NixOS as the Pipulate prime "parent" OS and you can see their blogging habits here -# scripts/articles/articleizer.py # <- Extractions from the 1-file-4life tech journal get copy-pasted into the article.txt that this file works on -# scripts/articles/editing_prompt.txt # <-- I cannot emphasizes enough the "keeping response in JSON" aspect of the player piano / mechanical loom aspect -# /home/mike/.config/articleizer/targets.json # <-- These scripts are designed to work with any Jekyll blog site repo with --target (and -k API key) -# scripts/articles/update_graphs.py # <-- This picks the publishing workflow based on the target choice -# scripts/articles/sanitizer.py -# scripts/articles/contextualizer.py -# scripts/articles/gsc_historical_fetch.py -# scripts/articles/build_knowledge_graph.py -# scripts/articles/generate_hubs.py +/home/mike/repos/nixos/init.lua # <-- The creator of this system uses NixOS as the Pipulate prime "parent" OS and you can see their blogging habits here +scripts/articles/articleizer.py # <- Extractions from the 1-file-4life tech journal get copy-pasted into the article.txt that this file works on +scripts/articles/editing_prompt.txt # <-- I cannot emphasizes enough the "keeping response in JSON" aspect of the player piano / mechanical loom aspect +/home/mike/.config/articleizer/targets.json # <-- These scripts are designed to work with any Jekyll blog site repo with --target (and -k API key) +scripts/articles/update_graphs.py # <-- This picks the publishing workflow based on the target choice +scripts/articles/sanitizer.py +scripts/articles/contextualizer.py +scripts/articles/gsc_historical_fetch.py +scripts/articles/build_knowledge_graph.py +scripts/articles/generate_hubs.py # # # A reminder of how we control Honeybot -# deploy_honeybot.sh -# /home/mike/repos/trimnoir/flake.nix -# remotes/honeybot/hooks/post-receive -# remotes/honeybot/nixos/configuration.nix -# scripts/articles/ls_semantic.py +deploy_honeybot.sh +/home/mike/repos/trimnoir/flake.nix +remotes/honeybot/hooks/post-receive +remotes/honeybot/nixos/configuration.nix # # # 6. PLANNING 404 REDIRECT MAP # ! echo "--- HOT 404 REMAPS (Structural Signal) ---" && cat remotes/honeybot/queries/hot_404_remaps.sql | ssh honeybot 'sqlite3 -header -column ~/www/mikelev.in/honeybot.db' diff --git a/remotes/honeybot/queries/hot_404_remaps.sql b/remotes/honeybot/queries/hot_404_remaps.sql index fe24a72c..dbab6808 100644 --- a/remotes/honeybot/queries/hot_404_remaps.sql +++ b/remotes/honeybot/queries/hot_404_remaps.sql @@ -49,7 +49,8 @@ WHERE l.status = 404 AND p.value NOT LIKE '%/.svn/%' AND p.value NOT LIKE '%.yml' AND p.value NOT LIKE '%.json' + AND p.value NOT LIKE '% %' GROUP BY p.id HAVING total_hits > 1 ORDER BY total_hits DESC -LIMIT 200; -- Expanded limit for the AI to process +LIMIT 500; -- Expanded limit for the AI to process