Skip to content

test(transcripts): name the virtual status field, not a column - #1000

Merged
sydevs-bot merged 1 commit into
mainfrom
claude/test-transcripts-status-field-wording
Oct 20, 2026
Merged

sydevs-bot merged 1 commit into
mainfrom
claude/test-transcripts-status-field-wording

Conversation

@sydevs-bot

Copy link
Copy Markdown
Contributor

Summary

Change outline

1. A defaultValue member nothing has read since #968

-const statusField = (): { defaultValue?: unknown; options?: unknown } => {
+const statusField = (): { options?: unknown } => {
   const field = MeditationTranscripts.fields.find(
     (f) => 'name' in f && f.name === 'status',
-  ) as undefined | { defaultValue?: unknown; options?: unknown }
+  ) as undefined | { options?: unknown }

The one caller, at :273, destructures options alone. The cast widened the shape to a property the collection no longer declares, so a reader could not tell the default was gone.

2. Two case titles naming a column

-it('falls through when the status column holds nothing it can read', …
+it('falls through when the status field holds nothing it can read', …

-it('declares every running stage the status column can actually hold', …
+it('declares every running stage the virtual `status` field can actually hold', …

A virtual field is derived in an afterRead hook and has no column behind it (MeditationTranscripts.ts:107-118). The second title is the case that reads the live config, so it was the one naming the wrong thing about the thing it reads.

Preview

Nothing to see in a running app. Test titles and a local type annotation.

Test results

  • Lean gate: ✓ pnpm lint, pnpm typecheck, pnpm typecheck:tests, pnpm test:unit (203 files, 2642 cases, 154s)
  • job-stage-view.spec.ts is in that run. All 4 of its meditation-transcripts cases pass unchanged.
  • Build: N/A (Railway builds the preview; CI does not build this app)

Manual verification

  1. grep -n 'defaultValue' tests/unit/job-stage-view.spec.ts returns nothing.
  2. Read MeditationTranscripts.ts:107 — virtual: true, options: [...TRANSCRIPT_STATUSES], no defaultValue.

Notes for reviewer

  • Ticketless and test-only, by the incidental-finding rule. test-only.mjs --base origin/main: TEST-ONLY — 1 test file(s), 0 outside findings.testGlobs.
  • Why it is not in docs(transcripts): correct four claims #968 and #985 made stale #995. That branch is claude/docs-… and changes docs/architecture.md and src/jobs/queues.ts, so test-only.mjs reports NOT TEST-ONLY on it; a ticketless PR carries one kind, never both. Raised there as a consider finding on job-stage-view.spec.ts:11.
  • No assertion was loosened. The only executable change is a type annotation on a local helper.
  • Security review skipped: no changed path matches securityReview.triggerPattern.

Generated by Claude Code

`job-stage-view.spec.ts` still described `status` as a column with a
default. #968 made it `virtual: true` with `options` and no default, so
`statusField()`'s `defaultValue` member has had no reader since, and two
case titles claimed a column the collection does not declare.

Titles and a cast only. No assertion changed.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01U3GMP2omkacZGYzMPriFHS
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Adversarial review skipped: 1 file(s), 8 changed line(s), under review.skipWhen. Say @sydevs-bot review to force one.

🤖 sydevs dispatcher

@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 d5ac8b3 Oct 20, 2026
21 checks passed
@sydevs-bot
sydevs-bot deleted the claude/test-transcripts-status-field-wording 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