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.
|
||||
|
||||
@@ -69,6 +69,25 @@ swift test --no-parallel 2>&1
|
||||
|
||||
If tests fail, report the failures immediately and stop — do not proceed to review.
|
||||
|
||||
## Step 2b: Report doc impact
|
||||
|
||||
Doc rot is overwhelmingly *caused* by a public-API change, and a review that reads only the
|
||||
diff structurally cannot find it — the stale references live in files the diff never touches.
|
||||
That is exactly how `engine.add` gained `throws` while 11 examples kept calling it without
|
||||
`try`, and how `LyrebirdFloat` was deleted with 75 references outliving it.
|
||||
|
||||
```bash
|
||||
bash scripts/check-doc-impact.sh main...HEAD
|
||||
```
|
||||
|
||||
This **never fails** — it reports candidates it cannot adjudicate. Capture its output and
|
||||
paste it into Agent A's prompt below, under a heading `## Doc impact (from
|
||||
check-doc-impact.sh)`. If it prints `OK: the diff changes no public declarations`, say so in
|
||||
the prompt instead and move on.
|
||||
|
||||
References inside fences that `check-doc-snippets.sh` already typechecks are suppressed by
|
||||
design, so everything it lists is something no automation is checking.
|
||||
|
||||
## Step 3: Run reviews in parallel
|
||||
|
||||
Launch **both agents in a single message** (two Agent tool calls):
|
||||
@@ -84,6 +103,16 @@ You are a strict senior audio systems engineer reviewing a Swift audio synthesis
|
||||
|
||||
Apply the Lyrebird-specific review rules defined in your agent instructions.
|
||||
|
||||
## Doc impact (from check-doc-impact.sh)
|
||||
|
||||
<paste the Step 2b output here>
|
||||
|
||||
For every entry above, verify the doc was updated or is genuinely unaffected, and report the
|
||||
ones that were not. The tool cannot make that judgement — that is why it is your job. Note
|
||||
that it matches a member name across types, so qualify by the owning type it shows. Anything
|
||||
listed under "Changed public API with NO doc reference anywhere" is a finding unless the API
|
||||
is genuinely internal-facing.
|
||||
|
||||
Generate a summary titled "Lyrebird Review Results for branch '<name>'" where <name> is the current git branch name.
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user