Skip to content

feat(sync): notes quiet hold readable from the environment (default unchanged) - #25321

Merged
Git-on-my-level merged 1 commit into
mainfrom
lane/lifecycle-hold
Nov 14, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
lane/lifecycle-hold

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

Notes quiet hold: readable from the environment, default unchanged

Split out of #25304 so it can ship on its own. Tracking: SCA-1766.

Notes on uploaded audio wait QUIET_SECONDS = 600 after the last content arrival before full processing.
That value was a constant. This makes it SYNC_PROCESSING_QUIET_SECONDS, read per call, so it can be lowered
for every existing app build by config, with no release.

No behaviour change in this PR. The default is 600. Lowering it is a separate, user-visible config
decision.

Failure-Class: none

What changed

  • utils/sync/processing_hold.quiet_seconds(): reads SYNC_PROCESSING_QUIET_SECONDS, default 600, clamped
    to 120..600. A missing or malformed value keeps 600. The floor is the recorded-time gap at which a
    conversation splits, so a typo cannot remove the debounce; the ceiling means it can only shorten the wait.
  • admission, the enrichment outbox due time, and the budget-denial reschedule all use it.
  • Flag budget entry with an owner and review date; contract doc updated.

Risk when the value is lowered (not in this PR)

Notes may be written before a late upload lands. The existing MAX_LATE_RUNS = 1 bounds that to one extra
notes run per conversation; audio is never lost. Watch late_runs > 0 against its baseline.

Kill switch and rollback

Unset the variable, or set it to 600. SYNC_PROCESSING_HOLD_ENABLED is unchanged.

Tests

tests/unit/test_sync_processing_hold.py: per-call read, clamp and malformed values, outbox due time follows
the configured window.

🤖 Generated with Claude Code

View guided diff Turn on auto-fix

…NDS per call

Default stays 600 s, so behaviour is unchanged until the value is set. Clamped
to 120..600; a malformed value keeps the default. The outbox due time and the
budget-denial reschedule follow the same value.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@Git-on-my-level Git-on-my-level self-assigned this Nov 14, 2026
@Git-on-my-level
Git-on-my-level merged commit 671dd47 into main Nov 14, 2026
85 of 90 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/lifecycle-hold branch November 14, 2026 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant