GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@dezren39 dezren39 commented Nov 23, 2026 •
edited by coderabbitai Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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)"
  }
}

Show it working
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.

All reactions
@dezren39
Slice 1 of #7938: client-only id-client facade and Android arm64 targ…
5ac7615
…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

coderabbitai Bot commented Nov 23, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Explain Change →

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

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Nov 23, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

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.

All reactions
Comment thread pkgs/id/android/check-android.sh
Comment on lines +22 to +23
set -euo pipefail
cd "$(dirname "$0")/.."

@chatgpt-codex-connector chatgpt-codex-connector Bot Nov 23, 2026

Copy link
Copy Markdown

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.

P1 Badge 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.

All reactions
Comment thread pkgs/id/crates/id-client/tests/android_dependency_boundary.rs
Comment on lines +63 to +66
let manifest = manifest_deps();
for forbidden in FORBIDDEN {
assert!(
!names_crate(&manifest, forbidden),

@chatgpt-codex-connector chatgpt-codex-connector Bot Nov 23, 2026

Copy link
Copy Markdown

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.

P2 Badge 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.

All reactions
Comment thread pkgs/id/crates/id-client/src/lib.rs
Comment on lines +20 to +22
pub mod session;

pub use session::{ClientIdentity, SessionError, TestWorld};

@chatgpt-codex-connector chatgpt-codex-connector Bot Nov 23, 2026

Copy link
Copy Markdown

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.

P2 Badge 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.

All reactions
@dezren39 dezren39 mentioned this pull request Nov 23, 2026
Android client slice 1: client-only Rust facade and arm64 build #13403
Closed
dezren39 added 2 commits November 23, 2026 10:45
@dezren39
revert: drop accidentally swept-in schedule-registry edit (not mine)
a307b47
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.
@dezren39
merge: revert stray schedule-registry edit out of slice-1 PR (#13445)
471b2bd
@dezren39

dezren39 commented Nov 23, 2026

Copy link
Copy Markdown
Member Author

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Nov 23, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

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.

All reactions
Comment thread pkgs/id/crates/id-client/src/session.rs
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));

@chatgpt-codex-connector chatgpt-codex-connector Bot Nov 23, 2026

Copy link
Copy Markdown

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.

P1 Badge 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.

All reactions
This was referenced Nov 23, 2026
ID program — full investigation, design completion & build-out (program tracking) #13240
Open
AUDIT-7 Lane 1 follow-up: rebase-and-merge queue for 90 blocked PRs (batches A–H) #13903
Closed
dezren39 added 2 commits November 23, 2026 21:26
@dezren39
Merge remote-tracking branch 'origin/main' into tmp-13445
2f7a206
# Conflicts:
#	doc/fleet-schedule-registry.md
@dezren39
check-android.sh: reject unexpected arguments (operator-script argume…
ed4ad8f
…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.
@dezren39
dezren39 merged commit 035209f into main Nov 24, 2026
1 of 2 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 deleted the lane-any-n-21350-id-client-slice1 branch November 24, 2026 03:31
@dezren39

dezren39 commented Nov 24, 2026

Copy link
Copy Markdown
Member Author

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@developing-today-fleet developing-today-fleet Bot mentioned this pull request Nov 26, 2026
id: implement: native Android client v1 — slices from the #5780 design #7938
Open
@dezren39 dezren39 mentioned this pull request Nov 27, 2026
Android client slice 2: identity and enrollment spike (Ed25519 Keystore/StrongBox + envelope fallback) #15842
Closed
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Android client slice 1: client-only Rust facade and arm64 build

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dezren39
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.