Skip to content
Open
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion tests/test_agent_mention_downstream_idempotency.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@


def test_router_can_read_durable_central_artifacts() -> None:
"""Both local routing and sibling sweeping receive actions read access."""
"""Target reads and central dispatch keep distinct least-privilege authorities."""

text = ROUTER_WORKFLOW.read_text(encoding="utf-8")
local, sweep = text.split("\n sweep-organization-agent-mentions:\n", 1)
assert "permissions:\n actions: read" in local
assert "permissions:\n actions: read" in sweep
assert "AGENT_DISPATCH_TOKEN: ${{ github.token }}" in local
assert "AGENT_DISPATCH_TOKEN: ${{ github.token }}" in sweep
assert 'export AGENT_DISPATCH_TOKEN="$TARGET_REPOSITORY_TOKEN"' not in sweep
Comment thread
seonghobae marked this conversation as resolved.


def test_downstream_workflows_claim_artifacts_and_coalesce_by_pull_request() -> None:
Expand Down
1 change: 1 addition & 0 deletions tests/test_agent_mention_workflow_contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def test_workflow_uses_local_event_and_central_sweep_with_job_scoped_writes() ->
assert "secrets.OPENCODE_APPROVE_TOKEN" in sweep
assert "TARGET_REPOSITORY_SOURCE" in sweep
assert "AGENT_DISPATCH_TOKEN: ${{ github.token }}" in sweep
assert 'export AGENT_DISPATCH_TOKEN="$TARGET_REPOSITORY_TOKEN"' not in sweep
Comment thread
seonghobae marked this conversation as resolved.
assert "agent_mention_sweep.py" in sweep


Expand Down
Loading