Repository navigation
Conversation
…played assertion Add `field_value_or_absent` to the storyboard-schema.yaml check enum with full semantics documentation. Restore the fresh-path `replayed` assertion in `universal/idempotency.yaml::create_media_buy_initial` using the new matcher so spec-correct agents that omit `replayed` are no longer penalised, while agents that set `replayed: true` on fresh execution are caught. Closes #3030, Closes #3031 NOTE: Requires @adcp/client >= 5.16.0 (adcp-client#876). Reviewer must bump package.json pin from 5.15.0 before merging. https://claude.ai/code/session_01FquZ6MmTXxv9cMCB9r8nbi
… prose - Add field_value_or_absent assertion to create_media_buy_fresh_key step for symmetric fresh-path coverage (per pre-PR code review) - Add field_value_or_absent to hasPositiveAssertion allowlist in lint-storyboard-contradictions.cjs so future uses are classified correctly - Clarify field_value_or_absent semantics prose in storyboard-schema.yaml - Remove process note from changeset (belongs in PR body only) https://claude.ai/code/session_01FquZ6MmTXxv9cMCB9r8nbi
…yaml check vocab Runner implementors reading runner-output-contract.yaml must know how to populate expected/actual for field_value_or_absent failures. Also sync the check enum comment to include refs_resolve which was already in storyboard-schema.yaml but missing from the contract vocab list. https://claude.ai/code/session_01FquZ6MmTXxv9cMCB9r8nbi
3 tasks
Contributor
Author
|
Closing as superseded. Both referenced issues are already resolved on main:
The two items this PR still contributed beyond main — adding Removing the milestone since the work is now tracked in #3074. |
bokelley
added a commit
that referenced
this pull request
Apr 24, 2026
…layed assertion (#3074) Follow-up to #3032 (documented the check) and #3034 (restored the initial-step replayed assertion). Two small gaps remained, surfaced while triaging superseded PR #3037: 1. scripts/lint-storyboard-contradictions.cjs — hasPositiveAssertion listed the older check kinds but not field_value_or_absent. Any storyboard using it as the only positive assertion was misclassified as "unspecified." Now classified correctly as "success." 2. static/compliance/source/universal/idempotency.yaml — the create_media_buy_fresh_key step is a non-replay call, so the same replayed tolerance #3034 restored on create_media_buy_initial applies: replayed MAY be omitted, but if present MUST NOT be true. Added the symmetric field_value_or_absent [false] assertion so fresh-key coverage matches initial-call coverage. Both additions are purely additive. Agents that omit replayed on fresh execution pass (spec-correct). Only agents setting replayed: true on a fresh call fail — already a spec violation per PR #3013. Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #3030
Closes #3031
Summary
@adcp/client5.16.0 (adcp-client#876) shipped a new storyboard check matcherfield_value_or_absent— passes when the field is absent OR present with an allowed value; fails only when present with a disallowed value. This is the right tool for envelope-optional fields likereplayedwhere the spec permits omission but prohibitstrueon fresh execution.This PR does three things:
field_value_or_absentinstatic/compliance/source/universal/storyboard-schema.yaml(check enum + semantics prose) andrunner-output-contract.yaml(expected/actual field contract for runner implementors). Closes Document field_value_or_absent in storyboard-schema.yaml check enum #3030.replayedassertion inuniversal/idempotency.yaml::create_media_buy_initialusing the new matcher. The assertion was dropped in feat(training-agent): flip default to framework dispatch + envelope-spec fixes #3013 becausefield_valuefires when the field is absent, penalising spec-correct agents that omitreplayedon fresh execution.field_value_or_absentcloses the gap. Closes Re-add replayed assertion on fresh create_media_buy using field_value_or_absent #3031.create_media_buy_fresh_key(the other fresh-execution step) for consistent coverage.field_value_or_absenttolint-storyboard-contradictions.cjshasPositiveAssertionallowlist so steps using this check are correctly classified as success-path assertions by the linter.Non-breaking justification: adds new optional assertions to two storyboard steps and a new enum value to documentation. Agents that omit
replayedon fresh execution (spec-correct) pass. Agents that setreplayed: falseexplicitly pass. Only agents that setreplayed: trueon a fresh (non-replay) call fail — that is already a spec violation per PR #3013.package.jsoncurrently pins@adcp/clientat5.15.0. Thefield_value_or_absentcheck ships in5.16.0(adcp-client#876). Runners that evaluate storyboards via the SDK will hit anunknown_checkerror on the two new assertions until the pin is bumped. A reviewer must bumppackage.jsonto@adcp/client >= 5.16.0before merging. (The agent cannot editpackage.jsonper repo policy.)Pre-PR review
create_media_buy_fresh_key, addedfield_value_or_absenttohasPositiveAssertionin contradiction linter, clarifiedvalue/allowed_valuesdoc prose.runner-output-contract.yamlcheck vocab and expected/actual entries were added; SDK pin noted as human gate.field_value_or_absentwithallowed_values: [false]is the correct encoding of "MAY be omitted but MUST NOT betrue"; non-breaking per spec; SDK pin flagged for human action.Session: https://claude.ai/code/session_01FquZ6MmTXxv9cMCB9r8nbi
Generated by Claude Code