Repository navigation
fix(pm-stack): unify quota-arrival rendering on the shared §4 formatter (#13408) #13529
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
+40
−35
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,2 @@ | ||
| {"change":"First C4 methodology. downtime_window records (C4.1, #13257) derive the complete-downtime interval by intersecting the Stage-3 S1 per-pool wall intervals [wall, reset) across every routing pool (keyed by canonical provider id), basis since_last_reset; the prediction range is [latest member wall, earliest member reset), rendered by the §4 formatter at issuance. Providers the forecast cannot project publish insufficient_history and veto a no-window verdict; a defensible no-window tick publishes no record. No day-type or spike-day adjustments (inputs.adjustments is []).","evidence":["doc/2026-11-13T15-12-00Z_design_reporting-architecture-event-driven/c4-forecasting-design.md","#12695 forecast product (quota-forecast.json)"],"expected_effect":"Downtime-window predictions exist on every gatherer tick and are scorable per design §3 (start/end error, interval overlap); §3's accuracy bar is coverage inside the calibrated band with median window error under one gatherer tick span at one-tick lead.","reason":"The C4 design (doc/2026-11-13T15-12-00Z_design_reporting-architecture-event-driven/c4-forecasting-design.md, PR #13268) specifies the record, scoring, and methodology-log formats, and S1's same-period pace projection is the only measured per-pool wall source; §5 adjustments are data-gated below their sufficiency thresholds.","review_after":"2026-12-21","ts":"2026-11-23T13:10:00.000Z","version":"c4-meth:1"} | ||
| {"change":"First C4 methodology. downtime_window records (C4.1, #13257) derive the complete-downtime interval by intersecting the Stage-3 S1 per-pool wall intervals [wall, reset) across every routing pool (keyed by canonical provider id), basis since_last_reset; the prediction range is [latest member wall, earliest member reset), rendered by the §4 formatter at issuance. Providers the forecast cannot project publish insufficient_history and veto a no-window verdict; a defensible no-window tick publishes no record. No day-type or spike-day adjustments (inputs.adjustments is []).","evidence":["doc/2026-11-13T15-12-00Z_design_reporting-architecture-event-driven/c4-forecasting-design.md","#12695 forecast product (quota-forecast.json)"],"expected_effect":"Downtime-window predictions exist on every gatherer tick and are scorable per design §3 (start/end error, interval overlap); §3's accuracy bar is coverage inside the calibrated band with median window error under one gatherer tick span at one-tick lead.","reason":"The C4 design (doc/2026-11-13T15-12-00Z_design_reporting-architecture-event-driven/c4-forecasting-design.md, PR #13268) specifies the record, scoring, and methodology-log formats, and S1's same-period pace projection is the only measured per-pool wall source; §5 adjustments are data-gated below their sufficiency thresholds.","review_after":"2026-12-21","ts":"2026-11-23T13:10:00.000Z","version":"c4-meth:1"} | ||
| {"change":"model_plan_arrival records (C4.4, #13260) now render their prediction range with the one shared \u00a74 formatter (renderPredictionRange in quota-downtime.ts: duration, day, compound, and calendar forms) instead of this kind's own two-form copy in quota-arrival.ts, which is deleted. Stored rendered strings for arrival ranges change accordingly (a range crossing a Chicago day boundary now renders in calendar form, e.g. \"between Wednesday evening and this evening\", where the kind-local renderer emitted a days-from-now string). The downtime_window and reset_duration kinds are unchanged \u2014 the shared formatter was already their method \u2014 and keep naming c4-meth:1.","evidence":["doc/2026-11-13T15-12-00Z_design_reporting-architecture-event-driven/c4-forecasting-design.md \u00a74, \u00a76","#13408","#13357 (PR #13406, FDR-0013: the design is right; one formatter produces rendered)"],"expected_effect":"Every C4 kind's stored rendered string comes from the single \u00a74 formatter, so a rendering fix or form change lands for all kinds at once; arrival records issued under c4-meth:2 are attributable to the unified method, and pre-unification c4-meth:1 arrival records keep their original strings for scoring.","reason":"The design (\u00a74) says rendered is produced by one formatter, but quota-arrival.ts carried its own renderPredictionRange with only the duration and day forms (no compound, no calendar), so identical ranges rendered differently by kind. #13408 files the unification as a methodology-visible change requiring this log entry and the version bump, not a silent edit.","review_after":"2026-12-21","ts":"2026-11-23T17:50:00.000Z","version":"c4-meth:2"} |
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For multiweek arrival predictions, the shared formatter loses which week each bound belongs to: it selects calendar form whenever the dates differ, but labels those dates using only weekdays. For example, a vendor cadence anchored and issued at
2026-09-01T17:00:00Z, with a 28-day period and 7-day spread, predicts September 22 through October 6 yet now storesbetween Tuesday afternoon and Tuesday afternooninstead of the previous unambiguous 21–35 days from now. This affects both arrival bases and makes their stored human-readable predictions ambiguous or apparently zero-width. Keep the shared formatter, but add a date-qualified or duration fallback for long-horizon ranges before routing arrivals through it.Useful? React with 👍 / 👎.