Skip to content

feat: emit structured Policy ACK telemetry - #5

Merged
zehongye-gaga merged 1 commit into
mainfrom
feat/ack-telemetry
Nov 12, 2026
Merged

zehongye-gaga merged 1 commit into
mainfrom
feat/ack-telemetry

Conversation

@zehongye-gaga

@zehongye-gaga zehongye-gaga commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

Add versioned ocr-policy-telemetry/v1 JSON lines to the existing Actions log so the independent audit Worker can distinguish valid ACKs, policy skips, final ACK deadline expiry and other failures, and associate them with a PR snapshot and run attempt.

The client emits request timing and one final result, without a reporting HTTP request, new secret, dependency or workflow permission. Preserve the existing submission endpoints, 90-second wall deadline, four HTTP attempts and exit behavior. Credentials and response bodies remain excluded. Regenerate the embedded workflow from the tested client.

Validation: python3 ocr/render_workflow.py and python3 -m unittest discover -s ocr -q passed (30 tests), plus git diff --check. The actual client output also passed a local cross-repository simulated Actions -> independent Worker -> PostgreSQL -> authenticated ReviewHub API test, covering timeout alongside durable acceptance, reruns, deduplication, failed transactions and restart.

Platform companion: https://github.com/zehongye-gaga/ReviewHub/pull/6. The Worker pulls completed logs; missing or cancelled runs remain unknown/cancelled, not inferred timeouts. Existing historical logs do not gain final results retroactively. Production publication and a real target-repository run are still required; this PR changes no Ruleset or secret.

AI assistance: implemented and locally reviewed with OpenAI Codex (GPT-6).

Companion changes: ReviewHub https://github.com/zehongye-gaga/ReviewHub/pull/6; collector zehongye-gaga/open-code-review#30 (stacked on zehongye-gaga/open-code-review#28); private Policy https://github.com/lexmount/github-policy/pull/27; public Policy #5.

@zehongye-gaga
zehongye-gaga marked this pull request as ready for review November 12, 2026 13:23
@zehongye-gaga
zehongye-gaga merged commit 8a609f2 into main Nov 12, 2026
1 check passed
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