feat(telemetry): project verify and outcome receipts - #569
Merged
Conversation
Co-Authored-By: Codex <codex@openai.com> Co-Authored-By: Cursor <cursoragent@cursor.com>
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one) (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository: escoffier-labs/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Closes #491
Parentage and envelope version
worker-results.jsonshares the owning run's trace ID and uses the first valid projected worker span as its parent.parent_span_id: null. If separate runs claim the same receipt ID, the ownership is ambiguous and the receipt follows the same orphan rule.Attribute map
OTel rows use
gen_ai.operation.name=execute_tool,gen_ai.tool.name, andgen_ai.tool.call.id. OpenInference rows useopeninference.span.kind=TOOL,tool.name, andtool.id. Brigade fields stay underbrigade.*.Only a canonical outcome ledger digest is exposed as
brigade.receipt.id. Digestless or forged records get a deterministic correlation ID without claiming it is a receipt ID. Verify commands export the executable basename instead of raw arguments.Tests
Verification
Command:
20260726-215908-work-verify-17a0b504374 passed, 3 skipped82.81%f3e6699e9965e3c33ef2383bReal linked projections
The source pair is run
20260726-issue491-implementationand verify receipt20260726-205418-work-verify-d32500.OTel GenAI:
{"attributes":{"brigade.receipt.id":"20260726-205418-work-verify-d32500","brigade.target.repo":"brigade-491-receipt-telemetry","brigade.verify.command.executable":"pytest","brigade.verify.exit_code":0,"brigade.verify.status":"completed","gen_ai.operation.name":"execute_tool","gen_ai.tool.call.id":"20260726-205418-work-verify-d32500:1","gen_ai.tool.name":"brigade.work.verify"},"duration_seconds":0.731811,"end_time":"2026-07-26T20:54:20.401969+00:00","error_type":null,"mapping":{"mapping_version":1,"name":"otel-genai","upstream_revision":"opentelemetry-semconv-1.43.0"},"name":"execute_tool brigade.work.verify","parent_span_id":"394b57b2349b7611","schema":"brigade.otel_genai_projection.v1","span_id":"03fd83e0ed1599a4","start_time":"2026-07-26T20:54:19.670019+00:00","status":"OK","trace_id":"3e1f5b04740e5bb51d2cc2fed3231dc4"}OpenInference:
{"attributes":{"brigade.receipt.id":"20260726-205418-work-verify-d32500","brigade.target.repo":"brigade-491-receipt-telemetry","brigade.verify.command.executable":"pytest","brigade.verify.exit_code":0,"brigade.verify.status":"completed","openinference.span.kind":"TOOL","tool.id":"20260726-205418-work-verify-d32500:1","tool.name":"brigade.work.verify"},"duration_seconds":0.731811,"end_time":"2026-07-26T20:54:20.401969+00:00","error_type":null,"mapping":{"mapping_version":1,"name":"openinference","upstream_revision":"audited-2026-07-12"},"name":"brigade.work.verify","parent_span_id":"394b57b2349b7611","schema":"brigade.openinference_projection.v1","span_id":"03fd83e0ed1599a4","start_time":"2026-07-26T20:54:19.670019+00:00","status":"OK","trace_id":"3e1f5b04740e5bb51d2cc2fed3231dc4"}