docs: full technical documentation suite indexed in docs/README.md#135
docs: full technical documentation suite indexed in docs/README.md#135zachtheyek wants to merge 17 commits into
Conversation
…tifact layout Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…ining plot Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…ifest retries, viz suite Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…ction stages Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…and thresholds Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…s, migrations, growth Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…ecycle, monitor Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…luster smokes Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…ant-handle rules Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…lishing, runbook Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…eferences Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…suite - CONTRIBUTING: structure tree + module table gain round_data/run_state/pfb/inference_viz and tests/fixtures; the architecture-section TODO resolves to docs/ARCHITECTURE.md - SKILL.md: source tree updated; Reference Files list the full docs suite - CLAUDE.md: More-detail section points at the docs/README.md index Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
… round_XX tag usage Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…, baselines Document the always-on stage-timing suite: the stage_timer/record_stage API and its thread-local dot-name nesting, the instrumented stage map, the report tool (stage tree, flame timeline, rules-driven suggestions), the benchmarks/ micro- benchmarks, and the current blpc3 baselines plus end-to-end speedups. Wire it into the docs index (replacing the Phase-A placeholder row). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…annotations
- DATABASE.md: document the pipeline_stages table (schema v3), add a schema-
version -> feature map (v1 superseded columns, v2 inference_cadences, v3
pipeline_stages), and update the migration section and table count.
- INFERENCE_PIPELINE.md: document the full HF artifact-resolution chain
(explicit paths -> --hf-revision -> installed-release v{__version__} with the
dev-version guard -> latest release/final tag), the all-or-none validation,
and the inference-scope tag-dedup guards.
- RUNTIME_SERVICES.md: document the monitor.annotate_stages resource-plot
overlay (config knob, depth<=2 rule, flush-first).
- RELEASE.md: cross-check gates against the implemented release.yml
(wheel-smoke in build, GitHub Release artifacts).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Claude finished @zachtheyek's task in 1m 33s —— View job Review of PR #135: docs suite
Overall assessmentThis is an excellent, comprehensive documentation suite. The 11 new documents cover every major pipeline surface with consistent depth, well-structured tables, and precise code references. The writing is technically rigorous — equations, architecture tables, schema definitions, and diagnostic interpretation guides are all present. The PR description's verification claims (243 links checked, symbol fidelity against source) are credible given the level of detail. Verdict: Approve. This is docs-only, well-verified, and significantly raises the project's documentation quality. The notes below are minor suggestions, none blocking. Strengths
Minor notes1.
|
|
Hi @zachtheyek — the PR body mentions |
- ARCHITECTURE.md: move setup_gpu_strategy() into clean prose so the main.py link renders without the stray trailing backtick span. - DATABASE.md: make the ~24 injection_stats rows/cadence derivation explicit (18 intensity + mean 6 signal-characteristic across the 0/6/6/12 types). - GITHUB_AUTOMATION.md: add a callout unpacking the dense claude-update-docs two-step relay (shell regen -> handle-mention issue -> assistant PR). RUNTIME_SERVICES.md KNOWN_ISSUES #6/#10/#11 verified against the current file (CPU undercounting / missing plot sections / negative memory freed) — no drift. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Applied the review polish (
Verification: |
|
@claude please perform a second-pass code review of this PR. Re-review the current diff for any remaining correctness bugs, security issues, or significant quality problems, and post your findings. If the diff is clean, please say so explicitly. (Final verification round before merge.) |
Second-pass code review — cleanI've reviewed the full diff (2,891 lines across 17 files) for correctness bugs, security issues, and significant quality problems. The diff is clean. What I checked
No findings to report. LGTM for merge (after its code-PR dependencies land, per the stacking note). |
…tree Add the four unit-test files that exist on this branch but were missing from the Layout tree (test_tag_guards.py, test_hf_hub.py, test_benchmark.py, test_logger.py), and add a 'Coverage and deliberate gaps' section documenting why monitor has no dedicated unit tests and what logger is (and isn't) unit-tested for. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Pushed a docs-only accuracy pass to
Every module/behavior cited was verified against the source on this branch. Relative links in the file still resolve (0 broken) and |
Closes #131
Stacking
Based on
integration/pr11-base(the all-code base: training pipeline + retry overhaul, inference energy-detection + PFB + retry/viz, benchmarking suite #134, HuggingFace integration #130, release engineering #133). Being docs-only, this PR documents everything before it and carries no code changes. Merge after the code PRs it describes.What this adds
The full
docs/technical suite — one document per pipeline surface — indexed indocs/README.md, replacingdocs/placeholder:ARCHITECTURE.mdTRAINING_PIPELINE.mdINFERENCE_PIPELINE.mdPREPROCESSING.mdMODELS.mdDATABASE.mdpipeline_stages, writer thread, flush/supersede, migration mechanismRUNTIME_SERVICES.mdTESTING.mdBENCHMARKING.mdpipeline_stages, report tool, micro-benchmarks, baselinesRELEASE.mdGITHUB_AUTOMATION.mdAlso refreshes
CLAUDE.md, the repo-context skill, andCONTRIBUTING.md, and extendsCONFIG_AND_CLI.md/GPU_RUNTIME_GUIDE.mdcross-references.Phase B (this session) — the deferred, code-dependent pieces
Written against the landed modules (
benchmark.py,hf_hub.py,tag_guards.py,db/db.py,utils/benchmark_report.py,benchmarks/,.github/workflows/release.yml,utils/hf_tag_release.py):docs/BENCHMARKING.md(new) —stage_timer/record_stagewith thread-local dot-name nesting, the instrumented stage map, thepipeline_stagestable (schema v3),monitor.annotate_stagesoverlay,benchmark_report.py(stage tree / flame PNG / suggestion rules), thebenchmarks/micro-benchmarks, and baseline numbers (123× vectorized normality and 11.9× PFB-vs-spline on blpc3; end-to-end inference ~6.2× and ED ~45 min → ~2 min/cadence; training RSS held ~26% vs the old round-2 OOM).INFERENCE_PIPELINE.md— filled the<!-- PHASE-B: HF model resolution -->gap: the full artifact-resolution chain (explicit paths →--hf-revision→ installed-releasev{__version__}with the strict dev-version guard → latest release/final_vXtag), the all-or-none validation, and the inference-scope tag-dedup guards. Corrected the now-stale "all three paths required" text.DATABASE.md— added thepipeline_stagestable and auser_version→ feature map (v1 superseded columns, v2inference_cadences, v3pipeline_stages), verified against_migrate_schema; bumped the version/table-count references.RUNTIME_SERVICES.md— documented themonitor.annotate_stagesCPU-panel overlay (config knob, depth≤2 rule, flush-first).docs/README.md— realBENCHMARKING.mdindex row replacing the placeholder comment.RELEASE.md— cross-checked every CD gate against the implementedrelease.yml/hf_tag_release.py; added the build-stage wheel smoke and the GitHub Release artifact attachment for fidelity.Verification
Docs-only; no runtime surface. Checks performed:
#anchoracross all docs resolved against the filesystem / target headings):stage_timer/record_stage/current_stage/_ACTIVE_STAGES(benchmark.py),write_pipeline_stage/query_pipeline_stages/_SCHEMA_VERSION=3/_migrate_schema(db/db.py),select_annotation_spans/_ANNOTATION_MAX_DEPTH/annotate_stages(monitor.py+ config default),build_stage_tree/top_slowest/suggestion thresholds (benchmark_report.py),version_default_revision/_SEMVER_TAG_PATTERN/resolve_hf_revision/resolve_inference_artifacts(hf_hub.py),enforce_tag_guards/find_inference_tag_collisions/--force-tag(tag_guards.py), and the release-gate ordering inrelease.yml.pre-commit run --all-files— green.docs/; CLAUDE.md/CONTRIBUTING structural fixtures untouched by content-only edits). CI will exercise it.Note for a follow-up (not in scope here):
utils/benchmark_report.py's encode-input-bound suggestion prints--inf-batch-size, but the real flag is--per-replica-batch-size;BENCHMARKING.mddocuments the correct flag.AI assistance
Authored with Claude Code (Anthropic) — Phase B doc drafting against the landed code, plus the scripted link/anchor check and code-symbol verification. Reviewed for factual accuracy against the source. Disclosed per
AI_POLICY.md.