mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-11 14:00:29 +00:00
9ec52406ad
The pushed cloud-safe operational context told the model a resource's access pattern, paths, and ports but not how OLD the discovery was — so the Assistant could present a 2-week-old cached scan as current. For a monitoring assistant, recency is the most important provenance signal. FormatCloudSafeContext now appends "Last discovered: <age>" (via the existing FormatDiscoveryAge helper, previously unused) when the timestamp is known, and the push-path conversion (cloudSafeOperationalContext) carries UpdatedAt through. A timestamp is non-identifying, so it adds no PII. Omitted when unknown. - Tests: FormatCloudSafeContext freshness present/absent; cloudSafeOperationalContext carries UpdatedAt end of the push conversion (and still emits no PII). - Contract: ai-runtime cloud-safe context must carry discovery age when known. Follow-up: same freshness line on the local/full path (formatSingleDiscovery).