Skip to content

Commit 3d975e7

Browse files
mchwangclaude
andcommitted
Add the Stopped and Unknown marks to DESIGN.md, record the step list's placement, and test focus when a reload shows the job ended (#194 review round 17)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 03957d6 commit 3d975e7

3 files changed

Lines changed: 16 additions & 7 deletions

File tree

‎DESIGN.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ components:
144144
| Token | Meaning | Icon and word |
145145
|---|---|---|
146146
| `success` | OK: passed, in scope, approved | ✓ plus a word such as "OK" or "Passed" |
147-
| `warning` | Attribution warning, stale | ! plus a word such as "Stale" or "Ambiguous" |
147+
| `warning` | Attribution warning, stale, or a step that did not finish normally | ! plus a word such as "Stale" or "Ambiguous" ("Stopped" for a cancelled merge step, "Unknown" when GitHub's merge outcome is not known) |
148148
| `error` | Scope or test failure, blocker, unplanned | ✕ plus a word such as "Fail" or "Unplanned" |
149149
| `neutral-status` | Not applicable | – plus "N/A" (or "Skipped" for a step that was not needed) |
150150
| `neutral-status` | Not started yet (a step that is waiting) | ○ plus "Waiting" |
@@ -261,3 +261,4 @@ There are no shadows and no glows. Depth comes from the surface brightness steps
261261
| 2026-09-22 | Contrast-checked values kept instead of values extracted from the mockup image | The extracted values (for example error #DA1E28) failed contrast on dark surfaces |
262262
| 2026-10-21 | Two progress marks for the merge step list: ○ "Waiting" in `neutral-status` and ● "Running" in `text` | Steps that have not started or are under way are not outcomes, so they take no outcome color. Approved by the user (PR #194) |
263263
| 2026-10-21 | The not-applicable mark also reads "Skipped" for a merge step that was not needed | Same meaning as N/A, worded for a step. Part of the step list the user approved (PR #194) |
264+
| 2026-10-21 | The warning mark also reads "Stopped" (a cancelled merge step) and "Unknown" (GitHub's merge outcome not known) | Both mean "look at this, it did not finish normally". Approved by the user (PR #194) |

‎docs/designs/codeboost-plan-indexed-review.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ Added by the design review. Each rule cites the design-review decision (Dn) that
373373
| Approved, merge blocked | "GitHub refused the merge:" plus GitHub's exact message | **Retry merge** | Open on GitHub |
374374

375375
**While merging (D16).**
376-
- The header turns into a step list: **Fetch → Rebase → Push → Re-run checks → GitHub checks → Already-fixed check → Merge**. Each step shows its status and elapsed time. A **Cancel** button is always shown. *Amended 2026-10-21 (user decision, PR #194):* **Cancel merge** shows only while the merge job runs; an ended job has nothing to cancel.
376+
- The header turns into a step list: **Fetch → Rebase → Push → Re-run checks → GitHub checks → Already-fixed check → Merge**. Each step shows its status and elapsed time. A **Cancel** button is always shown. *Amended 2026-10-21 (user decisions, PR #194):* the step list is a bar under the review strip, and the header keeps the merge control and its blockers; **Cancel merge** shows only while the merge job runs, since an ended job has nothing to cancel.
377377
- You can leave the screen. The steps keep running, and the task row in the Queue shows the current step.
378378
- Each failure ends in a named banner that jumps to the first affected item, for example:
379379
- "Rebase changed P2 and P4. Review them again."
@@ -1982,7 +1982,7 @@ F, G and H ran together within these ownership boundaries. G and H are done; for
19821982
19831983
Built from this review's findings. Each task comes from a specific decision above. Run with Claude Code or Codex, and tick each one as you ship it. Effort ratios assumed: features about 30x, tests about 50x, architecture about 5x.
19841984
1985-
**Status (checked against `main` on 2026-09-26, lane B0).** T1, T2, T4, T5, T10, T13 and T14 meet their Verify lines and are ticked, with evidence under each (T1, T2 and T14 re-checked 2026-09-26 after lane D merged). T9 was ticked on 2026-10-19 (checked against `main` that day), with evidence under it. T3, T7 and T11 were ticked on 2026-10-20 (checked against `main` at `eafe2be`), with evidence under each. T6 and T12 were ticked on 2026-10-20 (PR #183), with evidence under each. Lane F6 (common CI) added the workflows in `docs/implementation/ci.md`: `test` and `real-docker` run on every pull request with no path filter, and `Live probes` runs the live Claude probes nightly and by hand. The ruleset "main checks" requires `test` and `real-docker` on `main`, both passed on the combined head `ba8294d`, and a `Live probes` run passed with the `CLAUDE_CODE_OAUTH_TOKEN` secret. Ask calls the `agents/` boundary from `runner/question-container.ts`; it has no host adapter. The planned files `core/segments`, `core/choices` and `core/attribution` were never created. That logic lives in `core/linking.ts` (segments and ledger attribution) and `core/approvals.ts` (approvals and duplicate-segment choices). The Files lines below now name the real files.
1985+
**Status (checked against `main` on 2026-09-26; merge items updated 2026-10-21, lane B0).** T1, T2, T4, T5, T10, T13 and T14 meet their Verify lines and are ticked, with evidence under each (T1, T2 and T14 re-checked 2026-09-26 after lane D merged). T9 was ticked on 2026-10-19 (checked against `main` that day), with evidence under it. T3, T7 and T11 were ticked on 2026-10-20 (checked against `main` at `eafe2be`), with evidence under each. T6 and T12 were ticked on 2026-10-20 (PR #183), with evidence under each. Lane F6 (common CI) added the workflows in `docs/implementation/ci.md`: `test` and `real-docker` run on every pull request with no path filter, and `Live probes` runs the live Claude probes nightly and by hand. The ruleset "main checks" requires `test` and `real-docker` on `main`, both passed on the combined head `ba8294d`, and a `Live probes` run passed with the `CLAUDE_CODE_OAUTH_TOKEN` secret. Ask calls the `agents/` boundary from `runner/question-container.ts`; it has no host adapter. The planned files `core/segments`, `core/choices` and `core/attribution` were never created. That logic lives in `core/linking.ts` (segments and ledger attribution) and `core/approvals.ts` (approvals and duplicate-segment choices). The Files lines below now name the real files.
19861986
19871987
These `T` IDs are requirement identifiers, not the build-order numbers. Build step 4 (merge gate and merging) spans T3, T6, T7, T11 and T12; it is unrelated to the numbering of T4. See “Build step 4: scope and progress” for its increments and remaining criteria. An increment must not mark a broader requirement complete while any of its acceptance criteria remain deferred.
19881988

‎test/browser/review.spec.ts‎

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,7 @@ for (const answer of ['ended','newer'] as const) test(`polls again within second
10051005
else await expect(page.getByRole('list',{name:'Merge steps'}).getByRole('listitem').first()).toHaveText(/^● Fetch Running/,{timeout:6_000});
10061006
expect(Date.now()-released).toBeLessThan(5_000);
10071007
});
1008-
for (const reload of ['unavailable','failed'] as const) test(`moves focus off Cancel to Refresh when a reload ${reload==='failed'?'fails':'hides the merge control'} (D16)`,async({page})=>{
1008+
for (const reload of ['unavailable','failed','ended'] as const) test(`moves focus off Cancel when a reload ${{failed:'fails',unavailable:'hides the merge control',ended:'shows the job ended'}[reload]} (D16)`,async({page})=>{
10091009
const config={...app.service.config,demo:false};await app.close();removeDemoOutOfScope(config);
10101010
const gateway:MergeGateway={inspect:async()=>{const snapshot=(await app.service.load()).snapshot;return {base:snapshot.base,head:snapshot.head,pullRequestState:'OPEN',mergeable:'MERGEABLE',rulesKnown:true,atomicBaseGuard:true,mergeQueue:false,requiredChecks:[],alreadyFixed:'clear',pullRequest:7,draft:false};},merge:async()=>{throw new Error('The browser test answers every merge request itself.');}};
10111011
app=await startServer(config,0,undefined,gateway);
@@ -1019,7 +1019,9 @@ for (const reload of ['unavailable','failed'] as const) test(`moves focus off Ca
10191019
// The reload answers a review whose merging is not available (the merge control hides), or fails (every merge control hides).
10201020
await page.route('**/api/review',async route=>{
10211021
if(reloaded&&reload==='failed'){await route.fulfill({status:500,contentType:'application/json',body:JSON.stringify({error:'Could not read this branch\'s history.'})});return;}
1022-
const response=await route.fetch(),body=await response.json();body.merge=reloaded?{...body.merge,available:false}:runnerMerge(body.merge,{ready:true,action:'merge',job:null});
1022+
const response=await route.fetch(),body=await response.json();
1023+
body.merge=reloaded?(reload==='ended'?runnerMerge(body.merge,{ready:false,action:null,job:mergeJobRecord({...waiting,state:'merged',step:null,revision:6,url:'https://github.com/owner/repo/pull/7'})}):{...body.merge,available:false})
1024+
:runnerMerge(body.merge,{ready:true,action:'merge',job:null});
10231025
await route.fulfill({response,json:body});});
10241026
await page.goto(app.url);page.on('dialog',dialog=>dialog.accept());
10251027
await page.getByRole('button',{name:'Merge PR',exact:true}).click();
@@ -1031,8 +1033,14 @@ for (const reload of ['unavailable','failed'] as const) test(`moves focus off Ca
10311033
await page.locator('#review-link').dispatchEvent('click');
10321034
await answered;
10331035
await expect(page.locator('#merge-steps-bar')).toBeHidden();
1034-
await expect(page.locator('#merge')).toBeHidden();
1035-
await expect(page.locator('#reload')).toBeFocused();
1036+
if(reload==='ended'){
1037+
// The merge control is still shown, so focus moves to it.
1038+
await expect(page.locator('#merge')).toBeVisible();
1039+
await expect(page.locator('#merge')).toBeFocused();
1040+
} else {
1041+
await expect(page.locator('#merge')).toBeHidden();
1042+
await expect(page.locator('#reload')).toBeFocused();
1043+
}
10361044
});
10371045
for (const refusal of ['ended','older','newer'] as const) test(`keeps what the poll showed when a cancel's refusal carrying ${{ended:'the ended job',older:'an older record of it',newer:'a newer running job'}[refusal]} arrives after the poll saw the job end (D16)`,async({page})=>{
10381046
const config={...app.service.config,demo:false};await app.close();removeDemoOutOfScope(config);

0 commit comments

Comments
 (0)