Repository navigation
halvorai-ingest 0.2.0: validate before signing, env-aware endpoint, per-event results - #5
Merged
Merged
Conversation
…er-event results Fixes #1, #2 and #3. - emit validates every event against APE v0.1 (after redaction, as the Node.js SDK does); an invalid event is dropped, counted in stats().dropped_invalid and reported through on_error with the problems. It used to be signed and sent. - The default endpoint follows the key: hk_test_ keys go to the sandbox, hk_live_ keys to production. endpoint is a base URL like the Node.js SDK (a full /v1/events URL still works); HALVOR_API_KEY, HALVOR_SOURCE_KEY and HALVOR_ENDPOINT are read from the environment. - Delivery counts each event by its API status (accepted, duplicates, rejected) and reports each rejected event with its serverCode; events not sent for lack of a key count as dropped_disabled. Built from the monorepo with publish:build; not yet published to PyPI. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Waleed · project thread
Closes #1, closes #2, closes #3.
halvorai-ingest0.2.0 (unreleased), built from the monorepo withpnpm ingest:publish:py(hedge-waleed/halvorai-app#30):emitvalidates every event against APE v0.1 after redaction, like the Node.js SDK. An invalid event is dropped, counted instats().dropped_invalidand reported throughon_errorwith the problems found. It used to be signed and sent.hk_test_keys go to the sandbox,hk_live_to production (it was always production).endpointis a base URL like the Node.js SDK; a full/v1/eventsURL still works.HALVOR_API_KEY,HALVOR_SOURCE_KEYandHALVOR_ENDPOINTare read from the environment.accepted,duplicates,rejected) and reports each rejected event with itsserverCode; events not sent for lack of a key count asdropped_disabled.tests/test_client.pyis strict-mypy clean.Checked locally:
uv run --extra dev pytest27 passed,mypy --strict .clean,uv buildbuilds the wheel and sdist.Not merged and not published to PyPI (owner step).
🤖 Generated with Claude Code