Repository navigation
docs(transcripts): correct four claims #968 and #985 made stale - #995
Conversation
`architecture.md` still named `requestTranscription`, removed with the two transcript endpoints, and said the editor's **Try again** is why the task takes `retries: 0`. There is no such control: #985 shipped every notice without a button and #984 carries the decision. The task throws, and the retained job row is what `status` and `error` derive from. `queues.ts`'s safety-net comment named the same removed function. `COVERAGE.md` and `job-stage-view.spec.ts` still described a `status` column with a `queued` default; `status` is virtual with no default. Comments and Markdown only. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WGDw1R2GJYTuQc9q6mJuon
sydevs-bot
left a comment
There was a problem hiding this comment.
🧐 Adversarial review
Ticketless and rightly so: 5 files, 23 lines, comments and Markdown, no product code. Every corrected claim checks out against main. queueTranscription is the transcript row's afterChange and does start the queue; status is virtual: true with options and no default; the retries: 0 and concurrency reasons the PR writes into architecture.md are the job docblock's own words. The diff is the size of the problem — except that it corrects four claims, not the three the title and ## Summary count.
Two things the reviewer hits before the diff. ## Manual verification step 1 claims its git grep returns nothing; on ae36b13 it returns four hits, none of them transcript code — only the requestTranscription half is clean. And docs/architecture.md is @-imported, so it loads every session: this one bullet now carries four ⚠ lines restating a docblock that already carries three. Does the fourth earn that, or would pointing at TranscribeMeditation's docblock carry it for less?
Findings
should-fix— a fourth correction, unlisted in the body (docs/architecture.md:150).consider— the stale claim survives in the same spec file's code (tests/unit/job-stage-view.spec.ts:11).
What was checked
- Read whole:
queueTranscription.ts,TranscribeMeditation.ts,MeditationTranscripts.ts,job-stage-view.spec.ts,openapi-custom-endpoints.spec.ts:505-528. git grep requestTranscription origin/mainfinds only the two comments this PR edits; none on the branch.- #984 read: open,
awaiting. Its approach says "Keep it green rather than editing it" and its criteria keep that path out ofCUSTOM_ENDPOINT_PATHS— so the new openapi comment is accurate and the kept assertion is a live tripwire, not vacuous. - No
## Previewlink, correctly: nothing running shows a comment.
🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
|
Both threads answered,
🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
Three conflicts, all where #995 and #1000 edited lines this branch had also touched: - `src/jobs/queues.ts` — keep this branch's `default` queue entry and main's `queueTranscription` rename. The transcription comment's clearance list named a queue `imports` that this branch no longer declares; it is `default`. - `tests/unit/job-stage-view.spec.ts` — keep the generalised `fieldNamed` helper. It still reads `defaultValue`, which the imports status field has and the now-virtual transcripts one does not. - `docs/architecture.md` — keep the CSV import bullet and take main's rewritten `TranscribeMeditation` paragraph. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01H6zmb4FdfrMUxYahrrPDrD
The 18:36Z merge commit took a stale `origin/main` ref, so it never saw #995 (three stale transcript claims corrected) or #1000 (`status` named as the virtual field it is). Two files conflicted, and both are files this branch touches only in 3b05cad, the pure `prettier --write` commit, so each took main's content and was re-formatted rather than merged hunk by hunk: - tests/unit/job-stage-view.spec.ts — #1000 drops `defaultValue` from `statusField()`'s return type and its cast - tests/COVERAGE.md — #1000's wording for the transcripts row For all five files main changed, the merged content is byte-for-byte `prettier(main's version)`, so nothing main wrote was dropped and nothing but formatting was imposed on it. `prettier --check .` passes over the whole tree, which is what the `format:check` step this branch adds will run in CI. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_014ZW1ZZGzCifwbAHoJnypsy
Summary
Change outline
Four claims, each wrong in a way a reader cannot tell from the file they are in.
1. A function removed with the two transcript endpoints
git grep requestTranscriptiononmainfinds only those two comments. #968 removed the function withGET/POST /api/meditations/:id/transcript.2. A retry control that was never built
architecture.mdgave the task'sretries: 0a reason — "because the editor's Try again is the retry" — and said a missingconcurrencykey "would block Try again after a stall for good". #985 shipped every notice without a button, deliberately, and #984 carries the decision about which surface a re-request gets. So the stated reason pointed at nothing, and the real one was missing: the task throws, and the retained job row is wherestatusanderrorderive from.3. A
statuscolumn that is now a virtual fieldThe spec's own case at
job-stage-view.spec.ts:255already saysstatusis virtual since #968 with no default, so the file disagreed with itself.queuedleftTRANSCRIPT_STATUSESin the same PR.4. A write aimed at the wrong row
The sharpest of the four, and the one this body missed until review: the ⚠ two clauses later already says It never writes the meditation (#897, success line 12), so the bullet contradicted itself in one sentence.
TranscribeMeditation.tswritesmeditation-transcriptsat:81and:105; its onlymeditationscall isfindRecording's read at:125.Also: one guard whose comment outlived its subject
openapi-custom-endpoints.spec.ts's "The transcript endpoints are manager-only" describes endpoints that are gone. The assertion is kept and is not vacuous — it guards the endpoint #984 may re-add — so only the comment changes, to say that.Preview
Nothing to see in a running app: the diff is comments and Markdown, and
comment-fingerprint.mjsproves the compiled output is byte-identical. No preview link would show it.Test results
origin/mainatbceedfd: ✓pnpm lint,pnpm typecheck,pnpm typecheck:tests,pnpm test:unit(203 files, 2642 cases, 131s)Manual verification
git grep -n requestTranscription docs src testsreturns nothing.Try againstill returns four hits —verifyEmbed.ts:28,ErrorBoundary.tsx:81, and two inavailable-locales.int.spec.ts— none of them transcript code, and none of them a control this bullet could have meant.docs/architecture.md'sTranscribeMeditationbullet againstsrc/jobs/TranscribeMeditation/TranscribeMeditation.ts— the two now agree on who queues the run, which row it writes, and whatretries: 0buys.Notes for reviewer
comment-fingerprint.mjs:3 files · 3 codeHash identical · 0 problems, andcomment-lint.mjsadded no banned phrasing. No protected⚠line,#NNNbreadcrumb or sync pointer was deleted; one⚠line was added.#984pointer is deliberate. Whoever picks that ticket up readsarchitecture.mdfirst, and until now it told them the control already exists.statusfield, not a column #1000, not this PR.test-only.mjs --base origin/mainreportsNOT TEST-ONLYhere —docs/architecture.mdandsrc/jobs/queues.tsare outsidefindings.testGlobs— and a ticketless PR carries one kind, never both.securityReview.triggerPattern.Detail
Where these came from. #897's
verifyrun checked all 13 success lines againstmainat105abb8. Line 10 ("offers to try again") is unmet, and the docs claiming otherwise is what made that worth a PR rather than a note — a goal's verification should not be the only place the gap is written down.Not fixed here, on purpose.
tests/COVERAGE.md:91and:122describe the transcript job and the tab accurately againstmain.docs/architecture.md:75and:151likewise. The sweep for other removed symbols —requireTranscriptAccess,TranscriptView,useSmoothPlaybackTime,alignWords,activeWordIndex,SpokenPhrase— found no reference anywhere undersrc,docs,seedsortests.Why the openapi assertion stays.
CUSTOM_ENDPOINT_PATHS['/api/meditations/{id}/transcript']is undefined today because the endpoint is gone, so the case reads as vacuous. It is not: #984's recommended option re-adds that exact path, and the case is what would then refuse to publish it in the OpenAPI spec for a manager-only action. Renaming theit()title would have made this a code change rather than a comment one, so the title stands.Generated by Claude Code