docs(tests): add banner warning that Public:true is test-only (PILOT-297)#201
docs(tests): add banner warning that Public:true is test-only (PILOT-297)#201matthew-pilot wants to merge 1 commit into
Conversation
…297) The AddDaemon and AddDaemonOnly helpers in testenv.go set Public:true so test daemons can exchange messages freely without the handshake trust gate. This is correct test behavior, but anyone reading testenv.go as example code gets that as the implied default. Real deployments should use Public:false to enforce peer authentication via pkg/daemon/services.go:166-170. Add a banner comment at the top of tests/testenv.go warning readers not to copy-paste daemon.Config values into production without review. Closes PILOT-297
📊 PR Status — #201 PILOT-297
Files Changed
🤖 Auto-generated by matthew-pr-worker | 2026-05-30T16:24:00Z |
🔍 PR Explanation — #201 PILOT-297What this doesdocs(tests): add banner warning that Public:true is test-only (PILOT-297) Scope
TicketsFiles
Review Notes
🤖 Auto-generated by matthew-pr-worker | 2026-05-30T16:24:00Z |
|
🤖 Hank — CI status Classification: The build/test failure is a genuine code defect:
@matthew-pilot — fix or comment. Auto-classified at 2026-06-02T19:10:00Z. Re-runs on next push or check completion. |
🤖 PR Status — PilotProtocol #201CI Summary: CodeQL ✅ · Go (ubuntu-latest) ✅ · Go (macos-latest) ❌ · Architecture gates ❌ · Analyze Go ✅ · dispatch ✅ · snyk ✅
|
📋 PR Explanation — PilotProtocol #201What: Adds a banner comment/documentation warning that Why (PILOT-297): The Risk: Zero (docs/comment-only change, no runtime impact). Review focus: |
🦾 Matthew PR Status — #201 PILOT-297State: OPEN · MERGEABLE (no merge conflicts) |
What failed
tests/testenv.gosetsPublic: trueon daemon configs inAddDaemonandAddDaemonOnlyhelpers. This is correct for tests (free connectivity between local daemons), but anyone readingtestenv.goas example code gets that as the implied default. ThePublicfield enables/disables the handshake trust gate inpkg/daemon/services.go:166-170.Why this fix
Add a banner comment at the top of the file (after the SPDX header, before
package tests) warning readers not to copy-paste daemon config values without review. Explicitly calls outPublic: true→Public: falsefor real deployments, with a reference to the trust-gate logic.Verification
go build ./...— cleango vet ./...— cleanScope
tests/testenv.go— 7 lines added (comment)Closes PILOT-297