interplane.Get Omega
Read in your language

hop

Hop: a small native macOS launcher. Clipboard history, find, on-device dictation and your coding agent behind one key.

Brought by drakestapleton

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