carlos / platform Public

Reviews: Task 3 round 1 findings

READY AFTER FIXES, three P2s, fixed in faf9d700a.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 886a33a337c6b616b70b2e7cf53b1a756ca36749 parent faf9d70
1 file changed, +17 −0
  • docs/superpowers/reviews/CODEX-FINDINGS-instance-usage-task3-R1.md +17 −0

CI cancelled — superseded by a newer push — run details

CI log
=== gate ===
go: downloading go1.26.10 (linux/arm64)
go version go1.26.10 linux/arm64
opentofu: arm64, tofu 1.13.9, aws 6.73.0, archive 2.8.1
  tofu: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/tofu_1.13.9_linux_arm64.tar.gz
  tofu: downloaded, digest verified
  aws: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/terraform-provider-aws_6.73.0_linux_arm64.zip
  aws: downloaded, digest verified
  archive: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/terraform-provider-archive_2.8.1_linux_arm64.zip
  archive: downloaded, digest verified
  installed in /tmp/carlos-opentofu-pE1xZD
.amadan/test-gate.sh
go: downloading github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.68.0
go: downloading github.com/aws/aws-sdk-go-v2/service/costexplorer v1.67.5
go: downloading golang.org/x/crypto/x509roots/fallback v0.0.0-20260209214922-2f26647a795e
go: downloading golang.org/x/net v0.62.0
go: downloading modernc.org/sqlite v1.55.0
go: downloading github.com/aws/aws-sdk-go-v2/config v1.32.6
go: downloading golang.org/x/crypto v0.58.0
go: downloading github.com/aws/aws-sdk-go-v2/service/acm v1.45.0
go: downloading github.com/aws/aws-sdk-go-v2/service/ec2 v1.324.0
go: downloading github.com/aws/aws-sdk-go-v2/service/iam v1.58.2
go: downloading github.com/aws/aws-sdk-go-v2/service/resourcegroupstaggingapi v1.37.0
go: downloading golang.org/x/sys v0.49.0
go: downloading github.com/aws/aws-sdk-go-v2/service/route53 v1.64.1
go: downloading golang.org/x/mod v0.41.0
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading github.com/aws/aws-sdk-go-v2/service/sesv2 v1.66.6
go: downloading github.com/prometheus/common v0.45.0
go: downloading github.com/prometheus/procfs v0.12.0
go: downloading google.golang.org/protobuf v1.36.10
go: downloading github.com/pion/dtls/v3 v3.1.4
go: downloading github.com/pion/transport/v4 v4.0.2
go: downloading github.com/klauspost/compress v1.20.2
go: downloading github.com/wlynxg/anet v0.0.5
go: downloading golang.org/x/text v0.43.0
go: downloading modernc.org/sqlite v1.55.0
go: downloading github.com/klauspost/compress v1.20.2
go: downloading github.com/aws/aws-sdk-go-v2/service/ecs v1.91.0
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading modernc.org/libc v1.74.1
go: downloading modernc.org/libc v1.74.1
go: downloading modernc.org/mathutil v1.7.1
go: downloading github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec

amadan: job cancelled — a newer push superseded it
diff --git a/docs/superpowers/reviews/CODEX-FINDINGS-instance-usage-task3-R1.md b/docs/superpowers/reviews/CODEX-FINDINGS-instance-usage-task3-R1.md
new file mode 100644
index 000000000..74ce48f08
--- /dev/null
+++ b/docs/superpowers/reviews/CODEX-FINDINGS-instance-usage-task3-R1.md
@@ -0,0 +1,17 @@
+No P1 findings. Three P2 findings:
+
+1. **P2 — The horizon permits writes after 24 hours.**
+ [instance_usage.go:106](/home/paulca/.paseo/worktrees/03ai90xp/instance-usage/internal/host/instance_usage.go:106) truncates the cutoff to whole seconds; line 140 compares against that truncated value. At an age of **24 hours + 500 ms**, a bucket remains eligible and its bytes are not recorded as dropped. Compare the bucket’s start time against the full-precision cutoff. Add tests at exactly 24 hours and 24 hours + 1 ns; the simulation currently repeats the same truncation.
+ **Fault family:** write-start horizon enforcement.
+
+2. **P2 — T5 does not exercise live overlapping writers or conditional-write conflicts.**
+ The simulation flushes only `sim.fl` at [instance_usage_test.go:573](/home/paulca/.paseo/worktrees/03ai90xp/instance-usage/internal/host/instance_usage_test.go:573). Restart replaces it at line 601; old flushers never run again. Held writes land between flush operations, so nothing changes the object between an active attempt’s Get and Put. The two-writer test likewise completes each flush sequentially. Consequently, incorrect conflict handling—such as acknowledging a conflicted batch without applying it—can escape these tests. Keep two active writers in T5 and inject a competing write between Get and Put, including lost-answer and delayed-write cases.
+ **Fault family:** required concurrency and retry regression coverage.
+
+3. **P2 — Invalid-name logging repeats for every instance bucket.**
+ [instance_usage.go:83](/home/paulca/.paseo/worktrees/03ai90xp/instance-usage/internal/host/instance_usage.go:83) logs inside the bucket loop. One invalid account/app shared by thousands of instances generates thousands of substantially identical messages every drain, indefinitely. Keep counting every dropped byte, but deduplicate diagnostics by account/app or aggregate and rate-limit them. The existing `unshippable` helper provides a once-per-process precedent. Add a repeated-drain test that checks bounded logging and complete dropped-byte accounting.
+ **Fault family:** bounded operational logging.
+
+Targeted host and status tests could not start because Go attempted to update `go.mod` in the read-only sandbox. `git diff --check` passed. No files were changed.
+
+**READY AFTER FIXES**
\ No newline at end of file