Skip to content

fix(reporting): reconcile waived mismatch health projection - #7658

Merged
bokelley merged 4 commits into
mainfrom
untitled-v1
Sep 23, 2026
Merged

bokelley merged 4 commits into
mainfrom
untitled-v1

Conversation

@bokelley

@bokelley bokelley commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Closes #7657.

Summary

  • define a valid bilateral waiver as terminal for the specific caller/account mismatch it names
  • keep the immutable consumer statement auditable without treating it as seller evidence
  • retire the waived mismatch from public issue projections and restore the underlying seller health in both summary and per-period responses
  • use the existing reporting.status_changed recovery notification when the waiver changes projected health; issue_ids may be empty because the waived issue is no longer public
  • document that a later statement or materially different conflict is evaluated independently

This reconciles the RC reporting contract's previously impossible state: a due obligation with a waived-only current mismatch could not be complete, waiting, delayed, or action_required while satisfying all schema rules.

The change is patch-level and does not alter wire shapes.

Validation

  • node --test tests/reporting-status-contract.test.cjs (32/32)
  • npm run test:schemas (302 tests, 16 suites)
  • npm run test:json-schema (282 schema-tagged examples)
  • npm run test:schema-utf8
  • npm run build:schemas (no generated drift)
  • npm run typecheck
  • changeset protocol-scope and docs navigation/link checks
  • full pre-commit suite (including full sequential server unit suite)

Open workspace in Conductor

@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 modified without required review approval.

This PR touches published protocol source under static/schemas/source/** (four schema files), which are under a hard, deterministic approval gate (gated_paths: true). review_decision is REVIEW_REQUIRED, not APPROVED, so the gate is not satisfied and per decision-table row 2 the outcome must be escalate.

The reviewer reported a clean pass: no Critical/High/Medium findings. Schema↔docs coherence verified across all seven surfaces, dist artifacts correctly untouched, changeset (patch) in scope with no wire-shape change on x-status:experimental schemas, anti-unilateral safety property preserved, no contradicted decision record. Absent the gate this would approve — but the gate stands until a human/CODEOWNERS review lands.

Escalation reasons

  • Modifies gated schema source files requiring human/CODEOWNERS approval (review_decision is REVIEW_REQUIRED, not APPROVED):
    • static/schemas/source/core/reporting-obligation.json
    • static/schemas/source/core/reporting-status-changed-webhook.json
    • static/schemas/source/core/reporting-status-issue.json
    • static/schemas/source/media-buy/get-reporting-status-response.json

Why human review

  • Modifies gated path static/schemas/source/core/reporting-obligation.json — human/CODEOWNERS review required (review_decision is REVIEW_REQUIRED, not APPROVED)
  • Modifies gated path static/schemas/source/core/reporting-status-changed-webhook.json — human/CODEOWNERS review required
  • Modifies gated path static/schemas/source/core/reporting-status-issue.json — human/CODEOWNERS review required
  • Modifies gated path static/schemas/source/media-buy/get-reporting-status-response.json — human/CODEOWNERS review required
  • This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/core/reporting-obligation.json (modified) matches static/schemas/source/**; static/schemas/source/core/reporting-status-changed-webhook.json (modified) matches static/schemas/source/**; static/schemas/source/core/reporting-status-issue.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/get-reporting-status-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.

@aao-secretariat aao-secretariat Bot added the ladon/needs-human-review Ladon has escalated this PR for human review. label Sep 23, 2026
Comment thread docs/media-buy/specification.mdx Resolved

@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 review.

This PR modifies published protocol source under static/schemas/source/**, which is a hard, deterministic approval gate (gated_paths: true). The current review_decision is REVIEW_REQUIRED, not APPROVED, so the gate is not satisfied and the outcome must be escalate (decision table row 2).

Escalation reasons

  • Modifies gated schema files requiring human/CODEOWNERS review:
    • static/schemas/source/core/reporting-obligation.json
    • static/schemas/source/core/reporting-status-changed-webhook.json
    • static/schemas/source/core/reporting-status-issue.json
    • static/schemas/source/media-buy/get-reporting-status-response.json
    • review_decision: REVIEW_REQUIRED — human/CODEOWNERS approval needed.

Medium findings (for the human reviewer)
The reviewer noted three Medium concerns: requote-required.json doc links were flipped from /schemas/latest/ to /schemas/v3/, which 404 because v3 resolves to 3.1.23 and the 3.2-only schema is absent there. These are non-blocking on their own but worth fixing.

No critical/high findings were reported; the core waiver-reconciliation change is coherent (schema↔docs↔tests consistent, protocol-scoped patch changeset present, no wire-shape or dist changes). The escalation is driven purely by the unsatisfied path-based approval gate.

Why human review

  • Modifies gated path static/schemas/source/core/reporting-obligation.json with review_decision REVIEW_REQUIRED — human/CODEOWNERS approval required
  • Modifies gated path static/schemas/source/core/reporting-status-changed-webhook.json with review_decision REVIEW_REQUIRED
  • Modifies gated path static/schemas/source/core/reporting-status-issue.json with review_decision REVIEW_REQUIRED
  • Modifies gated path static/schemas/source/media-buy/get-reporting-status-response.json with review_decision REVIEW_REQUIRED
  • This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/core/reporting-obligation.json (modified) matches static/schemas/source/**; static/schemas/source/core/reporting-status-changed-webhook.json (modified) matches static/schemas/source/**; static/schemas/source/core/reporting-status-issue.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/get-reporting-status-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.

@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 modifies multiple files under static/schemas/source/** and .github/workflows/**, which are under a hard, non-overridable approval gate (gated_paths: true). The current GitHub review decision is REVIEW_REQUIRED, not APPROVED, so the gate is not satisfied (decision table row 2).

Escalation reasons

  • Modifies gated path static/schemas/source/core/reporting-obligation.json — human/CODEOWNERS approval required.
  • Modifies gated path static/schemas/source/core/reporting-status-changed-webhook.json — human/CODEOWNERS approval required.
  • Modifies gated path static/schemas/source/core/reporting-status-issue.json — human/CODEOWNERS approval required.
  • Modifies gated path static/schemas/source/media-buy/get-reporting-status-response.json — human/CODEOWNERS approval required.
  • Modifies gated path .github/workflows/check-schema-links.yml — human/CODEOWNERS approval required.

The reviewer found no Critical/High/Medium findings and the delta looks clean (schema-link resolution now pins the stable major, docs migrated absent schema links to /schemas/latest/). But a clean diff cannot lift a deterministic path-based gate — only a recorded APPROVED review can. Prior decision was also escalate for the same reason; it remains until a human approval lands.

Why human review

  • Modifies gated path static/schemas/source/core/reporting-obligation.json with review_decision REVIEW_REQUIRED — human/CODEOWNERS approval required
  • Modifies gated path static/schemas/source/core/reporting-status-changed-webhook.json with review_decision REVIEW_REQUIRED
  • Modifies gated path static/schemas/source/core/reporting-status-issue.json with review_decision REVIEW_REQUIRED
  • Modifies gated path static/schemas/source/media-buy/get-reporting-status-response.json with review_decision REVIEW_REQUIRED
  • Modifies gated path .github/workflows/check-schema-links.yml with review_decision REVIEW_REQUIRED
  • This PR touches a path under a hard, non-overridable approval gate (.github/workflows/check-schema-links.yml (modified) matches .github/workflows/**; static/schemas/source/core/reporting-obligation.json (modified) matches static/schemas/source/**; static/schemas/source/core/reporting-status-changed-webhook.json (modified) matches static/schemas/source/**; static/schemas/source/core/reporting-status-issue.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/get-reporting-status-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.

@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-path approval gate not yet satisfied.

This PR touches files under a hard, non-overridable approval gate (static/schemas/source/** and .github/workflows/**) while review_decision is REVIEW_REQUIRED, not APPROVED. Per decision rule row 2, Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded.

Findings: none. The reviewer's clean delta pass found no Critical/High/Medium issues — the only changes since the prior review are an editorial rewording of the consumer_mismatch_lifecycle x-adcp-validation prose in reporting-status-issue.json plus three test regexes re-anchored to it. The tightened text preserves every normative clause with no wire-shape, enum, field, or required[] change. Changeset present (patch, experimental surface) and consistent. Schema↔docs coherence holds.

Escalation reasons

  • static/schemas/source/core/reporting-obligation.json — gated path, review_decision is REVIEW_REQUIRED (needs human/CODEOWNERS approval)
  • static/schemas/source/core/reporting-status-changed-webhook.json — gated path, needs approval
  • static/schemas/source/core/reporting-status-issue.json — gated path, needs approval
  • static/schemas/source/media-buy/get-reporting-status-response.json — gated path, needs approval
  • .github/workflows/check-schema-links.yml — gated path, needs approval

Once a human/CODEOWNERS approval sets review_decision to APPROVED, this clean diff can fall through to approve.

Why human review

  • Modifies gated path static/schemas/source/core/reporting-obligation.json with review_decision REVIEW_REQUIRED — human/CODEOWNERS approval required
  • Modifies gated path static/schemas/source/core/reporting-status-changed-webhook.json with review_decision REVIEW_REQUIRED
  • Modifies gated path static/schemas/source/core/reporting-status-issue.json with review_decision REVIEW_REQUIRED
  • Modifies gated path static/schemas/source/media-buy/get-reporting-status-response.json with review_decision REVIEW_REQUIRED
  • Modifies gated path .github/workflows/check-schema-links.yml with review_decision REVIEW_REQUIRED
  • This PR touches a path under a hard, non-overridable approval gate (.github/workflows/check-schema-links.yml (modified) matches .github/workflows/**; static/schemas/source/core/reporting-obligation.json (modified) matches static/schemas/source/**; static/schemas/source/core/reporting-status-changed-webhook.json (modified) matches static/schemas/source/**; static/schemas/source/core/reporting-status-issue.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/get-reporting-status-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
bokelley enabled auto-merge (squash) September 23, 2026 11:41
@bokelley
bokelley disabled auto-merge September 23, 2026 13:01
@bokelley
bokelley merged commit b01c18b into main Sep 23, 2026
61 checks passed
@bokelley
bokelley deleted the untitled-v1 branch September 23, 2026 13:01
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.

fix(reporting): reconcile waived mismatch health with issue visibility

1 participant