Repository navigation
feat(schema): add signal_status and source_audience_id to get_signals results - #8036
Conversation
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated schema paths require human/CODEOWNERS approval.
This is a clean additive change: adds optional signal_status (pending|ready|failed, absent=ready) and source_audience_id to each get_signals result, plus both as selectable fields enum values. The reviewer verified schema↔docs coherence across the changeset, response schema, request fields, and docs section/example; confirmed minor is the correct changeset class for additive optional fields; found no dist/** artifact touched and no new/undiscriminated oneOf. No Medium-or-worse findings.
However, this PR modifies static/schemas/source/signals/get-signals-request.json and get-signals-response.json, which are under a hard, path-based approval gate (gated_paths: true). The required review status is REVIEW_REQUIRED, not APPROVED, so the gate is not satisfied (decision table row 2). The outcome cannot be approve despite the clean diff — human/CODEOWNERS review of the gated schema files is required before merge.
Escalation reasons
- Modifies gated schema files
static/schemas/source/signals/get-signals-request.jsonandstatic/schemas/source/signals/get-signals-response.json;review_decisionisREVIEW_REQUIRED, notAPPROVED. Human/CODEOWNERS approval required.
Why human review
- Modifies gated schema file static/schemas/source/signals/get-signals-request.json (gated_paths) with review_decision REVIEW_REQUIRED — human/CODEOWNERS approval required
- Modifies gated schema file static/schemas/source/signals/get-signals-response.json (gated_paths) with review_decision REVIEW_REQUIRED — human/CODEOWNERS approval required
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/signals/get-signals-request.json (modified) matches
static/schemas/source/**; static/schemas/source/signals/get-signals-response.json (modified) matchesstatic/schemas/source/**) and the current GitHub review decision is 'REVIEW_REQUIRED', not APPROVED. This is a hard gate enforced in code — Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.
|
CI status note: two failing checks are not caused by this change. (1) 🤖 Generated with Claude Code |
175fcc0 to
770f966
Compare
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated schema paths require human/CODEOWNERS approval.
This PR adds an additive, experimental signals.signal_lifecycle surface (new signal-status.json enum, signal_status + source_audience_id fields on get-signals request/response, and a signal_lifecycle capability flag). The reviewer pass is clean: schema↔docs coherence verified across all five docs, correct minor changeset on a protocol-surface change, no oneOf regression (allOf-only), valid x-entity, and fail-closed scoping rules. No Critical/High/Medium findings.
However, this PR modifies files under static/schemas/source/**, which are under a hard, deterministic approval gate (gated_paths: true), and the current review_decision is REVIEW_REQUIRED, not APPROVED. Per decision-table row 2, this must escalate until a human/CODEOWNERS approval is recorded — regardless of how clean the diff is. The prior escalate was for the same reason and remains unresolved.
Escalation reasons
- Modifies gated schema file
static/schemas/source/signals/get-signals-request.jsonwithreview_decision: REVIEW_REQUIRED— human/CODEOWNERS approval required. - Modifies gated schema file
static/schemas/source/signals/get-signals-response.jsonwithreview_decision: REVIEW_REQUIRED— human/CODEOWNERS approval required. - Adds gated schema file
static/schemas/source/enums/signal-status.jsonand modifiesstatic/schemas/source/protocol/get-adcp-capabilities-response.json— same gate applies.
The gate lifts automatically once review_decision becomes APPROVED; the diff itself raised no blocking findings.
Why human review
- Modifies gated schema file static/schemas/source/signals/get-signals-request.json (gated_paths) with review_decision REVIEW_REQUIRED — human/CODEOWNERS approval required
- Modifies gated schema file static/schemas/source/signals/get-signals-response.json (gated_paths) with review_decision REVIEW_REQUIRED — human/CODEOWNERS approval required
- Adds/modifies gated schema files static/schemas/source/enums/signal-status.json and static/schemas/source/protocol/get-adcp-capabilities-response.json under hard approval gate; review_decision is REVIEW_REQUIRED, not APPROVED
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/enums/signal-status.json (added) matches
static/schemas/source/**; static/schemas/source/protocol/get-adcp-capabilities-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/signals/get-signals-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/signals/get-signals-response.json (modified) matchesstatic/schemas/source/**) and the current GitHub review decision is 'REVIEW_REQUIRED', not APPROVED. This is a hard gate enforced in code — Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.
…o get_signals results Closes #5409 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
770f966 to
a269825
Compare
|
Rebased onto main and resolved the conflicts (kept both sides in 🤖 Generated with Claude Code |
…-signals-protocol-build-signal-t
…-signals-protocol-build-signal-t
…-signals-protocol-build-signal-t
…-signals-protocol-build-signal-t
…-signals-protocol-build-signal-t
…-signals-protocol-build-signal-t
…-signals-protocol-build-signal-t
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…-signals-protocol-build-signal-t
Closes #5409
Merge timing: this implements the WG decision brief's recommendations exactly. The WG has until Fri 2026-10-16 23:59 UTC to object; this PR merges after that deadline unless objections land. Absent objections, it is the consent outcome.
Summary
signal_status(processing | ready | failed, absent =ready) andsource_audience_id(x-entity: audience, the id fromsync_audiences) to eachsignals[]item inget-signals-response.json.signal_status(notstatus) avoids colliding with the response's top-levelstatus: "failed"discriminator, and follows the local<noun>_statusconvention.activation_statuswas not reused becauseproduct-signal-targeting-option.jsonalready uses it with a different meaning.get_signals.fieldsprojection enum;signal_statusis always returned whenprocessing/failedso a projection can't hide an unready signal behind the absent-means-ready default.docs/signals/tasks/get_signals.mdx(schema-valid example, readiness rules), plus a pointer indocs/signals/ecosystem.mdx.minorchangeset.Brief answers implemented: (1) extend
get_signals, yes; (2) noprovision_signalin 3.3; (3) Submitted arm only, no new notification. Nobuild_signal, noseed.data.Stability: experimental, per the 3.3 coherence review (single named adopter, new MUSTs):
x-status: experimentalandx-added-in: 3.3.0on both fields and the newenums/signal-status.json; asignals.features.signal_lifecyclecapability flag with anexperimental_featuresconditional (signals.signal_lifecycle); registry row inexperimental-status.mdx.Vocabulary: the "being built" state is
processing(notpending) to matchenums/audience-status.json; the enum description records whyfailedis terminal andtoo_small/suspendeddo not apply.Reviewer-driven normative additions (beyond the brief's literal shape — please check)
Protocol review flagged that the bare fields leave unready signals activatable, so the schema description and docs also state:
is_live: trueor return anactivation_keyfor a non-readysignal; buyers SHOULD NOT activate or target one.signal_refs(not by repeatingsignal_spec, which is the construct-or-reuse request).wholesale_feed_versionMUST change when asignal_statuschanges.source_audience_idis buyer-scoped: not returned withoutaccountor undercache_scope: "public".The capability flag
signals.features.signal_lifecycle(added for the experimental declaration) tells buyers an agent may emit non-readystatuses, but pre-3.3 buyers still ignore the unknown per-signal field, so the MUST NOT onactivation_key/is_liveremains the mitigation. Not added:create_media_buyrejection of non-readyrefs. Worth a WG look.Testing
node tests/schema-validation.test.cjs(35/35),tests/lint-schema-enum-drift.test.cjs,tests/example-validation-simple.test.cjsnode tests/json-schema-validation.test.cjs --file docs/signals/tasks/get_signals.mdx(13/13)npm run build:compliance -- --checkclean for this change; changeset scope +changesets statuspass--no-verify)PARITY_COMPILE_LIMIT🤖 Generated with Claude Code
Open workspace in Conductor