chore(verify): resolve current L4 prompt budget and cross-link debt #122

Closed
opened 2026-05-09 00:53:04 +02:00 by codex · 1 comment
Collaborator

Context

While implementing issue #66 (chore(verify): L4-Verify deterministic check suite), Codex found existing repo violations that should not be silently fixed inside the test-suite PR.

The new test suite should gate new drift, but these current violations need their own cleanup pass.

Scope

  • Resolve or intentionally waive current prompt token-budget violations.
  • Resolve or intentionally waive missing literal relative paths referenced from prompts/*.md.
  • Keep this separate from issue #66 so the verification suite stays additive.

Acceptance criteria

  • tests/test_l4_verify.py no longer needs xfail tracking for these current violations.
  • Any remaining long prompt has an explicit owner/orchestrator-approved exemption.
  • Any missing prompt path is either created, corrected, or explicitly classified as a non-literal/planned output reference.

Current L4 verify violations observed by Codex

Prompt token budget violations

  • prompts/01.5-schema-v2-adhd-counters.md: estimated 3806 tokens > 2000
  • prompts/01.5c-pm-decision-packet.md: estimated 2021 tokens > 2000
  • prompts/codex-night-close-2026-05-09.md: estimated 4267 tokens > 2000
  • prompts/codex-wave-2-v2-cataloging-2026-05-09.md: estimated 3036 tokens > 2000
  • prompts/order-a1-fix-patch-schema.md: estimated 2416 tokens > 2000
  • prompts/order-a2-round2-cross-review.md: estimated 2850 tokens > 2000
  • prompts/order-a3-bug-class-taxonomy.md: estimated 2905 tokens > 2000
  • prompts/order-c-codex-askpass.md: estimated 2129 tokens > 2000
  • prompts/phase-02-wave-3.md: estimated 2503 tokens > 2000
  • prompts/phase-02-wave-4.md: estimated 2548 tokens > 2000
  • prompts/tooling-canary-workflow-rewrite.md: estimated 4754 tokens > 2000
  • prompts/tooling-smoke-sh-rewrite.md: estimated 3770 tokens > 2000
  • prompts/01-freeze.md: 13 missing literal paths
    • baseline/recovery/PROCEDURES.md
    • baseline/recovery/verify-baseline.sh
    • cron/jobs.json
    • inventory/domains-2026-XX-XX.yaml
    • inventory/mac-snapshot-2026-XX-XX.yaml
    • inventory/rs2000-domains-2026-XX-XX.yaml
    • inventory/rs2000-snapshot-2026-XX-XX.yaml
    • inventory/vps1000-snapshot-2026-XX-XX.yaml
    • state/L0/rs2000_inventory.json
    • state/L0/vps1000_inventory.json
  • prompts/01.5-schema-v2-adhd-counters.md: 1 missing literal paths
    • audit/openclaw-platform-2026-04-25/findings-register.md
  • prompts/01.5c-pm-decision-packet.md: 3 missing literal paths
    • state/DECISION_REQUIRED.md
    • state/L4/review-pipeline-pattern.json
  • prompts/02-catalog.md: 7 missing literal paths
    • L3/OPEN_LOOPS.md
    • platformctl/safety.py
    • platformctl/tools/validate_module.py
    • state/DECISION_REQUIRED.md
    • state/L1/wip_triage.json
    • tools/run_review.py
  • prompts/03-control.md: 4 missing literal paths
    • policies/change/core-default-v1.yaml
    • tests/test_smoke.py
    • transport/tailscale.py
  • prompts/04-observability.md: 7 missing literal paths
    • alerting/alertmanager-config.yaml
    • compose/observability/compose.yaml
    • live-platform/generator/grafana-dashboards.py
    • live-platform/generator/livesite.py
  • prompts/05-agent-execution.md: 3 missing literal paths
    • .codex/instructions.md
    • automation/renovate.json
    • policies/change/core-default-v1.yaml
  • prompts/06-prune.md: 2 missing literal paths
    • automation/renovate.json
    • policies/image-prune.yaml
  • prompts/codex-night-close-2026-05-09.md: 22 missing literal paths
    • .codex/README.md
    • .codex/examples/forgejo.md
    • .codex/instructions.md
    • .codex/render.py
    • Status/platform-force-push-2026-05-08-night/pre-flight.md
    • examples/forgejo.md
    • practices/agent-coordination-protocol.md
    • practices/credential-management.md
    • prompts/codex-pr-53-rebase.md
    • tests/conftest.py
    • tests/run-verify.sh
    • tests/test_l4_verify.py
  • prompts/codex-platform-final-dispatch-2026-05-09.md: 2 missing literal paths
    • agent-souls/practices/agent-coordination-protocol.md
    • practices/agent-coordination-protocol.md
  • prompts/codex-wave-2-v2-cataloging-2026-05-09.md: 2 missing literal paths
    • Status/platform-force-push-2026-05-08-night/pre-flight.md
    • practices/credential-management.md
  • prompts/order-a1-fix-patch-schema.md: 12 missing literal paths
    • control-plane/platformctl/tests/test_fix_patch.py
    • control-plane/platformctl/tools/fix_patch.py
    • platformctl/tests/test_fix_patch.py
  • prompts/order-a2-round2-cross-review.md: 14 missing literal paths
    • control-plane/platformctl/tests/test_round2.py
    • control-plane/platformctl/tools/round2.py
    • platformctl/tests/test_fix_patch.py
    • platformctl/tests/test_round2.py
    • state/reviews/PR-N/round2.json
  • prompts/order-a3-bug-class-taxonomy.md: 14 missing literal paths
    • control-plane/platformctl/tests/test_taxonomy.py
    • control-plane/platformctl/tools/taxonomy.py
    • platformctl/tests/test_taxonomy.py
    • state/reviews/_taxonomy_alert.md
  • prompts/order-c-codex-askpass.md: 5 missing literal paths
    • control-plane/platformctl/identity_doctor.py
    • git/askpass-codex.sh
    • platformctl/tests/test_codex_askpass.py
  • prompts/phase-02-wave-3.md: 2 missing literal paths
    • .sisyphus/scripts/run_review.py
    • compose/apps/compose.yaml
  • prompts/phase-02-wave-4.md: 3 missing literal paths
    • .sisyphus/scripts/run_review.py
    • baseline/recovery/PROCEDURES.md
    • compose/apps/compose.yaml
  • prompts/tooling-canary-workflow-rewrite.md: 2 missing literal paths
    • state/reviews/PR-44-v2/decision_packet.md
  • prompts/tooling-smoke-sh-rewrite.md: 15 missing literal paths
    • compose/apps/compose.yaml
    • state/reviews/PR-40/decision_packet.json
    • state/reviews/PR-40/decision_packet.md
    • tests/setup.sh
    • tests/smoke-extra.sh
## Context While implementing issue #66 (`chore(verify): L4-Verify deterministic check suite`), Codex found existing repo violations that should not be silently fixed inside the test-suite PR. The new test suite should gate new drift, but these current violations need their own cleanup pass. ## Scope - Resolve or intentionally waive current prompt token-budget violations. - Resolve or intentionally waive missing literal relative paths referenced from `prompts/*.md`. - Keep this separate from issue #66 so the verification suite stays additive. ## Acceptance criteria - `tests/test_l4_verify.py` no longer needs xfail tracking for these current violations. - Any remaining long prompt has an explicit owner/orchestrator-approved exemption. - Any missing prompt path is either created, corrected, or explicitly classified as a non-literal/planned output reference. ## Current L4 verify violations observed by Codex ### Prompt token budget violations - `prompts/01.5-schema-v2-adhd-counters.md`: estimated 3806 tokens > 2000 - `prompts/01.5c-pm-decision-packet.md`: estimated 2021 tokens > 2000 - `prompts/codex-night-close-2026-05-09.md`: estimated 4267 tokens > 2000 - `prompts/codex-wave-2-v2-cataloging-2026-05-09.md`: estimated 3036 tokens > 2000 - `prompts/order-a1-fix-patch-schema.md`: estimated 2416 tokens > 2000 - `prompts/order-a2-round2-cross-review.md`: estimated 2850 tokens > 2000 - `prompts/order-a3-bug-class-taxonomy.md`: estimated 2905 tokens > 2000 - `prompts/order-c-codex-askpass.md`: estimated 2129 tokens > 2000 - `prompts/phase-02-wave-3.md`: estimated 2503 tokens > 2000 - `prompts/phase-02-wave-4.md`: estimated 2548 tokens > 2000 - `prompts/tooling-canary-workflow-rewrite.md`: estimated 4754 tokens > 2000 - `prompts/tooling-smoke-sh-rewrite.md`: estimated 3770 tokens > 2000 ### Missing literal prompt cross-links - `prompts/01-freeze.md`: 13 missing literal paths - `baseline/recovery/PROCEDURES.md` - `baseline/recovery/verify-baseline.sh` - `cron/jobs.json` - `inventory/domains-2026-XX-XX.yaml` - `inventory/mac-snapshot-2026-XX-XX.yaml` - `inventory/rs2000-domains-2026-XX-XX.yaml` - `inventory/rs2000-snapshot-2026-XX-XX.yaml` - `inventory/vps1000-snapshot-2026-XX-XX.yaml` - `state/L0/rs2000_inventory.json` - `state/L0/vps1000_inventory.json` - `prompts/01.5-schema-v2-adhd-counters.md`: 1 missing literal paths - `audit/openclaw-platform-2026-04-25/findings-register.md` - `prompts/01.5c-pm-decision-packet.md`: 3 missing literal paths - `state/DECISION_REQUIRED.md` - `state/L4/review-pipeline-pattern.json` - `prompts/02-catalog.md`: 7 missing literal paths - `L3/OPEN_LOOPS.md` - `platformctl/safety.py` - `platformctl/tools/validate_module.py` - `state/DECISION_REQUIRED.md` - `state/L1/wip_triage.json` - `tools/run_review.py` - `prompts/03-control.md`: 4 missing literal paths - `policies/change/core-default-v1.yaml` - `tests/test_smoke.py` - `transport/tailscale.py` - `prompts/04-observability.md`: 7 missing literal paths - `alerting/alertmanager-config.yaml` - `compose/observability/compose.yaml` - `live-platform/generator/grafana-dashboards.py` - `live-platform/generator/livesite.py` - `prompts/05-agent-execution.md`: 3 missing literal paths - `.codex/instructions.md` - `automation/renovate.json` - `policies/change/core-default-v1.yaml` - `prompts/06-prune.md`: 2 missing literal paths - `automation/renovate.json` - `policies/image-prune.yaml` - `prompts/codex-night-close-2026-05-09.md`: 22 missing literal paths - `.codex/README.md` - `.codex/examples/forgejo.md` - `.codex/instructions.md` - `.codex/render.py` - `Status/platform-force-push-2026-05-08-night/pre-flight.md` - `examples/forgejo.md` - `practices/agent-coordination-protocol.md` - `practices/credential-management.md` - `prompts/codex-pr-53-rebase.md` - `tests/conftest.py` - `tests/run-verify.sh` - `tests/test_l4_verify.py` - `prompts/codex-platform-final-dispatch-2026-05-09.md`: 2 missing literal paths - `agent-souls/practices/agent-coordination-protocol.md` - `practices/agent-coordination-protocol.md` - `prompts/codex-wave-2-v2-cataloging-2026-05-09.md`: 2 missing literal paths - `Status/platform-force-push-2026-05-08-night/pre-flight.md` - `practices/credential-management.md` - `prompts/order-a1-fix-patch-schema.md`: 12 missing literal paths - `control-plane/platformctl/tests/test_fix_patch.py` - `control-plane/platformctl/tools/fix_patch.py` - `platformctl/tests/test_fix_patch.py` - `prompts/order-a2-round2-cross-review.md`: 14 missing literal paths - `control-plane/platformctl/tests/test_round2.py` - `control-plane/platformctl/tools/round2.py` - `platformctl/tests/test_fix_patch.py` - `platformctl/tests/test_round2.py` - `state/reviews/PR-N/round2.json` - `prompts/order-a3-bug-class-taxonomy.md`: 14 missing literal paths - `control-plane/platformctl/tests/test_taxonomy.py` - `control-plane/platformctl/tools/taxonomy.py` - `platformctl/tests/test_taxonomy.py` - `state/reviews/_taxonomy_alert.md` - `prompts/order-c-codex-askpass.md`: 5 missing literal paths - `control-plane/platformctl/identity_doctor.py` - `git/askpass-codex.sh` - `platformctl/tests/test_codex_askpass.py` - `prompts/phase-02-wave-3.md`: 2 missing literal paths - `.sisyphus/scripts/run_review.py` - `compose/apps/compose.yaml` - `prompts/phase-02-wave-4.md`: 3 missing literal paths - `.sisyphus/scripts/run_review.py` - `baseline/recovery/PROCEDURES.md` - `compose/apps/compose.yaml` - `prompts/tooling-canary-workflow-rewrite.md`: 2 missing literal paths - `state/reviews/PR-44-v2/decision_packet.md` - `prompts/tooling-smoke-sh-rewrite.md`: 15 missing literal paths - `compose/apps/compose.yaml` - `state/reviews/PR-40/decision_packet.json` - `state/reviews/PR-40/decision_packet.md` - `tests/setup.sh` - `tests/smoke-extra.sh`
Author
Collaborator

Role: executor
Intent: checkpoint
Needs owner: no

Packet M is paused by its own stop condition: PR #123 / tests/test_l4_verify.py is not present on origin/main yet, so the waiver/archive cleanup would be editing a test file that does not exist on main.

I am not starting #122 until #123 merges or the cleanup prompt is amended to base on #123 explicitly.

Next: merge/retarget #123, then re-run Packet M.

**Role:** executor **Intent:** checkpoint **Needs owner:** no Packet M is paused by its own stop condition: PR #123 / `tests/test_l4_verify.py` is not present on `origin/main` yet, so the waiver/archive cleanup would be editing a test file that does not exist on main. I am not starting #122 until #123 merges or the cleanup prompt is amended to base on #123 explicitly. **Next:** merge/retarget #123, then re-run Packet M.
Sign in to join this conversation.
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#122
No description provided.