carlos / platform Public

docs: task 3 review brief, round 4

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by paul@keymail.dev c41934e7e50dbba3aec8b83c3e378fc9b068ab34 parent 5c78a1e
1 file changed, +75 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-hub-console-socket-T3-R4.md +75 −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-Sn0JGO
.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/config v1.32.6
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/route53 v1.64.1
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 golang.org/x/crypto v0.58.0
go: downloading golang.org/x/mod v0.41.0
go: downloading github.com/pion/logging v0.2.4
go: downloading github.com/pion/turn/v4 v4.1.4
go: downloading github.com/pion/stun/v3 v3.1.5
go: downloading github.com/aws/aws-sdk-go-v2/service/ssm v1.74.0
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading github.com/klauspost/compress v1.20.2
go: downloading github.com/pion/transport/v4 v4.0.2
go: downloading github.com/pion/dtls/v3 v3.1.4
go: downloading github.com/wlynxg/anet v0.0.5
go: downloading github.com/pion/randutil v0.1.0
go: downloading golang.org/x/sync v0.24.0
go: downloading github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.20.18
go: downloading github.com/prometheus/client_golang v1.17.0
go: downloading github.com/lmittmann/tint v1.1.3
go: downloading golang.org/x/text v0.43.0
go: downloading github.com/beorn7/perks v1.0.1
go: downloading github.com/prometheus/common v0.45.0
go: downloading github.com/prometheus/procfs v0.12.0
go: downloading github.com/cespare/xxhash/v2 v2.3.0
go: downloading google.golang.org/protobuf v1.36.10
go: downloading github.com/prometheus/client_model v0.5.0
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/pierrec/lz4/v4 v4.1.22
go: downloading github.com/aws/aws-sdk-go-v2/service/ecs v1.91.0
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-REVIEW-BRIEF-hub-console-socket-T3-R4.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-hub-console-socket-T3-R4.md
new file mode 100644
index 000000000..ecbd39a70
--- /dev/null
+++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-hub-console-socket-T3-R4.md
@@ -0,0 +1,75 @@
+# Review brief: Task 3, root's console fleet step, and the socket's identity, round 4 (narrow; approved by Paul, no fifth round)
+
+Repo carlos/platform, branch `console-addr-from-install`, commit 5c78a1e4b2510951045f530df2286944393aad06.
+Under review: the diff `79075f0cae57a0e8354b3404ce1f6c044c78066f..5c78a1e4b2510951045f530df2286944393aad06` 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/edge/replicaconsole_scan_rootrunner_linux_test.go`, `internal/edge/replicaconsole_socket_linux_test.go`, `internal/edge/replicaconsole_socket_other_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
+
+Round 3 (`docs/superpowers/reviews/CODEX-FINDINGS-hub-console-socket-T3-R3.md`)
+found three P1s. Paul approved this fourth round with these fixes (spec
+§15):
+
+1. P1-1: the route scan skips a console route whose socket is under
+ `/run/carlos-console`, and for any other socket route builds a proxy
+ (`newRouteScanSocketProxy`) whose dial refuses a listener whose
+ kernel-reported name (`getpeername`) is under `/run/carlos-console`,
+ whatever path reached it. Does any path from a box call to the fleet
+ socket now skip `dialConsoleFleet`'s peer check?
+2. P1-2: root refuses `exclusive` when the console's uid is 0. With a
+ non-root console uid, can a listener carrying that `SO_PEERCRED` uid be
+ anything but a process that ran as that uid (or root, which is trusted)?
+3. P1-3: success tests are Linux-only; refusal checks run elsewhere.
+4. Do the new regression tests fail if each fix is removed?
+
+Give one line per round 3 finding: resolved, partly, or not. Then new
+findings. There is no fifth round: a P1 here stops the work for 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.