Repository navigation
fix(compliance): extend $generate:uuid_v4 to all hardcoded idempotency_keys across compliance storyboards - #4231
Conversation
|
Issue #4344 identifies ~14 additional static One flag before folding: Note on the three immediate blockers from #4344: Generated by Claude Code |
|
Folded — commit f230a0a. 13 keys converted across 8 files:
On the UUID flag: On Not folded:
Generated by Claude Code Generated by Claude Code |
…al/schema storyboards
Converts the 16 remaining static idempotency_key literals across:
- universal/error-compliance.yaml (5)
- universal/error-compliance-signals.yaml (4)
- universal/schema-validation.yaml (1)
- specialisms/governance-spend-authority/{index,denied}.yaml (2)
- specialisms/governance-delivery-monitor/index.yaml (1)
- specialisms/signal-marketplace/scenarios/governance_denied.yaml (1)
- specialisms/creative-ad-server/index.yaml (1, includes the literal a1b2c3d4 UUID)
- protocols/governance/index.yaml (1)
After this commit, zero static idempotency_keys remain under
static/compliance/source/. Storyboard re-runs against spec-compliant sellers
will no longer collide with cached responses after seller-side deploys.
Closes #4344. Builds on #4232 (the original media-buy sweep).
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
f230a0a to
f71d5b7
Compare
Scope expanded to close #4344Force-with-lease rebased onto main ( What this commit converts (16 keys, 9 files)
Literal UUID handlingThe Verificationreturns zero results (modulo comments). Storyboard sweep is complete. Why force-pushThe original two commits (3550611 + f230a0a) were largely redundant with #4232 once it merged, and rebasing them produced cross-step alias conflicts. Resetting to main and reapplying as one commit is clean and reviewable. Closes #4344. |
…al/schema storyboards (3.0.x) (#4351) 3.0.x port of #4231. Converts the 12 static idempotency_key literals that exist on this branch: - universal/error-compliance.yaml (5) - universal/schema-validation.yaml (1) - specialisms/governance-spend-authority/{index,denied}.yaml (2) - specialisms/governance-delivery-monitor/index.yaml (1) - specialisms/signal-marketplace/scenarios/governance_denied.yaml (1) - specialisms/creative-ad-server/index.yaml (1, includes the literal a1b2c3d4 UUID) - protocols/governance/index.yaml (1) Note: error-compliance-signals.yaml does not exist on 3.0.x (3.1-era addition), so the 4 keys converted there on main are not applicable here. After this commit, zero static idempotency_keys remain under static/compliance/source/ on 3.0.x. Closes #4344 on the 3.0.x line. Forward-merge will sync back to main. Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
Closes #4230
Closes #4344
Summary
Extends the
$generate:uuid_v4#<alias>pattern to all remaining hardcodedidempotency_keyliterals across the compliance storyboard suite. Scope expanded on rebase after #4232 merged the original media-buy sweep; this PR covers the universal, specialism, and protocol files that were out of scope for that sweep.What this PR converts (16 keys, 9 files):
universal/error-compliance.yamluniversal/error-compliance-signals.yamluniversal/schema-validation.yamlspecialisms/governance-spend-authority/{index,denied}.yamlspecialisms/governance-delivery-monitor/index.yamlspecialisms/signal-marketplace/scenarios/governance_denied.yamlspecialisms/creative-ad-server/index.yamla1b2c3d4-…UUID)protocols/governance/index.yamlRoot cause: Hardcoded keys collide cross-run when a seller's
IdempotencyStoreis long-lived. The runner shiftsstart_timeforward to keep buys future-dated, so each run producessame key + different canonical body→ seller correctly replays a stale cached response. This blocks conformance scenarios whenever the seller ships a spec-version upgrade that changes its response shape.Literal UUID handling: The
a1b2c3d4-e5f6-7890-abcd-ef1234567890literal increative-ad-server/index.yamlwas inside an executedsample_requestblock under asteps:chain (not a docs-only example). Converted to$generate:uuid_v4#creative-ad-server-report-usage. No format-probe semantics in the surrounding validations.Not in scope:
measurement_terms_rejected.yamlandprovenance_enforcement.yamlstill have non-prefixed aliases (pre-existing, pre-date the naming convention). Left as follow-up to avoid scope creep.Verification:
grep -rn 'idempotency_key: "[^$]' static/compliance/source --include='*.yaml'returns zero results. Storyboard sweep complete.Non-breaking justification
Storyboard YAML files are conformance test harness configuration, not published protocol schema. No wire format, task definition, schema field, or normative requirement is changed. The
$generate:uuid_v4#aliastoken is runner-internal and never transmitted to a seller. Per playbook "Conformance harness" — additive or fix changes are--empty(no protocol bump).Build
npm run build:compliancepasses with all 12 storyboard lints green:Pre-PR review
Note: pre-PR review was conducted on the original 15-key media-buy scope (before @bokelley's scope expansion on 2026-05-10 to 16 keys across universal/specialism/protocol files). The additional keys follow the same
$generate:uuid_v4#aliaspattern; re-review can be requested if needed.--emptycorrect. Notedmeasurement_terms_rejected/provenance_enforcementpre-existing non-prefixed aliases are out of scope for this PR.sync_plansdynamic key is sound (governance agent upserts onplan_iddeterministically regardless of key),--emptychangeset classification is correct per playbook.Session: https://claude.ai/code/session_016efYC8QLXVZZSPiisZ83oM
Generated by Claude Code