Freshness at the build date
Freshness at the build date, version 1.0.1: a build hook that runs inside each build and writes coverage cells, no conclusion.
Coverage: n/a- ID
m:coverage.freshness- Version
- 1.0.1
- Kind
- assessment
- Status
- in use
- Model class
- rule
- How inputs co-vary
- none: a dated rule over snapshot and adapter-run dates
- Review grain
- 1 review per conclusion row
- Run review
- n/a: a build hook writes no conclusion, so no run review applies build hook
- Released
- missing
Description
A build hook, not a compute run: the single freshness rule of 04 section 15.2 per dataset at the build's as_of, written as the build setting freshness_states and as stale badges on admitted snapshots and on the admitted conclusions whose input closure reaches one (critic round INT-07; package C14). 1.0.1 (hook 1.2.1, G2 lineage fix): the stale badge goes to the conclusions the hook reads, the highest version per method and variant, with the variants taken from the trade and price source the build resolves to (04 sections 1.10 and 15.1); the closure still walks through older versions.
Formula
missing: not in the method registry
Parameters
| Parameter | Default | Range tested | Unit | Basis |
|---|---|---|---|---|
grace_days | {"annual": 60, "continuous": 7, "daily": 7, "irregular": 365, "irregular_with_next_release": 30, "monthly": 14, "quarterly": 21, "semiannual": 30, "weekly": 7} | n/a | n/a | clock defaults of schema.sql table clock; a source's grace_days overrides them |
Assumptions
- structural: R = the latest upstream release date held (snapshot.upstream_released_on, else the retrieval date); C = the last check (a snapshot retrieval or a finished adapter run with status ok, partial or unchanged); E = next_release_on, else R + clock days, else R for an irregular clock; G = the grace override, else the clock default, 30 for an irregular clock with next_release_on (04 section 15.2).
- structural: fresh when as_of is on or before E + G, or when the clock expects no release; stale_upstream_overdue when as_of is after E + G and C is after E; stale_not_checked when as_of is after E + G and C is on or before E. The same rule as the view v_snapshot_freshness and diakarpos.freshness.state().
- data: as_of is the build date (setting as_of: the core's assembled_at date unless --build-date is given), so 2 builds from 1 core agree; a re-fetch of unchanged bytes refreshes C and leaves R alone.
- scope: A conclusion is stale when any snapshot in its conclusion_input closure (snapshots, observations, claims, links, upstream conclusions and derived values) belongs to a stale dataset; the badge basis names the stale sources.
Tested domain
missing: not in the method registry
What this method leaves out
- revisions inside an unchanged upstream release
- sources without a published clock beyond their declared one
Inputs
missing: no input listed in the registry
Variables
missing: not in the method registry
Version history
| Version | Status | Released | Replaces | Conclusions in this build | Run review |
|---|---|---|---|---|---|
| 1.0.1 current | in use | missing | n/a | n/a: a build hook: it runs inside each build and writes coverage cells and build settings, no conclusion | n/a: a build hook writes no conclusion, so no run review applies |
Conclusions in this build
n/a: a build hook: it runs inside each build and writes coverage cells and build settings, no conclusion a build hook: it runs inside each build and writes coverage cells and build settings, no conclusion