Add privacy-safe AgentPond tracing for AI Insights#514
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a668fdb1f6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| export const processSportsLibReparseTask = functions.processSportsLibReparseTask; | ||
| export const processSportsLibRouteReparseTask = functions.processSportsLibRouteReparseTask; |
There was a problem hiding this comment.
Re-export the heavy reparse functions
When the functions package now loads through bootstrap.mjs, Firebase can only discover the function names exported from this file. The two heavy reparse functions are still attached in index.ts via computed CommonJS exports[...], but this static bootstrap list skips processSportsLibReparseHeavyTask and retrySportsLibReparseHeavyJob; the former is the Cloud Tasks target and the latter is called by the admin queue UI, so deploying this entrypoint leaves those existing functions absent from the exported module. Please add both exports here or generate this list from the actual runtime exports.
Useful? React with 👍 / 👎.
Summary
LLMspans for the sanitize, repair, location, and summarize stages of AI Insightsnpx agentpond@0.5.2 initExisting Storage Rules only grant client access below user-owned paths, leaving
agentpond/**inaccessible to client SDKs.Why AgentPond
AgentPond turns the multi-stage AI Insights pipeline into an inspectable trace stored in Quantified Self's own Firebase bucket. Maintainers can see whether failures or latency originate in language sanitization, query repair, location inference, or narrative summarization; compare model usage by stage; and investigate production behavior locally without exporting personal fitness content to a hosted tracing SaaS.
Verification
npm run buildinfunctions/git diff --checkA production Firebase Storage export was not attempted because the contributor environment does not have project bucket access.