Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/hop/blob/main/REVIEW-LESSONS.md # hop Hop: a small native macOS launcher. Clipboard history, find, on-device dictation and your coding agent behind one key. Brought by drakestapleton Sign in to star 1 stars 1 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `hop / REVIEW-LESSONS.md` 97 lines ยท 6611 bytes Raw Blame History Rendered 1 # Pre-review checks and complete evidence 2 3 Intent: retain every review finding and its source identity, and run the applicable 4 checks before spending a review round. A capture result is never approval to land. 5 6 The original Hop review lost its detailed report because the caller selected OMP's 7 last text response, disabled session persistence, and forbade even a verdict-file 8 write. Storage-only checks had also missed Agent/voice/mode interactions. Later 9 proposed capture and validation tools grew into a separate policy framework and 10 introduced their own defects. These rejected proposals remain unshipped. Their 11 verdicts are retained, not changed to passes and not erased by this corrective action. 12 13 Other author errors were assuming a stream schema from a synthetic fixture and 14 starting review concurrently with a fresh-host test that had not passed. Source 15 checks and review launch were separate manual commands, so the sequencing was not 16 enforced. The native publishing route and manual review checks were never replaced. 17 18 Use `tools/review-after-checks.py BASE TASK_FILE NEW_OUTPUT_DIRECTORY -- CHECK ARGS`. 19 It waits for the supplied check command to succeed and for the source to remain 20 unchanged in HEAD and Git porcelain status before starting a fresh Opus 5.5 medium request. It selects JSON stdout and a 21 new persistent session directory, saves all stdout/stderr without selecting a final 22 message, and requires a nonempty verdict whose first line names the exact head. 23 The applicable checks and their time bounds remain the operator's responsibility. 24 There is no default review timeout; HOP_REVIEW_MAX_TIME is an optional explicit 25 operator limit. The per-invocation config disables the advisor, automatic model 26 fallback and context-driven model promotion without editing persistent settings. 27 Do not assume that a requested model proves which model answered: inspect every 28 assistant response and any model/advisor events in the retained stream. A model 29 change or advisory injection makes the record unsuitable for the required fresh 30 Opus-only review. 31 32 Use a fresh checkout and the check appropriate to this diff, not a no-op. 33 34 Before app review, exercise the production submission routes and their transitions: 35 idle/busy capture, explicit send, other screens, dictation and spoken commands, 36 sorting with a draft, retry/follow-up context, storage failure, corrupt data and 37 cooperating writers. Inspect the rendered decoration at both sizes, Reduce Motion, 38 and measured frame cost. Read the entire diff, including privacy/help text. Keep 39 all tests and evidence that still apply when changing implementation. 40 41 Voice entry checks must begin with a nonempty typed draft, both while idle and 42 busy, with Hop visible and hidden, and with storage refusing writes. Empty-draft 43 fixtures missed an assignment that replaced the draft before capture. The Flow 44 checks in the existing build gate now exercise these combinations through the 45 production command-delivery method and assert exact text and no unexpected send. 46 47 The runner's regression tests emit a long original report followed by a short 48 reply and require byte-for-byte retention of both. They also require failed or 49 source-mutating checks to prevent reviewer launch, and missing/wrong/failing or 50 source-mutating review runs to stop while retaining their raw output. Run them on 51 the relevant hosts before reviewing the runner itself: 52 `PYTHONDONTWRITEBYTECODE=1 python3 -m unittest discover -s tests -p 'test*.py'`. 53 54 Read these lessons before launch. The runner does not append them or other author 55 RCA conclusions to the reviewer task. Failed checks, command errors and abnormal 56 review exits retain a result record with the available exit status, failure, file 57 hashes and post-run HEAD/Git porcelain state. This narrow boundary excludes ignored 58 files and Git administrative state; it is not a sandbox or complete state snapshot. 59 An uncatchable process kill or filesystem failure can still interrupt record writes. 60 61 After capture, read the complete verdict and full recorded model/requested-effort 62 metadata. Verify source head/base and every finding's written disposition. A REJECT 63 or unanswered finding still stops landing. Check the launcher and session record; 64 this runner does not authenticate the provider, validate verdict semantics, enforce 65 review counts, sandbox tools, or authorize publication or installation. No public 66 build, installation or reproducibility command requires a private review directory. 67 68 All earlier primary reports and the interrupted attempt remain in the task's RCCA 69 inventory, including the historical partial report whose missing findings are 70 unknown. Counts are cumulative; a new implementation does not erase them. This 71 independent corrective-action review is required before this action can land. The 72 app's next review remains its fourth attempt and waits for the landed correction. 73 74 The bounded correction itself exposed a previously unexamined launcher dependency: 75 OMP global configuration enabled an advisory model and automatic fallback. The 76 initial fixture only checked requested model flags, not that configuration. The 77 per-run overlay is now retained and tested with the launch record; a real transport 78 smoke and the full source-review stream supplement the fixture. The author also 79 launched the first correction review directly instead of using its checked runner. 80 Subsequent correction review uses the runner after its fresh-host tests pass. 81 82 ## Check the changed verification component 83 84 An author added an application evidence verifier but ran only the existing review 85 capture tests. Those tests exercised a different component, so false acceptance in 86 the new verifier survived pre-review. For candidates containing the exact path 87 `tools/check-app-review.py`, the launcher now requires the exact file 88 `tests/test_app_review.py` and runs its unittest suite before the supplied CHECK. 89 Missing tests or a nonzero suite exit refuses review. Its stdout is in checks.log 90 and its exit status is verifier_test_exit_code in result.json. Capture success and 91 passing tests do not prove coverage; the operator/reviewer must inspect that the 92 suite exercises the actual verifier and meaningful refusal cases. Skipped tests, 93 renamed verifiers, ignored files and malicious test code are not authenticated by 94 this bounded path-specific check. A rename must update this contract and trigger. 95 The runner regressions cover missing, failing and passing verifier tests, followed 96 by the caller check and fake reviewer. This condition supplements the caller CHECK; 97 it does not replace relevant application checks or authorize release.