Skip to content

Fix documentation errors in Android.App.PrivateCompute (R137, pass 2) - #1823

Merged
jonathanpeppers merged 1 commit into
mainfrom
jonathanpeppers-review-privatecompute-docs-r137
Nov 25, 2026
Merged

jonathanpeppers merged 1 commit into
mainfrom
jonathanpeppers-review-privatecompute-docs-r137

Conversation

@jonathanpeppers

Copy link
Copy Markdown
Member

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: 6c29bb8811b6534c1543fabd60920ceb2a33a607

Dimension Assessment Rationale
Change confidence 9/10 ↑ The four added exceptions match the 37.2 Javadoc @throws and the current Android reference.
↑ NullPointerException is proven by Objects.requireNonNull before the binder call.
↓ The server side of egressData is not public, so the delivery path of the other three exceptions is not verified.
Diagnosis confidence 9/10 ↑ The managed docs omitted all four documented exceptions; a reviewer reported the same gap on #1794.
Evidence fit Unknown ↓ No user symptom; the gap was found during the documentation review.

Scope

Pass 2 documentation review for R137 (Android.App.PrivateCompute). Only the 7 assigned files: PccEgressException (+InterfaceConsts, +SensitiveCategoryInfo, +SensitiveCategoryInfo+InterfaceConsts), PccEgressExceptionStatusError, PccSandboxManager, PccService. All 7 files were created after 86f7744, so every Docs block is AI-authored. I reviewed 64 Docs blocks (7 type, 57 member); 14 are binding boilerplate that is out of scope.

Fix

PccSandboxManager.EgressData now documents SecurityException, IllegalArgumentException, IllegalStateException and NullPointerException.

Evidence: Android SDK source archive, SHA-256 9d637c3af6654a2f1b696b3d19c54bb77e38df2b0106116934703f314b3d4e84, src/android/app/privatecompute/PccSandboxManager.java:311-317 (@throws list) and :324-326 (Objects.requireNonNull for request, executor, callback before the binder call). The current Android reference lists the same four exceptions. The exception text follows the official text.

Uncertain findings (not changed)

  1. EgressData SecurityException, IllegalArgumentException, IllegalStateException: the android-17.0.0_r1 IPccSandboxManager.aidl has no egressData, and no newer public source exists. If the binder method is oneway, these exceptions may not reach the caller (compare the RuntimeException wrap found in Fix documentation errors in Android.App.PrivateCompute (R105, pass 2) #1794). I kept the official contract.
  2. PccEgressException(PccEgressExceptionStatusError) and PccEgressException(PccEgressExceptionStatusError, string): the summary and parameter text are verbatim from the Android reference, but the blocks have no Android reference link or attribution paragraph. The two sibling constructors have them. No pass-2 precedent adds attribution, so I did not change this.
  3. Official text names Java-only items: <c>StatusCode</c> (hidden @IntDef; the managed type is PccEgressExceptionStatusError), <c>SensitiveCategory</c> (hidden @LongDef) in ApplicableCategories, and <c>#FLAG_CATEGORY_HEALTH</c> in IsCategoryDetected (managed FlagCategoryHealth). This is official reference text and it is not false.

Checks

  • All 7 scoped XML files parse; no placeholders.
  • git diff --check passed; the diff is 4 inserted lines with CRLF endings kept.
  • All four exception cref targets exist in docs/xml/Java.Lang.
  • Rubber-duck review with gemini-4-argon found no issues. I verified the model in the local assistant_usage_events log (rows 297385, 297390, 297403).

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 25, 2026 03:06
@jonathanpeppers
jonathanpeppers enabled auto-merge (squash) November 25, 2026 03:06

Copilot AI 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.

🟢 Approval recommended

No active review issues are reported for the documentation-only update to the EgressData exception contracts.

No open issues 🎉

What changed in this PR

This documentation-only update fills in missing exception contracts for PccSandboxManager.EgressData in the Android Private Compute bindings.

Changes:

  • Documents security, invalid-request, and system-state exceptions.
  • Documents null-argument failures for request, executor, and callback.
File Description
docs/​xml/​Android.App.PrivateCompute/​PccSandboxManager.xml Adds four exception entries to EgressData documentation.

Review effort: Balanced

@jonathanpeppers

Copy link
Copy Markdown
Member Author

@dalexsoto review

@dalexsoto dalexsoto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approving. The four EgressData exception entries match the official Android 37.2 reference; all exception references and parameter names resolve against the managed signature. The change only adds documentation. Documenting the official contract while explicitly retaining the disclosed oneway-delivery uncertainty is reasonable.

@jonathanpeppers
jonathanpeppers merged commit e726139 into main Nov 25, 2026
4 checks passed
@jonathanpeppers
jonathanpeppers deleted the jonathanpeppers-review-privatecompute-docs-r137 branch November 25, 2026 04:11
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.

3 participants