Skip to content

Add caller-supplied import exclusion filters and preview - #38

Merged
VasiliyRad merged 3 commits into
mainfrom
feat/import-exclusion-rules
Nov 20, 2026
Merged

VasiliyRad merged 3 commits into
mainfrom
feat/import-exclusion-rules

Conversation

@VasiliyRad

Copy link
Copy Markdown
Collaborator

Adds reusable exclusion rules as explicit input to the Python library and a local metergraphrelay filter command. Relay never fetches policy. With no policy nothing is excluded; preview retains all rows while reporting matches.

Rules support exact provider/workload/tag conditions and aware timestamp cutovers, with bounded schema validation. JSONL streams one record at a time; invalid input leaves the previous output intact. Reports included/excluded counts, matches per rule and a deterministic policy digest. Existing pull/sync/push behavior and the TypeScript sender are unchanged.

Validation: all 800 Python tests pass, including 16 new filter/CLI contracts. No new dependencies, no network calls, no release or deployment performed. The hosted app integration will supply and own the policy separately.

@VasiliyRad
VasiliyRad merged commit ffb7944 into main Nov 20, 2026
9 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