Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions backend/tests/test_release_governance.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ def test_agent_lifecycle_governance_artifacts_stay_aligned() -> None:
assert "CONTEXTUAL_ORCHESTRATOR_TOKEN=" in environment_example
assert "CONTEXTUAL_ORCHESTRATOR_TOKEN" in readme
assert "http://127.0.0.1:8100/v1" in readme
assert "Fetch transport removes" in readme
assert "cross-origin redirect" in readme
Comment on lines +71 to +72

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Exercise the redirect instead of checking documentation text

These assertions only prove that two phrases remain somewhere in README.md; they never exercise the configured OpenCode transport or show that the redirected request omits Authorization. If OpenCode or @ai-sdk/openai-compatible changes its fetch implementation, the test remains green while a cross-origin redirect can carry the gateway token. Add a transport-level regression that sends the token to the fixed loopback origin, follows a redirect to a distinct origin, and inspects the second request rather than treating prose as security evidence.

AGENTS.md reference: AGENTS.md:L204-L206

Useful? React with 👍 / 👎.

assert "short-lived" in readme
assert "owner-issued" in readme
assert "docs/development/merge-gate-policy.md" in guidance
Expand Down