#507: Something about security
Michael #1: AI agents model CPython in Lean and produce 415 bug reports
David Andrews and Chao Zhang used AI agents to translate CPython 3.15.2 functions into Lean and check proofs about their behavior. Their November 13 post reports 4,067 accepted functions, 614,384 lines of Lean, and 415 bug reports, including about 55 involving crashes or memory corruption.
- Coverage is 14.3% of functions worth checking, not a fully verified interpreter. Multithreading is out of scope.
- Each model faces at least 50,000 differential test inputs, proofs, and review by a second agent before acceptance.
- A valid Lean proof can still describe the wrong model. Early reviews rejected weak properties that even broken functions could satisfy.
- 415 reports does not mean 415 newly confirmed upstream bugs: some were already known, and remaining reports are being submitted.
- I asked what involvement the core team and CPython had with Project Glasswing. I think it was zero. It should be far more involved. Open someone reaches out to OSS Scanner.
Calvin #2: Amazon Athena powered by DuckDB, now available in preview
- Remember when AWS bought DuckLabs? Here's what they built.
- Announced Dec 1, 2026 at re:Invent and in preview in 5 regions: us-east-1, us-east-2, us-west-2, eu-west-1 and ap-northeast-1.
- Athena's serverless query service now runs on DuckDB and splits a single query across many workers when the data outgrows one machine.
- AWS claims queries are up to 2x faster and up to 50% cheaper than Athena engine v3 on large datasets.
- Queries use DuckDB's SQL dialect and run against your existing Glue Data Catalog tables, so there's nothing to redefine and no data to move.
- Results can come back as Apache Arrow through a new streaming API and an ADBC driver, landing in data science tools with no conversion step.
- A new open-source Athena extension for DuckDB lets you prototype a query in local DuckDB and then run the same SQL on Athena at scale.
- Supports Apache Iceberg v3 and Parquet tables. To turn it on, create a workgroup or switch an existing one to DuckDB.
- Related: a separate Redshift extension for DuckDB (Apache 2.0, DuckDB v2.0.1) lets you query Redshift from a local DuckDB session and join the results with local Parquet or CSV files.
Michael #3: Citry
Citry's first stable release puts HTML templates, CSS, browser behavior and Python event handlers in one component class. Built by django-components maintainer Juro Oravec, it aims to give Python web developers Vue-style tooling without maintaining a separate frontend project. Clicks can call Python and replace the component's HTML.
- The editor catches template typos and wrong component inputs before someone opens the page. Run the checks in CI with citry check; useful feedback for humans and coding agents alike.
- Uses Vue for browser behavior, rather than eliminating JavaScript. Works with Django, FastAPI, Flask and other ASGI/WSGI apps.
- Author's error benchmark reports 56 of 61 applicable mistakes before runtime, including nine warnings. Four go undetected, including a secret sent to the browser.
- Author's speed test: 257 ms until usable for 1,400 entries on the second server load, empty browser cache, local M4 Mac/Chromium. Single-measurement charts, not a general speed ranking.
- 1.x promises SemVer compatibility; citry-ui remains pre-1.0. django-components enters maintenance mode. Try the browser playground at https://citry.dev/playground/.
Calvin #4: PSF announces a Security Roadmap
- The PSF's security plan for the coming year (posted Nov 30, 2026) has four focus areas: PyPI malware remediation, "compromise resilience" for PyPI and python.org, more capacity for vulnerability advisories, and post-quantum crypto readiness. Alpha-Omega and Anthropic fund the security staff.
- Malware: PyPI will lean more on automatic quarantine. Today it fires only when several trusted reporters flag the same project. It handled the Telnyx attack in April, about 2 hours after the first report and 3h 42m after upload. A new "Malware Triager" role will be able to handle reports without full PyPI admin access.
- Compromise resilience: the goal is for installers to reject tampered artifacts. How that works hasn't been decided, and several proposals are being evaluated. The PSF will also write a "Compromise Recovery Runbook" and test it regularly. A "Secure Python Distributions" program would check that redistributors verify python.org's Sigstore signatures.
- Vulnerabilities: the PSF says LLMs and agents are driving a sharp rise in known open-source vulnerabilities. The Python Security Response Team is handling about 4x more than a year ago. The PSF will evaluate making the PyPA advisory database the authoritative source, with maintainers able to correct entries.
- Post-quantum: a draft PEP targets the Python 3.16 feature window (May 2027) and will set a schedule for quantum-safe algorithms in the standard library. It's by Emma Smith, Bénédikt Tran, and Seth Larson and hasn't been published for review yet. PyPI and python.org get post-quantum TLS first. A schedule for retiring quantum-vulnerable key exchange will come later.
- Extras
Calvin:
- More interesting AWS announcements this week
Michael:
- Ladybird's alpha is ready to download for macOS and Linux
- Django Software Foundation's has its first Executive Director
Joke: Fewer wishes
Episode Transcript
Collapse transcript
00:00
00:03
00:04
00:05
00:08
00:11
00:15
00:16
00:22
00:26
00:27
00:31
00:32
00:36
00:37
00:38
00:41
00:43
00:43
00:46
00:50
00:51
00:51
00:52
00:52
00:52
00:53
00:57
00:59
01:01
01:04
01:06
01:07
01:08
01:10
01:14
01:17
01:21
01:22
01:23
01:25
01:28
01:31
01:33
01:37
01:40
01:41
01:44
01:48
01:53
01:57
01:59
02:00
02:02
02:03
02:07
02:11
02:17
02:24
02:25
02:27
02:31
02:32
02:33
02:35
02:35
02:37
02:40
02:41
02:45
02:47
02:48
02:49
02:56
02:58
03:00
03:05
03:08
03:14
03:18
03:22
03:29
03:33
03:37
03:40
03:44
03:47
03:48
03:51
03:54
03:57
03:59
04:02
04:04
04:09
04:12
04:14
04:19
04:22
04:26
04:28
04:28
04:30
04:37
04:39
04:42
04:46
04:50
04:51
04:55
04:56
05:00
05:02
05:04
05:08
05:09
05:12
05:13
05:15
05:16
05:19
05:20
05:24
05:28
05:31
05:33
05:41
05:41
05:47
05:53
05:55
05:58
06:01
06:03
06:06
06:09
06:13
06:15
06:19
06:23
06:24
06:26
06:30
06:31
06:33
06:37
06:39
06:42
06:43
06:45
06:46
06:51
06:58
07:03
07:09
07:15
07:19
07:23
07:28
07:32
07:38
07:45
07:52
07:57
08:02
08:09
08:14
08:19
08:20
08:24
08:25
08:27
08:28
08:29
08:30
08:30
08:33
08:34
08:35
08:36
08:37
08:40
08:41
08:43
08:45
08:46
08:48
08:49
08:49
08:52
08:53
08:55
08:56
08:58
09:03
09:03
09:06
09:08
09:09
09:10
09:15
09:20
09:24
09:28
09:31
09:34
09:37
09:39
09:43
09:46
09:49
09:55
09:59
10:02
10:08
10:12
10:16
10:21
10:25
10:26
10:29
10:34
10:36
10:37
10:39
10:40
10:42
10:43
10:44
10:45
10:46
10:49
10:53
10:57
10:58
11:02
11:03
11:04
11:04
11:04
11:06
11:08
11:09
11:09
11:09
11:13
11:19
11:23
11:24
11:26
11:31
11:32
11:34
11:36
11:39
11:41
11:42
11:52
11:53
11:57
11:59
12:00
12:01
12:02
12:03
12:05
12:07
12:10
12:15
12:15
12:16
12:16
12:18
12:23
12:28
12:32
12:34
12:38
12:41
12:44
12:47
12:48
12:52
12:54
12:58
13:00
13:06
13:10
13:12
13:14
13:17
13:18
13:22
13:24
13:28
13:33
13:35
13:41
13:47
13:52
13:54
13:58
14:04
14:07
14:12
14:14
14:15
14:19
14:21
14:22
14:28
14:31
14:34
14:37
14:41
14:43
14:46
14:50
14:54
14:57
15:02
15:08
15:11
15:13
15:16
15:17
15:20
15:21
15:24
15:26
15:29
15:32
15:34
15:39
15:43
15:46
15:46
15:50
15:55
15:57
16:01
16:04
16:08
16:14
16:18
16:21
16:23
16:24
16:28
16:32
16:33
16:36
16:40
16:43
16:46
16:52
16:58
17:05
17:08
17:16
17:21
17:23
17:28
17:33
17:35
17:38
17:40
17:41
17:47
17:49
17:52
17:54
17:56
17:59
18:00
18:02
18:06
18:08
18:13
18:17
18:19
18:23
18:25
18:29
18:30
18:34
18:37
18:38
18:39
18:39
18:41
18:44
18:45
18:47
18:53
18:57
19:01
19:06
19:07
19:08
19:13
19:19
19:21
19:28
19:32
19:33
19:38
19:44
19:47
19:49
19:51
19:55
19:56
20:00
20:05
20:07
20:08
20:09
20:12
20:13
20:22
20:25
20:31
20:35
20:41
20:42
20:43
20:47
20:48
20:55
21:00
21:03
21:05
21:09
21:11
21:13
21:17
21:21
21:22
21:24
21:29
21:34
21:39
21:39
21:43
21:45
21:48
21:50
21:52
21:56
21:58
22:02
22:05
22:07
22:11
22:12
22:13
22:15
22:17
22:20
22:22
22:25
22:27
22:31
22:33
22:38
22:40
22:41
22:44
22:47
22:51
22:53
22:56
23:00
23:02
23:06
23:10
23:12
23:14
23:18
23:21
23:25
23:26
23:27
23:28
23:31
23:36
23:37
23:38
23:43
23:43
23:46
23:51
23:52
23:55
23:57
23:58
23:59
24:01
24:02
24:05
24:06
24:10
24:10
24:11
24:13
24:14
24:17
24:21
24:24
24:26
24:31
24:35
24:41
24:47
24:51
24:56
25:01
25:02
25:06
25:10
25:12
25:17
25:20
25:23
25:28
25:36
25:38
25:42
25:49
25:52
25:56
26:00
26:03
26:07
26:12
26:18
26:25
26:31
26:38
26:40
26:45
26:49
26:51
26:52
26:55
26:57
27:00
27:03
27:07
27:14
27:19
27:25
27:29
27:33
27:36
27:39
27:44
27:45
27:52
27:54
27:57
28:08
28:12
28:22
28:25
28:26
28:28
28:31
28:32
28:36
28:39
28:41
28:44
28:46
28:51
28:56
28:56
29:00
29:04
29:06
29:09
29:10
29:11
29:19
29:19
29:20
29:22
29:29
29:31
29:35
29:37
29:37
29:37
29:38
29:40
29:44
29:45
29:47
29:48
29:48
29:49
29:51
29:55
29:58
30:01
30:06
30:08
30:12
30:13
30:16
30:33
30:37
30:41
30:44
30:48
30:52
30:55
30:59
31:13
31:20
31:23
31:27
31:30
31:32
31:35
31:40
31:52
31:54
31:59
32:05
32:12
32:16
32:18
32:19
32:21
32:22
32:23
32:24
32:27
32:29
32:30
32:31
32:42
32:45
32:55
32:58
33:02
33:03
33:05
33:08
33:11
33:12
33:13
33:16
33:17
33:18
33:19
33:20
33:21
33:22
33:27
33:29
33:36
33:37
33:38
33:43
33:47
33:49
33:53
33:56
33:58
34:04
34:06
34:07
34:08
34:09
34:13
34:15
34:16
34:17
34:18
34:20
34:21
34:25
34:26
34:28
34:29
34:34
34:36
34:38
34:41
34:41
34:42
34:45
34:49
34:56
35:02
35:06
35:07
35:13
35:14
35:16
35:17
35:17
35:18
35:20
35:23
35:27
35:30
35:34
35:38
35:41
35:49
35:52
35:54
35:57
35:58
36:00
36:00
36:02
36:05
36:07
36:08
36:08
36:09
36:12
36:12
36:15
36:18
36:20
36:21
36:24
36:25
36:31
36:36
36:38
36:39
36:42
36:44
36:44
36:48
36:49
36:51
36:52
36:54
36:55
36:58
37:01
37:03
37:04
37:05
37:07
37:11
37:12
37:15
37:19
37:22
37:24
37:25
37:29
37:32
37:32
37:34
37:37
37:37
37:40
37:41
37:43
37:44
37:45
37:47
37:48


