-
Notifications
You must be signed in to change notification settings - Fork 0
Policy Ingestion Pipeline
The ingestion pipeline retrieves configured policy sources and decides whether the result is acceptable evidence.
PolicyWatcher uses a five-strategy cascade:
- Direct HTTP/1.1 fetch
- Explicit HTTP/2 fetch
- VPS rendered fetch
- Wayback Machine fallback
- Common Crawl fallback
Each strategy records:
- status;
- HTTP status where available;
- rejection or failure reason;
- escalation path;
- final accepted source if any.
flowchart TD
start["Configured policy URL"] --> direct["Direct fetch"]
direct -->|accepted| gate["Evidence validation"]
direct -->|failed/rejected| h2["HTTP/2 fetch"]
h2 -->|accepted| gate
h2 -->|failed/rejected| rendered["VPS rendered fetch"]
rendered -->|accepted| gate
rendered -->|failed/rejected| wayback["Wayback fallback"]
wayback -->|accepted with timestamp| gate
wayback -->|failed/stale| cc["Common Crawl fallback"]
cc -->|accepted with evidence| gate
cc -->|failed| suspended["Temporarily suspended source"]
gate --> baseline["Verified baseline or change detection"]
Fetched content is accepted only when it satisfies source-quality checks such as:
- substantive policy-like text;
- sufficient content length;
- valid final URL;
- no homepage/path drift;
- no unsupported cross-host drift;
- no bot-wall or placeholder text;
- no over-cap partial capture treated as complete.
If a policy is still seeded and receives its first verified source text, the platform stores it as the first verified baseline. It does not create a fake change from placeholder text to real text.
When every retrieval strategy fails or returns insufficient evidence, the source is marked as unavailable or needing review. Public views should not expose the policy text, score, timeline event, KPI value or AI interpretation until the source is verified again.
PolicyWatcher should not use stealth masking or residential proxy rotation to bypass provider access controls. If a provider blocks automated access, that condition is recorded as an operational source issue rather than hidden.
PolicyWatcher provides evidence mapping and policy-change monitoring. It is not legal advice, compliance certification, or a definitive assessment of corporate conduct.