Skip to content

feat(schema): add signal_status and source_audience_id to get_signals results - #8036

Merged
bokelley merged 13 commits into
mainfrom
conductor/33-5409-rfc-signals-protocol-build-signal-t
Oct 21, 2026
Merged

bokelley merged 13 commits into
mainfrom
conductor/33-5409-rfc-signals-protocol-build-signal-t

Conversation

@bokelley

@bokelley bokelley commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Adds optional per-signal signal_status (processing | ready | failed, absent = ready) and source_audience_id (x-entity: audience, the id from sync_audiences) to each signals[] item in get-signals-response.json.
  • signal_status (not status) avoids colliding with the response's top-level status: "failed" discriminator, and follows the local <noun>_status convention. activation_status was not reused because product-signal-targeting-option.json already uses it with a different meaning.
  • Both fields are added to the get_signals.fields projection enum; signal_status is always returned when processing/failed so a projection can't hide an unready signal behind the absent-means-ready default.
  • New docs section "Custom segments built from a seed audience" in docs/signals/tasks/get_signals.mdx (schema-valid example, readiness rules), plus a pointer in docs/signals/ecosystem.mdx.
  • minor changeset.

Brief answers implemented: (1) extend get_signals, yes; (2) no provision_signal in 3.3; (3) Submitted arm only, no new notification. No build_signal, no seed.data.

Stability: experimental, per the 3.3 coherence review (single named adopter, new MUSTs): x-status: experimental and x-added-in: 3.3.0 on both fields and the new enums/signal-status.json; a signals.features.signal_lifecycle capability flag with an experimental_features conditional (signals.signal_lifecycle); registry row in experimental-status.mdx.

Vocabulary: the "being built" state is processing (not pending) to match enums/audience-status.json; the enum description records why failed is terminal and too_small/suspended do 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:

  • Agents MUST NOT report is_live: true or return an activation_key for a non-ready signal; buyers SHOULD NOT activate or target one.
  • Re-read readiness via signal_refs (not by repeating signal_spec, which is the construct-or-reuse request).
  • Wholesale reads never trigger builds; wholesale_feed_version MUST change when a signal_status changes.
  • source_audience_id is buyer-scoped: not returned without account or under cache_scope: "public".

The capability flag signals.features.signal_lifecycle (added for the experimental declaration) tells buyers an agent may emit non-ready statuses, but pre-3.3 buyers still ignore the unknown per-signal field, so the MUST NOT on activation_key/is_live remains the mitigation. Not added: create_media_buy rejection of non-ready refs. 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.cjs
  • node tests/json-schema-validation.test.cjs --file docs/signals/tasks/get_signals.mdx (13/13)
  • npm run build:compliance -- --check clean for this change; changeset scope + changesets status pass
  • Local precommit hooks passed (no --no-verify)
  • Reviewed with ad-tech-protocol-expert and code-reviewer; findings addressed
  • No change to PARITY_COMPILE_LIMIT

🤖 Generated with Claude Code


Open workspace in Conductor

Updated 2026-10-09: the consent window was extended by a week to Fri 2026-10-16 23:59 UTC, to align with the live working-group session.

@aao-secretariat aao-secretariat Bot added the ladon/needs-human-review Ladon has escalated this PR for human review. label Oct 8, 2026

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.json and static/schemas/source/signals/get-signals-response.json; review_decision is REVIEW_REQUIRED, not APPROVED. 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) matches static/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.

bokelley commented Oct 8, 2026

Copy link
Copy Markdown
Contributor Author

CI status note: two failing checks are not caused by this change. (1) Canonical tests (2/4) (and the TypeScript Build aggregate): comply-test-controller-request.json exceeds PARITY_COMPILE_LIMIT in the merged tree; the parity-limit bump is in #8042 and this PR does not touch the limit. The same test passes locally on both this branch and origin/main before merge. (2) Build deterministic PR bundle: a clean build modifies dist/schemas/index.json (3.1.27 snapshot not reflected on main); other open PRs fail identically. I will rebase and re-run once those land on main.

🤖 Generated with Claude Code

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.json with review_decision: REVIEW_REQUIRED — human/CODEOWNERS approval required.
  • Modifies gated schema file static/schemas/source/signals/get-signals-response.json with review_decision: REVIEW_REQUIRED — human/CODEOWNERS approval required.
  • Adds gated schema file static/schemas/source/enums/signal-status.json and modifies static/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) matches static/schemas/source/**; static/schemas/source/signals/get-signals-request.json (modified) matches static/schemas/source/**; static/schemas/source/signals/get-signals-response.json (modified) matches static/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]>
@bokelley
bokelley force-pushed the conductor/33-5409-rfc-signals-protocol-build-signal-t branch from 770f966 to a269825 Compare October 19, 2026 15:54

Copy link
Copy Markdown
Contributor Author

Rebased onto main and resolved the conflicts (kept both sides in get-signals-request.json and experimental-status.mdx). CI: everything passes except Canonical tests (2/4) and the TypeScript Build aggregate, which fail on the MCP parity compile limit (comply-test-controller-request.json: 1,283,645 > 1,280,000 bytes in the merged tree). main itself currently fails the same assertion (80fe5b2: 1,280,033 > 1,280,000, Build Check run on main), so this is not specific to this PR, but this PR's added schema text contributes to the total. PARITY_COMPILE_LIMIT is not bumped here; it needs a separate decision from the coordinator. No review threads are open.

🤖 Generated with Claude Code

@bokelley
bokelley merged commit 188cde2 into main Oct 21, 2026
64 checks passed
@bokelley
bokelley deleted the conductor/33-5409-rfc-signals-protocol-build-signal-t branch October 21, 2026 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ladon/needs-human-review Ladon has escalated this PR for human review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RFC: Signals Protocol — build_signal task for on-demand signal construction

1 participant