ryan
57b39f7fcf
chore(autoresearch): log iter 4 (proven bug fix, debt held at 93)
2026-08-29 08:08:16 +08:00
ryan
5b84fd906d
chore(autoresearch): log iter 3 (debt 95 -> 93)
2026-08-29 08:03:26 +08:00
ryan
4e6209bf61
chore(autoresearch): log iter 2 (debt 100 -> 95)
2026-08-29 07:59:39 +08:00
ryan
edf0c0e934
chore(autoresearch): log iter 1 (debt 102 -> 100, proven fix)
2026-08-29 07:57:10 +08:00
ryan
5971e2a9ed
chore(autoresearch): re-baseline harness on pinned real-risk yardstick
...
The committed golangci gate now reports 0 issues, so the previous
lint_issues metric was saturated and could no longer measure progress.
Measure debt against an immutable .auto/lint.ref.yaml snapshot that adds
analyzers for genuine defects (panics, error unwrapping, dead stores,
missing enum cases, method ordering, suppression hygiene) while excluding
cosmetic churn (tagliatelle, wrapcheck). Guard enforces build, vet, tests,
the Cordis architecture gate, and anti-cheat floors: the yardstick cannot
be edited, the project gate may only be strengthened, nolint directives may
only shrink, and no test may disappear.
2026-08-29 07:52:03 +08:00
ryan
4d6be2fa77
fix(drivers): propagate app-lifetime context through inproc cron/worker drivers
...
cron 触发与 worker 执行的任务现在继承应用生命周期 context(关闭时级联取消,带超时子上下文),
替代裸 context.Background()。contextcheck 清零。
lint_issues 26→24
2026-08-28 17:04:44 +08:00
ryan
02b93a3b20
chore(autoresearch): log iter 2-3
2026-08-28 16:53:51 +08:00
ryan
867fcb2288
refactor: revive cleanup — unused params to _, add missing doc comments
...
- admin/db_helper GetCache/GetUserService/GetAuthService: ctx -> _ (签名对称保留)
- validateMergedStorageConfig / ParseMigrationTargetConfig / MockStorageService.Put 未用参数 -> _
- SetDBServiceForTest、StorageDriver 常量组补充文档注释
lint_issues 33→26
2026-08-28 16:53:32 +08:00
ryan
cf85a56aa7
refactor: eliminate string/magic-number literals (goconst, mnd) and fix const-type grouping (SA9004)
...
- upload/task: taskCategoryUpload/taskQueueDefault 常量替代 8 处字面量
- admin: 复用既有 logDBNameSQLite 常量替代 3 处 "sqlite" 字面量
- pkg/cache/disk: defaultCleanupInterval 命名常量
- driver_asynq_worker/executor: 分离 contextKey 类型常量组
lint_issues 45→34, tests 44/44
2026-08-28 16:38:18 +08:00
ryan
528240026d
chore(lint): unify formatting on golangci-lint fmt (gofumpt), uncap issue reporting, fix gofumpt drift
...
- make format 现在与 code-check 使用同一格式化器(golangci-lint fmt),消除 goimports -local 与 gofumpt 的格式拉锯
- .golangci.yml 关闭默认 50/3 截断,完整上报所有问题(只增强不弱化)
- 全库 gofumpt 规范化(203 files, 纯格式无行为变更)
2026-08-28 16:31:53 +08:00
ryan
078ad9b2f3
chore(autoresearch): init cordis-quality session files
2026-08-28 16:21:34 +08:00