v1.3.0 release: graceful-release fix, quickstart template + demo, documentation accuracy pass
- Fixed: SynthesizerBase subclasses' release/free now dispatch correctly (gated synths were hard-freed instead of released). - New: quickstart project template + LyrebirdQuickstartDemo. - Docs: every example typechecked or provably illustrative (426->542); ~20 wrong-API examples fixed; root docs brought under the compile guard. - Fixed: NRT/Score demo Package.swift build from terminal again. See RELEASES.md for details.
This commit is contained in:
@@ -73,11 +73,23 @@ Group your review by these categories. Every item below is a blocking finding.
|
||||
- `XCTestCase` (Swift Testing only — `@Test`, `#expect`, `@Suite`).
|
||||
- Xcode Playgrounds.
|
||||
|
||||
### Documentation accuracy violations
|
||||
|
||||
`scripts/check-docc.sh` only catches **broken symbol links**. Nothing compiles the ~900 `” ```swift ”` fences in `.docc` and `///` comments, and nothing checks prose against behaviour, so these rot silently and are yours to catch:
|
||||
|
||||
- **A changed public signature with stale references.** Any diff that adds/renames/removes a parameter, or changes throwing-ness or return type, invalidates docs elsewhere. `/lyrebird_review` runs `scripts/check-doc-impact.sh` and pastes its output into your prompt under "Doc impact" — **work that list**; it is the mechanical half of this check, and each entry is a candidate you must confirm was updated or is genuinely unaffected. It suppresses references already covered by the compile guard, so everything listed is unchecked by any automation. If the list is absent, grep the old form yourself across `Sources/**/*.md` and `///` comments. Real precedents: `engine.add` became throwing and 11 doc-comment examples kept calling it without `try` for many phases; `Score`'s DSL grew parameters and silently broke every pinned DocC link.
|
||||
- **Code fences that would not compile** — a throwing call without `try`, a call to an overload that no longer exists (a real one shipped: `engine.schedule(.remove(synth), at:)`), wrong argument labels, stale type names.
|
||||
- **Prose that contradicts the code.** Verify behavioural claims against the implementation rather than trusting them. A real one shipped for years: `SPSCQueue.init(capacity:)` was documented as rounding capacity up to a power of two when it actually `precondition`-traps.
|
||||
- **New public API that is documented nowhere** — not in the `.docc` catalog, not in CLAUDE.md's Task → Doc Map. A new `SynthesisEngine.init` parameter that never reaches `EngineSetup.md` is a defect. `check-doc-impact.sh` lists these explicitly under "Changed public API with NO doc reference anywhere".
|
||||
- **Stated defaults/constants that no longer match** the `let` they describe.
|
||||
|
||||
## Review Instructions
|
||||
|
||||
- Read `branch.diff` for the list of changed files.
|
||||
- For each changed file, read the full file — not just the diff.
|
||||
- Check the entire call graph for RT violations: a function called from `processBlock` or the render callback must itself be RT-safe, even if the function isn't marked as modified.
|
||||
- **If the diff changes any public signature, grep the whole repo for the old form** (`.docc` markdown, `///` comments, `docs/`). Stale references live in files the diff never touched, so a diff-only read cannot find them.
|
||||
- **Verify documentation claims against the code rather than trusting them.** When a diff adds or edits prose asserting how something behaves, read the implementation and confirm it. Docs are the one place where a confident sentence is not evidence.
|
||||
- Call out bugs and security issues without hesitation.
|
||||
- Flag code smells only if > 80 % confident they are unintentional and concerning.
|
||||
- Include file paths and line numbers in every finding.
|
||||
|
||||
Reference in New Issue
Block a user