fix(host-agent): allow platform runtime env files #382

Merged
pdurlej merged 1 commit from codex/fix/host-agent-platform-env-files into main 2026-05-19 01:03:06 +02:00
Collaborator

Canary status: missing — rely on required Forgejo checks before merge

Canary Context Pack

Product story

Finish the last minio-init cutoff smoke without weakening the platform-host-agent boundary. platformctl apply now passes the canonical platform runtime env files to Docker Compose, and the host wrapper needs to allow exactly those known files.

What changed

  • Allow /opt/pdurlej-platform/runtime/honcho-providers.env and /opt/pdurlej-platform/runtime/honcho-llm-overrides.env in platform-host-agent-wrapper only for /opt/pdurlej-platform/current.
  • Add a regression test for the exact docker compose config --quiet command shape seen in the failed minio-init run.

Why it changed

Run #1463 reached the guarded one-shot apply path, but preflight failed with platform-host-agent: denied because the wrapper allowed compose.env but not the two newer Honcho runtime env files.

Files touched

  • ops/rs2000/platform-host-agent-wrapper
  • tests/test_platform_host_agent_wrapper.py

Relevant context

  • #379 minio-init one-shot apply support
  • #381 auto-apply exit-code capture
  • ops/rs2000/README.md: wrapper is installed explicitly on RS2000

Runtime evidence

  • platformctl-auto-apply run #1463: guard allowed, apply preflight denied on the exact env-file list.
  • Local test: pytest -q tests/test_platform_host_agent_wrapper.py -> 13 passed.

Known constraints

This PR does not install the wrapper. After merge, the reviewed file must be installed to /usr/local/sbin/platform-host-agent-wrapper before retrying minio-init.

Explicit out-of-scope

No arbitrary env-file widening. No production compose changes. No direct MinIO mutation.

Requested decision

Merge after required checks pass, then install the reviewed wrapper on RS2000 and retry the guarded minio-init workflow.

Merge blockers

Any test failure or review finding that the allowlist is broader than these exact runtime files.

Spec sources read

  • ops/rs2000/platform-host-agent-wrapper — denied command allowlist
  • tests/test_platform_host_agent_wrapper.py — wrapper contract tests
  • ops/rs2000/README.md — explicit install contract
  • control-plane/platformctl/apply.py — command shape that produced denied preflight
Canary status: missing — rely on required Forgejo checks before merge ## Canary Context Pack ### Product story Finish the last `minio-init` cutoff smoke without weakening the platform-host-agent boundary. `platformctl apply` now passes the canonical platform runtime env files to Docker Compose, and the host wrapper needs to allow exactly those known files. ### What changed - Allow `/opt/pdurlej-platform/runtime/honcho-providers.env` and `/opt/pdurlej-platform/runtime/honcho-llm-overrides.env` in `platform-host-agent-wrapper` only for `/opt/pdurlej-platform/current`. - Add a regression test for the exact `docker compose config --quiet` command shape seen in the failed `minio-init` run. ### Why it changed Run #1463 reached the guarded one-shot apply path, but preflight failed with `platform-host-agent: denied` because the wrapper allowed `compose.env` but not the two newer Honcho runtime env files. ### Files touched - `ops/rs2000/platform-host-agent-wrapper` - `tests/test_platform_host_agent_wrapper.py` ### Relevant context - #379 `minio-init` one-shot apply support - #381 auto-apply exit-code capture - `ops/rs2000/README.md`: wrapper is installed explicitly on RS2000 ### Runtime evidence - `platformctl-auto-apply` run #1463: guard allowed, apply preflight denied on the exact env-file list. - Local test: `pytest -q tests/test_platform_host_agent_wrapper.py` -> 13 passed. ### Known constraints This PR does not install the wrapper. After merge, the reviewed file must be installed to `/usr/local/sbin/platform-host-agent-wrapper` before retrying `minio-init`. ### Explicit out-of-scope No arbitrary env-file widening. No production compose changes. No direct MinIO mutation. ### Requested decision Merge after required checks pass, then install the reviewed wrapper on RS2000 and retry the guarded `minio-init` workflow. ### Merge blockers Any test failure or review finding that the allowlist is broader than these exact runtime files. ## Spec sources read - `ops/rs2000/platform-host-agent-wrapper` — denied command allowlist - `tests/test_platform_host_agent_wrapper.py` — wrapper contract tests - `ops/rs2000/README.md` — explicit install contract - `control-plane/platformctl/apply.py` — command shape that produced denied preflight
fix(host-agent): allow platform runtime env files
All checks were successful
canary-required / collect-diff (pull_request) Successful in 3s
patchwarden-pr-sanity / collect-diff (pull_request) Successful in 3s
python-ci / Python 3.11 (pull_request) Successful in 36s
python-ci / Python 3.12 (pull_request) Successful in 38s
python-ci / Python 3.13 (pull_request) Successful in 37s
base-is-main / guard (pull_request) Successful in 1s
canary-required / canary (pull_request) Successful in 12s
patchwarden-pr-sanity / sanity (pull_request) Successful in 19s
bece2739ae
Sign in to join this conversation.
No reviewers
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
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pdurlej/platform!382
No description provided.