docs(plan): mark generated-code drift phases 69-70 complete

- Record deterministic sqlc output (identical checksum across runs) and
  the migration source of the media-supply favorite tables
- Note external commits 3037cfe/6adcec4 that landed the generated fix
  and that CI reproduction now passes on origin/main
- Advance task plan to Phase 70 complete with tests and scope guard green
This commit is contained in:
2026-07-18 21:16:08 +08:00
parent efe1cde77c
commit 89a300c458
3 changed files with 15 additions and 4 deletions
+5
View File
@@ -20,6 +20,11 @@
- 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.
- A second `make sqlc-generate` produced the identical SHA-256 checksum, proving sqlc output is deterministic and stable.
- Source tables come from migration `20260710183000_create_media_supply_favorites.up.sql`.
- CI-adjacent verification passes: tenant SQL scope guard and `make test` (`go test ./... -count=1`).
- External Git activity during this turn committed and pushed the generated fix: commit `3037cfe` adds the three missing models, and `origin/main` now points at follow-up commit `6adcec4`.
- Final CI reproduction passes on `6adcec4`: running sqlc v1.30.0 generation leaves the committed generated directory unchanged.
- 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 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.
+6
View File
@@ -7,6 +7,12 @@
- 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.
- Re-ran generation and verified an unchanged checksum. Tenant scope guard and the complete backend test suite pass.
- A parallel Git-status probe unexpectedly returned empty output after previously showing the generated diff; a standalone status check is being run before completion.
- Standalone audit showed the diff disappeared because external commits `3037cfe` and `6adcec4` were created and pushed during the turn. No commit/reset operation was performed by this agent.
- Re-ran the exact CI commands on current `origin/main`: sqlc generation is stable and `git diff --exit-code -- server/internal/tenant/repository/generated` returns 0.
- Phase 70 is complete. Backend `make test`, tenant scope guard, generated checksum stability, and generated-code diff verification all pass.
- Planning completion check still reports historical unfinished phases 11/12, 17, and 48/49; generated-code phases 69-70 are complete. Only planning files remain locally modified after the pushed fix.
## 2026-07-14T18:45:00+08:00 - Local same-platform challenge circuit breaker started
+4 -4
View File
@@ -4,7 +4,7 @@
Continue the desktop AI monitoring implementation by first adding a client-side local scheduler with durable queueing and adaptive execution policy, then adding a reusable hidden Playwright CDP execution layer that attaches to Electron Chromium and reuses existing account partitions.
## Current Phase
Phase 69
Phase 70
## Phases
### Phase 1: Progress Verification
@@ -463,9 +463,9 @@ Phase 69
### Phase 70: Generated-Code Repair And Verification
- [x] Regenerate only the affected committed artifacts
- [ ] Re-run the same generation check until the worktree is stable
- [ ] Run relevant Go tests and record the generated files
- **Status:** in_progress
- [x] Re-run the same generation check until the worktree is stable
- [x] Run relevant Go tests and record the generated files
- **Status:** complete
## Key Questions
1. How should the desktop client defer and locally optimize monitor-task execution without violating one-task-per-platform serialism?