feat(platformctl): add tailscale transport adapter #158
No reviewers
Labels
No labels
W6d-automerge-calibration
agent/claude-code
agent/codex
agent/hermes
agent/iskra
agent/ollama
agent/patchwarden
automerge-candidate
class/security-sensitive
cutover-gate
dependency/blocked
dependency/blocks-others
dependency/cross-repo
dependency/needs-confirmation
domain:agents
domain:ci
domain:docs
domain:forgejo
domain:infra
domain:memory
domain:runtime
domain:signal
domain:ux
flow/architecture
flow/blocked
flow/deployed
flow/done
flow/implementation
flow/intake
flow/maintained
flow/observed
flow/ready
flow/refining
flow/retired
flow/review
iterating
judge/codex-candidate
judge/hermes-candidate
judge/low-confidence
judge/needs-refinement
judge/operator-needed
judge/p0
judge/p1
judge/p2
judge/p3
judge/park
judge/patchwarden-candidate
judge/stale-priority
kind/adr
kind/bug
kind/chore
kind/feature
kind/infra
kind/ops
kind/refactor
kind/research
large-impact
merge/auto
merge/manual
merge/manual-dependency-conflict
merge/manual-failing-tests
merge/manual-merge-conflict
merge/manual-missing-review
merge/manual-operator-preference
merge/manual-red-zone
merge/manual-security-sensitive
merge/manual-unclear-scope
merge/manual-unknown
meta
mode:operator-only
mode:patchwarden-iskra-approved
mode:safe-auto
needs-operator-decision
needs-triage
not-ready
observed/erroring
observed/needs-followup
observed/pending
observed/retire-candidate
observed/unused
observed/used
operator-emotional
owner-attention
phase/02
phase/03
priority:p0
priority:p1
priority:p2
priority:p3
proposed
ready-for-agent
ready-for-operator
recovery
review:claude-reviewed
review:codex-reviewed
review:dziadek-reviewed
review:needs-human
risk/exposure
risk/process
risk/product
risk/runtime
safety:external-write
safety:no-prod-mutation
safety:prod-impact
safety:secret-touch
size/large
size/medium
size/small
size/tiny
size/unknown
source/adr
source/agent-generated
source/manual
source/operator-chat
source/voice-note
status:blocked
status:codex-ready
status:merged:pending-evidence
status:needs-evidence
status:operator-needed
status:parked
tier/full
tier/lite
tier/stacked
tier:0-platform-substrate
tier:1-iskra-value-layer
tier:2-tools-products-modules
type:bug
type:chore
type:docs
type:feat
type:policy
type:research
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pdurlej/platform!158
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "codex/issues/142-phase3-transport"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Canary status: missing — fire canary 3+3 manually before merge
Canary Context Pack
Product story
Phase 3 needs a remote execution transport before
plan,health, and laterapplycan talk to RS 2000 in a controlled way. This PR adds the Tailscale SSH adapter while keeping runtime mutation at zero.What changed
TailscaleTransportwith host alias/IP resolution, root-user refusal, structured CompletedProcess-like result dicts, and legacyrun_ssh()compatibility.5s/15s/45s.safety.check_command()before SSH execution so sacred-path mutation commands are refused before any network call.subprocess.runand sleep; no real SSH is executed.Why it changed
Packet 3.1 requires the Tailscale SSH transport adapter before platformctl can perform remote read-only inspection or gated apply work.
Files touched
control-plane/platformctl/transport/tailscale.pycontrol-plane/platformctl/transport/__init__.pycontrol-plane/platformctl/transport/tests/test_tailscale.pyRelevant context
prompts/codex-cutover-flight/phase-3-operational.mdPacket 3.1network/tailscale-acl.hujsoncodex/platform-host-agent restrictionsPLATFORM_CHARTER.mdsacred-path / platformctl control-plane sectionsdocs/forgejo-agent-operations.mdAGENTS.mdsecurity-sensitive class of serviceRuntime evidence
No runtime mutation and no real SSH. Tests use mocked subprocess calls only.
Known constraints
This is stacked on PR #157 (
codex/issues/142-phase3-safety) because transport depends on the hardenedsafety.check_command()behavior. Merge #157 first, then rebase/merge this PR.Explicit out-of-scope
platformctl planremote inspect yet.platformctl applymutation.Requested decision
Review as security-sensitive Packet 3.1 foundation. Merge only after #157 and normal canary/owner process.
Merge blockers
TailscaleTransport.run()can execute a sacred-path mutation beforecheck_command()refuses it.Spec sources read
prompts/codex-cutover-flight/dispatch.md— phase sequencing and gatesprompts/codex-cutover-flight/phase-3-operational.md— Packet 3.1 acceptance criterianetwork/tailscale-acl.hujson— host aliases and platform-host-agent SSH scopePLATFORM_CHARTER.md— sacred paths and control-plane contextdocs/forgejo-agent-operations.md— Forgejo/identity protocolAGENTS.md— security-sensitive class of service and PR rulescontrol-plane/platformctl/transport/tailscale.py— implementation targetcontrol-plane/platformctl/plan.pyandapply.py— existing transport call sitescontrol-plane/platformctl/tests/test_smoke.py— local test conventionsTests
PYTHONPATH=control-plane python3 -m pytest control-plane/platformctl/transport/tests/test_tailscale.py -q— 7 passedPYTHONPATH=control-plane python3 -m pytest control-plane/platformctl/tests/test_safety_phase3.py -q— 128 passedPYTHONPATH=control-plane python3 -m pytest control-plane/platformctl/tests control-plane/platformctl/transport/tests -q— 318 passedPYTHONPATH=control-plane python3 -m platformctl.cli validate modules/honcho-redis --strict-v2 --json— passgit diff --check— cleanRefs #142
Packet 3.1 transport status for stacked PR #158:
codex/issues/142-phase3-transportcodex/issues/142-phase3-safety(PR #157 must merge first)c4f7a50(feat(platformctl): add tailscale transport adapter)Local verification:
PYTHONPATH=control-plane python3 -m pytest control-plane/platformctl/transport/tests/test_tailscale.py -q— 7 passedPYTHONPATH=control-plane python3 -m pytest control-plane/platformctl/tests/test_safety_phase3.py -q— 128 passedPYTHONPATH=control-plane python3 -m pytest control-plane/platformctl/tests control-plane/platformctl/transport/tests -q— 318 passedPYTHONPATH=control-plane python3 -m platformctl.cli validate modules/honcho-redis --strict-v2 --json— passgit diff --check— cleanOllama Cloud expensive review, final counted pass:
deepseek-v4-pro:cloud— APPROVE, blocking findings: Noneminimax-m2.7:cloud— APPROVE, blocking findings: Nonekimi-k2.6:cloud— APPROVE, blocking findings: NoneNon-blocking hardening notes surfaced: document trust boundary for
PLATFORMCTL_*_SSH_HOSTenv overrides; consider wrappingOSError/missing ssh binary intoSSHError; be aware OpenSSH return code 255 is ambiguous. None were marked merge blockers.Official canary status remains
missing; this still needs normal platform canary/owner merge process before merge.