Stub internal-only recording and model capability helpers (#377)

This follow-up Phase C-lite slice replaces purely internal helper modules
with stable external no-op surfaces and collapses internal elevated error
logging to a no-op. The change removes additional USER_TYPE-gated helper
behavior without touching product-facing runtime flows.

Constraint: Keep this PR limited to isolated helper modules that are already external no-ops in practice
Rejected: Pulling in broader speculation or logging sink changes | less isolated and easier to debate during review
Confidence: high
Scope-risk: narrow
Reversibility: clean
Directive: Continue Phase C with similarly isolated helpers before moving into mixed behavior files
Tested: bun run build
Tested: bun run smoke
Tested: bun run verify:privacy
Tested: bun run test:provider
Tested: bun run test:provider-recommendation
Not-tested: Full repo typecheck (upstream baseline remains noisy)

Co-authored-by: anandh8x <test@example.com>
This commit is contained in:
Anandan
2026-04-05 10:14:03 +05:30
committed by GitHub
parent d1a2df2f69
commit 5ff34283c4
3 changed files with 21 additions and 352 deletions

View File

@@ -255,14 +255,6 @@ const updateLatestDebugLogSymlink = memoize(async (): Promise<void> => {
/**
* Logs errors for Ants only, always visible in production.
*/
export function logAntError(context: string, error: unknown): void {
if (process.env.USER_TYPE !== 'ant') {
return
}
if (error instanceof Error && error.stack) {
logForDebugging(`[internal] ${context} stack trace:\n${error.stack}`, {
level: 'error',
})
}
export function logAntError(_context: string, _error: unknown): void {
// External build: internal-only elevated error surfacing is disabled.
}