Authoring Standards & Textbook Specification (FSDS-SOTA-2026)
Quy chuẩn 5 Trụ cột học thuật–hệ thống và tích hợp Deep-Dive.
This document governs how every chapter, special-topic deep dive, runnable code artifact, and hands-on lab inside Track 1 (
DSAI) and Track 2 (EDAI) is authored in Phase 2+.
Pedagogical Benchmark: University-level mathematical & systems rigor (MSc AI & Data Engineering @ UCL style) combined with 2026 Frontier Research & Principal-Level Production Engineering.
1. Mandatory 5-Pillar Structure for Every Textbook Chapter#
Every authored chapter file (ch-XX-*.md) MUST contain the following five standardized sections:
Pillar 1 — First-Principles Mathematical & Theoretical Rigor#
- Derive core objectives, loss functions, estimators, or system invariants from first principles (no hand-waving).
- Include explicit asymptotic time/space complexity bounds, memory footprints (e.g., KV cache bytes per token, parameter/optimizer/activation memory), and hardware Roofline Model (compute-bound vs. memory-bandwidth-bound operational intensity) where applicable.
- Call out assumptions, identifiability conditions, numerical stability traps (log-sum-exp, precision loss in
bf16/fp8), and failure regimes.
Pillar 2 — Production Systems Architecture#
- Provide at least one clear Mermaid architecture/sequence/dataflow diagram illustrating control plane, data plane, and failure boundaries.
- Specify explicit latency, throughput, memory, and cost budgets (e.g.,
TTFT,TPOT,p99end-to-end SLA, storage IOPS, network all-reduce/all-to-all bandwidth). - Document failure modes, backpressure mechanisms, idempotency, security boundaries, and rollback strategies.
Pillar 3 — Modern 2026 Tech Stack & Runnable Code Standards#
- Python Environment (
3.12+&uv): Python3.12+managed viauv(D:\FSDS-SOTA-Curriculum\.venv+pyproject.toml+uv.lock), linted/formatted withruff, type-checked strictly (mypy/pyright). - Core DS/ML/DL Stack:
numpy,polars/pandas,scikit-learn,scipy,lightgbm,xgboost,catboost,optuna,shap,torch(PyTorch 2.x,torch.compile,bf16/fp8),triton,transformers,dspy,pydanticv2,econml/dowhy,tabpfn. - Core Data/Infra/Serving Stack:
fastapi,httpx,sqlalchemy,pytest,hypothesis,docker/podman,kafka(KRaft),debezium,delta-lake/pyiceberg,trino,duckdb,pyspark,pyflink,clickhouse,feast,airflow,datahub,vllm,sglang,tensorrt-llm,kubernetes,helm,kserve,kubeflow,terraform/opentofu,ansible,mlflow,dvc,opentelemetry,prometheus,grafana,evidently,langfuse. - Code Rules: Zero comment-only code blocks or pseudo-code disguised as runnable code. Every Pillar 3 script/module must be executable, include type annotations, explicit seeding/reproducibility, clear docstrings, and zero hardcoded secrets.
Pillar 4 — Hands-On Industrial Lab (Two-Tier Architecture) & Leakage-Proof Evaluation Rubric#
- Two-Tier Lab Architecture: Every
labs/workspace combines:- Tier 1 (Reference Core): Pure Python /
numpyalgorithmic implementation from first principles running deterministically offline without network dependencies. - Tier 2 (SOTA Parity): Full compatibility with Python
3.12+.venv/uvSOTA libraries (scikit-learn,scipy,polars,xgboost,lightgbm,catboost,shap,optuna,httpx,sqlalchemy, etc.). AST security tests MUST NEVER ban legitimate SOTA DS/ML/Infra libraries; they ONLY ban unsafe deserialization (pickle,joblib,cloudpickle,dill,shelve,marshal).
- Tier 1 (Reference Core): Pure Python /
- Each module/part pairs with a runnable
labs/workspace containing:README.md(100% Vietnamese problem statement, business/engineering constraints, CLI commands, and acceptance thresholds).- Reproducible environment definition (
pyproject.toml, optionaluv.lockordocker-compose.yml/Makefile). - Reference implementation, CLI benchmark exporting
artifacts/*.json, and automated verification test suite (pytest+ data/latency/leakage assertions).
- Anti-Leakage & Evaluation Checklist (Mandatory for Track 1):
- Temporal or group-aware splitting verified before any scaling, imputation, target encoding, or feature selection.
- Calibration (
ECE, Brier score) and business cost-matrix optimization reported alongside ranking metrics (PR-AUC,ROC-AUC,NDCG).
- Production Readiness Checklist (Mandatory for Track 2):
- Liveness/readiness probes, graceful shutdown, resource limits, structured OpenTelemetry traces/metrics, and reproducible load/benchmark scripts (
Locust/k6orvLLM/SGLanggoodput sweeps).
- Liveness/readiness probes, graceful shutdown, resource limits, structured OpenTelemetry traces/metrics, and reproducible load/benchmark scripts (
Pillar 5 — SOTA Literature Reading List & Mastery Exercises#
- Curate 3–6 seminal + recent (2024–2026) papers or engineering RFCs per chapter with exact citation titles and why each matters.
- Include multi-step Conceptual Proofs/Derivations, System Design Trade-Off Scenarios, and Debugging/Failure-Analysis Drills, each with an explicit Grading Rubric.
2. Deep-Dive Special Article Integration Standard#
The 35 Proposed Deep-Dive Articles (03-35-special-topics-extracted.md) are first-class chapters or dedicated deep-dive sections (never footnotes). Each Deep-Dive must include:
- Concrete Failure Case: Why naive industry practice fails in production or research.
- Quantitative / Formal Model: Exact equations, decision-theoretic cost formulations, or hardware latency equations.
- Controlled Ablation / Empirical Experiment: Minimal runnable script or benchmark specification reproducing the insight.
- Production Decision Playbook: Actionable rule-of-thumb table stating when to use X vs. Y under explicit constraints.
3. Language, Repository & Formatting Conventions#
- 100% Vietnamese Authorship: ALL textbook chapters (
ch-XX-*.md) AND ALL Lab Guides (labs/*/README.md) MUST be written in Vietnamese, keeping standard English technical terms in parentheses or inline code. - Paths & Links: Use relative paths inside sibling chapter docs or
file:///D:/FSDS-SOTA-Curriculum/...with forward slashes in documentation indexes; every local link MUST resolve cleanly viaplatform/manifest.py:resolve_repo_link(strict=True). - Encoding: UTF-8 everywhere (
\nLF line endings). - Math & Code Separation: Use KaTeX-compatible
$...$(inline) and$$...$$(display) strictly for mathematical formulas; escape literal currency$as\$in Markdown prose; never mix backtick spans and LaTeX delimiters ambiguously. - Markdown Lists & Tables: Ensure clean GFM lists (avoid ambiguous nesting/indentation), escape literal pipes
|inside Markdown table cells as\|, and validate rendered HTML viaplatform/md_renderer.py. - Diagrams: Valid Mermaid (
flowchart LR/TD,sequenceDiagram,stateDiagram-v2,classDiagram,erDiagram), quoting node labels containing parentheses/brackets (id["Label (Detail)"]). - Preservation of Source Heritage: Every original FSDS module bullet, domain use-case, and lab from 00-source-extraction/ must remain explicitly traceable inside the SOTA chapter tables.
4. Wave-Based Multi-Stream Execution, 5-Stage Workflow & Quality Gates#
All authoring proceeds via complete vertical unit slices (T1-P1-U01, T1-P1-U02, ...) executed sequentially or in Wave-Based Multi-Stream Parallelism with strict directory isolation per stream (_research/ch-XX/, ch-XX-*.md, labs/<lab-dir>/, widgets/<unit>.js, content/<unit>/quiz_and_hints.json). Each unit passes through the 5-Stage Pipeline governed by AGENTS.md and .agents/skills/author-curriculum-unit/SKILL.md:
- Stages 1–3 (Parallel): Three independent
researchsubagents collect Base Knowledge, 2024–2026 SOTA advances, and real-product industry case studies into<part>/_research/ch-XX/{01-base-knowledge.md, 02-advanced-sota.md, 03-industry-cases.md}. - Stage 4 (Sequential Gate):
curriculum-synthesizerreconciles terminology, notation, Mermaid architectures, and the chapter–lab API contract into<part>/_research/ch-XX/04-curated-blueprint.md. - Stages 5A & 5B (Parallel Authoring with Strict File Isolation):
selfauthors the 5-pillar Vietnamese Markdown textbook chapter with<!-- fsds-widget:... -->simulation hooks, interactive JS widgets, andquiz_and_hints.json, whileproduction-lab-engineerbuilds and verifies the Two-Tier runnable lab package (README.mdin Vietnamese +pytest+ CLI benchmarks +artifacts/*.json). - Stage 5C (Centralized Integration & Mandatory Quality Gates): After all streams in the wave pass local verification, the Coordinator registers units in
platform/manifest.py, updatestest_web_platform.pyandREADME.mdtrackers, runsruff check,node --check,md_rendererlink/list checks,D:\FSDS-SOTA-Curriculum\.venv\Scripts\python.exe platform/build_site.py, andpytestacross ALL labs andplatform/tests.