From 50f0b4fe76e0707c7f0f5cce31d3e219ad0cbb54 Mon Sep 17 00:00:00 2001 From: David Schachter Date: Wed, 28 Oct 2026 19:41:45 -0700 Subject: [PATCH 1/3] docs: retro for ADFA-4930 PR stack Retrospective log, CLAUDE.md rules and learnings from the ADFA-4930 four-PR stack. CLAUDE.md "PR stack" bullet: independence means against current origin/stage; fix in the lowest PR; squash-merge recipe pointer. "Verify before you claim": confirm a revert changed something; disclose accepted limitations. learnings.md: stacked-PR section. Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01VKUthHVokuWKgP3ACLBii7 --- CLAUDE.md | 5 ++-- docs/process/learnings.md | 6 +++++ docs/process/retrospective.md | 49 +++++++++++++++++++++++++++++++++++ 3 files changed, 58 insertions(+), 2 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 4f9ce99a96..de99e874c2 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -70,7 +70,7 @@ CoGo depends on three other `appdevforall` repos; ARCHITECTURE.md (Sibling Repos - **Every screen must survive 2x font scale.** Users with low vision run large system fonts, and a screen that clips or hides content at 2.0 is broken for them. Verify any new or changed screen at font scale **1.0 and 2.0** (see Build & test, Emulator / device) and say in the PR that you did. Text grows, so: use `sp` for text and `dp` for spacing — never an `sp` dimen as a margin or padding; don't box text in a fixed `dp` height or width; give content that can grow somewhere to scroll; and reserve `maxLines`/`singleLine`/`ellipsize` for text that is genuinely disposable. - **Plan and size before building.** Prefer one PR per ticket/use case — don't force-split a coherent change (splitting has its own overhead when later edits span the pieces). - **Structure commits within a PR.** Separate mechanical/refactor commits from behavioral ones so reviewers can skim the boring parts and focus on the interesting ones. Treat ~500 LOC / ~10 files as a signal to reach for this discipline. Offer review-by-commit when it helps. -- **Use a PR stack when a single PR won't do.** For staged multi-module refactors (e.g. removing a dependency across many packages), split into a stack of PRs ordered easiest-to-hardest. Each PR in the stack must compile and pass tests independently, so a failure is isolated to the stage that caused it. The LOC ceiling for a single PR rises as LLM-assisted review matures. +- **Use a PR stack when a single PR won't do.** For staged multi-module refactors (e.g. removing a dependency across many packages), split into a stack of PRs ordered easiest-to-hardest. Each PR in the stack must compile and pass tests independently, so a failure is isolated to the stage that caused it. "Independently" means against current `origin/stage`, not the stale base the layer branched from: before merging a layer, merge `origin/stage` into it and compile. A clean `git merge-tree` does not mean it builds, and CI on the old base proves nothing. Land a fix in the lowest PR that has the bug, then merge it up the stack; a fix only in the top PR leaves every layer below it unsafe to merge alone. Squash-merging bottom-up makes each remaining layer conflict: merge the new base in, resolve to the layer's own side, and prove nothing changed (`git rev-parse HEAD^{tree}` equal to the pre-merge tree; recipe in `docs/process/learnings.md`). The LOC ceiling for a single PR rises as LLM-assisted review matures. - **Before designing a way to make a costly operation cheaper, ask whether the operation is needed at all.** When a problem's severity scales with how often something happens — connections opened per second, requests issued per page, calls made per frame — eliminating the operations usually beats optimizing each one. Check whether the platform offers a way to do the work without them before writing the plan for the optimized version. ADFA-5172/5176 is the cautionary case: the server opened one TCP connection per documentation request to our own process, and `WebViewClient.shouldInterceptRequest` served the same content with no connection at all, which HTTP keep-alive would only have made cheaper per connection. - **Keep docs in step with code.** When you change code, update the docs that describe it in the same change — a module's `README.md`, `ARCHITECTURE.md`, or an ADR — so a doc never outlives the API it documents (see REVIEW.md, Code quality). If the doc fix is out of scope, file a ticket rather than let it drift. - `.androidide_root` is a sentinel file tests use to locate the project root — don't delete it. @@ -81,8 +81,9 @@ CoGo depends on three other `appdevforall` repos; ARCHITECTURE.md (Sibling Repos Four independent reviews of work already reported as verified each found a real defect in it. Before calling a change done, verified, or behaviour-neutral: - **Sweep the siblings, not just the site in front of you.** After a fix, grep for the other places the same pattern lives — the `UPDATE` beside the `INSERT` you fixed, the third entry point beside the two you guarded, the `Content-Type` *parameters* beside the media type you sanitised. Say in the PR which sites you checked, and which you deliberately left alone. -- **Prove the regression test fails without the fix.** Revert the fix, run the new test, confirm it fails *for the reason it is named for*, then restore. A test that passes against the unfixed code pins nothing. Watch for expectations that all coincide with one boundary value: if every case equals the minimum, a `MIN()` stub passes the whole suite. +- **Prove the regression test fails without the fix.** Revert the fix, run the new test, confirm it fails *for the reason it is named for*, then restore. Check `git diff` is non-empty after reverting: a revert that matched nothing runs the unchanged code and proves nothing. A test that passes against the unfixed code pins nothing. Watch for expectations that all coincide with one boundary value: if every case equals the minimum, a `MIN()` stub passes the whole suite. - **Match the handler to the failure the change exists to fix.** `catch (Exception)` does not catch an `Error`. A guard on two of three call sites is not a guard. +- **Disclose the limitations you accept.** If you notice a gap while designing a fix and judge it acceptable, say so in the PR body or the reply, with the reasoning. A reviewer should not have to discover it. - **Every claim needs its check.** "No behaviour change", "this MIME type has rows in the shipped database", "that tool logs a warning" are all testable — run the query, read the sibling repo's source, diff the commits — or don't write them. Re-read the PR body before pushing: a description that was true at commit 1 is often false by commit 3. Research answers and plans make claims too. A fact about an outside system - what a platform provides, who ships a product, what an APK contains - is a hypothesis until you check it against source, docs, or the artifact itself. Check it before stating it, or label it unverified. diff --git a/docs/process/learnings.md b/docs/process/learnings.md index 63385744b7..74d409aaf2 100644 --- a/docs/process/learnings.md +++ b/docs/process/learnings.md @@ -11,6 +11,12 @@ - **An `APPROVED` badge does not mean the current code was approved.** This repo does not dismiss stale reviews on push, so an approval can predate the commits it appears to cover — five PRs at once, in one case, one of them approved two weeks before the code it labelled. Compare the commit each approval points at with the PR head: `gh pr view --json reviews,headRefOid` and check the approving review's `commit.oid` against `headRefOid`. Timestamps are a weaker proxy, and `latestReviews` can come back with an empty `commit.oid`, so use `reviews`. - Before pushing a follow-up commit to a community PR, check `gh pr view --json headRepositoryOwner` — the PR head is usually on the contributor's **fork**, so a same-named push to `origin` doesn't touch the PR and just creates a confusing dead branch that has to be deleted. +## Stacked PRs +- **Squash-merging a stack bottom-up leaves each layer above it conflicting.** The squash is a new commit holding the layer's changes, while the layer carries them as the original commits (seen on ADFA-4930, three times). Recipe: merge the new base into the layer; resolve every conflict to the layer's own side (`git checkout --ours -- `); delete any file git re-added that the layer renamed or removed (the pre-rename names came back); then prove nothing changed. `git rev-parse HEAD^{tree}` must equal the pre-merge head's, and `git diff --stat origin/stage` must show only the layer's own change, with the same file count as its PR diff. The merge commit then only makes the base an ancestor. +- **A merged branch is deleted on GitHub, so `git fetch origin origin/stage` fails and can leave `origin/stage` stale.** A tree comparison against the stale ref reported a false "differs". Fetch `stage` alone after a merge. +- **A stacked layer can compile against its old base and break on current `stage`.** `git merge-tree` reported no conflict because no one edited the line on both sides, but stage had made `FeatureFlags.isExperimentsEnabled` internal. Merge `origin/stage` into the layer and compile before asking for review. +- **CodeRabbit reports in inline comments and edits its first summary comment in place.** A poll for new reply comments saw only "Review triggered" and timed out while the findings sat inline. Watch inline comments and updated summaries too, and treat "No actionable comments" in the summary as the clean result. + ## Android / Kotlin - A config data class whose **default** values call framework APIs (e.g. `ServerConfig`'s paths default to `Environment.getExternalStorageDirectory()`) makes itself unconstructable in a JVM unit test that doesn't stub those APIs — `RuntimeException: Method ... not mocked`, thrown from the constructor before your test body runs. Such a test has to pass *every* framework-backed parameter explicitly (or `mockkStatic` the API, or run under Robolectric), which is easy to miss when copying a config from a test that already does. Prefer lazily-resolved paths in new config types. - `Handler.removeCallbacks(Runnable)` only removes callbacks posted by that *exact* `Handler` instance, not just the same `Looper` — `Handler(Looper.getMainLooper()).removeCallbacks(x)` won't cancel something posted via a *different* `Handler` bound to the same looper. Any post/cancel pair needs to share one `Handler` instance (see `TaskExecutor.mainThreadHandler`, added when replacing blankj's `ThreadUtils.getMainHandler()`). diff --git a/docs/process/retrospective.md b/docs/process/retrospective.md index 04892a426e..12f7b8e42f 100644 --- a/docs/process/retrospective.md +++ b/docs/process/retrospective.md @@ -1,5 +1,54 @@ # Retrospective Log +## 2026-10-28 - ADFA-4930: Gradle build output off FUSE storage, a four-PR stack from measurement to merge + +### Time Breakdown +| Started | Phase | 👤 Hands-On Time | 🤖 Span (agent + away) | Problems | +|---------|-------|-----------------|---------------|----------| +| Oct 13 9:03pm | Research: measure why FUSE builds are slow | ██████ 61m | █████████ 91m | | +| Oct 14 5:57pm | Benchmarks: Pixel A/B, warm daemon, file watching | ██████████████████████ 221m | ███████████████████████ 234m | ⚠ many monitor rounds | +| Oct 15 4:56pm | Build and test the four PRs (itel, Pixel) | █████████████████ 170m | █████████████████████████████ 294m | ⚠ onboarding bug, tickets | +| Oct 16 3:44pm | Review rounds 1-2: CodeRabbit, Hal, QA field, Jira | ███████████████████████ 232m | ███████████████████ 197m | ⚠ 3 permission blocks, wrong replies | +| Oct 27 5:20pm | Review round 3 on #2155 (Hal) | ███ 31m | █████ 55m | | +| Oct 28 5:52pm | Close-out: CodeRabbit, stack comments, merges, Done | ████ 45m | ██████████ 107m | ⚠ 3 rounds of squash conflicts | + +### Metrics +| Metric | Duration | +|--------|----------| +| Total wall-clock | 14.9 days (358.5 h) | +| Hands-on | 12.7 h (3.5%) | +| Automated agent time | about 3.3 h (0.9%), an estimate: active span minus hands-on | +| Idle/testing/away | 342.5 h (95.5%) | +| Retro analysis time | about 1 min | + +293 turns, estimated cost $566.80 at API list prices (not a bill). Hands-on is itself an estimate (reading 150 wpm, typing 60 wpm, 1 min buffer per turn), so agent time is the weakest figure. + +### Key Observations +- Most wall-clock time was waiting on reviewers: CodeRabbit's 2-reviews-per-hour limit (since lifted), then Hal Eisen's rounds. The agent worked longest alone while benchmark monitors ran. +- Hal's late findings were stack-hygiene misses: #2149 would not compile on current `stage` (stage made a flag `internal` after the layer branched; `git merge-tree` reported no conflict), and the symlink-safe delete existed only in the top PR. Both surfaced 11 days after the layers were built. +- Squash-merging the stack bottom-up made each remaining layer conflict, three times. Each fix was a merge resolved to the layer's side, then a tree-hash comparison. +- Auto mode blocked required outward writes five times (resolving threads, a force-push, a /tmp delete, replies posted together with resolves); each cost a round trip and was then approved. +- Agent errors cost rework: invented timestamps early, a reply that did not answer the reviewer, a false monitor alert, a "revert check" whose `sed` matched nothing, two unannounced 190 MB downloads in a fresh worktree. +- The agent saw the failed-first-sync gap while designing the banner marker, judged it acceptable and did not say so; Hal found it as an IMPORTANT finding. +- The phase with the most hands-on time was the review rounds (232 min, 31%), not the building. + +### Feedback +**What worked:** "Everything." +**What didn't:** "Nothing." +**Anything to do differently:** "No." + +### Actions Taken +| Issue | Action Type | Change | +|-------|-------------|--------| +| A layer built against a stale base broke on current `stage` | CLAUDE.md | "PR stack" bullet: "independently" means against current `origin/stage`; merge it in and compile before merging a layer | +| A fix landed only in the top PR left the layer below unsafe | CLAUDE.md | Same bullet: land a fix in the lowest PR that has the bug, then merge it up | +| Squash-merging bottom-up conflicted every remaining layer | CLAUDE.md, Doc | Same bullet gets one sentence; the full recipe (resolve to own side, delete re-added files, tree-hash check) is in learnings.md | +| A revert check ran the unchanged code | CLAUDE.md | "Prove the regression test fails" bullet: check `git diff` is non-empty after reverting | +| A known limitation went unmentioned until a reviewer found it | CLAUDE.md | New "Disclose the limitations you accept" bullet in "Verify before you claim" | +| Stale `origin/stage` after a merged branch was deleted; CodeRabbit's inline results missed by a poll; compile break hidden by `git merge-tree` | Doc | New "Stacked PRs" section in learnings.md | +| Five auto-mode blocks on outward writes | No action | Each was a deliberate guard that the user then approved; loosening it is the user's call | +| Reviewer wait time; one-off agent slips; the 190 MB jar downloads | No action | No repo rule affects reviewer capacity; the downloads are already in memory (fresh_worktree_build_downloads) | + ## 2026-10-13 - ADFA-95/96: Android Studio plugins and VS Code extensions are ported, not run (ADRs 0018, 0019) ### Time Breakdown From 079a84ef479f3637e30a2ec6b3e881a9658e6fef Mon Sep 17 00:00:00 2001 From: David Schachter Date: Fri, 30 Oct 2026 14:22:00 -0700 Subject: [PATCH 2/3] ADFA-4930: Address CodeRabbit review of the retro - learnings.md and CLAUDE.md: resolve a squash-merge conflict to the layer's side (--ours) only when it duplicates the already-squashed lower PR; reconcile an independent origin/stage edit by hand, since --ours discards it and the tree-hash check cannot see that. - learnings.md: "No actionable comments" means no new findings in that run; check every unresolved inline thread at the current head before declaring a stack clean. - retrospective.md: a blank line between each heading and its table, as the other entries have. Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01Vh2DAaJxvRXKRYkgiDqwGQ --- CLAUDE.md | 2 +- docs/process/learnings.md | 4 ++-- docs/process/retrospective.md | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index de99e874c2..3060dcc3d9 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -70,7 +70,7 @@ CoGo depends on three other `appdevforall` repos; ARCHITECTURE.md (Sibling Repos - **Every screen must survive 2x font scale.** Users with low vision run large system fonts, and a screen that clips or hides content at 2.0 is broken for them. Verify any new or changed screen at font scale **1.0 and 2.0** (see Build & test, Emulator / device) and say in the PR that you did. Text grows, so: use `sp` for text and `dp` for spacing — never an `sp` dimen as a margin or padding; don't box text in a fixed `dp` height or width; give content that can grow somewhere to scroll; and reserve `maxLines`/`singleLine`/`ellipsize` for text that is genuinely disposable. - **Plan and size before building.** Prefer one PR per ticket/use case — don't force-split a coherent change (splitting has its own overhead when later edits span the pieces). - **Structure commits within a PR.** Separate mechanical/refactor commits from behavioral ones so reviewers can skim the boring parts and focus on the interesting ones. Treat ~500 LOC / ~10 files as a signal to reach for this discipline. Offer review-by-commit when it helps. -- **Use a PR stack when a single PR won't do.** For staged multi-module refactors (e.g. removing a dependency across many packages), split into a stack of PRs ordered easiest-to-hardest. Each PR in the stack must compile and pass tests independently, so a failure is isolated to the stage that caused it. "Independently" means against current `origin/stage`, not the stale base the layer branched from: before merging a layer, merge `origin/stage` into it and compile. A clean `git merge-tree` does not mean it builds, and CI on the old base proves nothing. Land a fix in the lowest PR that has the bug, then merge it up the stack; a fix only in the top PR leaves every layer below it unsafe to merge alone. Squash-merging bottom-up makes each remaining layer conflict: merge the new base in, resolve to the layer's own side, and prove nothing changed (`git rev-parse HEAD^{tree}` equal to the pre-merge tree; recipe in `docs/process/learnings.md`). The LOC ceiling for a single PR rises as LLM-assisted review matures. +- **Use a PR stack when a single PR won't do.** For staged multi-module refactors (e.g. removing a dependency across many packages), split into a stack of PRs ordered easiest-to-hardest. Each PR in the stack must compile and pass tests independently, so a failure is isolated to the stage that caused it. "Independently" means against current `origin/stage`, not the stale base the layer branched from: before merging a layer, merge `origin/stage` into it and compile. A clean `git merge-tree` does not mean it builds, and CI on the old base proves nothing. Land a fix in the lowest PR that has the bug, then merge it up the stack; a fix only in the top PR leaves every layer below it unsafe to merge alone. Squash-merging bottom-up makes each remaining layer conflict: merge the new base in, resolve to the layer's own side only the conflicts that duplicate the squashed PR (reconcile any independent `origin/stage` edit by hand), and prove nothing else changed (`git rev-parse HEAD^{tree}` equal to the pre-merge tree, or differing only by that edit; recipe in `docs/process/learnings.md`). The LOC ceiling for a single PR rises as LLM-assisted review matures. - **Before designing a way to make a costly operation cheaper, ask whether the operation is needed at all.** When a problem's severity scales with how often something happens — connections opened per second, requests issued per page, calls made per frame — eliminating the operations usually beats optimizing each one. Check whether the platform offers a way to do the work without them before writing the plan for the optimized version. ADFA-5172/5176 is the cautionary case: the server opened one TCP connection per documentation request to our own process, and `WebViewClient.shouldInterceptRequest` served the same content with no connection at all, which HTTP keep-alive would only have made cheaper per connection. - **Keep docs in step with code.** When you change code, update the docs that describe it in the same change — a module's `README.md`, `ARCHITECTURE.md`, or an ADR — so a doc never outlives the API it documents (see REVIEW.md, Code quality). If the doc fix is out of scope, file a ticket rather than let it drift. - `.androidide_root` is a sentinel file tests use to locate the project root — don't delete it. diff --git a/docs/process/learnings.md b/docs/process/learnings.md index 74d409aaf2..c5a9ca4d59 100644 --- a/docs/process/learnings.md +++ b/docs/process/learnings.md @@ -12,10 +12,10 @@ - Before pushing a follow-up commit to a community PR, check `gh pr view --json headRepositoryOwner` — the PR head is usually on the contributor's **fork**, so a same-named push to `origin` doesn't touch the PR and just creates a confusing dead branch that has to be deleted. ## Stacked PRs -- **Squash-merging a stack bottom-up leaves each layer above it conflicting.** The squash is a new commit holding the layer's changes, while the layer carries them as the original commits (seen on ADFA-4930, three times). Recipe: merge the new base into the layer; resolve every conflict to the layer's own side (`git checkout --ours -- `); delete any file git re-added that the layer renamed or removed (the pre-rename names came back); then prove nothing changed. `git rev-parse HEAD^{tree}` must equal the pre-merge head's, and `git diff --stat origin/stage` must show only the layer's own change, with the same file count as its PR diff. The merge commit then only makes the base an ancestor. +- **Squash-merging a stack bottom-up leaves each layer above it conflicting.** The squash is a new commit holding the layer's changes, while the layer carries them as the original commits (seen on ADFA-4930, three times). Recipe: merge the new base into the layer; resolve to the layer's own side (`git checkout --ours -- `) only the conflicts that duplicate the already-squashed lower PR, and reconcile by hand any file `origin/stage` changed independently (`--ours` discards that edit, and a later merge can overwrite it); delete any file git re-added that the layer renamed or removed (the pre-rename names came back); then prove nothing else changed. `git rev-parse HEAD^{tree}` must equal the pre-merge head's, or differ only by an independent stage edit you reconciled; that check shows the layer's own tree is unchanged, not that a stage edit survived. `git diff --stat origin/stage` must also show only the layer's own change, with the same file count as its PR diff. The merge commit then only makes the base an ancestor. - **A merged branch is deleted on GitHub, so `git fetch origin origin/stage` fails and can leave `origin/stage` stale.** A tree comparison against the stale ref reported a false "differs". Fetch `stage` alone after a merge. - **A stacked layer can compile against its old base and break on current `stage`.** `git merge-tree` reported no conflict because no one edited the line on both sides, but stage had made `FeatureFlags.isExperimentsEnabled` internal. Merge `origin/stage` into the layer and compile before asking for review. -- **CodeRabbit reports in inline comments and edits its first summary comment in place.** A poll for new reply comments saw only "Review triggered" and timed out while the findings sat inline. Watch inline comments and updated summaries too, and treat "No actionable comments" in the summary as the clean result. +- **CodeRabbit reports in inline comments and edits its first summary comment in place.** A poll for new reply comments saw only "Review triggered" and timed out while the findings sat inline. Watch inline comments and updated summaries too, and read "No actionable comments" as no new findings in that run, not as a clean stack: before declaring it clean, check every unresolved inline thread at the current head. ## Android / Kotlin - A config data class whose **default** values call framework APIs (e.g. `ServerConfig`'s paths default to `Environment.getExternalStorageDirectory()`) makes itself unconstructable in a JVM unit test that doesn't stub those APIs — `RuntimeException: Method ... not mocked`, thrown from the constructor before your test body runs. Such a test has to pass *every* framework-backed parameter explicitly (or `mockkStatic` the API, or run under Robolectric), which is easy to miss when copying a config from a test that already does. Prefer lazily-resolved paths in new config types. diff --git a/docs/process/retrospective.md b/docs/process/retrospective.md index 12f7b8e42f..cb05fe44f3 100644 --- a/docs/process/retrospective.md +++ b/docs/process/retrospective.md @@ -3,6 +3,7 @@ ## 2026-10-28 - ADFA-4930: Gradle build output off FUSE storage, a four-PR stack from measurement to merge ### Time Breakdown + | Started | Phase | 👤 Hands-On Time | 🤖 Span (agent + away) | Problems | |---------|-------|-----------------|---------------|----------| | Oct 13 9:03pm | Research: measure why FUSE builds are slow | ██████ 61m | █████████ 91m | | @@ -13,6 +14,7 @@ | Oct 28 5:52pm | Close-out: CodeRabbit, stack comments, merges, Done | ████ 45m | ██████████ 107m | ⚠ 3 rounds of squash conflicts | ### Metrics + | Metric | Duration | |--------|----------| | Total wall-clock | 14.9 days (358.5 h) | @@ -38,6 +40,7 @@ **Anything to do differently:** "No." ### Actions Taken + | Issue | Action Type | Change | |-------|-------------|--------| | A layer built against a stale base broke on current `stage` | CLAUDE.md | "PR stack" bullet: "independently" means against current `origin/stage`; merge it in and compile before merging a layer | From bac1fd00540e51d1f15d4a908e083b41a16ea3e4 Mon Sep 17 00:00:00 2001 From: David Schachter Date: Fri, 30 Oct 2026 16:20:44 -0700 Subject: [PATCH 3/3] ADFA-4930: Drop the retrospective.md entry per review Co-Authored-By: Claude Sonnet 5.5 --- docs/process/retrospective.md | 52 ----------------------------------- 1 file changed, 52 deletions(-) diff --git a/docs/process/retrospective.md b/docs/process/retrospective.md index cb05fe44f3..04892a426e 100644 --- a/docs/process/retrospective.md +++ b/docs/process/retrospective.md @@ -1,57 +1,5 @@ # Retrospective Log -## 2026-10-28 - ADFA-4930: Gradle build output off FUSE storage, a four-PR stack from measurement to merge - -### Time Breakdown - -| Started | Phase | 👤 Hands-On Time | 🤖 Span (agent + away) | Problems | -|---------|-------|-----------------|---------------|----------| -| Oct 13 9:03pm | Research: measure why FUSE builds are slow | ██████ 61m | █████████ 91m | | -| Oct 14 5:57pm | Benchmarks: Pixel A/B, warm daemon, file watching | ██████████████████████ 221m | ███████████████████████ 234m | ⚠ many monitor rounds | -| Oct 15 4:56pm | Build and test the four PRs (itel, Pixel) | █████████████████ 170m | █████████████████████████████ 294m | ⚠ onboarding bug, tickets | -| Oct 16 3:44pm | Review rounds 1-2: CodeRabbit, Hal, QA field, Jira | ███████████████████████ 232m | ███████████████████ 197m | ⚠ 3 permission blocks, wrong replies | -| Oct 27 5:20pm | Review round 3 on #2155 (Hal) | ███ 31m | █████ 55m | | -| Oct 28 5:52pm | Close-out: CodeRabbit, stack comments, merges, Done | ████ 45m | ██████████ 107m | ⚠ 3 rounds of squash conflicts | - -### Metrics - -| Metric | Duration | -|--------|----------| -| Total wall-clock | 14.9 days (358.5 h) | -| Hands-on | 12.7 h (3.5%) | -| Automated agent time | about 3.3 h (0.9%), an estimate: active span minus hands-on | -| Idle/testing/away | 342.5 h (95.5%) | -| Retro analysis time | about 1 min | - -293 turns, estimated cost $566.80 at API list prices (not a bill). Hands-on is itself an estimate (reading 150 wpm, typing 60 wpm, 1 min buffer per turn), so agent time is the weakest figure. - -### Key Observations -- Most wall-clock time was waiting on reviewers: CodeRabbit's 2-reviews-per-hour limit (since lifted), then Hal Eisen's rounds. The agent worked longest alone while benchmark monitors ran. -- Hal's late findings were stack-hygiene misses: #2149 would not compile on current `stage` (stage made a flag `internal` after the layer branched; `git merge-tree` reported no conflict), and the symlink-safe delete existed only in the top PR. Both surfaced 11 days after the layers were built. -- Squash-merging the stack bottom-up made each remaining layer conflict, three times. Each fix was a merge resolved to the layer's side, then a tree-hash comparison. -- Auto mode blocked required outward writes five times (resolving threads, a force-push, a /tmp delete, replies posted together with resolves); each cost a round trip and was then approved. -- Agent errors cost rework: invented timestamps early, a reply that did not answer the reviewer, a false monitor alert, a "revert check" whose `sed` matched nothing, two unannounced 190 MB downloads in a fresh worktree. -- The agent saw the failed-first-sync gap while designing the banner marker, judged it acceptable and did not say so; Hal found it as an IMPORTANT finding. -- The phase with the most hands-on time was the review rounds (232 min, 31%), not the building. - -### Feedback -**What worked:** "Everything." -**What didn't:** "Nothing." -**Anything to do differently:** "No." - -### Actions Taken - -| Issue | Action Type | Change | -|-------|-------------|--------| -| A layer built against a stale base broke on current `stage` | CLAUDE.md | "PR stack" bullet: "independently" means against current `origin/stage`; merge it in and compile before merging a layer | -| A fix landed only in the top PR left the layer below unsafe | CLAUDE.md | Same bullet: land a fix in the lowest PR that has the bug, then merge it up | -| Squash-merging bottom-up conflicted every remaining layer | CLAUDE.md, Doc | Same bullet gets one sentence; the full recipe (resolve to own side, delete re-added files, tree-hash check) is in learnings.md | -| A revert check ran the unchanged code | CLAUDE.md | "Prove the regression test fails" bullet: check `git diff` is non-empty after reverting | -| A known limitation went unmentioned until a reviewer found it | CLAUDE.md | New "Disclose the limitations you accept" bullet in "Verify before you claim" | -| Stale `origin/stage` after a merged branch was deleted; CodeRabbit's inline results missed by a poll; compile break hidden by `git merge-tree` | Doc | New "Stacked PRs" section in learnings.md | -| Five auto-mode blocks on outward writes | No action | Each was a deliberate guard that the user then approved; loosening it is the user's call | -| Reviewer wait time; one-off agent slips; the 190 MB jar downloads | No action | No repo rule affects reviewer capacity; the downloads are already in memory (fresh_worktree_build_downloads) | - ## 2026-10-13 - ADFA-95/96: Android Studio plugins and VS Code extensions are ported, not run (ADRs 0018, 0019) ### Time Breakdown