Commit Graph

52 Commits

Author SHA1 Message Date
freeman
f3ad81b39e style: apply safe ruff auto-fixes and exempt startup late imports
Run `ruff check app tests scripts --fix` with the configured rule set
(E4/E7/E9/F/I): import sorting (I001), f-strings without placeholders
(F541), lambda/variable/unused-import cleanups that ruff marks safe.
Nine files whose only ruff debt sits next to pre-existing pylint
import-resolution errors (lazy exports, sys.path script imports) or
whose "unused" imports are reached through attribute access by tests are
left untouched so the changed-file pylint gate and the benchmark tests
stay green; their diagnostics remain in the baseline.

app/startup/lifecycle/__init__.py and app/main.py import business
modules after cache composition, import-path and stdio setup on purpose
(the source comments document the contract), so declare E402
per-file-ignores for them instead of adding per-line noqa.

Ruff ratchet watermark drops from 498 to 100; sync the baseline fixture
and the optimization checklist figure.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-09 13:29:09 +08:00
jxxghp
7e43ea9676 ci: replace line budgets with structural complexity gates 2026-09-30 07:36:53 +08:00
jxxghp
b99b4fe2c3 chore(architecture): 同步模块路径与质量门禁 2026-09-16 00:12:16 +08:00
Aqr-K
61aa3cd649 refactor(sdk): 插件契约基类迁入 SDK 并由 Compat 承接旧包根符号 (#6701) 2026-09-15 07:01:00 +08:00
jxxghp
8072b7d78f Refactor application architecture and compatibility boundaries 2026-09-13 12:53:00 +08:00
jxxghp
d32d17568a fix(runtime): apply configuration changes without restart 2026-09-11 00:12:05 +08:00
jxxghp
ec1a878a32 fix(agent): auto-load gateway skill before API calls 2026-08-31 18:42:25 +08:00
jxxghp
5cd5780d36 fix(architecture): harden complexity and concurrency gates 2026-08-30 12:15:21 +08:00
jxxghp
f7ca7e5172 ci(architecture): close complexity and concurrency blind spots 2026-08-30 11:40:36 +08:00
jxxghp
0c05956814 refactor(architecture): enforce module naming policy 2026-08-29 22:17:17 +08:00
jxxghp
b658f7c2c0 refactor(startup): isolate chain composition 2026-08-29 18:10:10 +08:00
jxxghp
305f8e007c refactor(startup): isolate outbox composition 2026-08-29 17:21:51 +08:00
jxxghp
b4547cf043 refactor(startup): isolate configuration and database composition 2026-08-29 16:20:04 +08:00
jxxghp
cff5eef539 test(architecture): freeze agent llm plugin ABI 2026-08-29 13:19:55 +08:00
jxxghp
13c4a71f42 refactor(media): split chain into governed package 2026-08-29 09:28:00 +08:00
jxxghp
7941fd921d refactor(chain): split download orchestration package 2026-08-29 06:41:15 +08:00
jxxghp
8460e72c42 refactor(scheduler): split runtime owners and preserve plugin ABI 2026-08-28 23:17:45 +08:00
jxxghp
92e745fc97 refactor(architecture): split chain owners and close runtime boundaries 2026-08-28 22:26:19 +08:00
jxxghp
2fe39d856c refactor(architecture): invert application adapter boundaries 2026-08-28 18:45:47 +08:00
jxxghp
aa8751f775 refactor: close transactional boundary debt batch 2026-08-28 10:36:12 +08:00
jxxghp
1133557849 refactor(architecture): unify event facts and policy 2026-08-27 09:56:27 +08:00
jxxghp
86157be2a9 test(architecture): prove event consumers 2026-08-27 09:17:43 +08:00
jxxghp
47f0de745c test(architecture): govern direct egress 2026-08-27 07:28:42 +08:00
jxxghp
e1483e85dc test(architecture): record direct adapter imports 2026-08-27 05:56:38 +08:00
jxxghp
265d3c6d1a fix(quality): close coverage ratchet 2026-08-26 22:10:23 +08:00
jxxghp
6062b06610 fix(quality): close type and lint ratchets 2026-08-26 21:55:01 +08:00
jxxghp
3ba4027d84 feat(events): expose typed payload snapshots 2026-08-25 22:32:33 +08:00
jxxghp
b914e8b6e4 refactor: strengthen architecture CI gates and runtime contracts 2026-08-25 17:02:29 +08:00
InfinityPacer
d58c8d2b17 feat: 完善数据库备份管理与版本读取 (#6450) 2026-08-25 16:05:45 +08:00
jxxghp
17a23c47df feat(ci): add mypy error ratchet gate 2026-08-25 06:59:18 +08:00
jxxghp
63cc2c8d4d refactor: unify runtime facade governance 2026-08-24 12:26:49 +08:00
jxxghp
d694cd081c refactor: own cross-thread background tasks 2026-08-24 05:33:50 +08:00
jxxghp
99c915b93a refactor: separate config debt from boundaries 2026-08-24 01:19:32 +08:00
jxxghp
59f020f226 refactor: enforce background task ownership 2026-08-23 20:17:28 +08:00
jxxghp
9f3be0ea4b refactor: restore architecture governance gates 2026-08-23 20:17:28 +08:00
InfinityPacer
97fb7e6526 chore: sync database worker branch with upstream v3 2026-08-23 04:48:50 +08:00
jxxghp
48e3eb08ec refactor: finish startup settings migration 2026-08-23 03:31:10 +08:00
InfinityPacer
fc677a2bba feat(database): bound async configuration writes 2026-08-23 02:29:40 +08:00
InfinityPacer
f85087cafc test: 强化 async 阻塞门禁真实性 (#6398) 2026-08-22 19:28:48 +08:00
jxxghp
7bc5e01afd refactor: expand async and type safety gates 2026-08-22 13:21:52 +08:00
jxxghp
5d9c6c8b19 refactor: expand runtime contracts and debt ratchets 2026-08-22 08:25:36 +08:00
jxxghp
1b253510e1 ci: block new async blocking calls 2026-08-21 22:29:19 +08:00
jxxghp
dd246fe045 ci: enforce complexity reduction ratchet 2026-08-21 22:23:37 +08:00
jxxghp
c0b31bddb6 refactor: register event delivery contracts 2026-08-21 21:29:52 +08:00
jxxghp
b9ad5220ae refactor: define module contract v2 2026-08-21 21:25:35 +08:00
jxxghp
ff0ce8d1c1 refactor: add configuration dependency ratchet 2026-08-21 21:20:56 +08:00
jxxghp
de2957b9de refactor: add transaction ownership ratchet 2026-08-21 20:16:30 +08:00
jxxghp
6c7c54d2c1 ci: enforce backend architecture contracts 2026-08-21 19:33:11 +08:00
jxxghp
37c442b042 refactor: separate semantic architecture baselines 2026-08-21 19:28:31 +08:00
jxxghp
7bc3ea831f refactor: scope architecture baseline operations 2026-08-21 19:21:27 +08:00