closedhumanPR #183Data Facts
Make DataFacts freshness deterministic
- Add an injectable clock and configurable freshness window to the DataFacts v1 reference plugin.
Author
@arnabdastidar
github profile →- Status
- Closed without merging
- Opened on
- Jul 10
- Branch
- hackathon/arnabdastidar-deterministic-datafacts
Description
The pitch.
## Summary - Add an injectable clock and configurable freshness window to the DataFacts v1 reference plugin. - Reject access grants for unpublished DataFacts URLs instead of minting dangling grants. - Add regression coverage for deterministic freshness and unknown-dataset access requests. ## Why DataFacts freshness previously depended directly on wall-clock time, which makes deterministic Tier-1 tests harder to write. The plugin also granted access to URLs that were never published, leaving callers with grants that could not resolve to metadata. ## Impact Existing callers keep the same defaults. Tests and deterministic scenarios can now pass a fixed or controlled clock, and access requests now fail fast for unknown datasets. ## Validation - `uv run pytest packages/nest-plugins-reference/tests/test_plugins.py::TestDataFactsV1 -v` - `make ci-local` (1152 passed, 1 skipped, 1 deselected)
Try it
Open PR on GitHubView diffCheckout locally
git fetch origin pull/183/head:pr-183
git checkout pr-183