Skip to content

qe: design note for building products from QuantEcon/lectures (QuantEcon/project-monorepo#77) - #335

Merged
mmcky merged 3 commits into
mainfrom
qe/product-builds-design
Nov 16, 2026
Merged

mmcky merged 3 commits into
mainfrom
qe/product-builds-design

Conversation

@mmcky

@mmcky mmcky commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

A design note for QuantEcon/project-monorepo#77 (one build workflow for any product on either engine), recorded as a raw .qe/dev/log/ entry under QEP-7. It adds one file and changes nothing else. It decides nothing: it proposes, and lists the decisions it asks for at its end.

Its main proposal: the product build lives in QuantEcon/lectures, not here. QuantEcon/project-monorepo#77 proposed a reusable build-product.yml in this repository, but ARCHITECTURE.md's rule is that a reusable workflow belongs where its job's purpose belongs, and a product build reads QuantEcon/lectures' products/ folders and pool and has that one caller. This repository would supply composite actions only.

What the composite actions lack for it (checked at d65e694, v0.21.0):

  1. build-lectures has no engine input; it runs jb build only. Proposed: engine: jb1 | myst, jb1 by default.
  2. A product's toc and configuration need nothing new on Jupyter Book 1: extra-args carries --toc and --config. Proposed: a worked example in the chapter. (build-jupyter-cache now passes extra-args through, which it did not when QuantEcon/project-monorepo#77 was written.)
  3. The cache keys cannot tell two products in one repository apart. Proposed: a key-prefix input on both cache actions, empty by default; needed only once a product uses the cache actions.
  4. Two products' previews on one pull request overwrite one comment (one marker per provider); the changed-lecture links are .html, where mystmd serves /<slug>; and change detection lists every changed .md under the lectures folder, not only those a product publishes, keeping the folder in the links when it holds no _toc.yml, as the pool does not. Proposed: preview-key, link-style and toc inputs on all three preview actions (they share the comment and change-detection scripts), defaulting to today's behaviour.

Every proposed input defaults to what callers get today. Each would be its own issue and pull request, with a harness job, a CHANGELOG entry and a staged release.

The note links to issues in QuantEcon/project-monorepo, which is a private repository, so those links resolve only for its members; the note says what each one holds.

python3 scripts/generate-docs.py --check is clean (the file is outside the generated docs).

🤖 Generated with Claude Code

https://claude.ai/code/session_01WT8bMXuHMiWb8victibwcU

…con/project-monorepo#77)

A raw record under QEP-7. It proposes that the product build live in
QuantEcon/lectures, by this repository's rule that a reusable workflow
belongs where its job's purpose belongs, and lists what the composite
actions lack for it, checked at d65e694: an engine input on build-lectures,
a key prefix on the cache actions, and a preview key, link style and toc on
the preview actions. It decides nothing; the decisions it asks for are at
its end.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WT8bMXuHMiWb8victibwcU
Copilot AI balanced review requested due to automatic review settings November 16, 2026 10:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note

Copilot was unable to complete this review at the selected tier due to model policy or plan restrictions.

🟢 Approval recommended

The change is limited to adding a QEP-7 design-note log entry documenting a proposed product-build workflow and follow-on gaps, with no action code or behavior modifications and no issues raised in the review evidence.

No open issues 🎉

What changed in this PR

Adds a QEP-7 raw design-note log entry documenting a proposal for where and how to implement “product builds” for QuantEcon/lectures (referencing project-monorepo#77), including the rationale and a list of follow-on composite-action gaps, without changing any action code or behavior.

Changes:

  • Add a dated design note under .qe/dev/log/ describing the proposed product-build workflow placement and open decisions.
  • Document potential future composite-action inputs (engine selection, cache key prefixing, and preview disambiguation/link/toc inputs) as separately-scoped follow-on work.
File Description
.qe/​dev/​log/​2026-11-16-product-builds-design.md Adds a new QEP-7 design-note log entry proposing a product-build workflow approach for QuantEcon/lectures and listing requested decisions plus potential composite-action enhancements.

Review effort: Balanced

mmcky and others added 2 commits November 16, 2026 21:48
…change detection works

detect-changed-lectures.sh lists every changed .md under lectures-dir; a
_toc.yml there only strips the folder from the links. Raised in review.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WT8bMXuHMiWb8victibwcU
Change detection reads .md files at any depth; restore-jupyter-cache's key
replaces every fallback; a lecture change misses the first restore prefix,
not an exact key; the rule for a harness job and a CHANGELOG entry is
AGENTS.md's; a product's own pages sit outside the pool; and every
reference to another repository's issue is written in full.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WT8bMXuHMiWb8victibwcU
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants