Repository navigation
Skills: perf-report, a weekly release-to-paste report from the app's own log - #120
Merged
Merged
Conversation
…own log The timing lines the installed app logs for every dictation are kept by the unified log for about a day. perf_report.py copies them into a ledger under ~/Library/Application Support/Pladder/perf-report, then reports the period since the last report by recording length and polish, with the releases that waited for a window pass and the time between stages, against the previous report and the BENCHMARKS.md baseline. The skill opens or comments on an issue only for a regression above noise with enough dictations behind it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The problem
Every few days the question "look at the logs, how is it performing?" goes to an agent, and the agent works out the release-to-paste numbers against the baseline by hand, each time a little differently. Two things make a by-hand answer unreliable:
timinglines for about 18 hours (on 2026-11-07 at 02:16 the oldest Pladder line was from 2026-11-06 16:51, the oldest kernel line from 02:16).log show --last 7dreturns one day, not a week, and says nothing about it.What this adds
.claude/skills/perf-report/SKILL.mdandperf_report.pybeside it (Python 3.9 stdlib,/usr/bin/python3). It only reads: the log, the installed app'sInfo.plist,settings.json, git andgh. It never runs a benchmark and never launches, quits or kills Pladder.collectcopies newrelease-to-pastelines from/Applications/Pladder.appinto a ledger. Worktree and test copies are left out byprocessImagePath. Each line is stored with the logging binary's UUID, and each run records the installed binary's UUID with its version and build. Numbers only; the line carries no transcript.reportcollects, then reports the period since the previous report's end (7 days for the first). It gives median, p90, p99 and max by recording length (the baseline's buckets plus 60 s and over), polished dictations by model, and by engine when more than one appeared. It also counts releases that waited 20 ms or more (feed + engine − engine-time, the thresholdbench-releaseuses) and the median remainder, the total minus the logged stages. Each group's median is compared with the previous report and with the BENCHMARKS.md table, read from the doc, not copied into the script. Builds map to main commits through the build number, which isgit rev-list --count HEAD, and the commits on the release path in between are listed with their PRs.~/Library/Application Support/Pladder/perf-report/(dictations.jsonl,builds.json,reports.json), beside the app's settings and outside the repo; the app never reads that folder.A T3 scheduled task, "Pladder weekly perf report", Mondays 09:00, is created disabled, to be enabled once this merges.
The first real run
Run on the MacBook Air against the real log, 2026-11-07 02:24, and saved as the first report:
Pladder release-to-paste, 2026-10-31 02:24 to 2026-11-07 02:24
Dictations in the period: 84 (84 plain, 0 polished). New log lines copied to the ledger: 0.
Coverage: the ledger starts 2026-11-06 16:51; the unified log keeps these lines for about a day, so the period before that is missing.
Left out: 1 lines from copies other than /Applications/Pladder.app (worktree and test builds).
Engine (settings.json when the lines were copied): parakeet-ultra-incremental.
No previous report: this is the first, compared with the baseline only.
Builds that served the period:
Commits on the release-to-paste path (Sources/PladderCore, Sources/PladderEngines, Sources/PladderAudio, Sources/PladderSystem, Sources/PladderRefine, Package.swift, Package.resolved) from e66c030 (the baseline table) to 7f61cf7:
19 more touched only the app target (Sources/Pladder), which shares the main actor: 18d6d67, e7e2173, 992832e, 9b56c4b, 3627b1f, a92726f, 838fb28, fa029cb, 0bd685d, 6e83364, 0234512, b085cfa, 628c5ac, dc1055d, 8bdc8b2, baf7d6c, 432b593, eda7f5d, 4635319
Verdict: better.
Issue-worthy regression: no.
Rules: a verdict needs 30 plain dictations in the period; a group is compared when both sides have 10 (the whole period 30); a change under 10 % is noise; an issue needs a worse group with at least 20 dictations in the period, or the whole period.
(One edit to the state before this run: build 325 was replaced by 326 at 02:22, a minute before the real run, so its
builds.jsonentry was copied from a scratch run of the same script at 02:20, which had seen it installed.)What it shows, and what it cannot
bench-coordinatorputs the coordinator's own share at 0.02 ms. So in the app, about a fifth of release-to-paste happens between the logged stages, on the main actor. It is not a regression, so no issue was opened. One lead:hotkeyReleasedstarts theoutput.prepare()task (the clipboard snapshot) before the task that runs the stages, so on the main actor the snapshot may run first. Worth an issue of its own if you agree.collectin between fills the ledger (perf_report.py collecttakes a few seconds). A daily collect-only task would give the weekly report a whole week. I left that out, since the brief asked for one weekly task.settings.json'sengineIDwhen it was copied. With Managed policy for organisations: pin the engine, force polish and the correction learner on or off, Clipboard mode without Accessibility #109 merged, a managed policy can pin a different engine; the report then prints a note.🤖 Generated with Claude Code