Repository navigation
Watch view (gw), watch and green per org and repo, pausing: pilot phase 1 - #11
Merged
Merged
Conversation
… org and repo, pausing The PR watch existed but could not be seen: the inspector said "watching" whatever the state, and nothing else showed which PRs were followed or what happened to them. - The Pilot view (gw): every PR sessions track, grouped by state (needs you, failing, changes, feeding, pending, passing, paused, not watched), the selected PR's items and timeline, and the pilot's activity across PRs. - An activity log in the domain (capped, decoded by old caches): items arrived, addressed, resolved, sent, held and why, stuck, and watch/green/pause changes. - [pilot] watch (on by default: read-only), green, max_rounds, pause, overridden per org and per repo; a choice made on a PR by hand sticks, untouched PRs follow the settings. Settings > Pilot edits the defaults. - Pausing: zz, or z on a VISUAL selection in the Pilot and PRs views; :pilot.pause 4h|forever|off. Paused PRs stay watched, get nothing sent, do not count as needing you, and resume by themselves. - The same state in the sidebar, the inspector's PR card (its real line now), the PRs view's Pilot column and Repos. - pilot.watch / pilot.green replace feedback.watch / feedback.mode on w / m; the old names still work. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The view, its command (view.watch), its key scope, the PRs view's column, its docs page and screenshots say Watch. The [pilot] settings and pilot.* commands keep their name: the pilot is what watches (and, later, merges). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Mpdreamz
added a commit
that referenced
this pull request
Nov 16, 2026
…at builds only what it runs (#282) Measurement only; nothing behaves differently. The numbers below are the "before" for the hook-path PR (code-health #11). ## Signposts `Perf` (HeedCore, `Sources/HeedCore/Store/Perf.swift`) adds os_signpost intervals, subsystem `build.heed.app`, category `perf`. While nothing records, each one costs a single `isEnabled` check. | Interval | Where | |---|---| | `commit` | `AppModel.commit` | | `rebuildList` | `AppModel.rebuildList` | | `readScreens` | the screen-reading tick, including its detached guess | | `attentionEntries` | the Attention feed and ranking (`AppModel+Attention`) | | `audit.refilter` | `AuditBrowser.refilter` | | `domain.flush` | `DomainStore.flush` (encode and write) | | `telemetry.costs` | the detached telemetry cost recompute | | `start.toCache` | `start()` up to the cached domain being drawn, and inside it `start.callLog`, `start.detectTools`, `start.llm`, `start.telemetry`, `start.loadDomain`, `start.openLog`, `start.adopt`, `start.livePanes`, `start.replace` | AGENTS.md has a new "Measuring the app" section on recording them: Instruments' Logging template, or `xcrun xctrace record --template 'Time Profiler' --instrument os_signpost --attach Heed …`. I checked the template and instrument names against `xctrace list templates` and `list instruments`. This Xcode has no template named `os_signpost`. ## `mise run bench` The old task ran `swift test -c release`, which built the release app with MLX. A release build of the test product alone also failed: the whole-module optimized HeedCore compile was still running when it was killed at 30 minutes (load average about 150). The task now runs `swift build --scratch-path .build/bench -Xswiftc -O --product HeedPackageTests`, then `swift test --skip-build` on the same scratch path: - It builds HeedCore and its tests only. No HeedApp, no MLX, no Sparkle. - It is a debug build with `-O`: optimized, testable, and compiled file by file instead of whole-module, so it builds in parallel and incrementally. - Its own scratch path keeps `mise run test` and `mise run bench` from rebuilding each other's products. How the numbers relate to release: without whole-module optimization there is less inlining across files. The absolute times are therefore somewhat pessimistic compared with a release build, but the before/after comparison is valid as long as both sides run `mise run bench`. The existing `HookBench` origin-note ceiling (median < 50 ms) was set on the old release build. On this machine, under load, it measured 50 ms in the first run and 290 ms in later runs, so it fails here. I left that ceiling unchanged. Build times, all with other builds competing for CPU: | Build | Load average | Time | |---|---|---| | Cold, default `.build` | ~120–160 | 1333 s | | Cold, `.build/bench` | ~200–225 | 2500 s | | Warm, no change | ~175 | 10 s | ## Numbers (before) Median and slowest of each bench. Each run's load average is in its column header. | Bench | Run 1 (load ~159) | Run 2 (load ~175) | |---|---|---| | SessionList, 50 sessions × 300 worktrees, with the app's size and Can close closures | 2.7 ms / 48 ms | 3.8 ms / 108 ms | | AttentionFeed.items + AttentionRanking.entries, 200 PRs | 7.5 ms / 44 ms | 36 ms / 266 ms | | ScreenGuess.guess, 50×200 screen | 0.33 ms / 43 ms | 0.62 ms / 62 ms | | ExternalText.display, 20 KB × 100 | 305 ms / 421 ms | 1144 ms / 1503 ms | | Prompt.text, 10 fences | 0.35 ms / 38 ms | 0.67 ms / 83 ms | | AuditBook.apply + rows, 50k actions | 560 ms / 682 ms | 1755 ms / 2197 ms | | TurnEnd.asksYou, one 4k-char line | 1.06 ms / 54 ms | 6.8 ms / 198 ms | | OriginNote.report (HookBench) | 50 ms / 87 ms | 290 ms / 554 ms | The ceilings in `CoreBench` are about ten times run 1's medians. They held in every run, including the one at load ~200. ## Checks - `mise run fmt` and `mise run lint`: clean. - `mise run test`: 2551 tests passed. This also built HeedApp with the signposts in place. - `mise run bench`: CoreBench passes. HookBench fails as described above. ## Not tested - I did not record a trace of the running app, so the signposts have not been seen in Instruments. Recording through xctrace can raise a macOS developer-tools permission prompt. - I did not get a quiet-machine run. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 1 of get it green / get it merged, as planned: seeing it.
The Watch view (
gw){ }jumps between groups,/filters.zihides it).Activity log
pilotLogin the domain, newest first and capped at 500. It records items arriving, being addressed and resolved; items sent and to which agent; deliveries held and why; stuck PRs; and changes to watch, green and pause, marked "by you" or "pause ended". Old caches load: it decodes withdecodeIfPresent, so there's no version bump that would drop sessions.Settings
[pilot] watch / green / max_rounds / pause, overridable per org and repo ([orgs.x],[repos."o/n"]).wormsticks; untouched PRs follow the settings, and re-settle when config changes.Pausing
zzpauses one PR. In VISUAL,zpauses every selected PR, in both the Watch and PRs views.:pilot.pause 4h|forever|offpicks the length.Elsewhere
w,m,zzand VISUAL selection.Commands
view.watch,pilot.watch,pilot.green,pilot.pause [duration].wandmmove fromfeedback.watchandfeedback.modeto the new commands; the old names still work.Checks
[pilot]config at each level.watch/view,watch/visual,watch/paused,watch/detail,watch/inspector,watch/prs. The docs gain a Watch page.Next: phase 2, the green verdict (mergeability, required checks, conflicts, failing-check log tails,
pilot.why).🤖 Generated with Claude Code