Skip to content

fix(examples): align governance examples with telemetry 0.2 - #1

Closed
dinakarjs wants to merge 1 commit into
Prakash-codeMaker:feat/source-classification-inheritancefrom
dinakarjs:fix/examples-contract-132
Closed

dinakarjs wants to merge 1 commit into
Prakash-codeMaker:feat/source-classification-inheritancefrom
dinakarjs:fix/examples-contract-132

Conversation

@dinakarjs

Copy link
Copy Markdown

Follow-up for agentrust-io#132, based on 6b6c29b. The new metadata identifier check rejects the governed workflow's SPIFFE destination.id, causing test_complete_governed_workflow to error. Use the metadata label builder for that endpoint while retaining the envelope's SPIFFE agent_id. The manual example also needs the new spec_version.

Two one-line example fixes, with no validator or schema relaxation. Before the repair, the full Python suite ran 186 tests with one error. With the repair, all 186 pass under the existing hash-locked development environment, Python 3.12 and the default OTel sampler. The manual example reports accepted=True and log_emitted=True. TypeScript build and all 62 tests passed on the unchanged parent via node --import tsx --test test/*.test.ts. Diff whitespace passes. The published tree matches the tested local tree.

Please adopt into agentrust-io#132 if these endpoint semantics match the intended example. Hosted CI authorization and maintainer acceptance remain separate. Prepared with OpenAI Codex. DCO sign-off included.

Use a metadata endpoint identifier in the governed workflow while retaining
its SPIFFE envelope identity. Update the manual event contract version.

Signed-off-by: Srinivasa Consultants <78673153+dinakarjs@users.noreply.github.com>
@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

🟡 Contributor Check: MEDIUM

Check Result
Profile MEDIUM
Credential LOW
Overall MEDIUM

Automated check by AgenTrust Contributor Check.

Copy link
Copy Markdown
Owner

Thank you for preparing this repair. I adopted the same two corrections directly into feat/source-classification-inheritance, which is the head branch for upstream PR agentrust-io#132: the governed workflow now uses builder as the metadata endpoint ID while preserving the SPIFFE agent identity in the envelope, and the manual example now emits 0.2.0-alpha.1. I have not merged this follow-up PR because the equivalent changes are already on the target branch. The upstream PR's hosted checks still require maintainer approval.

Copy link
Copy Markdown
Author

Verified that agentrust-io#132 at aafe698 now contains both fixes proposed here: the builder metadata endpoint in governed_workflow.py and spec_version 0.2.0-alpha.1 in manual_governance.py. Its current-head CI, CodeQL and ClusterFuzzLite workflows have succeeded. Closing this adoption PR as superseded by the incorporated changes; agentrust-io#132 remains subject to its independent maintainer review. Prepared with OpenAI Codex.

@dinakarjs dinakarjs closed this Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-review:MEDIUM Contributor check flagged MEDIUM risk

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants