mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-11 22:12:23 +00:00
92f08a1f16
Discovery-side enablement for making the Assistant useful on CLOUD models. Today, sensitive resources route to cloud as a terse redacted summary, so the Assistant never receives discovery's access context and gives generic answers — invisibly broken for the majority of users who run cloud AI. FormatCloudSafeContext returns the operational context the Assistant needs (service identity, access pattern, config/data/log paths, port numbers) while omitting PII by construction (no hostname, IP, bind addresses). The chat sanitizer (Codex's ai/chat + unifiedresources policy lane) can include this in cloud-routed summaries behind an opt-in, instead of withholding everything. Local routing keeps using FormatForAIContext (full context). Tested: includes service/access/paths/ports; rejects hostname + IP.