@muggleai/works 5.25.0-staging.190 → 5.25.0-staging.191

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,7 +9,7 @@
9
9
  "name": "muggleai",
10
10
  "source": "./plugin",
11
11
  "description": "Real-browser E2E acceptance for your coding agent: test the flows you changed and open the PR with screenshots. Built for flows other tools can't reach: managed test identities with live inboxes (magic links, email OTP and 2FA, verification mail, password resets), an encrypted secret store for login and test credentials, and a test graph that runs prerequisite flows first. Plain-English tests become replayable scripts on localhost or preview URLs.",
12
- "version": "5.25.0-staging.190"
12
+ "version": "5.25.0-staging.191"
13
13
  }
14
14
  ]
15
15
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "muggle",
3
3
  "description": "Real-browser E2E acceptance for your coding agent: test the flows you changed and open the PR with screenshots. Built for flows other tools can't reach: managed test identities with live inboxes (magic links, email OTP and 2FA, verification mail, password resets), an encrypted secret store for login and test credentials, and a test graph that runs prerequisite flows first. Plain-English tests become replayable scripts on localhost or preview URLs.",
4
- "version": "5.25.0-staging.190",
4
+ "version": "5.25.0-staging.191",
5
5
  "author": {
6
6
  "name": "Muggle AI",
7
7
  "email": "support@muggle-ai.com"
@@ -4,7 +4,7 @@
4
4
  "command": "npx",
5
5
  "args": [
6
6
  "-y",
7
- "@muggleai/works@5.25.0-staging.190",
7
+ "@muggleai/works@5.25.0-staging.191",
8
8
  "serve"
9
9
  ],
10
10
  "env": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "muggle",
3
- "version": "5.25.0-staging.190",
3
+ "version": "5.25.0-staging.191",
4
4
  "description": "Real-browser E2E acceptance for your coding agent: test the flows you changed and open the PR with screenshots. Built for flows other tools can't reach: managed test identities with live inboxes (magic links, email OTP and 2FA, verification mail, password resets), an encrypted secret store for login and test credentials, and a test graph that runs prerequisite flows first. Plain-English tests become replayable scripts on localhost or preview URLs.",
5
5
  "author": {
6
6
  "name": "Muggle AI",
@@ -2,7 +2,7 @@
2
2
  "name": "muggle",
3
3
  "displayName": "Muggle AI",
4
4
  "description": "Real-browser E2E acceptance for your coding agent: test the flows you changed and open the PR with screenshots. Built for flows other tools can't reach: managed test identities with live inboxes (magic links, email OTP and 2FA, verification mail, password resets), an encrypted secret store for login and test credentials, and a test graph that runs prerequisite flows first. Plain-English tests become replayable scripts on localhost or preview URLs.",
5
- "version": "5.25.0-staging.190",
5
+ "version": "5.25.0-staging.191",
6
6
  "author": {
7
7
  "name": "Muggle AI",
8
8
  "email": "support@muggle-ai.com"
@@ -4,7 +4,7 @@
4
4
  "command": "npx",
5
5
  "args": [
6
6
  "-y",
7
- "@muggleai/works@5.25.0-staging.190",
7
+ "@muggleai/works@5.25.0-staging.191",
8
8
  "serve"
9
9
  ]
10
10
  }
@@ -8,7 +8,7 @@ Invoked by `/muggle-do` when the watcher forwards a PR's terminal state. On `mer
8
8
 
9
9
  ## Terminal record
10
10
 
11
- The facts [`next-step.md`](next-step.md) reports `<slug>` from. Teardown deletes the slot, so step 4 captures them first:
11
+ The facts [`next-step.md`](next-step.md) reports a finished PR from. Teardown deletes the slot, so step 4 captures them first; step 6 adds the teardown outcome:
12
12
 
13
13
  - `pr` — `<owner>/<repo>#<n>` and URL, from `prs.json`.
14
14
  - `state` — `merged` or `closed`, from `prs.json`.
@@ -16,6 +16,12 @@ The facts [`next-step.md`](next-step.md) reports `<slug>` from. Teardown deletes
16
16
  - `e2eFailing` — the title carries `[E2E FAILING]`: the PR shipped on a waived E2E verdict.
17
17
  - `escalatedReviewIds` — `result.md`'s `Escalated review ids`; empty on `none` or when `result.md` is absent.
18
18
  - `waivers` — `state.md`'s waiver and Blocker lines, verbatim.
19
+ - `teardown` — the note next-step prints, from this turn's teardown report: `cleaned up` when no row is `❌`, the first `❌` row's reason otherwise, `branch kept` when teardown did not run.
20
+ - `finishedAt` — ISO-8601, when step 6 ran.
21
+
22
+ ## Chat ledger
23
+
24
+ `~/.muggle-ai/muggle-do/chats/<session-id>.json` — a JSON array of the terminal record of every PR this chat finished. It sits outside the sessions directory, so teardown never deletes it, and [`next-step.md`](next-step.md) reads it to report PRs whose slots are gone. `<session-id>` is `$CLAUDE_CODE_SESSION_ID`; unset, the chat cannot name its ledger and none is written. Rewrite the whole file per [`session-state-writes.md`](../_shared/session-state-writes.md); a record whose `pr` is already listed replaces that entry.
19
25
 
20
26
  ## Procedure
21
27
 
@@ -24,7 +30,8 @@ The facts [`next-step.md`](next-step.md) reports `<slug>` from. Teardown deletes
24
30
  3. **Retire the cases the change replaced or removed (`merged` only).** Read the newest `e2eScope` recorded in the slot's `iterations/` ([`impact-analysis.md`](impact-analysis.md#output-state--e2escope)) — later cycles rescope, so the newest one describes what merged. Soft-delete each `retiredTestCases` entry with `muggle-remote-test-case-delete`, then each `retiredUseCases` entry with `muggle-remote-use-case-delete`, all in one message per kind. Before deleting a use case, confirm with `muggle-remote-test-case-list-by-use-case` that every test case under it is in the retired list: the delete cascades, so a test case added since scoping keeps the use case and its id is reported instead. An id already gone counts as deleted. On `closed` nothing is deleted — the change never landed, so the default branch still exercises those cases.
25
31
  4. **Capture the [terminal record](#terminal-record)** from the slot and the provider. This is the last read of `<slug>`'s slot: teardown may delete it next.
26
32
  5. **Teardown (`merged` only).** When the PR is `merged`, run [`../_shared/post-merge-cleanup.md`](../_shared/post-merge-cleanup.md) with `{worktreePath}` and `{branch}`. That file owns the teardown sequence **and its safety rules** — including skipping worktree-remove and local branch deletion when no worktree was used. This stage adds no teardown logic of its own. On `closed`, skip teardown — the branch and any worktree stay intact.
27
- 6. **Log while the slot exists.** When teardown's report marks `Session slot cleared` ✅, write nothing: the slot and its `followup.log` are gone, an append there fails or recreates the directory as a stray slot, and the retirement and teardown reports printed this turn are the record. Otherwise append a cleanup line to the session's `followup.log`, recording the case ids retired and whether teardown ran.
28
- 7. Suggest the next step per [`next-step.md`](next-step.md), passing whether teardown ran and the terminal record. This is the stage's last action.
33
+ 6. **Record the PR in the [chat ledger](#chat-ledger).** Complete the terminal record with `teardown` and `finishedAt`, then write it to the ledger. The ledger is outside the slot, so this holds whether or not teardown cleared it.
34
+ 7. **Log while the slot exists.** When teardown's report marks `Session slot cleared` ✅, write nothing: the slot and its `followup.log` are gone, an append there fails or recreates the directory as a stray slot, and the retirement and teardown reports printed this turn are the record. Otherwise append a cleanup line to the session's `followup.log`, recording the case ids retired and whether teardown ran.
35
+ 8. Suggest the next step per [`next-step.md`](next-step.md), passing whether teardown ran and the terminal record. This is the stage's last action.
29
36
 
30
- **Teardown never returns a question, and neither does retirement.** Each finishes with its report — every item done, skipped, or blocked-with-a-reason — so steps 6 and 7 always run. A teardown that appears to be waiting on the user has stalled mid-sequence; the stage is not complete until the report and the next-step suggestion are both printed.
37
+ **Teardown never returns a question, and neither does retirement.** Each finishes with its report — every item done, skipped, or blocked-with-a-reason — so steps 6, 7 and 8 always run. A teardown that appears to be waiting on the user has stalled mid-sequence; the stage is not complete until the report and the next-step suggestion are both printed.
@@ -6,11 +6,11 @@ Closing step of a terminal `/muggle-do` turn (post-merge or post-close). Advance
6
6
 
7
7
  - `slug` — the session.
8
8
  - `teardownRan` — whether [`cleanup.md`](cleanup.md) already ran teardown (true on `merged` + `autoCleanup: always`; false on `closed` or a skipped gate).
9
- - `terminalRecord` — `<slug>`'s [terminal record](cleanup.md#terminal-record), captured before teardown could delete its slot.
9
+ - `terminalRecord` — `<slug>`'s [terminal record](cleanup.md#terminal-record), captured before teardown could delete its slot and completed with its `teardown` note.
10
10
 
11
11
  ## This chat's work
12
12
 
13
- "This chat" is the Claude Code session running the turn, `$CLAUDE_CODE_SESSION_ID`. Its work is `<slug>` plus every slot under `~/.muggle-ai/muggle-do/sessions/` whose [`owner.json`](../muggle-pr-followup/state-schemas.md#ownerjson) records that id — the owned side of reconcile's split ([`reconcile.md`](../muggle-pr-followup/reconcile.md#step-1--enumerate-and-partition-slots)), finalized slots included. Every other slot holding a `prs.json` is another chat's work. With the id unset, this chat's work is `<slug>` alone.
13
+ "This chat" is the Claude Code session running the turn, `$CLAUDE_CODE_SESSION_ID`. Its work is `<slug>`, every PR in its [chat ledger](cleanup.md#chat-ledger) — PRs it finished, whose slots teardown may have deleted — and every slot under `~/.muggle-ai/muggle-do/sessions/` whose [`owner.json`](../muggle-pr-followup/state-schemas.md#ownerjson) records that id — the owned side of reconcile's split ([`reconcile.md`](../muggle-pr-followup/reconcile.md#step-1--enumerate-and-partition-slots)), finalized slots included. Every other slot holding a `prs.json` is another chat's work. With the id unset, this chat's work is `<slug>` alone.
14
14
 
15
15
  The sessions directory holds every chat's slots, so a selector drawn from the whole directory offers work this chat never touched. Report and follow-ups cover this chat only; other chats sit behind one explicit option.
16
16
 
@@ -25,7 +25,7 @@ Both appends target `<slug>`'s `followup.log` and are skipped once teardown's re
25
25
 
26
26
  ## Status block
27
27
 
28
- One line per slot of this chat's work, `<slug>` first, the rest newest first, then the `Left over` line:
28
+ One line per PR of this chat's work, `<slug>` first, the rest newest first, then the `Left over` line:
29
29
 
30
30
  ```
31
31
  This chat's work:
@@ -36,13 +36,14 @@ This chat's work:
36
36
  Left over: #145 shipped [E2E FAILING]; review 2210 on #142 escalated
37
37
  ```
38
38
 
39
- - **`<slug>`** is built from `terminalRecord`, never from the slot on disk — teardown may have deleted it. The teardown note comes from teardown's report printed this turn: `cleaned up` when no row is `❌`, the first `❌` row's reason otherwise, `branch kept` when `teardownRan` is false.
40
- - **Other terminal slots** (`merged`, `closed`) read `prs.json` and `result.md`; the teardown note comes from the cleanup line in `followup.log`.
39
+ - **`<slug>`** is built from `terminalRecord`, never from the slot on disk — teardown may have deleted it. Its teardown note is the record's `teardown`.
40
+ - **Finished PRs** — the ledger's other records, each line built from its record and its `teardown` note. A PR in the ledger is listed once, from the ledger, even while its slot is still on disk.
41
+ - **Other terminal slots** (`merged`, `closed`) not in the ledger read `prs.json` and `result.md`; the teardown note comes from the cleanup line in `followup.log`.
41
42
  - **Open slots** refresh live. Resolve the provider per [`detect-vcs.md`](../_shared/vcs/detect-vcs.md) and use its PR-metadata and unresolved-thread recipes ([`github.md`](../_shared/vcs/github.md), [`gitlab.md`](../_shared/vcs/gitlab.md)); CI per [`ci-rollup.md`](../_shared/vcs/common/ci-rollup.md). The watcher reads `live` when [`watch-heartbeat`](../muggle-pr-followup/state-schemas.md#watch-heartbeat) is fresh, `stopped` otherwise.
42
43
  - **Blocked** replaces `open` when `last_seen.json` carries `blocked`; the line names the pending act per [`blocked-reminder.md`](../muggle-pr-followup/output-templates/blocked-reminder.md).
43
- - **`Left over`** lists what this chat's slots recorded as unfinished: a waiver or Blocker in `state.md`, an `[E2E FAILING]` ship, escalated review ids in `result.md` — for `<slug>`, the record's `waivers`, `e2eFailing` and `escalatedReviewIds`. `nothing` when empty.
44
+ - **`Left over`** lists what this chat's slots recorded as unfinished: a waiver or Blocker in `state.md`, an `[E2E FAILING]` ship, escalated review ids in `result.md` — for `<slug>` and every ledger record, the record's `waivers`, `e2eFailing` and `escalatedReviewIds`. `nothing` when empty.
44
45
 
45
- No other chat's slot appears in the block.
46
+ No other chat's slot or ledger appears in the block.
46
47
 
47
48
  ## Selector
48
49
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "release": "5.18.0",
3
- "buildId": "run-190-1",
4
- "commitSha": "9bdfcbcec3b9d50374eb7a0129c568f48002e97a",
5
- "buildTime": "2026-10-24T07:33:10Z",
3
+ "buildId": "run-191-1",
4
+ "commitSha": "79ee6e3c690d77c9b32351f388da83ec1461f4fe",
5
+ "buildTime": "2026-10-24T16:41:22Z",
6
6
  "serviceName": "muggle-ai-works-mcp"
7
7
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@muggleai/works",
3
3
  "mcpName": "io.github.multiplex-ai/muggle",
4
- "version": "5.25.0-staging.190",
4
+ "version": "5.25.0-staging.191",
5
5
  "description": "13 years of Microsoft hyperscale engineering, packaged as a harness for your AI coding agent.",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "muggle",
3
3
  "description": "Real-browser E2E acceptance for your coding agent: test the flows you changed and open the PR with screenshots. Built for flows other tools can't reach: managed test identities with live inboxes (magic links, email OTP and 2FA, verification mail, password resets), an encrypted secret store for login and test credentials, and a test graph that runs prerequisite flows first. Plain-English tests become replayable scripts on localhost or preview URLs.",
4
- "version": "5.25.0-staging.190",
4
+ "version": "5.25.0-staging.191",
5
5
  "author": {
6
6
  "name": "Muggle AI",
7
7
  "email": "support@muggle-ai.com"
@@ -4,7 +4,7 @@
4
4
  "command": "npx",
5
5
  "args": [
6
6
  "-y",
7
- "@muggleai/works@5.25.0-staging.190",
7
+ "@muggleai/works@5.25.0-staging.191",
8
8
  "serve"
9
9
  ],
10
10
  "env": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "muggle",
3
- "version": "5.25.0-staging.190",
3
+ "version": "5.25.0-staging.191",
4
4
  "description": "Real-browser E2E acceptance for your coding agent: test the flows you changed and open the PR with screenshots. Built for flows other tools can't reach: managed test identities with live inboxes (magic links, email OTP and 2FA, verification mail, password resets), an encrypted secret store for login and test credentials, and a test graph that runs prerequisite flows first. Plain-English tests become replayable scripts on localhost or preview URLs.",
5
5
  "author": {
6
6
  "name": "Muggle AI",
@@ -2,7 +2,7 @@
2
2
  "name": "muggle",
3
3
  "displayName": "Muggle AI",
4
4
  "description": "Real-browser E2E acceptance for your coding agent: test the flows you changed and open the PR with screenshots. Built for flows other tools can't reach: managed test identities with live inboxes (magic links, email OTP and 2FA, verification mail, password resets), an encrypted secret store for login and test credentials, and a test graph that runs prerequisite flows first. Plain-English tests become replayable scripts on localhost or preview URLs.",
5
- "version": "5.25.0-staging.190",
5
+ "version": "5.25.0-staging.191",
6
6
  "author": {
7
7
  "name": "Muggle AI",
8
8
  "email": "support@muggle-ai.com"
package/plugin/.mcp.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "command": "npx",
5
5
  "args": [
6
6
  "-y",
7
- "@muggleai/works@5.25.0-staging.190",
7
+ "@muggleai/works@5.25.0-staging.191",
8
8
  "serve"
9
9
  ]
10
10
  }
@@ -8,7 +8,7 @@ Invoked by `/muggle-do` when the watcher forwards a PR's terminal state. On `mer
8
8
 
9
9
  ## Terminal record
10
10
 
11
- The facts [`next-step.md`](next-step.md) reports `<slug>` from. Teardown deletes the slot, so step 4 captures them first:
11
+ The facts [`next-step.md`](next-step.md) reports a finished PR from. Teardown deletes the slot, so step 4 captures them first; step 6 adds the teardown outcome:
12
12
 
13
13
  - `pr` — `<owner>/<repo>#<n>` and URL, from `prs.json`.
14
14
  - `state` — `merged` or `closed`, from `prs.json`.
@@ -16,6 +16,12 @@ The facts [`next-step.md`](next-step.md) reports `<slug>` from. Teardown deletes
16
16
  - `e2eFailing` — the title carries `[E2E FAILING]`: the PR shipped on a waived E2E verdict.
17
17
  - `escalatedReviewIds` — `result.md`'s `Escalated review ids`; empty on `none` or when `result.md` is absent.
18
18
  - `waivers` — `state.md`'s waiver and Blocker lines, verbatim.
19
+ - `teardown` — the note next-step prints, from this turn's teardown report: `cleaned up` when no row is `❌`, the first `❌` row's reason otherwise, `branch kept` when teardown did not run.
20
+ - `finishedAt` — ISO-8601, when step 6 ran.
21
+
22
+ ## Chat ledger
23
+
24
+ `~/.muggle-ai/muggle-do/chats/<session-id>.json` — a JSON array of the terminal record of every PR this chat finished. It sits outside the sessions directory, so teardown never deletes it, and [`next-step.md`](next-step.md) reads it to report PRs whose slots are gone. `<session-id>` is `$CLAUDE_CODE_SESSION_ID`; unset, the chat cannot name its ledger and none is written. Rewrite the whole file per [`session-state-writes.md`](../_shared/session-state-writes.md); a record whose `pr` is already listed replaces that entry.
19
25
 
20
26
  ## Procedure
21
27
 
@@ -24,7 +30,8 @@ The facts [`next-step.md`](next-step.md) reports `<slug>` from. Teardown deletes
24
30
  3. **Retire the cases the change replaced or removed (`merged` only).** Read the newest `e2eScope` recorded in the slot's `iterations/` ([`impact-analysis.md`](impact-analysis.md#output-state--e2escope)) — later cycles rescope, so the newest one describes what merged. Soft-delete each `retiredTestCases` entry with `muggle-remote-test-case-delete`, then each `retiredUseCases` entry with `muggle-remote-use-case-delete`, all in one message per kind. Before deleting a use case, confirm with `muggle-remote-test-case-list-by-use-case` that every test case under it is in the retired list: the delete cascades, so a test case added since scoping keeps the use case and its id is reported instead. An id already gone counts as deleted. On `closed` nothing is deleted — the change never landed, so the default branch still exercises those cases.
25
31
  4. **Capture the [terminal record](#terminal-record)** from the slot and the provider. This is the last read of `<slug>`'s slot: teardown may delete it next.
26
32
  5. **Teardown (`merged` only).** When the PR is `merged`, run [`../_shared/post-merge-cleanup.md`](../_shared/post-merge-cleanup.md) with `{worktreePath}` and `{branch}`. That file owns the teardown sequence **and its safety rules** — including skipping worktree-remove and local branch deletion when no worktree was used. This stage adds no teardown logic of its own. On `closed`, skip teardown — the branch and any worktree stay intact.
27
- 6. **Log while the slot exists.** When teardown's report marks `Session slot cleared` ✅, write nothing: the slot and its `followup.log` are gone, an append there fails or recreates the directory as a stray slot, and the retirement and teardown reports printed this turn are the record. Otherwise append a cleanup line to the session's `followup.log`, recording the case ids retired and whether teardown ran.
28
- 7. Suggest the next step per [`next-step.md`](next-step.md), passing whether teardown ran and the terminal record. This is the stage's last action.
33
+ 6. **Record the PR in the [chat ledger](#chat-ledger).** Complete the terminal record with `teardown` and `finishedAt`, then write it to the ledger. The ledger is outside the slot, so this holds whether or not teardown cleared it.
34
+ 7. **Log while the slot exists.** When teardown's report marks `Session slot cleared` ✅, write nothing: the slot and its `followup.log` are gone, an append there fails or recreates the directory as a stray slot, and the retirement and teardown reports printed this turn are the record. Otherwise append a cleanup line to the session's `followup.log`, recording the case ids retired and whether teardown ran.
35
+ 8. Suggest the next step per [`next-step.md`](next-step.md), passing whether teardown ran and the terminal record. This is the stage's last action.
29
36
 
30
- **Teardown never returns a question, and neither does retirement.** Each finishes with its report — every item done, skipped, or blocked-with-a-reason — so steps 6 and 7 always run. A teardown that appears to be waiting on the user has stalled mid-sequence; the stage is not complete until the report and the next-step suggestion are both printed.
37
+ **Teardown never returns a question, and neither does retirement.** Each finishes with its report — every item done, skipped, or blocked-with-a-reason — so steps 6, 7 and 8 always run. A teardown that appears to be waiting on the user has stalled mid-sequence; the stage is not complete until the report and the next-step suggestion are both printed.
@@ -6,11 +6,11 @@ Closing step of a terminal `/muggle-do` turn (post-merge or post-close). Advance
6
6
 
7
7
  - `slug` — the session.
8
8
  - `teardownRan` — whether [`cleanup.md`](cleanup.md) already ran teardown (true on `merged` + `autoCleanup: always`; false on `closed` or a skipped gate).
9
- - `terminalRecord` — `<slug>`'s [terminal record](cleanup.md#terminal-record), captured before teardown could delete its slot.
9
+ - `terminalRecord` — `<slug>`'s [terminal record](cleanup.md#terminal-record), captured before teardown could delete its slot and completed with its `teardown` note.
10
10
 
11
11
  ## This chat's work
12
12
 
13
- "This chat" is the Claude Code session running the turn, `$CLAUDE_CODE_SESSION_ID`. Its work is `<slug>` plus every slot under `~/.muggle-ai/muggle-do/sessions/` whose [`owner.json`](../muggle-pr-followup/state-schemas.md#ownerjson) records that id — the owned side of reconcile's split ([`reconcile.md`](../muggle-pr-followup/reconcile.md#step-1--enumerate-and-partition-slots)), finalized slots included. Every other slot holding a `prs.json` is another chat's work. With the id unset, this chat's work is `<slug>` alone.
13
+ "This chat" is the Claude Code session running the turn, `$CLAUDE_CODE_SESSION_ID`. Its work is `<slug>`, every PR in its [chat ledger](cleanup.md#chat-ledger) — PRs it finished, whose slots teardown may have deleted — and every slot under `~/.muggle-ai/muggle-do/sessions/` whose [`owner.json`](../muggle-pr-followup/state-schemas.md#ownerjson) records that id — the owned side of reconcile's split ([`reconcile.md`](../muggle-pr-followup/reconcile.md#step-1--enumerate-and-partition-slots)), finalized slots included. Every other slot holding a `prs.json` is another chat's work. With the id unset, this chat's work is `<slug>` alone.
14
14
 
15
15
  The sessions directory holds every chat's slots, so a selector drawn from the whole directory offers work this chat never touched. Report and follow-ups cover this chat only; other chats sit behind one explicit option.
16
16
 
@@ -25,7 +25,7 @@ Both appends target `<slug>`'s `followup.log` and are skipped once teardown's re
25
25
 
26
26
  ## Status block
27
27
 
28
- One line per slot of this chat's work, `<slug>` first, the rest newest first, then the `Left over` line:
28
+ One line per PR of this chat's work, `<slug>` first, the rest newest first, then the `Left over` line:
29
29
 
30
30
  ```
31
31
  This chat's work:
@@ -36,13 +36,14 @@ This chat's work:
36
36
  Left over: #145 shipped [E2E FAILING]; review 2210 on #142 escalated
37
37
  ```
38
38
 
39
- - **`<slug>`** is built from `terminalRecord`, never from the slot on disk — teardown may have deleted it. The teardown note comes from teardown's report printed this turn: `cleaned up` when no row is `❌`, the first `❌` row's reason otherwise, `branch kept` when `teardownRan` is false.
40
- - **Other terminal slots** (`merged`, `closed`) read `prs.json` and `result.md`; the teardown note comes from the cleanup line in `followup.log`.
39
+ - **`<slug>`** is built from `terminalRecord`, never from the slot on disk — teardown may have deleted it. Its teardown note is the record's `teardown`.
40
+ - **Finished PRs** — the ledger's other records, each line built from its record and its `teardown` note. A PR in the ledger is listed once, from the ledger, even while its slot is still on disk.
41
+ - **Other terminal slots** (`merged`, `closed`) not in the ledger read `prs.json` and `result.md`; the teardown note comes from the cleanup line in `followup.log`.
41
42
  - **Open slots** refresh live. Resolve the provider per [`detect-vcs.md`](../_shared/vcs/detect-vcs.md) and use its PR-metadata and unresolved-thread recipes ([`github.md`](../_shared/vcs/github.md), [`gitlab.md`](../_shared/vcs/gitlab.md)); CI per [`ci-rollup.md`](../_shared/vcs/common/ci-rollup.md). The watcher reads `live` when [`watch-heartbeat`](../muggle-pr-followup/state-schemas.md#watch-heartbeat) is fresh, `stopped` otherwise.
42
43
  - **Blocked** replaces `open` when `last_seen.json` carries `blocked`; the line names the pending act per [`blocked-reminder.md`](../muggle-pr-followup/output-templates/blocked-reminder.md).
43
- - **`Left over`** lists what this chat's slots recorded as unfinished: a waiver or Blocker in `state.md`, an `[E2E FAILING]` ship, escalated review ids in `result.md` — for `<slug>`, the record's `waivers`, `e2eFailing` and `escalatedReviewIds`. `nothing` when empty.
44
+ - **`Left over`** lists what this chat's slots recorded as unfinished: a waiver or Blocker in `state.md`, an `[E2E FAILING]` ship, escalated review ids in `result.md` — for `<slug>` and every ledger record, the record's `waivers`, `e2eFailing` and `escalatedReviewIds`. `nothing` when empty.
44
45
 
45
- No other chat's slot appears in the block.
46
+ No other chat's slot or ledger appears in the block.
46
47
 
47
48
  ## Selector
48
49