GeezerVison is showing github.com — Slice 1 of #7938: client-only id-client facade and Android arm64 target by dezren39 · Pull Request #13445 · developing-today/code
Conversation
dezren39
commented
Nov 23, 2026
•
edited by coderabbitai
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Implements slice 1 of #7938 (child #13403): a client-only Rust facade for the native Android client v1, plus the Android arm64-v8a target path.
Scope (client-only)
New id-client crate facades client-safe leaves only: id-core, id-caps, id-config, id-store, id-events, id-groups, id-sync, id-directory. It never touches id-worlds (wasmtime/russh/serve/listener), id-web (axum), id-cli, id-native-shell, or id-hw-shell. The android_dependency_boundary test enforces that exclusion by name; no hosting, drive, recovery, provider, push, or presence surfaces.
Verification (exact commands, all green 2026-11-23)
cargo test -p id-client — 3 unit + boundary + session tests pass (host, ambient nix cargo 1.99.0)
cargo fmt --check -p id-client — clean
bash android/check-android.sh with ANDROID_NDK_HOME=/home/user/.local/share/android-sdk/ndk/27.0.12077973 — host tests green, then cargo check -p id-client --target aarch64-linux-android green (1m05s, exit 0)
cargo tree -p id-client — no wasmtime/axum/russh/id-worlds/id-web/id-cli/id-native-shell/id-hw-shell edges
Cargo.lock diff: +19 lines, new crate only
Disclosures
hyper appears in cargo tree -i hyper only transitively via reqwest in id-sync (and via iroh in id-core) — HTTP client usage, not the Axum server surface. No action; recorded here deliberately.
- Toolchain: the gate scopes
RUSTC to the Android leg only (rustup run 1.99.1 cargo + explicit RUSTC + TARGET_CC/_CXX/_AR at NDK API 21 + isolated target/android-check + sccache bypass). Exporting RUSTC for the host leg poisons proc-macro reuse (E0514); sharing target/ across toolchains does the same — both verified the hard way.
- Pre-existing, untouched by this slice: 9
expect_used clippy errors in id-store/src/admission.rs under the 1.99.1 clippy driver (system clippy-driver is broken: missing librustc_driver .so). Slice adds no new clippy issues.
Closes #13403 (slice 1 of #7938).
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-23T16:15:25Z",
"session_id": "ses_e5df72672afffesSF3AUwzFSzy",
"lane": null,
"host": "amd",
"worktree": "/home/user/git/code",
"model": null,
"lane_start_issues": [],
"workspace_ref": {
"kind": "worktree",
"id": "/home/user/git/code",
"repo": "developing-today/code",
"branch": "lane-any-n-21350-id-client-slice1",
"sha": "5ac76150d4525bc92b4b29cd697d44f96e26dabe"
},
"auth_subject": "oc-code-04",
"stamped_by": "fleet 0.1.0 (native)"
}
}

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Summary by CodeRabbit
-
New Features
- Added a client session flow that creates an identity, signs a challenge, and verifies the signature.
- Added an Android-targeted build check for the client, with setup guidance.
-
Documentation
- Documented Android build prerequisites and the scope of the client facade.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…et (child #13403)
- New id-client crate: facade over client-safe leaves only
(id-core, id-caps, id-config, id-store, id-events, id-groups,
id-sync, id-directory); never id-worlds/id-web/id-cli/shells.
- Ed25519 challenge/response session + one-session acceptance probe.
- android_dependency_boundary gate enforces the exclusion set.
- pkgs/id/android/check-android.sh: host tests + aarch64-linux-android
resolve (NDK clang via TARGET_CC/_CXX/_AR, API 21; isolated
target dir and sccache bypass for the 1.99.1 toolchain leg).
Verified: cargo test -p id-client (3 unit + boundary + session green),
cargo fmt --check clean, cargo check --target aarch64-linux-android
green (NDK 27.0.12077973). hyper appears only transitively via
reqwest in id-sync (HTTP client, not the Axum server surface).
Pre-existing: 9 expect() clippy errors in id-store/src/admission.rs
under the 1.99.1 clippy driver, untouched by this slice.
coderabbitai
Bot
commented
Nov 23, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

Caution
Review failed
The pull request is closed.
Walkthrough
-
The pull request adds the id-client Rust crate to the workspace, implements a transport-free authenticated session API, adds dependency-boundary and session tests, and provides a script and README for checking the Android arm64 target.
Changes: Android client facade
| Layer / File(s) |
Summary |
Register and expose the client facade pkgs/id/Cargo.toml, pkgs/id/crates/id-client/Cargo.toml, pkgs/id/crates/id-client/src/lib.rs |
The workspace now includes id-client. The crate manifest defines its dependencies and lint levels. Its public API exposes the session module and re-exports ClientIdentity, SessionError, and TestWorld. |
Implement and validate authenticated sessions pkgs/id/crates/id-client/src/session.rs, pkgs/id/crates/id-client/tests/* |
ClientIdentity signs challenges of exactly 32 bytes. TestWorld creates a random 32-byte challenge and verifies signatures. Tests cover successful verification, a different client key, invalid challenge length, and the manifest dependency boundary. |
Add the Android target check pkgs/id/android/check-android.sh, pkgs/id/android/README.md |
The script runs host tests before checking the Android target and uses an isolated Cargo target directory. The README documents prerequisites, the check command, and the client-facade scope. |
Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Feature
Sequence Diagram(s)
sequenceDiagram
participant AuthenticatedSessionTest
participant ClientIdentity
participant TestWorld
AuthenticatedSessionTest->>ClientIdentity: generate()
AuthenticatedSessionTest->>TestWorld: new()
TestWorld-->>AuthenticatedSessionTest: challenge()
AuthenticatedSessionTest->>ClientIdentity: sign_challenge(challenge)
ClientIdentity-->>AuthenticatedSessionTest: Signature
AuthenticatedSessionTest->>TestWorld: verify_session(verifying_key, signature)
TestWorld-->>AuthenticatedSessionTest: Ok(())
Loading
Possibly related issues
- Issue 7938 describes the client-only facade, Android arm64 build, dependency boundary, and authenticated-session probe addressed by this pull request.
Suggested reviewers: claude
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Warning Some tools did not complete. Review the errors below.
Clippy (1.99.1)
-
Clippy execution timed out
Clippy (1.99.1) exceeded its 180-second time budget. Findings from completed work are retained; remaining checks are incomplete.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
| Review |
Status |
Commit |
Review trigger |
| 📝 Code Review |
✅ Completed 2026-11-23T16:48:33.262401Z |
471b2bd |
New commits |
ℹ️ 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" or "@codex security review".
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
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: 5ac76150d4
ℹ️ 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".
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Comment on lines
+22
to
+23
|
|
set -euo pipefail
|
|
|
cd "$(dirname "$0")/.."
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reject unexpected arguments before running the Android gate
When invoked with --dry-run, --help, or a stray positional argument, this script silently ignores the argument and runs the host tests and Android checks, including filesystem writes. Declare that the gate accepts no arguments and reject unexpected input with a non-zero usage exit before the first subprocess. This violates the operator-script argument contract in root AGENTS.md.
AGENTS.md reference: AGENTS.md:L44-L48
Useful? React with 👍 / 👎.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Comment on lines
+63
to
+66
|
|
let manifest = manifest_deps();
|
|
|
for forbidden in FORBIDDEN {
|
|
|
assert!(
|
|
|
!names_crate(&manifest, forbidden),
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check the resolved dependency closure rather than manifest text
The Android boundary gate only scans id-client/Cargo.toml, so it cannot detect forbidden dependencies introduced through any of the eight leaf crates or through target-specific transitive dependencies. For example, adding wasmtime to id-sync would leave this test green because the facade manifest remains unchanged. Since this test is advertised as enforcing the Android dependency closure, inspect the resolved Android graph and apply the exclusions to its reachable packages instead.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Comment on lines
+20
to
+22
|
|
pub mod session;
|
|
|
|
|
|
pub use session::{ClientIdentity, SessionError, TestWorld};
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expose the client-safe leaves through the facade
A consumer depending on id-client receives only the standalone challenge-signing demonstration: none of the eight client-safe crates listed in the module documentation is re-exported or used by a public wrapper. Declaring them as Cargo dependencies does not make their APIs available to downstream consumers, so the Kotlin shell cannot access the existing storage, sync, or directory functionality through this facade. Add the intended public re-exports or client wrappers so the new crate actually provides the client-core boundary it documents.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
The slice commit swept a pre-staged doc/fleet-schedule-registry.md
change into PR #13445. That edit belongs to another worker's lane, not
slice 1 of #7938. Restore the file to main's content so the PR touches
only slice files.
|
Lane note (task 21350 follow-up): the slice commit accidentally swept a pre-staged doc/fleet-schedule-registry.md edit into this PR. Reverted in 471b2bd — the file now matches main byte-for-byte (git diff main -- doc/fleet-schedule-registry.md empty). The one-row timer text GitHub still shows vs the (older) merge-base is main's own landed content, not this slice. PR touches only slice-1 files.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
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: 471b2bd45d
ℹ️ 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".
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Comment on lines
+135
to
+138
|
|
fn test_bad_challenge_length_rejected() {
|
|
|
let client = ClientIdentity::generate();
|
|
|
let err = client.sign_challenge(&[0_u8; 7]).unwrap_err();
|
|
|
assert!(matches!(err, SessionError::BadChallenge));
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add property tests for the session invariants
The new session API enforces challenge-length and signature-integrity invariants, but its tests exercise only individual examples: this rejection test checks just a seven-byte challenge, and there is no property coverage in id-client. Root AGENTS.md requires property tests for code with invariants; its linked testing doctrine explicitly includes ID/crypto formats. Add generated challenge lengths and contents, checking that signing succeeds exactly at 32 bytes, valid signatures verify, and altered challenges are rejected. The existing examples can remain as smoke tests.
AGENTS.md reference: AGENTS.md:L37-L39
Useful? React with 👍 / 👎.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 23, 2026
# Conflicts:
# doc/fleet-schedule-registry.md
…nt contract)
The Android gate takes no arguments. Any argument is a usage error
naming the offender (exit 2), checked before the first subprocess.
Fixes the Codex P1 on #13445.
Uh oh!
There was an error while loading. Please reload this page.
|
Batch A disposition (lane code-i, task 21622): MERGED as 035209f.
Conflict: doc/fleet-schedule-registry.md (PR reverted main's landed timer rows; resolved merge-main-in 2f7a206 keeping main's version).
Codex P1 fixed in-merge (ed4ad8f): check-android.sh now rejects any argument with exit 2 naming the offender, before the first subprocess (operator-script argument contract). Verified: --dry-run/--help/stray positional all exit 2; bash -n clean.
Verification (worktree off origin/main):
- cargo test -p id-client (pkgs/id): 5 passed (3 session unit + 1 android_dependency_boundary + 1 authenticated_session), 0 failed
- cargo fmt -p id-client --check: clean
- ./android/check-android.sh full gate: exit 0 (host tests + aarch64-linux-android resolve)
- cargo tree audit: direct deps are the 8 client-safe leaves + anyhow/ed25519/rand/serde/thiserror; hyper present only transitively via reqwest/iroh through id-sync/id-core (client HTTP stack, compiles on the Android target per the gate).
Follow-up class (not blocking, recorded): Codex P1 property tests for session invariants; P2 resolved-graph boundary check; P2 facade re-exports for the leaf crates.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|