enabled (report.py)

zvonok · analytics, at-least-once, job-id, callback, retry

Reporting the call back to call-api. Delivery is **at-least-once, keyed by job_id** (BRIEF §9 phase-2 trap 4). Two properties matter and neither is negotiable: - A lost POST must never look like a call that never happened. So the transcript is written to disk *before* it is poste

# Source: https://github.com/faeton/zvonok | License: MIT | Copyright 2026 faeton
# Provided via justclaw.it.com; keep this notice with the code.
"""Reporting the call back to call-api.

Delivery is **at-least-once, keyed by job_id** (BRIEF §9 phase-2 trap 4). Two
properties matter and neither is negotiable:

- A lost POST must never look like a call that never happened. So the transcript
  is written to disk *before* it is posted, and call-api's janitor picks the file
  up from the shared volume if the HTTP path fails entirely.
- Reporting must never be able to keep a paid line open. Every call here is
  bounded in total time; failing to report is bad, hanging up late costs money.

If ZVONOK_API_URL is unset the agent runs exactly as it did in phase 1 — dispatch
by hand with lkctl.sh, tra

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search 40K more like it.

Get a free API key