Skip to content

Watch view (gw), watch and green per org and repo, pausing: pilot phase 1 - #11

Merged
Mpdreamz merged 2 commits into
mainfrom
feature/pilot-phase-1
Oct 14, 2026
Merged

Mpdreamz merged 2 commits into
mainfrom
feature/pilot-phase-1

Conversation

@Mpdreamz

@Mpdreamz Mpdreamz commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Phase 1 of get it green / get it merged, as planned: seeing it.

The Watch view (gw)

  • Left: every PR sessions track, grouped by state: needs you (stuck), failing, changes, feeding, pending, passing, paused, not watched. { } jumps between groups, / filters.
  • Middle: the selected PR's status line, its open items, and its timeline.
  • Right: the activity log across all PRs (zi hides it).

Activity log

pilotLog in 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 with decodeIfPresent, 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"]).
  • Watch is on by default, since it's read-only.
  • A per-PR choice made with w or m sticks; untouched PRs follow the settings, and re-settle when config changes.
  • Settings ▸ Pilot edits the defaults and lists the org and repo overrides.

Pausing

  • zz pauses one PR. In VISUAL, z pauses every selected PR, in both the Watch and PRs views.
  • :pilot.pause 4h|forever|off picks the length.
  • A paused PR stays watched but gets nothing sent and doesn't count as needing you. It resumes by itself, and that's logged.

Elsewhere

  • Sidebar: the most urgent PR state next to a session's PR count.
  • Inspector: the PR card shows the real line, replacing the hardcoded "watching", e.g. "watching · green ask · 1 new · 2 queued".
  • PRs view: a Watch column, plus w, m, zz and VISUAL selection.
  • Repos: a mark by the PR number.
  • PR overlay: the header shows the effective values and says whether they're set here or come from org, repo or default settings.

Commands

view.watch, pilot.watch, pilot.green, pilot.pause [duration]. w and m move from feedback.watch and feedback.mode to the new commands; the old names still work.

Checks

  • 179 tests, including new ones for setting resolution per field, hand-set marks that stick, old caches decoding, every status case, fetch logging and the log cap, duration parsing, and [pilot] config at each level.
  • Lint is clean; the tutor check reports 0 problems; the docs build has 0 errors.
  • New shots: 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

… 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]>
@github-actions github-actions Bot added the enhancement New feature or request label Oct 14, 2026
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 Mpdreamz changed the title Pilot, phase 1: see what heed does for PRs; watch and green per org and repo; pausing Watch view (gw), watch and green per org and repo, pausing: pilot phase 1 Oct 14, 2026
@Mpdreamz
Mpdreamz merged commit 9449117 into main Oct 14, 2026
8 checks passed
@Mpdreamz
Mpdreamz deleted the feature/pilot-phase-1 branch October 14, 2026 08:32
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant