Skip to content

Keep calendar gaps out of reported annual revenue growth - #6

Merged
dev-belly merged 1 commit into
mainfrom
codex/growth-calendar-adjacency
Oct 24, 2026
Merged

dev-belly merged 1 commit into
mainfrom
codex/growth-calendar-adjacency

Conversation

@dev-belly

Copy link
Copy Markdown
Owner

An ordered, non-overlapping request can omit fiscal years or contain a calendar gap. The analyzer currently uses the previous listed period as the revenue-growth base anyway, producing a valid-looking annual growth figure from non-consecutive periods.

Use the earlier revenue only when that configured period ends exactly one day before the current period starts. Gaps keep the current-period facts and other metrics, but growth becomes missing_input for previous_period_revenue and excludes the non-adjacent fact from its lineage. This supports adjacent 53/52-week calendars and does not infer years from labels. Document the explicit rule.

Validation: 42 tests pass (3 calendar regressions added), Ruff lint/format and diff checks pass. A gapped report generates and verifies; skipped-year and renamed-label cases are covered. All nine committed demo files replay byte for byte and the preview check passes, so the default financial values and saved evidence are unchanged.

@dev-belly
dev-belly merged commit 6804c4a into main Oct 24, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant