How a News URL Becomes a Feed Record
The feed does not build itself. An operator or authenticated service submits a URL, and a bounded ingestion pipeline extracts, validates, and atomically stores the record.
1. Local development command
GREENCIO_RUNTIME_PROFILE=development npm run url-news "https://example.com/article"The explicit development profile enables the local JSON fallback when GCS is unavailable. Preview, staging, and production fail closed rather than writing local files.
2. Five-stage ingestion path
- 1
Validate URL
Reject malformed or disallowed targets before making any outbound request.
- 2
Bounded fetch
Retrieve a size-capped HTML response and parse standard metadata plus a text excerpt.
- 3
Summarize & tag
Generate a summary when a model is configured (else use source metadata), then extract entities, tags, and keyword relevance.
- 4
Deduplicate
Validate schema bounds and merge by stable identity so retries do not create duplicate entries.
- 5
Atomic write
Write feed/latest.json to GCS with object-generation preconditions; fail closed in strict environments if GCS is unreachable.
Inspect the public intelligence feed or read the source in the GitHub repository.
Related articles
Reduce Agent Context Cost by Loading Tools on Demand
Measure schema tokens first, then swap eager tool lists for a versioned discovery catalog.
How to Review Water Risk for an AI Data Center
Separate withdrawal from consumption, match cooling mode to climate, and verify local permits.
Why AI Analysis Still Needs Explicit Human Approval
Keep generation, run records, approval authority, and external action strictly separate.