Skip to content

feat(lectures,music): store the data JSON-LD needs for VideoObject and MusicRecording - #1244

Open
sydevs-bot wants to merge 20 commits into
mainfrom
claude/feat-1236-seo-metadata
Open

sydevs-bot wants to merge 20 commits into
mainfrom
claude/feat-1236-seo-metadata

Conversation

@sydevs-bot

@sydevs-bot sydevs-bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • A lecture carries the day its talk was given, read out of the Nirmala Vidya title and typed by nobody, so a VideoObject can publish uploadDate.
  • artistUrl is refused unless it is an http(s) URL, and a song or meditation with no readable duration says so to its editor.
  • Joined: a replacement upload stating no length now clears the stale duration instead of keeping it.

Change outline

The main change is a new collection field and the one feed shape that carries it.

Contract — the lecture's date

 lectures                                      src/collections/Lectures/Lectures.ts
   type, nirmalVidyaVimeoUrl, title
+  date                 date, dayOnly, optional, derived
+    admin.condition      saved && type === 'full'
+    admin.readOnly       true
+    access.create        false               # nobody types it
+    access.update        false
   thumbnail, startTime / stopTime, subtitles
   metadata             json, NV-owned, read-only, overwritten monthly
 lectureDateFromTitle(metadata.title)          src/lib/lectures/nirmalaVidya.ts
   `Title (1990-03-16)`      → 1990-03-16T12:00:00.000Z   # 68 of 77 on production
   `1989-08-01 Title`        → 1989-08-01T12:00:00.000Z   # 8 of 77
   `1980-0421 Title`         → null                       # the 1 upstream typo
   a day no calendar holds   → null
   written by populateFromNirmalaVidya at create, and by every SyncLectureMetadata run
-- src/migrations/20261120_235118_lecture_date.ts
ALTER TABLE "lectures" ADD COLUMN "date" timestamp(3) with time zone;

Contract — what the feeds answer

 LecturePlayerData                             src/lib/lectures/lectureShape.ts
   id, title
+  date: string | null                         # metadataSource's, so a clip reports its parent's
   hlsUrl, thumbnailUrl, subtitles
   startTime, stopTime, duration, fullLectureId, userChoices

GET /api/lectures/for-audience and GET /api/meditations/:id/related-lectures both serve it.
LECTURE_FEED_SELECT gains date, and the hand-authored OpenAPI schema with it.

Contract — the music fields

 albums                                        src/collections/Albums/Albums.ts
-  artistUrl            text, unvalidated
+  artistUrl            urlField → http(s) only, refused on save

 audioDurationField({ noun, consequence, hideValue })   src/fields/audioDurationField.ts
+  durationNotice       ui → InfoBanner warning, when a saved row has no duration
   duration             number, read-only; hideValue keeps it out of the editor's way

 mounted on both collections that mount extractAudioDuration:
   songs        noun 'track',      seconds shown
   meditations  noun 'meditation', seconds hidden, as before

Behaviour — the shared duration extraction

 extractAudioDuration({ maxMinutes })          src/lib/audio/duration.ts
   the save carries no file  → leave the document alone
   parse the buffer
-    threw                   → warn, leave the stored duration in place
-    no length stated        → leave the stored duration in place, silently
+    threw                   → warn, clear the duration
+    no length stated        → warn, clear the duration
   over the cap              → throw
   otherwise                 → store the whole seconds
     Meditations mounts this before cacheMeditationNodeWeights, so a
     length-less replacement now empties subtleSystemNodeWeights rather
     than weighting frames against the replaced file's length

Preview

  • Lecture 1019001 — a full lecture whose NV title reads An introduction to meditation (1979-03-18); Date shows 18 Mar 1979, read-only
  • Lecture 1019003 — a full lecture whose NV title states no date, so Date is blank
  • Lecture 1019004 — a clip of 1019001: no Date field of its own, and its parent holds one
  • Meditation 1015014 — audio stating no length: the new warning, and the empty subtleSystemNodeWeights it explains
  • Album 1017003 — a valid artistUrl, and it holds "Fixture Damaged Interlude (no duration)"; open that song from the Songs table for the same warning
  • Album 1017002 — no artistUrl at all, which stays allowed

songs is admin.hidden, which unregisters its routes, so a song has no page of its own — it opens in the album's drawer.

Contract impact

src/payload-types.ts gained Lecture.date, and it is a contractSync source for
WeMeditateWeb (server/payload-types.ts) and SahajAtlasWeb
(src/types/payload/payload-types.ts). Both re-sync in a bot PR after this merges. Filling
uploadDate in lectureSeo is sydevs/WeMeditateWeb#273's follow-up, not this PR's.

Migration

  • New migration: src/migrations/20261120_235118_lecture_date.ts
  • Impact: adds one nullable column to lectures. No data transformed, none lost. The only schema delta between the two drizzle snapshots is public.lectures/columns/date.
  • Reversible: yes — down drops the column.

Test results

  • Lean gate: ✓ lint, format, typecheck (src), typecheck (tests), unit lane — 286 files, 3864 tests
  • Targeted specs: 234 passed across 9 integration files (lectures, sync-lecture-metadata, albums, song-duration, meditation-duration, meditations, lectures-for-audience, meditation-lectures, fixture-load)
  • Security review: ✓ no findings. Lectures/hooks/ matches securityReview.triggerPattern, so the branch-level sweep ran
  • Build: N/A — Railway builds the preview

Each new assertion was watched failing against the defect first. From the earlier rounds: the three
shapeLecture date cases with the shaper line removed, the artistUrl case with the field back to
type: 'text', and both duration cases with the clear removed (expected 42 to be null). From this
round: the three create-path date cases with data.date dropped from the hook (expected null to be '1979-03-18T12:00:00.000Z'), the sync case with date dropped from its update, the calendar-invalid
case with the round trip removed (expected '1990-02-31T12:00:00.000Z' to be null), the year-bound
case with 19|20 loosened to \d{4} (expected '1842-07-01T12:00:00.000Z' to be null), and the
meditation wiring case with the mount reverted (expected [] to have a length of 1).

Manual verification

  1. Open lecture 1019001 and confirm Date reads Mar 18, 1979 and takes no input. Payload's dayOnly default is MMM dd, which hides the year a talk was given.
  2. Open meditation 1015014 and confirm the warning sits in the Details tab.
  3. Open album 1017003 → the Songs table → "Fixture Damaged Interlude (no duration)", and confirm the warning sits above a blank Duration.

Notes for reviewer

  • What the NV API carries, from its own published schema. The keyed /hls probe the ticket puts first still cannot run — a routine has no NIRMALA_VIDYA_API_KEY — but it no longer has to: NV publishes its OpenAPI document unauthenticated at https://mapi.nirmalavidya.org/api/v2/openapi.json, which declares every key of the route's VimeoVideoHlsResponse. Its two dates are created_time and modified_time, both Vimeo's own — video 393387855 was uploaded 2020-02-24 under the title (1990-03-16) (Vimeo oEmbed, unkeyed), so those are 30 years off the talk and disqualify the Vimeo upload date the ticket asked us to check. NV does hold the day, one route away: /hls forwards event_id, and GET /api/v2/events/{event_id} answers date.date, "Date and time when the event takes place", with its own verification status. That route declares OAuth2PasswordBearer where /hls takes X-API-KEY, and answers Not authenticated unkeyed, so it needs an NV account credential nobody has provisioned. Whether to pursue it is an open thread.
  • The title is the source reachable with the key we hold. The sync already fetches name and stores it as metadata.title, and that is observable without the key: across all 77 full lectures on production, 76 spell the date (68 as (1990-03-16), 8 as a 1989-08-01 prefix). So the column is derived rather than typed, which is what the reviewer asked for.
  • The one production lecture with no date is an upstream typo, 1980-0421 What Is The Second Birth London NITL HD. A parse that guessed where the missing hyphen goes would invent a date on a public page, so it refuses. The fix belongs in the NV title, and the next monthly sync picks it up — which is the point of sourcing the column there rather than having an editor patch it here.
  • The date is read from metadata.title, never the editor's title. The two differ on 31 of those 77, because an editor retitles freely; only the NV-owned copy is refreshed by the sync.
  • That also retires one checklist line. buildLectureMetadata is untouched: the date is a column beside metadata, not a key inside it, so it stays selectable and sortable, and lectureDateFromTitle is called by both writers that build metadata.
  • GET /api/lectures?select[date] answers null on a clip, by design: a clip stores no date, as it stores no metadata, and WeMeditateWeb self-populates fullLecture with LECTURE_SELECT to read the parent's playback data. That select omits date, so the consumer reads none until one date: true line is added there, which covers a clip and a full lecture at once. The question thread settled on this shape.
  • The ticket's optional (c), a song-level artist override, is not built — the criteria name only (a) and (b). Whether Albums.artist should stop being localized is the other product decision it raises, and is left alone.
  • The create gate a previous round dismissed is now in. That dismissal rested on having to key the gate on data.type, which rides on a defaultValue. A derived column needs no such key: create: () => false refuses every caller, and the hook writes the value afterwards, because field access runs in the beforeValidate traversal and a collection beforeChange hook runs after it.
  • Other dismissed review findings. Promoting fieldErrorMessage into tests/utils/ touches 8 pre-existing copies outside this diff; the albums case uses the repo's own one-case wiring shape instead. The dayOnly timezone shift rests on a premise Payload disproves: DatePicker pins a day-only pick to noon UTC, so the day picked is the stored value's UTC date part in every editor timezone. The field carries that constraint as a comment, and lectureDateFromTitle writes the same hour so a derived value and a legacy typed one agree.
Detail

Why a plain column rather than a virtual field. Payload 3 supports virtual: 'fullLecture.date',
which would let a clip answer directly at depth 0. It was rejected: the consumer already populates
fullLecture, nothing sorts or filters on the date, and it would add a second name for one value.
The reviewer resolved that thread on the built option.

Why a regex over the title rather than a new response field. /hls carries no date of the
talk — only Vimeo's created_time and modified_time — so no key on the route we already call
can be preferred to the title. The event route that does carry one needs a second credential, and
its event_id is present only "if a unique matching event exists", so its coverage against
production's 77 cannot be measured from here either. The title arrives through the fetch we already
make, so it needs no new credential and no change to the response schema. If the event date is
taken up later, it replaces this function's caller rather than the column.

Why the duration clear came in with this ticket. The editor warning reads the stored column, so
a song whose replacement audio stated no length kept its old number and the warning never appeared —
the banner would have been correct about a value that was wrong. Fixing the hook makes the condition
describe the upload rather than the symptom. cacheMeditationNodeWeights is mounted after the
extraction precisely so the weights describe the duration being stored, so emptying them is that
invariant holding, not a new behaviour; it is now pinned by a case.

Review passes. /simplify (four lenses: reuse, simplification, efficiency, altitude) and
/code-review high; this repo has no pr-review-toolkit. /security-review ran this round, over
the whole branch diff, and reported no findings. comment-lint.mjs reported no banned comment
added.

Closes #1236

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

🤖 Generated with Claude Code

https://claude.ai/code/session_01Mg9rjXrgywSTQ8UnLgCCRh

Google requires `uploadDate` on a VideoObject, and nothing here held it:
`metadata.lastSyncedAt` is when SahajCloud read the lecture and `createdAt`
is when the row was made. The Nirmala Vidya response could not be checked for
a date of its own — the routine has no NIRMALA_VIDYA_API_KEY — so this is the
ticket's editor-entered fallback, optional, so a lecture with no known date
still saves and publishes no upload date.

A clip reads its parent's date through `fullLecture`, as it reads the parent's
`metadata`.

Refs #1236

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjXrgywSTQ8UnLgCCRh
`LecturePlayerData` is the one shape both feeds answer, so the date joins it
beside `duration`, from the same source `metadata` comes from — the parent's
for a clip. The OpenAPI schema and the three places that pin the key set move
with it.

Refs #1236

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjXrgywSTQ8UnLgCCRh
A MusicRecording's `byArtist` publishes this URL, and the website drops
anything its own `isSafeHttpUrl` gate refuses — so a malformed value travelled
all the way there to be discarded silently. `urlField` is the repo's existing
answer, as Lectures uses it; the column is unchanged text, so no migration.

Refs #1236

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjXrgywSTQ8UnLgCCRh
`extractAudioDuration` leaves the document unchanged when the audio states no
length, and `duration` is read-only — so the gap showed as a blank field that
said nothing, and the website read it as a zero. A warning banner above the
field is the signal, drawn by the existing InfoBanner through `admin.custom`,
so no component is added. The fixture already carries a song with such audio.

Refs #1236

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjXrgywSTQ8UnLgCCRh
A `select` narrows the returned type, so one read cannot assert both. The
clip's own column is null, and the parent's date is where the website reads it.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjXrgywSTQ8UnLgCCRh
`extractAudioDuration` returned the document untouched when the audio stated
no length, so a song that once carried 42 seconds kept reporting it after a
length-less file replaced the old one — the stored number described a file that
was gone. Both failure branches now clear the column, and the silent branch
warns like its neighbour. Found while adding the editor warning, which read the
column rather than the upload and so stayed hidden in exactly this case.

Meditations mounts the same hook and gains the fix.

Refs #1236

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjXrgywSTQ8UnLgCCRh
`metadata` already declares `access.update: ({ doc }) => doc?.type === 'full'`
so an API write cannot diverge a clip from its parent. The date is inherited the
same way, so the invariant was stated only in `admin.condition` — enforced in
the admin panel and nowhere else. One layer now holds it for both fields.

Refs #1236

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjXrgywSTQ8UnLgCCRh
Cut four comments and one description that restated the code or config beside
them, drop `icon: 'warning'` (InfoBanner derives it from `type`), take the
album URL case down to the repo's one-case wiring proof, and share a `clipOf`
fixture between the two clip blocks.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjXrgywSTQ8UnLgCCRh
Every other lecture fact comes from the Nirmala Vidya API, so a reader would
expect the sync to fill this one too. It never does.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjXrgywSTQ8UnLgCCRh
Three review findings. `pickerAppearance: 'dayOnly'` defaults to `MMM dd`, so
the year a talk was given — the whole point of the field — was invisible in the
picker; `scheduleFields` sets `displayFormat` for the same reason. The access
comment said "reject" where field access strips. And clearing a duration empties
a meditation's node weights, which `cacheMeditationNodeWeights` is mounted after
the extraction precisely to do, so the case is now pinned rather than found.

The Songs review link is dropped: `admin.hidden` unregisters the collection's
routes, so a song is reachable only through the Albums join drawer.

Refs #1236

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjXrgywSTQ8UnLgCCRh
@railway-app

railway-app Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

🚅 Deployed to the SahajCloud-pr-1244 environment in sahajcloud

Service Status Web Updated
SahajCloud 😴 Sleeping (View Logs) Web Nov 26, 2026 at 4:27 am UTC
1 service not affected by this PR
  • mailpit

@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.

2 questions for the reviewer, one per thread.

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


Generated by Claude Code

Comment thread src/collections/Lectures/Lectures.ts Resolved
Comment thread src/collections/Songs/Songs.ts Resolved
@sydevs-bot

sydevs-bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 no session running
✋ handed back: resolve-conflicts did not finish after 3 attempts

recent dispatches
  • 22:51Z resolve-conflicts · attempt 3 · session · timed out
  • 22:51Z resolve-conflicts · attempt 3 · session
  • 22:04Z resolve-conflicts · attempt 2 · session · timed out
  • 22:04Z resolve-conflicts · attempt 2 · session
  • 21:14Z resolve-conflicts · attempt 1 · session · timed out

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

@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 21, 2026
@sydevs-bot sydevs-bot moved this from Pending to Working in SYDevelopers Technical Roadmap Nov 21, 2026

@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

Holistic. The diff is the size of its ticket and no larger: one nullable column, one field-factory swap, one ui notice, one hook fix. It adds no module, no helper and no dependency, and date copies metadata's own access.update and condition instead of inventing a gate. The ticket's optional (c) is correctly left out. The duration clear is joined, not smuggled — the banner reads the stored column, so a kept stale value would make the banner lie.

Two things to know before the threads. The body's claim that WeMeditateWeb "reads the date the same way" is false: its LECTURE_SELECT omits date, so the consumer reads none until it adds a line. And the hook fix lands on meditations, which this PR leaves with the new exposure and no notice.

Findings

  • consider — src/collections/Lectures/Lectures.ts:130: a dayOnly value can store the previous UTC day for an editor east of UTC, on a column published as uploadDate.

Second opinions

  • Lectures.ts:121 — A, the built option, on corrected grounds. Resolved.
  • Songs.ts:105 — B, against the built option. Left open.

What was checked. Ticket #1236 against the diff, its acceptance criteria included. Read whole: the three collections, audio/duration.ts, lectureShape.ts, urlField.ts, InfoBanner.tsx. new-pieces.mjs answered NONE, so no streamliner ran. I walked the ladder over the four nested pieces and the zero new dependencies — each has a named platform or repo answer. The grown-file pass found nothing custom where the platform now answers. Consumer side followed into WeMeditateWeb server/sahajcloud-client.ts. LECTURE_FEED_SELECT holds fullLecture: true wholesale, so a clip's parent carries date and the feed is right. All five preview links ON_HOST, each id checked against src/fixture/ on the branch.

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


Generated by Claude Code

Comment thread src/collections/Lectures/Lectures.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 Nov 21, 2026
A review finding read the field as storing local midnight, which would put an
editor east of UTC on the previous UTC day — a wrong `uploadDate` on a public
page. `@payloadcms/ui`'s DatePicker pins a day-only pick to noon UTC instead
(`setHours(12 - tzOffset, 0)`), so the day picked is the value's UTC date part
from every zone, +14:00 and +05:45 included. Nothing to fix, and nothing in our
own source says so, so the next reader re-derives it from a dependency — or
reaches for `timezone: true` and a second column. Upstream calls dropping that
pin a 4.0 breaking change, which is the one thing that would move the stored
hour, so the comment names it.

Refs #1236

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjVtESRnwUtnX1Vv4Zx
@railway-app
railway-app Bot temporarily deployed to sahajcloud / SahajCloud-pr-1244 November 21, 2026 01:12 Destroyed
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

One critic finding, rebutted on a fact. The base is merged in, and nothing else is built.

The dayOnly timezone shift — rebutted, resolved. @payloadcms/ui's DatePicker pins a day-only pick to noon UTC, so the day picked is the value's UTC date part in every editor zone; I replayed that arithmetic in eight. 60c1a2c pins the constraint at the field rather than adding a timezone column.

A meditation's missing-duration notice — open, waiting on you. The critic picks B against the built A. That is your call, so nothing is built for it.

origin/main merged cleanly, two commits, pushed with the above.

Body corrected where the critic proved it wrong: LECTURE_SELECT omits date, so WeMeditateWeb reads none until one line is added there.

🤖 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 Nov 21, 2026
@sydevs-bot sydevs-bot moved this from Working to Pending in SYDevelopers Technical Roadmap Nov 21, 2026
@sydevs-bot
sydevs-bot marked this pull request as ready for review November 21, 2026 01:25
@sydevs-bot
sydevs-bot requested a review from Ardnived November 21, 2026 01:25
@railway-app
railway-app Bot temporarily deployed to sahajcloud / SahajCloud-pr-1244 November 25, 2026 19:24 Destroyed
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Merged main in. src/migrations/index.ts was the only conflict, and both sides had only appended a migration, so both entries stay in timestamp order.

The merge re-armed #566, which the diff does not show. 20261123_185218_pages_parent_index_pages arrived from main with a timestamp above this branch's earlier heal, and its snapshot describes no "lectures"."date" — so the newest snapshot on disk stopped covering the merged schema, and migrate:create re-emitted an ADD COLUMN that 20261120_235118_lecture_date already ships. 20261125_191905_merge_snapshot_heal carries the merged-tree snapshot with empty DDL, as 20261119 and 20261122 did before it. A probe run afterwards wrote no files.

Nothing else overlapped: src/payload-types.ts and src/fixture/content-ids.ts merged cleanly and hold both sides.

Lean gate green — 295 files, 3934 tests. Integration: 122 passed across fixture-load, pages-nesting, lectures, sync-lecture-metadata, lectures-for-audience.

🤖 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 Nov 25, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Working to Awaiting in SYDevelopers Technical Roadmap Nov 25, 2026
@sydevs-dispatcher sydevs-dispatcher Bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 25, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Awaiting to Working in SYDevelopers Technical Roadmap Nov 25, 2026
src/migrations/index.ts was the only conflict: both sides appended
migrations, so every entry stays, in timestamp order. main's
20261125_152923_atlas_drop_compact_tab and 20261125_191844_merge_snapshot_heal
sit before this branch's 20261125_191905_merge_snapshot_heal.

That ordering re-armed #566. This branch's heal carries the later timestamp,
and its snapshot still holds both compact columns, so the newest snapshot on
disk described a schema main had already dropped them from and the next
migrate:create re-emitted the two DROP COLUMN statements
20261125_152923_atlas_drop_compact_tab already ships.
20261125_194946_merge_snapshot_heal carries the merged-tree snapshot with
empty DDL; a probe run afterwards wrote no files.

src/payload-types.ts merged clean and is correct on both sides: Lecture.date
is present and no compact key remains.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjYhrByrtm5q9vVrckx
@railway-app
railway-app Bot temporarily deployed to sahajcloud / SahajCloud-pr-1244 November 25, 2026 19:53 Destroyed
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Merged main in. src/migrations/index.ts was the only conflict, and both sides only appended: every entry stays, in timestamp order.

The ordering re-armed #566. This branch's 20261125_191905_merge_snapshot_heal carries the later timestamp, and its snapshot still holds both compact columns that main's 20261125_152923_atlas_drop_compact_tab drops — so the next migrate:create re-emitted those two DROP COLUMN statements. 20261125_194946_merge_snapshot_heal carries the merged-tree snapshot with empty DDL. A probe run afterwards wrote no files.

src/payload-types.ts merged clean and is right on both sides: Lecture.date present, no compact key left.

Lean gate green (lint, format, both typechecks, 3935 unit tests), plus migration-down-cascade.

🤖 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 Nov 25, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Working to Awaiting in SYDevelopers Technical Roadmap Nov 25, 2026
@sydevs-dispatcher sydevs-dispatcher Bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 26, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Awaiting to Working in SYDevelopers Technical Roadmap Nov 26, 2026
src/migrations/index.ts was the only conflict: both sides appended
migrations, so every entry stays, in timestamp order. main's
20261125_213000_atlas_common_copied and
20261125_230000_atlas_drop_captcha_blocked sit after this branch's two
20261125_19* heals.

That ordering re-armed #566 in the other direction. Both of main's new
snapshots predate 20261120_235118_lecture_date, so the newest snapshot on
disk described a schema without "lectures"."date" and the next
migrate:create re-emitted the same ADD COLUMN — confirmed by running it.
20261126_035802_merge_snapshot_heal carries the merged-tree snapshot with
empty DDL; a probe run afterwards wrote no files.

Nothing else overlapped. src/payload-types.ts and the admin importMap
merged clean and hold both sides: Lecture.date is present, as are main's
impersonation components. main's InfoBanner change is an opt-in `inline`
prop, which the branch's durationNotice does not pass.

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

Copy link
Copy Markdown
Contributor Author

Merged main in. One conflict, src/migrations/index.ts: both sides appended migrations, so every entry stays, in timestamp order.

That ordering re-armed #566. Both of main's new snapshots — 20261125_213000_atlas_common_copied and 20261125_230000_atlas_drop_captcha_blocked — predate 20261120_235118_lecture_date, so the newest snapshot on disk described a schema without lectures.date, and migrate:create re-emitted the same ADD COLUMN. I ran it to confirm. 20261126_035802_merge_snapshot_heal carries the merged-tree snapshot with empty DDL, and a probe run afterwards wrote no files.

Nothing else overlapped. src/payload-types.ts and the admin importMap merged clean and hold both sides. main's InfoBanner gained an opt-in inline prop, which this branch's durationNotice does not pass.

Lean gate green: lint, format, both typechecks, unit lane — 295 files, 3943 tests.

🤖 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 Nov 26, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Working to Awaiting in SYDevelopers Technical Roadmap Nov 26, 2026
@sydevs-dispatcher sydevs-dispatcher Bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 26, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Awaiting to Working in SYDevelopers Technical Roadmap Nov 26, 2026
@sydevs-dispatcher sydevs-dispatcher Bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 26, 2026
@sydevs-dispatcher sydevs-dispatcher 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 Nov 26, 2026
@sydevs-dispatcher

Copy link
Copy Markdown

The session for resolve-conflicts did not finish after 3 attempts. I have stopped retrying. A mention (@sydevs-bot) or a push from you starts me again.

🤖 sydevs dispatcher

This branch was successfully deployed

1 active deployment
sahajcloud / SahajCloud-pr-1244 — 570ddb26 Deployed Nov 26, 2026 by railway-app[bot]
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.

feat(lectures,music): store the data JSON-LD needs for VideoObject and MusicRecording

3 participants