Skip to content

fix: Android preflight hardening without a new application id - #12

Merged
scrimshawlife-ctrl merged 5 commits into
mainfrom
hardening/android-preflight
Sep 30, 2026
Merged

scrimshawlife-ctrl merged 5 commits into
mainfrom
hardening/android-preflight

Conversation

@scrimshawlife-ctrl

Copy link
Copy Markdown
Owner

Problem

The Android client minted a new idempotency key on every submit call, shipped the template allowBackup="true", exported the MainActivity test harness, left release optimization off, and had no CI. The application id is still the scaffold value.

Released authority

  • MOBILE_SURFACE.md §4.4, §5, §6, §8, §11
  • ENVIRONMENT.md §2 and §5
  • SAFETY_COPY.md §0 and §1.1
  • D-034 ACCEPT_MEMORY_ONLY_DEFAULT
  • Stack 0.6.0, RELEASE_MANIFEST-0.6.0.md
  • SPEC-018 remains KEEP_BLOCKED

Files changed

Explicit client pins, submission-scoped idempotency, crisis notice, debug-only MainActivity, backup and network-security policy, release optimization, unit tests, forbidden-capability scan, CI, governance and accessibility notes.

Tests

bash scripts/forbidden-capabilities.sh passed locally.

Unit tests, lint, and assembleRelease were not run on this machine: no JDK and no Android SDK were installed. CI is the check for those tasks. This pull request does not claim emulator or device acceptance (DEVICE_ACCEPTANCE_REQUIRED).

Security / privacy effect

Backup and device transfer exclude app data, and allowBackup is false. Cleartext is limited to localhost, 127.0.0.1, and 10.0.2.2. The session stays in memory. The release artifact used by CI is signed with the builder's debug keystore, which is not a store credential. isDebuggable is false for release.

Migration effect

None.

Rollback / forward-fix

Revert the commit. applicationId is unchanged, so installed debug builds keep the same package.

Remaining unavailable surfaces

com.example.suas is PLACEHOLDER_NOT_RELEASED. Specs do not name a production application id. Do not invent one. No production host. No store upload. WCAG 2.2 AA is not claimed. Branch protection now requires a pull request, but it does not yet require the contract check. Adding that check after it has run on main is OPERATOR_ACTION_REQUIRED.

com.example.suas stays a labeled placeholder. The test activity is
debug-only, backup is explicit, and logical retries reuse one
idempotency key. SPEC-018 stays blocked.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5547768ead

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread app/src/main/java/com/example/suas/ConnectedRequestScreen.kt Outdated
Comment thread app/src/main/java/com/example/suas/api/SuasClient.kt Outdated
Comment thread app/src/main/java/com/example/suas/CrisisNotice.kt Outdated
ServiceCard lived only in the debug harness, so release compilation of the launcher could not see it.
The product launcher, placeholder application id, memory-only session, and operation-scoped idempotency keys are now stated where later edits will see them.
Shelter preview requests one page and ignores next_cursor. Confirm and cancel keep their own keys. A 401 clears the memory bearer without minting a new key. Consent is a latest-read decision only; template copy stays not computable. Client routes are pinned to /api/v0.
A changed pickup, destination, or note mints new keys. SuasClient.create takes an explicit environment class, so a local base URL is accepted only with LOCAL. A missing dialer or messages app leaves the 911 and 988 instructions on screen.
@scrimshawlife-ctrl
scrimshawlife-ctrl merged commit 645dbc5 into main Sep 30, 2026
1 check passed
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.

1 participant