mirror of
https://github.com/morluto/rea.git
synced 2026-11-05 07:47:29 +00:00
[GH-ISSUE #3210] [Bug] Malformed start-adb-activity extras omit required error classification and recovery fields #1148
Closed
opened 2026-10-15 18:31:31 +00:00 by bsakaguchi
·
2 comments
No Branch/Tag specified
main
release-please--branches--main--components--rea-agents
release-please--branches--main--components--rea-agents--release-notes
codex/procedure-reference-stacked
codex/kuna-independent-retry
codex/byte-search-overlay-coverage
codex/open-failure-target-receipt
codex/kuna-xref-evidence
codex/ghidra-ambiguous-procedure-recovery
codex/function-source-bundle
codex/trace-function-integration-prototype
codex/snapshot-source-closure
codex/recorded-evidence-array-pages
codex/evidence-recovery-redesign
codex/trace-feature-address-scope
codex/call-discovery-scope
codex/ghidra-literal-candidate-evidence
codex/decompile-directory-independent-retry
codex/retry-provenance-base
codex/value-flow-capability-experiment
codex/ghidra-containing-instruction
cursor/readme-discord-button-ef9f
dependabot/github_actions/actions/setup-node-7.1.0
dependabot/github_actions/actions/upload-artifact-7.0.2
dependabot/npm_and_yarn/npm-minor-and-patch-d8d97ce6df
codex/kuna-1989
fix/8559-native-ui-fixture-ownership
fix/8555-go-verifier-mcp-ownership
codex/provider-capability-recovery
fix/8642-rizin-target-stdin
codex/ghidra-memory-effect-scope
codex/ghidra-annotation-entry-selector
codex/ghidra-readonly-recovery
codex/ghidra-regex-verifier-recovery
codex/evidence-discovery-view-guidance
fix/8545-bulk-append-overflow
fix/8428-navigation-refusal-alternatives
codex/address-context-recovery
codex/matching-member-limitations
codex/unknown-scope-contract
codex/evidence-view-guidance
feat/8373-native-trace-views
codex/ghidra-snapshot-verifier-binding
codex/elf-export-visibility
codex/evidence-view-recovery
codex/native-reference-cli-help
codex/provider-candidate-observation-scope
codex/kuna-session-verification
codex/ghidra-switch-lifetime-guidance
codex/pseudocode-paging-discovery
codex/clarify-evidence-view-support
codex/kuna-xrefs-selector-recovery
codex/context-capacity-recovery
codex/evidence-closure-large-links
codex/same-function-evidence-identity
codex/ghidra-verifier-inspected-jdk
codex/audit-guided-workflows
codex/crash-prompt-retained-dossiers
codex/analysis-view-error-recovery
codex/kuna-verifier-target-selection
codex/ghidra-selected-project-call-coverage
codex/docs-native-analysis-scope
codex/ghidra-java-socket-boundary
codex/ghidra-retained-snapshot-verifier
codex/ghidra-search-inventory-facts
fix/8284-zero-argument-parameter-bindings
fix/8198-ui-action-handler-offset
fix/8257-elf-entry-label-identity
fix/8304-deferred-output-schema-projection
fix/8277-call-path-computed-target-uncertainty
fix/pr-8089-conflicts
fix/ci-static-duplicate-export
dependabot/npm_and_yarn/lint-staged-17.6.0
dependabot/github_actions/actions/download-artifact-8.0.2
dependabot/npm_and_yarn/write-file-atomic-8.0.0
dependabot/npm_and_yarn/canonicalize-5.1.0
dependabot/github_actions/actions/cache/restore-6.1.0
dependabot/npm_and_yarn/toon-format/toon-4.4.0
dependabot/github_actions/actions/deploy-pages-5.0.1
codex/review-fixes-pr-2403
codex/review-fixes-pr-2400
codex/process-terminal-width
codex/test-brittleness-cleanup
verify/7167-browser-connect-macos
fix/7167-browser-connect
feat/native-matching-allowance-setting
feat/browser-scenario-dry-run
test/managed-caller-parameters-20261024
codex/parser-fortythird-boundaries
fix/6926-pinvoke-platform-decorations-20261023
fix/6889-har-body-encoding-20261023
fix/6888-sqlite-schema-budget-20261023
fix/dependency-security-gates-6708
cursor/evidence-overwrite-rebase-b4ac
feat/4057-verify-native-exports
fix/windows-acl-observer-overhead-20261022
cursor/erlang-beam-restack-4476
cursor/pe-certificate-review-bf32
fix/6116-javascript-application-fs-errors
fix/6061-unmapped-runtime-script-unknown
feat/browser-scenario-summary
fix/pe-certificates
codex/verify-3407
cursor/rebase-5699
cursor/rebase-5352
cursor/rebase-5600
cursor/fix-cli-schema-omission-10a8
codex/audit-hopper-shutdown-reasons-20261021
fix/demangle-swift-omitted-record
fix/nib-boolean-value-types
cursor/cancellation-partial-observation-a5ac
fix/ib-object-limit-reasons
fix/electron-fuse-limit-advice
fix/kuna-doctor-dangling-cache
fix/fixed-budget-refusal-advice
fix/js-ipc-listener-dedup
fix/js-return-member-provenance
fix/dmg-integrity-retry-advice
fix/ida-doctor-readiness
fix/kuna-version-probe-output-drain
fix/legacy-swift-runtime-name-matching
fix/dylib-lazy-load-commands
fix/browser-scenario-startup-cancel
fix/swift-nested-punycode-classification
fix/compare-unselected-scopes
fix/objc-method-budget-coverage
fix/dmg-mounted-root-observations
audit/ci-tests-20261019-round2
release/6.7.0
fix/wabt-cleanup-retry-resolution
fix/electron-fuse-elf-pe-architecture
fix/native-plist-descriptor-ownership
fix/kuna-caller-cleanup-ownership
experiment/atomic-codemode-20261016
review/first-contributor-3776
fix/call-resolution-full-read-cycles
fix/member-mutation-selection-repeat
experiment/atomic-re-tools-20261015
perf/member-mutation-lazy-origins
perf/static-network-mutation-index
fix/hopper-startup-lifecycle
audit/3050-windows-proof-20261015
feat/windows-window-capture-2183
audit/3049-windows-proof-20261015
audit/3735-macos-fixtures-20261015
fix/batch-decompile-null-pseudocode
fix/kuna-inventory-honors-jobs
experiment/browser-codemode-tool-design-20261015
fix/hopper-clean-runtime-argv
codex/review-2049-27f1b367
review-fixes/pr-2787-routing
fix/3360-scoped-this-emitters
fix/3367-replaced-global-effects
fix/3838-compact-any-value-items
test/hopper-download-probe-20261015
codex/windows-runtime-creation-red-green-20261015
codex/windows-readonly-root-red-green-20261015
codex/windows-root-share-red-green-20261015
codex/exp-1685-win-mcp-startup
codex/bug-sweep-20261015
investigate/2190-windows-package-phases
investigate/3543-macos-cli-deadline
perf/3281-reverse-tools-feedback-quality
fix/3406-hopper-doctor-fixture
fix/3341-wrapper-require-test-context
fix/3301-owned-uninstall-fixtures
fix/3164-compiler-input-ownership
fix/pcap-cleanup-stdout-newline-20261014
perf/interface-builder-summary
codex/review-fixes-pr-1977
fix/ghidra-effective-jvm-platform
fix/docs-turkish-rust-link-20261013
fix/main-maintenance-ci-20261010
fix/recover-binary-session-process-effects
codex/review-fixes-pr-2457
codex/ci-required-cancellation-gate
fix/main-format-baseline-20261013
fix/setup-preserve-entry-fields
cursor/restore-main-checks-1ffc
fix/ghidra-bridge-hashmap-import
codex/shared-ci-jadx-json-default-20261013
codex/shared-ci-ghidra-test-groups-20261013
codex/shared-ci-java-fixture-format-20261013
codex/fix-intrinsic-invocation-boundaries
test/release-preflight-reusable-jobs
test/js-parameter-provenance-expectation
fix/linux-hopper-verification-current
test/2419-ghidra-elf-probe-size
followup/pr-1544-native-ida
codex/fold-pr-2230-contribution
docs/readme-responsible-use
fix/issue-2064
fix/issue-2050
fix/issue-2053
fix/issue-1968
fix/issue-1945
experiment/codemode-bridge-20261011
fix/tool-effects-negative-wording-1904-20261012
fix/1842-electron-interop-provenance
feat/recover-javascript-multi-input
refactor/website-i18n-prep
fix/nativeaot-pe-virtual-extent
fix/browser-verifier-ci-hang
fix/pe-resources-input-selection
docs/beginner-friendly-guides
docs/beginner-setup-guide
fix/javascript-analysis-worker-1563
fix/1649-ghidra-duplicate-names
fix/javascript-export-keys-integration-1369
test/maintenance-boundary-contracts-20261011
review/javascript-export-keys-1369
review/process-live-progress-1483
test/javascript-1495-growth-ratio
fix/ci-escape-timing
docs/normalized-terminal-geometry-1450
release/6.3.0
archive/release-6.3.0-pr1381
release/6.2.0
fix/electron-preload-dynamic-override
fix/javascript-self-referential-bundler-edges
release/6.1.0
cursor/grok-client-cherry-pick-0b56
feat/signature-posture
feat/dyld-shared-cache
feat/artifact-integrity-policy
feat/pkg-inventory
release/6.0.0
chore/sync-release-5.0.0
release/5.0.0
cursor/cloud-agent-node-787e
fix/javascript-xhr-open-endpoints
review/pr-711-realpath-fallback-wording
cleanup/replay-confinement
codex/test-suite-performance
codex/issue-foundations
codex/address-open-issues-2026-07-20
agent/javascript-vite-rollup-esbuild-adapters
agent/process-cleanup
agent/triage-integration
agent/unknown-commands-registry
feat/mcp-identity-metadata
morlvps/issue_cleanup
codex/installer-redesign
morl/roadmap-investigation-core
morl/roadmap-investigation-docs
release-please--branches--main--components--rea
rea-agents-6.8.0
rea-agents-6.7.0
rea-agents-6.6.0
experiment/atomic-codemode-wait-runtime-20261016
rea-agents-6.5.0
rea-agents-6.4.0
rea-agents-6.3.0
rea-agents-6.2.0
rea-agents-6.1.0
rea-agents-6.0.0
rea-agents-5.0.0
rea-agents-4.1.0
rea-agents-4.0.1
rea-agents-4.0.0
rea-agents-3.2.1
rea-agents-3.2.0
rea-agents-3.1.0
rea-agents-3.0.0
rea-agents-2.7.0
rea-agents-2.6.0
rea-agents-2.5.1
rea-agents-2.5.0
rea-agents-2.4.0
rea-agents-2.3.0
rea-agents-2.2.0
rea-agents-2.1.0
rea-agents-2.0.0
rea-agents-1.7.0
rea-agents-1.6.0
rea-agents-1.5.0
rea-agents-1.4.0
rea-agents-1.3.0
rea-agents-1.2.0
rea-agents-1.1.0
rea-agents-1.0.0
rea-agents-0.5.0
rea-agents-0.4.0
rea-agents-0.3.0
rea-0.2.1
rea-0.2.0
Labels
Clear labels
area: bridge
area: bridge
area: build
area: build
area: build
area: cli
area: domain
area: evidence
area: mcp
area: native
area: providers
area: runtime
area: server
area: setup
area: tests
bug
design
documentation
enhancement
enhancement
enhancement
experiment
help wanted
i18n
invalid
P0: critical
P1: high
P2: medium
P2: medium
P2: medium
P3: low
performance
provider-request
pull-request
Mirrored from GitHub Pull Request
question
roadmap
triage
No labels
area: bridge
area: bridge
area: build
area: build
area: build
area: cli
area: domain
area: evidence
area: mcp
area: native
area: providers
area: runtime
area: server
area: setup
area: tests
bug
design
documentation
enhancement
enhancement
enhancement
experiment
help wanted
i18n
invalid
P0: critical
P1: high
P2: medium
P2: medium
P2: medium
P3: low
performance
provider-request
pull-request
question
roadmap
triage
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set.
Reference
morluto/rea#1148
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @coygeek on GitHub (Oct 14, 2026).
Original GitHub issue: https://github.com/morluto/rea/issues/3210
Before submitting
Area
CLI
Observed behavior
rea start-adb-activityrejects a nonempty--extravalue with fewer than two colons, but its JSON response contains onlycode: "UNKNOWN"and a message. It omits the requiredcategory,retryable, andremediationfields from the shared error contract.The values
string:key,:, andstringeach exited 1, wrote the incomplete JSON error to stdout, and wrote no stderr. All three payloads failed validation against the checked-in error schema. The unsupported-type controlbogus:key:valueexited 1 with a schema-validinvalid_requestresponse. The valid-extra controlstring:key:valuereached provider admission and returned a schema-validcapability_unavailableresponse for the deliberately missing adb executable.Reproduction
From a clean checkout at
58300885207133422af235e0f2b10658cf958b03, use the repository's pinned Node.js and npm toolchain and prepare the standalone runtime:Run this from the checkout root in a shell without
set -e. It creates an isolated home and selects a nonexistent adb executable. No input files, real adb client, device, or emulator are needed. The first three inputs reproduce missing delimiters; the last two are controls.Observe that each of the first three commands exits 1 with
UNKNOWNand no category, retryability, or remediation. Compare the two controls, which retain canonical error fields.Verification used the prepared baseline runtime and locked dependencies. The clean-checkout install and build prerequisites above were not rerun during that verification.
Expected behavior
Malformed typed-extra syntax should return
code: "invalid_request",category: "invalid_input", a nonempty message, a booleanretryable, and a nonemptyremediation.action. The command should exit 1 before attempting a device operation.docs/error-contract.schema.jsonrequires these fields for the invalid_request variant and does not allow UNKNOWN as an error code. Details are optional for invalid_request.src/contracts/errorSchemas.ts:34describes the stable schema shared by every CLI and MCP error surface.AGENTS.md, under Architecture and Cleanup, requires parsing unknown boundary values and modeling expected failures with the tagged error algebra and Result. The command'sstart-adb-activity --helpdocuments repeatabletype:key:valueextras.Impact and scope
Callers cannot classify these malformed-input failures or read retryability and recovery through the shared error contract. The reproduced defect is bounded to nonempty extras with fewer than two colons. Input rejection and exit status remain correct, and no device operation was observed for those malformed values. No downstream consumer crash was tested.
Correcting the value to
type:key:valueis a practical workaround for submitting the intended request. The valid-extra control demonstrated normal provider admission, rather than a successful activity launch. That workaround does not restore canonical failure handling for callers that must process malformed input.REA version
6.4.0 (main at
5830088520)Runtime and platform
Node 26.10.0; macOS 27.0 arm64. The Node version was measured. The OS and architecture are supplied platform context and were not independently established during verification.
Target and artifact context
CLI typed-extra parsing with serial
emulator-5554and actionandroid.intent.action.VIEW. The serial is a placeholder; no device or emulator was contacted. Each process used isolated HOME and XDG directories and an intentionally nonexistent REA_ADB_PATH. No binary or artifact input is required.Interface
CLI
Earliest failure stage
Request parsing or validation
Relevant output or evidence
Typed outcome or recovery expected
Return a schema-valid invalid_request projection with category invalid_input, boolean retryability, and a nonempty remediation.action for each malformed delimiter case, while preserving exit 1 and rejection before provider execution. Keep canonical rejection for the unsupported-type control. Keep valid-extra parsing reaching provider admission and reporting the intentionally missing adb executable as capability_unavailable. These controls distinguish restored classification from blanket rejection of every extra.
Analysis or suspected cause
Source-derived at the reported baseline.
src/cli/adbCommands.ts:344accepts any nonempty string as an extra. The parser atsrc/cli/adbCommands.ts:352searches for two colons and throws a plain Error atsrc/cli/adbCommands.ts:356when either delimiter is missing. This occurs before the shared execute call atsrc/cli/adbCommands.ts:368.The execute wrapper at
src/cli/adbCommands.ts:24runs the shared service and projects its typed failure atsrc/cli/adbCommands.ts:35. Shared schema rejection atsrc/application/ProviderOperationExecution.ts:48instead returns AnalysisInputError before provider execution. The delimiter throw bypasses that projection and reaches Incur's generic UNKNOWN handler. Source inspection explains the observed payload difference; the executable's stdout and exit status establish the failure.Additional context
P2 is supported because this bounded input-error path violates a machine-readable classification and recovery contract. The command still rejects the input, and correcting the delimiter syntax proceeds to normal provider admission. No data loss, security boundary crossing, or downstream consumer failure was observed.
@CassieFox23 commented on GitHub (Oct 14, 2026):
TL;DR: Confirmed on Linux. Main still has this bug. Three bad
--extravalues returnUNKNOWNwith no category, retry flag or remediation, and they fail the schema.Results
I ran your recipe on main
efbc486b9(#3606) (package version 6.5.0). It is 161 commits after your base58300885. The code atsrc/cli/adbCommands.tsline 358 still throws a plainError. The one commit that touched that file since your base,864314ac8, did not change the throw.I used five cases on Node 24.18.0 and on Node 26.11.1. Every run exited 1 with an empty stderr. I checked each stdout against
docs/error-contract.schema.jsonwith the repo's ajv 8.20.0.--extrastring:keyUNKNOWNand a message only:UNKNOWNand a message onlystringUNKNOWNand a message onlybogus:key:value(control)invalid_request,invalid_inputstring:key:value(control)capability_unavailablefor the missing adbThe results match your report on both Node versions. On this box the three
UNKNOWNpayloads print over several lines, where your report shows one line. I did not look into why.An open pull request, #3271 by paoValle, is titled "classify malformed adb --extra as invalid input". I only read that pull request's metadata. I did not build or run its branch.
Not run
58300885(main already reproduces it).Thanks, coygeek, for the clear report and the controls.
Commands
I unrolled your loop into five runs. Your report names no schema command, so I wrote a short ajv script. It uses Ajv2020 from the repo.
Test setup
efbc486b9/58300885🤖 Generated with Claude Code (Sonnet 5.5, verified by Opus 5.5) 🦊
@morluto commented on GitHub (Oct 14, 2026):
Delivered on main in fffb07419.
Malformed ADB extras threw an untyped Error before operation projection. The CLI boundary now returns typed invalid input while retaining valid-extra and unsupported-type behavior.
Validation: ADB CLI and MCP admission regressions. Full exact-revision qualification passed.