docs: task 3 review brief, round 3 (narrow, peer check)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+80
−0
docs/superpowers/reviews/CODEX-REVIEW-BRIEF-hub-console-socket-T3-R3.md+80 −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-09w3Vd .amadan/test-gate.sh go: downloading github.com/aws/aws-sdk-go-v2 v1.44.0 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 github.com/aws/aws-sdk-go-v2/service/s3 v1.105.0 go: downloading github.com/aws/smithy-go v1.28.1 go: downloading github.com/benbjohnson/litestream v0.5.14 go: downloading github.com/superfly/ltx v0.5.1 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/service/sns v1.43.0 go: downloading golang.org/x/crypto v0.58.0 go: downloading golang.org/x/sys v0.49.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 github.com/aws/aws-sdk-go-v2/service/route53 v1.64.1 go: downloading github.com/oschwald/maxminddb-golang v1.13.1 go: downloading github.com/pion/logging v0.2.4 go: downloading github.com/pion/stun/v3 v3.1.5 go: downloading github.com/pion/turn/v4 v4.1.4 go: downloading github.com/pierrec/lz4/v4 v4.1.22 go: downloading github.com/klauspost/compress v1.20.2 go: downloading golang.org/x/text v0.43.0 go: downloading github.com/prometheus/client_golang v1.17.0 go: downloading golang.org/x/sync v0.24.0 go: downloading github.com/lmittmann/tint v1.1.3 go: downloading github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.20.18 go: downloading github.com/beorn7/perks v1.0.1 go: downloading github.com/cespare/xxhash/v2 v2.3.0 go: downloading github.com/prometheus/common v0.45.0 go: downloading github.com/prometheus/procfs v0.12.0 go: downloading github.com/prometheus/client_model v0.5.0 go: downloading google.golang.org/protobuf v1.36.10 go: downloading github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 go: downloading modernc.org/sqlite v1.55.0 go: downloading golang.org/x/crypto/x509roots/fallback v0.0.0-20260209214922-2f26647a795e 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/memory v1.11.0 go: downloading github.com/google/uuid v1.6.0 go: downloading github.com/dustin/go-humanize v1.0.1 go: downloading modernc.org/mathutil v1.7.1 go: downloading github.com/dustin/go-humanize v1.0.1 go: downloading github.com/google/uuid v1.6.0 go: downloading modernc.org/mathutil v1.7.1 go: downloading modernc.org/memory v1.11.0 amadan: job cancelled — a newer push superseded it
diff --git a/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-hub-console-socket-T3-R3.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-hub-console-socket-T3-R3.md| new file mode 100644 |
| index 000000000..e2e120de8 |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-hub-console-socket-T3-R3.md |
| @@ -0,0 +1,80 @@ |
| +# Review brief: Task 3, root's console fleet step, and the socket's identity, round 3 of 3 (narrow) |
| + |
| +Repo carlos/platform, branch `console-addr-from-install`, commit d370ead4a0bd941cde31c1d8c853de8b47b99dea. |
| +Under review: the diff `79075f0cae57a0e8354b3404ce1f6c044c78066f..d370ead4a0bd941cde31c1d8c853de8b47b99dea` in |
| +`internal/edge/replicaconsole.go` (`dialConsoleFleet`, `newReplicaConsoleSocketProxy`, |
| +`routeReplicaConsole`, `consoleFleetSource.ready`), `internal/edge/replicaconsole_peer_linux.go`, |
| +`internal/edge/replicaconsole_peer_other.go`, `internal/edge/replicaconsole_socket_test.go`, |
| +`internal/edge/replicaconsole_peer_rootrunner_linux_test.go`, `internal/host/consolefleet.go`, |
| +`internal/host/consolefleet_test.go`, `internal/host/consolefleet_dropin_rootrunner_linux_test.go`. |
| +Authorities: the spec `docs/superpowers/specs/2026-11-24-hub-console-address-from-install-design.md` |
| +(§15 records Paul's cut of 2026-11-24) and the code on `main`. |
| + |
| +You are an independent reviewer. This round is narrow: it checks that |
| +Paul's cut closes the fault family, and that round 2's P2s are fixed. |
| + |
| +## Fixed: do not re-argue |
| + |
| +- **Paul's cut 3 (2026-11-24): check the peer.** Before the edge writes |
| + anything to the console's fleet socket, one dial function proves with |
| + `SO_PEERCRED` that the listening process runs as root's recorded |
| + console uid. Report only mechanisms that fail to deliver that. |
| +- Everything else in the design (spec §12, §14) and the earlier rounds' |
| + dispositions (spec §15). |
| + |
| +## What to check |
| + |
| +1. **The family** ("live socket ownership must follow the console's |
| + identity"): with the peer check, can any process other than one running |
| + as the console's recorded uid receive a byte of a box call through the |
| + socket? Consider: a foreign listener surviving a re-chown; connection |
| + reuse across a console restart or a changed record (keep-alives are |
| + off for the socket proxy); the uid reaching the dial (request context |
| + through `httputil.ReverseProxy` and `http.Transport`'s dial); a |
| + listener created by a process that then changes uid; any other path to |
| + the socket that skips `dialConsoleFleet`. |
| +2. Is `SO_PEERCRED` on the dialling end the listener's credentials as |
| + claimed (Linux semantics), and is the non-Linux stub fail-closed? |
| +3. Round 2's P2s: symlink and hard-link drop-ins repaired |
| + (`readConsoleFleetDropInAt`); the inactive-console directory refusal |
| + restored; numeric `User=`. |
| +4. Do the regression tests exercise the real dial (not a seam) and would |
| + they fail if the check were removed? |
| + |
| +## Round 3 |
| + |
| +Earlier rounds: `docs/superpowers/reviews/CODEX-FINDINGS-hub-console-socket-T3-R1.md`, |
| +`docs/superpowers/reviews/CODEX-FINDINGS-hub-console-socket-T3-R2.md`. |
| +First give one line per round 2 finding: resolved, partly, or not. Then new |
| +findings. A fourth round needs Paul. |
| + |
| +## Severity |
| + |
| +- **P1**: unsafe, would not compile, a test fails, or it would not work. |
| + Blocks merge. |
| +- **P2**: wrong or missing. Fixed without reopening this review. (The |
| + census, and review of any newly changed security, root, termination |
| + or production-storage behaviour, still check the fix; see AGENTS.md, |
| + "Stopping rules".) |
| +- **P3**: clarity or polish. Goes on a follow-up list; never a reason for |
| + another round. |
| + |
| +A P1 states its failure scenario and the evidence (file:line). Do not |
| +raise a P2 to P1 to keep the review open. |
| + |
| +## Output |
| + |
| +Findings ranked P1, P2, P3. Each gives the problem, the evidence |
| +(file:line, verified), the failure scenario, a concrete fix and the |
| +invariant or trust boundary it breaks (that is its fault family). End with |
| +exactly one verdict: |
| + |
| +- **READY**: no P1 and no P2. |
| +- **READY AFTER FIXES**: no P1. The listed P2s are fixed without another |
| + round. |
| +- **NOT READY**: one or more P1s, listed. Say whether the P1s share one |
| + cause, and whether refusing the case up front or cutting the feature |
| + would remove them. |
| + |
| +Do not edit files. Do not spawn Anthropic-model reviewers or subagents of |
| +your own. Do not run the full test suites. |