feat: complete Phase 69 of generated-code drift diagnosis and update task plan status

This commit is contained in:
2026-07-15 00:04:24 +08:00
parent 3037cfe059
commit 6adcec4849
3 changed files with 10 additions and 6 deletions
+2
View File
@@ -18,6 +18,8 @@
- `generated/models.go` currently has no local diff before regeneration; `MediaSupplyOrder` fields are aligned by the committed generator output. - `generated/models.go` currently has no local diff before regeneration; `MediaSupplyOrder` fields are aligned by the committed generator output.
- Gitea Backend CI pins `sqlc v1.30.0`, matching the local binary exactly, then runs `make sqlc-generate` and `git diff --exit-code -- server/internal/tenant/repository/generated`. - Gitea Backend CI pins `sqlc v1.30.0`, matching the local binary exactly, then runs `make sqlc-generate` and `git diff --exit-code -- server/internal/tenant/repository/generated`.
- Version-mismatch hypothesis is falsified. The next deterministic probe is the exact CI generation command. - Version-mismatch hypothesis is falsified. The next deterministic probe is the exact CI generation command.
- Exact CI generation reproduces a one-file diff: `generated/models.go` gains 26 lines for `MediaSupplyFavoriteGroup`, `MediaSupplyFavoriteOwner`, and `MediaSupplyFavoriteResource` immediately before `MediaSupplyOrder`.
- Root cause: the schema already contains the three media-supply favorite tables, but their generated sqlc model structs were not committed. The reported `MediaSupplyOrder` line is only the diff insertion boundary.
- The reported `MediaSupplyOrder` is generated in `server/internal/tenant/repository/generated/models.go` around line 699. - The reported `MediaSupplyOrder` is generated in `server/internal/tenant/repository/generated/models.go` around line 699.
- Screenshot evidence: on client `e83077a0...`, `monitoring_collect:7995` for Doubao failed with `doubao_challenge_required`, while later Doubao task `monitoring_collect:7989` also appeared as failed with the same message. - Screenshot evidence: on client `e83077a0...`, `monitoring_collect:7995` for Doubao failed with `doubao_challenge_required`, while later Doubao task `monitoring_collect:7989` also appeared as failed with the same message.
- Screenshot refinement: the first challenged desktop task `#7224` shows attempt 1, while later `monitoring_collect:7989` shows attempt 0 and the same copied challenge message. This indicates the later task was bulk-terminalized without adapter execution, but recorded as `failed`, making cancellation look like another failed attempt. - Screenshot refinement: the first challenged desktop task `#7224` shows attempt 1, while later `monitoring_collect:7989` shows attempt 0 and the same copied challenge message. This indicates the later task was bulk-terminalized without adapter execution, but recorded as `failed`, making cancellation look like another failed attempt.
+2
View File
@@ -5,6 +5,8 @@
- User reported `Main Verify generated code is committed` exit code 1 with a diff near generated `MediaSupplyOrder`. - User reported `Main Verify generated code is committed` exit code 1 with a diff near generated `MediaSupplyOrder`.
- Added Phases 69-70 to reproduce the exact CI generation step, regenerate the affected artifacts, and verify a stable second generation. - Added Phases 69-70 to reproduce the exact CI generation step, regenerate the affected artifacts, and verify a stable second generation.
- Existing uncommitted challenge/circuit-breaker work is preserved and will not be reverted. - Existing uncommitted challenge/circuit-breaker work is preserved and will not be reverted.
- Reproduced CI with local sqlc v1.30.0. Only `server/internal/tenant/repository/generated/models.go` changed, adding three missing media-supply favorite models (26 lines).
- Phase 69 is complete; the affected generated artifact is now regenerated and Phase 70 verification is in progress.
## 2026-07-14T18:45:00+08:00 - Local same-platform challenge circuit breaker started ## 2026-07-14T18:45:00+08:00 - Local same-platform challenge circuit breaker started
+6 -6
View File
@@ -456,16 +456,16 @@ Phase 69
- **Status:** complete - **Status:** complete
### Phase 69: Generated-Code Drift Diagnosis ### Phase 69: Generated-Code Drift Diagnosis
- [ ] Identify the exact CI generation command and pinned sqlc version - [x] Identify the exact CI generation command and pinned sqlc version
- [ ] Reproduce the generated-code diff locally - [x] Reproduce the generated-code diff locally
- [ ] Determine whether source SQL/schema or generated output is stale - [x] Determine whether source SQL/schema or generated output is stale
- **Status:** in_progress - **Status:** complete
### Phase 70: Generated-Code Repair And Verification ### Phase 70: Generated-Code Repair And Verification
- [ ] Regenerate only the affected committed artifacts - [x] Regenerate only the affected committed artifacts
- [ ] Re-run the same generation check until the worktree is stable - [ ] Re-run the same generation check until the worktree is stable
- [ ] Run relevant Go tests and record the generated files - [ ] Run relevant Go tests and record the generated files
- **Status:** pending - **Status:** in_progress
## Key Questions ## Key Questions
1. How should the desktop client defer and locally optimize monitor-task execution without violating one-task-per-platform serialism? 1. How should the desktop client defer and locally optimize monitor-task execution without violating one-task-per-platform serialism?