Skip to content

docs(transcripts): correct four claims #968 and #985 made stale - #995

Merged
sydevs-bot merged 2 commits into
mainfrom
claude/docs-transcripts-stale-claims
Oct 20, 2026
Merged

sydevs-bot merged 2 commits into
mainfrom
claude/docs-transcripts-stale-claims

Conversation

@sydevs-bot

@sydevs-bot sydevs-bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Four transcript claims in the docs and comments describe code that no longer exists, including a Try again control nobody built.
  • Found while verifying Every meditation gets an accurate transcript #897 against what shipped. Comments and Markdown only — no code changed.

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

 docs/architecture.md:150        TranscribeMeditation
-  Queued by `requestTranscription`
+  Queued by `queueTranscription`, the transcript row's own `afterChange`
 src/jobs/queues.ts:44           the `transcription` queue's safety net
-  the transcription start in `requestTranscription`
+  the transcription start in `queueTranscription`

git grep requestTranscription on main finds only those two comments. #968 removed the function with GET/POST /api/meditations/:id/transcript.

2. A retry control that was never built

architecture.md gave the task's retries: 0 a reason — "because the editor's Try again is the retry" — and said a missing concurrency key "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 where status and error derive from.

-`retries: 0`, because the editor's **Try again** is the retry — so every failure becomes a
-`failed` row … rather than an escaping throw
+`retries: 0`, so a failure throws and the retained job row carries the message — which is
+where the row's virtual `status` and `error` are read from
+⚠ **Nothing re-requests one today** — #984 carries that decision

3. A status column that is now a virtual field

 tests/COVERAGE.md:31
-  pinned against the `status` column's own default and options
+  pinned against the virtual `status` field's own options
 tests/unit/job-stage-view.spec.ts  docblock
-  … and that `queued` is what `status` defaults to
+  … and that the virtual `status` field can actually hold it

The spec's own case at job-stage-view.spec.ts:255 already says status is virtual since #968 with no default, so the file disagreed with itself. queued left TRANSCRIPT_STATUSES in the same PR.

4. A write aimed at the wrong row

 docs/architecture.md:150
-  writes the normalised cues to the meditation's row
+  writes the normalised cues to the transcript 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.ts writes meditation-transcripts at :81 and :105; its only meditations call is findRecording'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.mjs proves the compiled output is byte-identical. No preview link would show it.

Test results

  • Lean gate, on the merge of origin/main at bceedfd: ✓ pnpm lint, pnpm typecheck, pnpm typecheck:tests, pnpm test:unit (203 files, 2642 cases, 131s)
  • Targeted specs: the two edited spec files are in that run; neither assertion changed
  • Build: N/A (Railway builds the preview; CI does not build this app)

Manual verification

  1. git grep -n requestTranscription docs src tests returns nothing. Try again still returns four hits — verifyEmbed.ts:28, ErrorBoundary.tsx:81, and two in available-locales.int.spec.ts — none of them transcript code, and none of them a control this bullet could have meant.
  2. Read docs/architecture.md's TranscribeMeditation bullet against src/jobs/TranscribeMeditation/TranscribeMeditation.ts — the two now agree on who queues the run, which row it writes, and what retries: 0 buys.

Notes for reviewer

  • Ticketless, by the incidental-finding rule — a comment-only fix routes to a PR, not a ticket. It carries no product code.
  • comment-fingerprint.mjs: 3 files · 3 codeHash identical · 0 problems, and comment-lint.mjs added no banned phrasing. No protected ⚠ line, #NNN breadcrumb or sync pointer was deleted; one ⚠ line was added.
  • The #984 pointer is deliberate. Whoever picks that ticket up reads architecture.md first, and until now it told them the control already exists.
  • The code half of claim 3 is test(transcripts): name the virtual status field, not a column #1000, not this PR. test-only.mjs --base origin/main reports NOT TEST-ONLY here — docs/architecture.md and src/jobs/queues.ts are outside findings.testGlobs — and a ticketless PR carries one kind, never both.
  • Security review skipped: no changed path matches securityReview.triggerPattern.
Detail

Where these came from. #897's verify run checked all 13 success lines against main at 105abb8. 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:91 and :122 describe the transcript job and the tab accurately against main. docs/architecture.md:75 and :151 likewise. The sweep for other removed symbols — requireTranscriptAccess, TranscriptView, useSmoothPlaybackTime, alignWords, activeWordIndex, SpokenPhrase — found no reference anywhere under src, docs, seeds or tests.

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 the it() title would have made this a code change rather than a comment one, so the title stands.


Generated by Claude Code

`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 sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Oct 20, 2026
@sydevs-bot

sydevs-bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 no session running

recent dispatches
  • 17:39Z address-review · attempt 1 · session · done
  • 17:39Z address-review · attempt 1 · session
  • 17:33Z review-pr · attempt 1 · session · done
  • 17:33Z review-pr · attempt 1 · session

Written by the sydevs dispatcher. Sessions never edit this comment.

@sydevs-bot sydevs-bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧐 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/main finds 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 of CUSTOM_ENDPOINT_PATHS — so the new openapi comment is accurate and the kept assertion is a live tripwire, not vacuous.
  • No ## Preview link, correctly: nothing running shows a comment.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

Comment thread docs/architecture.md Resolved
Comment thread tests/unit/job-stage-view.spec.ts Resolved
@sydevs-bot sydevs-bot added bot:working Lock: a cloud session is running on this item. Removed when it ends. and removed bot:working Lock: a cloud session is running on this item. Removed when it ends. labels Oct 20, 2026
@sydevs-bot sydevs-bot changed the title docs(transcripts): correct three claims #968 and #985 made stale docs(transcripts): correct four claims #968 and #985 made stale Oct 20, 2026
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Both threads answered, origin/main merged in, nothing asked.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Oct 20, 2026
@sydevs-bot
sydevs-bot marked this pull request as ready for review October 20, 2026 18:15
@sydevs-bot
sydevs-bot requested a review from Ardnived October 20, 2026 18:15
@sydevs-bot
sydevs-bot enabled auto-merge October 20, 2026 18:15
@sydevs-bot sydevs-bot moved this from Revising to Approved in SYDevelopers Technical Roadmap Oct 20, 2026
@sydevs-bot
sydevs-bot added this pull request to the merge queue Oct 20, 2026
Merged via the queue into main with commit 2b3ecee Oct 20, 2026
49 of 51 checks passed
@sydevs-bot
sydevs-bot deleted the claude/docs-transcripts-stale-claims branch October 20, 2026 18:45
@sydevs-bot sydevs-bot moved this from Approved to Done in SYDevelopers Technical Roadmap Oct 20, 2026
sydevs-bot pushed a commit that referenced this pull request Oct 20, 2026
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
sydevs-bot pushed a commit that referenced this pull request Oct 20, 2026
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants