docs(prompts): tooling-smoke-sh-rewrite master prompt for Codex #50
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!50
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "claude/orders/codex-smoke-sh-rewrite-prompt"
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 before merge (or operator_override per Rule 2 if direction is clear)
Summary
Master prompt for Codex to rewrite
tests/smoke.shfixing PR #40 v1 canary findings (4 NOT_OK + 3 HIGH risks).Per operator decision 2026-05-04: "codex jest demonem prędkości, dowiezie w kilkadziesiąt minut" — Codex master-prompt route preferred over orchestrator-direct rewrite.
Canary Context Pack
Product story
tests/smoke.shis the only continuous quality signal we have for Phase 02 v2 modules (drift detection betweenimage_observedand live registry digest). v1 (PR #40) has 4 NOT_OK from canary 3+3 — including 3 HIGH bugs that make it unreliable. This PR delivers the master prompt; Codex executes the rewrite as a separate PR (authored ascodexper identity-isolation).What changed
prompts/tooling-smoke-sh-rewrite.md(307 lines)Why it changed
Operator chose Codex-via-master-prompt route for smoke.sh rewrite (consistent with wave 3 + wave 4 patterns). Master prompt codifies the bug list + constraints so Codex can execute autonomously.
Files touched
prompts/tooling-smoke-sh-rewrite.md(new)Relevant context
state/reviews/PR-40/decision_packet.mdRuntime evidence
N/A — this PR is a master prompt (text only). Runtime evidence will appear in the actual rewrite PR Codex opens.
Known constraints
codex(not pdurlej, not claude)Explicit out-of-scope
Requested decision
approve_merge after canary 3+3 passes (or operator_override if direction is clear and content is straightforward).
Merge blockers
How operator triggers Codex
After this PR merges, in master operator (Codex thread):
Codex executes per prompt; opens rewrite PR as
codex; orchestrator (claude) reports back when PR opens.Test plan
Canary statusline per ADR 0001 Rule 1acodex(verify Forgejouser.loginfield)Per operator decision 2026-05-04: smoke.sh rewrite via Codex master prompt ("codex jest demonem prędkości, dowiezie w kilkadziesiąt minut"). Codifies PR #40 v1 canary findings (4 NOT_OK + 3 HIGH risks) as bug list Codex fixes: 1. HIGH: drift detection identifier ({{.Image}} → {{index .RepoDigests 0}}) 2. HIGH: container name hardcoding (read from runbook, not pattern) 3. HIGH: Python deps fragile (recommend bash-only core + separate validate-schema.sh for schema validation) 4. MEDIUM: dead read_field function — remove 5. MEDIUM: JSON output unsafe escaping (printf → jq -n or python json.dumps) 6. MEDIUM: hardcoded home-platform- prefix (same root cause as #2) Constraints: - Authored as codex (not pdurlej, not claude) per AGENTS.md identity-isolation - PR size: Medium (script change with runtime evidence + recovery semantics) - Canary 3+3 required + full Canary Context Pack - Hard 3-iter cap per ADR 0002 Rule 2 - Minimal viable scope (no --remediate, no --cron-friendly, no per-module hooks framework — defer to platformctl Phase 03) Test plan: 4 target modules across 3 different container-name patterns (home-platform-*, agaria-*, karakeep with sidecars). n8n-worker drift status (real or false-positive from PR #40 v1) MUST be answered. Length: ~290 lines, ~5k tokens. Fits comfortably in Codex session. PR for this prompt itself opens as claude (orchestrator); rewrite PR opens as codex (producer). Identity-isolation discipline preserved.eaf217ff7f02d40dbe0fPer operator instruction 2026-05-04: stop iterating on master prompts; let Codex egzekwować with full agency. Append canary iter 1 findings as context Codex reads + responds to in implementation, not as gates we keep refining pre-execution. Findings appended (5 worth Codex's attention): 1. {{index .RepoDigests 0}} hard-errors on locally-built images (use safe-access pattern: {{if gt (len .RepoDigests) 0}}...{{end}}) 2. Internal scope contradiction (tests/ files in scope, not just smoke.sh) 3. jq dep listed if bash-only path chosen 4. Container-from-runbook convention to verify across 4 test targets 5. Meta-ratio observation (don't replicate 307:280 prompt:script) Plus operator override framing: canary status = operator_override; quality gate shifts from prompt review to artifact review (Codex's PR canary). Sustainable; closes the prompt-iteration loop trap. Authored as claude per identity-isolation.Canary status: operator_override — per operator decision in chat 2026-05-04.
Iter 1 canary returned ELEVATED defer with 5 substantive findings (1 medium-correctness on
{{index .RepoDigests 0}}empty-handling + scope contradiction + jq dep + container-from-runbook verification). Operator decision: stop iterating on master prompts, append findings as context Codex addresses during execution, ship.See commit
8447e02— context section appended at end ofprompts/tooling-smoke-sh-rewrite.md. Codex reads it; Codex picks; Codex documents choices in resulting rewrite PR.Quality gate shifts from prompt review to artifact review (canary on Codex's actual smoke.sh rewrite PR will catch what we missed in the prompt). Sustainable; closes the prompt-iteration loop trap.
Ready for merge.