Skip to content

feat: case-study fact sheets (--artifact fact-sheet) - #43

Merged
agiacalone merged 1 commit into
mainfrom
feat/fact-sheet
Oct 27, 2026
Merged

agiacalone merged 1 commit into
mainfrom
feat/fact-sheet

Conversation

@agiacalone

Copy link
Copy Markdown
Owner

What

A new artifact: a one-page, student-facing fact sheet per named case study (a botnet, a breach, an outage). The Cornell handout teaches a case and withholds part of it; the fact sheet is the reference a student keeps afterwards.

Source schema

Facts live in the lecture main under an unnumbered heading:

## Fact sheet: Mirai

- August 2016 #fact [case:: Mirai] [label:: Discovered]
- Disconnect the device. #fact #steps [case:: Mirai] [group:: Removing an infection]
  • [label::] makes a facts-table row; [group::] makes a bullet under that heading; #steps numbers a group.
  • [citation::] feeds a linked Sources line (same linking as the exam reference sheet).
  • A #case-study with the same [case::] supplies the opening paragraph.
  • Validators: #fact without [case::] is a hard error; a fact inside a numbered section is a warning.
  • The sheet is skipped when a lecture has no facts, so --artifact all is unchanged for existing lectures.

Verification

  • 7 new tests (generators/fact-sheet.test.js), including one that the facts never reach the lecture notes. Full suite: 228 passed. npm run check clean.
  • Built for real from the CECS 378 Denial of Service lecture (Mirai, sourced from CISA alert TA16-288A): one page, tagged PDF. A full build of that lecture produces all 9 artifacts, and the facts appear only in the fact sheet.
  • veraPDF PDF/UA-1 reports one advisory rule (7.1-3). Bisecting showed it is not the table; it comes from the shared preamble, like the lecture notes' remaining finding.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LMsLD73YktSkHCT6wBQMFb

A one-page, student-facing reference card per named case study: a facts
table, grouped bullets (numbered with #steps) and a linked Sources line.
Facts are a new role tag, `#fact [case:: Name]`, with [label::] for a
table row or [group::] for a bullet; a #case-study with the same [case::]
supplies the opening paragraph.

A fact without [case::] is a hard error; one inside a numbered section is
a warning, because facts live under an unnumbered heading that
section-walking artifacts never read. The sheet is skipped when a lecture
has no facts, so `all` is unchanged for existing lectures.

First built for Mirai in the CECS 378 Denial of Service lecture.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LMsLD73YktSkHCT6wBQMFb
@agiacalone
agiacalone merged commit 634a1ed into main Oct 27, 2026
1 check passed
@agiacalone
agiacalone deleted the feat/fact-sheet branch October 27, 2026 17:04
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.

1 participant