Repository navigation
Description
Context
#2431 (PR #2730) adds host-only managed-worktree hygiene findings to the human-started review. The maintainer ruled on #2431 (2026-10-23) that the owner principal is an authorized reader and reviewer of a delegated agent's private worktree findings.
Inbox Actions replicate to every usable principal. A private worktree's card is therefore opaque for every reader: it shows the worktree identity, state and counts only, with no repository, revision, commit, changed path or principal (function display(, packages/ui-server/src/brain/reference-worktree-hygiene.ts:179-197; docs/decisions/managed-worktrees.md#hygiene-and-cleanup). The owner can review and remove through that card, but cannot read the details the ruling authorizes. The detail read consumes #2431's host-only findings and their owner-reader ruling, not #2432's agent tools; real cards reach users once agents can allocate worktrees (#2432).
Part of #2390.
Delivered prerequisite: #2431 / merged #2730 (dc5d3c73282c29a3f0098306d398743ee18ec791).
Out of scope
Putting private details into the replicated card or its preview. A separate review product. Changing who may operate the review (owner and ambient principals). Detail reads for every non-owner principal, including the worktree's own delegated principal.
Approved interaction
The maintainer approval of 2026-10-24 selects both parts of the brief (placement/fields, states/focus/proof) with its recommended choices: non-owners see today's card unchanged with no toggle or hint; removed owners read Removed principal without a former label; starting commits display in full and wrap. The approved surface is inline Private details, not a new destination or a sheet. Owner-reader authority remains unchanged. The following acceptance criteria incorporate the approved interaction; no design question remains.
Scope
An owner-only read of a private worktree finding's details: source repository, revision and starting commit, the changed-path sample and counts, and the owning principal. It is reachable from the review card without the details entering any inbox-replicated data.
Acceptance criteria
- Every direct private-detail request permits only the owner principal; all delegated principals, including the worktree's own, are refused. The per-request host review read supplies whether this caller may read details; this fact is never inferred solely from principal kind or replicated in the Action.
- In the full review card only, place a collapsed kit Disclosure named
Private detailsbetween excerpt and controls. Fetch only when opened. Non-owners retain the existing card with no toggle, lock, hint or count of hidden fields; compact inbox cards never offer it. Apply/Later/Dismiss and the opaque removal preview are unchanged. - The replicated card, preview, list entries and outcomes remain opaque; extend REFERENCE_WORKTREE_HYGIENE_PRIVATE_OPAQUE and its native counterpart with a byte search for fictional repository, commit, sample path and principal label. Details remain component memory only: no inbox store, local storage, outcome, persisted cache or cross-mount reuse.
- Render the approved inert description list: OWNED BY (principal label plus agent/device kind, or exactly
Removed principal), REPOSITORY and REVISION (Not recordedif absent), full wrapping STARTING COMMIT (Not recordedif absent), CHANGED PATHS (total plus explicit sample size,Nonefor known zero,Not established yetfor unknown), any incomparable-path count, andAs recorded <date, time>.orAssessment time unknown.Values never linkify or interpret Markdown/HTML. Stack below 480px; keep the approved two-column treatment above it. - The disclosure subtitle is
Owner only · not sent to other devices or agents. The read shows recorded facts only: it never calls next/check/reassess/dry-run or changes state, fingerprint or last_seen. An explicit Refresh finding after a changed response uses the existing refresh action separately, not an implicit reassessment by the read. - Host responses distinguish unknown/resolved (gone) and fingerprint mismatch (changed); neither returns any detail values. Keep the selected authorization/refusal and no-detail behavior for every caller, including direct requests.
| Detail state | Approved content and behavior |
|---|---|
| Loading | Five Placeholder lines, Loading private details accessible name, region busy; focus stays on toggle |
| Loaded | Approved rows; polite Private details shown |
| Changed | This worktree changed since the card was shown. Refresh the finding to see current details. + existing Refresh finding; no detail rows |
| Gone | This finding is no longer open. There's nothing to show. |
| Refused | Private details aren't available with your current access.; collapse and remove toggle on next review read; focus card title |
| Offline | Can't reach your brain right now. + Try again |
| Failed/bad reply | Couldn't load the details. Nothing was changed. + Try again |
| Signed out during load | Existing auth-lock flow; collapsed after sign-in |
- Clear memory and collapse on user collapse; Action identity/version change or leaving pending (including an Actions-limit set-aside); review pause/completion/unmount; socket disconnect/offline; root/principal change, sign-out/auth lock; and refused/changed/gone replies. Discard any late reply for an obsolete card/request. No previous finding's bytes remain visible for the next one.
- Toggle is a native button with aria-expanded/controls and a 44px target; region is named Private details with a dl. Enter/Space/tap toggles once; no new Escape binding for this inline disclosure. Preserve card-scoped action keys. Collapse returns focus to the toggle; invalidation while focus is inside moves it to the card title, or the strip if the card disappeared. Keep the approved title → toggle → region actions → review-controls tab order.
- Host proof: owner allowed and each agent refused directly, changed/gone contain no values, row snapshot proves no fingerprint/last_seen/state mutation, and no private bytes enter any replicated surface. Each guard has failing-first and mutation receipts.
- Pinned browser proof at 320×640 and 1440×900, both themes, plus 200% zoom: owner expand/rows/collapse/focus, no agent toggle or private DOM/accessibility bytes, unknown versus zero, inert hostile-looking path text, late reply discard, disconnect clearing and Actions-limit clearing. Use the approved Odysseus fixture, 2026-07-12, 14 total/5 sampled paths, with no horizontal scroll.
- Any new HTTP route/field ships in a CONTRACT: commit with its authoritative component and affected API report. The approved design names required host facts, not preapproved route or field names.
Verification
Direct host authorization/row-snapshot/replication tests with failing-first and mutations; mandatory pinned native browser flow/state/focus proof above, then the required affected checks and bun run check:pr --base origin/main. Owner-only privacy and read-only semantics remain binding.
Contract impact
Additive authenticated host/review/detail read fields. Exact route and field names are implementation design under the existing contract rules; replicated Action/card data remains opaque and does not carry private details or the per-request detail-access fact.
2026-10-24: repointed the blocker from #2432 to #2431, which supplies the findings this view reads; #2390's final acceptance (#2751) now runs after this issue. Noted that the display citation is on PR #2730's branch until it merges.
2026-10-24 triage at main dc5d3c73282c29a3f0098306d398743ee18ec791: verified #2431/#2730 delivery, retired its active dependency and branch-only source qualifier, aligned exclusions with owner-only acceptance, and exposed the unapproved entry/detail interaction as needs: design. Preserve p0, 0.44.0 and the #2751 priority dependency; no UI or route was implemented.
2026-10-24 triage at main af6300478a07379178bd30221a31c0b917df2283: Linked the later two-part design proposal and its exact remaining approval choices. The usable existing prompt needs no replacement. Owner-only authority remains settled, delegated principals remain refused, and needs: design remains until the proposal is approved.
The interaction and recommended copy choices are now approved; the earlier pending-design notes above are historical.
2026-10-24 triage at main e1ab485669565554ca6cb61ce5d130303647230f: Folded the explicit two-part design approval and its three selected options into the active brief, with host/privacy assertions, complete state and memory-clearing rules, focus and required browser coverage. The remaining work is implementation of this complete owner-only brief, so add agent-ready and area: ui-react; preserve p0, contract, native parent and 0.44.0.
Activity
schlessera commentedon Oct 24, 2026
Raised to
priority: p0(2026-10-24): this issue now blocks #2751, the p0 final-acceptance task for #2390, and a blocker carries at least the priority of what it blocks.schlessera commentedon Oct 24, 2026
Unblocked: #2431 is closed, so
scripts/sync-project.tsis removing theblockedlabel.schlessera commentedon Oct 24, 2026
Needs design — 2026-10-24: owner-only details from an opaque managed-worktree hygiene card. The owner may read/review the private finding; replicated inbox data must stay opaque for every reader. The missing judgment is the entry/detail interaction and its loading, missing, stale and authorization-loss behavior; the newly delivered host findings do not decide it. This prompt selects no design or broader reader authority.
The delivered prerequisite #2431/#2730 is verified on this main SHA; needs: design remains until the interaction is approved. Preserve p0/0.44.0 and dependent #2751. This is issue preparation, not implementation or a privacy proof.
schlessera commentedon Oct 24, 2026
Design brief (1/2): owner-only private details on a managed-worktree card
Answers the design prompt. Read against main
dc5d3c73:display()anddiff()inreference-worktree-hygiene.ts,HygieneFinding/HygieneCardinui-react/.../activity/hygiene-review.tsx, and kitDisclosure. Nothing has shipped, and no API shape is specified. Where the UI needs a host fact, this brief names the fact, not a field.Summary
Disclosure, Private details, inside the full hygiene card, between the excerpt and the controls. It is not a sheet, a new destination or a shortcut. The review flow (Apply / Later / Dismiss, removal preview) is unchanged.next,check,reassessor--dry-run. It shows the recorded facts and says how old they are.diff()) staysprivate sourcefor everyone. It is replicated, so it can't carry details.1. Owner, 320px, expanded
Collapsed (default):
▸ Private details/Owner only · not sent to other devices or agents. It is a 44px-high toggle row. The state is never remembered between cards or reloads.2. Owner, desktop (Actions column ~560px)
At ≥ 480px the labels sit in a two-column grid. Below that they stack, as at 320px. The compact card in inbox lists never shows the toggle. Details are only available on the full card.
3. Non-owner (agent, or any principal the host doesn't allow)
The card is exactly today's card:
private source · 14 changed paths · released. There is no toggle, no lock, no "ask the owner" line and no count of hidden fields. The existingprivate sourcewording already tells the reader that the source isn't shown. See Decision 1.4. Labels and values (exact)
OWNED BY(agent)/(device)Removed principal. The id is not shown.REPOSITORYNot recordedREVISIONNot recordedSTARTING COMMITNot recordedCHANGED PATHS14 in total · first 5 shown/3 in total(whole list shown) /None(zero)Not established yet(work unknown, never0)2 paths couldn't be compared.when that count is above 0As recorded <date, time>.(when the facts were last assessed)Assessment time unknown.overflow-wrap:anywhere) instead of truncating, so two similar paths can't look identical.Part 2 covers states, clearing, focus, criteria and decisions.
schlessera commentedon Oct 24, 2026
Design brief (2/2): states, clearing, focus, criteria
1. States inside the disclosure
Placeholder, 5 lines,aria-label="Loading private details"aria-busyon regionPrivate details shownThis worktree changed since the card was shown. Refresh the finding to see current details.+Refresh finding(existingrefreshcommand). No detail rows.This finding is no longer open. There's nothing to show.Private details aren't available with your current access.Collapse; toggle removed on next review read.data-hygiene-title)Can't reach your brain right now.+Try againCouldn't load the details. Nothing was changed.+Try again"Finding changed" deliberately shows nothing rather than details that disagree with the card the owner is about to act on. Refresh goes through existing selection, which already reassesses.
2. When details are cleared (memory dropped, region collapsed)
pending(fixed, dismissed, snoozed, set aside by the Actions limit, resolved elsewhere).onlinebecomes false (re-auth may change the principal).A late reply for a card that is no longer current is discarded (request token, same pattern as
useHygieneReview). Nothing is cached across mounts.3. Keyboard, touch, focus
aria-expanded,aria-controls); Enter/Space/tap toggle it. Effective target 44px.role="region",aria-label="Private details"; rows are a<dl>.a / l / dkeys stay card-scoped and unchanged.color.inkMutemeets 4.5:1.4. Host and browser criteria (for the AC)
Host
reference_worktree_findings(fingerprint,last_seen, state) and never callsreassess; test snapshots the row before/after.REFERENCE_WORKTREE_HYGIENE_PRIVATE_OPAQUEand native counterpart still pass, extended with a byte search for a fixture repo, commit and path.Pinned browser (320×640 and 1440×900, light + dark)
Not established yet, zero rendersNone.[x](http://e.test)<b>y</b>renders literally.Telemachus research, repogithub.com/ithaca/palace-ledger, 14 changed / 5 sampled, 12 Jul.Open decisions
1. What does a non-owner see?
private sourceonly.Details are shown to the owner.Recommend (a): (b) invites access requests the ruling doesn't offer, and it's identical copy for every reader so it adds nothing.
2. Label for a removed owning principal.
Removed principalonly.Removed principal+ its former label.Recommend (a) — the host may no longer hold the label, and showing a stale label after revocation is a new retention question.
3. Starting commit length. Full 40 chars (as mocked) vs 12 chars like public cards. Recommend full — the owner is reading this to identify work, and wrapping costs one line.
No authority question was found: the brief adds no reader grant, and Decision 1 only affects copy.
schlessera commentedon Oct 24, 2026
2026-10-24 triage at main
af6300478a07379178bd30221a31c0b917df2283: Linked the later two-part design proposal and its exact remaining approval choices. The usable existing prompt needs no replacement. Owner-only authority remains settled, delegated principals remain refused, and needs: design remains until the proposal is approved. The concurrent needs: decision label was rechecked against the proposal: its outstanding approval choices concern the detail interaction and copy, while owner-reader authority remains settled; classify this as needs: design.schlessera commentedon Oct 24, 2026
Design approved (maintainer, 2026-10-24). The two-part brief (1/2, 2/2) is approved as written, with its recommended options:
Removed principalonly (2a).Removing
needs: design. Fold the state, copy and focus rules and the host and browser criteria into the acceptance criteria before implementation.schlessera commentedon Oct 24, 2026
2026-10-24 triage at main
e1ab485669565554ca6cb61ce5d130303647230f: Folded the explicit two-part design approval and its three selected options into the active brief, with host/privacy assertions, complete state and memory-clearing rules, focus and required browser coverage. The remaining work is implementation of this complete owner-only brief, so add agent-ready and area: ui-react; preserve p0, contract, native parent and 0.44.0.schlessera commentedon Oct 24, 2026
Claimed (claim
bk044-2734-owner-details), branchfeat/2734-owner-worktree-details-044. Implementing the approved owner-only Private details read and disclosure; draft PR to follow.CONTRACT: feat(ui-server): let the owner read a private worktree find…
CONTRACT: feat(ui-react): show owner-only private details on a worktr…
CONTRACT: feat(ui-server,ui-react): owner-only private details for ma…