test(verify): add l4 deterministic suite #123
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pdurlej/platform!123
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "codex/issues/66-l4-verify-suite"
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 — tests/ PR stacked on PR #119; fire canary 3+3 after #119 review or retarget to main after #119 merges.
Closes #66
Stack note
This PR is based on
codex/issues/63-validate-jsonschema/ PR #119 because Packet B depends on Packet A'splatformctl validate --strict-v2work and #119 is not merged. Review this PR as the delta from #119. Before final merge tomain, retarget or rebase after #119 lands.Canary Context Pack
Product story
The platform needs a deterministic local verification suite so agents can catch schema, prompt, Python, and YAML drift before creating more follow-up work.
What changed
tests/test_l4_verify.pywith five check categories:platformctl.manifest.load_manifestpy_compileovercontrol-plane/**/*.py.forgejo/,modules/, andschema/tests/run-verify.shas a convenience wrapper.xfailbaseline in the new suite.Why it changed
Issue #66 asks for the L4 deterministic verification suite. Current repo state already has prompt budget and cross-link debt, so the suite establishes a baseline without silently fixing unrelated prompt files.
Files touched
tests/test_l4_verify.pytests/run-verify.shRelevant context
state/agent-execution-template.mdrequires explicit verification output and spec-source disclosure.Runtime evidence
N/A — tests-only change. No runtime reads/writes and no services touched.
Known constraints
main.xfailand tracked in #122. New module schema failures, new module budget failures, Python compile failures, and YAML syntax failures fail normally.Explicit out-of-scope
Requested decision
Review as stacked on #119. If #119 merges cleanly, retarget/rebase this PR to
main, then requestapprove_mergeafter canary.Merge blockers
Spec sources read
prompts/codex-platform-final-dispatch-2026-05-09.md: dispatch order, stacked Packet B allowance, and no-auto-merge constraint.prompts/codex-night-close-2026-05-09.md: Packet B scope and acceptance criteria.schema/module.schema.json: v1 schema source.schema/module.schema.v2.json: v2 schema source via PR #119 dependency.modules/n8n-worker/module.yaml: sample manifest.prompts/01-freeze.md: sample prompt for token/cross-link behavior..forgejo/workflows/canary-required.yml: workflow YAML sample.control-plane/platformctl/: platformctl Python files for compile/schema behavior.state/agent-execution-template.md: execution protocol.state/STATUS_NOW.md: status context named by Packet B.docs/forgejo-agent-operations.md: Forgejo identity and PR behavior.Stale prompt source note
Packet B's handoff named
prompts/codex-pr-53-rebase.md, but that file does not exist on current main. Issue #66's own spec sources are broader (prompts/*.md), so I did not fabricate a replacement; the suite scans currentprompts/*.mdinstead.Verification
Test plan
codex/issues/63-validate-jsonschema.tests/run-verify.sh.Orchestrator review (claude / Pan Herbata)
Verdict: MERGE_READY (merge AFTER #119)
This branch is built on top of #119 (codex/issues/63-validate-jsonschema). Merge #119 first, then this. The diff currently appears as 6 files / 355 lines but post-#119-merge only the 2 unique files (tests/test_l4_verify.py + tests/run-verify.sh, 130 lines) remain.
Codex correctly used the new suite to surface real repo violations (Issue #122 — token-budget overruns + missing cross-links). That issue is operator's call (waive vs fix); does NOT block this PR.
Identity OK.