The page-cited card deck you will produce
The finished deck has exactly 12 cards: three definition, two reverse, two calculation, two comparison, two scenario, and one diagnostic. Every back is supported by its cited PDF page. Calculation cards show formulas, substitutions, and units. Boundary cards explicitly say when the lesson cannot answer a question.
| Card type | Count | Learning job | Acceptance check |
|---|---|---|---|
| Definition | 3 | Recall the meaning of a term or symbol set | One bounded answer from one page |
| Reverse | 2 | Recognize a concept from its property | Front does not name the answer |
| Calculation | 2 | Reproduce a formula and units | Inputs, substitution, arithmetic, units |
| Compare | 2 | Distinguish easy-to-confuse ideas | Both sides directly sourced |
| Scenario | 2 | Apply or refuse an inference | Conditions and boundaries preserved |
| Diagnostic | 1 | Name two failure modes in context | Each symptom maps to one answer |
Before Step 1: verify the PDF itself
Open the PDF and confirm it is the correct edition, readable, complete, and authorized for this use. Record the displayed page numbers and the file's physical page count; they can differ when a document has a cover or roman-numeral front matter. If pages are scanned, formulas are images, or diagrams carry essential meaning, a text-only extraction is incomplete. OpenAI's current documentation also distinguishes plan-dependent PDF visual retrieval from text-only handling. Never assume an AI saw a diagram merely because it accepted the file.
The synthetic packet has six rendered pages. We inspected all six after the last PDF edit. Each page has a visible footer number, and the lesson itself sets a citation rule: a card may cite only a page that directly supports the answer; calculations must show inputs and arithmetic.
Step 1: inventory all pages and name what is missing
Your card-making action
Provide page-bounded text or an authorized PDF. Ask for a page inventory, expected page count, missing or uncertain content, and one state: READY_FOR_PROPOSITIONS, NEEDS_INPUT, or BLOCKED. Require the model to state whether it received an uploaded file, extracted text, or pasted page text.
Inventory every represented page. State the input method, page count, page topics, and anything the input cannot verify. Return READY_FOR_PROPOSITIONS, NEEDS_INPUT, or BLOCKED. Do not write cards.Observed flashcard result
ChatGPT identified six of six supplied pages and accurately summarized their jobs. It also stated that page-bounded text was pasted, no upload was claimed, and original layout, figures, metadata, and unpasted text could not be verified.

Your decision
Compare the inventory with the rendered pages. Stop if a page is missing, duplicated, unreadable, incorrectly numbered, or materially visual but absent from the model's input.
If you switch to uploading a PDF, review OpenAI’s PDF visual-retrieval documentation for plan and visual-content limits. This retained run used pasted text and did not test PDF visual retrieval.
Step 2: build a page-level proposition ledger
Your card-making action
Split the lesson into the smallest useful statements. Give each one a stable proposition ID, exact supporting page, type, safe wording, and qualifier. Keep “requires long-run λ<μ” separate from “does not promise low latency.” The qualifier is part of the knowledge, not optional decoration.
Return 12 atomic propositions PR-01 through PR-12 with page, type, smallest safe wording, and required qualifier. Do not draft cards. A proposition may cite only directly supporting pages.Observed flashcard result
The ledger mapped queue anatomy to page 2, Little's Law to page 3, backpressure to page 4, four failure modes to page 5, and the overload scenario to page 6. It kept stability, simplified-model, and no-percentile limits visible.

Your decision
Open every cited page and compare the proposed wording. If the answer requires a diagram, footnote, preceding page, or calculation not present in the row, expand the evidence or hold the proposition.
Step 3: choose a card blueprint before generation
Your card-making action
Define the deck's jobs and count. A fixed mix prevents the model from selecting only easy definitions. Require allowed proposition IDs and difficulty for each card slot, then have the learner accept or revise the plan.
Plan exactly 12 cards: 3 definition, 2 reverse, 2 calculation, 2 compare, 2 scenario, and 1 diagnostic. Give allowed proposition IDs and difficulty. Wait for USER_SELECTION before drafting.Observed flashcard result
The blueprint distributed all six jobs across C-01 through C-12 and attached proposition IDs before any front or back was written. The user accepted the plan.

Your decision
Change the mix when your course has a different assessment goal. Preserve a small deck if a larger one would merely split or duplicate the same proposition.
Step 4: draft cards with page and proposition evidence
Your card-making action
Ask for stable card ID, type, front, back, page citation, and proposition IDs. A calculation back must show formula, substitution, result, and units. A comparison front must request an explicit distinction rather than two separate mini-essays. Tell the model not to supply production thresholds or advice absent from the lesson.
Draft the approved 12-card blueprint. Give every card front, back, page citation, proposition IDs, and type. Show formula, substitution, arithmetic, and units for calculations. Do not add production advice.Observed flashcard result
V1 included the required deck but also contained two planted failures: an invented “p95 under 200 ms” answer and a card that called L=λW backpressure. Those failures are retained to prove the next audit can reject fluent but false study material.

Your decision
Do not edit away a failed fixture before the auditor sees it. An acceptance workflow that only demonstrates passing examples does not prove it can catch the error you care about.
Step 5: audit in a fresh context
Your card-making action
Give a fresh chat the page-bounded source, proposition ledger, and exact draft deck. Ask it to compare each back with the cited page, verify calculations and units, and return AUDIT_FAIL for unsupported answers, wrong pages, category errors, lost conditions, or ambiguous questions.
For every card, compare the answer with the cited page and proposition IDs. Fail unsupported numbers, wrong-page support, category mismatches, lost qualifiers, bad units, or ambiguous fronts. Recommend the minimum action only.Observed flashcard result
The audit correctly said utilization does not produce a p95 prediction and pointed to page 6's explicit boundary. It removed that bad answer instead of estimating. It also identified L=λW as Little's Law from page 3 and replaced the backpressure answer with page 4's upstream-control definition.

Your decision
When the source cannot answer a card, remove it. Do not ask for a more confident guess. A boundary card—“Can these averages determine p95? No.”—is useful only because page 6 directly supports that refusal.
Step 6: return one complete corrected deck
Your card-making action
Apply only accepted corrections and request the entire deck again. Keep stable IDs so reviewers can compare versions. Require the final maximum state READY_FOR_LEARNER_REVIEW.
Remove unsupported answers rather than inventing replacements. Apply only accepted corrections and return all 12 cards with stable IDs, pages, propositions, and types. Finish at READY_FOR_LEARNER_REVIEW.Observed flashcard result
C-03 now defines backpressure from page 4. C-10 now tests the explicit page-6 limit. The arithmetic cards retain 72/90=0.80, 12×0.25=3 requests, and 90−80=10 jobs/min with their units and conditions.

Your decision
Read each front first. If it admits several reasonable answers, narrow it. Then reveal the back and verify it from the rendered page, not from the model's earlier explanation.
Step 7: test the deck as a learner would
Your card-making action
Run seven checks: one-way answerability, page support, atomicity, duplicate or near-duplicate fronts, arithmetic, units, and answer leakage. Count cards, calculations, duplicate pairs, and failures. A vague “looks good” is not a test result.
Test answerability, page support, atomicity, duplicates, arithmetic, units, and answer leakage. Give counts and PASS or FAIL for each category. Do not claim retention or learning effectiveness.Observed flashcard result
All 12 cards were reported answerable and directly supported. The result found zero duplicate pairs, checked three computations and their units, and reported 12 fronts without answer leakage. Seven of seven categories passed inside the fixture.

Your decision
Study a small sample yourself. A mechanical gate can detect repeated text and selected structural problems, but a learner can still discover that a “correct” front is confusing, overbroad, or too easy.
Step 8: create a release matrix and stop conditions
Your card-making action
Give every card a release row with page, proposition IDs, type, checks, and state. Require explicit stop conditions for missing pages, unsupported answers, irreproducible calculations, excluded predictions, and correction regressions.
Return one row per card with page, proposition IDs, type, checks, and state. Add five STOP conditions and state whether a deck was imported, approved, or published.Observed flashcard result
The 12-row matrix keeps every calculation, qualifier, correction, and distinction visible. The response ends at NO_DECK_WAS_PUBLISHED.

Your decision
Choose the study tool, field mapping, tags, scheduling settings, and sharing policy yourself. Import a small sample first and check that HTML, formulas, Unicode symbols, line breaks, and page citations survive.
Check the card deck against its PDF evidence
The standard-library gate checks card IDs, the 3/2/2/2/2/1 type mix, unique fronts, allowed pages, the unsupported p95 phrase, the corrected backpressure definition, three arithmetic-and-unit results, the growth qualifier, and the learner-review ceiling. It must also reject six planted mutations.
python3 pdf-flashcards-evidence-gate.py
Download the gate and inspect the retained test result. The gate proves only that known damage is caught in this fixture. Retrieval-practice research provides a reason to test recall, but this tutorial does not measure retention or claim that this deck improves learning.
Stop conditions
- Stop when the rendered cited page is missing, unreadable, incorrectly numbered, or materially different from extracted text.
- Stop when the back needs a number, definition, condition, diagram, or inference the cited page does not provide.
- Stop when a calculation cannot reproduce its answer with the displayed formula, substitution, arithmetic, and units.
- Stop when one front contains multiple independent questions or reveals the answer.
- Stop when learner review, import mapping, course-owner approval, or sharing rights are unresolved.
The deliverable is ready when a learner can answer each front, open the cited page, reproduce every calculation, understand the stated boundary, and reject an unsupported answer. It is not ready merely because the AI produced many cards quickly.
