Skip to content

Emit APE v0.2 and release 0.7.0 - #21

Merged
hedge-waleed merged 1 commit into
mainfrom
feat/ape-v0.2
Nov 25, 2026
Merged

hedge-waleed merged 1 commit into
mainfrom
feat/ape-v0.2

Conversation

@hedge-waleed

Copy link
Copy Markdown
Contributor

Summary

APE v0.2 support, released as halvorai-ingest 0.7.0. This matches @halvorai/ingest 0.5.0 and halvorAI/halvorai-app#116.

  • Validation: accepts v0.1 and v0.2, including agent.reported, and refuses v0.2 fields in a 0.1 event. The signature header ape follows the event's version.
  • Version: events are sent as 0.2 only when they carry a v0.2 field.
  • Unknown owner: sent as type: "unknown", and the owner_type label stopgap is gone (halvorAI/halvorai-app#99).
  • x402: the server side sets perspective: "payee" and attribution_gaps (halvorAI/halvorai-app#100); the client side sets "payer".
  • Stripe: sends unknown for a missing owner type.
  • New: emit_report() and "normalise": True on instructions (halvorAI/halvorai-app#109).
  • Fixtures: the shared Stripe conformance fixtures are updated, and the three published v0.2 examples are added as fixtures.
  • Release: version 0.7.0, CHANGELOG, README and uv.lock updated.

Tests and verification

uv run --locked --extra dev mypy passes, pytest -q (217 passed) on 3.12, and on 3.10 as CI runs it.

Brain update

  • What changed: halvorai-ingest 0.7.0 validates and emits APE v0.2: unknown owners, attribution gaps, perspective, emit_report, normalised instruction hashes.
  • Why: customer feedback (halvorAI/halvorai-app#99, #100, #109).
  • Affected APIs, schemas, SDKs, integrations, or behavior: an event without an owner is now v0.2. It needs the HalvorAI API from halvorAI/halvorai-app#116.
  • Verification performed: mypy, 217 tests on 3.12 and 3.10.
  • Deployment status (merged code is not necessarily deployed): not published to PyPI. Publish (GitHub release v0.7.0) only after the API change is deployed.
  • Known limitations and follow-up: no MPP adapter or evidence helpers in Python yet, as before.

🤖 Generated with Claude Code

Validation accepts v0.1 and v0.2 (agent.reported included) and refuses v0.2
fields in a 0.1 event; the signature header follows the event version. Events
use 0.2 only when they carry a v0.2 field. Unknown owners are sent as type
unknown (the owner_type label stopgap is gone). The x402 server side sets
perspective payee and attribution_gaps; the client side sets payer. Stripe
sends unknown for a missing owner type. New emit_report and instruction
normalise. Version 0.7.0.

Refs halvorAI/halvorai-app#99, #100, #109.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@hedge-waleed
hedge-waleed merged commit 26cef84 into main Nov 25, 2026
1 check passed
@hedge-waleed
hedge-waleed deleted the feat/ape-v0.2 branch November 25, 2026 09:04
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