Skip to content

feat(observability): port entropy and shadow-read-drift routes#42

Merged
stackbilt-admin merged 2 commits into
mainfrom
codex/issue-29-observability-drift-entropy
May 8, 2026
Merged

feat(observability): port entropy and shadow-read-drift routes#42
stackbilt-admin merged 2 commits into
mainfrom
codex/issue-29-observability-drift-entropy

Conversation

@stackbilt-admin
Copy link
Copy Markdown
Member

Summary

  • Adds /api/entropy and /api/shadow-read-drift endpoints to the observability router
  • These routes were missing from main despite the entropy module and schema already existing
  • 98 lines of new test coverage for drift detection logic

What's in scope

The entropy.ts module and shadow_read_drift table already exist on main. This PR wires the missing HTTP routes and their corresponding tests.

Test plan

  • GET /api/entropy returns window/percentile stats from the entropy module
  • GET /api/shadow-read-drift returns drift records from the shadow_read_drift table
  • All new tests pass (pnpm test)
  • No regressions in existing observability tests

🤖 Generated with Claude Code

Aegis and others added 2 commits May 8, 2026 07:35
- Add comment on entropy route explaining why buildEdgeEnv is needed
  (detectEntropy requires full EdgeEnv — API keys, model config — not just DB)
- Add comment clarifying latestBindings vs windowBindings order difference
- Add test for days=0 to complete boundedDays lower-bound coverage

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@stackbilt-admin stackbilt-admin merged commit 2fe3c6b into main May 8, 2026
1 of 2 checks passed
@stackbilt-admin stackbilt-admin deleted the codex/issue-29-observability-drift-entropy branch May 8, 2026 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant