Repository navigation
Conversation
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated paths touched without required approval.
This PR modifies/adds numerous files under static/schemas/source/**, which is under a hard, deterministic approval gate (gated_paths: true). The current review_decision is REVIEW_REQUIRED, not APPROVED, so decision-table row 2 fires: the outcome must be escalate (never approve).
The reviewer found no Critical/High/Medium findings — the additive Reliable Reporting surface (new optional fields, four new experimental schemas, new enum members over media_buy.reporting_delivery) carries a correct minor changeset, schema↔docs coherence checks out, the oneOf→anyOf on sync-reporting-receipts-response is a disjoint relaxation rather than a new undiscriminated oneOf, and no released dist/** artifact is touched. On the merits this is a clean Normative (non-breaking) change.
However, the gate is purely mechanical and path-based: human/CODEOWNERS review of the schema-source changes is required before merge. Once review_decision becomes APPROVED, this PR would fall through to a normal approve.
Escalation reasons:
- Touches gated protocol-source files under
static/schemas/source/**(e.g.reporting-adjustment.json,reporting-obligation.json,reporting-report-definition.json,get-adcp-capabilities-response.json, and 18 others) whilereview_decisionisREVIEW_REQUIRED— human/CODEOWNERS approval required.
Why human review
- Gated paths: PR modifies/adds files under static/schemas/source/** (e.g. reporting-adjustment.json, reporting-obligation.json, reporting-report-definition.json, get-adcp-capabilities-response.json) but review_decision is REVIEW_REQUIRED, not APPROVED — human/CODEOWNERS approval required before merge.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/compliance/comply-test-controller-request.json (modified) matches
static/schemas/source/**; static/schemas/source/compliance/comply-test-controller-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/notification-config.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-adjustment-receipt.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-adjustment.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-capabilities.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-config.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-ledger-changed-webhook.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-obligation.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-reliability-statistics.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-report-definition.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-revision.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-schedule-offering.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-schedule.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/x-entity-types.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/notification-type.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/reporting-finality.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/get-reporting-status-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/get-reporting-status-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/sync-reporting-receipts-request.json (modified) matchesstatic/schemas/source/**; static/schemas/
…(truncated)…
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated schema paths require human/CODEOWNERS approval.
This PR modifies and adds numerous files under static/schemas/source/**, which are under a hard, deterministic approval gate (gated_paths: true). The current review_decision is REVIEW_REQUIRED, not APPROVED, so decision-table row 2 fires: the outcome must be escalate regardless of how clean the diff is.
The reviewer's delta pass found no critical/high/medium findings — the change is characterized as a pure SDK-naming refactor extracting byte-identical inline subschemas into named definitions referenced via $ref, with a pinning test. No wire-shape change, no docs drift, no enum/required change, no oneOf regression, no immutable-artifact edit. That is a net-clean result and consistent with the prior escalate decision, which was driven solely by the unsatisfied gate rather than any actionable finding.
Escalation reasons
- Gated paths: PR touches
static/schemas/source/**(e.g. reporting-adjustment.json, reporting-obligation.json, reporting-report-definition.json, get-adcp-capabilities-response.json) butreview_decisionisREVIEW_REQUIRED, notAPPROVED. Human/CODEOWNERS approval is required before merge — Ladon cannot auto-approve gated schema-source files until that approval is recorded.
Once a real APPROVED review is recorded, this PR (with no blocking or medium findings) would fall through to an approve on a subsequent run.
Why human review
- Gated paths: PR modifies/adds files under static/schemas/source/** (e.g. reporting-adjustment.json, reporting-obligation.json, reporting-report-definition.json, get-adcp-capabilities-response.json) but review_decision is REVIEW_REQUIRED, not APPROVED — human/CODEOWNERS approval required before merge.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/compliance/comply-test-controller-request.json (modified) matches
static/schemas/source/**; static/schemas/source/compliance/comply-test-controller-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/notification-config.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-adjustment-receipt.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-adjustment.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-capabilities.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-config.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-ledger-changed-webhook.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-obligation.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-reliability-statistics.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-report-definition.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-revision.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-schedule-offering.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-schedule.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/x-entity-types.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/notification-type.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/reporting-finality.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/get-reporting-status-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/get-reporting-status-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/sync-reporting-receipts-request.json (modified)
…(truncated)…
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated-path hard approval gate not yet satisfied.
This PR modifies and adds files under static/schemas/source/**, which is a hard, non-overridable approval gate (gated_paths: true). The current review_decision is REVIEW_REQUIRED, not APPROVED. Per decision-table row 2, the outcome must be escalate until a human/CODEOWNERS approval is recorded — no auto-approve is permitted regardless of how clean the diff is.
The reviewer's delta pass is clean: no critical, high, or medium findings. The four changes since the prior review (sync_reporting_receipts added to the sales role gated behind REPORTING_STATUS_ADCP_VERSION, drift test updated, reporting-delivery-capabilities.json title rename with contract test locking it) are self-consistent. Schema↔docs coherence, changeset scope, and oneOf discriminator checks surfaced nothing actionable. This is a net-clean iteration — the prior escalate persists purely as the arbiter gate, not because of any reviewer finding.
Escalation reasons:
- PR modifies/adds protocol schema files under
static/schemas/source/**(e.g. reporting-adjustment.json, reporting-obligation.json, reporting-report-definition.json, get-adcp-capabilities-response.json) butreview_decisionisREVIEW_REQUIRED— human/CODEOWNERS approval required before merge.
Once a CODEOWNERS/human approval flips review_decision to APPROVED, this clean diff can fall through to approve.
Why human review
- Gated paths: PR modifies/adds files under static/schemas/source/** (e.g. reporting-adjustment.json, reporting-obligation.json, reporting-report-definition.json, get-adcp-capabilities-response.json) but review_decision is REVIEW_REQUIRED, not APPROVED — human/CODEOWNERS approval required before merge.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/compliance/comply-test-controller-request.json (modified) matches
static/schemas/source/**; static/schemas/source/compliance/comply-test-controller-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/notification-config.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-adjustment-receipt.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-adjustment.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-capabilities.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-config.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-ledger-changed-webhook.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-obligation.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-reliability-statistics.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-report-definition.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-revision.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-schedule-offering.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-schedule.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/x-entity-types.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/notification-type.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/reporting-finality.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/get-reporting-status-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/get-reporting-status-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/sync-reporting-receipts-request.json (modified) matches `static/schemas/source
…(truncated)…
|
Could you please address these three points before merging?
I reproduced these on the current PR code. The relevant tests pass despite these issues, so please add tests for these cases too. |
…ing, and order-stable fingerprinting Bug 1A: derive periodMs/slaMs from schedule config in recordsFor to generate correct P1D obligations and expected_at for daily offerings instead of using hardcoded HOUR_MS for both step and SLA deadline. Bug 1B: gate health:'complete' on adjustment receipts also being accepted when reconciliation_mode is 'consumer_receipt'; revision receipts alone must not flip the obligation to complete for reconciled billing. Bug 2: forward changes_after through the legacy get_reporting_status handler by casting req through unknown so runtime fields absent from the old SDK GetReportingStatusRequest type are preserved on the call to getReportingStatusForAccountDurably. Bug 3: sort delivery_config_ids, media_buy_ids, feed_purposes, and finality arrays before JSON.stringify in the checkpoint fingerprint so the same filter set in any element order produces the same token; add canonicalJsonObject for order-stable immutableConfig comparison in validateReportingConfigurationReplacement. Tests added for all four sub-cases in reporting-reliability.test.ts. Co-Authored-By: Claude Sonnet 4.6 <[email protected]> Claude-Session: https://claude.ai/code/session_01UQjXe8R6Qy3fuNj5iQthhM
…lied Complete the fix commit begun by c55647f: the previous push via the MCP tool truncated reporting-reliability.ts to its first ~60 lines. This commit restores the full 2400-line file with all changes intact, and adds the two remaining changed files. Bug 1A: periodMs/slaMs derived from schedule in recordsFor so P1D configs produce one daily obligation instead of 24 hourly ones; expected_at uses delivery_sla duration, not a hardcoded hour. Bug 1B: health:'complete' gated on adjustment receipts also being accepted when reconciliation_mode is 'consumer_receipt'. Bug 2: legacy getReportingStatus handler casts req through unknown so changes_after survives the TypeScript boundary to getReportingStatusForAccountDurably. Bug 3: delivery_config_ids, media_buy_ids, feed_purposes, and finality sorted before JSON.stringify in checkpoint fingerprint; canonicalJsonObject added for order-stable immutableConfig comparison. New file: server/src/training-agent/reporting-reliability.test.ts with four regression tests, one per sub-bug. Co-Authored-By: Claude Sonnet 4.6 <[email protected]> Claude-Session: https://claude.ai/code/session_01UQjXe8R6Qy3fuNj5iQthhM
|
Thanks for the thorough reproduction steps — all three issues are now addressed in follow-up commits on this branch ( 1. Daily scheduling + billing receipt gate Two sub-bugs here:
2. The standard client handler was casting 3. Order-stable fingerprinting The checkpoint scope was feeding Tests Added Generated by Claude Code |
There was a problem hiding this comment.
Ladon verdict: Request changes
Request changes — 1 blocking finding.
Blocking findings
- server/src/training-agent/reporting-reliability.ts — Head commit c55647f deletes 2361 lines (git diff main..HEAD is +31/-1588) with zero additions, removing implementation that shipped on main:
getReportingStatusForAccount,syncReliableReportingReceiptsForAccount,withDurableReportingLedger, every*Probefunction, and theTRAINING_REPORTING_*_OFFERING/*_BYTESconstants. Six files (index.ts, comply-test-controller.ts, task-handlers.ts, account-handlers.ts, v6-sales-platform.ts, tenant-smoke.test.ts) still import these now-nonexistent exports, so the training-agent module does not compile. This is a reproducible build/runtime break on a load-bearing path — High severity.
The reviewer's structured findings list is empty, but the narrative summary describes a concrete, reproducible compile failure (dangling imports to deleted exports) — a High-severity condition under the severity model. Row 1 of the decision table fires: any critical/high finding → request-changes.
Note: this PR also touches many gated static/schemas/source/** files with review_decision: REVIEW_REQUIRED, so it could not auto-approve regardless; human/CODEOWNERS approval is still required. But the compile break is the actionable blocker here — fix the dangling imports (either restore the deleted exports or update the six importing files) before re-review.
Blocking findings
- server/src/training-agent/reporting-reliability.ts — 2361 lines deleted removing exports (getReportingStatusForAccount, syncReliableReportingReceiptsForAccount, withDurableReportingLedger, Probe functions, TRAINING_REPORTING_ constants) still imported by 6 files; training-agent module does not compile (reproducible build break, high)
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated-paths hard approval gate not yet satisfied.
This PR modifies/adds files under static/schemas/source/** (e.g. reporting-adjustment.json, reporting-obligation.json, reporting-report-definition.json, get-adcp-capabilities-response.json, plus several new reporting schemas), which are under a hard, non-overridable approval gate. gated_paths: true and review_decision: REVIEW_REQUIRED (not APPROVED), so decision-table row 2 fires: outcome must be escalate until a human/CODEOWNERS approval is recorded.
Reviewer findings: Clean delta pass — the current-run findings touch only server/src/training-agent/ (in-memory Reliable Reporting simulation, regression suite, a type-only cast). No Critical/High/Medium findings. The daily-period start misalignment and the adjustmentReceipts filter were both verified as non-throwing / Low (training-sim only).
Because there are no blocking findings, this is not request-changes. But the schema-source gate is deterministic and mechanical, and it lifts only when review_decision becomes APPROVED. This is consistent with the prior escalate decision on this PR; no new blocking evidence has appeared, but the gate remains unsatisfied.
Escalation reason: Human/CODEOWNERS approval required for changes under static/schemas/source/**.
Why human review
- Gated paths: PR modifies/adds files under static/schemas/source/** (e.g. reporting-adjustment.json, reporting-obligation.json, reporting-report-definition.json, get-adcp-capabilities-response.json, and several new reporting schemas) but review_decision is REVIEW_REQUIRED, not APPROVED — human/CODEOWNERS approval required before merge.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/compliance/comply-test-controller-request.json (modified) matches
static/schemas/source/**; static/schemas/source/compliance/comply-test-controller-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/notification-config.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-adjustment-receipt.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-adjustment.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-capabilities.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-config.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-ledger-changed-webhook.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-obligation.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-reliability-statistics.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-report-definition.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-revision.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-schedule-offering.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-schedule.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/x-entity-types.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/notification-type.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/reporting-finality.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/get-reporting-status-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/get-reporting-status-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/sync-reporting-receipts-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/sync-reporting-receipts-response.json (
…(truncated)…
|
Thanks for the updates. Resubmitting unchanged settings with the fields in a different order now works. Could you please take another look at these two points?
Thanks for looking into these. |
…ion from config, expose changes_after and adjustment_receipts in inputSchema Three bugs reported in review by @garvitkaushik-123: 1. Daily-report periods started at 23:00 UTC instead of midnight. Root cause: `recordsFor` used `floorHour` (always floors to the hour) for both `firstStart` and `finalEnd` even when `periodMs` is 24 h. For a daily config, `activatedMs + 24h - 1ms` lands at T23:59:59.999, so `floorHour` truncated to T23:00:00. Fix: introduce a period-aware `floorPeriod = ms => Math.floor(ms / periodMs) * periodMs` and use it instead of `floorHour` for both boundary calculations. 2. Obligations ignored the saved `required_finality` and `reconciliation_mode`, always emitting `required_finality: 'snapshot'`, `reconciliation_mode: 'delivery_only'`, and `reconciliation_status: 'not_required'`. Fix: read `stored.config.required_finality` and `stored.config.reconciliation_mode`; derive `reconciliation_status` from the mode. 3. `changes_after` (on `get_reporting_status`) and `adjustment_receipts` (on `sync_reporting_receipts`) were stripped by the MCP client before sending because the tools were registered under `legacyHandlers.mediaBuy`, which serves the SDK's bundled inputSchema (predating these fields). Fix: move both tools to `customTools` via `customToolFor` with explicit Zod schemas that advertise every field; add adapter functions (`reportingStatusForCustomTool`, `syncReportingReceiptsForCustomTool`) in `v6-sales-platform.ts` that bridge the SDK-style `(req, ctx)` interface to the `(args: ToolArgs, ctx: TrainingContext)` shape and catch `AdcpError` so the `customToolFor` wrapper sees a plain error-payload object rather than a thrown exception. Co-Authored-By: Claude Sonnet 4.6 <[email protected]> Claude-Session: https://claude.ai/code/session_01XZKKJGo5DpdFi6vBWCszup
|
Thanks for the detailed follow-up — all three issues are fixed in commit Bug 1a — daily periods starting at 23:00 UTC Root cause: Fix: a period-aware Bug 1b — ignored saved The obligation object in Bug 2 — Root cause: both tools were registered under Fix: moved both tools to Generated by Claude Code |
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated paths require human/CODEOWNERS approval.
This PR modifies and adds numerous files under static/schemas/source/** (the protocol source of truth), which is a hard, non-overridable approval gate (gated_paths: true). The current review_decision is CHANGES_REQUESTED, not APPROVED, so decision-table row 2 fires and the PR cannot be auto-approved regardless of how clean the diff is.
The reviewer's delta pass was clean — no Critical/High/Medium findings. The three training-agent TypeScript files reviewed (floorPeriod generalization for P1D schedules, config-driven finality/reconciliation fields, and the reporting-tools migration with safe synthetic ctx, AdcpError conversion, and idempotency enforcement on the mutating sync path) are sound. The prior escalation was for the same gated-paths reason; that gate still stands.
Escalation reasons
- Gated paths: PR modifies/adds files under
static/schemas/source/**(e.g. reporting-adjustment.json, reporting-obligation.json, reporting-report-definition.json, get-adcp-capabilities-response.json, and several new reporting schemas) butreview_decisionisCHANGES_REQUESTED, notAPPROVED. Human/CODEOWNERS approval is required before merge.
Why human review
- Gated paths: PR modifies/adds files under static/schemas/source/** but review_decision is CHANGES_REQUESTED, not APPROVED — human/CODEOWNERS approval required before merge.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/compliance/comply-test-controller-request.json (modified) matches
static/schemas/source/**; static/schemas/source/compliance/comply-test-controller-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/notification-config.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-adjustment-receipt.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-adjustment.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-capabilities.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-config.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-ledger-changed-webhook.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-obligation.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-reliability-statistics.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-report-definition.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-revision.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-schedule-offering.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-schedule.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/x-entity-types.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/notification-type.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/reporting-finality.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/get-reporting-status-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/get-reporting-status-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/sync-reporting-receipts-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/sync-reporting-receipts-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/protocol/get-adcp-capabilities-response.json (modified) matchesstatic/schemas/source/**) and the current GitHub review decision is 'CHANGES_REQUESTED', not APPROVED. This is a hard gate e
…(truncated)…
|
Thanks for the fixes. For daily configurations older than 31 days, the retention cutoff still shifts periods away from midnight. Could you align that cutoff to daily boundaries and add a regression test? |
For daily (P1D) configs older than RETENTION_DAYS, recordsFor used the raw retentionStartMs (hour-aligned via floorHour) as firstStart when it won the Math.max. Because 31*DAY_MS is a multiple of HOUR_MS but not necessarily of DAY_MS relative to UTC midnight, firstStart landed at an arbitrary hour (e.g. 10:00 UTC) instead of midnight, producing periods starting at 10:00, 34:00, … instead of 00:00, 24:00, … Fix: wrap retentionStartMs in floorPeriod() in the firstStart calculation. For hourly configs floorPeriod reduces to floorHour and the behaviour is unchanged; for daily configs it floors to the midnight that contains the raw retention boundary. Regression test added (Bug 4 in the PR #7228 suite): activates a P1D config 40 days in the past, sets virtualNow to a non-midnight hour, and asserts every returned period starts at T00:00:00.000Z. Co-Authored-By: Claude Sonnet 4.6 <[email protected]> Claude-Session: https://claude.ai/code/session_01RU7ok14ByQfXbuMJfXqycd
|
Fixed in commit Root cause: Fix: wrap the retention boundary in - const firstStart = Math.max(floorPeriod(activatedMs + periodMs - 1), retentionStartMs);
+ const firstStart = Math.max(floorPeriod(activatedMs + periodMs - 1), floorPeriod(retentionStartMs));For hourly configs Regression test (Bug 4 in the test file): activates a P1D config 40 days in the past, sets Generated by Claude Code |
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated-paths hard approval gate not satisfied.
This PR modifies and adds numerous files under static/schemas/source/**, which is a hard, non-overridable approval gate (gated_paths: true). The current review_decision is CHANGES_REQUESTED, not APPROVED. Per decision rule row 2, the outcome MUST be escalate — Ladon cannot auto-approve schema-source changes until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.
The reviewer reported a clean pass with no Critical/High/Medium findings. The delta since the prior run was a one-line period-alignment fix in server/src/training-agent/reporting-reliability.ts (firstStart now uses floorPeriod(retentionStartMs) so daily P1D configs start at midnight UTC) plus a targeted regression test. No blocking findings exist on the code itself, so this is not a request-changes — it is an escalation purely on the unsatisfied gate.
Escalation reasons
- Modifies/adds published protocol surface under
static/schemas/source/**whilereview_decisionisCHANGES_REQUESTED, notAPPROVED— human/CODEOWNERS approval required before merge.
Once a human/CODEOWNERS approval is recorded, this PR (clean diff, no findings) can fall through to approval on a subsequent run.
Why human review
- Modifies/adds files under static/schemas/source/** (a hard approval gate) while review_decision is CHANGES_REQUESTED, not APPROVED — human/CODEOWNERS approval required before merge.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/compliance/comply-test-controller-request.json (modified) matches
static/schemas/source/**; static/schemas/source/compliance/comply-test-controller-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/notification-config.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-adjustment-receipt.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-adjustment.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-capabilities.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-config.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-ledger-changed-webhook.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-obligation.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-reliability-statistics.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-report-definition.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-revision.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-schedule-offering.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-schedule.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/x-entity-types.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/notification-type.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/reporting-finality.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/get-reporting-status-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/get-reporting-status-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/sync-reporting-receipts-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/sync-reporting-receipts-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/protocol/get-adcp-capabilities-response.json (modified) matchesstatic/schemas/source/**) and the current GitHub
…(truncated)…
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated schema paths require human/CODEOWNERS approval (review_decision is CHANGES_REQUESTED).
This PR adds an additive experimental "Reliable Reporting" protocol surface: new/modified schemas under static/schemas/source/**, coherent docs, a correct minor/Normative changeset, no undiscriminated-oneOf regression, and no mutation of released dist/** artifacts. There are no critical/high findings.
Why escalate (not approve): The diff modifies/adds many files under static/schemas/source/**, which is a hard, deterministic approval gate (gated_paths: true). The current review_decision is CHANGES_REQUESTED, not APPROVED, so per decision-table row 2 the outcome must be escalate until a human/CODEOWNERS approval is recorded. This also aligns with the prior escalate decision.
Medium findings (surfaced, non-blocking):
- server/src/training-agent/reporting-reliability.ts:177 — reconciled-obligation completeness unconditionally requires an accepted adjustment receipt, contradicting the PR's own
complete_finalityrule; adjustment-receipt counts on the obligation are never populated. This is reference-runtime logic, not the published wire surface, so it does not gate on its own — but should be fixed.
Escalation reasons:
- Modifies/adds
static/schemas/source/**(hard approval gate) whilereview_decisionisCHANGES_REQUESTED— human/CODEOWNERS approval required before merge.
Why human review
- Modifies/adds files under static/schemas/source/** (a hard, non-overridable approval gate) while review_decision is CHANGES_REQUESTED, not APPROVED — human/CODEOWNERS approval required before merge.
- Reference-runtime Medium: server/src/training-agent/reporting-reliability.ts:177 — reconciled-obligation completeness contradicts the PR's own complete_finality rule and adjustment-receipt counts are never populated; worth a human eye during approval.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/compliance/comply-test-controller-request.json (modified) matches
static/schemas/source/**; static/schemas/source/compliance/comply-test-controller-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/notification-config.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-adjustment-receipt.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-adjustment.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-capabilities.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-config.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-ledger-changed-webhook.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-obligation.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-reliability-statistics.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-report-definition.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-revision.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-schedule-offering.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-schedule.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/x-entity-types.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/notification-type.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/reporting-finality.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/get-reporting-status-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/get-reporting-status-response.json (modifie
…(truncated)…
|
CI remediation in |
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — hard approval gate on static/schemas/source/** not yet satisfied.
This PR modifies/adds numerous files under static/schemas/source/**, which is a deterministic, non-overridable hard approval gate (gated_paths: true). The current GitHub review decision is CHANGES_REQUESTED, not APPROVED, so decision-table row 2 fires: Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.
The reviewer reports a clean subsequent pass with no critical/high/medium findings. The prior escalation's medium concern (reporting-reliability.ts:177 reconciled-obligation completeness) does not appear in this run, and the delta (get_reporting_status payloadErrorsAsSuccess:true, schema-conformant receipt fixtures, source-schema validation tests) introduced no new findings. That is genuine iteration progress and is acknowledged — but the schema-path gate is a mechanical path fact, not a code-quality judgment, and it stands until review_decision becomes APPROVED.
Escalation reasons
- Modifies/adds files under
static/schemas/source/**(hard, non-overridable approval gate) whilereview_decisionisCHANGES_REQUESTED, notAPPROVED— human/CODEOWNERS approval required before merge. - Protocol schema surface changes carry versioning/wire-shape governance weight; a human must confirm the changeset scope and any breaking-class classification before ratification.
Why human review
- Touches files under the hard approval gate static/schemas/source/** (e.g. reporting-adjustment.json, reporting-obligation.json, get-adcp-capabilities-response.json) while review_decision is CHANGES_REQUESTED, not APPROVED — human/CODEOWNERS approval required (decision-table row 2).
- Protocol schema/wire-surface change: a human must confirm changeset scope and any breaking-class ratification before merge.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/compliance/comply-test-controller-request.json (modified) matches
static/schemas/source/**; static/schemas/source/compliance/comply-test-controller-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/notification-config.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-adjustment-receipt.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-adjustment.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-capabilities.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-config.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-ledger-changed-webhook.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-obligation.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-reliability-statistics.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-report-definition.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-revision.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-schedule-offering.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-schedule.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/x-entity-types.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/notification-type.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/reporting-finality.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/get-reporting-status-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/get-reporting-status-response.json (modified) matchesstatic/schemas/source/**; s
…(truncated)…
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — hard approval gate on protocol schema source is not satisfied.
This PR modifies and adds files under static/schemas/source/**, which is a hard, deterministic approval gate (gated_paths: true). The current review_decision is CHANGES_REQUESTED, not APPROVED. Per decision-table row 2, this cannot auto-approve regardless of how clean the diff is — a human/CODEOWNERS approval must be recorded first.
Reviewer findings: clean pass, no critical/high/medium findings. The delta was traced to training-agent in-memory simulation logic (reporting-reliability.ts + test) with no wire-surface issues, and schema↔docs coherence was not flagged. So there are no blocking code-level findings — but the gate stands independently of finding quality.
This also matches the prior escalate decision: the PR touches wire-surface protocol schemas (reporting-adjustment.json, reporting-obligation.json, get-adcp-capabilities-response.json, etc.), and a protocol schema/wire change requires a human to confirm changeset scope and any breaking-class ratification before merge (Breaking-class hard gate).
Escalation reasons
- Touches files under the hard approval gate
static/schemas/source/**(e.g. reporting-adjustment.json, reporting-obligation.json, reporting-ledger-changed-webhook.json, get-adcp-capabilities-response.json) whilereview_decisionis CHANGES_REQUESTED, not APPROVED — human/CODEOWNERS approval required. - Protocol wire-surface change: a human must confirm changeset scope and ratify any breaking-class classification before merge.
Why human review
- Touches files under the hard approval gate static/schemas/source/** (e.g. reporting-adjustment.json, reporting-obligation.json, reporting-ledger-changed-webhook.json, get-adcp-capabilities-response.json) while review_decision is CHANGES_REQUESTED, not APPROVED — human/CODEOWNERS approval required (decision-table row 2).
- Protocol schema/wire-surface change: a human must confirm changeset scope and ratify any breaking-class classification before merge.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/compliance/comply-test-controller-request.json (modified) matches
static/schemas/source/**; static/schemas/source/compliance/comply-test-controller-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/notification-config.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-adjustment-receipt.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-adjustment.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-capabilities.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-config.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-ledger-changed-webhook.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-obligation.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-reliability-statistics.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-report-definition.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-revision.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-schedule-offering.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-schedule.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/x-entity-types.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/notification-type.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/reporting-finality.json (modified) m
…(truncated)…
|
@garvitkaushik-123 Fresh human review requested for current head |
garvitkaushik-123
left a comment
There was a problem hiding this comment.
Thanks for addressing the requested changes. Verified the current head with all 31 focused tests and typechecking passing. On re-review, obligation completion and individual adjustment acceptance are separate contract concerns, so I have no remaining blocking findings.
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — hard approval gate on protocol schema surface not yet satisfied.
This PR (Reliable Reporting 1.0) modifies and adds files under static/schemas/source/**, which is under a deterministic hard approval gate (gated_paths: true). The current review_decision is CHANGES_REQUESTED, not APPROVED, so decision-table row 2 fires: Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded.
The reviewer's pass was clean — no Critical/High/Medium findings. Schema↔docs coherence holds (source_timezone, changes_after/changes_checkpoint, adjustments, reporting.ledger_changed, reliable_reporting_version, reliability_statistics all move together), the minor changeset fits the experimental Normative surface, no oneOf regression (sync-receipts-response oneOf→anyOf stays disjoint via result const + additionalProperties:false), and no dist artifact edits. This is net-clean iteration relative to the prior escalate, which also had no actionable findings.
But the gate is mechanical, not a code-quality judgment: this is a protocol wire-surface change to the published schema source, and ratification of the experimental-capability sign-off is a human act. The prior decision was also escalate for the same reason; that escalation persists on the deterministic gate, independent of row 6.
Escalation reasons
- Files under hard approval gate
static/schemas/source/**(e.g. reporting-adjustment.json, reporting-obligation.json, reporting-ledger-changed-webhook.json, get-adcp-capabilities-response.json) modified/added whilereview_decisionis CHANGES_REQUESTED, not APPROVED — human/CODEOWNERS approval required (row 2). - Protocol schema/wire-surface change: a human must confirm changeset scope and ratify the experimental-capability classification before merge.
Why human review
- Files under the hard approval gate static/schemas/source/** are modified/added (e.g. reporting-adjustment.json, reporting-obligation.json, reporting-ledger-changed-webhook.json, get-adcp-capabilities-response.json) while review_decision is CHANGES_REQUESTED, not APPROVED — human/CODEOWNERS approval required (decision-table row 2).
- Protocol schema/wire-surface change: a human must confirm changeset scope and ratify the experimental-capability classification before merge.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/compliance/comply-test-controller-request.json (modified) matches
static/schemas/source/**; static/schemas/source/compliance/comply-test-controller-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/notification-config.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-adjustment-receipt.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-adjustment.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-capabilities.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-config.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-ledger-changed-webhook.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-obligation.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-reliability-statistics.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-report-definition.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-revision.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-schedule-offering.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-schedule.json (modified) matchesstatic/schemas/source/**; sta
…(truncated)…
|
@garvitkaushik-123 @andybevan-scope3 @rachitm022 Human approval is now present on current head |
Human triage decision for #7207Confirmed as a 3.2 release-blocking schema bug. We should take the structural fix, not a bounds-only patch:
AWS's 1,024-byte provider limit and JSON Schema's character-counting This does not require a WG policy decision: the experimental schema currently cannot represent the documented provider space it claims to support. |
Summary
Capability discovery
An affirmative answer to “Do you support Reliable Reporting?” requires all three:
experimental_featurescontainsmedia_buy.reporting_deliverymedia_buy.reporting_delivery.supportedistruemedia_buy.reporting_delivery.reliable_reporting_versionis1.0Tier flags and
reporting_delivery_offering_idsthen describe the supported service level. AAMP/legacy reporting does not imply this capability.Scenario coverage
Verification
npm run buildOpen workspace in Conductor