Repository navigation
Effect Service Conventions: unsafe startup warning
packages/shared/src/otelEnvironment.ts:168β169 logs an unbounded raw protocol value, which could expose sensitive data. An inline review comment suggests redacting it.
Details
Warning
- Invalid effort level "max" in front matter. Fell back to "low". Valid values are: low, medium, high.
Note
Your check run agent prompt is: .macroscope/check-run-agents/effect-service-conventions.md
More information about how Check Run Agents work can be found in our Help Center.
Reviewed all 2 changed files (prior head is not an ancestor)
π Agent activity β 34 tool calls
π Inspecting code changes I need to check the scoped code changes for any violations. The differences seem to be largely in the configuration, without any service creation involved. I should look into the directives and confirm that there are no production issues. The tests added appear substantial, so that's likely a good sign. I also need to ensure that the final format conflict is addressed with the "All clear" summary. It could be worth inspecting any relevant code as well.
1. browse_code β packages/shared/src/otelEnvironment.ts
2. browse_code β apps/server/src/cli/config.ts
3. browse_code β For PR changes to packages/shared/src/otelEnvironment.ts and apps/server/src/cli/config.ts, identify any newly introduced Effect service convention violations: named imports from bare effect, service dependencies injected as parameters, imperative runtime construction in service, unstructured new tagged errors, diagnostic suppression without explanatory comment, or missing focused backend tests. Answer briefly with file and line or none.
4. browse_code β packages/shared/src/otelEnvironment.ts
5. browse_code β Check the current PR head production TypeScript changes in apps/desktop/src/app/DesktopObservability.ts and apps/desktop/src/backend/DesktopBackendConfiguration.ts against Effect service conventions. Any newly introduced violations or lack of focused tests after latest changes? Respond briefly.
6. browse_code β packages/shared/src/otelEnvironment.ts
7. modify_pr β Submitted review with 1 inline comment
8. browse_code β packages/shared/src/otelEnvironment.ts
9. browse_code β packages/shared/src/otelEnvironment.ts
10. browse_code β packages/shared/src/otelEnvironment.ts
11. browse_code β apps/server/src/cli/config.ts
12. browse_code β packages/shared/src/otelEnvironment.test.ts
13. browse_code β packages/shared/src/otelEnvironment.test.ts
14. browse_code β Where are OtelEnvironment.load warnings logged during server/desktop startup? Does a raw invalid OTEL_EXPORTER_OTLP_PROTOCOL value in warning get logged, and can it contain arbitrary text? concise file locations.
15. modify_pr β Effect Service Conventions: one inline finding in packages/shared/src/otelEnvironment.ts identifies an unbounded, potentially sensitive protocol value echoed in startup warnings. Please redact the value and update the warning assertion.
16. browse_code β apps/server/src/observability/Layers/Observability.ts
17. browse_code β Are there any other NEW raw unbounded values included in warnings or log annotations in the PR's changed production files? Focus only newly changed lines.
18. browse_code β packages/shared/src/otelEnvironment.ts
19. browse_code β apps/desktop/src/app/DesktopObservability.ts
20. browse_code β apps/desktop/src/app/DesktopObservability.ts
21. browse_code β Does invalid OTEL_EXPORTER_OTLP_*_PROTOCOL raw string get emitted as startup warning in current PR code? confirm.
22. browse_code β packages/shared/src/otelEnvironment.ts
23. browse_code β packages/shared/src/otelEnvironment.ts
24. browse_code β Confirm whether warning message containing raw protocol value is new at PR head versus merge base from provided context, if available.
25. browse_code β packages/shared/src/otelEnvironment.test.ts
26. browse_code β No further research needed.
27. browse_code β packages/shared/src/otelEnvironment.ts
28. browse_code β apps/server/src/observability/Layers/Observability.ts
29. browse_code β packages/shared/src/otelEnvironment.ts
30. browse_code β packages/shared/src/otelEnvironment.ts
31. browse_code β packages/shared/src/otelEnvironment.ts
32. browse_code β packages/shared/src/otelEnvironment.ts
33. browse_code β packages/shared/src/otelEnvironment.ts
34. browse_code β packages/shared/src/otelEnvironment.ts
Agent Credits: 79 credits
Token usage: 201 uncached input Β· 1,401,126 cache-read input Β· 160,063 cache-write input Β· 6,255 output
Agent Credits may also include non-token charges from external tools such as web research.