test: re-pin reviewed sidecar create record writer
Record the manifest recheck added under the existing app lock in B6 fix round 1. The sidecar key, record shape and create-only write authority remain unchanged; retain explicit class and site checks in the inventory. Verified RED then GREEN record-write census, root census, full provision tests, targeted race tests, vet, formatting and four cross-builds.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
internal/provision/region_ha_sidecars_census_test.go+25 −7
CI passed — run details
Intent
<task-notification> <task-id>bs96o5vea</task-id> <tool-use-id>toolu_01TjeTzHYVckmzRqg8yNSpyy</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/a26a0e24-c72d-4660-abab-b54e6b2b72b5/tasks/bs96o5vea.output</output-file> <status>completed</status> <summary>Background command "W=/home/paulca/amadan.net/carlos/platform/.claude/worktrees/region-ha-p1b3b-s/.superpowers/sdd/2026-11-03-region-ha-p1b3b-duties; echo "CI 0f3eaad8: PASSED. Census: Opus census review dispatched at tip 0f3eaad8" >> $W/progress.md; amadan task set 561 -status Started | tail -1; L=$W/task-B6-astra-fix1.log; prev=0; idle=0; while [ ! -f $W/task-B6-astra-fix1.done ]; do sleep 90; s=$(stat -c %s $L); if [ "$s" = "$prev" ]; then idle=$((idle+1)); else idle=0; fi; prev=$s; [ $idle -ge 15 ] && { echo STALLED; exit 0; }; done; cat $W/task-B6-astra-fix1.done; cat $W/task-B6-astra-fix1.md" completed (exit code 0)</summary> </task-notification>
Attributed to this commit: 13.7 g CO₂e (1,656,217 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on region-ha-p1b3b-s-build, 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/internal/provision/region_ha_sidecars_census_test.go b/internal/provision/region_ha_sidecars_census_test.go| index cd7d4432a..1ac9f6797 100644 |
| --- a/internal/provision/region_ha_sidecars_census_test.go |
| +++ b/internal/provision/region_ha_sidecars_census_test.go |
| @@ -4,16 +4,34 @@ package provision |
| // and claim-install reference, with no bucket record writes. The new work |
| // reads manifest policy into departure entries and the in-memory lifetime |
| // index before minting or converging the record's sticky HA bit. |
| +// |
| +// B6 fix round 2 re-pins Server.createSidecarMarked after reviewing fix |
| +// round 1's manifestETag argument and recheckSidecarHAManifest call under |
| +// the existing app lock. The check only refuses stale, unreadable or |
| +// non-hibernating HA manifests before any write. The same SidecarRecord |
| +// is still written create-only through CreateSidecarRecord/WriteRecord |
| +// at apps/<account>/<app>/sidecars/<name>.json, after the existing |
| +// hostname-history mark. No new write, record shape or write authority |
| +// is introduced; the record-writer class and key sites are unchanged. |
| func regionHASidecarsWriteCensusInventory() []censusEntry { |
| entries := append([]censusEntry(nil), agentStartDemo2WriteCensusInventory()...) |
| - for i, e := range entries { |
| - if e.File == "internal/provision/sidecar_reconcile.go" && e.Unit == "ReconcileSidecars" { |
| - if e.Class != "key-site" || e.Kinds != "key:ParseSidecarKey,key:SidecarRecordKey,lit:sidecars" { |
| - panic("sidecar census class or sites changed") |
| + repins := []censusEntry{ |
| + {"internal/provision/sidecar_reconcile.go", "ReconcileSidecars", "key-site", "key:ParseSidecarKey,key:SidecarRecordKey,lit:sidecars", "6e5e0ac9d95dd6d1da61bbe6cda9175e18d53cad4016b083340522f32c92b7f3"}, |
| + {"internal/console/hostsused.go", "Server.createSidecarMarked", "record-writer", "key:CreateSidecarRecord,key:SidecarRecordKey", "4abdd39ce67219e0e0bbbffb65043c335864599f4b2c7d7d6d40b2de6db1add1"}, |
| + } |
| + for _, r := range repins { |
| + found := false |
| + for i, e := range entries { |
| + if e.File == r.File && e.Unit == r.Unit { |
| + if e.Class != r.Class || e.Kinds != r.Kinds { |
| + panic("sidecar census re-pin changes class or sites of " + r.File + ":" + r.Unit) |
| + } |
| + entries[i], found = r, true |
| } |
| - entries[i].Digest = "6e5e0ac9d95dd6d1da61bbe6cda9175e18d53cad4016b083340522f32c92b7f3" |
| - return entries |
| + } |
| + if !found { |
| + panic("sidecar census re-pin of an unlisted unit " + r.File + ":" + r.Unit) |
| } |
| } |
| - panic("sidecar census unit missing") |
| + return entries |
| } |