Repository navigation
fix(adb): drop the remaining exclusivity claim from push guidance - #2868
CodesWithRobi wants to merge 1 commit into
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
[Low impact] The PR appears safe to merge; no blocking issues were found. SummaryCorrects the remaining exclusivity claim in
Reviews (9) · Last reviewed commit: "fix(adb): drop the remaining exclusivity..." · Reviewed by Greptile |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fc9eab7465
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5a9d7d82de
ℹ️ 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".
| expect(pushed.ok).toBe(true); | ||
| if (!pushed.ok) throw new Error(pushed.error.message); |
There was a problem hiding this comment.
Throw the typed error before asserting push success
When either new push scenario returns an error, this assertion throws before the following branch can surface the provider's typed AnalysisError, and the later new Error(message) would discard its code and details anyway; the same pattern is repeated at lines 790-791. docs/testing.md:170-174 specifically requires successful Result tests to throw the typed error before asserting the value and says a preceding .ok assertion adds no coverage, so use if (!pushed.ok) throw pushed.error before the result and limitation assertions.
AGENTS.md reference: AGENTS.md:L77-L77
Useful? React with 👍 / 👎.
|
Source fixes and publication evidence for the review findings below. Tests and executable checks were skipped at the maintainer's request. Findings that still require a decision or execution evidence remain open. The stale exclusivity claim is removed from AdbProvider’s source documentation. Provider tests now assert the exact limitations for both available and unavailable device-side sha256sum, including the device mutation statement, so the audit covers the emitted provider evidence as well as the catalog contract. Commit 5a9d7d8 is the verified open PR head. Tests were not run. |
0611cc6 to
dfef752
Compare
dfef752 to
5356022
Compare
|
Rebased onto |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5356022886
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| device_digest_source: "device_sha256sum", | ||
| }); | ||
| expect(pushed.value.limitations).toEqual([ | ||
| "Push writes the caller's file to the device, mutating device state", |
There was a problem hiding this comment.
Update the produced limitation text before asserting it
On every non-Windows run of src/adb/AdbProvider.test.ts, a successful push reaches AdbProvider.pushFile, which still returns "Push writes the caller's file to the device" at src/adb/AdbProvider.ts:1711 (and again at line 1733 without sha256sum), so this new exact expectation fails in both changed cases. The fresh evidence in this revision is the exact limitations assertion itself; update the producing limitation strings rather than only the tests so the advertised behavior is actually changed.
AGENTS.md reference: AGENTS.md:L25-L25
Useful? React with 👍 / 👎.
5356022 to
f331e53
Compare
Share tagged readiness observations, retain partial provider facts, authenticate bridge identity, bound diagnostics, and preserve cancellation and lost-session reasons. Fail closed for unparsed MIPS ABI attributes and macOS saved Hopper databases without a script-capable bridge route. Reviewed fixes: #2010, #2108, #2513, #2695, #2731, #2771, #2828, #2867, #2868, #2870, #2880, #2919, #2945, #2961, #2981, #2998, #3000, #3002. Validation: 285 focused source/boundary tests passed. Real Ghidra, IDA, Linux Hopper, and Windows provider runs were not repeated. BREAKING CHANGE: MIPS targets with unresolved GNU ABI attributes and saved Hopper databases on macOS are refused rather than advertised as supported.
Use one named input-schema projection for clients and catalog identity, preserve dialect declarations, and bound compact schema depth. Keep canonical SDK output validation when output advertisements are disabled. Release request-owned state on cancellation and carry upstream limitations through composed workflows. Preserve doctor full-output envelopes and validate navigation facts at their owner. Reviewed fixes: #2088, #2108, #2513, #2684, #2693, #2695, #2836, #2864, #2868, #2877, #2933, #2998, #3002, #3015. Validation: focused schema, SDK output-validation, context, and workflow tests passed; no schema dialect or canonical output validation was relaxed.
|
Edit: I was wrong here, so I took this pull request off tracker #3582. CodesWithRobi is right, and I checked main at b7dcf78 too. The class comment in 🤖 Generated with Claude Code (Opus 5.5) 🦊 |
|
Thanks for the tracker. Confirming: this one still has work that is not on 1. The class comment is still on
2. The tests are not on
Merge-clean against |
|
Compared this PR with main The earlier catalog guidance from #2602 was fixed, but main still carries the stale AdbProvider claim that push is the only device mutation. This PR's provider wording and tool-effects/limitations assertions remain useful. Please keep the source documentation and emitted push_adb_file Evidence consistent with the actual effect catalog, including the cases with and without device-side sha256sum. The branch already records a source correction for this; this triage comment is not fresh provider execution or a claim that it is merged. PR head reviewed: |
The push_adb_file contract text already describes the tool as device-mutating after morluto#2990, but the AdbProvider class comment still called the caller-requested file push the only device mutation. Correct that comment and guard the invariant with tests: no tool contract may claim to be the only device-mutating operation, and push_adb_file reports its device mutation with and without device-side sha256sum verification. Refs morluto#2602.
f331e53 to
56bdd57
Compare
The push_adb_file contract text already describes the tool as device-mutating after #2990, but the AdbProvider class comment still called the caller-requested file push the only device mutation. Correct that comment and guard the invariant with tests: no tool contract may claim to be the only device-mutating operation, and push_adb_file reports its device mutation with and without device-side sha256sum verification. Refs #2602. Supersedes #2868 (follow-up to #2602) Co-Authored-By: gensokyo-dev <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Thanks! This landed on main in #10490 as its own commit, cherry-picked with your authorship kept (rebase merge). Closing in favor of that merge. |
Summary
#2990 fixed the false exclusivity in the
push_adb_filecontract text and closed #2602, but the change stopped at the contract surface:AdbProvider's class comment still described the caller-requested file push as the only device mutation, and nothing guards that claim from returning.This rebases onto current
mainand follows up on that fix (Refs #2602):AdbProviderclass comment;install,uninstall,start-app,start-activity, andstop-appalso mutate device state.push_adb_filedigest verdict: device-sidesha256sumverified, unavailable, and unrecognized output.The contract description and limitation strings stay as
maindefines them, so this no longer duplicates the merged fix.Problem and expected behavior
Smallest trigger: read
AdbProvider's class comment onmainafter #2990 — it still says the file push is the only device mutation, although several ADB tools declaremutatesDevice: trueinsrc/contracts/toolEffects.ts. Expected: no surface claims exclusivity, and a test keeps it that way.Change and scope
Documentation and tests only; no behavior change. The contract description and limitation strings are unchanged from
main, so the diff is limited to the missed comment and the new coverage. Not included: any change to ADB tool effects, schemas, or descriptions.Contract and boundary impact
AdbProviderdoc comment (src/adb/AdbProvider.ts); tests insrc/adb/AdbProvider.test.tsandsrc/contracts/toolEffects.test.tsmain)docs/public/product-catalog.json), package, or installation impact: noneExpected effects (check known effects; use documentation-only on its own).
Evidence and regression coverage
toolEffects.test.tsrejects any contract claiming to be the only device-mutating tool;AdbProvider.test.tsasserts the device-mutation limitation for every push digest verdict (verified, unavailable, unrecognized output).AdbProvidercomment claimed exclusivity whiletoolEffects.tsmarks several ADB tools as device-mutating.For evidence-bearing changes: not applicable.
Validation performed
On
mainf4b2ba131after rebasing:npm run test:local -- src/adb/AdbProvider.test.ts src/contracts/toolEffects.test.ts— 99 passednpm run check:fast— passnpm run docs:check— passMain's #6010 renamed the push limitation to "Push writes a private snapshot of the caller's file to the device" and added a third digest verdict. The assertion uses
toContainon that limitation, so it covers all verdicts without breaking on further wording changes.Compatibility, safety, and release
Author readiness
Human owner: @CodesWithRobi
Before merge
type(scope): outcome.