Schedules: the carve-out seeds ARE guarded; correct the Ruby comment denying it
fields_from_entry's docstring told the reader that highlighted is unguarded — one line above the guard that reads it:
+highlighted+ is taken verbatim: it is optional, absent from the reduced calendar partial +GetUpcomingSchedule+ renders, and — unlike every other member — cannot reach the wire unless the caller assigns it, so there is nothing to refuse a malformed value on behalf of.
highlighted: MergeSafe.writable_boolean(body, "highlighted", record: RECORD, escape: ESCAPE_HATCH)
writable_boolean deliberately refuses a wrong-typed highlighted before the full-replace PUT. The code is right; the comment contradicted it. A valid review finding on #632 that shipped inside a suppressed-comment block.
Three things were wrong
- "taken verbatim" — it is not.
writable_booleanadmits absent/nil asfalseand refuses"yes"or1rather than coercing them. - "unlike every other member" —
participant_idsandurlare carve-outs too, read throughwritable_id_listandwritable_stringfor exactly the same reason. - The inference — "reaches the wire only when addressed" is not "never reaches the wire." Dirty tracking is by setter invocation, deliberately (module docs,
ScheduleEntryFields), so assigning a seed straight back is an address like any other and sends whatever the seed held.test_edit_entry_sends_a_carve_out_assigned_its_own_read_back_valueasserts precisely that. And a block that only inspects a corrupt seed still decides on garbage.
The corrected text
The right account already existed for the other two seeds — the schedules test says "a block inspecting a corrupt value would decide on garbage", and Python's _carve_out_seeds docstring says "the values are still guarded, because entry.url = entry.url is a legitimate write and would otherwise carry a malformed value into the PUT." The Ruby comment now states that for all three, and gives highlighted its real justification: the member is optional because the reduced calendar partial behind GetUpcomingSchedule omits it, so absence is genuinely "not highlighted" — the wrong type still is not.
The general point
Asked to check whether the sibling carve-out comments make the same claim: within Ruby they do not. url (seeded from join_url, never from url), participant_ids and notify ("nothing in the response seeds a directive") are all accurate and unchanged. TypeScript and Python are correct too.
One copy of the same sentence lives outside this PR's scope, verbatim, in kotlin/sdk/src/commonMain/kotlin/com/basecamp/sdk/services/SchedulesService.kt:317-322. Kotlin's "taken verbatim" is accurate there — kotlinx.serialization is the typed decoder, so no hand-written guard is needed — but the stated reason ("cannot reach the wire unless the caller assigns it") is the same wrong one, and "unlike every other member" is wrong there too: url and participantIds are carve-outs with the same setter-based dirty tracking. Left for a follow-up rather than widening a Ruby-comments PR into a Kotlin build.
Scope and verification
Ruby comments only — no spec, no generated files, no behaviour.
make rb-check (drift + tests + rubocop) at ad9a33bd4, PRE_SHA == POST_SHA == 017a79016:
No drift detected.
1358 runs, 30434 assertions, 0 failures, 0 errors, 0 skips
151 files inspected, no offenses detected
==> Ruby SDK checks passed
Summary by cubic
Corrected Ruby comments in fields_from_entry to state that carve-out seeds (highlighted, url, participant_ids) are guarded, removing the false “taken verbatim” claim. Clarifies highlighted is optional yet type-checked and notes setter-based dirty tracking; comments only, no behavior changes.