member backups: slice 2b whole-branch review findings
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+41
−0
docs/superpowers/notes/reviews/member-backups/CODEX-FINDINGS-2b-branch.md+41 −0
CI failed — run details
Intent
Attributed to this commit: 21.6 g CO₂e (2,702,946 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on design-member-backups, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.
diff --git a/docs/superpowers/notes/reviews/member-backups/CODEX-FINDINGS-2b-branch.md b/docs/superpowers/notes/reviews/member-backups/CODEX-FINDINGS-2b-branch.md| new file mode 100644 |
| index 000000000..35fc8109a |
| --- /dev/null |
| +++ b/docs/superpowers/notes/reviews/member-backups/CODEX-FINDINGS-2b-branch.md |
| @@ -0,0 +1,41 @@ |
| +<!-- Astra (gpt-6-astra, effort high), whole-branch review round 1 of member-backups-2b at ca492cb7, brief CODEX-REVIEW-BRIEF-2b-branch.md. Restored from the session transcript after the worktree was removed. Fixes: e249364d (later 73fad1d0 after rebase); merged as 7e0c953. --> |
| + |
| +No P1 findings. Two P2s need fixes. |
| + |
| +1. **P2 — Task 6: malformed instance records can disappear from a “complete” view.** |
| + `internal/console/fleetbackups.go:221` uses `ListAllRecordsTolerant`. That function discards the skipped-host set, while malformed or path-mismatched bodies do not clear `complete` (`internal/provision/reconcile.go:3253`, `:3309`). An instance with a failed restore test can therefore disappear from both counts and denominator while JSON reports `complete: true` and the page gives no warning. |
| + **Fix:** expose and consume the tolerant walk’s skipped-host set; mark the view incomplete when it is nonempty. Test malformed and path-mismatched records. |
| + **Fault family:** incomplete evidence must remain visible. |
| + |
| +2. **P2 — Task 7: the empty-state banner hides known read failures.** |
| + `internal/console/fleetbackups_page.go:143` selects `NoRecords` before checking `Complete`. Before the first nightly publication, an instance-record GET failure produces reduced instance and “Never tested” counts, but only the neutral empty-state banner appears. The JSON correctly reports incompleteness; the page conceals it. |
| + **Fix:** preserve one banner, but give incompleteness precedence using the approved partial-data treatment. Add a combined empty-inventory/partial-walk test. |
| + **Fault family:** incomplete evidence must remain visible. |
| + |
| +3. **P3 — Task 7: partial-data colour reverses the severity hierarchy.** |
| + The partial-read banner uses red at `fleetbackups_page.go:149`, while actual failed restores use warning colour at line 184. A partial read with no known restore failures consequently looks more severe than confirmed failures. This misleads visually, without changing the reported facts. |
| + **Fix:** use warning tone for partial counts; retain approved wording. Follow-up only. |
| + **Fault family:** visual severity should match the reported state. |
| + |
| +The census verdicts are: |
| + |
| +| Envelope or unit | Verdict | Basis | |
| +|---|---|---| |
| +| Root envelope `.` | **APPROVE** | `instances_backups.go:34`, line 134: additive decoding and formatting through the existing request. | |
| +| `internal/backupswords` envelope | **APPROVE** | `display.go:170`: pure formatting and approved constants; no I/O. | |
| +| `internal/provision` envelope | **APPROVE** | `provision.go:107`, lines 1077–1102 and 2958–2966: additive timestamp, existing mutations and refusals, unchanged keys and CAS. | |
| +| Record-write unit `SetRecordRegion` | **APPROVE** | Timestamp changes inside the existing region-change branch, after refusals. Classification and kinds remain unchanged. | |
| +| Record-write unit `var routeDecls` | **APPROVE** | `routedecls.go:148`, line 1075: read-only handlers behind the prescribed gates; service credentials remain excluded from the API. | |
| + |
| +All three envelope hashes match the overlay. The three rebase inventory pins are correctly classified. No additional missing task implementation or unapproved UI string was found. |
| + |
| +Diff and formatting checks passed; all 47 approved strings are present verbatim. Targeted Go tests could not start because the read-only sandbox refused the build directory. `GOCACHE` remained unset. No files were edited. |
| + |
| +Fix the P2s without reopening the review, retaining the required census and changed-security checks. |
| + |
| +**READY AFTER FIXES** |
| + |
| +## Follow-up checks (Astra) |
| + |
| +- Fix check at e249364d: both P2s and the P3 fixed; no new P1; re-pinned `internal/provision` envelope APPROVE. |
| +- Census-only re-check at 2e3a73c0 (rebased onto main 16269ca4): APPROVE; only the `.` coverage hash moved, for main's schedule change. |