Minder Academy QA Tooling¶
The gate system that keeps the curriculum shippable
Fence-detection convention (tick-467): CommonMark allows 0-3 leading spaces of indentation on a fence line (list-item code blocks are indented fences). All fence-aware scanners match
^ {0,3}(```|~~~)— earlier line-start-only regexes silently treated the contents of the corpus's 98 indented-fence lines (8 files, mostly TROUBLESHOOTING-QUICKSTART command blocks) as prose. Blockquote fences (> ```) remain a documented blind spot.
One Command¶
python scripts/qa/quality_report.py
Prints the full scorecard: corpus stats (lesson files / modules /
phases) plus every gate below, then a single result: line. Exit 0
means all hard gates are clean - this is the CI contract.
Environment: uv sync --group qa installs the offline-gate
dependencies (PyYAML for the frontmatter/yaml parser gates, httpx for
the network link tool, pyflakes for the fence-namecheck pair) as the
PEP 735 qa dependency group in the root pyproject.toml (see
ENVIRONMENT-SETUP).
One exception: langchain_census resolves every lesson import against
the kurulu-stack, so run the scorecard under an interpreter that has
the full installed stack. A partial environment fails loud with
sys.exit(2) and a named fix (never silently wrong findings).
CI runs the scorecard under that partial environment on purpose:
.github/workflows/qa.yml passes --skip
langchain_census,fence_import_check,notebook_code_scan,fence_exec_gate
so the four kurulu-stack gates print SKIP and every other hard gate
still holds the exit-code contract end to end. The first three resolve
lesson imports against the stack; fence_exec_gate re-executes
census-blessed fences whose blessed outcomes were recorded under the
stack, so a partial interpreter re-executes them as ENV-GAP verdicts.
--skip accepts only labels that exist in GATES - an unknown label is
an argparse error, so a typo can never widen the skipped set silently.
Hard Gates (exit 1 on findings)¶
| Gate | Codes | What it checks |
|---|---|---|
| frontmatter_lint | FM-01..FM-09 | frontmatter completeness/consistency |
| pip_uv_scan | - | bare pip install only in documented exceptions (Docker, conda, uv bootstraps, uv-first blocks with a labeled plain-pip fallback) |
| langchain_census | LC-01 | every langchain/langgraph import resolves against the installed stack |
| legacy_chain_scan | LC-02 | bare langchain_classic-only name uses (import-less usage) |
| legacy_langgraph_scan | LG-01 | legacy LangGraph entry/finish setter calls inside python fences (builder.set_entry_point, builder.set_finish_point) - the modern surface builds the same edge with add_edge(START, node) and the corpus's own 7303 guide calls the setter the legacy spelling, so a fence teaching the setter vouches a form the corpus labels legacy elsewhere (drained born-at-zero tick-677: the 7300 PRACTICE Exercise 3 solution and the VOLUME-7 cheat-sheet fence, both calls now add_edge(START, ...) with the import lines carrying START; paren-less prose mentions are the affirmative teaching form and stay out of the class) |
| codeblock_syntax_scan | CB-01 | every python fence parses as Python |
| bashblock_syntax_scan | BB-01 | every bash fence passes bash -n; runnable ${VAR} placeholders |
| datablock_syntax_scan | DB-01/02 | json fences parse; yaml fences parse as document streams |
assessment_lint |
AS-01..AS-22 | QUIZ.md + PRACTICE.md coverage per module - existence (AS-01 QUIZ, AS-05 PRACTICE), depth (AS-02 >= 20 questions, AS-06 >= 3 exercises), shape (AS-03 contiguous numbering, AS-07 solution marker per exercise, AS-10 a question carrying options carries exactly the four A-D - the platform renders options as radio buttons, born tick-498 born-at-zero census 655/655 four-option mcq; duplicated letters shrink the set, 3/5-option outliers miss it), answerability (AS-04 every question answered by key row, inline answer, or self-graded score blank; AS-08 key/inline agree; AS-09 (graduated tick-566 from the queued 70% tripwire) no single letter exceeds ceil(N/4) of the bank's answered questions - one letter dominating the key lets a learner ace the quiz by pattern-matching a letter instead of reading, so the corpus convention is quarter shares); AS-11 (tick-514) every Answer Key row carries a filled explanation cell - the platform renders it as the per-question review text and a bare | N | X | row grades without teaching (born tick-514 at zero - the explanation drain left 33/33 banks explained - hard from birth); AS-12 (tick-515) where a quiz carries a "Need to Review?" map the cited question numbers must all exist in the bank and cover every question, so no wrong answer strands a learner without a pointer to the lesson that teaches it (applied only where the section exists; banks without a map join coverage as the review-map drain lands them); AS-13 (tick-562) locks the MASTER-INDEX Phase Practice/Quiz Files tables' per-row count columns to the linked phase-level files - practice rows count Exercise N headings outside the Appendix: Complete Reference Implementations section (phases 6-7 carry one whose per-exercise reference builds are solutions, not new exercises; any other H1/H2 ends the appendix), quiz rows count the numbered "### N." question headings this phase-quiz fleet uses, a missing phase row or a row linking a nonexistent file is a finding - born with the exercise column drifted on 5 of 7 phases (MI promising 42 exercises against a disk of 34, the quiz column 7/7 true) and the column drained to disk truth before the lock tightened; tick-566 also brought the 7 phase quizzes (docs/00-META/assessment/phaseN-quiz.md) into the gate's scope under their own "### N." / lowercase-inline shape - AS-03 contiguous numbering, AS-04 inline coverage, AS-08 inline-vs-key-block agreement, AS-09 balance - the birth census caught all seven skewed (phase 2 answering D on 70% of its questions, phase 5 B on 56.7%) and the option positions were permuted to quarter shares (56 option-text swaps, keys remapped, semantics untouched, the three ordered-option questions left in place) before the ceiling locked; AS-14 (tick-567) locks each phase quiz's learner-facing "Passing: N/M (80%)" line - exactly one per quiz, its total equal to the quiz's question count, its percentage the corpus's 80% convention (the module banks grade there too), and its threshold the integer ceil of that percentage of the total - a line every gate once ignored, so a question-count edit could silently strand the number a learner is told to hit; born census-proven at zero across all seven quizzes (12/15, 16/20, 20/25 and 24/30 at exact 80% multiples); AS-15 (tick-568) graduates quiz_integrity_scan's QI-10 answer-length report (tick-290) to a hard line over both quiz shapes - the correct option may be longest-or-tied (in words AND characters, QI-10's exact metric) in at most 50% of a quiz's >= 4-option answered questions, quizzes under 10 such questions exempt - because a learner who always picks the longest option would pass without reading, and the quiz then measures length instead of knowledge; the born census caught exactly the seven phase quizzes (never in any length census before: 10/15, 16/20, 21/25, 24/30, 23/30, 28/30 and 28/30 tied - 83.3% corpus-wide, peaking 93.3% on phases 6-7, a longest-picker scoring ~83% against the 80% passing line AS-14 locks) while the 33 module banks had already drained to a 2.4% corpus rate under the report queue, so the phase side drained same tick with 75 one-distractor lengthenings carrying false-anchoring qualifiers (distractors stay false, letters and correct options untouched), every quiz left at floor(0.5*len)-2 tied headroom; AS-16 (tick-569) locks within-question option hygiene over both quiz shapes - no two options of one question may carry the same text (casefold + whitespace-collapse exact, punctuation preserved so "d_model / num_heads" vs "d_model + num_heads" stays distinct - the census false positive that fixed the normalization) and no deferred/compound option ("All of the above", "None of these", bare letter-lists "Both A and C") may occupy an option slot, since a repeat makes the key ambiguous for any learner who picks it and a compound hides multi-answer logic in a single-answer bank (corrupting the letter balance AS-09 locks); the born census caught exactly 35 deferred options across 16 module banks - 22 with the key ON the deferred option (a pick-two question graded as one), every one on letters B/C/D - and zero true duplicates under the honest normalization, and the drain turned the 22 keyed compounds into concrete summaries of their combined options and the 13 compounds-as-distractors into concrete false options, with 3200-embeddings Q15 repaired beyond its B slot (its "Rotate queries and keys" and "Replace positional embeddings" distractors were true per its own explanation, so both became false and the explanation cell followed) and 1200-virtualization Q17's false distractor lengthened past its new keyed summary when the drain's own long correct option tipped that bank onto the exact 10/20 AS-15 line; AS-17 (tick-570) locks stem-answer leakage over both quiz shapes - the stem must not hand over the answer: (1) the keyed option's normalized text may not appear verbatim in the normalized stem (the stem normalizer strips the question-number prefix first, born from the census false positive where the keyed option "1" matched inside the question number "**10."), and (2) two or more informative tokens (len >= 3, stopword-filtered, exact forms - "channel" and "channels" stay distinct, the AS-16 morphology lesson) shared by the stem and the keyed option but by no distractor is the phrase-match tell a test-prep guide warns about; the corpus line was measured first (the AS-16 look-at-the-data lesson) - a single echoed token is normal vocabulary overlap (63/835 = 7.5%, legal), two or more was exactly 7, three never occurs; the born census caught exactly those 7 stem echoes across 7 module banks (2400-pretraining q7/q10 learning+rate, 3500-multimodal q6 language+vision, 4100-low-bit q8 channel+per, 4300-quantization-aware-training q13 better+channel, 5100-peft q17 adapters+model, 7200-tools q1 calling+llm) and the drain reworded the 6 keyed options off their echoed tokens while 4100-low-bit q8 kept its "channel" - the per-channel concept IS the key - and its distractor gained the token instead, leaving the single-token echo that passes; scope tick-626: the header-count-claim contract (AS-18) - the phase quiz's learner-facing "N Questions | ..." header must exist and carry a number equal to the quiz's actual question count, read from the first 30 lines outside fences, scoped to the seven phase quizzes (the passing line's total contract is AS-14's - one mutation fires once, proven by the NEG's cross-gate run), born 7/7 headers present 0 drift across 180 questions (15/20/25/30/30/30/30), NEG 9 runs: old-code hole-proof (header 15 -> 16 silent rc=0 under pre-fix), pristine 0, drift 1 ("header claims 16 questions, quiz carries 15"), absence 1, partner-only AS-14 1 with zero AS-18 (no overlap), aggregate 2, cross-gate quiz_integrity_scan silent rc=0 on the firing mutant, restore byte-identical + post-restore 0; scope tick-627: the exercise-numbering contract (AS-19) - inside each of the seven phase practice files the "Exercise N" headings must run 1..K with no gap, repeat or wrong start, checked per segment (the main body and, for phases 6-7, the appendix reference implementations each restart at 1, the same appendix boundary AS-13 counts across); a deleted section or a bad renumber serves a broken sequence while the heading count stays intact - AS-13's MI rows compare counts, not numbers, so the drift is invisible there; born 9/9 segments contiguous (main 5/4/4/4/3/7/7, appendix 6/5), NEG 10 runs: old-code hole-proof (gap mutant silent rc=0 under pre-fix), pristine 0, gap fires 1 ("runs 1, 2, 5, 4, expected 1..4"), dup fires 1 ("runs 1, 2, 2, 4"), appendix mutant fires 1 naming the appendix segment, two-file aggregate exactly 2, cross-rule silence (every finding AS-19, no AS-13 drift), cross-gate quiz_integrity_scan silent rc=0, restore byte-identical + post-restore 0; scope tick-628: the same AS-19 contract extended to the module surface - all 33 PRACTICE.md files vouch one 1..K run per file (no module carries an appendix section, so no segment split); the reader-proof held the same way (AS-06 floors the count at >=3, AS-07 checks solution markers, AS-13's MI tables read only the 7 phase practice rows - no reader of the module numbers); born 33/33 single-segment contiguous, 184 exercises (169 H3 + 15 H2 headings, the H2 shape living in 2300/4300/4400), NEG 10 runs: old-code hole-proof (gap mutant silent rc=0 under pre-fix), pristine 0, gap fires 1 ("runs 1, 2, 5, 4, 5, expected 1..5"), dup fires 1 ("runs 1, 2, 2, 4, 5, expected 1..5"), H2-shape mutant fires 1 on 2300 ("runs 1, 2, 5, expected 1..3"), two-file aggregate exactly 2, cross-rule silence (every finding AS-19, no AS-06/AS-07/AS-13 drift), cross-gate quiz_integrity_scan silent rc=0, restore byte-identical + post-restore 0, baseline refresh scoped to the one tracked victim (2300's runnable fences - 1100/1300 are untracked); scope tick-635: the answer-key written-numbering contract (AS-20) - the phase quiz's '## Answer Key' comma-pair entries must run exactly 1..N - the key parses into a letter-keyed dict (duplicates collapse at capture time) and the AS-08 loop compares only the intersection, so a key whose entries ran with a gap, a duplicate or a broken order served the learner a review key missing an entry while every check stayed clean, and RM-00 reads only the 33 banks' key-table rows (review_map_check's banks-only glob), so the written sequence inside the count was vouched by nothing across the 7 phase quizzes; one rule owns the class with the tick-631 partition shape - a citation outside the question set is a misdirected key and AS-08's stale branch names it, inside the set the written sequence is AS-20's (a broken run fires "AS-20 docs/00-META/assessment/phase3-quiz.md: answer-key entries are numbered 1, 2, 3, 4, 6, 5, ..., expected 1..25" naming the quiz), so one mutation fires once fleet-wide; born census read all 7 phase-quiz keys - 7/7 write exact 1..N (15/20/25/30/30/30/30, 180 entries), born-at-zero; negatively tested across 11 runs - the old-code hole-proof (the phase1 gap mutant parsed clean rc=0 under the pre-tick code staged outside the tree, the scan is stdlib-only), the pristine control fires 0, the gap mutant fires exactly 1 (expected 1..15), the duplicate mutant fires exactly 1 on phase2 (1, 2, 3, 3, 5, expected 1..20), the aggregate lands exactly 2, the order mutant fires exactly 1 on phase3 (adjacent 5/6 swap - the set complete, the sequence broken), the cross-rule silence run shows every hard finding AS-20 with zero AS-01..19 drift, the cross-gate run holds quiz_integrity_scan, quiz_export, checkpoint_coverage_scan, pitfall_shape_scan, quiz_claim_scan, review_map_check and course_card_check silent at rc=0 on the firing state, the full fleet fails on the firing state (hard wiring), the partition run proves no overlap in both directions (a phase4 out-of-range key entry 31 fires AS-08 exactly 1 with AS-20 silent - out-of-range is not ours; a phase5 key-letter flip fires AS-08 exactly 1 with AS-20 silent - value agreement is not ours), and the restore is byte-identical with the post-restore control at 0, exit 1 on every firing mutant; riding hygiene - the codes cell and the quality_report docstring header range bumped ; scope tick-636: the phase-README quiz-claim contract (AS-21) - each phase README's Assessment bullet '- Phase N Quiz (linked) - Test your understanding (NN questions, PP% to pass)' must exist exactly once, carry the linked quiz's true question count and state the corpus 80% convention - the claim is the surface a learner reads before the quiz file, and it was vouched by nothing: feed_parity_check totals only the corpus aggregates and course_card_check walks the module READMEs, so a drifted count promised a different bank than the one behind the link while every check stayed clean; the site was real - 6 of 7 phase READMEs lied about the count (phase1 25 vs 15, phase2 25 vs 20, phase4-7 20 vs 30; only phase3 wrote its true 25); one rule owns the class with the tick-631 partition shape - the quiz file's own header claim is AS-18's, its passing line AS-14's, the MI rows AS-13's, a broken link linkcheck's, the claim line's values are AS-21's alone (a README count-drift fires "AS-21 docs/phases/phase1-infra/README.md: claims 16 questions, phase1-quiz.md carries 15" naming the README), so one mutation fires once fleet-wide; born census read all 7 phase READMEs - 7/7 carry the line, 1/7 (phase 3) wrote the true count, the 6 drifts drained same tick - born-at-zero, and no new gate was needed since assessment_lint is already a hard gate in the fleet (count holds at 110 hard / 116 total); negatively tested across 12 runs - the old-code hole-proof (the phase1 15->16 mutant parsed clean rc=0 under the pre-tick code staged outside the tree, the scan is stdlib-only), the pristine control fires 0, the count-drift mutant fires exactly 1, the pct-drift mutant fires exactly 1 (80->70), the missing-line mutant fires exactly 1 (the claim bullet deleted - absence is vouched), the aggregate lands exactly 2, the cross-rule silence run shows every hard finding AS-21 with zero AS-01..20 drift, the cross-gate run holds quiz_integrity_scan, quiz_export, checkpoint_coverage_scan, pitfall_shape_scan, quiz_claim_scan, review_map_check and course_card_check silent at rc=0 on the firing state, the full fleet fails on the firing state (hard wiring), the partition runs prove no overlap in both directions (a quiz-header 15->14 drift fires AS-18 exactly 1 with AS-21 silent - the quiz surface is not ours; a quiz passing-line 80->70 drift fires AS-14 exactly 2 with AS-21 silent - the passing surface is not ours), and the restore is byte-identical with the post-restore control at 0, exit 1 on every firing mutant; the six README drains are prose-only claim-line edits so the accepted_exec_census is untouched (550 rows / 550 notes steady across 260 baseline files); scope tick-641: the informative-option floor (AS-22) - an option whose whole text is a bare generic (both/neither/all/none/either plus an optional trailing period, whitespace-collapse + casefold exact; the word-boundary keeps 'nonempty' out) is a non-informative choice a learner can key without reading the material, and the class was vouched by nothing: AS-10 counts the four letters, QI-03 the duplicate texts, and AS-16 owns the deferred/compound class ('All of the above', 'None of these', bare letter-lists - the compound form hides multi-answer logic), so the bare single-word remainder was the hole - a bank answering 'D) Both' graded a reader of zero text; one rule owns the class with the tick-631 partition shape - AS-16's DEFERRED_OPT owns the compound form, AS-22 the bare word, so one mutation fires once fleet-wide (the born run proved the partition live: AS-16 silent on every bare form); born census read all 40 banks - exactly 29 findings across 9 module banks (19 on the D slot, 8 on C, 1 on B, 1 on A; 4 of the 29 keyed ON the generic) and zero across the 7 phase quizzes, drained same tick with option-TEXT-only rewrites (29 findings / 29 option lines / 22 questions / 9 files; keys, letters, counts, passing lines and key tables untouched; the 4 keyed sites had their meaning spelled out so the key still answers; every rewrite arithmetically verified to add no new strict-longest/strict-shortest position); the drain dropped the corpus's length axis for free (quiz_length_scan: global long 17.0% -> 15.1%, short 4.2% -> 3.7%, 0 BANK findings - a generic option is almost always the shortest line, so the length report's global shares fell); negatively tested across 6 runs - the old-code hole-proof (the HEAD gate staged outside the tree fired 0 rc=0 on the planted 6400 Q2 'D) Both' mutant), the new-code fire (exactly 1 AS-22 naming the option, rc=1, zero AS-01..21 hits - the cross-rule silence), the cross-gate run (quiz_integrity_scan, quiz_balance_scan, quiz_claim_scan, review_map_check, course_card_check and quiz_export all rc=0 on the firing state - single ownership), the full fleet fails on the firing state (hard wiring), and the restore is byte-identical with the post-restore control at 0; the drain is option-text-only prose so the accepted_exec_census is untouched (551 rows / 551 notes steady across 260 baseline files) |
| quiz_export | - | quiz bank parses into complete question records; scope tick-615: the parser's stem check sat in the open-type elif chain, so an mcq or coding question whose stem line lost its text (5. with options or a Score line intact) parsed clean into a rendered-blank record the platform would serve with no prompt - the blank-stem class is now one clause firing for every type (born census: 0 across 660 questions, 655 mcq + 5 coding; the gradeable-but-open cousin stays QI-12's), NEG 7 runs - old-code hole-proof (blank coding stem parsed clean under the pre-fix elif, rc=0), pristine 0, blank mcq stem on 3200 q1 exactly 1, blank coding stem on 2300 q16 exactly 1, the pair aggregates into 2, restore byte-identical + post-restore 0, and the feed_parity propagation run fires exactly 1 FP-00 with FP-05 silent (record counts consistent, the exit code is what propagates); scope tick-616: the beyond-D class joined the parse contract - OPTION and the key-row regexes capture A-D only, so an option row or key letter outside the grammar (an E option, a key row rewritten to E) dropped silently while the record stayed complete-looking (options full, inline/key answer intact); two clauses own the two parse sites - option rows fire under their question, key rows name the dropped entry (born census: 0 across 660 for both; the no-inline key path already fired missing-answer - this closes the silent inline path), NEG 7 runs - old-code hole-proof pair (E option row on 3200 q1 rc=0 silent, key letter E on 2300 row 1 rc=0 silent), pristine 0, option-E exactly 1, key-E exactly 1 with missing-answer and conflict clauses silent (inline A intact), aggregate 2, restore byte-identical + post-restore 0; scope tick-617: the platform-metadata contract joined the parse contract - the Instructions 'N questions' claim and every key row's question presence were vouched by nothing, so a drifted claim or a dangling key entry served lying metadata while the bank loaded fine; two clauses own the two classes (claim-count via a dedicated instructions pass - silent when no claim, 2300's points-based form carries none; orphan-key via the key-only numbers the per-question loop never visits - the dual of missing-answer), born census 0/0 across 33 modules (the first census run's 2300 orphan hit was the census's own ordering artifact, not a corpus finding; the '20/25' passing score is points - 15x1 + 5x2 - verified against the bank), NEG 7 runs - old-code hole-proof pair (claim 25 on 3200 rc=0 silent, dangling key 21 on 3200 rc=0 silent), pristine 0, claim exactly 1, orphan exactly 1, aggregate 2, restore byte-identical + post-restore 0; scope tick-618: the passing-score contract joined the parse contract - the '(X/Y correct)' parenthetical a learner is graded against was vouched by nothing, so a drifted denominator, a dropped percentage pairing or broken arithmetic served lying pass criteria while the bank loaded fine; three clauses own the three classes (denominator vs the parsed count via a dedicated capture pass; bare parenthetical without its paired 'N%' prefix; stated percent vs the fraction's arithmetic), born census 0/0/0 across the 32 modules carrying the form (2300's points-based form carries none and stays silent; the denom mutant uses 8/10 to keep the arithmetic consistent so one mutation never double-reports), NEG 10 runs - old-code hole-proof triple (denom, math and bare each rc=0 silent), pristine 0, each mutant exactly 1, denom+math aggregate 2, restore byte-identical + post-restore 0; scope tick-619: the duplicate-row contract joined the parse contract - a duplicated option row or duplicated key row silently overwrote the earlier dict entry while the record stayed complete-looking (the dup-key mutant carries a different letter C after the real row, so the served answer silently flips B->C); two clauses own the two sites (duplicate option letter under its question; duplicated key row naming the overwritten letter), born census 0/0 across 33 modules (660 questions), NEG 7 runs - old-code hole-proof pair (dup-opt and dup-key each rc=0 silent under the silent dict overwrite), pristine 0, each mutant exactly 1, aggregate 2, restore byte-identical + post-restore 0; scope tick-620: the contiguous-numbering contract joined the parse contract - question numbers must run 1..N, and the count-claim and parenthetical clauses stay silent when a renumbered question keeps the total matching (q4 moved to q24 with its key row: 20 questions, claim 20, 16/20 - every sibling clause silent, the feed's records carry a hole); one clause owns the class (first mismatch reported), born census 0 gaps across 33 modules, NEG 5 runs - old-code hole-proof (the q4->q24 count-consistent move parsed clean rc=0 under the pre-fix code), pristine 0, the mutant exactly 1 ('question numbering not 1..20 contiguous (first mismatch 5)'), gap+denom aggregate 2, restore byte-identical + post-restore 0; scope tick-621: the duplicate-option-text contract joined the parse contract - two options of one question sharing the same text is a broken distractor served while the record loads fine (the duplicate LETTER site is tick-619's, this is the text site); born census 0 across 660 questions, NEG 5 gate runs - old-code hole-proof (q1's B rewritten to share A's text parsed clean rc=0 under the pre-fix code), pristine 0, the mutant exactly 1 ('question 1 options A and B share the same text'), dup-text+denom aggregate 2, restore byte-identical + post-restore 0; scope tick-622: the missing-Instructions contract joined the parse contract - a quiz with no Instructions section serves no instruction block to the learner while the bank loads fine (the claim pass goes silent when the heading is gone, so section presence is the heading walk's own output); born census 33/33 modules carry the section, NEG 5 gate runs - old-code hole-proof (the heading line removed parsed clean rc=0 under the pre-fix code), pristine 0, the mutant exactly 1 ('no Instructions section (platform metadata absent)'), no-instructions+denom aggregate 2 (the parenthetical validates heading-independently), restore byte-identical + post-restore 0; scope tick-623: the duplicate-stem contract joined the parse contract - two questions of one module sharing the same stem text are a duplicate feed record served twice while the bank loads fine (the number stays unique and the stem non-blank, so no sibling clause covers it); born census 0 across 33 modules (the informational count from the tick-622 census frozen as a rule), NEG 5 gate runs - old-code hole-proof (q2's stem rewritten to q1's parsed clean rc=0 under the pre-fix code), pristine 0, the mutant exactly 1 ('questions 1 and 2 share the same stem text'), dup-stem+denom aggregate 2, restore byte-identical + post-restore 0; scope tick-624: the identity-metadata contract joined the parse contract - a quiz with no Document ID exports an empty platform identity key while the parse stays clean, a blank Title exports an empty display name, and two modules sharing a Document ID collide on the identity key (the second aliases the first) while every per-module check stays clean; born census 0/0/0 across 33 modules (33 distinct IDs), NEG 8 checks - old-code hole-proof (the ID line removed parsed clean rc=0 under the pre-fix code), pristine 0, no-ID exactly 1, no-Title exactly 1, dup-ID exactly 1 (fired on the second carrier in feed order), no-ID+denom aggregate 2, restore byte-identical + post-restore 0; scope tick-625: the grading-denominator contract - q["points"] == 0 fires per question (self-grade denominator undefined), born 0 across 660 questions with the points histogram {None: 655, 2: 5} and the five coding questions all /2, NEG 6 runs: old-code hole-proof (q16 __/2 -> __/0 silent rc=0 under pre-fix), pristine 0, zero-pts 1, zero+denom aggregate 2, restore byte-identical + post-restore 0 |
| quiz_integrity_scan | QI-01..06, QI-08/09, QI-11..20 | content-level quiz integrity on top of quiz_export's parser: self-referential positional option ("Both A and B" at position B), duplicate stem within a module, duplicate option text within a question, option letter beyond A-D (the parser silently drops it), numbering gap (duplicate numbers were flagged, missing ones were not), duplicate Answer Key rows for one question (the key dict overwrites, last row silently wins), orphan Answer Key rows with no matching question (quiz_export's join is one-directional: questions pull from the key, key rows are never checked back), cross-module duplicate stem (QI-06: same question label reused across two modules; drained tick-343 with 6 rewords, HARD since tick-345); QI-11 (tick-374) key letter with no matching option row, or an mcq parsing fewer than two options - unanswerable; QI-12 (tick-474) ungradeable question - parses as neither mcq (option rows) nor coding (a **Score:** points line); quiz_export flags only the empty-text degenerate case, so a lost option block or Score line renders unscoreable; born at 0 (census: 660 questions = 655 mcq + 5 coding); QI-13 (tick-475) unparseable Answer Key row - a row-shaped line (the two-cell table key row of number then letter cell, or the bold **N. X** form) that the [A-D]-only key regexes silently drop (E+ letter, two-letter cell like AB, trailing junk), so unlike QI-09's parsed orphans it vanishes from every join; born at 0 (census of both row shapes); QI-14 (tick-476) checkpoint-quiz item duplicating a bank stem - a verbatim item in a phase CHECKPOINT.md's 3-item Checkpoint Quiz re-asks a question the module's own or a sibling QUIZ.md bank already asks, so the learner meets the identical stem twice in one module flow; reuses the QI-06 stem map (quiz_export never sees checkpoint files, QI-06 only pairs QUIZ.md against QUIZ.md); born at 0 after a one-item reword drain (census: 99 checkpoint items across 7 files vs 660 bank stems, 1 verbatim dup - 7200's own bank Q2, 0 numbering gaps in all 33 blocks); QI-15 (tick-567) phase-quiz item duplicating a bank or another phase-quiz stem - a learner who finishes a phase's module quizzes then meets the identical question in that phase's quiz (docs/00-META/assessment/phaseN-quiz.md); reuses the QI-06 stem map for bank hits plus a phase-vs-phase map of its own (fence-aware "### N." heading parse); born at exactly 4 findings - all four in phase5-quiz.md re-asking its own phase's module banks (QLoRA, DPO, federated learning, prefix tuning verbatim) - drained to distinct angles (acronym-expansion, best-description, PEFT-context rewords) with answer letters and option texts untouched; QI-07/QI-10 lines are report inventory - the skewed-answer-key shuffle queue (max letter ≥50% or a letter absent; refines AS-09's 70% tripwire); born from the tick-284 census that found 2 self-reference bugs (fixed at birth), QI-08/09 from the tick-285 census (0/0 across 33 modules - locked at birth), baseline 0; QI-10 lines are the answer-length-bias report queue (correct option longest-or-tied in ≥50% of a module's questions - the pick-the-longest tell wins ~70% corpus-wide vs ~25% chance, born from the tick-290 census, 31/33 modules queued; no mechanical fix, drains via per-module content passes); QI-16 (tick-629) option letters written out of A,B,C,D order with the set complete - AS-10 vouches the set, QI-04 the E+ drop and QI-11 the key join, but the written order was read by nothing: a bank authored C..A..B..D renders scrambled radio buttons while the key still joins; fires only on a complete 4-letter A-D run so a broken-set question stays AS-10's class (a duplicated letter either breaks the set - AS-10 - or duplicates the text - QI-03) and one mutation fires once fleet-wide; born census 655/655 mcq write ABCD across 660 questions, born-at-zero; negatively tested across 9 runs - the old-code hole-proof (the 1100 Q1 B-D line swap parsed clean rc=0 under the pre-tick code), pristine 0, the ADCB mutant fires exactly 1, the ACBD mutant fires exactly 1, the pair aggregates exactly 2, cross-rule silence (every hard finding QI-16), cross-gate silence (quiz_export and assessment_lint rc=0 on the firing mutants), restore byte-identical with post-restore control 0; the tick's v1 candidate (module Explanation emptiness) died at this NEG's cross-gate run - assessment_lint AS-11 already vouches the class since tick-514 - and was reverted byte-exact, the lesson institutionalized as a full-rule-inventory reader-proof before naming a class; QI-16 phase surface (tick-630) - the seven phase quizzes carry their options in lowercase a)-d) and assessment_lint collects them into a letter-keyed dict (duplicate letters collapse at capture, the written order is destroyed), so on this surface the rule owns both sub-classes: a complete A-D set in any other order (the scrambled-radio-buttons branch) and a broken set - letter missing, duplicated, beyond D (the phase option regex captures a-e), or no option rows at all; born census 180/180 questions write exact abcd across the seven quizzes (15/20/25/30/30/30/30), born-at-zero; negatively tested across 11 runs - the old-code hole-proof (the phase1 Q1 b-d swap parsed clean rc=0 under the pre-tick code), pristine 0, the ADCB order mutant fires exactly 1, the ABC deleted-letter mutant fires exactly 1, the ABAD duplicate-letter mutant fires exactly 1 (the dict-collapse hole AS-16 cannot see), the aggregate lands exactly 2, the no-option-rows mutant fires exactly 1, cross-rule silence (every hard finding QI-16), cross-gate silence (quiz_export and assessment_lint rc=0 on the firing mutants), restore byte-identical with post-restore control 0; QI-17 checkpoint quiz item numbering (tick-631) - the 7 phase CHECKPOINT.md files carry a 3-item Checkpoint Quiz: per module block and the item-number run inside the count was unread: checkpoint_coverage_scan's CK-04 reads only the item COUNT (exactly 3) and quiz_integrity_scan's QI-14 only the stems, so a gap, duplicate or restart inside the count served the module self-test as a broken sequence; one rule owns the class with the tick-628 partition shape - a count != 3 stays CK-04's (it exists there), the numbering inside the count is QI-17's, shape-agnostic 1..K per segment (K=3 is the corpus shape CK-04 vouches), born census 33/33 module blocks write exact 1,2,3 (99 items across 7 files), born-at-zero; negatively tested across 11 runs - the old-code hole-proof (the phase1 gap mutant parsed clean rc=0 under the pre-tick code staged inside scripts/qa for sibling imports), pristine 0, the 1,4,3 gap mutant fires exactly 1, the 1,1,3 duplicate mutant fires exactly 1, the 2,3,4 restart mutant fires exactly 1, the aggregate lands exactly 2 across phase1 and phase2, cross-rule silence (every hard finding QI-17), cross-gate silence (checkpoint_coverage_scan, quiz_export and assessment_lint rc=0 on the firing mutants), the partition run (a count-kill to 2 items fires CK-04 exactly 1 with QI-17 silent at rc=0 - no overlap, one mutation fires once fleet-wide), restore byte-identical with post-restore control 0; QI-18 (tick-642) within-bank duplicate answer-key explanation text - two rows of one bank carrying identical normalized explanation text (casefold + whitespace-collapse exact) teach the per-question review UI the same sentence twice while the class was vouched by nothing: AS-11 owns the cell's PRESENCE, QI-08 the duplicate same-N row, QI-06 makes cross-bank repeats legitimate module-specific framing (the stem precedent), and the phase-quiz comma-pair/AK_BOLD keys carry no explanation cell, so one rule owns the class (a group fires only on >= 2 DISTINCT question numbers - a same-N pair stays QI-08's, one mutation fires once fleet-wide); born census read 33 banks / 655 key rows fence-aware - 0 duplicate groups, born-at-zero; negatively tested across 6 runs - the old-code hole-proof (the HEAD gate staged outside the tree exec'd with an explicit __file__ for its argparse default fired 0 rc=0 on the planted 6400 Q5:=Q2-text mutant), the new-code fire (exactly 1 QI-18 naming questions 2, 5 with the normalized text, rc=1, zero sibling codes), the cross-gate run (assessment_lint and quiz_export rc=0 on the firing state), the aggregate (1500 Q5:=Q4-text lands exactly 2, "2 hard"), the partition run (an emptied Q5 cell fires AS-11 exactly 1 with QI-18 silent at 0 hard rc=0 - the bare cell stays AS-11's class), and the hard wiring (quality_report prints result: FAIL naming quiz_integrity_scan on the firing state), restore byte-identical with post-restore control 0; QI-19 (tick-643) answer-key explanation restating the keyed option verbatim - the per-question review UI renders the same sentence twice for ONE question, the second time as the teaching text, while the class was vouched by nothing: AS-11 owns the cell's PRESENCE, QI-18 the cross-question duplicate within a bank, and the within-question MIRROR (explanation vs that question's keyed option) was read by nothing across the whole corpus; mirror normalization mnorm() (surrounding-quote + trailing-punctuation strip on top of norm) makes the "X." cousin fire, while an echo of a NON-keyed distractor option and a partial restatement stay out of the class (full mirror only - one mutation fires once fleet-wide); born census read all 33 banks / 655 key rows fence-aware - exactly 1 mirror (3500-multimodal Q18) and 0 punct-only neighbors, born at 1, drained same tick with a real teaching rewrite (the explanation now spells out the audio-to-transcript / text-to-waveform direction split instead of echoing the option; key rows, letters and counts untouched); negatively tested across 7 runs - the old-code hole-proof (the HEAD gate staged outside the tree exec'd with an explicit __file__ for its argparse default fired 0 rc=0 on the born firing state), the new-code fire (exactly 1 QI-19 naming 3500 Q18, rc=1, zero sibling codes), the cross-gate run (assessment_lint and quiz_export rc=0 on the firing state), the aggregate (6400 Q5 + 1500 Q5 planted mirrors land exactly 3, "3 hard"), the distractor-echo partition (6400's explanation := its distractor drops the count back to exactly 2 with 6400 silent - the class is keyed-option-only), the punct normalization (6400's explanation carrying a trailing period fires under mnorm - back to exactly 3), and the hard wiring (quality_report prints result: FAIL naming quiz_integrity_scan on the firing state), restore byte-identical with post-restore control 0; QI-20 (tick-644) answer-key explanation restating the question stem verbatim - the review UI renders the question a second time labeled as the explanation, while the class was vouched by nothing: AS-11 owns the cell's PRESENCE, QI-18 the cross-question duplicate within a bank, QI-19 the keyed-option mirror and AS-17 the stem-to-keyed-option leak - the explanation-to-STEM mirror was read by nothing across the whole corpus; this tick's v1 candidate (the reverse direction: stem-states-keyed-option) died at the NEG cross-gate run - AS-17 has owned that class since tick-570 - and was reverted byte-exact per the tick-629 institutional path, with the lesson deepened to a BOTH-gates reader-proof (grep AS and QI inventories for the mechanism before naming) practiced here; the rule is full mnorm() mirror equality - definition-shaped explanations that share words with the stem (census: 82 of 655 rows, the healthy craft) and partial restatements stay out, one mutation fires once fleet-wide; born census read all 33 banks / 655 key rows fence-aware - 0 mirrors against 82 partial containments, born-at-zero; negatively tested across 8 runs - the old-code hole-proof (the HEAD gate staged outside the tree; the first attempt crashed on the missing sys.path for its sibling imports and the ledger records the corrected re-run: exit 0, 0 QI-20 findings on the firing state), the new-code fire (exactly 1 QI-20 naming 3500 Q18, rc=1, zero sibling codes), the cross-gate run moved EARLY - immediately after first fire (assessment_lint and quiz_export rc=0 on the firing state, the v1 death-mode probe), the aggregate (6400 Q5 expl := its stem 'Upsert operation' lands exactly 2, '2 hard'), the partition (6400's explanation becomes a partial restatement with teaching words - count drops to exactly 1, full mirror only), the punct normalization (the quoted + trailing-period cousin stays 1 - mnorm sees through), and the hard wiring (quality_report prints result: FAIL naming quiz_integrity_scan on the firing state), restore byte-identical with post-restore control 0; rule NOT gate - the fleet holds at 111 hard / 117 total (QI-19 precedent) |
| review_map_check | RM-00..RM-06 | the "Need to Review?" map contract as its own gate, deeper than AS-12's where-a-map-exists coverage tripwire: RM-00 the Answer Key rows run 1..N with no gaps, RM-01 the map section exists with its intro line, RM-02 every bullet's coverage label parses (singles and A-B ranges - a malformed label would silently strand its questions), RM-03 the union covers questions 1..N exactly once (N extends past the answer key for hybrid banks like 2300's fifteen multiple-choice plus five coding questions, where the coding tail maps to the guide with no key rows), RM-04 bullets ordered by first covered question so the map reads in quiz order (first full run caught 6400's map opening on the Questions 2-7 bullet before Questions 1 - reordered same tick), RM-05 every labeled bullet carries at least one markdown link, RM-06 every linked lesson resolves on disk relative to the quiz file; unlabeled bullets (1200's score bands, 2300's closing note and emoji) stay out of scope and map bodies are bounded at the next heading so answer keys and related-read blocks never bleed into the parse; born tick-530 locking the AS-12 review-map drain (33/33 banks hand-audited ticks 514-529), hard from birth, baseline 0 |
| structure_lint | - | fence parity + H1 discipline + heading level jumps (HJ-01: no heading dives more than one level below the previous one, so the document outline stays monotone for TOC renderers, screen readers and platform nav trees) corpus-wide |
| linkcheck | - | every relative link target exists on disk |
| casecheck | - | case-sensitive href/disk match (Windows-invisible breaks) + missing relative targets + orphan gate (hard since 2026-09-30): a content doc with zero inbound relative links is invisible to the platform browse graph - reachable only by search, never by clicking. Exempt by rule: root README (entry doc), TEMPLATE, CHANGELOG (changelogs are intentionally unlinked). Any new orphan must arrive with the link that surfaces it; scope tick-637: crash-proofed resolution - a href segment the OS path normalization swallows (Win32 strips trailing dots/spaces, so '...' is exists()-true yet matches no on-disk name) used to crash the resolver with a bare IndexError and no diagnostic - the hard gate went silent exactly when most needed (fleet showing 'no summary line'); the class now lands in MISSING with file, line and href named (missing keeps single ownership - a nonexistent target and a normalization-swallowed segment are the same learner-facing fact), mismatch and orphan buckets untouched; born from the tick-636 fleet-trap where such a quote in this file was the first live instance; born census: the corpus hits the branch zero times (pristine control 3702 links 0/0/0 rc=0); NEG 4 runs - old-code hole-proof (probe doc's fake-dot href crashed the pre-tick copy staged outside the tree, IndexError, no summary line), the new-code fire names it in MISSING exactly 1 with rc=1, the partition run keeps both legacy buckets firing individually (a gone-file href still MISSING, a wrong-case Phases/ href still CASE MISMATCHES naming the disk name), restore deletes the probe byte-clean with the post-restore control at 0 |
| gate_robustness_audit | GRA-01/02 | every gate survives hostile input, hard from birth - each scripts/qa/*.py joins the roster automatically (new gates need no edits here) and runs against a synthetic malformed tree (unclosed fence, ragged table, invalid UTF-8, Win32-swallowed href segments, absent corpus anchors, degenerate empty corpora); exit 0 or exit-nonzero-WITH-a-diagnostic passes, a traceback (GRA-01) or a hang (GRA-02) fails the audit naming gate + frame + error; 7 by-contract exclusions (the orchestrator itself, the spawn child, the fence executors, the network gate, the scripts-dir auditor, the git-history report); born tick-638 census: 20 crash gates in 4 classes (15 absent-corpus-anchor FileNotFound, 3 absent-phases-dir iterdir, 1 invalid-UTF-8 decode in anchor_check, 2 empty-corpus logic bugs - quiz_balance_scan 0/0 chi2, bashblock_syntax_scan degenerate glob), the curriculum_metrics empty-corpus onion (median -> mean -> min, one census run per layer) drained as a single SKIP guard (no lessons -> nothing to analyze, the interim _median/_mean helpers reverted as dead guards), and the 15 absent-anchor gates SKIP because the anchor's existence is linkcheck's single ownership; NEG: a staged reverted quiz_balance fires CRASH exactly 1, a planted 600s hang fires TIMEOUT exactly 1, post-drain control 0 crash / 0 timeout across 127 gates; the NEG staging run itself surfaced a 5th class - the legacy trio (brand_scan, legacy_ad_rename, legacy_ad_scan) anchored ROOT to __file__ and ignored --root, so a staged copy rglob'd the whole parent dir into a 90s TIMEOUT - drained by honoring --root with the historical default kept (fleet behavior unchanged, quality_report always passes --root); a fleet smoke then caught the auditor itself in the ARGERROR class (the runner passes --root to every gate, the audit's argparse rejected it -> rc=2, no summary line) - fixed by accepting --root (scripts dir derives from it when --scripts-dir is absent) |
| anchor_check | - | in-document AND cross-file anchors vs a GitHub-accurate slugger |
| table_lint | TL-01 | ragged GFM tables (differing cell counts) |
| mermaid_lint | MM-01..03 | diagram headers, balanced brackets, declared direction |
| deprecated_scan | DA-01..06 | deprecated API calls in python fences (DA-04: the torch.cuda.amp namespace, deprecated since PyTorch 2.4 - the modern home is the torch.amp namespace with an explicit device on autocast; born tick-347, drained same tick: 3 sites across 3 files. DA-05: the transformers torch_dtype kwarg, kept in v5 only as a backward-compat shim and warned about on every load by the installed 5.10.2 stack - the modern name is dtype=, verified with a tiny-Llama round-trip where dtype=torch.float16 loads clean, the string form dtype="bfloat16" works, and the legacy kwarg emits "torch_dtype is deprecated! Use dtype instead!"; born tick-639, drained same tick: 42 call sites across 24 files - all from_pretrained continuations, zero comment-only mentions - plus 5 rider sites in text/bash fences outside the gate's universe, 4 LAB-010 sketch lines and 1 bash-heredoc line in 5104; DA-06: the transformers use_flash_attention_2 kwarg, deprecated since transformers 4.36 - the modern form is attn_implementation="flash_attention_2", the exact form the corpus already teaches at every Flash Attention surface (CHEAT-SHEET-020 prose x2, TROUBLESHOOTING x1, TUTORIAL-007 text-fence x1, 3102 x1, 4203 dict-value x1, EXP_3102 x1); born tick-1146 born-at-zero: the legacy kwarg reads 0 occurrences across docs/ and experiments/ (prose, python fences and fence:LANG alike), so the rule joins the gate green without touching any corpus byte; comment-only mentions stay invisible via the # split, and load_gguf_checkpoint's genuinely-torch_dtype signature is a documented non-class) ; scope tick-1148: the gate learned the corpus's second tree - the scope walk now covers docs/ AND experiments/ (born-at-zero census before extension: 48 md / 125 python fences across 37 files, DA-01..DA-06 and the pydantic-import-activated .dict() rule all x0 through the gate's own fence-state-machine scan; NEG-proven: a planted DA-01 fence under experiments/ fires exactly 1, deletes back to exit-0) and the summary line names both trees |
| unsafe_exec_scan | UE-01 | unsafe dynamic execution in python fences - a single-argument builtin eval()/exec() call (no explicit globals/locals, no keywords) hands MODEL OUTPUT a live prompt-injection -> arbitrary-code-execution path, the corpus's own ReAct calculator-tool teaching shape - while the corpus itself vouches the danger (7500-security's practice answers label eval(malicious_code) a Dangerous function; the phase7 README's Pitfall 2 marks result = eval(user_code) # DANGEROUS! as the Wrong pattern). Out of the class by construction: .eval() method calls (PyTorch eval-mode, Attribute nodes), ast.literal_eval, string mentions (AST Call walk, not text), calls with >= 2 positional args or any keyword (the two-argument sandbox idiom the corpus already ships - eval(expr, {"__builtins__": {}}, {...})), and a fence carrying a danger marker (DANGEROUS/Wrong:/unsafe/vulnerab, casefold) - deliberate danger-teaching, the born example being LAB-004's SECURITY-WARNING fence which shows the bare call and then blocks it. Born census read 27 builtin eval/exec calls across 17 files - 12 already the sandbox idiom, 2 bare inside marked danger-teaching fences, and 13 unmarked bare sites across 9 files (phase7-practice x3, LAB-013, SOLUTION-LAB-004/013, 7101, 7100/7200/7300 PRACTICE, 7103 x2) - drained the same tick to the two-argument sandbox idiom; the sandboxed eval/exec census rose 5 eval + 7 exec -> 18 eval + 7 exec. Negatively tested across 8 runs - the born fire (exactly 13 UE-01, rc=1, 9 files), the cross-gate run moved EARLY on the firing state (fence_import_check, codeblock_syntax_scan, deprecated_scan, kwarg_lint, fence_variant_check all rc=0 - single ownership), the hard wiring (quality_report printed result: FAIL naming unsafe_exec_scan, 13 findings, with every other fleet row green - whole-fleet single ownership), the aggregate (a planted bare eval lands exactly 14), the sandboxed partition (the same plant in two-argument form stays 13 - explicit restricted globals are out of the class), the method-call partition (a planted m.eval() Attribute call stays 13 - PyTorch eval-mode never enters), the marker escape (a bare plant under a # DANGEROUS: line stays 13 - the marked-teaching exemption), and the post-drain control (0 findings rc=0, sandbox census 18 eval + 7 exec). One transport lesson: the drain-prep dry run caught the gate printing fence-relative off-by-one line numbers (base + node.lineno - 1 with the fence-open line as base) before any edit landed - fixed to the true file line and re-verified 13 before the drain. Tool gate - the fleet grows 117 -> 118 total, 111 -> 112 hard, and script_hygiene_scan's inventory grows 136 -> 137 |
| unsafe_deserialize_scan | UD-01..03 | unsafe deserialization in python fences - UD-01: torch.load() without an explicit weights_only keyword teaches the pre-2.6 idiom; a checkpoint file IS a pickle payload (unpickling executes embedded __reduce__ bytecode) and torch >= 2.6 flipped the default to weights_only=True, which the corpus itself teaches (2300 PRACTICE + PREREQUISITES: "weights_only=True is the torch >= 2.6 default; passing it explicitly") - while 10 sites across 7 files taught the bare form (LAB-006 solution, 2200-PRACTICE x2, 2301, 2302 x2, 2306, 2402 x2, 2402-PRACTICE - all verified safe to pin before the drain: 2301's config is dict[str, Any], 2402:258 saves a pure state_dict, the LAB-006/2200 checkpoints are plain-container dicts). UD-02: pickle.load/loads plus the cPickle/dill/cloudpickle/marshal/joblib .load(s) siblings and shelve.open - the corpus's own security chapter vouches the class (7500-security's scanner regex pickle\.loads?/marshal\.loads?/shelve\. and its rule table "pickle": "Serialization (can execute code)") while a serving-cache fence taught pickle.load as the go-to response-cache idiom - drained to JSON the same tick (json.load/json.dump, binary -> text opens, .pkl -> .json cache suffix, the dead import pickle removed, the prose claim updated to JSON files). UD-03: yaml.load() without Loader= - the default constructor resolves arbitrary python objects (yaml RCE); born-at-zero, the corpus already teaches yaml.safe_load/SafeLoader everywhere, the cell owned preemptively (QI-18 precedent). Out of the class by construction: kwarg presence (ANY value - 2200-PRACTICE teaches weights_only=False WITH the 2.6-default explanation, the kwarg itself is the escape), write-side calls (torch.save, pickle.dumps/dump), json.load/json.dump (the safe drain family), .load() methods on other bases, string mentions (AST Call walk, not text), and a fence carrying a danger marker (DANGEROUS/Wrong:/unsafe/vulnerab, casefold - the sibling unsafe_exec_scan's escape). Negatively tested across 7 runs - the born fire (exactly 11: 10 UD-01 + 1 UD-02, rc=1, 7 files; UD-03 silent born-at-zero), the cross-gate run moved EARLY on the firing state (unsafe_exec_scan, fence_import_check, codeblock_syntax_scan, deprecated_scan, kwarg_lint, fence_variant_check all rc=0 - single ownership), the hard wiring (quality_report printed result: FAIL naming unsafe_deserialize_scan, 11 findings; the same first run tripped MC-01 twice - the CHANGELOG bold count claim lagging the gate count - and QT-01, both cured by this row and the bold-claim move BEFORE the all-green re-run), the aggregate (a planted bare torch.load + bare yaml.load + bare pickle.loads land exactly 14 - UD-01 at 11 / UD-02 at 2 / UD-03 at 1, plant lines at true file lines), the kwarg partition (the same torch plant carrying weights_only=True drops the total to exactly 13 with UD-01 back at 10), the out-of-class partition (a planted Loader=yaml.SafeLoader yaml.load + json.load + pickle.dumps all stay silent - 11 unchanged), and the marker escape (a bare pickle.loads under a # DANGEROUS: line stays silent - 11 unchanged), mutants restored byte-exact between runs. Tool gate - the fleet grows 118 -> 119 total, 112 -> 113 hard, and script_hygiene_scan's inventory grows 137 -> 138 |
| unsafe_shell_scan | US-01/02/03 | unsafe shell execution in python fences - US-01: a subprocess run/call/check_call/check_output/Popen call with shell=True hands the command string to /bin/sh, so any metacharacter in an interpolated value (;, $(), backticks, &&) breaks out of the intended command - PROJECT-001's tool executor validated cmd_parts[0] against an allowlist and then ran the raw string through the very shell it never inspected, and 1200-virtualization PRACTICE's GPU-diagnostics helper piped grep through the same shell=True; US-02: os.system/os.popen (popen2/3/4 siblings) - born-at-zero, and the corpus vouches the class itself (7500-security's scanner regexes name r"os\.system" and r"os\.popen" among its dangerous patterns, its rule table says "subprocess": "Process creation"); US-03: subprocess.getoutput/getstatusoutput - shell=True by construction under a convenience name, born-at-zero, the cell owned preemptively (QI-18 precedent). The affirmative vouch is 7202-code-interpreter's safe list form subprocess.run([sys.executable, "-I", "-c", code], ...) - the argv list never reaches a shell. Out of the class by construction: the list form (no shell kwarg), shell=False and any non-constant shell value (only the literal True enters), os.exec*/os.spawn* (process image, no shell), method calls on other bases (runner.run, m.system - Attribute chains the Name test never matches), string mentions (AST Call walk, not text), and a fence carrying a danger marker (born census: phase7-practice's execute_bash fence is marked by its own "# Dangerous commands to block" comment). Born census read 24088 python-fence calls fence-aware = exactly 2 findings across 2 files, both US-01 - drained same tick: PROJECT-001's execute_shell_command now runs the validated cmd_parts list (no shell, docstring updated to "argv list - no shell"), and 1200-PRACTICE's diagnostics fence went list-form end to end (run_command(argv) helper, pipes replaced by Python-side filtering, the f-string qm config caller became ["qm", "config", vm_name], and the for d in /sys... shell compound became a pathlib sysfs walk). Negatively tested across 9 runs - the born fire (exactly 2 US-01, rc=1, 2 files, true file lines 960/262; US-02/US-03 silent born-at-zero), the cross-gate run moved EARLY on the firing state (unsafe_deserialize_scan, unsafe_exec_scan, fence_import_check, codeblock_syntax_scan, deprecated_scan, kwarg_lint, fence_variant_check all rc=0 - single ownership), the aggregate (a planted shell=True run + os.system + getoutput land exactly 5 - US-01 at 3 / US-02 at 1 / US-03 at 1, 3 files), the shell=False partition (planted shell=False run+call stay silent - 2 unchanged), the list-form partition (planted [sys.executable, "-I", "-c", code] + ["ls", "-l"] stay silent - 2 unchanged), the marker escape (a planted os.system under a # DANGEROUS: line stays silent - 2 unchanged), the other-base partition (planted runner.run(shell=True) + pkgtools.system stay silent - 2 unchanged), the hard wiring (quality_report printed result: FAIL naming unsafe_shell_scan on the firing state - the docs trio landed BEFORE the all-green re-run, the tick-646 MC-01 wiring-order lesson pre-applied), and the post-drain control (0 findings rc=0), mutants restored byte-exact between runs. Tool gate - the fleet grows 119 -> 120 total, 113 -> 114 hard, script_hygiene_scan's inventory grows 138 -> 139, and gate_robustness_audit's hostile roster auto-joins 130 -> 131 |
| broad_except_scan | BE-01/BE-02 | bare/broad except with a pass-only body in python fences - BE-01: a bare except: whose body is only pass catches KeyboardInterrupt, SystemExit and GeneratorExit alongside every programming error and discards all of them silently - the reader ships an agent whose Ctrl-C looks like a no-op; BE-02: except Exception: (or BaseException, tuple members included) with a pass-only body - the same silent swallow one level down the MRO. The corpus vouches the class itself: 6304-GraphRAG's own comment teaches "a bare except would also swallow KeyboardInterrupt and NameError silently", LAB-004 marks the swallowed-output path, and the affirmative narrow forms are taught corpus-wide (6304's except (json.JSONDecodeError, ValueError): tuple, the json.JSONDecodeError narrows at LAB-013/LAB-014/7500-PRACTICE/6200-PRACTICE, LAB-012's except KeyboardInterrupt:). Out of the class by construction: a narrow named exception with a pass-only body (the corpus-taught idempotent/expected case - the handler names what it forgives), a bare/broad handler whose body does anything besides pass (log, re-raise, recover - the walk demands exactly one ast.Pass; comments are not AST nodes, so a comment next to pass does not rescue a swallow), the as e binding (irrelevant to the class), string mentions (the walk is ast.ExceptHandler, not text), a fence carrying a danger marker (DANGEROUS/Wrong:/unsafe/vulnerab, casefold - the sibling unsafe_* escape), and notebooks (.ipynb outside the md universe). Born census read the python-fence except handlers fence-aware = exactly 5 findings across 5 files (4 BE-01: VOLUME-7's GPU power probe, LAB-007's collection bootstrap, 7200-PRACTICE's tool-selector JSON parse, 7103's qdrant memory bootstrap; 1 BE-02: 6103-HNSW's delete-before-create teardown) - drained same tick to the narrow forms the corpus itself teaches (VOLUME-7 to except pynvml.NVMLError:, the two qdrant bootstraps and the teardown to except (ValueError, UnexpectedResponse): with the exceptions import added, 7200-PRACTICE to except (json.JSONDecodeError, TypeError): with the missing import json added). Negatively tested across 9 runs - the born fire (exactly 5, rc=1, 5 files, true file lines), the cross-gate run moved EARLY on the firing state (unsafe_shell_scan, unsafe_deserialize_scan, unsafe_exec_scan, fence_import_check, codeblock_syntax_scan, deprecated_scan, kwarg_lint, fence_variant_check all rc=0 - single ownership), the aggregate (a planted bare except + Exception + BaseException land exactly 8 - BE-01 at 5 / BE-02 at 3, 6 files), the narrow partition (planted except ValueError: pass + the 6304 tuple form stay silent - 5 unchanged), the body partition (planted bare-except-with-log + except Exception: raise stay silent - 5 unchanged), the marker escape (a planted bare except under a # DANGEROUS: line stays silent - 5 unchanged), the string mention (a prose "except: pass" never reaches the walk - 5 unchanged), the hard wiring (quality_report printed result: FAIL naming broad_except_scan on the firing state - the docs trio landed BEFORE the all-green re-run, the tick-646 MC-01 wiring-order lesson pre-applied), and the post-drain control (0 findings rc=0) with all touched fences ast-parse-verified (the gate skips SyntaxError fences silently). The drain moved two exec-census line-keys (LAB-007's ENV-GAP:production_rag row 920 -> 921 and 6103's SIDE-EFFECT row 370 -> 371 - the added import lines shift fence lines while outcomes stay identical, verified same-key class changes: [] and row-set changes: 0 across the whole census diff) - fence_exec_gate --update re-blessed after the diff review, back to 0 dirty - and the --update itself dropped the two adjudication notes it carried at the old keys (the bad rows moved but the notes map did not follow), so the final fleet's only red was census_note_gate CN-01 x2 at the new lines - the notes were restored byte-identical at 921/371 and census_note_gate read 551 rows / 551 notes / 260 files, 0 findings. Tool gate - the fleet grows 120 -> 121 total, 114 -> 115 hard, script_hygiene_scan's inventory grows 139 -> 140, and gate_robustness_audit's hostile roster auto-joins 131 -> 132 |
| cypher_interp_scan | CI-01/CI-02 | Cypher interpolation into the positions $parameters cannot fill - CI-01: label/rel-type position, the f-string literal immediately before the interpolated value ending with a colon (CREATE (n:{label}, [r:{rel_type}]): structurally un-parameterizable, 6301-Neo4j vouches the class ("Values are bound with $parameters, never interpolated into the string - an entity name containing quotes or Cypher metacharacters cannot inject the query"); CI-02: variable-length path-bound position, the literal ending with .. or * (-[*1..{max_depth}]): "Parameters cannot set variable-length path bounds in Cypher" (6304), so the corpus teaches int-cast-then-interpolate (hop_bound = max(1, int(depth)), 6304 at 178/325/456). Out of the class by construction: the parameterized affirmative form (a plain non-f query string carrying $parameters - 6304's find_shortest_path never enters the walk), colon-plus-space literals (VOLUME-7's agent prompts "Design architecture for: {feature}" are prompt text, not label positions), the LIMIT position (a parameterizable value position - SOL-LAB-005's LIMIT {limit} stays silent), int-cast-defended bounds (the interpolated expression int()/max(..., int()) shaped or one hop to an assignment of that shape - all three 6304 hop_bound sites silent), allowlist-defended schema names (the enclosing function carries a membership test on the interpolated name), string mentions (the walk is ast.JoinedStr/ast.Call, not text), danger-marked fences (DANGEROUS/Wrong:/unsafe/vulnerab, casefold), and notebooks (.ipynb outside the md universe). Delivery resolved fence-aware with one-hop query-variable resolution - nearest PRECEDING assignment in the same function scope (the census draft's flat per-fence dict let a second query = f""" overwrite the first and hid create_relationship's site). Born census read the python-fence session.run/execute_query calls = exactly 5 findings across 2 files (CI-01 x2: phase6-PRACTICE's create_entity {label} direct + create_relationship {rel_type} via a query variable; CI-02 x3: find_connections' uncast {max_depth} + LAB-005's two -[*1..{max_hops}]/-[*1..{max_depth}] multi-hop explorers the direct-form surface grep missed - explore_graph interpolates an HTTP query param straight into a path bound), all at true file lines (fence content line 1 = fence-open line + 1) - drained same tick to the corpus's two idioms across 6 hunks: phase6-PRACTICE's KnowledgeGraph grew ALLOWED_LABELS/ALLOWED_REL_TYPES class constants with membership guards raising ValueError on the schema-name positions and the int-cast on find_connections' bound, LAB-005's graph_search/explore_graph int-cast their bounds. Negatively tested across 9 runs - the born fire (exactly 5, rc=1, 2 files), the cross-gate run moved EARLY on the firing state (unsafe_shell_scan, unsafe_deserialize_scan, unsafe_exec_scan, broad_except_scan, fence_import_check, codeblock_syntax_scan, deprecated_scan, kwarg_lint, fence_variant_check all rc=0 - single ownership), the aggregate (a planted direct {label} + planted uncast path bound land exactly 7 - CI-01 3 / CI-02 4, born baseline added), the cast partition (direct max(1, int(d)) + one-hop hop_bound plants silent - 5 unchanged), the allowlist partition (a guarded label plant silent - 5 unchanged), the out-of-class partition (parameterized Constant + LIMIT {limit} + colon-space prompt silent - 5 unchanged), the marker escape (a bare plant under # DANGEROUS: silent - 5 unchanged), the string mention (a plain string never reaches the Call walk - 5 unchanged), and the hard wiring (the first fleet run on the firing state named cypher_interp_scan AND tripped fence_exec_gate with 2 changed rows - LAB-005's 696/882 CODE-SIGNAL:KeyError -> SIDE-EFFECT, environmental drift since the tick-648-era bless: the localhost GraphRAG/neo4j stack that answered error bodies at bless time (result['answer'] KeyError) is gone today (ConnectionError -> the SIDE-EFFECT family), and the rows' own notes already read "parses the response of a localhost GraphRAG server that is not running in the QA environment; service requirement" - SIDE-EFFECT is the truer record, adjudicated by the gate's own --update after the diff review verified same-key class changes only, and the --update dropped the two notes (the tick-648 note-drop, repeated) so they were restored byte-identical; the re-run then printed result: FAIL naming cypher_interp_scan - exactly 1 FAIL with every other fleet row green; the firing state re-created for the wiring run by stashing the two drained files, the docs trio landed BEFORE the all-green re-run, the tick-646 MC-01 wiring-order lesson pre-applied) - the NEG plants lived in a scratch fence deleted after every run (no real-file mutants, nothing to restore); the post-drain green was fence-compile-verified (all python fences in both drained files ast-parsed: phase6-PRACTICE 13/14 with the 1 failure the pre-existing line-42 starter fragment already accepted fleet-wide, LAB-005 5/5). Tool gate - the fleet grows 121 -> 122 total, 115 -> 116 hard, script_hygiene_scan's inventory grows 140 -> 141, and gate_robustness_audit's hostile roster auto-joins 132 -> 133 |
| mutable_default_scan | MD-01/MD-02 | the mutable-default-argument shared-state hole - MD-01: a mutable literal default (ast.List/Dict/Set in a function signature's defaults - def f(x=[]), def f(x={}), def f(x={1, 2})): the default object is created once at def time and shared across every call, so any mutation (append, update, add) writes into every other call's view; MD-02: the same class one step removed, a zero-arg list()/dict()/set() constructor call as the default. Vouch-by-refusal: the stdlib the corpus teaches with rejects the exact form - dataclasses raises ValueError at class-creation time (mutable default ... is not allowed: use default_factory) and the corpus teaches the safe idiom field(default_factory=list/dict/...) in 15+ places (LAB-013 x3, LAB-014 x4, 2301, 2303, 2306 x2, 6502 x2, 7103, 7302) - yet the same corpus signed 7 plain functions with literal mutable defaults. Out of the class by construction: immutable literal defaults (tuple literals never enter), the None-sentinel affirmative idiom (x=None + if x is None: x = [] - the corpus-taught escape for plain functions, the sibling of dataclass default_factory), field(default_factory=list) (an Attribute call on a dataclass field, not a function default), call defaults with arguments (datetime.now(), threading.Event() - MD-02 demands a zero-arg Name constructor of exactly list/dict/set), lambda: [] (each call invokes it, a fresh list per call) and comprehension defaults (corpus boundary census 0), string mentions (the walk is ast.FunctionDef/AsyncFunctionDef args.defaults/kw_defaults, not text), danger-marked fences (DANGEROUS/Wrong:/unsafe/vulnerab, casefold - the sibling unsafe_* escape), and notebooks (.ipynb outside the md universe). The class is FORM-based per the BE-01 precedent: all 7 born bodies were read-only today, but the form is the hazard - the next editor appending a line inside that body inherits the shared-object trap. Born census read every function signature in every md python fence fence-aware = exactly 7 findings across 7 files, all MD-01 (6 List + 1 Dict; MD-02 silent born-at-zero): SOL-LAB-006's SimpleNN.__init__(hidden_sizes=[256, 128]), 4302's insert_fake_quant(target_layers=['Linear', 'Conv2d']), 4304's progressive_qat(epochs_per_bit=[5, 5, 10]), 4306's skip_layer_quantization(layer_types=['LayerNorm', 'Softmax']), 5100-PRACTICE's apply_lora_to_model(target_modules=["c_attn"]), 6300-PRACTICE's benchmark_context_length(lengths=[512, ...]), VOLUME-6's fuse_graphrag_context(weights={"graph": 0.3, ...}) - all at true file lines (fence content line 1 = fence-open line + 1) - drained same tick to the None-sentinel idiom across 7 files/9 hunks. Negatively tested across 9 runs - the drained-tree control (0 findings rc=0), the aggregate (a planted []/ {}/ {1, 2} + list()/dict()/set() sextet lands exactly 6 - MD-01 x3 / MD-02 x3), the MD-02 trio (exactly 3), the None-sentinel partition (silent), the call-with-args partition (silent), the lambda+tuple partition (silent), the marker escape (a bare [] under # DANGEROUS: silent), the string mention (prose def f(x=[]) never reaches the walk), and the kw-only in-class probe (def f(*, x=[]) fires exactly 1 - kw_defaults are walked); the post-drain green was also fence-compile-verified (the gate silently skips SyntaxError fences - a broken drain would read falsely green - so all 79 python fences across the 7 drained files were ast-parsed: 6/6 + 12/12 + 9/9 + 18/18 + 7/7 + 7/7 + 20/20). Census collateral: the +2-line guard inserts moved 8 accepted exec-census rows and --update re-blessed after the diff review (7 same-class moves + 6300's 434 -> 436 the documented FLAKY_FAMILY flip CODE-SIGNAL:RuntimeError -> TIMEOUT), the moved notes restored byte-identical (the tick-648 note-drop, repeated), and the adjudication exposed a runner truth: the 6300 file-level TIMEOUT at 436 killed the census child before CENSUS_JSON printed (the census docstring's own "the last HB fence swallowed the runner's output"), swallowing the true rows 19 (SIDE-EFFECT) and 351 -> 353 (ENV-GAP:sentence_transformers - the package verified absent) so two consecutive re-executions read them absent; both truths re-verified and the rows restored at the true keys with byte-identical notes as the union baseline {19, 353, 436} - census steady at 551 rows / 551 notes / 260 files, census_note_gate 0 findings |
| open_encoding_scan | OE-01/OE-02 | text-write locale-default holes in python fences - OE-01: a builtin open() in text write mode (a positional or mode= string constant carrying w/a/x/+ and no b) without an explicit encoding= kwarg writes through locale.getpreferredencoding(False) (cp1252/cp1254 on Windows, an ASCII-ish locale on CI), so non-ASCII content silently mojibakes or raises UnicodeEncodeError; OE-02: the same class one step removed, Path.write_text(data) without encoding= - PEP 597 added the EncodingWarning, PEP 686 flips the default to UTF-8 only in 3.15, so every fence that teaches a text write today teaches a latent portability bug. The corpus vouches the safe idiom itself: encoding="utf-8" in 24 places across labs/solutions/tutorials/phases - yet the same corpus signed 29 bare text-write opens + 2 bare write_texts. Out of the class by construction: encoding= presence (ANY value - the kwarg itself is the contract), binary modes (b in mode never enters), read-only opens (mode absent or r), non-constant modes (a variable mode is unresolvable - only string constants enter), Path.write_bytes (the binary sibling), method .open() calls on other bases (born census: the only two are PIL Image.open), string mentions (the walk is AST, not text), a fence carrying a danger marker (DANGEROUS/Wrong:/unsafe/vulnerab, casefold - the sibling unsafe_* escape), and notebooks (.ipynb outside the md universe). Born census read every python fence in every md file fence-aware = exactly 31 findings across 16 files (29 OE-01 + 2 OE-02, 0 danger-marked): ORGANIZATION-GUIDE's SITEMAP writer, CHEAT-SHEET-002's two, LAB-003's four, SOL-LAB-001's self.file_path, PROJECT-001's write_text, PROJECT-005's two, TUTORIAL-000's three, TUTORIAL-010's one, 1500-PRACTICE's dashboard, 2301's write_text, 2302's one, 2300-PRACTICE's two, 2401's four open(out,'w'), 2400-PRACTICE's one, 5104's one, 5300-PRACTICE's six - all at true file lines (fence content line 1 = fence-open line + 1, the tick-645 lesson pre-applied) - drained same tick to the corpus's own encoding="utf-8" idiom across 16 files/31 splices, every splice in-line before the call's closing paren (zero line shifts; delivered by an instrumented gate-identical line-walker after two reverted draft predecessors - a missing re.M and an off-by-one fence base - and post-drain fence-compile-verified 195/195 so the gate's silent SyntaxError skip cannot read falsely green). Negatively tested across 11 runs - the born fire (exactly 31, rc=1, 16 files), the cross-gate run moved EARLY on the firing state (mutable_default_scan, broad_except_scan, cypher_interp_scan, unsafe_shell_scan, unsafe_deserialize_scan, unsafe_exec_scan, fence_import_check, codeblock_syntax_scan all rc=0 - single ownership), the aggregate (a planted w/a/x/+/r+ quartet + a write_text plant land exactly 36 - born 31 + 5), the encoding= partition (encoding= with ANY value silent - 31 unchanged), the binary partition (wb/rb+ silent - 31 unchanged), the read partition (open(p) and 'r' silent - 31 unchanged), the method partition (a planted img.open(p, 'w') + write_bytes silent - 31 unchanged), the marker escape (a bare plant under # DANGEROUS: silent - 31 unchanged), the string mention (a string literal never reaches the walk - 31 unchanged), and the non-constant-mode partition (a variable mode silent - 31 unchanged). Census collateral: the drain is exec-neutral but the born re-execution exposed two environmental TIMEOUT drifts, both reproduced deterministically on idle hardware past the gate's one-retry flake policy and adjudicated by the gate's own --update after the fence truths were re-verified by content - CHEAT-SHEET-002:183 TIMEOUT (new: the file's heartbeat moved here from 204, a multi-GB Mistral HF-hub pull exceeding the 90s census budget by design, the class 204's note already described) and SOL-LAB-001:108 EXIT-CALL -> TIMEOUT (the fence's __main__ path runs uvicorn.run(app, ...) - a live server start blocking past the 90s budget by design, the server-start hang family), and the --update swallowed the two tail rows exactly per the tick-650 lesson (204's TIMEOUT + its note, 478's ENV-GAP:storage + its note - the file-level budget death truncated execution before them); the union baseline restored both swallowed truths byte-identical and added two honest notes at 183/108 - census steady at 552 rows / 552 notes / 260 files, census_note_gate 0 findings. Wiring: the first firing-state fleet run landed pre-wiring and held green across all 123 then-known gates (fence_exec_gate PASS - 0 new defects across the born re-execution, the union baseline held; script_hygiene already 143 and gate_robustness_audit already 135 - the new script auto-joins both before any GATES wiring); the trio then landed on the still-firing tree and the re-run printed result: FAIL naming open_encoding_scan - exactly 1 FAIL with every other fleet row green; the firing state was created by stashing the 16 drained files (the tick-646 wiring-order lesson applied). Tool gate - the fleet grows 123 -> 124 total, 117 -> 118 hard, script_hygiene_scan's inventory grows 142 -> 143, and gate_robustness_audit's hostile roster auto-joins 134 -> 135 |
| http_timeout_scan | RT-01/RT-02 | unbounded HTTP waits in python fences - RT-01: a requests.<verb>() call (get/post/put/delete/patch/head/options/request) without a timeout= kwarg - requests sets NO default timeout, the underlying socket read blocks indefinitely, so one dead or slow peer hangs the caller forever (a monitor loop that stops monitoring, a web worker that never returns, a batch job stuck mid-flight accumulating hung threads; the requests project's own docs carry the warning and Python's socket default is None - silence is not a policy, it is an unbounded wait); RT-02: the same call carrying verify=False - TLS certificate verification disabled, the MITM door opened, born-at-zero, owned preemptively per the US-02/US-03 precedent. The corpus vouches the class itself: timeout= taught in 30+ places - timeout=5 health pings (LAB-001:151, phase1-practice:259), timeout=120 LLM-inference calls (SOL-LAB-001:227, LAB-001:200, LAB-002, LAB-003), timeout=30 general API calls (LAB-013:855), timeout=self.timeout on the Session form (LAB-013), timeout=60 (PROJECT-001) - yet the same corpus signed 42 bare calls, in one case the vouched 5-second form and the bare form of the very same endpoint 9 lines apart (LAB-001 /api/tags at 151 vs 160). Out of the class by construction: timeout= presence (ANY value - the kwarg itself is the contract, the encoding= rule of the sibling open_encoding gate), httpx calls (the corpus's single httpx site carries a client-level timeout=300.0 and httpx defaults every request to 5-second timeouts - the asymmetry with requests' None is exactly the lesson; no httpx finding to own), Session-form calls (the corpus's single Session site carries timeout=self.timeout at both call sites; walking session variables is a one-hop resolution the born census never needed - out of scope by construction, not by blindness, the census read every .get/.post-shaped call and the only session variable was that one), from requests import get rebindings (born census read zero - the corpus imports the module form in all 41 requests files), other-object .get/.post calls (dict.get, cache.get, agent executor.execute - the walk demands a bare requests Name base, not an Attribute chain), string mentions (the walk is AST, not text), a fence carrying a danger marker (DANGEROUS/Wrong:/unsafe/vulnerab, casefold - the sibling unsafe_* escape), and notebooks (.ipynb outside the md universe, the whole unsafe_*/fence family scans docs/**/*.md only). Born census read every requests call in every md python fence fence-aware = exactly 42 findings across 15 files, all RT-01, 0 danger-marked, 0 RT-02 - drained same tick to the corpus's own three-value idiom by call class: 120 on the twenty LLM-inference sites, 5 on the five status/ping sites, 30 on the seventeen general API sites, every splice in-line after the call's last-argument end position so zero lines shift (delivered by a gate-identical line-walker whose first run caught the drain's own coordinate bug - a multi-line call's splice lands on its last-arg line, not its start line, so the spec-lookup set and the splice set must be tracked separately - and post-drain fence-compile-verified with no NEW syntax failures per drained file so the gate's silent SyntaxError skip cannot read falsely green; git numstat 42 add / 42 del, exec-neutral by construction - the census collateral it did produce is adjudicated below). Negatively tested across 7 runs - the born fire (exactly 42, rc=1, 15 files), the cross-gate run moved EARLY on the firing tree (mutable_default_scan, open_encoding_scan, broad_except_scan, cypher_interp_scan, unsafe_shell_scan, unsafe_deserialize_scan, unsafe_exec_scan, fence_import_check, codeblock_syntax_scan, deprecated_scan, fence_variant_check all rc=0 - single ownership), the aggregate (a planted bare get + a timeout-carrying verify=False plant land exactly 44 - born 42 + 2, the RT-02-with-timeout plant firing RT-02 only proving the code separation), the timeout partition (planted timeout=0.5 / timeout=None / timeout=(3, 20) / verify=True all silent - 42 unchanged), the other-base partition (planted httpx.get, Session-form s.get, dict.get, runner.get silent - 42 unchanged), the string mention (a prose string never reaches the walk - 42 unchanged), and the marker escape (a bare plant under # DANGEROUS: silent - 42 unchanged); the NEG plants lived in a scratch fence deleted after every run (no real-file mutants, nothing to restore). Census collateral - the drain is exec-neutral but the born re-execution on the firing tree exposed one environmental drift: LAB-004:894 CODE-SIGNAL:KeyError -> SIDE-EFFECT (the fence's test runner POSTs to a localhost:8002 agent server that answered error bodies at the tick-651 bless and is gone today, so the connect now fails with ConnectionError - the SIDE-EFFECT family; the row's own note already reads "parses the response of a localhost agent server that is not running in the QA environment; service requirement", the tick-649 LAB-005 localhost-drift precedent), adjudicated by the gate's own --update after content verification - and the --update dropped the flipped row's note (the retention filter demands a class match) and swallowed two unreproduced rows the same truncated executions never reached (CHEAT-SHEET-002:204 TIMEOUT + note, SOLUTION-LAB-001:478 ENV-GAP:storage + note - the file-level budget death cutting execution before them, the tick-650 lesson repeated verbatim), so the union baseline restored all three truths byte-identical (the 894 note restored ahead of the stash-pop re-execution whose class re-verifies through the retention filter, the two swallowed rows+notes restored after the post-pop re-bless settles - the tick-651 precedent), census back to 552 rows / 552 notes / 260 files. Wiring - the first firing-state fleet run named http_timeout_scan AND tripped the two wiring-order artifacts MC-01 x2 + QT-01 with fence_exec_gate carrying the environmental row adjudicated above (exactly the tick-646 pattern); the docs trio landed on the still-firing tree and the re-run printed result: FAIL naming http_timeout_scan - exactly 1 FAIL with every other fleet row green; tool gate - the fleet grows 124 -> 125 total, 118 -> 119 hard, script_hygiene_scan's inventory grows 143 -> 144, and gate_robustness_audit's hostile roster auto-joins 135 -> 136 (0 crash 0 timeout) |
| sql_interp_scan | SQ-01/SQ-02 | SQL value interpolation into execution calls in python fences - SQ-01: an f-string carrying SQL text passed to execute/executemany/executescript/read_sql/read_sql_query - the interpolated value is merged into the query text client-side, before the driver ever sees it, so no placeholder can bind it (a value containing a quote closes the literal and the rest of the string executes as SQL; a direct cursor.execute(f"SELECT ... {name}") and a f-string built into a query variable both fire); SQ-02: the same client-side merge through the non-f forms - percent-format ("... %s" % (uid,) merges the value BEFORE execution despite the placeholder in the text - true binding passes the tuple as a second argument), .format(), and concatenation whose fragments carry no %s/? placeholder ("SELECT ... name = '" + name + "'"). The corpus vouches the class by refusing it: born census read every execution-call query argument in every md python fence fence-aware with one-hop query-variable resolution = 36 execution calls, 0 interpolated (27 Constant DDL/CRUD + 9 placeholder-carrying) - parameterized SQL everywhere, the repository form cursor.execute(sql, params or ()) (LAB-013) and the placeholder-carrying builder query += " AND created_at <= %s" + params.append(...) + execute(query, params) (7402-Agent-Memory-Implementation :535-544, the taught idiom). Out of the class by construction: constant queries (a Constant never enters the walk), the params second-argument form, the placeholder-carrying builder chain (placeholders anywhere in the chain mean values travel the binding channel - the 7402 idiom stays silent), non-SQL execute calls (sandbox code strings, tool names, prompts - the walk only enters when the string's literal parts carry SQL vocabulary: select/insert/update/delete/create/drop/alter/from/where/into/values/order by/group by, casefold), string mentions (the walk is AST, not text), a fence carrying a danger marker (DANGEROUS/Wrong:/unsafe/vulnerab, casefold - the sibling unsafe_* escape), and notebooks (.ipynb outside the md universe); attr-disjoint from cypher_interp_scan by construction (EXEC_ATTRS vs RUN_ATTRS - single ownership). Zero-drain: the class froze at the rule the moment it was named - born census 0/36, hard from birth (the EC-03/fence_lang shape), no md edits, no drain, no census churn. Negatively tested across the scratch-fence ledger - the born control (0 findings, rc=0), the aggregate (six planted forms land exactly 6 - SQ-01 x3 / SQ-02 x3, clean code separation), the silent partitions (canonical params form, the 7402 builder copied verbatim, sandbox f-string, registry tool-name f-string, static-concat builder, string mention, executescript static DDL, prose mention - all silent), the marker escape (a planted f-string under # DANGEROUS: silent), and the cross-gate run (cypher_interp_scan, unsafe_exec_scan, unsafe_deserialize_scan, unsafe_shell_scan, fence_import_check, codeblock_syntax_scan, kwarg_lint, http_timeout_scan, open_encoding_scan all rc=0 on the same tree - single ownership); the plants lived in a scratch fence deleted after every run (no real-file mutants, nothing to restore). Tool gate - the fleet grows 125 -> 126 total, 119 -> 120 hard, script_hygiene_scan's inventory grows 144 -> 145, and gate_robustness_audit's hostile roster auto-joins 136 -> 137 |
| crypto_hygiene_scan | CH-01/CH-02 | security-material crypto hygiene in python fences - CH-01: a randomness producer building security material - random is a Mersenne Twister whose output is predictable from a handful of observed values, so api_key = random.choice(alphabet), token = random.randbytes(16), salt = random.getrandbits(128) or def generate_token(): return random.getrandbits(128) is forgeable (Python's answer is the secrets module - the OWASP cryptographically-secure-randomness rule); CH-02: collision-broken md5/sha1 hashing security material - two chosen inputs share a digest, so a hashed password/token can be swapped, not just guessed (integrity wants sha256, password storage wants PBKDF2/scrypt/argon2). The corpus vouches the affirmative forms itself: TUTORIAL-013-AI-Security builds key ids with secrets.token_hex(8/32) and hashes key secrets with hashlib.sha256(key_secret.encode()) (416-442), and the whole 7500-security phase hashes with sha256 (7501/7502/2302/2401) - while its md5 calls carry the corpus's own teaching "md5 here is BUCKETING, not security" (TUTORIAL-014:663-664, 2304 "(MD5 is fine here - this is bucketing, not a crypto use.)"). Out of the class by construction: the walk fires only when the security vocabulary attaches AT THE CALL SITE (an enclosing assign target, string-Constant or Name arguments, keyword names, or the enclosing def name) - the fence-level vocabulary probe read 24 false positives (5300-PRACTICE template sampling, PROJECT-003 dropout, 2304 canary randint) and was the census design lesson; non-security randomness (the corpus's 39 random.* calls are dropout masks, sampling, shuffling and canary rolls), the 15 md5 dedup/bucketing calls (vocabulary-free digest inputs), secrets.* and hashlib.sha256/512 (Attribute bases never match the walk), random.SystemRandom (cryptographically secure), non-producer calls (random.seed(42) generates nothing), np.random.* (61 sites - the walk demands a bare random Name base), from-import rebindings (born census 0), string mentions (the walk is AST, not text), a fence carrying a danger marker (DANGEROUS/Wrong:/unsafe/vulnerab, casefold - the sibling unsafe_* escape), and notebooks (.ipynb outside the md universe). Zero-drain: born census tick-654 read every random.*/hashlib.md5/sha1 call in every md python fence fence-aware with call-site attachment = 0 findings - hard from birth, owned preemptively per the US-02/US-03 and RT-02 precedent. Negatively tested across the scratch-fence ledger - the born control (0 findings rc=0), the aggregate (six planted forms land exactly 6 - CH-01 x3 / CH-02 x3, clean code separation, all true file lines), the silent partitions (template choice, np.random.rand, seed, SystemRandom+rng.random, secrets.token_hex, md5-no-vocab dedup form, sha256-with-vocab affirmative, canary randint, no-vocab def - all silent), the marker escape (a planted pair under # DANGEROUS: silent), the string mention (prose never reaches the walk), and the cross-gate run (cypher_interp_scan, unsafe_exec_scan, unsafe_deserialize_scan, unsafe_shell_scan, fence_import_check, codeblock_syntax_scan, kwarg_lint, http_timeout_scan, open_encoding_scan all rc=0 on the same tree - single ownership); the plants lived in a scratch fence deleted after the run (no real-file mutants, nothing to restore). Wiring - the first wired fleet run tripped table_lint TL-01 + table_scan TB-01 on this row itself (the cell text carried an unescaped pipe - the born-census spelling - splitting the row to 4 cells), fixed to the slash spelling before the passing re-run; tool gate - the fleet grows 126 -> 127 total, 120 -> 121 hard, script_hygiene_scan's inventory grows 145 -> 146, and gate_robustness_audit's hostile roster auto-joins 137 -> 138 |
| insecure_temp_scan | TF-01/TF-02 | insecure temp-file creation in python fences - TF-01: tempfile.mktemp() - the name is returned before the file exists, so between the call and the write another process can create the path first (a symlink pointing elsewhere) or squat it, the TOCTOU race class (Bandit B306); the affirmative atomic forms create together with the name: tempfile.mkstemp/NamedTemporaryFile open the fd at creation time and tempfile.TemporaryDirectory hands out a private directory; both the module-attribute call and the bare-Name rebinding (from tempfile import mktemp) enter the walk; TF-02: a string constant starting with /tmp, /var/tmp or /dev/shm passed DIRECTLY to open, os.open, os.mkdir, os.makedirs or os.mknod creates content at a predictable, world-writable location on multi-user hosts - another user can pre-create or overwrite it (Bandit B108's hardcoded-tmp-location class, evaluated at the creation call). The corpus vouches the safe family itself: mkdtemp x6 (2401/2402/5302/PRACTICE x2/phase7-practice), NamedTemporaryFile x7 (LAB-012, PROJECT-001, VOLUME-7, phase7-practice), TemporaryDirectory (2403 imports it) - and never teaches mktemp (0 sites across docs and scripts). Out of the class by construction: explicit dir="/tmp" on tempfile APIs (mkstemp/mkdtemp create with private 0600/0700 permissions regardless of location - the location is not the hazard there), tf.profiler.experimental.start('/tmp/xla_profile') (2202:347 - a profiling output path, not in the creation-call roster), ALLOWED_PATHS = ["/tmp", ...] (phase7-practice:294 - a list literal in sandbox teaching, not a creation-call argument, the call-site-attachment lesson of the CH-01 census), composite literals like tmpfs={"/tmp": "rw"} (7202 - only DIRECT string-constant arguments enter), yaml volume mounts and shell commands carrying tmp paths (outside the python-fence universe), string mentions (the walk is AST, not text), a fence carrying a danger marker (DANGEROUS/Wrong:/unsafe/vulnerab, casefold - the sibling unsafe_*/crypto escape), and notebooks (.ipynb outside the md universe). Zero-drain: born census tick-655 read every tempfile call and every creation-call argument in every md python fence fence-aware = 0 findings (the corpus's 14 raw /tmp mentions are all yaml/shell/docker contexts or non-argument python forms) - hard from birth, owned preemptively per the US-02/US-03, RT-02 and CH-01 precedent. Negatively tested across the scratch-fence ledger - the born control (0 findings rc=0), the aggregate (four planted forms land exactly 4 - TF-01 x2 (bare-Name mktemp + tempfile.mktemp) / TF-02 x2 (bare open + os.makedirs), clean code separation, all true file lines), the silent partitions (mkstemp, mkdtemp(dir="/tmp"), NamedTemporaryFile, TemporaryDirectory, tf.profiler, ALLOWED_PATHS list, tmpfs composite, Path-target open, comment string-mention - all silent), the marker escape (a planted mktemp + open pair under # DANGEROUS: silent), and the cross-gate run (crypto_hygiene_scan, sql_interp_scan, unsafe_exec_scan, unsafe_deserialize_scan, unsafe_shell_scan, cypher_interp_scan, fence_import_check, codeblock_syntax_scan, kwarg_lint, http_timeout_scan, open_encoding_scan, mutable_default_scan, deprecated_scan all rc=0 on the same tree - single ownership); the plants lived in a scratch fence deleted after the run (no real-file mutants, nothing to restore). Wiring - the trio landed BEFORE the first fleet run (the tick-646 MC-01 wiring-order lesson pre-applied; a zero-drain tick needs no firing dance and no stash cycle); tool gate - the fleet grows 127 -> 128 total, 121 -> 122 hard, script_hygiene_scan's inventory grows 146 -> 147, and gate_robustness_audit's hostile roster auto-joins 138 -> 139 |
| cors_wildcard_scan | COR-01 | CORS wildcard origins combined with credentials in python fences - a CORS call carrying BOTH allow_origins=["*"] and allow_credentials=True teaches a spec-invalid pair: a credentialed cross-origin request must name the actual origin (the Fetch spec forbids the wildcard next to the credentials flag), so the browser rejects the response for exactly the logged-in users the fence configured for - or the middleware reflects the request origin under the pair and hands EVERY origin credentialed access (CSRF-class: any site rides a user's session cookies); the walk attaches on the add_middleware call whose first argument is the CORSMiddleware class (a bare Name - the corpus's only form - a constructor Call, or a string name) or a direct CORSMiddleware(...) call, and only literal string constants enter the wildcard check. The corpus vouches the safe form itself: 2 of its 4 CORS sites list explicit origins (TEMPLATE-010's dev form ["http://localhost:3000"], TUTORIAL-014's production form ["https://yourdomain.com"]). Out of the class by construction: wildcard WITHOUT credentials (public API, spec-valid), credentials WITH an explicit origin list (the safe taught form), allow_credentials=False (no credential channel), allow_methods/allow_headers wildcards (the origin header is the spec's hard constraint - all 4 corpus sites teach the wildcard there by design), non-constant origins (Name/Call expressions stay out), other middleware names (no CORSMiddleware attachment), string mentions (the walk is AST, not text), a danger-marker fence (DANGEROUS/Wrong:/unsafe/vulnerab, casefold - the sibling unsafe_*/crypto escape), and notebooks (.ipynb outside the md universe). The gate's own born bug - attaching only on a string or constructor-Call first argument and missing the corpus's bare-Name class argument - was caught by the born census itself reading 0 where the corpus carries 2 real sites, fixed before any NEG run. Born census tick-656 read every CORS call in every md python fence fence-aware = exactly 2 COR-01 findings (LAB-007-Production-RAG - the production lab itself - and TUTORIAL-006-Real-time-AI), drained the same tick IN-LINE (origin lists swapped for the corpus's own two explicit forms, git numstat 1/1 both files - zero line shift so the exec-census baseline rows LAB-007:921 ENV-GAP:production_rag and TUTORIAL-006:141 TIMEOUT keep their coordinates and re-verify unchanged on the first post-drain fleet re-execution), returning the class to zero-drain hard. Negatively tested across the scratch-fence ledger - the aggregate (born 2 + three planted forms land exactly 5: bare-Name class, string class name, direct constructor call - all at fence-open+1-true file lines) with every silent partition proven in the same single-file run (wildcard alone, credentials with explicit origins, credentials=False, methods/headers wildcards, non-constant origins, other middleware, string mention - all silent), the marker escape (the invalid pair under # DANGEROUS: silent), the yaml fence outside the python universe (silent), and the cross-gate run (insecure_temp_scan, crypto_hygiene_scan, sql_interp_scan, unsafe_exec_scan, unsafe_deserialize_scan, unsafe_shell_scan, cypher_interp_scan, fence_import_check, codeblock_syntax_scan, kwarg_lint, http_timeout_scan, open_encoding_scan, mutable_default_scan, deprecated_scan all rc=0 on the same tree - single ownership); the plants lived in a scratch fence deleted after the run (no real-file mutants, nothing to restore). Wiring - the trio landed BEFORE the first fleet run (the tick-646 MC-01 wiring-order lesson pre-applied); tool gate - the fleet grows 128 -> 129 total, 122 -> 123 hard, script_hygiene_scan's inventory grows 147 -> 148, and gate_robustness_audit's hostile roster auto-joins 139 -> 140 |
| trust_remote_code_scan | TRC-01 | trust_remote_code=True on any loader call in python fences - the flag tells the Hub-side loader to download the repository's own modeling/loading Python and execute it on the local machine at load time, so the caller hands code execution to whatever the repo (or anything that later pushes to it) contains - HF's own guidance is the default False and trust-plus-a-pinned-revision only for repositories genuinely needing it. The corpus vouches the safe form: all 10 flagged sites load stock-code checkpoints (Mistral-7B(-Instruct) at phase5-practice/LAB-003/SOLUTION-LAB-003/PROJECT-005, meta-llama/Llama-2-7b-hf at 4307/4401/5100-peft-PRACTICE, TheBloke/Llama-2-7B-AWQ at 1402-vLLM, a local GPTQ export at 4401) whose modeling code ships inside transformers itself - and the same corpus loads the SAME models flag-free lines away (SOLUTION-LAB-003's AutoTokenizer, 4307's AutoTokenizer directly above its flagged model load), so the flag was cargo-cult teaching the reader to reflexively enable remote code execution (the reader-proof: no gate across the whole corpus walked loader kwargs - the kwarg-name class is out of every regex gate's universe and out of the quiz gates entirely; UD-01 owns the pickle CONTENT of a checkpoint, TRC-01 owns the CODE the loader fetches - disjoint by construction). Out of the class by construction: the kwarg absent (the default False is the safe taught form), trust_remote_code=False (any non-True constant), non-constant values (a Name/Call expression stays out - only the literal True constant enters), kwarg names merely containing the fragment, string mentions (the walk is AST, not text), a danger-marker fence (DANGEROUS/Wrong:/unsafe/vulnerab, casefold - the sibling unsafe_*/crypto escape), and notebooks (.ipynb outside the md universe). One single-owned code: TRC-01. Born census tick-657 read every call kwarg in every md python fence fence-aware = exactly 10 findings, all TRC-01, all on stock-code checkpoints across 8 files, all at true file lines (the call-start line: phase5-practice:110, LAB-003:459+467, SOLUTION-LAB-003:238, PROJECT-005:285, 1402-vLLM:183, 4307:167, 4401:159+198, 5100-peft-PRACTICE:250) - drained the same tick IN-LINE (the flag removed or the argument line swapped for a one-line why-comment naming the stock-code fact; git numstat 1/1 per site, 2/2 on LAB-003 and 4401 - zero line shift so every exec-census baseline row in the 8 files keeps its coordinates and re-verifies unchanged on the first post-drain fleet re-execution), the 9 edited fences compile-verified post-drain so the gate's silent SyntaxError skip cannot read falsely green, returning the class to zero-drain hard. Negatively tested across the scratch-fence ledger - the aggregate (born 10 + three planted forms land exactly 13: the transformers from_pretrained form, the vLLM LLM() constructor form, the AutoGPTQForCausalLM.from_quantized form) with every silent partition proven in the same single-file run (trust_remote_code=False, the kwarg absent, a non-constant Name value, a comment string-mention, prose, a yaml fence - all silent), the marker escape (the flagged load under DANGEROUS: silent), and the cross-gate run (insecure_temp_scan, crypto_hygiene_scan, sql_interp_scan, unsafe_exec_scan, unsafe_deserialize_scan, unsafe_shell_scan, cypher_interp_scan, fence_import_check, codeblock_syntax_scan, kwarg_lint, http_timeout_scan, open_encoding_scan, mutable_default_scan, deprecated_scan, cors_wildcard_scan all rc=0 on the same tree with the plants still present - single ownership); the plants lived in a scratch fence deleted after the run (no real-file mutants, nothing to restore). Wiring - the trio landed BEFORE the first fleet run (the tick-646 MC-01 wiring-order lesson pre-applied); tool gate - the fleet grows 129 -> 130 total, 123 -> 124 hard, script_hygiene_scan's inventory grows 148 -> 149, and gate_robustness_audit's hostile roster auto-joins 140 -> 141 |
| async_block_scan | AB-01/AB-02 | blocking calls inside async def bodies in python fences - AB-01: a blocking requests verb call (get/post/put/patch/delete/head/options/request) runs the whole HTTP round-trip on the event-loop thread and freezes every other coroutine (concurrent requests, heartbeats, websockets, sibling FastAPI handlers) behind it - under load the API serves one request at a time at the blocking call latency; AB-02: time.sleep inside async def parks the loop thread - await asyncio.sleep is the async-native form. The corpus teaches both escapes itself: await asyncio.to_thread(...) at CHEAT-SHEET-005 and 3502-Audio, httpx.AsyncClient at TUTORIAL-012 and 1403-vLLM-Production - while its own 13 sites taught the frozen-loop form (the reader-proof: no gate across the whole corpus walked async-def call scopes - the async-scope class is out of every regex gate universe and out of the quiz gates entirely). Out of the class by construction: blocking calls in plain sync def bodies (the sync universe is the normal correct form - the walk enters AsyncFunctionDef bodies only and stops at nested sync defs/lambdas), nested async defs as their own innermost scopes (each call reports once), the affirmative forms (asyncio.to_thread, asyncio.sleep, httpx.AsyncClient), non-verb requests attributes (Session, exceptions), bare sleep after from time import sleep (the walk demands the time Name base), string mentions (AST, not text), a danger-marker fence (DANGEROUS/Wrong:/unsafe/vulnerab, casefold - the sibling unsafe_*/crypto escape), and notebooks (.ipynb outside the md universe). Born census tick-658 read every call in every async def body in every md python fence fence-aware = exactly 13 findings, all AB-01, across 5 files (LAB-002 x2, LAB-005, SOLUTION-LAB-001 x4, PROJECT-001 x5, TUTORIAL-004) - drained the same tick IN-LINE (each call wrapped in await asyncio.to_thread(...) and module fences gaining import asyncio; the two Add-to fragment fences take asyncio from their parent module fence like their existing requests usage) - the 6 import insertions shift later fence lines +1, so the exec-census baseline rows for the shifted fences moved with them (census surgery, keys are fence-open lines; a fences own rows are immune to body edits), all fences compile-verified post-drain so the SyntaxError skip cannot read falsely green, returning the class to zero-drain hard (AB-02 born at zero). Negatively tested across the scratch-fence ledger - the aggregate (born 13 + three planted forms land exactly 16: the requests.get form, the time.sleep form, the nested inner-async form) with every silent partition proven in the same single-file run (sync def body, to_thread affirmative, asyncio.sleep, requests.Session, bare from-time sleep, nested sync def, string mention, prose, yaml fence - all silent), the marker escape (the planted blocking call under DANGEROUS: silent), and the cross-gate run (16 sibling gates all rc=0 on the same tree with the plants still present - single ownership); the plants lived in a scratch fence deleted after the run (no real-file mutants, nothing to restore). Wiring - the trio landed BEFORE the first fleet run (the tick-646 MC-01 wiring-order lesson pre-applied); tool gate - the fleet grows 130 -> 131 total, 124 -> 125 hard, script_hygiene_scan inventory grows 149 -> 150, and gate_robustness_audit hostile roster auto-joins 141 -> 142 |
| unawaited_coro_scan | UC-01 | a bare-Name call to a fence-local async def standing alone as a full statement (fetch_data() on its own line, no await, no consumer) discards the coroutine object - the work never runs and Python only whispers RuntimeWarning: coroutine ... was never awaited after the fence has moved on, so the reader copies a snippet whose I/O silently never happens. The corpus teaches every consumed form itself: await fetch_data() directly; await asyncio.gather over collected or generator-expression calls (CHEAT-SHEET-005:501, 1403-vLLM-Production:680); async for token in stream_tokens(...) - the implicit await (PROJECT-007:337, 2303:559); the async generator handed to its consumer StreamingResponse(generate(), ...) (TEMPLATE-010:126, TUTORIAL-006:391, 2303:574); and the asyncio.run(main()) entry-point idiom (10 sites) - the born-census sweep first fired on 7 sites and the manual audit found all 7 were these affirmative forms, the census-as-first-reader catching its own naive partition before the gate landed (the tick-656 lesson recurring) (the reader-proof: no gate across the whole corpus walked call-vs-await context - the Expr-statement class is out of every regex gate's universe and out of the quiz gates entirely; AB-01/AB-02 own the blocking-call TARGETS inside async bodies regardless of await context, UC-01 owns the await-consumption CONTEXT of fence-local async defs regardless of target - disjoint by construction). Out of the class by construction: every consumed form (the call in argument position, inside a comprehension or generator expression, under await, under async for - the walk fires only when the call IS the entire statement, an ast.Expr whose value is the call), asyncio.run(main()) (the entry-point idiom: the inner call is argument-position and asyncio.run itself is an Attribute call, never a bare fence-local name), a bare call to a sync-only name (the walk demands the name be defined async in the same fence), a name defined BOTH sync and async (the corpus teaches 3 such pairs - LAB-012 synthesize, 2303 predict/predict_batch - the call might be the sync one, so only single-resolution names enter), the named-discard idiom _ = coro() and the assign form x = coro() (Assignment, not Expr - result-level dataflow is outside the statement-level proof), string mentions (the walk is AST, not text), a danger-marker fence (DANGEROUS/Wrong:/unsafe/vulnerab, casefold - the sibling unsafe_*/crypto escape), and notebooks (.ipynb outside the md universe). One single-owned code: UC-01. Born census tick-659 read every statement in every md python fence fence-aware = exactly 0 discarded statements across 1861 fences / 197 async defs (also zero: the assign-then-never-await form, fire-and-forget comments, run_until_complete sites) - the corpus never teaches the dropped-coroutine form, so the class froze at the rule the moment it was named: zero-drain, hard from birth, no md edits, no census churn (the insecure_temp/crypto preemptive-ownership shape). Negatively tested across the scratch-fence ledger - the aggregate (born 0 + three planted forms land exactly 3: the top-level bare-statement form, the bare-statement-inside-sync-def form, the async-generator bare form) with every silent partition proven in the same single-file run (await, comprehension-collected-then-gathered, generator-expression-into-gather, async-for, StreamingResponse consumer, asyncio.run entry, named discard, assign form, sync-only bare call, shadow-both name, prose string mention, yaml fence - all silent), the marker escape (the planted bare call under DANGEROUS: silent), and the cross-gate run (async_block_scan, trust_remote_code_scan, http_timeout_scan, insecure_temp_scan, crypto_hygiene_scan, sql_interp_scan, unsafe_exec_scan, unsafe_deserialize_scan, unsafe_shell_scan, cypher_interp_scan, fence_import_check, codeblock_syntax_scan, kwarg_lint, open_encoding_scan, mutable_default_scan, deprecated_scan, cors_wildcard_scan - 17 siblings all rc=0 on the same tree with the plants still present - single ownership); the plants lived in a scratch fence deleted after the run (no real-file mutants, nothing to restore). Wiring - the trio landed BEFORE the first fleet run (the tick-646 MC-01 wiring-order lesson pre-applied; a zero-drain tick needs no firing dance and no stash cycle); tool gate - the fleet grows 131 -> 132 total, 125 -> 126 hard, script_hygiene_scan inventory grows 150 -> 151, and gate_robustness_audit hostile roster auto-joins 142 -> 143 |
| bare_except_scan | BX-01 | a bare except: handler catches BaseException - not just the error the try block guards against, but KeyboardInterrupt (the user's Ctrl+C is swallowed and the loop keeps going), SystemExit (shutdown requests eaten mid-flight) and asyncio.CancelledError (task cancellation silently no-ops - the async family of AB-01/UC-01) - PEP 8 names it directly: too broad, the handler fires on exceptions the author never anticipated and hides real bugs behind a default response. The corpus teaches the bounded forms itself: except Exception (124 handlers) and the specific type forms except json.JSONDecodeError / except (ValueError, KeyError) (65 handlers) - 189 of the corpus's 206 handlers already teach the bounded forms, the 17 bare handlers were stragglers, and the corpus even shows both forms side by side (7500-security PRACTICE parses log timestamps with a bare except: directly above a sibling except json.JSONDecodeError: on the same JSON records; the reader-proof: no gate across the whole corpus walked exception handlers - the ExceptHandler class is out of every regex gate's universe and out of the quiz gates entirely; AB-01/AB-02 own blocking-call TARGETS inside async bodies, UC-01 owns await-consumption CONTEXT of fence-local async defs, BX-01 owns the handler TYPE node regardless of context - disjoint by construction). Out of the class by construction: every typed handler (except Exception as e, except Name:, except module.Attr:, except (A, B): - any non-None type node: Name / Attribute / Tuple / Subscript / Call; the walk fires only when handler.type is None), except* Type: ExceptionGroups (the grammar demands a type there, its handlers are ordinary typed ExceptHandler nodes), string mentions (the walk is AST, not text), a danger-marker fence (DANGEROUS/Wrong:/unsafe/vulnerab, casefold - the sibling unsafe_*/crypto escape), non-python fences (yaml / shell / dockerfile), SyntaxError-fences silently skipped (the sibling convention; codeblock_syntax_scan owns fence compilability), and notebooks (.ipynb outside the md universe). One single-owned code: BX-01. Born census tick-660 read every except handler in every md python fence fence-aware = exactly 17 bare handlers, all BX-01, across 12 files (phase7-practice x2, LAB-001 x2, LAB-004 x3, LAB-012 x2, LAB-013 x1, SOLUTION-LAB-002 x1, SOLUTION-LAB-013 x1, 7101 x1, PRACTICE-7100 x1, 7103 x1, PRACTICE-7300 x1, PRACTICE-7500 x1); 15 gate-visible, 2 inside the LAB-004 eval-danger marker fence (line 183 carries the SECURITY WARNING: eval() is DANGEROUS teaching - the blanket marker escape covers the fence's real teaching sites too) - drained the same tick ALL 17 in-line for corpus hygiene (except: -> except Exception:, one line per site, byte-level, assert stripped == b"except:" before every swap, zero line shift so every exec-census baseline row keeps its coordinates and the runtime behavior of the guards is unchanged for every Exception subclass the guards actually see), returning the class to zero-drain; post-drain gate census 0 and independent AST census 0 agree. Negatively tested across the scratch-fence ledger - the aggregate (born 0 + three planted forms land exactly 3: the top-level bare form scratch:8, the bare-inside-sync-def form :16, the bare-inside-async-def form :26 - the async tie-in - all at true file lines, fence content line 1 = fence-open line + 1) with every silent partition proven in the same single-file run (except Exception, except json.JSONDecodeError, except (ValueError, TypeError), except urllib.error.URLError the Attribute-type form, except* ValueError the ExceptionGroup form, the marker escape, prose, a yaml fence - all silent), and the cross-gate run (async_block_scan, unawaited_coro_scan, trust_remote_code_scan, cors_wildcard_scan, insecure_temp_scan, crypto_hygiene_scan, sql_interp_scan, unsafe_exec_scan, unsafe_deserialize_scan, unsafe_shell_scan, cypher_interp_scan, fence_import_check, codeblock_syntax_scan, kwarg_lint, http_timeout_scan, open_encoding_scan, mutable_default_scan, deprecated_scan - 18 siblings all rc=0 on the same tree with the plants still present - single ownership); one plant-side lesson: the first Attribute-type partition planted import mymod (a fictional module) which woke fence_import_check IC-01 - swapped to import urllib.error + except urllib.error.URLError, real stdlib, the tick-654 clean-code-separation discipline (plants never wake siblings); the plants lived in a scratch fence deleted after the run (no real-file mutants, nothing to restore). Wiring - the trio landed BEFORE the first fleet run (the tick-646 MC-01 wiring-order lesson pre-applied); tool gate - the fleet grows 132 -> 133 total, 126 -> 127 hard, script_hygiene_scan inventory grows 151 -> 152, and gate_robustness_audit hostile roster auto-joins 143 -> 144. Single ownership: the pass-only slice of the bare universe (the handler body is exactly one pass) is broad_except_scan's BE-01 - disjoint by body shape, so no planted bare handler can wake both gates and no finding code is shared |
| secret_shape_scan | SS-01 | a credentialed-shaped string literal in a python fence (provider key shapes: sk- + 20+ OpenAI/Anthropic/DeepSeek, ghp_/gho_/ghu_/ghs_/ghr_ + 30+ GitHub classic, github_pat_ + 22+ GitHub fine-grained, AKIA + 16 AWS, AIza + 35 Google, xox[baprs]- + 10+ Slack) is either a leaked real credential or a reader template that looks exactly like one - the repo is publish-bound and GitHub's own secret scanning flags these shapes on push, so the corpus must never carry them; the affirmative form is the corpus's own env-var idiom (os.environ["OPENAI_API_KEY"], os.getenv(...)) (the reader-proof: no gate across the whole corpus walked string-constant values for provider shapes - the Constant class is out of every regex gate's universe and out of the quiz gates entirely, and the shape demand is narrower than any sibling's: the unsafe_*/crypto family owns behavior (exec/deserialize/shell/CORS/trust flags), not literal values - disjoint by construction). Out of the class by construction: environment reads (os.environ/os.getenv - the taught idiom; the walk matches ast.Constant string values only, a lookup never carries the shape), placeholder literals ("YOUR_API_KEY", "sk-xxx", "change-me-in-production" - the shape's own prefix+tail demands do the partition: every shape demands a long random tail so short stand-ins stay silent, no allowlist needed - a placeholder cannot be shaped like a real key by construction), prose mentions and md anchor slugs (#task-specific-recommendations never reach the walk - AST over python fences only - and the word-boundary anchor keeps any in-fence "task-specific-..."-style string silent too: the s of the embedded sk- sits between word characters, so no boundary), f-string constant parts still land deliberately (a shape typed inside an f-string is a Constant node of the JoinedStr - the shape is on the page either way), a danger-marker fence (DANGEROUS/Wrong:/unsafe/vulnerab, casefold - the sibling unsafe_*/crypto escape), non-python fences (yaml / shell / dockerfile / json - a shell export is the bash_vars_check BB-family universe), SyntaxError-fences silently skipped (the sibling convention; codeblock_syntax_scan owns fence compilability), and notebooks (.ipynb outside the md universe). One single-owned code: SS-01. Born census tick-664 read every string constant in every md python fence fence-aware = 0 credentialed shapes across 1861 fences (the full-shape grep census agreed: 0 github_pat_/AKIA/AIza/gh?_ hits corpus-wide, the only two sk- hits were prose anchor slugs, and the one key-ish assignment in the corpus is the obvious placeholder JWTAuth(secret="change-me-in-production") at TUTORIAL-013, silent by the tail-demand partition) - the corpus teaches the env-var idiom everywhere, so the class froze at the rule the moment it was named: zero-drain, hard from birth, no md edits, no drain, no census churn (the US-02/RT-02/insecure_temp/crypto preemptive-ownership shape). Negatively tested across the scratch-fence ledger - the aggregate (born 0 + six planted forms land exactly 6: the sk- literal, the ghp_ literal, the github_pat_ literal, the AKIA literal, the AIza literal, and the f-string Bearer sk- form - all at true file lines, fence content line 1 = fence-open line + 1) with every silent partition proven in the same single-file run (os.environ read, os.getenv read, YOUR_API_KEY, sk-xxx short form, change-me placeholder, in-fence task-specific string, prose anchor outside any fence, yaml fence with a shaped value, the marker escape - all silent), and the cross-gate run (async_block_scan, unawaited_coro_scan, trust_remote_code_scan, cors_wildcard_scan, insecure_temp_scan, crypto_hygiene_scan, sql_interp_scan, unsafe_exec_scan, unsafe_deserialize_scan, unsafe_shell_scan, cypher_interp_scan, bare_except_scan, broad_except_scan, fence_import_check, codeblock_syntax_scan, kwarg_lint, http_timeout_scan, open_encoding_scan, mutable_default_scan, deprecated_scan, bash_vars_check, uv_install_check - 22 siblings all rc=0 on the same tree with the plants still present - single ownership); the plants lived in a scratch fence deleted after the run (no real-file mutants, nothing to restore). Wiring - the trio landed BEFORE the first fleet run (the tick-646 MC-01 wiring-order lesson pre-applied; a zero-drain tick needs no firing dance and no stash cycle); tool gate - the fleet grows 133 -> 134 total, 127 -> 128 hard, script_hygiene_scan inventory grows 152 -> 153, and gate_robustness_audit hostile roster auto-joins 144 -> 145 |
| md_link_leak_scan | ML-01 | markdown link syntax inside a quoted string in any md line - a quote-delimited string whose entire visible content is one http(s) markdown link (opening quote, bracket-wrapped url, parenthesis-wrapped target, closing quote) is not a URL: it is markdown link syntax that leaked into a string literal, almost always a URL value a fence was teaching - a reader copying the fence gets a string whose value is the literal bracket-parenthesis text, so the OAuth authorize url, the redirect_uri and the token endpoint hand garbage to every consumer and the failure surfaces at the provider, far from the copied line (the reader-proof, the defect-ownership proof: no gate owned the class - the fences compile as ordinary string constants, the AST family walks calls and kwargs not string contents, the fence-walking family could not see the drain lines past UC-002's inner example-fence parity flip, and linkcheck read the shapes as VALID markdown links because a wrapped url resolves as a self-link - syntactically legal everywhere, defect-owned nowhere). The scan is fence-agnostic by design: the class is defined by the quote-wrapped shape itself, not fence position, and the gate is the only md-universe member that walks every line including prose. Out of the class by construction: unquoted prose markdown links (the QUICK-START two-in-one link idiom, 46 sites, valid markdown), plain url strings (the affirmative form the corpus teaches everywhere), labelled prose links (normal markdown, no quote), strings that merely contain a link among other text (the regex demands quote, full link, quote - a partial wrapper stays silent, v1 partition documented), non-http schemes (mailto:/ftp:/relative paths), and notebooks (.ipynb outside the md universe). No danger-marker escape: the sibling unsafe_*/crypto escapes cover deliberate danger teaching, but this class has no legitimate form - a quoted markdown link is a leak in every context, teaching or not (documented choice). Born census tick-675 read the whole corpus with the fence-agnostic signature = exactly 3 sites, all in UC-002's OAuth example, all leaks - drained the same tick BEFORE the gate landed (the born-census protocol inverted: three same-line splices stripped the wrappers to the plain urls, zero line shift so no census row moves, FM bumped - one drain-script lesson, the occurrence-count class's seventh iteration: the wrapped form carries its url TWICE, link text and link target in one line, so pre-drain asserts count 2 and post-drain 1 per url), returning the class to born-at-zero hard from the rule's naming (the SS-01 zero-drain shape). Negatively tested across the scratch-tree ledger: the born control (0 findings rc=0 on the drained tree), the aggregate (three planted forms land exactly 3 - the double-quoted assignment form, the yaml quoted config form, the single-quoted python form, all at true file lines) with every silent partition proven in the same single-file run (bare url string, unquoted prose two-in-one link, labelled prose link, partial wrapper, mailto scheme in a quoted form - all silent), and the cross-gate run (codeblock_syntax_scan, fence_import_check, kwarg_lint, secret_shape_scan, cors_wildcard_scan, sql_interp_scan, crypto_hygiene_scan, insecure_temp_scan, trust_remote_code_scan, bare_except_scan, broad_except_scan, async_block_scan, unawaited_coro_scan, http_timeout_scan, open_encoding_scan, mutable_default_scan, deprecated_scan, typing_legacy_scan, bash_vars_check, uv_install_check - 20 siblings all rc=0 on the same tree with the plants still present, single ownership); the plants lived in a scratch tree deleted after the run - no real-file mutants, nothing to restore. Wiring - the trio landed BEFORE the first fleet run (the tick-646 MC-01 wiring-order lesson pre-applied; a born-at-zero-after-drain tick needs no firing dance and no stash cycle); tool gate - the fleet grows 134 -> 135 total, 128 -> 129 hard, script_hygiene_scan's inventory grows 153 -> 154 (0 SH findings on the new script, verified pre-row) and gate_robustness_audit's hostile roster auto-joins 145 -> 146 (0 crash 0 timeout, verified pre-row) |
| kwarg_lint | KW-01/02 | removed/renamed kwargs on known APIs |
| typing_legacy_scan | TL-01 | legacy typing spellings (PEP 585/604) in python fences ; scope tick-1144: the gate learned the corpus's second tree - the scope walk now covers docs/ AND experiments/ (born-at-zero census before extension: 48 md / 125 python fences, TL-01/02/03 all x0; NEG-proven: a planted legacy TL-01 fence under experiments/ fires exactly 1, deletes back to exit-0) and the summary line names both trees - the platform feeds have cataloged the same second tree since tick-613 |
| version_alignment_scan | VA-01..04 | code-side python-version drift in any fence: FROM python:X.Y, python3.X binaries, --python X.Y flags, uv python install/pin - the corpus standard is 3.13 |
| feed_parity_check | FP-00..10 | cross-feed contract between the platform feeds: runs manifest_export + quiz_export for real and locks module sets, counts-vs-arrays, hierarchy-vs-documents lessons, quiz-file membership, bank-internal totals, and assessment.quiz flag parity ; scope tick-613: the feed learned the corpus's second tree and the parity contract followed it - manifest_export now carries experiments[] (47 entries, the 5-field EC-01 keyset mapped onto the same id/title/last_updated/status/difficulty schema the documents[] rows carry) minus TEMPLATE.md (EC-01's name-keyed carve-out - a template is not catalog content) with counts.experiments mirrored, FP-02's counts loop and the summary line grew the experiments column, and FP-08 lifts FP-07's zeroth platform contract to the second tree (manifest experiments set == the experiments/*.md tree on disk minus TEMPLATE.md, pure path-set parity both ways - the values stay EC-01/FV-01/FV-12/FV-13's duty); the row label was corrected here too - it read FP-00..06 since before FP-07 was born at tick-372 (the gate updated, this row never did, a docs staleness this tick's survey caught), so FP-00..08 is the first fully-true label the row has carried; because exporter and gate both recompute from the live tree no content mutation can diverge them, so the NEG drives exporter code mutants - the exact drift class the clause exists for - 6/6: pristine 0 with 47 == 47, a TEMPLATE phantom in the feed fires exactly 1 FP-08, the exporter dropping EXP_3201 fires exactly 1 FP-08 on the disk-missing side, a miscounted counts.experiments fires exactly 1 FP-02 with FP-08 silent, ; scope tick-614: the third feed joined - curriculum_metrics (report-only metrics snapshot) now runs for real alongside the two exporters and FP-09 locks its corpus counts (lessons/modules/phases) to the manifest hierarchy (its classification borrows the same regexes - drift means the platform's metrics snapshot silently describes a different corpus than its catalog) and FP-10 locks its assessments.questions total to the quiz bank's records (two independent parses of the same QUIZ.md set must agree - the bank is load truth, the snapshot is trend truth), pure agreement with no totals pinned; FP-10 sits after the FP-05 loop on purpose - the bank totals it compares against are accumulated there (the first cut ordered it before and fired 660-vs-0 on the pristine corpus, caught before any commit); NEG 6/6 drives curriculum code mutants: pristine 0 with the third feed live in the summary (114 curriculum lessons), dropping the 3201 lesson from its walk fires exactly 1 FP-09, skipping module 3200's quiz fires exactly 1 FP-10, the pair aggregates into exactly 2, a crashed exporter fires FP-00 twice (exited + wrote no output file) with FP-09/10 skipped, post-restore byte-identical at 0 |
| readme_claims_check | RC-00/01 | every measurable number in README.md (badges, resource tables, per-phase document table, footer) vs its disk measurement; regex-matched claims, an unmatched pattern is skipped on purpose (change the README copy -> teach the new pattern, don't let the gate rot) |
| sitemap_claims_check | SC-00/01 | every measurable number in SITEMAP.md: section headers vs disk, headers vs their own list entries (inline prose links are not entries), and the fenced Statistics block - same regex-claim idiom as readme_claims_check |
| meta_claims_check | MC-00/01 | every measurable number in the remaining entry docs: FAQ.md intro sentence, MASTER-INDEX.md (Total Files, per-phase Status rows, numbered section headers, lab header 3-way split, File Counts block incl. TOTAL as its own sum, module-table "N docs" cells = lesson files), ORGANIZATION-GUIDE.md tree labels, VOLUME-GUIDE.md (tree labels, labs 2-way split, SITEMAP line, Total Documents footer), PROGRESS-TRACKER.md (per-volume bars + headers, Total bar, SITEMAP line, stats-table targets; bar percent/fill are learner state, only targets are locked) and docs/volumes/VOLUME-*.md Statistics tables ("Core/Optional Documents" rows vs the doc's own checklist sections; canonical semantic 2026-09-30: ALL - [ ] items - before the gate the seven docs mixed five counting semantics, V2-V6 aligned same-commit) plus CHANGELOG.md's newest "N hard QA gates" claim (and optional "(total N)") vs quality_report.GATES imported for parity - .search() sees the newest entry first so history stays frozen, the count moves through a NEW entry (born tick-546: 1.2.0's "83" survived three days of fleet growth) - same regex-claim idiom |
| volume_checklist_scan | VC-01/02 | every checklist item in the seven VOLUME-*.md Core/Advanced sections must resolve to a real corpus file (VC-01: NNNN:/TUTORIAL-NNN:/LAB-NNN:/EXP_NNNN: IDs; Project A/B/C and prose goals are curricular choices, skipped) with a title that matches what the file actually is (VC-02: zero keyword overlap vs filename suffix OR front-matter Title - filenames can lag, e.g. 7301-Orchestration.md is titled "Collaborative Tasking") - a dead or mislabeled checklist entry is a learner-facing platform bug; born tick-455 from the three mislabeled V7 items found in tick-454, baseline 0 (81 items parsed) |
| lab_registry_check | LB-01/02, LR-01 | every LAB-0NN: Topic label corpus-wide vs the labs' own frontmatter Titles: wrong lab identity (topic belongs to a different lab than labelled), unknown/ambiguous topic (teach the signal table or fix the label), lab id with no file on disk - word-based matching so legitimate short forms ("Docker & LLM" for "Docker & LLM Fundamentals") and verb-form bridges ("Add knowledge graphs") pass; labels carry identities not numbers, which is why the claims gates can't see this class |
| resource_id_check | RI-01/02 | numbered-resource id identity across the 43 resources (LAB-000..014, PROJECT-001..007, TUTORIAL-000..014, CHEAT-SHEET-001..006): every resource's frontmatter Title and first H1 carries the filename's own FAMILY-0NN: id, and the pre-campaign spaced spellings (LAB 0NN, CHEAT SHEET 0NN - any case, real digits) are banned corpus-wide; born from the 2026-09-29 canonicalization campaign that unified every occurrence to the dashed form - lab_registry_check locks what each id points at, this gate locks the id itself |
| unfinished_marker_scan | UM-01 | unfinished-content markers in prose: coming soon, under construction, to be written, to be added, work in progress, shouted TODO/TBD/FIXME - checked outside code fences with inline code scrubbed, so fenced starter-code # TODO: exercise prompts (the codified notebooks/README.md convention) stay invisible by design and blockquote-prefixed fences still toggle; born from the tick-276 census whose 108 raw matches all landed in legitimate classes (the lock keeps it that way at baseline 0) |
| notebook_unfinished_scan | NU-01/02 | the UM-01 marker vocabulary over the .ipynb universe UM-01 structurally cannot see (its extraction walks .md fences; the tick-549 discovery scan proved the notebook fleet was invisible to every md-only gate): NU-01 a markdown cell obeys the same prose rule with the same inline-code scrub, NU-02 a marker in a code cell at a non-comment position (identifier/string/expression) - markers inside # comment segments stay invisible by design, the same exercise-prompt convention (108 # TODO: prompts across all 20 notebooks at birth); TODO/TBD/FIXME uppercase-only, one vocabulary across md prose and notebook prose; born tick-550 born-at-zero: 109 raw marker-shaped hits, 108 legitimate comment prompts plus the one remaining hit NB-703's prompt-injection test string, matched by no rule |
| notebook_catalog_check | NC-01..03 | the 20-notebook catalog lives twice - the fleet's own notebooks/README.md index (star-rendered difficulty, per-notebook conda env column) and MASTER-INDEX.md's Notebooks table (word difficulty, Learning Resources sibling format); tick-549's wiring mirrored the README rows verbatim, duplicating data across two files with no lock - the content-drift class every link check is blind to (both tables' links resolve, it is the text that drifts). NC-01 id-set parity (a row present in one catalog only), NC-02 verbatim field parity per shared id (title, topics, difficulty with the README star run stripped to its word, duration, same link basename); born tick-551 at 20/20 rows, 0 findings; NC-03 joined tick-564 locking the "### Notebooks (N files)" header to the notebooks directory's own *.ipynb count - census-proven true (20 = 20) but unlocked, NC-01/02 read the table rows and never the header (the header's definition is notebooks only - the directory README is not a notebook, the same divergence the SITEMAP section's 21 documents) |
| notebook_hygiene_scan | NBH-01..04 | the .ipynb FILE-hygiene dimension the notebook siblings do not own - NU/NC/NAV lock markers, catalog parity and inbound links, but nothing locks the commit-artifact and structural-health classes a notebook editor accumulates on every casual Run All + Save: NBH-01 a stored output (committed execution artifacts are diff noise, size bloat and a leak surface - one traceback or printed token from a local run ships to every learner), NBH-02 an execution_count set (a committed count claims an execution state the repo cannot reproduce), NBH-03 structural health (unparseable JSON, a non-dict root, a missing/non-list cells, a non-object cell, a code cell without a string/list source - the platform preview and any nbformat consumer stop at the first such file), NBH-04 the kernelspec contract (metadata.kernelspec absent or name not exactly python3 - the curriculum is all-Python and the launcher keys on the exact name); born tick-690 from the probe census (20 notebooks, 224 cells / 102 code, 0 outputs, 0 execution_counts, 20x python3, all valid JSON - born at zero, hard-gated); nbformat_minor is 4 corpus-wide so cell ids are optional under the files' own declared format and deliberately NOT gated |
| notebook_code_scan | NBC-01..25 | the notebook code-cell CONTENT dimension the .md AST gate family never sees - codeblock_syntax_scan and fence_import_check walk CommonMark fences in docs/**/*.md while .ipynb code cells are JSON, so a notebook teaching broken code ships to the platform crawler and the launcher runs it; NBC-01 a code cell whose joined source fails ast.parse (CB-01's per-fence guarantee applied per cell, 0-based cell indices in the file's cells list), NBC-02 an import root that neither resolves against the kurulu-stack nor belongs to the corpus class (fence_import_check's IC-01 judgment mirrored mechanism-for-mechanism: import_module with a verdict cache, dotted-ancestor class matching, relative imports skipped and counted), NBC-03..11 the unsafe family's twin born tick-702: the .md unsafe gates declare .ipynb outside the md universe while the launcher RUNS code cells, so bare-broad except (NBC-03, tuples included), pickle/dill load and yaml.load/unsafe_load/full_load (NBC-04), a plain eval/exec Name call (NBC-05, attribute calls and the safe_eval form stay silent), empty mutable defaults [] {} set() (NBC-06), os.system/os.popen and any shell=True (NBC-07), mktemp (NBC-08), trust_remote_code=True (NBC-09), open() without encoding (NBC-10, a splat stays silent), requests verbs without timeout (NBC-11), a credentialed provider key shape (sk-, ghp_/gho_/ghu_/ghs_/ghr_, github_pat_, AKIA, AIza, xox- forms - NBC-12), security material built from random.* with the security vocabulary attached at the call site (NBC-13, np.random stays the ML sampling universe), security material weak-hashed with hashlib.md5/sha1 and the vocabulary attached (NBC-14, vocabulary-free dedup/bucketing hashing stays out), and insecure TLS verification (NBC-15, a requests verb call carrying a falsy verify= constant, a .verify attribute assigned False/None, ssl._create_unverified_context(), or a verify_mode assignment of ssl.), and the legacy typing spellings (NBC-16, a from-typing import of the legacy names Optional/Union/List/Dict/Tuple/Set/FrozenSet/Type, a bracket form like Optional[str], or a bare -> Dict annotation - judged per-line on the joined source with first match winning per line, the family's first non-AST face deliberate, and strings and comments are NOT exempted - a docstring spelling also teaches the old idiom), and the deprecated-API spellings (NBC-17..21, the deprecated_scan DA-01..05 twin - a datetime.utcnow/utcfromtimestamp call, the removed HF use_auth_token= kwarg, the pydantic v1 @validator/@root_validator/parse_obj_as spellings plus the pydantic-imported .dict() call, the torch.cuda.amp namespace, or the torch_dtype= kwarg - the same per-line face as NBC-16 deliberate, first match winning per line in the DA rule order, and the #-split carve keeps comment teachings invisible), and the use_flash_attention_2= kwarg face (NBC-25, the deprecated_scan DA-06 twin born tick-1147 - deprecated since transformers 4.36, the modern attn_implementation='flash_attention_2' form the md corpus already teaches (8 faces / 6 files, the tick-1146 census), the same per-line face, DA rule order and #-split carve as the family), and the SQL-interpolation faces (NBC-22..23, the sql_interp_scan SQ-01/SQ-02 twin - an f-string carrying SQL text into an execute/executemany/executescript/read_sql/read_sql_query call directly or via a one-hop query variable, or the client-side merge by percent-formatting, str.format() or placeholder-free concatenation, with the Constant-plus-placeholder-plus-params form and the placeholder-carrying builder carved and the danger-marker escape mirrored per cell), and the Cypher-interpolation face (NBC-24, the cypher_interp_scan CI-01/CI-02 twin - an f-string whose literal part ends at ":" (a label/rel-type position) or at ".."/"*" (a variable-length path bound) carried into a run()/execute_query() call directly or via a one-hop query variable, with the int-cast and the allowlist membership guard carved as escapes and the danger-marker escape mirrored per cell) were invisible to the whole fleet - NBC-03..15 all AST-judged so a comment mentioning eval or a string carrying except: never fires; structural health stays NBH-03's jurisdiction - NBC silently skips what NBH flags and the NEG face is the designed cross-gate agreement, not a gap; the corpus class is born tick-691 from the probe census the census->classify->lock way (sentence_transformers, optimum, trl, chromadb - each declared by the corpus's own dependency surfaces: ENVIRONMENT-SETUP.md uv pip installs chromadb/sentence-transformers/trl, LAB-003 pins trl via uv add, 4102 teaches uv pip install optimum, SOL-001 pins sentence-transformers==6.1.0); born tick-691 at zero after the census's 2 real syntax defects drained the same tick (NB-203 cell 7 a quote-collision raw regex string terminating early, NB-703 cell 5 a literal backslash-n inside a list tail), and NBC-03..11 born tick-702 at zero over the drained corpus - the tick-702 census measured 4 real teaching-code defects across 3 notebooks (NB-204 cell 9 the empty mutable default, NB-205 cells 5 and 7 the bare excepts, NB-701 cell 3 eval plus broad except), all drained in-tick the NBT drain-and-lock way, hard-gated so neither class can ever regrow; NBC-12..14 born tick-703 at zero the NBM-06 way - the tick-703 census measured the closet CLEAN (0 provider shapes, 8 random.* producers all ML sampling with no security vocabulary attached, 0 md5/sha1 calls across the same 20 notebooks / 102 code cells), so nothing was drained - the extension locks the convention (credentials from the environment, randomness stays ML sampling, sha256 for real hashing) with the md twins' danger-marker escape mirrored per cell, hard-gated so the secret/crypto classes can never regrow; NBC-15 born tick-704 at zero the same born-at-zero way - the class has no md twin at all (invisible to the whole fleet on BOTH surfaces), and the tick-704 census measured the TLS-off closet clean (0 falsy verify= kwargs, 0 .verify assignments, 0 _create_unverified_context calls, 0 CERT_NONE assignments across the same 20 notebooks / 102 code cells), so nothing was drained - the extension locks the convention (certificate verification stays on in runnable code), hard-gated so the TLS-off class can never regrow; NBC-16 born tick-706 the drain-and-lock way - the md twin typing_legacy_scan (TL-01..03) walks docs/**/*.md python fences only while the launcher RUNS code cells, so the modernity doctrine's md-side drain (the epic modernized every docs fence to builtin generics and PEP 604 unions) had left the notebook layer unmeasured - the tick-706 census mirrored the TL judgment exactly (same three shapes, same per-line first-match order, docstrings and comments NOT exempted) and measured 24 real legacy spellings across 6 notebooks (10 bracket, 4 import, 10 bare), all drained in-tick the NBT drain-and-lock way (builtin generics, PEP 604 unions, the four from-typing import lines removed, each changed cell ast.parse-proven with zero legacy Names left for the NBE sibling), and the gate was born over the drained corpus, hard-gated so the legacy idiom can never regrow; NBC-17..21 born tick-707 at zero the same born-at-zero way - the md twin deprecated_scan (DA-01..05) walks docs/**/*.md python fences only while the launcher RUNS code cells, so the modernity doctrine's md-side drain (ticks 227, 228, 235, 347 and 639) had left the notebook layer unmeasured - the tick-707 census mirrored the DA judgment exactly (the five rule faces, the same per-line first-match order, the #-split carve keeping comment teachings invisible, the .dict() face activated per notebook by the pydantic import) and measured the closet CLEAN (0 utcnow/utcfromtimestamp faces, 0 use_auth_token kwargs, 0 pydantic v1 spellings, 0 torch.cuda.amp imports, 0 torch_dtype kwargs across the same 20 notebooks / 102 code cells), so nothing was drained - the extension locks the convention (the corpus teaches the 3.12+, transformers-5, pydantic-2 and torch-2.x surfaces only), hard-gated so the deprecated-API classes can never regrow; NBC-22..23 born tick-708 at zero the same born-at-zero way - the md twin sql_interp_scan (SQ-01/SQ-02) walks docs/**/*.md python fences only while the launcher RUNS code cells, and the tick-708 census imported the SQ judgment's own functions over the same 20 notebooks / 102 code cells and measured the closet CLEAN (SQ-01=0, SQ-02=0, 101 cells walked, 1 danger-marker skip, the walk's entry set absent from the notebook universe entirely), so nothing was drained - the extension locks the convention (bound parameters, never string-merged queries), hard-gated so the SQL-interpolation class can never regrow; NBC-24 born tick-709 at zero the same born-at-zero way - the md twin cypher_interp_scan (CI-01/CI-02) walks docs/**/*.md python fences only while the launcher RUNS code cells, and the tick-709 census imported the CI judgment's own functions over the same 20 notebooks / 102 code cells and measured the closet CLEAN (CI-01=0, CI-02=0, 101 cells walked, 1 danger-marker skip, the walk's entry set present at exactly 3 faces - all NB-701 agent-task .run() calls whose Name targets resolve to non-JoinedStr values, out of class), so nothing was drained - the extension locks the convention ($parameters bind values, never schema names, and cannot set variable-length path bounds), hard-gated so the Cypher-interpolation class can never regrow; NBC-25 born tick-1147 at zero the same born-at-zero way - the DA-06 md rule joined the deprecated-API family and the census measured use_flash_attention_2 absent from the notebook universe entirely (20 notebooks / 102 code cells: 0 live-code faces, 0 comment faces, 0 raw-byte hits, the modern attn_implementation= form likewise absent from notebooks), so nothing was drained - the extension locks the convention, hard-gated so the flash-attention deprecation class can never regrow |
| notebook_link_scan | NBL-01..03 | the notebook markdown-cell LINK dimension the .md link gate family never sees - linkcheck, link_case_scan, link_text_scan and casecheck walk docs/**/*.md while .ipynb markdown cells are JSON, so a link inside a notebook was invisible to every link gate; the tick-692 probe census measured the notebook layer link-free across every flavor - 20 notebooks / 122 markdown cells with 0 inline/image links, 0 reference-style definitions, 0 HTML anchors, 0 angle autolinks and 0 link-shaped literals in the 102 code cells (byte-verified with grep against the raw .ipynb files), against a .md corpus carrying 6175 gated links; the zero-link shape is the platform-safe shape - the launcher serves a notebook standalone, a repo-relative target breaks at serve time and an http target rots with no gate able to see it, so lesson navigation lives in the .md layer which every link gate already locks, and this gate locks that the notebook layer stays navigation-free; NBL-01 an inline or image markdown link in a markdown cell, NBL-02 a reference-style link definition, NBL-03 an HTML anchor or angle autolink; code cells stay stats-only (a link-shaped string that never renders is not a learner-facing link and a notebook teaching Markdown syntax would false-positive); structural health stays NBH-03's jurisdiction (NBL silently skips what NBH flags, the same designed cross-gate agreement NBC documents); born tick-692 at zero, hard-gated so the link class can never regrow |
| notebook_title_scan | NBT-01..02 | the notebook H1-title parity dimension the .md title gates never see - title_h1_parity_scan and the heading family walk docs/**/*.md while a notebook's title lives in JSON (the first markdown cell's first # heading), so a notebook whose open-broadcast title drifted from the docs/notebooks/README.md index was invisible to every title gate, and the index is what a learner (and the platform conversion) reads first; tick-693 measured the drift before locking it - 20 notebooks, 14/20 already carried exact H1 == README-link-text parity (the corpus convention), 6/20 had drifted (NB-204/301/303/401/601/701), and the drain realigned the README link texts to the notebooks' own H1 truth and the MASTER-INDEX title cells to the H1 minus the 'NB-NNN: ' prefix (the notebook_catalog_check README_ROW regex consumes the prefix before its title capture, so NC-02 compares README-minus-prefix vs MI verbatim and the drain keeps both green - notebook_catalog_check 0 findings post-drain); NBT-01 the first markdown cell's first H1 heading absent verbatim from docs/notebooks/README.md, NBT-02 the notebook carries no H1 at all (no # heading in the first markdown cell, or no markdown cell); H1 -> MI parity holds transitively for every id MI carries via NC-02; structural health stays NBH-03's jurisdiction (NBT silently skips what NBH flags, the same designed cross-gate agreement NBC and NBL document); born tick-693 at zero over the drained corpus, hard-gated so the title-drift class can never regrow |
| notebook_execution_scan | NBE-01..02 | the notebook EXECUTION-ORDER name-resolution dimension - the launcher runs each notebook top-to-bottom in a fresh kernel, so a Name load that resolves against neither the builtins nor the definitions accumulated from cells 1..N is a runtime NameError for the learner mid-lesson; notebook_code_scan proves the cells PARSE, nothing proved they RESOLVE; tick-693's naive census of this class was polluted (it collected only module-level Import/Assign/def targets and checked every Load against them - self, function parameters, for/with/comprehension targets and function bodies all surfaced as false UNDEF rows) and the class was deferred rather than gated fuzzy; tick-694 replaced the walker with a scope-aware module-flow pass and the census came back clean at 0 over the real corpus - the pollution was the walker, not the corpus; the walker contract: statements in order per cell, cells in order, definitions accumulated across cells (the launcher's exact execution model); definitions collected from Import/ImportFrom, Assign, AnnAssign, AugAssign (its target also checked as a read), def/class, For/AsyncFor targets, With optional_vars, if/try both branches (pragmatic); scope boundaries NOT descended (def/class/lambda bodies invisible; decorators, defaults and return annotations ARE checked - they run at module level); comprehensions are mini-scopes (generator targets collected first, iters/ifs/element checked against known | targets); Delete ignored; ACCEPTED = dir(builtins) + the IPython surface (display, get_ipython, run_line_magic, run_cell_magic, In/Out, the underscore caches, get_config/set_config) - tightened from the first probe set and re-measured at 0; NBE-01 a Name load that resolves against neither the accepted surface nor the accumulated definitions (the learner's NameError), NBE-02 an AugAssign target that does not pre-exist (x += 1 reads x); structural health stays NBH-03's jurisdiction and a cell failing ast.parse stays NBC-01's (counted, not resolved - the designed cross-gate agreement NBC/NBL/NBT document); born tick-694 at zero over the real corpus (20 notebooks / 102 code cells), hard-gated so the execution-order NameError class can never regrow |
| notebook_pip_scan | NBP-01..02 | the pip/uv INSTALL-DISCIPLINE dimension across notebook code cells - the corpus standard is uv (the user's own modernization doctrine and ENVIRONMENT-SETUP.md's installer): installs live in the setup doc, the launcher's environment is pre-provisioned, and a lesson cell mutating it is a side effect a fresh kernel cannot undo; the three existing uv gates (pip_uv_scan, uv_install_check, uv_workflow_census) walk docs/**/*.md only, so a !pip install torch inside a .ipynb code cell was invisible to every install gate while the launcher RUNS the cells; the census first, the census->classify->lock way: 20 notebooks / 102 code cells measured 0 standalone pip tokens and 0 uv add commands - the corpus convention 'install commands never appear in lesson cells' locked at zero; NBP-01 a standalone pip/pip3 token anywhere in a code cell's raw source (the boundary regex excludes pip-tools-style package names and pipx/pipeline identifiers; !pip install, %pip install, the bare form, subprocess strings, uv pip install and prose comments all carry the token - the measured convention locks them all out; a comment wanting to teach the distinction rephrases around it), NBP-02 an uv add command in a code cell (the same environment-mutation class on the modern tool; uv pip install already falls to NBP-01 via its pip token); deliberate raw-source scope: token-level, no AST, no SyntaxError skip (a pip install in a broken cell is still a pip install; cell syntax stays NBC-01's jurisdiction, structural health stays NBH-03's - silently skipped, the designed cross-gate agreement NBC/NBL/NBT/NBE document); the boundary-regex tightening face: the first draft's right boundary (?!\w) caught pip-tools (a hyphen is not a word char) making the docstring's own boundary claim false - the token regex tightened to (?<![\w.-])pip3?(?![\w-]) and the faces re-measured on the probe set (6 fire / 8 silent) before the NEG ran; born tick-695 at zero over the real corpus (20 notebooks / 102 code cells), hard-gated so the lesson-cell install class can never regrow |
| notebook_mdcell_scan | NBM-01..07 | the MARKDOWN-CELL RENDER-SURFACE dimension across a notebook's markdown cells - the launcher (and the platform conversion) RENDERS the prose cells, while the fence family (codeblock_syntax_scan, fence_import_check, ...) and the HTML/heading gates walk docs/**/*.md only - .ipynb markdown cells are JSON, so a fenced code block, a raw HTML tag or a broken heading hierarchy inside a notebook's prose was invisible to every .md render gate; the census first, the census->classify->lock way: 20 notebooks / 122 markdown cells measured 0 fenced code blocks and 0 raw HTML tags (inline-code spans stripped first - backticked constructs render literally and are safe; tick-696), and tick-697's census measured 142 headings with 0 H1s outside the title position, 0 level skips and 0 setext underlines - lesson code lives in CODE cells where NBC/NBE prove it, prose stays pure markdown; NBM-01 a fenced code block in a markdown cell (a backtick or tilde fence at line start, up to 3 spaces of indent - a prose fence renders but no gate proves it parses), NBM-02 a raw HTML tag in a markdown cell (checked AFTER inline-code spans are stripped - an unknown tag like <model> passes through markdown-to-HTML and can render INVISIBLY; prose escapes placeholders with backticks), NBM-03 an H1 heading anywhere but the canonical title position (the FIRST markdown cell's first H1 - NBT-01/02 pin its content, this pins position and uniqueness; a second H1 renders as a second page title), NBM-04 a heading-level skip across the notebook's md-cell heading sequence (a heading more than one level deeper than the previous - RH-02's own rule; the cells render as one document, an h2->h4 jump orphans a section), NBM-05 a setext-style heading (an = or -- underline directly under a non-blank line renders the line above as an h1/h2 in CommonMark - an invisible second title; a horizontal rule needs a blank line above), NBM-06 a pipe-table row ragged against its block's delimiter row (GFM sizes the table by the delimiter row and pads or drops ragged rows silently - the same content-loss class TH-01 polices across docs markdown, and the platform renders the md cells so the same loss reaches the learner here; inline-code spans are stripped before counting, a backticked pipe renders literally, a backslash-escaped pipe is cell content, and per-block consistency keeps adjacent tables of different widths legal), NBM-07 an HTML comment opener in a markdown cell (a raw comment opens a raw-HTML block and everything through its closer renders invisibly - the same class HC-01 polices across docs markdown, and NBM-02's tag class cannot match the bang opener - a letter after the angle bracket is required - so the comment class was invisible to both universes; inline-code spans are stripped first and 4-space-indented lines are skipped, an indented code block renders literally); deliberate scope: markdown cells only - code cells are NBC/NBE's jurisdiction, structural health stays NBH-03's (silently skipped, the designed cross-gate agreement); NBM-01..02 born tick-696, NBM-03..05 born tick-697 and NBM-06 born tick-701, all at zero over the real corpus (tick-701's census measured 0 pipe-table blocks / 0 rows in the md cells - tables live in docs, not notebook prose), hard-gated so the class can never regrow; NBM-07 born tick-705 at zero the same born-at-zero way - the census measured 0 comment-opener lines and 0 indented carve-surface lines across the same 20 notebooks / 122 md cells, so nothing was drained - the extension locks the convention (notebook prose carries no HTML comments, they live inside docs fences where HC-01 polices them), hard-gated so the comment class can never regrow |
| table_health_scan | TH-01 | the PIPE-TABLE STRUCTURAL-HEALTH dimension across docs markdown - a GFM pipe-table is sized by its delimiter row and a ragged row renders as empty-cell padding or dropped excess, silent content loss on the platform - every row of a real table block (a header line plus a dash-only delimiter second line) must carry the delimiter row's separator count; inline-code spans are stripped first and a backslash-escaped pipe is cell content, both measured conventions, and consistency is per-block so adjacent tables with their own widths stay legal - born tick-699 after the fleet's own notebook_execution_scan registration row rendered broken (an unescaped prose pipe minted a phantom fourth cell - the registry self-catch pattern repeating after tick-696's raw-tag drain), drained in-tick by escaping the pipe, census 536 blocks / 4374 rows / 1 real ragged face removed, born at zero over the drained corpus with fenced pipes, span pipes and escaped pipes all silent |
| html_comment_scan | HC-01 | the HTML-COMMENT RENDER-VISIBILITY dimension across docs markdown - a raw HTML comment outside a fenced code block becomes a CommonMark raw-HTML block and everything through its closer renders INVISIBLY on the platform, so an editorial note, a to-do note or commented-out prose never reaches the learner - the same invisibility class render_hygiene_check polices for visible raw tags, whose tag pattern cannot match the bang-opener, so the comment class was invisible to the whole fleet until this gate; every fence-external line whose inline-code spans are stripped must carry no raw comment opener (the four-character opener prefix, four-dash form included), a multiline comment is caught at its opener line where the invisibility starts, a closer alone is harmless text, and a four-space-indented line is an indented code block in CommonMark so it renders literally and stays visible - measured silent; born tick-700 at zero over the real corpus (408 docs, 126374 fenced lines, 0 indented lines) after the census classified all 18 corpus comments as fenced teaching examples - template teaching, diagram annotations, HTML file examples - so the convention comments only inside fences is real and the gate locks it |
| changelog_summary_check | CS-01..05 | the changelog's three release surfaces stay synchronized - the "## [X.Y.Z] - DATE" sections, the Version Summary table, and the bracketed reference-link definitions; meta_claims_check locks gate counts and linkcheck sees no broken link (an undefined reference renders as literal text), so nothing owned these index surfaces. CS-01 every release section has a summary row, CS-02 every row a section, CS-03 date parity, CS-04 the reference definition exists, CS-05 order parity; born tick-552 at the maximal finding - 1.3.0 carried none of its own index surfaces while 1.2.0/1.1.0/1.0.0 carried both, drained in the same tick |
| lab_index_parity_check | LI-01..06 | MASTER-INDEX's "### Labs" table mirrors every lab's front-matter contract verbatim - LI-01 id-set parity both directions, LI-02 duration equals Estimated Time, LI-03 title equals the Title with its "LAB-NNN: " prefix stripped; nothing locked the mirror, so the index's Duration column drifted from the labs' own Estimated Time (12 of 15 rows, the index summing ~53 hours against a declared ~85 with LAB-009 reading 4 hours against 12) and titles abbreviated away their full forms (10 of 15, "Docker + LLM" against "Docker & LLM Fundamentals"); born tick-553 at 22 findings, drained in the same tick by rewriting the 14 drifted rows to front-matter truth; LI-04 joined tick-564 locking the "### Labs (N files: A labs + B solutions)" header arithmetic - A+B equals N, each part equals its own disk count (the labs directory's LAB-*.md, the solutions directory's *.md); the numbers were census-proven true (30 = 15+15) but unlocked, LI-01..03 read the table rows and never the header; LI-05/LI-06 joined tick-572 locking the lab's own time budget - LI-05 every "## Exercise N" / "## Part N" heading carries a duration, with headings marked "(Optional)" exempt (the born case: LAB-006's untimed "Part 8: Challenges (Optional)"), so a stripped duration cannot silently undercount the sum LI-06 audits, and LI-06 the front-matter Estimated Time equals the ceil of the lab's own Exercise/Part duration sum to the whole hour (LAB-002's 230 minutes of parts -> 4 hours, LAB-009's 690 -> 12), with "Final Challenge" headings deliberately outside the sum (bonus work past the core budget, LAB-001..005 only) and checklist-style labs with no Exercise/Part headings (LAB-000) outside the check entirely - the born census first read 10 of 15 labs as mismatching only because it compared the raw sum against the FM hours; all 15 obey the ceiling exactly, the mismatch was the convention itself, and the lock was born at zero findings |
| tutorial_index_parity_check | TI-01..06 | MASTER-INDEX's "### Tutorials" table locks to every tutorial's front matter - TI-01 difficulty parity, TI-02 Estimated Time completeness and parity, TI-03 Prerequisites completeness and normalized-set parity (TUT-NNN expands to TUTORIAL-NNN, "Phase N" to PHASE-N, None-shaped cells to the empty set), TI-04 every item must normalize (free text like "Python basics" is a finding - prerequisites are ids), TI-05 id-set parity both directions; nothing locked the two sides, so 13 of 15 front matters carried no Estimated Time and 13 no Prerequisites (the index's Duration/Prerequisites columns floated with no machine-readable counterpart), TUTORIAL-006's index difficulty said Advanced against an Intermediate body, and four durations drifted against evidence (the index said 4 hours where TUTORIAL-006's body says 60 minutes and TUTORIAL-007 says 1 hour); the mirror follows the evidence-backed richer side per field - the opposite of the lab lock, where the front matter was the contract; born tick-554 at 41 findings, drained in the same tick - front matters seeded from the evidence-backed values, drifted index cells corrected; TI-06 joined tick-564 locking the "### Tutorials (N files)" header to both the table's own row count and the tutorials directory's TUTORIAL-*.md count - census-proven true (15 = 15 rows = 15 files) but unlocked, TI-01..05 read the table rows and never the header |
| cheatsheet_index_parity_check | CI-01..04 | MASTER-INDEX's "### Cheat Sheets" table locks to the 13-file cheat-sheet fleet - CI-01 id-set parity both directions (row ids QUICK-REF-VN normalize to QUICK-REF-VOLUME-N), CI-02 the Topic cell equals the front-matter Title verbatim after stripping its "CHEAT-SHEET-NNN: " or "Volume N: " prefix (the lab lock's verbatim-mirror convention - abbreviations are findings), CI-03 the section header's file count equals the table's row count, CI-04 every row's link basename names its own file (a link to a different existing cheat sheet resolves cleanly for linkcheck yet misroutes the learner); born tick-555 at the maximal discoverability finding - CHEAT-SHEET-006 existed on disk, in File Counts (13) and SITEMAP but its row was never added (12 rows under a "13 files" header, the newest cheat sheet invisible to the one surface learners browse first - linkcheck cannot see orphans), alongside 11 abbreviated Topic cells; drained in the same tick |
| project_index_parity_check | PJ-01..06 | MASTER-INDEX's "### Projects" table locks to the 7-file capstone fleet - PJ-01 id-set parity both directions, PJ-02 the Project cell equals the front-matter Title verbatim after stripping its "CAPSTONE PROJECT-NNN: " prefix (the lab lock's verbatim-mirror convention - abbreviations are findings), PJ-03 the section header's file count equals the table's row count, PJ-04 every row's link basename names its own file (a link to a different existing project resolves cleanly for linkcheck yet misroutes the learner), PJ-05 every row carries the front-matter Difficulty verbatim (a 4-column row is a finding - the column exists since tick-556), PJ-06 the Duration cell is "N weeks" or "N-N weeks" (projects deliberately carry no Estimated Time and the weeks form stays an index-side planning surface - seeding one would poison the pacing census's hour/minute arithmetic); born tick-556 at 13 findings - 6 of 7 Project cells abbreviated away the front-matter Title and every row lacked the Difficulty the front matter declares (the inverse of the tutorial lock: the front matter is the richer side, so the index gains the column); drained in the same tick |
| small_index_parity_check | SG-01..04 | MASTER-INDEX's six small resource tables (Career Guides, Comparisons, Industry Applications, Use Cases, Solutions, Diagrams) lock to their directories' files - SG-01 id-set parity per table in both directions, SG-02 every row's link text names its own target (a wrong-but-existing link resolves cleanly for linkcheck yet misroutes the learner), SG-03 the section header's file count equals the table's row count, SG-04 the description cell equals the front-matter Title verbatim (this fleet's title conventions are heterogeneous - CP-NNN:/IND-NNN:/UC-NNN:/SOL-NNN: prefixes and natural "Title: Subtitle" shapes on the diagrams - so the mirror is deliberately prefix-free, quotes stripped; the "Bridges & Additional Resources" table is out of scope on purpose: it lists directories, not files); born tick-557 at 21 findings - all 21 description cells abbreviated away the front-matter Title, drained in the same tick (the gate's own first hour caught a bare ^### section-stop running the following ## Meta Documentation table's 10 rows into Diagrams, fixed to ^##+) |
| project_prereq_parity_check | PP-01..03 | the projects fleet's supporting guides lock to their projects and their planning surface - PP-01 every PREREQUISITES-NNN.md's front-matter Document ID matches its filename and its **For:** line links PROJECT-NNN and resolves to a real project file inside the projects directory, PP-02 the target project body links back to its walkthrough (the walkthrough links forward; navigation is not one-directional), PP-03 the MASTER-INDEX ### Projects section body links every supporting guide in the directory (every *.md that is not PROJECT-NNN and not templates/); the project bodies' own inline prerequisite lists stay out of scope - legacy short ids like 7101: ReAct Loop System are prose shorthand that resolve to real phase7 files linked elsewhere in the same body; born tick-558 at 5 findings - PROJECT-001/007 carried rich inline prerequisite sections (tutorial/lab links) but never mentioned their own dedicated walkthroughs, and none of the three supporting guides (PREREQUISITES-001, PREREQUISITES-007, SETUP-GUIDE) had a MASTER-INDEX row, so a learner planning their weeks from the table could not know the walkthroughs existed; drained in the same tick - back-links at the head of both projects' ## Prerequisites sections and a Supporting guides list under the MASTER-INDEX Projects table |
| fleet_count_parity_check | FC-01..07 | the count claims a learner plans from lock to disk - FC-01 every MASTER-INDEX ### File Counts row equals its disk definition (the definition map lives in the gate: Experiments counts experiments/EXP_*.md excluding TEMPLATE, Phase Documents every .md under docs/phases, Meta Docs top level only - its assessment/ subtree is not a doc fleet), FC-02 the TOTAL row equals the category sum, FC-03 the SITEMAP ## Experiments (N files: M experiments + 1 TEMPLATE) header equals the directory, FC-04 the README <summary> count equals disk, FC-05 the README Experiments section lists every EXP file in both directions (orphan or ghost), FC-06 each group header equals its own block, FC-07 the seven VOLUME-*.md ## Volume N Statistics tables equal their own volume's curated path - Core/Optional Documents equal the Core/Advanced checklist bullet counts, Experiments/Labs/Tutorials/Cheat Sheets equal the unique EXP_/LAB-/TUTORIAL-/CHEAT-SHEET- ids the volume body references (not directory prefixes), Projects either the fleet id the volume references (Volume 1) or its own Capstone section's three ### Project headings (Volumes 2-7), every referenced id resolving on disk; 0000-LEARNING-PATH.md's experiments table is out of scope on purpose - a deliberate 6-row per-phase highlight subset, not an inventory; born tick-559 at 16 findings - the README summary said 46 against 47 on disk and 15 experiments (EXP_1102, EXP_1403/1404, EXP_1503, EXP_4103, EXP_5102/5202/5301/5302, EXP_6102/6202/6302, EXP_7102/7202/7301) were listed nowhere on the README surface, the CHEAT-SHEET-006 orphan class - every link resolved so linkcheck could not see invisible files; drained in the same tick - the 15 placed in their prefix groups and the summary corrected to 47; FC-07 joined tick-565 born at zero after a definition-discovery census - the tables looked drift-ridden (VOLUME-3 "4 experiments" against 6 EXP_3xxx on disk, "3 projects" with zero PROJECT references in Volumes 2-7) but every claim proved true under the undocumented definition its surface secretly follows, now on record and locked; negatively tested 7 fixture runs (count drift, row-with-zero-refs, capstone drift, checklist drift, dangling id, form loss, row removal), each firing exactly 1 |
| sitemap_listing_parity_check | SL-01..05 | the SITEMAP's listing identities lock to disk - SL-01 fleet-section listing parity both directions across 19 fleets (every bullet entry resolves to a member of its section's documented fleet - no cross-fleet misroute or ghost; every fleet file listed exactly once in its own section - no orphan or duplicate), SL-02 corpus completeness (every docs/**/*.md plus the root README is a SITEMAP link target - the index of record reaches everything a learner can be assigned; SITEMAP.md itself excluded, self-listing is circular), SL-03 module arithmetic (each phase module's "N lessons, M guides" equals its non-boilerplate bullet entries - boilerplate is PREREQUISITES/README/assessment PRACTICE/QUIZ, which the lesson/guide split deliberately does not count), SL-04 self-explaining header arithmetic (every registered fleet header keeps the "(N files: A x + B y)" decomposition form - A+B equals N and each part equals its own disk definition; Experiments is FC-03's territory, the Meta & Reference suffix is prose-only since its 9+2 split is a curated cross-directory set no glob expresses); the Meta & Reference, Reference Configuration, Case Study Appendix and Getting Started sections stay out of the SL-01 fleet map on purpose (mixed-family, partial or curated listings - their counts are SC-locked, their reachability SL-02-locked); born tick-560 census-proven clean at zero - sitemap_claims_check already locked every count (header vs entries, header vs disk, statistics block), the identities behind the counts were unlocked: a wrong-but-existing link, a listed-twice file and an unreachable doc are invisible to count parity; SL-04 joined tick-561 - the MI-vs-SITEMAP census over 14 fleet pairs found 4 definitional divergences where each surface was true under its own definition (Notebooks 20 vs 21, Capstone Projects 7 vs 10, Experiments 47 vs 48, Meta Docs 20 vs 11) and the three bare SITEMAP headers drained to the self-explaining form (Experiments' implicit-1 "+ TEMPLATE" normalized to "+ 1 TEMPLATE" for one uniform convention) so a future drift cannot hide behind a bare count; SL-05 joined tick-563 - the header-form census found 7 of the 29 counted headers carrying the bare "(N)" form (Tutorials/Labs/Lab Solutions/Cheat Sheets/Interactive/Troubleshooting/Case Studies) against the corpus convention SC's own docstring documents ("## Section (N files)"), drained to "(N files)"/"(N file)" in the same tick, and SL-05 locks the form so every counted header a platform parser reads opens "(N files" (singular "(N file" at N==1, suffix free - the numbers never depended on the form, SC-01 counts every "(N" header under any form) |
| footer_fm_parity_check | FF-01..04 | the EOF metadata footer - the bold-field block after the final --- separator - must not contradict the front matter it visually mirrors: FF-01 the footer Difficulty word (stars stripped) equals FM Difficulty verbatim (a footer with no FM Difficulty fires as a dangling claim), FF-02 the footer star count equals TIER_STARS[FM tier] - the star map IS the tier index, proven by the 23 born-clean carriers (13 solutions + 12 templates match word-for-word and star-for-star), and the corpus FM vocabulary is exactly three tiers (Advanced 220 / Intermediate 117 / Beginner 71) so an "Expert" claim is illegal vocabulary, not a stricter tier, FF-03 the footer Time Estimate/Duration equals FM Estimated Time verbatim, checked only when the FM carries one - all 12 templates have footer-only time, the legal sole carrier an unconditional rule would false-fire on, FF-04 footer Prerequisites on an empty FM list must be exactly "None" (casefold, no "None!" flourish - flourish belongs in prose) and on a non-empty list every bracketed token must appear there (bracket-form and omission both findings); conditional by design: 10/15 labs, 13/15 tutorials and SOLUTION-LAB-010/011 carry no footer at all, so a presence mandate would be fiction; the footer region is fence-aware (a fenced example cannot forge fields), blockquote lines are skipped (callout prose is not metadata), and body-header summary blocks under the H1 (TUTORIAL-000's **Time:** 15-20 hours) stay out of scope as the elaboration layer - ranges and advice are pedagogy, the footer is the budget; born tick-573 at 14 findings across 6 files (LAB-009/011/013 ranged 8-10/6-8/5-6 hours against LI-06-proven 12/9/7 AND claimed the Expert tier, LAB-012/014 ranged 4-5 against 7/6, TUTORIAL-000 ranged 15-20 hours, carried a starless tier and flourished "None!"), drained the same tick in 11 line edits; negatively tested 14 runs (9 real-file: pristine control, time-drift FF-03, Expert-drift FF-01+02, tier-drift FF-01+02, blockquote immunity, fence immunity, legal partial footer, wrong partial footer, post-restore control - plus 5 fixture runs covering the FF-04 branches and the dangling-Difficulty case that have no corpus carrier) |
| empty_section_scan | ES-01 | every heading owns content: a section is empty iff nothing but blanks, HRs, blockquote markers and HTML comments sits between its heading and the next same-or-higher-level heading (or EOF) - a filled child fills its parent, so ## Questions + ### 1. containers are legitimate. Fence model is structure_lint's length-aware one (a bare closing fence at least as long as its opening run), so 3-backtick examples inside the 4-backtick super-fences cannot mis-toggle and surface fence-interior heading lookalikes; born from the tick-277 census whose 8 findings were all same-level children under container headings (## Part 1 + ## 1.1) - fixed by re-leveling 123 headings across 3 files, baseline 0 |
| emoji_shortcode_scan | EM-01 | gemoji shortcodes (:rocket: form) banned in prose: the corpus idiom is literal emoji (census: literal dominates by orders of magnitude across 173 files) and a platform load step would need a shortcode table while literals render everywhere; inline code is scrubbed, so technical lookalikes (:memory: SQLite URI, :server: K3s token - both fence-interior anyway) stay invisible; born from the tick-279 census that found 82 shortcodes in 11 files including the invalid :star3: rendering as raw text on GitHub - normalized to literal emoji, baseline 0 |
| fence_label_scan | FL-01/02 | fence info-strings must be lowercase and present: code gates key on the exact lowercase label, so a Python case variant or a bare unlabeled open is code every gate silently skips (an audit hole, not a style nit); every fence carries an honest label - text is always legitimate for prose dumps; born from the tick-280 census (4243 open fences, 21 distinct labels, already all lowercase and labeled), baseline 0 |
| setext_scan | SE-01..03 | divider and setext hygiene: an underline run (---/===) directly below a non-blank line is a setext heading in every renderer - invisible to the ATX-only outline gates, so the silent heading escapes the TOC and platform nav tree; bare === renders as literal text (never a thematic break), and the divider idiom is --- exclusively (census: 3008 of 3008); born from the tick-281 census that found 7 doubled dividers - one copy-paste artifact of the footer-nav template across 7 files, fixed by deleting the duplicate line, baseline 0 |
| title_h1_parity_scan | TH-01..03 | frontmatter Title == first ATX H1: manifest_export takes the platform nav label from Title, the rendered page title is the first H1, so drift means the nav tree names a different page than the one that opens; fix is Title := H1 verbatim; born from the tick-283 census (89 lesson docs where the NNNN: id prefix lived only in the H1), baseline 0 |
| fence_class_scan | FC-01 | every fence label must be classified: fence_label_scan locks that a label exists, this locks that it is owned - 5 parser-validated classes (python/bash/json/yaml/mermaid, each with a syntax judge) plus 16 explicitly accepted unvalidated classes (text/markdown prose, dockerfile/powershell/nginx/cypher/cuda/promql/cron/gitignore operational config, html/typescript/tsx/sql/cpp/c teaching samples); anything else is invisible code - a toml fence would skip every data-block gate and a platform load step could not tell code from prose; a new class lands here as a finding: teach a parser gate or classify it; born from the tick-285 label census (21 labels across 4244 fences), baseline 0 |
| lesson_id_scan | LI-01/02 | every lesson doc (docs/phases/<phase>/<NNNN-module>/NNNN-*.md, 114 files) carries its filename's own NNNN: id as the prefix of both the frontmatter Title and the first H1: the id is the stable platform join key across filename, manifest nav label and rendered page; title_h1_parity_scan already forces Title := H1 so the prefix lives in both faces or neither, this locks the prefix itself - resource_id_check is the same discipline for the 43 family resources; born from the tick-287 census (114/114 clean), baseline 0 |
| doc_id_check | DD-01 | corpus-unique Document ID: manifest_export copies the frontmatter Document ID into the platform manifest's primary id field, so two docs carrying the same id join-collapse into one nav entry; only cross-corpus uniqueness is enforced (short-form idiom in scope); born from the tick-328 census (408/408 distinct), baseline 0 |
| action_version_scan | AV-01 | every uses: owner/repo@vN pin on any line of a docs/*.md file must name an action whose MAJOR version matches the registry - stale sample pins teach deprecated workflows |
| unicode_ws_hygiene_scan | UW-01 | invisible/control characters in prose (zero-width space/joiner/non-joiner, word joiner, figure/narrow no-break spaces, bidi controls, NBSP variants): they render as nothing on GitHub but corrupt search, copy-paste and platform parsing |
| fence_import_check | IC-01 | every import in every ```python fence resolves against the kurulu-stack via importlib+ast - the langchain_census (LC-01) generalization to all packages: an import that ModuleNotFoundError's as written fails the gate; multi-line parens, semicolons and as-aliases parsed, dotted-submodule fallback; alternative/3p stacks and lesson-local fragments live in ACCEPTED_PREFIXES (census 424 packages / 125 modules, allowlist locked tick-325, baseline 0) |
| fence_exec_gate | EX-01 | the content-testing chain's fifth rung - EXECUTION, born at zero: syntax (CB-01), imports (IC-01), names (NC) proved, now every python fence actually runs (fence_exec_census report-mode, one subprocess per file, PYTHONUTF8=1 learner baseline) and any NEW non-clean outcome fails: a fence that newly raises, hangs (fence-anchored via the runner heartbeat), crashes the runner, or dies on the environment. Pre-existing census rows (env-gaps, by-design hangs, service-needing fences, interactive demos, adjudicated CODE-SIGNALs) live in scripts/qa/accepted_exec_census.json with per-row adjudication notes - the INTENTIONAL-DEMO tagging schema; FLAKY_FAMILY {TIMEOUT, CODE-SIGNAL:RuntimeError} interchangeable at an accepted line (disk-bound datasets-writer flips os-error-112/timeout run to run), one retry on fresh hangs (load-flake), improvements pass with report, --update re-blesses after review; unchanged corpus is stat-only (mtime/size fast path) |
| census_note_gate | CN-01/02 | every accepted census row carries its adjudication note (CN-01: missing or empty text - an unexplained acceptance the next reviewer re-litigates) and every note references an accepted row (CN-02: orphan annotation documenting a fence that already drained) - makes the accepted_exec_census.json _meta "must be adjudicated before fence_exec_gate runs" contract mechanical instead of a hand audit; born tick-544 after 3501@162's TIMEOUT row shipped with an empty note for many ticks, baseline 0/0 at birth (556 rows / 556 notes) |
| resource_ref_check | RR-01 | FAMILY-0NN references in prose must exist on disk: a pointer to a non-existent resource id is a dead claim linkcheck cannot see; the valid-id set derives from the same disk glob as resource_id_check (no roto); born from the tick-327 census (1316 refs / 43 ids / 0 out-of-range), baseline 0 |
| fence_variant_check | PY-01 | loaded-but-never-defined near-miss names in python fences: a bare name LOADED in a fence, defined nowhere in its scope, yet a lexical variant of a name that IS in scope (case-equal, length-aware Levenshtein, word-prefix) - the silent NameError class; lambda-closure chains, module fallbacks, dunder exclusions and (rel,name)-keyed accepts modeled; born from the tick-331 census, baseline 0 |
| fence_variant_check_module | PY-02 | module-level face of PY-01 (names LOADED outside any function/class/lambda - PY-01's declared out-of-scope region), same predicate at module granularity; born from the tick-334 census, baseline 0 |
| bash_vars_check | BB-02 | undefined shell variables in bash fences: a plain $VAR or bare-braced ${VAR} load with no assignment in the fence/same-document/builtin/systemd Environment=/os-release source set; ${VAR:-default} guards are the designed idiom and report nothing; born from the tick-336 census, baseline 0 |
| uv_install_check | UV-01 | plain pip install outside the uv-first curriculum standard (pip/pip3/python -m pip in bash/sh/shell/dockerfile fences); the lookbehind does not report the uv pip install interface; (rel,line)-keyed accepts for documented fallbacks (conda antiexample, pip bootstraps, notebooks); born from the tick-337 census, baseline 0 |
| term_consistency_scan | TC-01/TC-02 | one canonical brand spelling per term, both hard: TC-01 bare HuggingFace vs canonical Hugging Face (66 sites in 37 files drained tick-401, hard since; identifier continuations like Embeddings/H4/TB excluded); TC-02 prose-lowercase ollama (hard since 2026-09-30: the four report rows were all legal literals - quoted terminal-error text, FM tag-list entries, quoted binary headings - so frontmatter and quoted spans moved into the predicate, zero doc edits; canonical prose fix 'Ollama'); TF/LangChain/PyTorch/OpenAI measured 0 at birth tick-400 |
| front_matter_census | FM-01..06 | front-matter integrity as platform metadata: every doc carries the closed 5-key block (Document ID / Title / Last Updated / Status / Difficulty), Status enum {Complete}, Difficulty enum, ISO dates with a future-date guard, Phase/Module path cross-checks; enum widening lands in the same commit as the value change; born at 0/408 (KW-03), hard from birth |
| tag_vocabulary_census | TV-01..03 | closed Tags vocabulary (platform filtering + related-content navigation): TV-01 unknown tag vs WHITELIST (VARIANTS canonicalizer map), TV-02 duplicate tag within one doc, TV-03 non-canonical variant of a whitelisted tag; born from the tick-403 census (111 docs / 216 tags / 0 dup / 0 case), TV-03 sites drained tick-404, hard since; a new tag lands in the same commit as the whitelist entry; extended tick-456 with 27 genre/facet tags for the TG-04 corpus-wide drain (vocabulary 211 -> 238: one filter facet per directory - lab/solution/tutorial/cheatsheet/project/template/volume/assessment/use-case/career/diagram/comparison/enterprise/industry/...) and TV-01 caught the batch's own 'industry' tag as unknown the same tick (it had used 'industry' while only 'manufacturing' was whitelisted) - the gate adjudicating its own drain is the injection test working |
| tags_coverage_check | TG-01..04 + TS-01 | Tags coverage + syntax, all five hard: TG-01 lessons 93/93 (born 2026-09-30 at 6 missing, drained from sibling pools); TG-02 guides 24/24 (12-gap sibling-pool drain); TG-03 meta docs 146/146 (nav-node standard decided same day: module README/PREREQUISITES = genre tag + sibling lessons' top-2 pool tags, phase README/CHECKPOINT = genre tag + phase top-3 pool tags - nav nodes are platform PAGES, the entry points tag search should surface); TS-01 canonical syntax Tags: ['tag-one', 'tag-two'] - census 242 quoted vs 13 unquoted, 89 docs normalized (79 first pass + 10 BRACKETLESS phase2 lines Tags: a, b that the first normalizer could not parse, surfaced by TS-01's own first run); TG-04 born tick-456: everything OUTSIDE docs/phases must carry Tags too - census found 148 docs (00-META / learning-resources / volumes / comparisons / use-cases / industry / enterprise-solutions / diagrams / notebooks) with only 5 tagged; 143 gaps + 3 genre-less docs drained same tick with a genre-first mapping table (genre facet per directory + 2-3 subject tags from phase-sibling pools), 145/145 since, hard from birth (drain landed before the gate) |
| front_matter_scan | FS-01/02 | front-matter presence + the six-field standard, all hard: FS-01 every docs/**/*.md opens --- at line 0 and closes within 40 lines; FS-02 the block carries all six standard fields (Document ID / Title / Last Updated / Status / Difficulty / Tags - each value-gated elsewhere; a field-NAME variant like Doc-Title: passes the canonical name's value gate and dies here). Born tick-457 at 408/408: closes the coverage gates' blind spot - a doc committed without front matter is invisible to TG/TS/TV (fm_tags None -> skip), so presence itself is the contract. KW-03 pattern: birth census falsified the gap hypothesis (third measure-before-repair), gate locks the clean state |
| difficulty_badge_scan | BD-01 | where a doc renders a **Difficulty:** body badge it must mirror the FM Difficulty exactly (canonical 1/2/3 stars + FM band); no badge is fine - FM is the gated data, the badge is optional decoration that must never lie. Born tick-457: census found 87 violating sites in five rot classes - dead-enum badges (4-5 stars / 'Expert' text from the level difficulty_census retired tick-412), band mismatches where mass-added FM defaults contradicted original badge intent (all 12 project templates FM=Beginner, badges Beginner..Advanced), starless correct-text badges, phase-hub range badges ('Intermediate to Advanced'), 'Absolute Beginner' free-text. Drain policy per class: dead-enum -> Advanced; content docs kept badge intent with FM moved to the badge's ceiling band; assessment quiz/practice + 00-META guides kept FM with badge moved. Reading-time census same tick: 0 drift >50% - claimed times honest. Renamed tick-577 DB-01 -> BD-01: the DB- namespace belongs to datablock_syntax_scan's json/yaml fence census (DB-01/02) - two hard gates sharing one code family made anchored finding filters and docstring cross-references ambiguous |
| course_card_check | CC-01..33 | the module README course card must not lie about its lessons, all hard: CC-01 README front-matter Difficulty equals the max tier of the module's lessons (Beginner=1/Intermediate=2/Advanced=3, the FF-02-proven star map; lessons = module-dir *.md minus README minus PREREQUISITES - the PREREQUISITES doc states entry expectations, not lesson content); CC-02 Module Documents table star cells (U+2B50 count) mirror each target's FM tier, CC-03 the duration cell mirrors the target FM Estimated Time minute-exact (both skipped for out-of-vocabulary or FM-less targets - FV-07 owns the enum; an empty Time cell fires only when the header promises the column, the LI-05 class); CC-04 every lesson basename linked somewhere in the README (the CI-01 class: on disk but invisible from its own module index); CC-05 every lesson has a row where a Module Documents table exists (extra guide rows tolerated). Order-agnostic columns (3500 renders Time before Difficulty), fence-aware, dead row targets left to linkcheck. Born tick-576 at 35 findings - 22 of 33 cards carried 775f898 boilerplate contradicting max lesson tier (1100 a Beginner card over Intermediate lessons, 3100 Beginner over Advanced), 10 star cells and 2 time cells drifted from target FM, 7300's table omitted lesson 7302, and 2 body badges mirrored the drifted FM; the drain obeys the 11 curated cards already satisfying CC-01 - the contract is the majority's convention, not an invention. CC-06 born tick-578: the card's FM Estimated Time must exist (the platform catalog reads one time budget per course) and equal the ceil of its lessons' FM Estimated Time sum to the whole hour - the LI-06-proven parts-sum arithmetic lifted to course scope; the census found 29 of 33 cards carrying no FM ET at all and the 4 boilerplate carriers (2100/2200/2300/2400 at 12/18/28/37 hours, born 775f898) overshooting every computable source, so the drain wrote the ceil lesson sum into all 33 cards (29 insertions, 4 corrections - every sum whole hours); an unparseable card value fires and the equality is computed only when every lesson carries a parseable FM ET; CC-07 born tick-579 as a zero-drain lock in the PQ-06 shape: every lesson must carry a parseable FM Estimated Time ('N hours' or 'N minutes' - the budget the platform renders per lesson), so CC-06's equality precondition is an invariant instead of a silent skip and the gap itself is the finding listed per module - the census read 93/93 module lessons clean (7200-tools' single 3-hour lesson up to 4400's 31-hour family), a stripped line and a range-form value each fire exactly one CC-07 with CC-06 kept silent (never double-reported), and a minute-equivalent legal form ('180 minutes') stays green; CC-08 born tick-580 as the second zero-drain lock in the same shape: every module dir must be linked from its phase README (any link form, fence-aware) - the CC-04 invariant one level up, phase pages being the platform's course browse list, so a module dropped there ships invisible from the catalog while every card beneath stays perfectly resolved; the census read all 7 phase READMEs covering all 33 module dirs clean (the house convention links lessons inside each module dir, e.g. phase1-infra's './1400-llmops/1401-...' rows), born findings 0 - killing one module's link targets fires exactly 1 CC-08 with CC-01..07 kept silent, fence-wrapping the same targets fires exactly 1 (fence immunity), and killing two modules' targets aggregates into exactly 1 CC-08 naming both CC-09 born tick-581 as a zero-drain lock: the phase page's module links must first appear in ascending curriculum order (browse order is unlock order; fence-aware, lesson-only links without a module-dir component do not enter the order), census 7/7 phase pages first-appear ascending; CC-10 born tick-581 after a one-line drain - every module's PREREQUISITES.md must carry at least one internal course link (a target ending .md, fence-aware), 3500-multimodal's entry page being the lone PREREQUISITES.md of 33 with no clickable way into the course (32 siblings linked their first lesson; the drain wrote the house 'If YES: Start with [3501: ...]' form); CC-11 born tick-582 at zero - the third zero-drain lock in the PQ-06/CC-08/CC-09 shape: a module README's lesson links must first appear in ascending order (the course card's lesson order is the unlock order, the CC-09 invariant one level down, fence-aware; non-lesson targets never enter the order), census 93/93 lesson links across the 33 module READMEs first-appear ascending - an out-of-order lesson link pair fires exactly once with CC-01..10 kept silent; CC-12 born tick-583 at zero - the fourth zero-drain lock in the PQ-06/CC-08/CC-09/CC-11 shape: a module README must link its own PREREQUISITES.md (the card a platform renders must offer the learner its entry door, the CC-10 invariant mirrored inward), census 58 door links across the 33 module READMEs every one the plain './PREREQUISITES.md' form - a de-linked door fires exactly once with CC-01..11 kept silent; CC-13 born the same tick at zero: where a PREREQUISITES.md carries an If-YES proceed line the line must carry an internal course link landing inside its own module (24 of 33 carry one, all landing home; the 9 shipping none and the 26-of-119 / 179-of-534 links that legitimately cross modules stayed unlocked by honest census) - a link-less or module-exiting proceed line fires exactly once with CC-10 kept silent; CC-14 born tick-584 as the family's first multi-file drift since 576: a phase README's FM Difficulty must equal the max tier of its module cards' FM Difficulty (the CC-01 invariant one level up - the phase header is the course group a platform filters and badges by, so a group containing an advanced course filters as advanced; computed only when every module card carries an in-vocabulary tier, FS owns the missing name and FV-07 the stray value - never double-reported), the census reading 4 of 7 phase headers already at their modules' max tier while phase1-infra, phase2-foundations and phase6-rag sat a level low (Intermediate headers over Advanced-containing course groups, revamp-zone residue from modules that arrived advanced) and the drain bumping exactly those 3 FM lines to Advanced (a coupled second drain bumping the same 3 headers' body badges to the canonical Advanced form under the BD-01 badge-mirrors-FM rule, 103/103 canonical after) - a header downgrade fires exactly once with CC-01..13 kept silent, a stripped card FM line fires 0 (precondition skip, the FS-owned gap never double-reported), and downgrading both of a phase's max-tier cards fires exactly 1 CC-14 plus the 2 CC-01 lesson-side findings it must never double-report; CC-15 born tick-585 as the family's largest drift since 576: a module's PREREQUISITES.md FM Difficulty must equal its course card's (README.md) FM Difficulty - the entry door must not contradict the card the platform renders beside it (one tier per course mirrored on every surface: lessons take the max via CC-01, the phase header the group max via CC-14, the entry page the card's own; computed only when both pages carry an in-vocabulary tier, FS owns the missing name and FV-07 the stray value - never double-reported), the census reading 23 of 33 entry pages already mirroring their card while 10 contradicted it in two directions (5 prereq tiers below the card, 5 above - hand-written rot, not a systematic bias) so the drain set each page's FM Difficulty to its card's (5 bumps up, 5 down) and coupled 6100-vector's body badge - the lone entry-page badge still mirroring its old FM - to the canonical Intermediate form (the tick-584 BD-01 coupling pre-censused this time instead of caught by the fleet) - a flipped prereq tier fires exactly once with CC-01..14 kept silent, a stripped prereq FM line fires 0 (the precondition skip, never double-reported), and flipping two modules aggregates into exactly 2 CC-15; CC-16 born tick-586 after a 20-line drain: a module's PREREQUISITES.md FM must carry only the 6-field entry-page keyset (Document ID, Title, Last Updated, Status, Difficulty, Tags) - one schema for 33 entry pages so a platform parser reads every entry door the same way (negative excess only: FS owns field presence, this clause owns field excess - never double-reported), the census reading 29 of 33 entry pages already on the minimal keyset while the 4 phase2 pages carried 5 legacy extras (Module, Phase, Prerequisites, Related, Estimated Time - a review-range ET and self-referential 'See module README' prose) and the impact probe moving only prereq_census's statement counters (docs 204->200, free-text 186->182, tokens/edges/tier-edges untouched) - an extra FM field on a prereq page fires exactly once with CC-01..15 kept silent, the same field on the course card fires 0 (entry-page scoped), and two pages aggregate into exactly 2 CC-16; CC-17 born tick-587 as CC-16's mirror on the card surface: a course card's FM must carry only the 7-field card keyset (the 6 universal fields + Estimated Time) - one schema for 33 cards so a platform parser reads every card the same way it reads every entry page (negative excess only: FS owns field presence, this clause owns field excess - never double-reported), the corpus-wide FM keyset census reading 29 of 33 cards already on the 7-field majority while the SAME 4 phase2 modules (2100/2200/2300/2400) carried 4 legacy extras (Module, Phase, Prerequisites, Related) - the same rot CC-16 drained from their entry pages one tick earlier, now on the page a platform renders per course - and the impact probe moving only prereq_census's statement counters (docs 200->196, free-text 182->178, tokens/edges/tier-edges untouched) while front_matter_census FM-05/06 and frontmatter_lint FM-08 stay silent by design (absence-tolerant: they fire only when the field exists and contradicts the path) - an extra FM field on a card fires exactly once with CC-01..16 kept silent, the same field on that module's PREREQUISITES.md fires exactly 1 CC-16 and 0 CC-17 (clause scoping, never double-reported), two cards aggregate into exactly 2 CC-17; CC-18 born tick-588 as the third surface of the FM keyset family: a lesson's FM must carry only the 13-field lesson keyset (the 7-field card keyset + Module/Phase + Prerequisites/Related + the optional Hardware/Software lab-requirements pair, negative excess only), the tick-588 classifier census splitting the lesson class honestly - the direct module-dir surface is 93 files and every one is linked from its README (0 unlinked; tick-587's 159 figure was a recursive-slice over-count, recursive reads 180 with the extra 87 in module subdirectories), three forms on disk (81 on the 11-field core, 6 + Hardware/Software on the hardware-lab lessons, 6 missing the Module/Phase navigation pair) and a 12-line normalization drain writing the derivable pair into exactly those 6 (5103/5203/5204/6203/7302/7403) so the surface reads two exact forms, both inside the family - an extra FM field on a lesson fires exactly 1 CC-18 with CC-01..17 kept silent, the same field on the card fires exactly 1 CC-17 and 0 CC-18 (clause scoping, never double-reported), two lessons aggregate into exactly 2 CC-18; CC-19 born tick-589 as the fourth surface of the FM keyset family: a guide's FM must carry only the 11-field guide keyset (the 7-field card keyset + Module/Phase + Prerequisites/Related - the lesson core without the optional Hardware/Software pair, negative excess only), the tick-589 census reading the 21 module-level guides clean of excess - all 21 linked from their module READMEs (0 unlinked), 12 on the 9-field subset (the core without the Module/Phase navigation pair) and 9 on the full core, 0 out of family and no Hardware/Software anywhere - and a 24-line normalization drain writing the derivable pair (values read off the module/phase dir names) into exactly those 12 so the surface reads one exact form, with the tick-588 fence coupling caught by this tick's own battery instead - the 12 guides carry 42 accepted fence rows (4203 none) and the +2 FM shift moved every one, so a count-asserted re-bless re-blessed 42 rows at +2 (40 same-class, 2 family-reclassified on re-execution: 3403 RUNNER-CRASH->TIMEOUT, 7103 the recorded CODE-SIGNAL:RuntimeError FLAKY_FAMILY pair) with their notes carried, no fence content changed - an extra FM field on a guide fires exactly 1 CC-19 with CC-01..18 kept silent, the same field on a lesson fires exactly 1 CC-18 and 0 CC-19 (clause scoping, never double-reported), two guides aggregate into exactly 2 CC-19; CC-20 born tick-590 as the fifth surface of the FM keyset family: an assessment bank's FM must carry only the 9-field assessment keyset (the 6-field entry keyset + Estimated Time + Prerequisites/Related - the card core without Module/Phase and without the optional Hardware/Software pair, negative excess only: FS owns field presence, this clause owns field excess - never double-reported), the tick-590 census reading the 66 PRACTICE/QUIZ banks clean of excess - every module the pair, all 100% linked from their module READMEs (0 unlinked), 0 no-FM, 64 on the 9-field keyset and 2 phase2 legacy carriers widening with Module/Phase (2300-framework-engineering PRACTICE/QUIZ) - so the 4-line count-asserted drain deleted the legacy pair and the family froze at 66/66, with the impact probe showing all four FM-adjacent gates byte-identical (FM-05/06 and FM-08 absence-tolerant, prereq untouched) and the fence coupling one file small: only 2300's PRACTICE.md carries accepted fence rows (2 rows / 2 notes - QUIZ none, the other 37 assessment census entries a different class), the -2 shift moved both, and the count-asserted re-bless re-blessed them at their shifted lines 72->70 and 316->314, same class on re-execution (ENV-GAP:tensorflow, UN-LEAK), notes carried, no fence content changed - an extra FM field on an assessment fires exactly 1 CC-20 with CC-01..19 kept silent, the same field on a guide fires exactly 1 CC-19 and 0 CC-20 (clause scoping, never double-reported), two assessments aggregate into exactly 2 CC-20; CC-21 born tick-591 as the sixth surface of the FM keyset family: a phase README's FM must carry only the 6-field phase keyset (the same 6-field entry keyset, negative excess only: FS owns field presence, this clause owns field excess - never double-reported), the tick-591 census reading the 7 phase headers born-clean - every one already on the exact keyset, all 7 linked from MASTER-INDEX, MASTER-INDEX itself on the same form - so the lock is a zero-drain one in the PQ-06/CC-08/09/11/12/13 shape: the course-group browse surface a platform renders above every card froze at the family the moment it was named - an extra FM field on a phase header fires exactly 1 CC-21 with CC-01..20 kept silent, the same field on a course card fires exactly 1 CC-17 and 0 CC-21 (clause scoping, never double-reported), two phase headers aggregate into exactly 2 CC-21; CC-22 born tick-592 as the seventh surface of the FM keyset family: a phase-level assessment page's FM must carry only the 6-field entry keyset (negative excess only: FS owns field presence, this clause owns field excess - never double-reported), the tick-592 census reading the 14 phase-practice/phase-quiz pages under 00-META/assessment born-clean - every one already on the exact keyset, all 14 linked (MASTER-INDEX, SITEMAP and their phase READMEs, phase1-practice also from ORGANIZATION-GUIDE) - so the lock is a zero-drain one in the CC-21 shape: the phase-completion checkpoint surface a platform renders between course groups froze at the family the moment it was named (the pages' module-level CC-20 siblings carry the 9-field bank; these stay minimal) - an extra FM field on a phase assessment fires exactly 1 CC-22 with CC-01..21 kept silent, the same field on a phase header fires exactly 1 CC-21 and 0 CC-22 (clause scoping, never double-reported), two phase assessments aggregate into exactly 2 CC-22; CC-23 born tick-593 as the eighth surface of the FM keyset family: a learning-resources reference page's FM must carry only the 6-field entry keyset (negative excess only: FS owns field presence, this clause owns field excess - never double-reported), the tick-593 census reading the 43 standalone reference pages born-clean - every one of bridges/case-studies/cheat-sheets/guides/interactive/projects/resources/troubleshooting already on the exact keyset - while labs (15/15 split between entry and entry+Estimated Time) and tutorials (13 on the 8-field core, 2 legacy carriers widening with Category and Related: TUTORIAL-007/TUTORIAL-014) read different forms and stayed unlocked this tick, each its own census-first surface - so the lock is a zero-drain one in the CC-21/CC-22 shape: the enrichment reference surface froze at the family the moment it was named - an extra FM field on a cheat-sheet fires exactly 1 CC-23 with CC-01..22 kept silent, the same field on a tutorial fires 0 (out of scope, tutorials unlocked), a cheat-sheet and a project aggregate into exactly 2 CC-23; CC-24 born tick-594 as the ninth surface of the FM keyset family: a learning-resources tutorial's FM must carry only the 8-field tutorial keyset (the 6-field entry keyset + Estimated Time + Prerequisites, the 15-file majority family, negative excess only: FS owns field presence, this clause owns field excess - never double-reported), the tick-593 census parking tutorials as 13 files on the 8-field core with 2 legacy carriers widening with Category and Related (TUTORIAL-007/TUTORIAL-014) and the drain deleting exactly those 4 FM lines count-asserted so the family froze at 15/15, all 15 linked (0 unlinked) - the impact probe showing prereq_census byte-identical (Related feeds only the related graph, reported never gated), related_census shrinking honestly to 183 docs / 26 tokens / 9 bracketed with RL-01..03 still zero, linkcheck unchanged (the Related values were bare tokens, never markdown links) and fence coupling one file small (TUTORIAL-007 carries 5 accepted fence rows / 5 notes in accepted_exec_census, TUTORIAL-014 none - the -2 shift moved all 5 and the count-asserted re-bless re-blessed them at the shifted lines 164->162, 208->206, 276->274, 327->325, 389->387, same class on re-execution, notes carried, no fence content changed); an extra FM field on a tutorial fires exactly 1 CC-24 with CC-01..23 kept silent, the same field on a cheat-sheet fires exactly 1 CC-23 and 0 CC-24 (clause scoping, never double-reported), two tutorials aggregate into exactly 2 CC-24; CC-25 born tick-595 as the tenth FM-keyset surface - every learning-resources lab's FM carries only the 7-field lab keyset (the card keyset: the 6-field entry keyset + Estimated Time), negative excess only (FS owns field presence, this clause owns field excess - the gate never double-reports) - the tick-593 park dissolved structurally: the tick-595 census read the labs tree as two disjoint sub-surfaces, the wide 15 exactly the 15 LAB-0xx lab docs (every one on the exact 7-field card keyset, every one carrying an authored 1-12 hour time budget) and the minimal 15 exactly the 15 SOLUTION-LAB-0xx answer keys under labs/solutions (every one on the exact 6-field entry keyset), each born at 100% uniformity with 0 no-FM and 0 unlinked - so no ET decision exists to make, the lab half locks zero-drain in the CC-21/22/23 shape (non-recursive glob keeps solutions out of scope), and the solutions half stays parked for its own clause (CC-26) next tick, with the labs tree's 58 accepted fence rows in accepted_exec_census untouched (zero-drain moves nothing, nothing to re-bless); negatively tested across five runs - the pristine control fires 0, an extra FM field on a lab fires exactly 1 CC-25 with CC-01..24 kept silent, the same field on a SOLUTION-LAB answer key fires exactly 0 anywhere (solutions outside every clause until their own tick), two labs aggregate into exactly 2 CC-25, post-restore byte-identical, exit 1 on every firing mutant; CC-26 born tick-596 as the eleventh surface - every SOLUTION-LAB answer key's FM carries only the 6-field entry keyset, negative excess only (FS owns field presence, this clause owns field excess - the gate never double-reports) - the tick-595 census showed the minimal 15 of the labs tree are exactly the 15 SOLUTION-LAB-0xx answer keys under labs/solutions, and the tick-596 census read the class clean - all 15 already on the exact 6-field entry keyset (Document ID, Title, Last Updated, Status, Difficulty, Tags), 0 no-FM, all 15 linked (MASTER-INDEX and SITEMAP; SOLUTION-LAB-000 also from ORGANIZATION-GUIDE) - so the lock is a zero-drain one in the CC-21/22/23 shape: the answer-key surface froze at the family the moment it was named, no drain, no fence coupling (the 58 accepted fence rows live on the LAB docs, not the solutions), nothing to probe; negatively tested across five runs - the pristine control fires 0, an extra FM field on a solution fires exactly 1 CC-26 with CC-01..25 kept silent, the same field on a LAB doc fires exactly 1 CC-25 and 0 CC-26 (clause scoping, never double-reported), two solutions aggregate into exactly 2 CC-26, post-restore byte-identical, exit 1 on every firing mutant; CC-27 born tick-597 as the twelfth surface - every 00-META root meta page's FM carries only the 6-field entry keyset, negative excess only (FS owns field presence, this clause owns field excess - the gate never double-reports) - the tick-597 uncovered-surface census read the rest beyond CC-16..26 as 53 files in four families: 49 already on the exact 6-field entry keyset scattered across nine roots (00-META 20, volumes 7, phase CHECKPOINTs 7, comparisons 3, diagrams 4, industry 3, enterprise-solutions 2, use-cases 2, notebooks 1) and 4 drift carriers (UC-001/002 with Related, IND-003 with Estimated Time, SOL-002 with Category/Estimated Time/Prerequisites/Related), the largest single-root family - the 20 root-level 00-META docs (MASTER-INDEX, SITEMAP, ORGANIZATION-GUIDE, QA-TOOLING and the rest of the help/navigation/governance layer) - locked first, born-clean: all 20 on the exact 6-field entry keyset, 0 no-FM, 0 off-keyset, heavily cross-linked (SITEMAP from 7 docs, GLOSSARY from 7, VOLUME-GUIDE from 12), so the lock is a zero-drain one in the CC-21/22/23 shape, non-recursive so the phase assessments under 00-META/assessment stay CC-22 and outside; negatively tested across five runs - the pristine control fires 0, an extra FM field on a meta page fires exactly 1 CC-27 with CC-01..26 kept silent, the same field on a SOLUTION-LAB answer key fires exactly 1 CC-26 and 0 CC-27 (clause scoping, never double-reported), two meta pages aggregate into exactly 2 CC-27, post-restore byte-identical, exit 1 on every firing mutant; CC-28 born tick-598 as the thirteenth surface - every volumes page's FM carries only the 6-field entry keyset, negative excess only (FS owns field presence, this clause owns field excess - the gate never double-reports) - the tick-597 uncovered-surface census had parked the volumes tree among the exact-6 scatter, and the tick-598 census read the class clean - all 7 volume guides (VOLUME-1 through VOLUME-7, the book-style spine a platform renders as the curriculum's table of contents) already on the exact 6-field entry keyset, 0 no-FM, 0 off-keyset, all 7 linked (SITEMAP, VOLUME-GUIDE and PROGRESS-TRACKER beside projects and peer volumes) - so the lock is a zero-drain one in the CC-21/22/23 shape: the volume surface froze at the family the moment it was named, no drain, no fence coupling (the 23 accepted fence rows live on 6 of the volume docs and zero-drain moves nothing), nothing to probe, non-recursive by design (the volumes root has no subdirectories); negatively tested across five runs - the pristine control fires 0, an extra FM field on a volume fires exactly 1 CC-28 with CC-01..27 kept silent, the same field on a 00-META meta page fires exactly 1 CC-27 and 0 CC-28 (clause scoping, never double-reported), two volumes aggregate into exactly 2 CC-28, post-restore byte-identical, exit 1 on every firing mutant; CC-29 born tick-599 as the fourteenth surface - every phase CHECKPOINT's FM carries only the 6-field entry keyset, negative excess only (FS owns field presence, this clause owns field excess - the gate never double-reports) - the tick-597 uncovered-surface census had parked the phase CHECKPOINTs among the exact-6 scatter, and the tick-599 census read the class clean - all 7 phase-level completion checkpoints (docs/phases/phase*/CHECKPOINT.md, the gate a platform renders at the boundary between one phase's modules and the next) already on the exact 6-field entry keyset, 0 no-FM, 0 off-keyset, all 7 linked (each from its phase README beside MASTER-INDEX, SITEMAP, ORGANIZATION-GUIDE and PROGRESS-CHECKPOINTS; linkcheck vouches 0 broken) - so the lock is a zero-drain one in the CC-21/22/23 shape: the checkpoint surface froze at the family the moment it was named, no drain, no fence coupling (no CHECKPOINT carries accepted fence rows), nothing to probe; negatively tested across five runs - the pristine control fires 0, an extra FM field on a CHECKPOINT fires exactly 1 CC-29 with CC-01..28 kept silent, the same field on a volume fires exactly 1 CC-28 and 0 CC-29 (clause scoping, never double-reported), two CHECKPOINTs aggregate into exactly 2 CC-29, post-restore byte-identical, exit 1 on every firing mutantCC-30 born tick-600 as the fifteenth surface - every scattered enrichment root's FM (comparisons, diagrams, industry, enterprise-solutions, use-cases, notebooks, READMEs included, non-recursive) carries only the 6-field entry keyset, negative excess only (FS owns field presence, this clause owns field excess - the gate never double-reports) - the tick-597 census had read the six roots as 15 clean exact-6 files plus 4 drift carriers, and the tick-600 census confirmed the split then drained the drift count-asserted (UC-001/UC-002 lost Related, IND-003 lost Estimated Time, SOL-002 lost Category/Estimated Time/Prerequisites/Related - numeric module references and prose pointers, no doc links; the drain shifted the 10 accepted fence rows on the three row-carrying carriers (SOL-002 5 rows at -4, IND-003 3 rows at -1, UC-001 2 rows at -1) and the gate's own --update re-bless re-blessed them at the shifted lines, same class on re-execution, notes carried, no fence content changed, while prereq_census statement counters moved honestly docs 196->195 / ft 178->177 with edges/tier-edges untouched), leaving all 19 files on the exact 6-field entry keyset, 0 no-FM, 0 off-keyset; negatively tested across five runs - the pristine control fires 0, an extra FM field on a scattered file (UC-003) fires exactly 1 CC-30 with CC-01..29 kept silent, the same field on a phase CHECKPOINT fires exactly 1 CC-29 and 0 CC-30 (clause scoping, never double-reported), two scattered files (CP-001, IND-001) aggregate into exactly 2 CC-30, post-restore byte-identical, exit 1 on every firing mutantCC-31 born tick-601 as the first filename-derivation lock - every docs/ md whose FM carries a Document ID and whose stem is not one of the five fixed-name classes (README, PRACTICE, QUIZ, PREREQUISITES, CHECKPOINT) must have stem == ID (exact, lowercased, or ID+'-' prefix) so a platform resolves IDs to paths without a lookup table; the tick-601 census read 408 docs with FM Document IDs and 0 without - 256/256 non-fixed-name files clean (242 exact, 14 lowercased phase assessments) while the 152 deviations decompose exactly into the five fixed-name classes (README 46, PRACTICE 33, QUIZ 33, PREREQUISITES 33, CHECKPOINT 7) that carry path-qualified IDs by convention (1100-PRACTICE, PHASE1-PRACTICE, COMPARISONS-README) and stay out of scope; zero-drain, born at 0 findings, no fence coupling (a lock touches no bytes); negatively tested across five runs - the pristine control fires 0, a mutated Document ID on UC-003 fires exactly 1 CC-31 with CC-01..30 kept silent, the same mutation on a fixed-name 1100 PRACTICE fires 0 anywhere (out of scope), two mutated IDs (CP-001, IND-001) aggregate into exactly 2 CC-31, post-restore byte-identical, exit 1 on every firing mutantCC-32 born tick-602 as the fixed-stem completion of CC-31 - the five fixed-name classes came out of scope and now get their own derivation rule: Document ID must end '-'+stem and the prefix must be the scope anchor, the full scope dir uppercased for READMEs (1100-NETWORK-README, COMPARISONS-README) and the anchor segment for the rest (numeric module codes like 1100, PHASEn, or dir.upper()) for PRACTICE, QUIZ, PREREQUISITES and CHECKPOINT (scope = the parent dir, or its parent when the file sits in assessment/); the tick-602 census read 152/152 fixed-stem IDs ending '-'+stem and decomposed the prefix drift into exactly 4 short-form README carriers (2100/2200/2300/2400 in phase2) which the tick-602 drain moved to the long form - 0 external references to the old short IDs, none of the 4 in the fence census, no coupling, leaving 152/152 clean; negatively tested across five runs - the pristine control fires 0, a wrong-prefix ID on a fixed-name 1100 PRACTICE fires exactly 1 CC-32 with CC-01..31 kept silent, the same mutation on non-fixed UC-003 fires exactly 1 CC-31 and 0 CC-32 (clause scoping), two fixed-stem mutants (phase1 CHECKPOINT, 1100 QUIZ) aggregate into exactly 2 CC-32, post-restore byte-identical, exit 1 on every firing mutantCC-33 born tick-603 as the Tags vocabulary lock - a Tags value must be a bracket list whose items are each single-quoted kebab-case tokens (lowercase letters, digits, hyphens); the tick-603 census read 408/408 FM docs already on the quoted bracket-list shape with 0 unquoted and 0 mixed files, 238 distinct tags with 0 near-duplicate pairs (no case drift, no singular/plural drift), and exactly 1 charset deviation ('llama.cpp' in 4101-GGUF-Physics, the dot outside the kebab charset) which the tick-603 drain moved to 'llamacpp' (the same-commit TV-01 protocol amend replaced the WHITELIST 'llama.cpp' entry and added 'llama.cpp' to VARIANTS as the correcting map) - leaving 1507 clean items across the tree; negatively tested across five runs - the pristine control fires 0, an uppercase tag core on 4101-GGUF-Physics fires exactly 1 CC-33 with CC-01..32 kept silent, an extra FM field on UC-003 fires exactly 1 CC-30 and 0 CC-33 (clause scoping, never double-reported), two Tags mutants (unquoted item on 0000-LEARNING-PATH, bare token on 4101) aggregate into exactly 2 CC-33, post-restore byte-identical, exit 1 on every firing mutant |
| heading_scan | HS-01..05 | heading skeleton soundness, all hard: HS-01 no level skip (child more than one level under its parent; first heading exempt - title/H1 parity is title_h1_parity_scan's), HS-02 no empty heading text, HS-03 every doc carries at least one H2 (no flat bodies), HS-04 no emoji-led heading, HS-05 no emoji anywhere inside a heading - structure headings are plain text (tick-482 canon; HS-04: labs drained tick-485, the rest of the corpus tick-486 with 558 headers and their 40 #- anchor links rewritten in the same drain since the slugger maps the surviving space to a hyphen; HS-05: tick-487 census measured the non-LED surface at exactly 2 headers - a trailing star-NEW badge on the LEARNING-PATH Phase 0 row with its double-hyphen ToC anchor, and a brand glyph in 3202 renamed to spell the brand out); typographic arrows (U+2190-2195) are prose and stay legal. Fence-aware (emoji inside fences is body texture, not heading structure), scans the body after the FM block. Born tick-459 at 0/0/0 across 408 docs (KW-03 prophylactic); HS-04 born tick-486 born-at-zero (the v1 drain's emoji class missed the U+2100-2BFF symbols - keyboard, undo-arrow, down-arrow, star - caught by anchor_check and patched same tick); HS-05 born tick-487 born-at-zero. The birth census also measured 245 duplicate heading texts in 30 docs (Task/Requirements/Pros/Cons template repeats under per-item parents: exercises, database columns, case studies) - triaged ACCEPT, deliberately not gated: hierarchical-correct pattern, deterministic slug dedup, every internal link verified by the anchor gate; renaming would be churn against a legitimate pattern |
| table_scan | TB-01/02 | markdown table integrity, all hard - the platform renders tables directly, one broken row is a visible defect: TB-01 every row's cell count equals the header's (escape-aware: an escaped pipe inside a cell is the corpus's canonical literal-pipe form, e.g. dmesg \| grep vfio, and does not count as a column break), TB-02 the separator is well-formed and matches the header width. Scope: top-level pipe tables (consecutive start+end-pipe lines, >=2) outside fences. Born tick-459: 533 tables scanned, one real defect drained same tick - CP-002's Indexing Speed table had the separator and first data row merged onto one line; the corpus's single escaped-pipe row (1202-TB3) is canonical usage and passes |
| updated_badge_scan | UB-01 | body Last Updated badge parity, hard: the FM Last Updated field is the canonical gated freshness value (last_updated_check LU-01/02), but some docs also render a display badge in the header block (**Last Updated:** YYYY-MM-DD); where that badge exists it must carry the same ISO date as FM - a body badge stuck in February while the doc was edited in September teaches the learner the wrong age. Badge-optional (390/408 docs carry none); scanned outside fences so code examples never trigger it. Born tick-461 after syncing 14 stale badges - 7 February-frozen display badges (GUIDE-*, GLOSSARY, STYLE-GUIDE, 0000-LEARNING-PATH, TROUBLESHOOTING-QUICKSTART, CROSS-REFERENCE-GUIDELINES), 7 late-Sept near-misses (FM moved on a later tick, badge did not) - a class invisible to date_cohort, which reads FM only |
| diagram_scan | DM-01/02/03 | mermaid diagram integrity, all hard - the platform renders diagram blocks directly, a syntax-broken block is a visible error box (same defect class as table_scan): DM-01 the block's first non-empty line starts with a known diagram-type keyword, DM-02 in graph/flowchart blocks node-label text outside quoted segments contains no ()[]{} (mermaid requires quoting for those in labels; shape-aware - [(db)], ([stadium]), ((circle)), {{hex}}, [/para/] wrappers are understood, <br/>/colons/commas in labels are fine), DM-03 no node opened then closed by an edge operator or end-of-line before its shape close. Scope: 56 blocks / 19 docs at birth (52 graph, 2 stateDiagram-v2, 2 sequenceDiagram - the non-graph families get DM-01 only). Born tick-462 at 0; the first census draft's 25 hits were its own greedy label regex spanning A[x] --> B[y] edges - the shipped scanner parses quoted segments and shape delimiters |
| link_case_scan | LC-01 | link case-sensitivity portability, hard: linkcheck and anchor_check resolve targets with os.path.exists, which is case-insensitive on the Windows authoring machine but case-sensitive on the Linux hosting platform - ./Guide-Career.md written against file GUIDE-CAREER.md would pass every local gate and break only in production. LC-01 resolves every internal link path segment-exactly against real directory entries (fragments exempt - GitHub sluggers lowercase anchors; %20 decoded before resolution like linkcheck; unresolvable targets stay linkcheck's territory). Born tick-463 at 0 across 3015 docs/ links (3325 repo-wide census, zero mismatches) - locks the property so a future file rename cannot strand links that stay green locally |
| link_text_scan | LT-01 | intra-doc link text quality, hard: no emoji in an internal link's label - internal targets are corpus headings, which HS-04/05 keep emoji-free, so an emoji nav label is by construction a mismatch with what the reader finds at the anchor (screen readers read the glyph name aloud; the platform TOC generator copies labels verbatim). External links are out of scope (a brand glyph in a label is legitimate labeling, no corpus canon to mismatch); vague link text (here/click here/link) is triaged ACCEPT - every weak-text site in the corpus is a deliberate INCORRECT:/Bad: teaching example in a fence or inline code in the style guides, gating it would fence off the lessons that teach the rule; target resolution stays anchor_check's contract. Fence-aware. Born tick-488 born-at-zero after the 12-link drain (LEARNING-PATH x7, VOLUME-6 x2, VOLUME-7 x3 - nav rows whose emoji prefix survived the tick-486 anchor rewrite because that drain only stripped link text when the target carried the leading-hyphen emoji-slug form) across 1849 intra-doc links |
| invisible_scan | IV-01 | invisible-character hygiene, hard: no zero-width space/non-joiner/word joiner, soft hyphen, no-break space (plain and narrow), BOM/zero-width no-break space, bidi control or stray control character outside fences - paste-in characters that render as nothing but break exact-match search, heading slug generation and copy-out of code samples. ZWJ (U+200D) and VS16 (U+FE0F) stay legal - they are emoji composition per the tick-486 emoji class; in-fence content is out of scope (code may legitimately discuss such characters); CRLF is a different class (repo is LF-normalized); tab is legal indentation. Hazard classes are built with chr() so the script source stays pure ASCII (tick-488 lesson). Fence-aware, scans the body after the FM block. Born tick-489 born-at-zero, KW-03 prophylactic pattern: the birth census measured all 408 docs clean in and out of fences - the gate guards the platform era where contributors paste from the web |
| line_ending_scan | LE-01, LE-02 | line-ending + final-newline hygiene, hard, and the one BYTE-level gate in the fleet: every other scan reads with universal newlines, which silently translates CRLF to LF - the whole fleet is structurally blind to this axis. LE-01 no carriage-return byte anywhere in a doc (no CRLF endings, no lone CR - CR breaks POSIX tooling, pollutes diffs, leaks into byte-level platform ingestion); LE-02 every non-empty doc ends with a newline. Whole file, byte-level, by design - fences and front matter are irrelevant to line endings. The committed content was already 100% LF (measured byte-exact; .gitattributes * text=auto eol=lf normalizes every text file at add time), so the birth drain renormalized 120 stale-CRLF worktree copies of clean blobs plus 24 notebook/yml copies (worktree-only, sha-neutral) and content-fixed 2 README blobs missing their final newline (phase5 5400/5500). Born tick-490 born-at-zero |
| script_hygiene_scan | SH-01, SH-02 | QA-fleet source hygiene, hard - the one gate that watches the fleet itself instead of docs/: every .py under scripts/ (106 at birth). SH-01 every source is pure ASCII (tick-488 lesson: the Write tool inserted literal emoji into link_text_scan.py's emoji class and it survived until a byte-level check; \uXXXX-escaped sources cannot rot, are diff-stable on every platform, and survive any editor/toolchain), SH-02 every source compiles clean with SyntaxWarning-as-error (tick-490 lesson: quality_report.py carried a bare invalid escape that warned on every run and becomes a hard SyntaxError in a future Python - compile-time warnings are latent breakage). compile() never executes the module, so the gate cannot trigger side effects of what it inspects. Scope note: docs are the other gates' domain, notebooks are JSON (different class). Born tick-491 born-at-zero after a 26-replacement drain across 10 files (literal emoji/box chars -> \uXXXX in strings and one raw regex - the re engine interprets \uXXXX in patterns so the compiled pattern is byte-identical, docstring arrows/ellipses -> ASCII prose, accented letters -> \uXXXX, one doubled backslash), every runtime value proven unchanged |
| filename_scan | FN-01..06 | filename hygiene, all hard - path segments are API: git, shells and the eventual web platform all consume them, and the platform derives URLs/slugs from paths. FN-01 case-only collision within one directory (invisible on case-insensitive Windows/macOS checkouts, a silent overwrite on case-sensitive Linux CI, unresolvable for slug tools), FN-02 a space in a segment (becomes %20 in URLs, must be quoted in every shell command), FN-03 reserved/URL-significant chars - the 9 Windows-invalid plus % # & ; = @ $ (percent-encoding bugs, fragment/query smuggling); shell-irksome but URL-legal chars like !() are out of scope, FN-04 non-ASCII segments (corpus language is English; Unicode names mint non-ASCII URLs), FN-05 edge-whitespace or trailing-dot segments (unrepresentable on Windows, silently truncated by older tooling), FN-06 relative paths over 200 chars (headroom below the Windows MAX_PATH cliff). Whole repo with any-depth ignore of generated/vendor trees (.git, .venv, node_modules, __pycache__, caches, .claude). Born tick-492 born-at-zero: 597 tracked files censused clean; census lesson - case-collisions and trailing dots are UNCREATABLE fixtures on NTFS, so the negative tests cover the representable subset (FN-02/03/04/06) and document the rest |
| frontmatter_value_scan | FV-01..13 | FM VALUE contracts, all hard - the platform ingestion simulation: does exactly what the platform will do, yaml.safe_load the block, then type-check the metadata-driving fields. FS-01/02 gate field names; this gate verifies the value contracts behind them. FV-01 Last Updated is ISO YYYY-MM-DD (PyYAML auto-converts bare ISO dates to a real datetime.date - the conversion itself fails on impossible dates, so the conversion IS the contract; quoted ISO strings verified explicitly, prose/locale forms die), FV-02 Estimated Time is machine-comparable - single-regime N hours or N minutes (fractional legal, singular with 1) or the canonical two-regime 30 minutes (quick review) - N hours (full review) PREREQUISITES form (the reading-time pipeline does arithmetic on this field; optional field, checked when present), FV-03 Tags parses to a non-empty list of strings (tag-filter UI builds from this; bare/comma strings degrade into one giant token), FV-04 the whole block parses to a dict - the ingestion call itself, one unparseable value and the platform drops the doc's metadata entirely (catches ValueError and TypeError too: PyYAML's timestamp constructor raises OUT of safe_load on an impossible bare date like 2026-13-45 - from the platform's side that is an ingestion crash), FV-05 every integer inside a Related list resolves to a real Document ID (two-pass cross-file check - the platform renders Related as next-lesson cards; a dangling id is a broken card at runtime; string namespaces like LAB-003 and TUTORIAL-002 live in other registries and stay out of this rule), FV-06 Related, when present, is a prose pointer (str) or a list of ids/names - never a number, bool or mapping, and list elements are ids or names only, FV-07 Difficulty is one of the three canonical tiers Beginner/Intermediate/Advanced - the difficulty filter/sort is a closed enum, a fourth value is an invisible filter hole, FV-08 Title is a non-empty string - it becomes the platform card title, FV-09 Last Updated is not in the future - a date the doc cannot have been updated on yet poisons recently-updated sorts, FV-10 a string Document ID is a URL-safe key - uppercase-initial or module-numbered, hyphen-separated alphanumerics, no whitespace or other punctuation (the platform uses it as canonical key AND URL slug; the corpus mixes pure namespace tokens like LAB-003 with descriptive forms like TEMPLATE-001-Simple-LLM-App and module numbering like 1100-PRACTICE - all legal under the one pattern), FV-11 a Related string element in the LAB-NN/TUTORIAL-NN namespaces resolves to a file whose name starts with that id under learning-resources labs/ resp. tutorials/ (pass-1 filename universe; same broken-card bug as FV-05 in string form; every other string namespace stays free-form by design). The fleet's only third-party import (PyYAML) - deliberate: the rule under test IS yaml parsing. Born tick-493: census 408/408 yaml-parseable, 408/408 ISO dates, Tags clean; one drain (1 hours -> 1 hour, phase1 1100 PRACTICE.md) and the two-regime form canonized as FV-02's second arm; Related arms born tick-494 born-at-zero - triage census 215 absent / 178 canonical See module README / 11 lists / 4 prose variants, 32 integer refs, 0 dangling; tier/title/date arms born tick-495 born-at-zero - Difficulty 71 Beginner/117 Intermediate/220 Advanced, Title 0 bad, future-dated 0; Document ID mixed typing (115 int + 293 namespace-string) censused as corpus convention, deliberately ungated; key-shape arm born tick-496 born-at-zero - 293/293 str keys clean; resource-ref arm born tick-497 born-at-zero - 3 LAB-/TUTORIAL- refs corpus-wide (LAB-003, TUTORIAL-002, TUTORIAL-007), all resolve; heading-case candidate formally SKIPPED with measurement (8795 H2/H3: 5617 sentence / 3158 sentence+Title-Case topic phrases / 20 all-caps - ; scope tick-611: the ingestion simulation extended to the corpus's second tree - experiments/ (48 FM files, the 5-field keyset EC-01 locked) now walks the same yaml.safe_load gauntlet, FV-01/04/07/08/09 applying unchanged (48/48 ISO dates, 48/48 canonical tiers, 48/48 yaml-parse; born-clean 456 inspected / 0 findings across both trees), with two contract reconciliations documented at the seam - FV-03's Tags presence duty follows the keyset (experiments/ carries no Tags by EC-01's design, absence is not a finding there, a malformed Tags still is) and FV-10's key grammar learned the EC-01-canonical EXP_NNNN form (underscore is RFC-3986 unreserved, no URL escaping needed - the naive extension fired 47 FV-10s before the grammar learned the shape); negatively tested 8/8 on experiments/ victims - non-ISO Last Updated fires exactly 1 FV-01, off-vocabulary Difficulty exactly 1 FV-07, future-dated exactly 1 FV-09, unclosed-quote Title exactly 1 FV-04, a non-canonical Document ID (EXP_3201x) exactly 1 FV-10 proving the grammar is not vacuously widened, the FV-01+FV-07 pair ; scope tick-612: the second tree's Status column and keyset presence joined the simulation - frontmatter_lint (FM-03 required keys, FM-04 the Status enum) walks docs/ only and EC-01 binds the Document ID alone, so under experiments/ a missing Title/Status/Difficulty or a non-canonical Status answered to no gate; FV-12 (keyset presence, carrying exactly Title/Status/Difficulty - LU absence is FV-01's already, listing it would double-report) and FV-13 (Status in the FM-04 enum {Complete}) are experiments/-scoped so docs/ stays FM-03/FM-04's alone; born-clean 48/48 five-field keysets, 48/48 Complete (TEMPLATE included - no name-keyed exemption, the EC-02 lesson); negatively tested 9/9 on experiments/ victims - missing Status fires exactly 1 FV-12 with FV-13 silent, a lowercase non-enum Status exactly 1 FV-13 with FV-12 silent, missing Title exactly 1 FV-12, missing Difficulty exactly 1 FV-12 (FV-07 stays silent - it fires on present-but-malformed only), missing Last Updated exactly 1 FV-01 proving the no-double-report split, the missing-Title + Status-Draft pair aggregates into exactly 2, TEMPLATE Status: Draft still fires exactly 1, post-restore byte-identical at 0 |
| glossary_scan | GS-01/02/03 | glossary integrity, all hard - GLOSSARY.md is the platform's terminology backbone (lookups, tooltips and search generate from its tables): GS-01 a Correct/Incorrect-usage row never lists its own canonical term in the Incorrect Usage cell (LLMOps taught the correct spelling as wrong; case-exact variant match so lowercase variants stay legal), GS-02 no dead entries - every bolded first-cell term must appear at least once in the corpus outside the glossary (case-insensitive, word-boundary, plural-tolerant; 01.AI vendor+Yi models used nowhere, removed), GS-03 exactly one row per term (Parameters had two definitions across Core AI / Model Metrics tables, merged). Column schemas vary per table - GS-01 only applies where the header carries Incorrect Usage. Born tick-464 after those three drains; 67 terms |
| emphasis_scan | EM-01 | bold-marker parity, hard - ** must pair within one render block; the platform's renderer pairs per block, so an odd count leaks a literal ** into the page. Line-level counting is wrong by design (bold legitimately spans lines inside a paragraph), so blocks are: headings (own one-line blocks), paragraphs (run until blank line / heading / table row / blockquote / list item), fences skipped, inline code scrubbed first (double-backtick spans before single - a bare single-backtick regex models `` as an empty span and misses the ** inside). Born tick-465 after draining 7 PREREQUISITES.md headings reading ### If you're not familiar:** - a stray ** leaked from the sibling **If you're not familiar:** paragraph template (phase-1 files use the clean heading form); 408 docs, born at 0 |
| whitespace_scan | WS-01/02/03 | whitespace hygiene, all hard, all fence-aware: WS-01 3+ consecutive blank lines outside fences (markdown collapses them to one paragraph break - authoring residue, not layout; all four birth sites were EOF/before-section residue after the final --- separator), WS-02 trailing whitespace on a prose line (2+ trailing spaces are a CommonMark hard line break - an accidental <br>; 1 is editor residue), WS-03 mid-line tabs (the corpus is spaces-only; tabs fragment list indentation across renderers). Born tick-466 after draining the four triple-blank sites (MASTER-INDEX, ORGANIZATION-GUIDE at EOF; CROSS-REFERENCE-GUIDELINES, REACT-LOOP before ## Related Documents). Two census lessons baked in: the first blank-census regex was CRLF-blind (\n[ \t]*\n never matches \r\n runs - the two CRLF sites surfaced only under the line-based scanner), and in-fence blank runs are teaching examples and stay legal; invisible-character rot (NBSP/ZWSP/BOM/control chars) censused the same tick at zero corpus-wide, un-gated until a class appears. Same-tick falsifications: mixed list markers 0, style HTML in prose 0 (15 in-fence = teaching), images 0 (no alt-text class possible), weak link-text 1 = the deliberate ❌ Bad: [Click here] anti-pattern in CROSS-REFERENCE-GUIDELINES; 408 docs, born at 0 |
| ordered_list_scan | OL-01 | embedded-enumeration list lines, hard: an ordered-list-marker line carrying 3+ embedded markers (1. c, 2. b, 3. c, ...) is a comma-separated key pasted as prose - CommonMark eats the leading marker as the list marker, so the block renders as a broken list (item text starts at "c,", each wrapped line opens a new list at 11, 21, ...). The tick-468 census caught all 7 phase-quiz Answer Key blocks in this state (19 line-start markers escaped, 1. -> 1\.); born clean at 0/408. Same-tick falsifications left un-gated: HR styles uniform (3003 dash / 0 star / 0 underscore), list delimiters uniform (2090 1. / 0 1)), task-list syntax clean (6 grep hits were plain links), unfinished-marker keywords already UM-01's accepted teaching class, blockquote callouts not a system (138 blockquote lines / 12 bold labels, free-text texture), 337 non-1 list starts = deliberate continuation numbering, CommonMark-legal |
| checkpoint_coverage_scan | CK-00..10 | phase-checkpoint coverage, hard: the phase CHECKPOINT.md is the learner's review page for everything above it, so every module group of the phase (the NNNN directories) must appear in the **Modules:** overview line with the correct count (CK-02), somewhere in the text (CK-01), and as a ### Module NNNN: checkpoint section (CK-03); a phase with no checkpoint at all is CK-00. Born tick-472 after the phase-4 drain: the checkpoint still claimed Modules: 2 (4100, 4200) - the two-module era - while 4300 Quantization-Aware Training and 4400 Advanced Techniques (GPTQ, AWQ, GGUF, EXL2, sparsity, sub-1-bit; 17 lessons between them) had joined the phase un-reviewed; overview now lists all 4 groups, both modules got checkpoint sections, Estimated Time 4-5 -> 5-7 weeks, born clean; CK-04/05 (tick-478) per-module anatomy - every module section carries a Checkpoint Quiz of exactly 3 items (the corpus-wide shape, 33/33) and at least 3 checkbox items (the hands-on floor; the header word varies legitimately - Practical Verification, Lab Verification, phase 1's Knowledge Check / Practical Skills / Troubleshooting trio - so the gate counts the checkbox floor across the block instead of freezing one vocabulary). The tick-478 census found 12 modules with no checkbox section at all (drained: 3 skill checkboxes each, grounded in the module's quiz and labs) and 3 Lab Verification blocks at 2 lab links (drained: one skill check each); born-at-zero after those drains; CK-06/07/08 (tick-479) Completion Badge anatomy - the phase badge criteria block must carry the - All required modules completed bullet (the platform-tracked criterion; an explicit (1400, 1500) list also legal), at least 3 plain undecorated bullets, and the **Badge:** line before the criteria. The tick-479 census found phases 4-7 listing only skill bullets (no module criterion at all), phase 2 saying All modules completed, and phase 1 emoji-decorated and Badge-last; all drained same tick, born-at-zero; CK-09 (tick-480) every checkpoint carries a ## Common Pitfalls section of at least 4 numbered **Name:** items grounded in the phase's own modules (the deep wrong/correct examples stay in the module files - the corpus's 29-file rich-pitfalls pattern). The tick-480 census found phases 2-7 with no pitfalls section at all and phase 1 with generic filler (Rush Through: Take time to understand concepts); drained same tick - phase 1's new items drawn from its own README pitfalls (MTU mismatch, GPU passthrough, rate limiting, storage class), phases 2-7 written per module topics (stale gradients, causal-mask off-by-one, QAT observers, DPO reference drift, embedding mismatch, unbounded agent loops, ...), born-at-zero; CK-10 (tick-633) the written numbering of the pitfalls items is its own 1..K run - CK-09 reads only the item COUNT via PITFALL_ITEM (the number values are dropped at match time), pitfall_shape_scan explicitly excludes the checkpoint paths ("CK-09 governs") and quiz_integrity_scan's QI-14/QI-17 walk only the Checkpoint Quiz: segments (terminating at the next heading), so a gap, duplicate or restart inside the count served the learner a broken review list while every check stayed clean; one rule owns the class with the tick-631 partition shape - a count below the 4-pitfall floor stays CK-09's (it exists there), the numbering inside the count is CK-10's (a broken run fires "CK-10 docs/phases/phase1-infra/CHECKPOINT.md: Common Pitfalls items are numbered 1, 2, 3, 5, expected 1..4" naming the phase), so one mutation fires once fleet-wide; born census read all 7 phase checkpoints - 7/7 write exactly 4 pitfalls items numbered 1..4, born-at-zero; negatively tested across 11 runs - the old-code hole-proof (the phase1 1,2,3,5 gap mutant parsed clean rc=0 under the pre-tick code staged inside scripts/qa for sibling imports), pristine 0, the gap mutant fires exactly 1, the duplicate mutant fires exactly 1 (1, 2, 2, 4), the restart mutant fires exactly 1 (2, 3, 4, 5), the aggregate lands exactly 2 across phase1 and phase2, the cross-rule silence run shows every hard finding CK-10 with zero CK-01..09 drift, the cross-gate run holds quiz_integrity_scan, pitfall_shape_scan, quiz_export and assessment_lint silent at rc=0 on the firing aggregate, the partition run proves no overlap (a count-kill to 3 items fires CK-09 exactly 1 with CK-10 silent at rc=0 - contiguous 1,2,3 is not ours), and the restore is byte-identical with the post-restore control at 0, exit 1 on every firing mutant; the checkpoint victims are untracked in the accepted_exec_census so no baseline churn (fence fast-path steady at 260 files / 0 dirty) |
| lab_anatomy_scan | LA-01..06 | lab-file anatomy, hard: every docs/learning-resources/labs/LAB-*.md is a self-contained hands-on unit with its own platform card, so it must carry an Estimated Time: frontmatter claim (LA-01) that matches the derived core-path effort - ceil of the sum of part durations in ## N: Title (NN minutes) headers over 60, with Final Challenge/optional headers excluded as stretch work (LA-02; convention validated against the two labs that already carried the field: LAB-006 420 core-min -> 7 hours, LAB-010 330 core-min -> 6 hours) - and a ## ...Completion Checklist section holding at least 3 real - [ ] checkbox items, the per-lab completion ritual (LA-03). Canonical header forms: the checklist header is exactly ## Lab Completion Checklist (LA-04), the overview header exactly ## Lab Overview (LA-05), and no H1-H4 header line starts with an emoji - fence-aware, bash comments inside code fences are not headers (LA-06; LAB-006/010 were already plain, the corpus vote). Born tick-481 after the same-tick census: LAB-001..005 kept their checklists inside fenced ```text blocks (markdown-invisible, zero real checkboxes), LAB-006 had no checklist section at all, and 13 labs lacked the Estimated Time line; all drained the same tick, born-at-zero |
| pitfall_shape_scan | PS-01..04 | pitfalls item-shape standardization, hard: every non-checkpoint pitfalls section (phase READMEs, module-group READMEs, module files, industry and volume pages - 36 sections corpus-wide) carries at least 3 structured pitfall items in one of the corpus shapes - numbered N. **Name:** one-liners (the checkpoint standard), canonical ### Pitfall N: Name subsections (the rich wrong/right example blocks), or the numbered-outline piped pitfall-table genre (PS-01) - and every in-section ### subsection is canonical: sequential 1..k numbering, no emoji prefix (PS-02; checkpoints are exempt, CK-09 governs them). PS-03 (tick-483): in-section bold paragraph labels must be the canonical Pitfall: / Solution: pair - the corpus ran Problem: x22 and Fix: x3 alongside them; 25 labels canonized across 6 files the same tick (19 Problem in the 5 phase-1 group READMEs, 3 Problem + 3 Fix in 4302), born-at-zero. Section scanning is fence-aware - bash comment lines inside code fences are not headers or labels (the tick-482 census's own first draft broke on # Wrong: fence comments; the tick-483 negative suite proves # Problem: in a fence stays clean). Born tick-482 after the same-tick drain: 4 subsection-header shapes (plain, warning-emoji, x-emoji Pitfall N:, canonical) across 18 rich files (85 headers canonized) and 17 module-group READMEs with thin unnumbered - **Name**: advice bullets (83 numbered), born-at-zero. PS-04 (tick-634): the numbered one-liner items' written numbering must run contiguous 1..K per run - PS-01 reads only the item COUNT via ITEM (the number values are dropped at match time), so a gap, duplicate or restart inside a run served the learner a broken numbered review list while every check stayed clean; the tick-631 partition shape - a count below the 3-item floor stays PS-01's since PS-01 exists there, the numbering inside the count is PS-04's, runs reset at subsection headers, pitfall tables and prose lines so the contract is shape-agnostic 1..K per run (a broken run fires "PS-04 docs/phases/.../2100-calculus/README.md: pitfalls section 'Common Pitfalls' one-liner items are numbered 1, 2, 3, 5, expected 1..4" naming the module), checkpoints exempt (CK-09/CK-10 govern the phase CHECKPOINT.md files); born census read all 36 non-checkpoint pitfalls sections - 17 one-liner runs (all in module READMEs, 3-5 items each) write exact 1..K, born-at-zero; negatively tested across 11 runs - the old-code hole-proof (the 2100 gap mutant parsed clean rc=0 under the pre-tick code staged outside the tree, the scan is import-free), the pristine control fires 0, the gap mutant fires exactly 1 on 2100-calculus, the duplicate mutant fires exactly 1 on 2200-frameworks (1, 2, 2, 4), the restart mutant fires exactly 1 on 2400-pretraining (2, 3, 4, 5, 6), the aggregate lands exactly 2, the cross-rule silence run shows every hard finding PS-04 with zero PS-01..03 drift, the cross-gate run holds checkpoint_coverage_scan, quiz_export, assessment_lint, quiz_integrity_scan and course_card_check silent at rc=0 on the firing aggregate, the partition run proves no overlap (a count-kill to 2 contiguous items fires PS-01 exactly 1 with PS-04 silent at rc=0 - contiguous 1,2 is not ours), and the restore is byte-identical with the post-restore control at 0, exit 1 on every firing mutant |
| label_variance_scan | LV-01/02 | bold-label variance, hard: bold paragraph and list-item labels (**X:** at line start, 4469 corpus-wide) are the platform's callout leads, so their surface forms must be uniform. LV-01 the eight canonized keys - Estimated Time, What You'll Learn, Best For, Troubleshooting, Requirements, Real-World Example, Verification, Note, all plain Title-case - must use exactly the fixed form (the two emoji outliers lived in one file, LAB-000, and the tick-482 canon strips emoji from structure labels). LV-02 any other emoji/space/case-normalized key that has drifted to 2+ surface forms corpus-wide - new variance caught at birth, whatever the label. Quiz/worksheet content labels (answer, solution, ...) are single-form keys and unaffected; frontmatter keys are not bold and out of scope; **X**: with the colon outside the bold is a different form, 0 corpus-wide at birth, un-gated until a class appears. Born tick-484 after the same-tick drain: census found 8 multi-surface keys - 34 minority labels across 14 files (lowercase Estimated time x5, What you'll learn x7, Best for x8, emoji-prefixed Troubleshooting/Verification x8 in LAB-000, REQUIREMENTS x2, Real-world example x1, NOTE x3); all renamed to the vote winners, born-at-zero. Label capture is fence- and table-aware (negative suite: fence code and table cells never count) |
| quiz_claim_scan | QC-01..05 | quiz self-claim integrity, hard: every QUIZ.md's own promises checked against the bank quiz_export parses (parser borrowed, both question formats - the 32 bold-marker banks and the 2300 ### Question N: heading-form bank): QC-01 a **N questions** claim not matching the parsed count, QC-02 a **Passing score: P%** (N/M correct) line with wrong arithmetic (N != ceil(M*P/100)) or M != the parsed count, QC-03 a **Passing Score:** N/M (P%) points-form line with wrong arithmetic (M is points there - 2300: 15x1 + 5x2 = 25 - so no count cross-check), QC-04 (tick-477) a points-total not matching the bank's derived sum - explicit Score points plus 1 per question without a Score line (the corpus convention: the 32 plain banks are 20 x implicit 1pt, 2300 is 15 implicit + 5x2 explicit = 25) - vs the **N points total** summary claim or the points-form pass line's M, so a Score-line drift silently mis-sums the platform grader. Born tick-473 after an all-clean census (33 banks; the census's first-pass 2300 "claimed 20, actual 0" hit was the census's own format blindness - it only counted **N.** markers - not a content defect), born clean; QC-04 born tick-477 with all 33 banks consistent; QC-05 (tick-632) the pass-line percentage value must read the corpus 80 convention - the full-rule inventory found QC-02/QC-03 owning the arithmetic (N != ceil(M*P/100)), QC-02 the count, quiz_export's tick-618 the parenthetical's internal consistency and AS-14 the phase quizzes, so a consistent 70% (14/20) line parsed clean everywhere while telling the learner 70 passes against every sibling bank, the phase quizzes and the platform grader running 80; one rule owns the class on both pass-line forms (the correct-form bullet and 2300's points form); born census read all 33 banks - 32 correct-form lines + 2300's points-form line all state exactly 80, born-at-zero; negatively tested across 11 runs - the old-code hole-proof (the 1100 75%-mutant parsed clean rc=0 under the pre-tick code staged inside scripts/qa for the sibling quiz_export import), pristine 0, the 75% mutant fires exactly 1 on 1100, the 70% mutant fires exactly 1 on 1300, the aggregate lands exactly 2, the cross-rule silence run shows every finding QC-05 with zero QC-01..04 drift, the cross-gate run holds quiz_export, quiz_integrity_scan, checkpoint_coverage_scan and assessment_lint silent at rc=0 on the firing aggregate, the partition run proves no overlap (an arithmetic breach at pct=80 - 15/20 - fires QC-02 exactly 1 with QC-05 silent), and the restore is byte-identical with the post-restore control at 0, exit 1 on every firing mutant; both victims fence-free and untracked in the accepted_exec_census so no baseline churn |
| related_census | RL-01..03 | Related-field link integrity (platform cross-reference navigation): RL-01 a Related token resolving to ZERO files, RL-02 to MULTIPLE (ambiguous join), RL-03 non-canonical shape (bare lists bracketed to the Related standard); born from the tick-405 census (110 docs / 35 tokens, all exactly-1 resolved), RL-03 sites drained tick-406, hard since |
| estimated_time_census | ET-01..03 | Estimated Time parses for scheduling/progress math: ET-01 missing or unparseable value, ET-02 field-name variant (canonical Estimated Time:), ET-03 range values collapsed to the single-duration canonical (midpoint, half-up; drained tick-408); hard from birth at 0 |
| prereq_census | PQ-01..03 + PQ-06..08 | Prerequisites chain integrity - the learning-path backbone: PQ-01 machine-parseable token resolving to ZERO files (a prerequisite that can never be unlocked), PQ-02 token resolving to MULTIPLE, PQ-03 machine-parseable value not in the canonical bracketed bare-token list form (the Related standard); born at 0 (108 docs / 7 tokens, tick-409), PQ-03 drained tick-410, hard since; free-text authoring pointers remain legal; PQ-06 (born tick-574 at zero) the machine-parseable Prerequisites subgraph must be ACYCLIC (Tarjan SCC - any 2+ doc cycle or a doc listing itself fires) - on the platform a prereq cycle is an unlock deadlock, neither side ever satisfiable; the live graph is 8 docs / 12 tokens / 12 edges, every edge forward in the lesson order, and the corpus's shared-dependency diamond (1103 requiring 1101+1102) is a legal DAG that must stay legal; edges come ONLY from the gate's own machine-parseable shapes - prose and the tolerated [PHASE-N] phase-pointer brackets carry none; the Related graph's one sibling cycle (1101->1102->1103->1101) is deliberate navigation - printed as related-cycles census context, never gated; the PO boundary: prereq_ordering_scan's PO-01/02 own the spine-local half (a 4-digit token numbered ahead of or equal to its own doc), PQ-06 is the numbering-free whole-graph half needing no monotonic-numbering assumption and covering the LAB-/TUTORIAL- edges PO's scope excludes (TUTORIAL-014 -> LAB-009 is a live such edge), so cycles threaded through labs or multi-doc hops are visible here and nowhere else - a 4-digit self-listing fires both gates, one defect, two hard locks; PQ-07 (born tick-575 at zero) difficulty never climbs the unlock path - on every PQ-06 edge where both endpoints carry a canonical FM Difficulty (Beginner=1 / Intermediate=2 / Advanced=3, the TIER_STARS map footer_fm_parity proved), the prerequisite's tier must be <= the doc's own tier, because an uphill prerequisite is a lesson demanding harder material than itself, the wrong opening order on the platform (a Beginner lesson asking you to already know the Advanced one); equal-tier and downhill edges are legal pedagogy and the born census proved the corpus already obeys - 12 edges compared, 6 equal-tier and 6 downhill, 0 inversions, 0 prereq docs lacking FM Difficulty; an out-of-vocabulary Difficulty on either endpoint skips the comparison (FV-07 owns the enum, PQ-07 never double-reports another gate's finding); PQ-08 (born tick-607 at zero) the pointer contract: a doc whose Prerequisites defers 'See module README' requires that module README to carry a canonical machine-parseable Prerequisites field - the indirection exists so the README is the module's single source of prereq truth, and 177 docs (111 lessons + 66 assessments) resolved it to nothing machine-parseable until the drain transcribed each module's own PREREQUISITES.md cross-module declarations into the README FM (module-granularity normalization: a Review/Read bullet naming another module's lesson normalizes to that lesson's module) - 33/33 READMEs now carry the canonical field, [] is the canonical 'no prerequisites, unlock immediately' (which honestly reclassified TUTORIAL-000/002 from prose to canonical: 43 canonical / 8 prose), 9 modules with dependencies / 10 module-level edges (2200->[2100], 2300->[2200], 2400->[2200], 3100->[3200] the one forward edge - advanced attention reviews the embeddings module's RoPE lesson, legal downhill under PQ-07 - 4100->[1500], 4300->[4100], 4400->[4100, 4300], 5100->[4100], 5400->[5300]; every remaining module [], 5500's 'see 5400 if scaling is your bottleneck' left out honestly as conditional advice, not a prerequisite); PQ-08 fires per offending README, aggregating the pointer docs that defer to it, and a pointer doc with no resolvable module dir fires its own finding; the token index resolves a bare 4-digit module token to its module README (0 filename collisions across the 33 codes, measured before the extension); the README field's presence+canonicity is PQ-08's, its allowance in the keyset course_card_check CC-17's (README_KEYSET widened tick-607) |
| prereq_ordering_scan | PO-01/02 | learning-path ORDER integrity: corpus numbering is monotonic, so "earlier on the path" is exactly "smaller 4-digit number" - PO-01 forward reference (a prereq token greater than the referrer's own number) is an unlock deadlock on the platform, PO-02 self reference; numeric predicate, no false-positive class; born at zero 2026-09-30 (95 numbered docs / 4 tokens clean; 13 non-numbered docs are free-text/resource pointers, visible in the skip line), hard from birth |
| prereq_free_text_check | PQ-04 | Prerequisites free-text vocabulary closure: every non-token value must be exactly one role-canonical string - lessons "See module README", module READMEs "See PREREQUISITES.md" - so the platform nav generator can classify every pointer; born 2026-09-30 at 4 prose variants (a vague assumption + three "Phase N completion" statements redundant with spine position), drained same tick, hard since; bracketed resource tokens stay PQ-01..02 territory |
| prereq_target_check | PQ-05 | Canonical pointer target integrity: every "See module README" / "See PREREQUISITES.md" pointer must land - the nearest README-bearing ancestor's README exists and carries a prerequisites section, the module's PREREQUISITES.md exists, and a pointer with no README-bearing ancestor is a finding; born at zero (census 2026-09-30: 33/33 module READMEs carry prerequisites), hard from birth |
| nav_coverage_check | NV-01..02 | Navigation coverage: NV-01 (hard) every learner-facing doc in a module - root lessons, guides/, assessment/ - must be filename-linked from its module README (a lesson the README never links is invisible to the platform nav); NV-02 (hard) phase-level CHECKPOINT.md/PREREQUISITES.md must be filename-linked from the phase README. Born 2026-09-30 at 45 module orphans over 17 READMEs (30 prose-described-but-unlinked lessons, 6 never mentioned, 9 assessments without Location lines) + 7 unlinked phase CHECKPOINTs - both drained same tick (the checkpoint drain also fixed the "Phase s Practice" typo in the phase-2/3 READMEs), both hard since |
| last_updated_check | LU-01..02 | Last Updated parseability: LU-01 missing or empty field, LU-02 non-ISO value (date.fromisoformat is the parser) - the platform's freshness display and recently-updated sorting need a machine-parseable date; hard from birth at 0/408 (census 2026-09-30: all ISO-parseable, range 2026-02-04..2026-09-30) |
| lesson_order_check | LO-01 | Module README lesson order: the first-occurrence order of lesson links in a module README must be strictly increasing - the platform renders nav in document order, so README order IS the learning path, and IDs encode the intended sequence; first occurrence only (phase-1/2 READMEs repeat the full list in tail summaries), guides/assessments are genre extras with free positions. Born 2026-09-30 at 5 stray bullets (5103/5203/5204/6203/7403, appended by the nav drain before the first lesson header), drained same tick, hard since |
| toc_coverage_check | TC-01 | TOC completeness: in a TOC-carrying doc every real content H2 (outside frontmatter and code fences, closing trio Summary/References/Next Steps exempt) must appear as a TOC bullet - matched by display text OR href slug (an industry "Part 1:" prefix or a volume emoji prefix in the label is house style; the nav pane needs the link to exist and resolve, not the label). The TOC becomes the platform's in-doc nav pane, so an unlisted section is invisible in navigation. Fence-aware: a naive census flagged 2 "missing" H2s in 2301 that were literal text inside a python example block; anchor_check's fence tracking was right. Born 2026-09-30 whole-corpus over 141 TOC-carrying docs: 45 rows = 24 label mismatches (resolved by the slug-matching rule, zero doc edits) + 21 genuine gaps (19 phase-README tail sections [Prerequisites x5 on phases 3-7, Assessment x7, Related Topics x7] + 2 guide Abstracts, all drained in document order), hard since |
| render_hygiene_check | RH-01..04 | Render hygiene: RH-01 no raw HTML tags outside code spans and fences (platform renderers sanitize or escape HTML - GitHub's collapsible details block renders as literal text elsewhere; corpus standard is markdown-native structure only); RH-02 no heading-level skips (h2->h4 with no h3 - platform TOC trees hang off the hierarchy; a doc's first heading may be any level); RH-03 no bare URLs outside markdown links, autolinks and code spans (unwrapped URLs render as plain text - not clickable, inconsistent wrapping); RH-04 no images with empty alt text (accessibility; corpus carries zero images - the gate protects the invariant). Born 2026-09-30: 12 raw-HTML tags (3 details/summary Solution blocks in TUTORIAL-000, drained to bold Solution: labels) + 46 bare URLs across 16 docs (drained to [url](url) self-links - label preserved verbatim so no information changed); skips and alts born zero; all four hard from birth (KW-03) |
| status_vocab_check | SV-01 | Status vocabulary: the FM Status field must be from the closed vocab {'Complete'} - a free-text status degrades into arbitrary variants ('complete', 'Done', 'WIP') that filter wrong or not at all, same argument that closed the Difficulty vocabulary. Extending the vocab is a deliberate edit to the script, not a doc-level choice - a new state (Draft, Review) must arrive with platform semantics. Born 2026-09-30 at 408/408 'Complete', zero variants, hard from birth (KW-03) |
| difficulty_census | DI-01..03 | closed Difficulty vocabulary (platform filter/sequence dimension): DI-01 missing/empty/unknown value, DI-02 field-name variant (canonical Difficulty:), DI-03 value outside the canonical enum {Beginner, Intermediate, Advanced} (5 Expert sites drained tick-412); hard from birth at 0/408 (KW-03) |
| lesson_anatomy_census | LA-01..03 | canonical lesson anatomy: LA-01 every lesson doc opens its pedagogy with the "Learning Objectives" H2 (the syllabus card contract), LA-02 it is the FIRST TOC bullet, LA-03 an Abstract H2 precedes the body (114/114; drains tick-414/415/416); hard since; hands-on and quiz H2s are deliberately not part of the anatomy (assessment lives in separate QUIZ/PRACTICE/lab files) |
| closure_census | CL-01..03 | canonical closing trio after the last content section: a Summary-class recap H2, References H2, Next Steps H2 - CL-01 drained phase-by-phase to 114/114 (hardened tick-431), CL-02/CL-03 hard from birth tick-417 |
| module_code_census | MC-01..03 | module-code continuity, all hard: the platform renders the catalog from numeric codes (phase pages list module dirs in code order, module pages list lessons and guides in stem order, the volume spine paginates by VOLUME-N) so a skipped code is a hole a learner falls into; MC-01 module dirs per docs/phases/phase* contiguous +100 from phase#*1000+100, MC-02 the SET of 4-digit numeric stems across top-level *.md + guides/*.md + assessment/*.md per module contiguous (duplicates allowed - a guide may share its lesson's code, 7400's guide 7402 riding between lessons 7401/7403), MC-03 volumes VOLUME-1..7 contiguous; born tick-604 after the census read 7 phases / 33 modules / 7 volumes clean except one real hole - 1400-llmops guides sat at 1404/1405 with 1403 absent from birth (the only baseline 1403 was experiments/EXP_1403_TGI_TUNING.md, outside docs/), drained the same tick by renaming 1404-vLLM-Production-Deployment to 1403 and 1405-TGI-Deployment-Guide to 1404 in two drain passes - 16 files / 41 replacements closing the rename, then 11 files / 19 more after the fleet's own title/lesson/volume gates caught what the linkcheck could not see (the renamed guides' H1s still carrying the old codes, the TGI guide's vLLM cross-reference, stale display labels across volumes, meta, tutorials and phase surfaces) - 58 replacements total, 0 residual; hard from birth |
| label_code_parity_scan | LP-01..05 | label-code parity, all hard: linkcheck proves a link's target exists and link_case_scan proves its casing is portable, but nothing proved that the numeric code a display label advertises belongs to the file or module the link actually opens - a card reading 5302: Distributed Training that opens 5402-Model-Parallelism is a lie the learner clicks, and a module row reading 1201-1203 over a module that grew to 1204 teaches a catalog that no longer exists (tick-604's rename drain surfaced exactly this gap: stale display labels no gate could see). LP-01 coded label over a numeric-stem file: stem within the label's inclusive range; LP-02 coded label over a stemless file (README/QUIZ/PRACTICE/PREREQUISITES/CHECKPOINT): code equals the nearest ancestor dir carrying a 4-digit prefix; LP-03 coded label over a stem-bearing dir: single code equals the module dir's 4-digit prefix, range equals the exact (min,max) stem span - a range over a grown module is stale, a range over a shrunk module advertises lessons that are gone; LP-04 coded label over a stemless dir (phase roots): code equals phase#*1000; LP-05 EXP_NNNN: opens the same-numbered experiments file. Extraction mirrors linkcheck (fences skipped, inline code scrubbed, FM exempt); unresolvable targets stay linkcheck's finding. Born tick-605 from a 3361-internal-link census (1395 stemmed-file, 178 unstemmed-file, 59 dir, 110 EXP-coded labels), all clean after a 13-edit drain - 10 stale LEARNING-PATH module ranges (1200/4200/5100/5200/6200/6300/7100/7200/7300/7400 frozen at older module sizes), 1 lesson-code module label ([1501: Monitoring] -> 1500), 1 wrong file target on VOLUME-5 (5302 bullet opened 5402-Model-Parallelism), 1 EXP label pointing at another experiment's file (EXP_7202 label on EXP_7301_COLLABORATION); hard from birth |
| fence_lang_scan | FL-01..03 | fence-language lock, all hard: a platform renders, highlights and classifies code blocks by the fence's language tag, but linkcheck walks links and fence_exec_gate executes python fences while nothing pinned the one tag every fence carries - a bare is a block no renderer can classify, the learner cannot skim-predict it, and a typo'd tag (`pyton`) silently drops highlighting with nothing to catch it. FL-01 bare opener (no language tag); FL-02 tag outside the accepted 22-language vocabulary (python/text/bash/yaml/markdown/mermaid/json/powershell/dockerfile/nginx/cypher/cuda/toml/html/typescript/tsx/promql/sql/cpp/cron/gitignore/c) - a new real language joins by amending LANGS, never by slipping through; FL-03 fence unclosed at end of file (everything after it is literal content, the doc's remaining structure lost to the renderer). The scan is CommonMark width-aware - a fence opens on 3+ backticks or tildes and closes on the same character at >= the opening width with whitespace-only trailing, so the 4-backtick markdown templates in DOCUMENT-TEMPLATE, diagrams/README, FLASHCARDS and 2301 may embed fences as literal content without confusing the toggle (a width-blind census misread those as 17 bare fences; the width-aware truth: 4258 fences, 0 bare). FM exempt, body lines only. Born tick-606 from a 4258-fence census across 408 docs: 22 languages (python 1860, text 1124, bash 734, yaml 289, markdown 86, mermaid 54, json 20, powershell 18, dockerfile 18, nginx 12, cypher 10, cuda 7, toml 4, html 4, typescript 4, tsx 3, promql 3, sql 2, cpp 2, cron 2, gitignore 1, c 1), zero bare, zero off-vocabulary, zero unclosed - the zero-drain shape: the class froze at the rule the moment it was named; hard from birth |
| experiment_id_scan | EC-01..03 | experiments identity lock, all hard: experiments/ is the one content directory outside docs/ (48 files at tick-608) and the platform catalogs content by Document ID while its catalog walks docs/ links, yet doc_id_check scans docs/ only - the identity of every experiment file was unvouched; EC-01 every experiments/*.md carries a top-level FM Document ID in the EXP_NNNN form EQUAL to the file's own code token from its filename (the LP-05 label rule lifted to file identity: the ID is the platform's primary key, it must not disagree with the file it lives in; TEMPLATE.md is the one by-design exemption - a template cannot honestly carry a real code, its EXP-TEMPLATE placeholder is intentional, the CC-31 fixed-name carve-out shape); EC-02 Document IDs unique across experiments/ and disjoint from every docs/ ID (the ID namespace is global - two files answering to one ID is an ambiguous catalog row on the platform); EC-03 every experiment referenced from at least one docs/ file by full name or stem (the catalog walks docs/ links, so an experiment no doc points at is on disk but invisible to a learner - the CHEAT-SHEET-006 orphan class fleet_count_parity proved: 15 of 47 experiments hidden from the README front door at tick-559 despite linkcheck green); born tick-608 from a 48-file census (48/48 FM, 1 keyset shape Document ID/Title/Last Updated/Status/Difficulty, 47 real IDs all EXP_NNNN matching their filename codes, 0 duplicates, 0 docs/-namespace collisions, 48/48 linked from docs/) - the class froze at the rule the moment it was named, zero-drain, hard from birth |
| hierarchy_scan | HZ-01..03 | catalog placement lock, all hard: the platform builds its catalog hierarchy (phase -> module -> lesson) from the FM Phase / Module declarations while the disk layout under docs/phases/ is the ground truth they denormalize, and a drifted copy files a lesson under the wrong phase or module page with linkcheck green - nothing pinned the declaration to the path (the LP-01..05 philosophy lifted from display labels to FM placement); HZ-01 every FM Phase value parses as an integer equal to the phaseN directory number the doc sits under; HZ-02 every FM Module value is a bare 4-digit code equal to the NNNN- module directory the doc sits under; HZ-03 every module-scoped content doc (any depth under its NNNN- module directory - the 93 direct lesson files and the 21 guides/ subtree docs) carries BOTH Phase and Module, so a new content subtree inherits the duty automatically; README.md, PREREQUISITES.md and the CC-20 assessment/ banks are the by-design exemptions (the assessment 9-field keyset admits no placement fields - a past drain deleted exactly those 4 FM lines from 2300's PRACTICE/QUIZ pair, and the catalog files the banks by their module-attached directory and NNNN- Document ID prefix); born tick-609 from a 260-doc census (114 carriers: 93 lessons + 21 guides, value grammar uniform bare-digit Phase + bare 4-digit Module across all 7 phases, 0 drift across all carriers) - the class froze at the rule the moment it was named, zero-drain, hard from birth |
| title_uniqueness_scan | TU-01 | display-title uniqueness, hard: the display-title space is global like the Document ID space - doc_id_check locks ID uniqueness so two files can never answer to one catalog row, but nothing locked the display side, and two different docs carrying the same Title render as two indistinguishable rows to a learner listing or searching the catalog by name; one finding per extra file in a duplicate group compared after trimming and case-folding across docs/ + experiments/ (a group of 3 fires 2, keeping the count a simple per-extra-file ledger); Title PRESENCE stays frontmatter_lint FM-03's duty and Title-vs-H1 stays FM-09's - an untitled file is counted but never TU-01 (absence is never double-reported, the tick-609 HZ-03 lesson); experiments/TEMPLATE.md carries no uniqueness exemption (EC-02's lesson verbatim: the template carve-out is name-keyed to EC-01 alone); born tick-610 from a 456-doc census (408 docs/ + 48 experiments/, 456 distinct case-folded titles, 0 duplicate groups) - the corpus was born clean, the class froze at the rule the moment it was named, zero-drain, hard from birth |
| qa_tooling_coverage_check | QT-01 | QA-TOOLING.md locked to the scorecard: every script in quality_report.GATES must be named in this doc by script stem or gate label, so the gate inventory cannot silently drift behind the CI contract again (at the 2026-09-30 birth census this doc listed 22 of 59 gates - prereq_census, hard since tick-410, had no row); hand-written rows stay, the gate enforces presence only; born at 22 findings (1 matcher FP: fm_staleness label form), 21 rows drained same tick, hard since |
Report Gates (exit 0 by design)¶
| Gate | What it reports |
|---|---|
| objectives_lint | template-objective artifacts (OL-01/OL-02) - the drain queue |
| fence_namecheck | undefined names in python fences via pyflakes, two codes: UN-01 name not bound by this fence or any earlier fence in the file (sequential bound set - usage-before-setup is no longer free) and UN-02 use-before-bind in an enclosing scope; the corpus's fragment conventions (prose-bound placeholders, cross-lesson class references, excerpt fences using torch/np without boilerplate imports) are locked as a 651-pair ACCEPTED_CENSUS over 106 files born tick-531, anything outside it fails; NC-01/NC-02 report-mode triage (2026-09-29) superseded in place, hard since tick-531 |
| duplicate_heading_scan | duplicate headings split by parent context - DH-01 (hard): same-file same-parent text duplicates are the copy-paste artifact signature, born drained (tick-432 parent-context triage: 67/68 classes cross-parent texture, the single same-parent pair 2102 'Solutions' x2 renamed same day; the H2 nav layer rides inside the rule since every H2's parent is the doc H1); DH-02 (report): cross-parent per-item duplicates are the accepted texture (Task/Requirements per exercise, Overview/Pros/Cons per database, Challenge/Results per case study) - inventory for the platform TOC/nav generator, which must suffix these slugs deterministically |
| fm_staleness | Last Updated age map (fresh/recent/stale/missing) - a stale date is a review queue, not a failure |
| uv_workflow_census | uv project-workflow adoption census (UV-02): every uv subcommand occurrence inside fences (uv pip install, uv venv, uv init/add/sync/run, uvx, uv tool) plus pyproject.toml / uv.lock / requirements.txt doc counts - tracks migration from the imperative layer the uv modernization taught to declarative project workflows; inventory, not a lock (numbers move with content) |
| fence_label_census | fence-label accuracy census (FLC-01): a raw Dockerfile (>=4 directives) or nginx config (>=2 markers) pasted into a bash/sh/shell fence is a mislabel - shell highlighting and the wrong parser gates see it; heredoc GENERATION of such files (cat > ... <<'EOF') is the correct idiom and counts as embedded; born tick-341 at 0 raw / 7 embedded (3 Dockerfile + 4 nginx) across 699 shell fences |
| pacing_consistency_census | Estimated Time vs real reading load (PC-01, report-only): claimed hours against lesson_stats words/code at 200/100 wpm, ratio per doc; born 2026-09-30 at 111 docs, median ratio 4.50 (p10 2.51, p90 8.87) - labels carry hands-on-budget, not reading-time, semantics corpus-wide (naive 2x band flags 107/111, so no hard gate until the platform picks the semantics); module READMEs holding their module's aggregate budget are a known aggregate-by-design class |
| difficulty_distribution_scan | Difficulty as a sequence dimension (DX-01, report-only): per-phase Beginner/Intermediate/Advanced distribution plus docs >=2 bands from their phase's median; born 2026-09-30 with the ramp coherent (phase-1 Intermediate -> phases 3/4/5/7 Advanced, 260 in-phase docs; assessment track ramps phase1 Beginner -> phase3+ Advanced), 25 anomaly candidates almost all entry-point READMEs by design - 2 lesson candidates (3301/3302 Beginner primers) inspected and kept; module README aggregate class is known |
| stale_fm_report | Edited-but-not-revised queue (report-only, git-dependent): FM Last Updated vs the file's last commit date per docs/*.md - commit newer than FM by >2d is listed STALE (content byte-touched without a date bump), 1-2d skew is recent-tick noise and unlisted; answers the owner's hand-run date filter ("Last Updated: 2026-02") mechanically. Doctrine caveat the tool makes visible: mechanical normalization commits (TS-01 quoted-normalization b8b0aa0 over 89 docs, NV-01/LO-01 link+order drains) byte-touch files without a FM bump by design - dates move only with real content edits - so a STALE row means "not meaningfully revised since the FM date", the review queue the platform refresh passes consume |
| model_form_report | Model-name form consistency (report-only): MF-01 space-form checkpoint inside a spec/benchmark table row, MF-02 hyphen form in flowing prose - the vendor two-form convention (prose Mistral 7B vs repo-id Mistral-7B) applied per context; the tick-470 census drained the mismatches (3402 spec rows + phase1 throughput rows space-in-table, 5104 + LAB-003 prose hyphen-in-prose) and codified the rule in STYLE-GUIDE Name Forms; birth hits are documented intended uses (concept-definition row, Tech Stack enumeration, capstone download target) - the identifier-vs-prose boundary needs judgment, so the tool never gates |
| link_reach_report | Corpus-wide link reachability (report-only): BFS from the root README over .md links; a doc no entry point reaches is stranded content - invisible to browsing, un-crawlable by the platform - even when all its own links resolve. Complements NV-01 (in-degree from ONE parent) with global reach. Birth census tick-471: CHANGELOG.md was the only stranded file of 410 - drained via a README Community > Resources row plus a [1.2.0] release entry that brought the changelog itself current - the tool never gates |
| toc_parity_check | TOC parity (TP-01, tick-433, report-only): for every doc carrying a Table-of-Contents section, every H2 that is neither chrome (next steps, references, abstract, summary) nor already linked must have a TOC bullet; matching is HREF-level via anchor_check's gh_slug, so shortened TOC texts and emoji-prefixed slugs count, and a TOC never links to its own heading; born with 25 missing content bullets across 18 docs, drained same tick to baseline 0 - the missing-entry direction (a bullet pointing at no heading) is anchor_check's job (TP-02); exit 0 by design, a new content gap is a review signal fixed by merge-only-add next to the slug-nearest existing bullet |
| partition_balance_check | Partition balance (RB-01, tick-434, report-only): per top-level docs/ subtree, per phase and per phase-module directory - md counts, bytes, lesson shares, tree depth, with HEAVY-DIR / DEEP-PATH / KB-IMBALANCE / SINGLETON-LEAF signals so any re-partition decision starts from numbers; tick-434 verdict: phase KB spread 1.4x, 0 signals, and single-file leaf dirs triaged as two accepted deliberate patterns (the NNNN-module/guides/NNNN-guide layout and learning-resources category-seed dirs); baseline 0 - any new signal on a future tick is re-partition review input, never a failure |
| link_health | External prose-link liveness (report-only, network): http(s) URLs in PROSE (outside fences) under docs/ classified LIVES / LIVES? (odd 5xx-4xx spot-check queue) / DEAD (404/410, the rot queue) / GONE? (DNS/timeout/SSL) / BLOCKED (403/406/429/999 bot walls), obviously non-checkable hosts counted separately; the classified prose-only complement of the ad hoc link_rot_check probe (Network Tool section below); measured 2026-10-02: 426 prose urls (410 unique) - LIVES 393, LIVES? 6 (tensorflow.org transients), DEAD 0, GONE? 2 (discord.gg invites, the bot-block class its docstring flags), BLOCKED 9 (course-platform walls) - zero rot; exit 0 by design, network checks never gate a commit |
Network Tool (ad hoc, not in the scorecard)¶
python scripts/qa/link_rot_check.py
Probes every external http(s) URL (bare prose URLs included). Report
only - network probes are slow and flaky, so the scorecard stays
offline. Notable behavior: a 403 under the tool UA gets an automatic
second chance (browser UA over httpx, then curl - bot walls
fingerprint the TLS stack, not just the UA); placeholder idioms
(your-username, your-org, yourapp.com) are TEMPLATE, not rot;
discord.gg invites time out on some networks.
Measured 2026-09-28 (424 external URLs probed): 391 ok, 20 redirect, 0 dead, 6 denied, 2 timeout, 5 template - zero dead links, and every redirect is a healthy root-to-page redirect (docs landing pages), not rot. Cadence decision from that data: monthly, plus an on-demand run after major content passes; weekly probes would spend 424 network requests per run for no rot signal. The denied class (udemy, leetcode, academy.langchain) is course- platform bot walls, not dead links. The classified prose-only view of the same URL space lives in link_health (Report Gates table above): prose urls only, five liveness classes, most recently 426 prose urls / 410 unique with 0 DEAD (2026-10-02).
Epic-Archive Tools (not gates)¶
| Tool | Purpose |
|---|---|
| brand_scan | verifies every retired brand name across all rebrand generations is fully gone - written forms included |
| legacy_ad_scan | classifies remaining old-repo-name mentions by context |
| legacy_ad_rename | mechanical renames used by the same epic |
Platform Feed (not a gate)¶
python scripts/qa/manifest_export.py # JSON to stdout
python scripts/qa/manifest_export.py --out manifest.json
Exports the corpus as one deterministic JSON manifest for the future platform: every doc under docs/ with its frontmatter metadata, plus the phase/module/lesson hierarchy and per-module assessment flags. Paired with quiz_export (the question bank), a platform load step never has to re-parse markdown. Extraction models are borrowed, not reinvented (quiz_export's frontmatter parser; quality_report's corpus classification), so the manifest's lesson count always equals the scorecard's corpus line - and that pairing is no longer just by-construction: the feed_parity_check hard gate runs both exporters and locks their cross-feed invariants, so classification drift in one feed cannot ship silently broken JSON to a platform load step.
Curriculum Metrics (report tool)¶
python scripts/qa/curriculum_metrics.py
python scripts/qa/curriculum_metrics.py --out metrics.json
Answers "how good is the teaching material?" with numbers: lesson
content-word distribution (prose + code - code-heavy lessons that put
a full implementation in one fence are dense, not thin), python/bash
fence density, H2/link structure, and quiz coverage per module
(33/33, 660 questions). Report only - the thinnest-lessons list is a
content-pass review queue, not a failure (same stance as
fm_staleness). The sparse-modules (<3 lessons) line shows unit
content next to the count - a 2-lesson focused unit can carry a full
module, so the count alone is never a verdict. --out writes the
whole report as one JSON snapshot (same feed idiom as manifest_export
and quiz_export), so content totals and per-lesson stats accumulate
into a trend instead of scrolling away with stdout. Models borrowed
for parity: the corpus classification from quality_report, the fence
model from structure_lint, quiz counts from quiz_export.
Lesson Similarity (report tool)¶
python scripts/qa/lesson_similarity_scan.py
python scripts/qa/lesson_similarity_scan.py --out similarity.json
Answers "do any two lessons say the same thing?" - the copy-paste-clone question no structural gate can see: a lesson forked from a sibling keeps passing every check while the learner reads near-identical pages and fixes land in only one copy (drifted clones). 5-word shingles over normalized text (frontmatter stripped), Jaccard over all 6441 pairs; pairs at or above --threshold print as CLONE-PAIR review findings and the full top table always prints so the threshold stays calibratable by eye. Report only (same stance as curriculum_metrics) - born tick-545 at 0 findings with a max observed similarity of 0.058, the corpus's diversity itself under continuous lock. 4-digit lesson files only; assessment PRACTICE/SOLUTION overlap is by design and out of scope.
Quiz Answer-Position Balance (report tool)¶
scripts/qa/quiz_balance_scan.py --root . [--bank-threshold 0.45]
[--global-threshold 0.30] [--out FILE]
GLOBAL: A=186 B=230 C=127 D=112 -> shares A=28.4% B=35.1% C=19.4% D=17.1% chi2=54.4 [p<0.01]
Answers "where do the correct answers sit?" - the guessing-odds
question no structural gate can see: AS-10 checks that four options
exist and the integrity gate checks keys match inline answers, but the
POSITION distribution is invisible to both. A learner who notices the
skew guesses a letter and outperforms a uniform guesser. Parses the
same 33 banks through quiz_export's own export_quiz (one parser, one
truth), reports per-bank and global letter counts, shares and a
dep-free chi-square vs uniform (critical value 11.34 at df=3, p=0.01
marks the table). Report only (same stance as curriculum_metrics) -
born tick-547 with a real finding: 35.1% of the corpus's 655 correct
answers sit on B (chi2 54.4, p<0.01; ten-plus phase 2-6 banks carry
B=9/20 while thirteen banks are perfectly uniform 5/5/5/5), plus
1200-virtualization the only bank beating the per-bank critical value
(A=9 B=9 C=1 D=1). The honest fix is permuting option lines and
remapping keys - content untouched, presentation order only.
Quiz Answer-Length Balance (report tool)¶
scripts/qa/quiz_length_scan.py --root . [--bank-threshold 0.40]
[--global-threshold 0.30] [--out FILE]
BANK-LONG-SKEW 0.450 6400-vector-databases (9/20) - the longest option is right too often; a longest-guesser beats a uniform guesser
Answers "how long is the correct answer next to its distractors?" - the option-shape tell that sits below every existing length check: AS-15 (hard) fires only at longest-OR-TIED >= 50% and QI-10 is that same line as a module-only trend queue, so a bank drifting at 43-45% strict-longest passes both while a longest-guesser still beats a uniform guesser. This tool owns the finer regime - STRICT longest > 40% per bank - plus the never-measured mirror (strict-shortest > 40%: the "pick the short one" tell) and corpus-wide shares at 30%. Same parse surface as the position tool (export_quiz for the 33 banks, local parser for the 7 phase quizzes' lowercase option rows; the two axes are orthogonal by construction - permuting option lines moves every balance verdict and no length verdict). Report only, exit 0 by design - a skewed bank is a review queue, not a failure. Born tick-640 with a real finding no gate could see: 7 banks at 43-45% strict-longest (6400-vector-databases at 9/20 plus phase quizzes 2-7, all below AS-15's 50% floor) while the corpus globally sat healthy at 17.0% - drained same tick by option-TEXT-only rebalances (3 questions in 6400, 2 per firing phase quiz; letters, keys, counts and meaning untouched), landing every bank at 0.30-0.367 and the corpus at 15.2%/4.2%. The honest fix mirrors the position tool's inverse: rebalance option text (tighten the correct answer or give distractors plausible elaborations) - position order belongs to quiz_balance_scan and is not touched here.
Notebook Curriculum Discovery (report tool)¶
scripts/qa/notebook_discovery_scan.py --root . [--out FILE]
NAV-ORPHAN findings (zero curriculum-navigation inbound): 20
Answers "which notebooks can a learner actually find?" - the
discovery question the markdown link graph cannot see:
link_reach_report BFS-walks .md links only, so docs/notebooks/*.ipynb
sit outside its universe, and linkcheck only proves links that exist
resolve. Counts, per notebook, every inbound md link in the repo,
split by origin: CURRICULUM (any .md outside docs/notebooks/) vs
SELF-INDEX (the notebooks directory's own README). Zero curriculum
inbound prints as NAV-ORPHAN - runnable, tested content invisible to
the browsing learner and the future platform crawler. Report only
(same stance as curriculum_metrics) - born tick-549 with the maximal
finding: all 20 notebooks NAV-ORPHAN (each had exactly one
inbound - its own directory's index README, reached only through
SITEMAP's collapsed "Notebooks (1)" section, while MASTER-INDEX's
Learning Resources tables had no notebooks row at all). Drained the
same tick: a 20-row Notebooks table in MASTER-INDEX, a 21-entry
SITEMAP section, and the File Counts/TOTAL row, all disk-locked by
meta_claims_check's new m_notebooks measure.
Conventions¶
- All gates share one extraction model: naive fence toggle + inline-code scrub. The model never changes for one tool - gate parity is the contract. Indented (4-space) code blocks are inside the model by design; teach content accordingly.
- Scan scope is corpus files only: the tree walk skips virtualenvs
and tool dirs (
.venv,venv,.claude,node_modules,__pycache__,.git). A freshuv syncwould otherwise leak installed package markdown (LICENSE files) into the link gates and shift the baselines per machine. - The scorecard output is the living baseline: any gate going
non-clean is a regression, and new gates enter through
quality_report.py's GATES list.