Skip to content

feat(android): add opt-in package summaries and retained manifest views - #2438

Merged
N0zoM1z0 merged 3 commits into
mainfrom
perf/android-metadata-workflow-20261013
Oct 13, 2026
Merged

N0zoM1z0 merged 3 commits into
mainfrom
perf/android-metadata-workflow-20261013

Conversation

@N0zoM1z0

@N0zoM1z0 N0zoM1z0 commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

The real NewPipe metadata question previously received a 119,527-byte package reply containing decoded manifest and duplicate upstream output. Add explicit MCP detail: "summary" for all package/SDK/permission declarations, engine identity and counts while retaining complete original Evidence. Omitted/full requests and one-shot CLI remain complete; target/provider choices, analysis and cleanup are unchanged.

Return a distinct linked inspect_analysis_view summary. Read exact retained manifest text through kind: "android", facet: "manifest" and explicit UTF-16 pages without reopening the APK. Preserve nullable facts, original limitations, partial source status and APK versus engine identity. Reject unavailable retention before provider work. Existing servers keep the original complete request after schema discovery; no automatic fallback or general plugin/cache system is introduced.

Validation and measurements:

  • 27 relevant SDK/domain/Android boundary checks, a focused three-test rerun after a test-only schema typing correction, full supported compiler/lint pre-push and generated documentation/onboarding checks pass. The large protocol fixture reconstructs its exact 1 MiB manifest after source removal with one engine launch; it verifies production boundaries rather than real JADX behavior.
  • Actual NewPipe 0.29.1/JADX 0.7.1/Java SDK runs in complete/summary/summary/complete order preserve all selected facts/settings and three successful calls. Package replies fall to 8,659 bytes (about 92.8%); SDK workflows take 23.694–24.509 seconds. CPU/memory and these small timing differences establish no improvement. All three reply bytes fall 149,577 to 38,709.
  • Fresh old-runtime complete calls preserve the same original package output; authentic old Evidence imports, supports retained/portable summary and exact manifest pages, then exports unchanged under its original ID with an explicitly unavailable JADX JAR. Eleven real SDK calls preserve all 25,222 manifest units.
  • Four actual Codex CLI0.161.0 trials, requested gpt-5.6-terra high, retain APK bytes and remove profiles. Complete1:39,267 input /16,227 uncached /94.053s, facts pass. Summary1:128,417 /34,977 /150.401s, facts pass with three rejected client inputs and repeated reads. Summary2:54,437 /17,317 /123.677s, facts pass with three successful calls. Complete2 receives empty client tool metadata, makes zero MCP calls and fails facts; its20.774s is not comparable completed work. Root cause remains unknown. No model-token/time gain is claimed or promoted to defaults.
  • Owned phase-specific kernel witnesses verify payload completion/cleanup under unchanged oneCPU /3GiB early-stop /4GiB hard /noSwap /192task controls. Limit events are zero at that phase; final whole-scope counters and the complete physical grader remain unknown/false. Full catalog grows about0.34% versus8bc160 including intervening main changes.

Curated evidence: experiments/analysis-efficiency/android-package-summary.md. Raw receipts/models/profiles stay private outside Git. Frozen runtime28c84e78cf2fbfde4aceed345b773c59eb889f68 and file-table5332dda13981f043e146b3601ebec1f380d9f698280ca53d75786b638a912e11 are unchanged by later test/docs commits. Original failed attempts remain retained.

Own manual review completed with no blocking findings. All39 verification checks passed on exact finalhead35384474aa5425f5a4f257bb3976f8abbd4e9ec0; five release/publication checks were skipped. Normal exact-head squash merged f254f5a on2026-10-13UTC. The merged main tree is identical to the verified branch. Starts from merged mainca2d15b3ee965bd7ab27204cdf4b96b117d148c1 in an isolated worktree. Continues#2016. No release/deployment.

N0zoM1z0 and others added 3 commits October 13, 2026 01:53
Preserve complete default requests and provider analysis, retain full source Evidence, and expose exact manifest pages with explicit source coverage and APK identity. Reject unavailable retention before starting the engine. Verify public SDK schemas, portable Evidence, original defaults, Unicode boundaries and existing Android failure/cleanup contracts.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Use the same record boundary as existing public SDK tests when passing the advertised output schema to Ajv. Runtime validation and production behavior are unchanged.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Pin repeated real NewPipe SDK comparisons, original-request/Evidence compatibility, exact retained manifest continuation and actual Codex findings including errors and failed discovery. Separate reply-byte savings from unproven model-token/time benefits and preserve resource-counter uncertainty.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
@N0zoM1z0
N0zoM1z0 marked this pull request as ready for review October 13, 2026 02:21
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@N0zoM1z0
N0zoM1z0 merged commit f254f5a into main Oct 13, 2026
39 checks passed
@N0zoM1z0
N0zoM1z0 deleted the perf/android-metadata-workflow-20261013 branch October 13, 2026 02:21
@morluto morluto mentioned this pull request Oct 13, 2026
3 tasks done
@morluto morluto added enhancement New feature or request area: build Build, CI, packaging, and publishing labels Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: build Build, CI, packaging, and publishing enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants