Repository navigation
fix: refuse a rebase or force push only to a mission's agents - #2497
Merged
Merged
Conversation
The plan record's pre-tool refusal stopped git rebase and every force push in any Hide pane and told the agent to merge the base instead. A user who asked for a rebase got a merge commit pushed to the branch, because the agent followed the refusal's suggestion over the user's request. The refusal now applies only to a mission node's worker or checker, whose checked commit has to stay the one checked; outside a mission the project guardrails alone judge these commands. The reason no longer names a command to run in the refused one's place.
Yolohyo
pushed a commit
to Yolohyo/hide
that referenced
this pull request
Nov 13, 2026
…ult line (with-hide#2466) Related: follows with-hide#2459 (merged); the phone draws the same rows in a follow-up pull request (mission-57 node `phone-card`); paired design guide with-hide/hide-private#876. ## Summary The mission map knew where each node's work goes and who merges it, but the card did not say so. A first version drew a station track (`작업 → PR → 승인 → main`); the operator found it heavy and missed the plain PR number at the bottom, so the card is now simpler. Each card is five rows, one gap apart and all starting at the card's left edge: the title; the operator's band under it (`볼 것`, `머지할 차례`); the agent, model and time; the steps; and, under a hairline, one bottom line. A code node's bottom line is `[icon] #n <branch> → <destination>`, the icon and colour exactly as the PR list draws that pull request; a stacked pull request or another base is bold, and a merge the operator does is a person before the destination. A line too long for one row keeps `#n` alone on the first row and puts `<branch> → <destination>` on the second, from the card's left edge; there a name shorter than half the row stays whole and two long ones share it, each ending in `…` with its whole name on hover. A line without a number never wraps, and a direct change's `PR 없이` follows its destination. A numbered line with `⚠`, 내 차례 or `!` is always two rows: the number, never cut, and those marks on the first, the warning's words giving way first, and the path on the second. A line without a number follows the same rule with its icon in the number's place: with `⚠` or `내 차례` at its right end it keeps one row only when it fits, and otherwise the icon and the marks hold the first row and `<branch> → <destination> · PR 없이` the second, so nothing overlaps. A stacked node's destination is the pull request it stands on: that pull request's icon in its state's colour and its number in grey, so the node's own `#n` leads. Hovering a card shows it in labelled rows with the card's own parts (`상태`, `워커`, `단계`, `들어가는 곳`, `PR`, `머지`, or `결과`), each fact once. A research or verify node ends in its result instead: its kind while it runs, then the conclusion or `통과 n/m`. The station track and its code are gone. ![Before (left) and after (right): each card ends in its branch line; a line too long for one row keeps #n alone and puts the branch and → 👤 [PR] 1900 on the next row](https://github.com/yansfil/pr-assets/blob/main/hide/feat-mission-card-stations/67c831c/done-before-after.png?raw=true)      ## Review - **Decide**: whether the five rows read calmer than the station track did, at a glance, on the map's own zoom. - **Decide**: the person before the destination as "I merge this": faint orange ahead, yellow and bold with the `머지할 차례` band when due, grey after. - **Decide**: the new words: `어디로 들어가나` (the card's name and hover), `PR 없이`, `조사`, `검증`, `통과`, `실패`. - **Decide**: the second row of a long line at the largest text size: two long names cut to half each, readable enough on the map's own zoom. - **Decide**: the hover's rows leave out the worktree branch (it is the line's branch), the Conductor's last line, the change note and the last push. - **Decide**: an outside branch's name now reaches the phone (`external_branch`) as part of its line (D-14); before, it stayed on the Mac. - **Risky files**: `hide-core/src/runtime/missions.rs` - snapshot wire: `MissionView.destination` is the judged branch, `NodeView.outside` is new, and the view cache now keys on each project's default branch. - **Risky files**: `hide-core/src/agent_state/tally/phone/missions.rs` - phone wire: optional `destination`, `scope`, `pr_base`, `pr_more`, `external_pr`, `external_branch`, `external_base`, `external_state`. - **Risky files**: `web/src/missionLine.ts` - the one calculation of the bottom line the desktop card, its hover and the phone read. - **Risky files**: `web/src/components/mission-line.tsx` and the foot in `web/src/MissionMap.tsx` - a numbered line runs inline so its path wraps whole, or is a two-row grid when it has right-end marks; the share of the second row is a grid of `minmax(0, auto)` columns. - **Risky files**: `web/src/components/mission-node-hover.tsx` - the hover rebuilt as labelled rows from the card's parts; its old strings are replaced in four languages. - **Cost**: per mission refresh, one in-memory catalog lookup per mission and one GitHub-list lookup per outside node, under the lock; no I/O, no new notification. The card draws from fields it already had. ## Tests - **Layer**: unit for the bottom line's rules and words (`missionLine.test.ts`) and the card (`MissionMap.test.tsx`: row order, the one gap, the band, the person, the result line, the planned card, the accessible name and hover); Rust for the judged destination, the outside view and the phone fields; e2e `mission-map.spec.ts` for a narrow window's spills, a planned card's five rows and its accessible name, the hover's rows for a working, a stacked and a research node, and a stacked destination's mark, grey number and `PR n` words (`MissionMap.test.tsx`, `missionLine.test.ts`); and, at the largest Interface text, six working changes (into a long release branch, stacked, a short one, one before its pull request, a direct one, and one with `+1` and two marks seeded into its record) whose lines end inside their cards, in a real browser: the long numbered ones keep `#n` alone and put branch and destination on a second row from the card's left edge, sharing it when both are long; the short one stays on one row with the wider gap after its number; the two without a number never wrap, the direct one's `PR 없이` on its destination's row; the one with marks keeps `#3116 +1` whole with `⚠` and 내 차례 on its first row and its path on the second; every row starts where the title row does and the six cards stand apart on the map. - **Catches**: planting three changes in this head's `mission-line.tsx` fails the largest-text e2e on each: a numbered line that cannot wrap (`wrapped`), a plain flex row instead of the shared grid (`half`), and `PR 없이` outside the destination (`direct`); de4fd48's line fails it too; deb9949's line and foot fail the marks case (`firstRow` and `inside`, the marks pushing the number to a second row); on 98d566f, a line without a number whose path does not take the row's leftover fails it too (`whole`: 내 차례 clipped at its left on the long pre-pull-request line); 7f699dd's one-row line fails it at 13 px (`hotfix` and `lone`: 리뷰 FAIL ×3 over `· PR 없이`). - **Catches**: a stacked pull request drawn to the mission's destination: planting it (`base_pr` ignored) fails two `missionLine.test.ts` tests. - **Repeat**: the mission-map e2e passed on 5a3e516's build; the largest-text test now waits for the map to settle at each text size (two frames agreeing) before it measures; repeated runs are the verifier's, and CI's repeat lane runs it on this head. - **Waits**: none added. ## Evidence - **Verified**: on 5a3e516: the largest-text e2e measures every branch line at 13 px and at 17 px; lines without a number on direct changes and one before its pull request, short and long branches, with 내 차례 alone, ⚠ 리뷰 FAIL ×3 alone and both, never meet their marks, and at 17 px each holds its icon and marks on the first row and its path on the second from the card's left edge; `mission-map.spec.ts` 5 passed, web unit `MissionMap`, `missionLine`, `missions`, the phone's missions, `TaskLens` and `OverviewGraph` 195 passed, typecheck, lint and the design contract clean. - **Verified**: isolated candidate on 5a3e516's web build, dark and light: the same lines at 13 px and 17 px with destination `release/target`, and `fix/x → main · PR 없이` beside 내 차례 on one row. - **Verified**: on 98d566f (main with with-hide#2485 merged): typecheck, lint, the design contract and the attribution check clean; web unit `missionLine`, `MissionMap`, `missions`, the phone's missions, i18n, `TaskLens`, the sidebar mission row and `OverviewGraph` passed; `e2e/mission-map.spec.ts` five passed with hided, hooks and holder rebuilt from the merged Rust: the long line before its pull request with 내 차례 keeps the mark whole at the foot's right edge, and the hover's whole line reads its number. - **Verified**: web unit on 67c831c: `MissionMap`, `missionLine`, `MissionGate`, the phone's and `components` 360 passed, and i18n 53; on b248a02: `missionLine` and `MissionMap` 57 passed; after merging main, the whole web unit suite 2968 passed, with one practice test timing out under machine load and passing alone (10/10); typecheck, lint and the design contract clean. - **Verified**: `e2e/mission-map.spec.ts` on 67c831c's build: four passed in the spec run and the largest-text test passed after its stacked row's width expectation moved (the destination is now its mark and number); on deb9949's build all five had passed: at 17 px `#3114` and `#3115` stand alone on their first rows with branch and destination on the second from the card's left edge, `→ #3114` whole beside a cut branch, the long branch and the long release destination each holding at least 40% of the row and cut at its end with its whole name in the hover, `with-hide#7 fix/typo → #3114` on one row with a wider gap after the number than before it, the line before its pull request and the direct line on one row with `· No PR` beside the destination, and the five cards apart on the map. - **Verified**: isolated candidate (own state folder and HOME, records replayed offline) on 67c831c's web build: twelve use cases in dark and light, seven card hovers (working, stacked, done, merge due, operator's merge ahead, research working and done), including the largest text size with a long branch, another base, a review-fail `⚠` beside a two-row line, `+1` with `⚠ push 없음` and 내 차례, and the operator's merge due, each working card's steps bar, and the eleven baseline states before beside after; the 17 px capture found the `⚠` taking the second row's width when the foot aligned its marks to the top, fixed in deb9949 by floating them beside the first row. - **Verified**: a branch or destination the core did not send is left out, never named: old records without them show only the icon and `PR 없이` or `PR` (B60). - **Verified**: hide-core mission, outside and phone tests 54 passed, clippy and `cargo fmt --check` clean, on 08fd287, before main was merged. - **Verified**: a phone bundle from before these fields, paired with an isolated hided of 08fd287, listed and opened the mission with no page error and showed no branch name it was not sent. - **Not verified**: the capture candidate's `hided` was built from 08fd287's Rust: main's merged Rust is not in it; this change is web only since then, and CI builds and tests this head's Rust. - **Not verified**: the phone card's v4 rows: the follow-up pull request (mission-57 node `phone-card`). - **Not verified**: captures other than lines without a number with marks were not taken again on 5a3e516; they are 67c831c's. - **Not verified**: repeated runs and planted defects on this head: left to the mission's verifier. - **Not verified**: the hover on the phone: the phone has no card hover. - **Not verified**: the hover's commit count and worktree path (D-19) and the reasons for scope and cap in the options (D-50) are left out: the core has no value for them. - **Not verified**: Windows and Linux in a live app; the change is web and core logic with no platform code, left to CI. <details><summary>More evidence</summary>  ![PR flow into main: each working card's steps and 지금 line above the branch line; stacked on [PR] 3101 and another base in bold](https://github.com/yansfil/pr-assets/blob/main/hide/feat-mission-card-stations/67c831c/case-pr-flow-dark.png?raw=true)       </details> <details><summary>Verification record</summary> - PRD: mission-destination (local), node `card` of mission-57: D-13 to D-25, D-35, D-36, D-45, D-50; card v4 D-51 to D-55 and B54 to B60, which replace the station track (D-46 and its rows) on 2026-11-12. - Base main, head 5a3e516: 5cc7e98 card v4 and the station code removed, ff61dab its e2e, 111a763 the destination kept whole, f1395a9 main merged (`mission-graph-card.tsx`: main's title-aligned indent kept with v4's one gap), 2d6a913 the line kept inside the card at 17 px, b248a02 its e2e, the stale comments and the foot's unreachable condition (review of 2d6a913: F1, m4, m5), review PASS on b248a02; de4fd48 the operator's capture review (D-56): rows from the card's left edge; 8cbf226 the operator's second capture review (D-56 revised): the number alone on a long line's first row, the second row shared between branch and destination, and review of de4fd48 (F1 `PR 없이` after the destination, m1 the right-end marks at the first row); deb9949 the marks float beside the first row so the second keeps the card's width; 2d6e080 a numbered line with marks is two rows with its number whole (verify FAIL on deb9949, D-56 as settled); 67c831c a stacked destination as its pull request's icon and a grey number (D-57) and the hover as labelled rows (D-58), review PASS of D-57 and D-58 and verification PASS on it; f1ae91d a line without a number keeps its marks at its right end, the line taking what they leave (review of 67c831c: F1), the unused worker role word removed (m1), the hover's whole line reading its number (m2); fb0f87d main merged with with-hide#2485 (`MissionScene.tsx`: main's general verify node kept with this branch's outside base and state; the result line reads a general node's research or verify preset, another general node's line left to the presets' card work); 98d566f its e2e; 7f699dd main merged again (with-hide#2495, with-hide#2497: hooks and docs only, clean), verification FAIL on it (F1: `· PR 없이` under the marks of a line without a number); 5a3e516 a line without a number keeps one row only when it fits beside its marks, otherwise its icon and marks on the first row and its path on the second (D-56 as for a number). - D-56 as revised on 2026-11-12: a line that fits is one row; otherwise the number keeps the first row and the second is shared, a name shorter than half of it whole and two longer ones half each, both cut at their ends with their whole names in the hover and the card's name; the icon and number never. - Earlier, on the station track: review and verification PASS on ede9554; 08fd287 reads the due merge from the core alone. - Planted defect: `base_pr` ignored in `ownLine`; `missionLine.test.ts` 2 failed, restored. </details>
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.
Summary
A user asked their agent to rebase a pull request branch.
Hide refused
git rebasein every pane and told the agent to merge the base instead, so the agent pushed a merge commit nobody asked for.That refusal came from a working rule of this repository (stacks merge, never rebase) and was never meant for every user's project.
Now only an agent of a mission node (worker or checker) is refused a rebase or force push, so a checked commit stays the one checked.
Everywhere else these commands run, and only the project guardrails the operator turned on judge them.
The refusal no longer names another command to run in its place: it tells the agent to ask its Conductor.
No screenshot: no screen changes; the change is a hook refusal an agent reads.
Review
hide-agent-hooks/src/plan_record.rs- the pre-tool hook's refusal path, read on every tool call in a pane with a record.Tests
plan_record.rs, plus the sharedcontracts/delivery-envelope.jsoncases the hook test replays.Evidence
verify-cargo.sh nextest -p hide-agent-hooks -E 'test(/plan_record/)': 12 passed, including the contract replay and the PowerShell case;clippy -p hide-agent-hooks --all-targets -D warningsclean;cargo fmt --checkclean.