Add nested note paths, study-note prompt, and drain subcommand - #6
Open
lorenzoliuzzo wants to merge 3 commits into
Open
Add nested note paths, study-note prompt, and drain subcommand#6lorenzoliuzzo wants to merge 3 commits into
lorenzoliuzzo wants to merge 3 commits into
Conversation
added 3 commits
August 3, 2026 12:25
Notes need a tag-nested write path (_notes/<topic>/<subtopic>/...) instead of the flat slug-of-the-title my-site otherwise falls back to, and a higher quality bar than the generic project/page prompt: LaTeX conventions, no fabricated figures, and a duty to flag uncertain claims rather than assert them. Also adds `mysite drain`, which drafts every open my-site issue in one pass instead of one at a time -- the loop a daily/timer-driven run needs, built on the existing per-issue draft() with no new drafting logic.
Bulk intake for an exam syllabus, via my-server's POST /tools/my-site/issues (the actual enqueue-API hop in the pipeline) -- everything downstream (draft, drain) only ever sees issues, so this is the one place syllabi are a concept at all.
Modeled on my-fleet's fleet-bookkeeping.{service,timer}: OnCalendar every
2 hours rather than daily, since this is meant to clear an exam-syllabus
backlog inside a few days rather than tick over indefinitely in the
background.
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Path: <relative>.mdline in the issue body, so drafts land under the site's existing tag-nested_notes/<topic>/<subtopic>/convention instead of a flat slug-of-the-title.kind == "note"gets a stricter system prompt (LaTeX conventions, no fabricated figures/tables, flag genuinely uncertain claims instead of stating them flatly) — these are exam study notes, not general content pages.mysite drainsubcommand: drafts every openmy-siteissue in one pass, built on the existing per-issuedraft()with no new drafting logic. This is the loop a daily/timer-driven unattended run needs.Test plan
pytest— 19 passed (11 new/extended cases covering path-directive parsing, nested-path dedup, note vs. non-note system prompt selection, and thedrainsubcommand)ruff check/ruff format --checkcleanpre-commit run(ruff + pytest-fast) green🤖 Generated with Claude Code