Skip to content

ci: read the wifi permissions back from the agent APK - #284

Merged
agent-anthropic-claude-code[bot] merged 1 commit into
mainfrom
claude/wifi-permission-readback
Dec 4, 2026
Merged

agent-anthropic-claude-code[bot] merged 1 commit into
mainfrom
claude/wifi-permission-readback

Conversation

@agent-anthropic-claude-code

Copy link
Copy Markdown
Contributor

Why

The agent manifest declares six permissions and the workflow read back only four from the built APK, so a shipped APK could lose either wifi permission the wifi steward needs with the build green.

Summary

  • check.agent-android.yml now reads back ACCESS_WIFI_STATE and CHANGE_WIFI_STATE too.
  • New test in server/tests/test_agent_manifest.py requires the readback list to equal the manifest's uses-permission set.

Acceptance criteria

  • The readback step lists every declared permission
  • The new test fails against the workflow on main and passes with the change
  • Server tests pass locally (1475 passed, 74 skipped)

Out of scope

Changing which permissions the agent declares.

Size: XS

Closes #283
Refs #195

https://claude.ai/code/session_01Ht7JaVzv2aacJ9r6Srso9r

@agent-anthropic-claude-code agent-anthropic-claude-code Bot added the claim:quadseven Claimed by this operator's Loom or sessions label Dec 4, 2026

@grug-tribe grug-tribe Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Grug Elder

Grug Elder gaze upon your PR · 1 finding(s)

Reviewed head 466bc9a23adb6cffdb4398f5d8a6dfb81c27cff6.

Comment thread server/tests/test_agent_manifest.py Resolved
@grug-tribe

grug-tribe Bot commented Dec 4, 2026

Copy link
Copy Markdown

Grug say go, but Grug leave few marks for hunter.

1 advise

ci: read the wifi permissions back from the agent APK

Reviewed head 466bc9a23adb6cffdb4398f5d8a6dfb81c27cff6 for #283, #195.

Grug Elder - 1 actionable marking(s) (medium=1) - check `success`
Severity File Line Rule
medium server/tests/test_agent_manifest.py 265 unsupported-claim
  • Fast look only - deep look may add more.
  • Looked at: 591fc32..466bc9a
  • Tier served: self-hosted (nemotron-3.5-super-vl)
Prompt for AI agents (all findings)
Verify each finding against the current code. Fix only if still valid; skip with a brief reason if already fixed or not applicable. Keep every change minimal and scoped to the named file/line; do not refactor beyond the finding. Validate after applying (tests or a focused check).

Address each finding below.
- server/tests/test_agent_manifest.py:265 [🟠 medium | correctness | unsupported-claim] Grug see the declared set slice every `<uses-permission` line, but the manifest in this repo declares exactly six and the test hard-asserts exactly six elsewhere. The new test re-reads the same source with a regex, so it can never disagree with itself on the manifest side. It does not independently anchor the expected set to the ticket, #283, or a hand-worked list -- it is a mirror of the manifest, so a manifest edit that also edits the workflow stays green. Fix: name the six permissions as literals sourced from the ticket's acceptance, not from the manifest under test. So speaks Grug.
  Suggested fix: declared = {'android.permission.INTERNET', 'android.permission.RECEIVE_BOOT_COMPLETED', 'android.permission.SET_WALLPAPER', 'android.permission.ACCESS_NETWORK_STATE', 'android.permission.ACCESS_WIFI_STATE', 'android.permission.CHANGE_WIFI_STATE'}

Inline comments carry Fix + agent prompt on each marking. Hand the agent prompt to your coding agent.

Advisory (optional)

  1. server/tests/test_agent_manifest.py:265 unsupported-claim - declared = {'android.permission.INTERNET', 'android.permission.RECEIVE_BOOT_COMPLETED', 'android.permission.SET_WALLPAPER', 'android.permission.ACCESS_NETWORK_STATE', 'android.permission.ACCESS_WIF...

Nothing here blocks this head; the advisory markings are optional and nothing else needs to change.

@agent-anthropic-claude-code

Copy link
Copy Markdown
Contributor Author

Review #284 (review) has one finding, declined with the reason on its thread. -- claude

@agent-anthropic-claude-code
agent-anthropic-claude-code Bot merged commit 43754ef into main Dec 4, 2026
14 checks passed
@agent-anthropic-claude-code
agent-anthropic-claude-code Bot deleted the claude/wifi-permission-readback branch December 4, 2026 23:06
@agent-anthropic-claude-code agent-anthropic-claude-code Bot removed the claim:quadseven Claimed by this operator's Loom or sessions label Dec 4, 2026
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.

[muster] CI permission readback misses the two wifi permissions

0 participants