TUI READY count ignores the LANDING=pr open-PR exclusion — pr-mode repos show awaiting-merge tickets as swarm-ready #86

Closed
opened 2026-08-25 18:56:39 +00:00 by matou-build-agent · 4 comments

Symptom (2026-08-25). The fleet monitor showed Matou/matou-app READY=3 while every swarm run for that repo verdicted no-ready-tasks (e.g. 18:45:57Z, ready=[]). Both are "right": the three tickets (#70/#63/#62) are open + ready-for-agent + unblocked, but each already has an open agent/issue-<N> PR (#96/#88/#87) — and matou-app runs LANDING=pr MERGE_AUTHORITY=human, so list-ready-tasks.sh's LANDING=pr block (#13) correctly drops them: they are landed-and-awaiting-human-merge, not workable.

Cause. tui/data/tracker.py queue_snapshot (which fleet-tui/repostats.py reuses) mirrors only two of the swarm's three filters — the ready-for-agent label and the open-blocker DAG check — not the LANDING=pr open-PR exclusion. On a pr-mode repo the READY column therefore overstates by exactly the awaiting-merge set, which is also the most operator-actionable set on the board (MERGE_AUTHORITY=human means these are waiting on a person).

Fix sketch. Teach the queue reader the third filter: fetch pulls?state=open, map agent/issue-<N> head refs to issue numbers, and give matching ready-for-agent issues a distinct state — e.g. awaiting-merge — rather than silently dropping them (the operator WANTS to see them, just not counted as swarm-workable). repostats.summary counts them in their own column; READY then matches what run-swarm will actually list. Needs the repo's LANDING policy: the TUI reads the consumer's swarm-policy.sh via its identity seam (or infers from the presence of agent/issue-* PRs, which is policy-free and may be simpler — an open agent PR means awaiting merge in ANY landing mode where it exists).

Found while investigating the READY-vs-runlog mismatch in Ben's mission-control session.

**Symptom (2026-08-25).** The fleet monitor showed `Matou/matou-app` READY=3 while every swarm run for that repo verdicted `no-ready-tasks` (e.g. 18:45:57Z, `ready=[]`). Both are "right": the three tickets (#70/#63/#62) are open + `ready-for-agent` + unblocked, **but each already has an open `agent/issue-<N>` PR** (#96/#88/#87) — and matou-app runs `LANDING=pr MERGE_AUTHORITY=human`, so `list-ready-tasks.sh`'s LANDING=pr block (#13) correctly drops them: they are landed-and-awaiting-human-merge, not workable. **Cause.** `tui/data/tracker.py queue_snapshot` (which `fleet-tui/repostats.py` reuses) mirrors only two of the swarm's three filters — the `ready-for-agent` label and the open-blocker DAG check — not the LANDING=pr open-PR exclusion. On a pr-mode repo the READY column therefore overstates by exactly the awaiting-merge set, which is also the most operator-actionable set on the board (MERGE_AUTHORITY=human means these are waiting on a person). **Fix sketch.** Teach the queue reader the third filter: fetch `pulls?state=open`, map `agent/issue-<N>` head refs to issue numbers, and give matching ready-for-agent issues a distinct state — e.g. `awaiting-merge` — rather than silently dropping them (the operator WANTS to see them, just not counted as swarm-workable). `repostats.summary` counts them in their own column; READY then matches what run-swarm will actually list. Needs the repo's LANDING policy: the TUI reads the consumer's `swarm-policy.sh` via its identity seam (or infers from the presence of `agent/issue-*` PRs, which is policy-free and may be simpler — an open agent PR means awaiting merge in ANY landing mode where it exists). Found while investigating the READY-vs-runlog mismatch in Ben's mission-control session.
Author
Member

This was generated by AI during triage.

Triage: ready-for-agent + bug

Ruled by agent under ADR 0174 — veto anytime.

Ruling: take the policy-free option the ticket floats — infer awaiting-merge from the presence of an open agent/issue-<N> PR, rather than teaching the TUI to read the consumer's LANDING policy.

Three reasons:

  1. It is the only option compatible with the topology. fleet-tui is operator-side and watches repos across hosts through the tracker API; it has no checkout of a consumer to read swarm-policy.sh from, and reaching into a consumer's identity layer is exactly the seam violation #80 had to design around (the DRIVE column reads the host registry, never the consumer's DRIVE_STATUS_FILE). The per-repo tui could read the file locally, but repostats.py reuses queue_snapshot, so a policy-dependent implementation would fork the two callers' behaviour.
  2. The inference is sound in both landing modes. In pr mode an open agent PR means landed-and-awaiting-merge — the swarm's own filter drops it. In push mode the swarm pushes to main and opens no agent PR at all, so an open agent/issue-<N> PR is anomalous by construction; surfacing it is more useful than hiding it, and it cannot suppress a genuinely workable ticket because in push mode there is nothing to suppress.
  3. It needs no new configuration, no new seam, and no per-repo file — so it is the smaller change and the smaller thing to get wrong.

Also ruled: these tickets get their own state, not a silent drop. The ticket is right that under MERGE_AUTHORITY=human the awaiting-merge set is the most operator-actionable thing on the board — hiding it would trade one wrong number for a worse blind spot. Fixing READY must not cost visibility.

Why this is a two-way door: display-layer changes in the queue reader and the fleet summary, revertible by a later commit, provable by the existing Python tests for both. Not on the one-way-door list — read-only tracker calls, no writes, no credentials. If the inference turns out to be wrong for some landing mode, revert and take the policy-reading route.

Verification — confirmed at 9e2aaf6

The swarm applies three filters; the TUI mirrors two.

  • list-ready-tasks.sh gates the third on policy — if [ "$SWARM_POLICY_LANDING" = pr ], then fetches pulls?state=open and extracts issue numbers from head refs matching ^agent/issue-[0-9]+$ — and the comment notes that in push mode the block is skipped entirely and no /pulls call is made.
  • tui/data/tracker.py's queue_snapshot computes state from labels and, for ready-for-agent only, blocked/blocked_by from the dependency DAG. There is no /pulls call and no landing-mode awareness anywhere in it — its own docstring says it mirrors "the swarm's own filter", which is true of two filters out of three.
  • fleet-tui/repostats.py's summary then does if state == "ready-for-agent": s["blocked" if row["blocked"] else "ready"] += 1, so every unblocked ready-for-agent issue lands in READY regardless of an open agent PR, and total_ready sums those.

That is a complete account of READY=3 against ready=[]: #70/#63/#62 are open, ready-for-agent, and unblocked, and each has an open agent PR (#96/#88/#87) on a LANDING=pr MERGE_AUTHORITY=human repo. Both numbers were computed correctly; they answer different questions.

Agent Brief

Category: bug
Summary: The queue reader mirrors only two of the swarm's three ready-filters, so on pr-mode repos the READY count overstates by exactly the awaiting-human-merge set.

Current behavior: READY counts every unblocked ready-for-agent issue. On a repo whose swarm drops issues with an open agent/issue-<N> PR, the monitor shows work as swarm-ready that every run correctly verdicts no-ready-tasks. The overstated set is also the set most needing a human, so it is simultaneously wrong and invisible-as-such.

Desired behavior: A ready-for-agent issue with an open agent/issue-<N> PR gets its own distinct state — awaiting-merge — rather than being counted as ready or silently dropped. READY then equals what a swarm run will actually list. The fleet summary counts awaiting-merge in its own column, beside ready / blocked / working.

Key interfaces:

  • The queue-snapshot row shape — today {number, title, state, labels, priority, blocked, blocked_by}. Extend it so awaiting-merge is expressible. Prefer extending state (it is already the single field every display layer switches on) over adding a parallel boolean that each consumer must remember to check; whichever you choose, every existing consumer of the row must keep working — state is also read by the per-repo TUI's queue view and by the ask/engage surfaces.
  • The open-PR lookup — one pulls?state=open read per repo, mapping head refs matching ^agent/issue-<number>$ to issue numbers. Match list-ready-tasks.sh's pattern exactly (anchored, digits only) so the TUI and the swarm can never disagree about what an agent PR is; a ref like agent/issue-12-retry is not one.
  • The fleet summary's per-repo counters and its total_ready aggregate — awaiting-merge must leave ready and enter its own counter, so the two never double-count.
  • Cost and failure: this adds a tracker call per repo to a polling path. Make a failed or unavailable PR read degrade to today's behaviour (count as ready) rather than erroring the snapshot or blanking the board — a monitor that dies on a tracker blip is worse than one that briefly overstates.

Acceptance criteria:

  • A ready-for-agent, unblocked issue with an open agent/issue-<N> PR is reported as awaiting-merge, not ready.
  • The same issue with the PR closed or merged returns to ready.
  • Blocked-by-DAG still takes precedence as it does today; an issue that is both blocked and awaiting-merge is reported once, deterministically, with the rule stated in a comment.
  • A head ref that only resembles the pattern (agent/issue-12-retry, agent/issue-, agent/issue-abc) does not match.
  • Per-repo READY equals the count list-ready-tasks.sh would return for that repo under LANDING=pr.
  • The fleet summary shows awaiting-merge in its own column; ready and the awaiting-merge counter never double-count the same issue.
  • A failing pulls read degrades to today's counting and does not raise.
  • Tests updated in the same commit for both the queue reader and the fleet summary (repo rule).
  • Full offline suite green: for t in tests/*.sh onboarding/tests/*.sh; do case "$t" in *fakebin*|*fixtures*) continue;; esac; bash "$t" || echo "FAIL: $t"; done

Out of scope:

  • Reading a consumer's swarm-policy.sh from the TUI, or adding a landing-mode seam — ruled against above.
  • list-ready-tasks.sh and the swarm's own filtering. It is correct; only the mirror is wrong.
  • Acting on awaiting-merge tickets from the TUI (merging, nudging). Display only.
  • The agent/issue-<N> branch-naming convention itself.

Note on test coverage: #80 recorded that the fleet-tui pytest suite is uncovered in the offline sandbox (no pip / pytest / textual) and had to be validated with a standalone import harness. Expect the same here — say plainly in the close report which of the two halves you were able to execute and which you validated by other means. Do not report the fleet-tui half as tested if pytest could not run.

> *This was generated by AI during triage.* ## Triage: `ready-for-agent` + `bug` **Ruled by agent under ADR 0174 — veto anytime.** **Ruling:** take the **policy-free** option the ticket floats — infer awaiting-merge from the presence of an open `agent/issue-<N>` PR, rather than teaching the TUI to read the consumer's `LANDING` policy. Three reasons: 1. **It is the only option compatible with the topology.** `fleet-tui` is operator-side and watches repos across hosts through the tracker API; it has no checkout of a consumer to read `swarm-policy.sh` from, and reaching into a consumer's identity layer is exactly the seam violation #80 had to design around (the DRIVE column reads the *host* registry, never the consumer's `DRIVE_STATUS_FILE`). The per-repo `tui` could read the file locally, but `repostats.py` reuses `queue_snapshot`, so a policy-dependent implementation would fork the two callers' behaviour. 2. **The inference is sound in both landing modes.** In `pr` mode an open agent PR means landed-and-awaiting-merge — the swarm's own filter drops it. In `push` mode the swarm pushes to main and opens no agent PR at all, so an open `agent/issue-<N>` PR is anomalous by construction; surfacing it is *more* useful than hiding it, and it cannot suppress a genuinely workable ticket because in push mode there is nothing to suppress. 3. It needs no new configuration, no new seam, and no per-repo file — so it is the smaller change and the smaller thing to get wrong. **Also ruled:** these tickets get their **own state**, not a silent drop. The ticket is right that under `MERGE_AUTHORITY=human` the awaiting-merge set is the most operator-actionable thing on the board — hiding it would trade one wrong number for a worse blind spot. Fixing READY must not cost visibility. **Why this is a two-way door:** display-layer changes in the queue reader and the fleet summary, revertible by a later commit, provable by the existing Python tests for both. Not on the one-way-door list — read-only tracker calls, no writes, no credentials. If the inference turns out to be wrong for some landing mode, revert and take the policy-reading route. ### Verification — confirmed at `9e2aaf6` The swarm applies **three** filters; the TUI mirrors two. - `list-ready-tasks.sh` gates the third on policy — `if [ "$SWARM_POLICY_LANDING" = pr ]`, then fetches `pulls?state=open` and extracts issue numbers from head refs matching `^agent/issue-[0-9]+$` — and the comment notes that in push mode the block is skipped entirely and no `/pulls` call is made. - `tui/data/tracker.py`'s `queue_snapshot` computes `state` from labels and, for `ready-for-agent` only, `blocked`/`blocked_by` from the dependency DAG. There is no `/pulls` call and no landing-mode awareness anywhere in it — its own docstring says it mirrors "the swarm's own filter", which is true of two filters out of three. - `fleet-tui/repostats.py`'s `summary` then does `if state == "ready-for-agent": s["blocked" if row["blocked"] else "ready"] += 1`, so every unblocked ready-for-agent issue lands in READY regardless of an open agent PR, and `total_ready` sums those. That is a complete account of `READY=3` against `ready=[]`: #70/#63/#62 are open, `ready-for-agent`, and unblocked, and each has an open agent PR (#96/#88/#87) on a `LANDING=pr MERGE_AUTHORITY=human` repo. Both numbers were computed correctly; they answer different questions. ## Agent Brief **Category:** bug **Summary:** The queue reader mirrors only two of the swarm's three ready-filters, so on pr-mode repos the READY count overstates by exactly the awaiting-human-merge set. **Current behavior:** READY counts every unblocked `ready-for-agent` issue. On a repo whose swarm drops issues with an open `agent/issue-<N>` PR, the monitor shows work as swarm-ready that every run correctly verdicts `no-ready-tasks`. The overstated set is also the set most needing a human, so it is simultaneously wrong and invisible-as-such. **Desired behavior:** A `ready-for-agent` issue with an open `agent/issue-<N>` PR gets its own distinct state — awaiting-merge — rather than being counted as ready or silently dropped. READY then equals what a swarm run will actually list. The fleet summary counts awaiting-merge in its own column, beside ready / blocked / working. **Key interfaces:** - The queue-snapshot row shape — today `{number, title, state, labels, priority, blocked, blocked_by}`. Extend it so awaiting-merge is expressible. Prefer extending `state` (it is already the single field every display layer switches on) over adding a parallel boolean that each consumer must remember to check; whichever you choose, every existing consumer of the row must keep working — `state` is also read by the per-repo TUI's queue view and by the ask/engage surfaces. - The open-PR lookup — one `pulls?state=open` read per repo, mapping head refs matching `^agent/issue-<number>$` to issue numbers. Match `list-ready-tasks.sh`'s pattern exactly (anchored, digits only) so the TUI and the swarm can never disagree about what an agent PR is; a ref like `agent/issue-12-retry` is not one. - The fleet summary's per-repo counters and its `total_ready` aggregate — awaiting-merge must leave `ready` and enter its own counter, so the two never double-count. - Cost and failure: this adds a tracker call per repo to a polling path. Make a failed or unavailable PR read degrade to today's behaviour (count as ready) rather than erroring the snapshot or blanking the board — a monitor that dies on a tracker blip is worse than one that briefly overstates. **Acceptance criteria:** - [ ] A `ready-for-agent`, unblocked issue with an open `agent/issue-<N>` PR is reported as awaiting-merge, not ready. - [ ] The same issue with the PR **closed or merged** returns to ready. - [ ] Blocked-by-DAG still takes precedence as it does today; an issue that is both blocked and awaiting-merge is reported once, deterministically, with the rule stated in a comment. - [ ] A head ref that only resembles the pattern (`agent/issue-12-retry`, `agent/issue-`, `agent/issue-abc`) does not match. - [ ] Per-repo READY equals the count `list-ready-tasks.sh` would return for that repo under `LANDING=pr`. - [ ] The fleet summary shows awaiting-merge in its own column; `ready` and the awaiting-merge counter never double-count the same issue. - [ ] A failing `pulls` read degrades to today's counting and does not raise. - [ ] Tests updated in the same commit for both the queue reader and the fleet summary (repo rule). - [ ] Full offline suite green: `for t in tests/*.sh onboarding/tests/*.sh; do case "$t" in *fakebin*|*fixtures*) continue;; esac; bash "$t" || echo "FAIL: $t"; done` **Out of scope:** - Reading a consumer's `swarm-policy.sh` from the TUI, or adding a landing-mode seam — ruled against above. - `list-ready-tasks.sh` and the swarm's own filtering. It is correct; only the mirror is wrong. - Acting on awaiting-merge tickets from the TUI (merging, nudging). Display only. - The `agent/issue-<N>` branch-naming convention itself. **Note on test coverage:** #80 recorded that the `fleet-tui` pytest suite is **uncovered** in the offline sandbox (no pip / pytest / textual) and had to be validated with a standalone import harness. Expect the same here — say plainly in the close report which of the two halves you were able to execute and which you validated by other means. Do not report the fleet-tui half as tested if pytest could not run.
Author
Member

swarm-claim host=matou-dev-server-01 run=983
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=983 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

close-report for #86 — status success

⛔ close-report gates REFUSED this close — the following claims did not verify:

  • commit 1a909dfd50 is not reachable from origin/main (not landed)
  • changed_files: 'tui/data/tracker.py' is not in the diff of the claimed commits
  • changed_files: 'tui/tests/test_tracker.py' is not in the diff of the claimed commits
  • changed_files: 'fleet-tui/repostats.py' is not in the diff of the claimed commits
  • changed_files: 'fleet-tui/tests/test_repostats.py' is not in the diff of the claimed commits
  • changed_files: 'fleet-tui/app.py' is not in the diff of the claimed commits
  • changed_files: 'fleet-tui/tests/test_app.py' is not in the diff of the claimed commits
  • changed_files: 'STATUS.md' is not in the diff of the claimed commits
envelope
{
  "issue": 86,
  "status": "success",
  "commits": [
    "1a909dfd50deb83a5e7d2527ab94163da420f27a"
  ],
  "changed_files": [
    "tui/data/tracker.py",
    "tui/tests/test_tracker.py",
    "fleet-tui/repostats.py",
    "fleet-tui/tests/test_repostats.py",
    "fleet-tui/app.py",
    "fleet-tui/tests/test_app.py",
    "STATUS.md"
  ],
  "tests": [
    {
      "command": "for t in tests/*.sh onboarding/tests/*.sh; do case \"$t\" in *fakebin*|*fixtures*) continue;; esac; bash \"$t\" || echo FAIL; done",
      "exit_code": 0
    },
    {
      "command": "python3 standalone harness: tui/tests/test_tracker.py (16 tests)",
      "exit_code": 0
    },
    {
      "command": "python3 standalone harness: fleet-tui/tests/test_repostats.py (3 tests)",
      "exit_code": 0
    },
    {
      "command": "python3 ast-extract harness: fleet-tui/app.py repo_row assertions",
      "exit_code": 0
    }
  ],
  "criteria": {
    "unblocked ready-for-agent + open agent PR reported as awaiting-merge not ready": "tracker.py queue_snapshot sets state=awaiting-merge; test_queue_snapshot_marks_awaiting_merge_when_an_open_agent_pr_exists",
    "same issue with PR closed/merged returns to ready": "PR absent from pulls?state=open set -> state stays ready-for-agent; test_queue_snapshot_returns_to_ready_when_the_agent_pr_is_closed",
    "blocked-by-DAG takes precedence, reported once deterministically, rule in a comment": "queue_snapshot only checks awaiting-merge when not blocked_by; comment states the rule; test_queue_snapshot_dag_block_takes_precedence_over_awaiting_merge",
    "ref that only resembles the pattern does not match": "_AGENT_PR_REF ^agent/issue-([0-9]+)$ anchored digits-only; test_queue_snapshot_only_matches_the_anchored_agent_pr_pattern (agent/issue-12-retry, agent/issue-, agent/issue-abc, feature/agent/issue-12)",
    "per-repo READY equals list-ready-tasks.sh under LANDING=pr": "same anchored pattern + single-page pulls?state=open&limit=50 shape as list-ready-tasks.sh lines 172-174; awaiting-merge leaves ready",
    "fleet summary shows awaiting-merge in its own column, no double-count": "repostats.summary awaiting_merge counter + app.py AWAITING MERGE column; test_summary_counts_awaiting_merge_in_its_own_column asserts ready=1 awaiting_merge=2 total_ready=1",
    "failing pulls read degrades to today's counting and does not raise": "_awaiting_merge_numbers try/except -> empty set; test_queue_snapshot_degrades_to_ready_when_the_pulls_read_fails",
    "tests updated same commit for both queue reader and fleet summary": "test_tracker.py, test_repostats.py, test_app.py all in this commit",
    "full offline suite green": "72/72 bash test files PASS"
  },
  "summary": "Taught the TUI queue reader the swarm's third ready-filter — an unblocked ready-for-agent issue with an open agent/issue-<N> PR becomes awaiting-merge, counted in its own fleet column instead of READY.",
  "blockers": []
}
**close-report** for #86 — status `success` :no_entry: **close-report gates REFUSED this close** — the following claims did not verify: - commit 1a909dfd50deb83a5e7d2527ab94163da420f27a is not reachable from origin/main (not landed) - changed_files: 'tui/data/tracker.py' is not in the diff of the claimed commits - changed_files: 'tui/tests/test_tracker.py' is not in the diff of the claimed commits - changed_files: 'fleet-tui/repostats.py' is not in the diff of the claimed commits - changed_files: 'fleet-tui/tests/test_repostats.py' is not in the diff of the claimed commits - changed_files: 'fleet-tui/app.py' is not in the diff of the claimed commits - changed_files: 'fleet-tui/tests/test_app.py' is not in the diff of the claimed commits - changed_files: 'STATUS.md' is not in the diff of the claimed commits <details><summary>envelope</summary> ```json { "issue": 86, "status": "success", "commits": [ "1a909dfd50deb83a5e7d2527ab94163da420f27a" ], "changed_files": [ "tui/data/tracker.py", "tui/tests/test_tracker.py", "fleet-tui/repostats.py", "fleet-tui/tests/test_repostats.py", "fleet-tui/app.py", "fleet-tui/tests/test_app.py", "STATUS.md" ], "tests": [ { "command": "for t in tests/*.sh onboarding/tests/*.sh; do case \"$t\" in *fakebin*|*fixtures*) continue;; esac; bash \"$t\" || echo FAIL; done", "exit_code": 0 }, { "command": "python3 standalone harness: tui/tests/test_tracker.py (16 tests)", "exit_code": 0 }, { "command": "python3 standalone harness: fleet-tui/tests/test_repostats.py (3 tests)", "exit_code": 0 }, { "command": "python3 ast-extract harness: fleet-tui/app.py repo_row assertions", "exit_code": 0 } ], "criteria": { "unblocked ready-for-agent + open agent PR reported as awaiting-merge not ready": "tracker.py queue_snapshot sets state=awaiting-merge; test_queue_snapshot_marks_awaiting_merge_when_an_open_agent_pr_exists", "same issue with PR closed/merged returns to ready": "PR absent from pulls?state=open set -> state stays ready-for-agent; test_queue_snapshot_returns_to_ready_when_the_agent_pr_is_closed", "blocked-by-DAG takes precedence, reported once deterministically, rule in a comment": "queue_snapshot only checks awaiting-merge when not blocked_by; comment states the rule; test_queue_snapshot_dag_block_takes_precedence_over_awaiting_merge", "ref that only resembles the pattern does not match": "_AGENT_PR_REF ^agent/issue-([0-9]+)$ anchored digits-only; test_queue_snapshot_only_matches_the_anchored_agent_pr_pattern (agent/issue-12-retry, agent/issue-, agent/issue-abc, feature/agent/issue-12)", "per-repo READY equals list-ready-tasks.sh under LANDING=pr": "same anchored pattern + single-page pulls?state=open&limit=50 shape as list-ready-tasks.sh lines 172-174; awaiting-merge leaves ready", "fleet summary shows awaiting-merge in its own column, no double-count": "repostats.summary awaiting_merge counter + app.py AWAITING MERGE column; test_summary_counts_awaiting_merge_in_its_own_column asserts ready=1 awaiting_merge=2 total_ready=1", "failing pulls read degrades to today's counting and does not raise": "_awaiting_merge_numbers try/except -> empty set; test_queue_snapshot_degrades_to_ready_when_the_pulls_read_fails", "tests updated same commit for both queue reader and fleet summary": "test_tracker.py, test_repostats.py, test_app.py all in this commit", "full offline suite green": "72/72 bash test files PASS" }, "summary": "Taught the TUI queue reader the swarm's third ready-filter — an unblocked ready-for-agent issue with an open agent/issue-<N> PR becomes awaiting-merge, counted in its own fleet column instead of READY.", "blockers": [] } ``` </details>
Author
Member

close-report for #86 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 86,
  "status": "success",
  "commits": [
    "1a909dfd50deb83a5e7d2527ab94163da420f27a"
  ],
  "changed_files": [
    "tui/data/tracker.py",
    "tui/tests/test_tracker.py",
    "fleet-tui/repostats.py",
    "fleet-tui/tests/test_repostats.py",
    "fleet-tui/app.py",
    "fleet-tui/tests/test_app.py",
    "STATUS.md"
  ],
  "tests": [
    {
      "command": "for t in tests/*.sh onboarding/tests/*.sh; do case \"$t\" in *fakebin*|*fixtures*) continue;; esac; bash \"$t\" || echo FAIL; done",
      "exit_code": 0
    },
    {
      "command": "python3 standalone harness: tui/tests/test_tracker.py (16 tests)",
      "exit_code": 0
    },
    {
      "command": "python3 standalone harness: fleet-tui/tests/test_repostats.py (3 tests)",
      "exit_code": 0
    },
    {
      "command": "python3 ast-extract harness: fleet-tui/app.py repo_row assertions",
      "exit_code": 0
    }
  ],
  "criteria": {
    "unblocked ready-for-agent + open agent PR reported as awaiting-merge not ready": "tracker.py queue_snapshot sets state=awaiting-merge; test_queue_snapshot_marks_awaiting_merge_when_an_open_agent_pr_exists",
    "same issue with PR closed/merged returns to ready": "PR absent from pulls?state=open set -> state stays ready-for-agent; test_queue_snapshot_returns_to_ready_when_the_agent_pr_is_closed",
    "blocked-by-DAG takes precedence, reported once deterministically, rule in a comment": "queue_snapshot only checks awaiting-merge when not blocked_by; comment states the rule; test_queue_snapshot_dag_block_takes_precedence_over_awaiting_merge",
    "ref that only resembles the pattern does not match": "_AGENT_PR_REF ^agent/issue-([0-9]+)$ anchored digits-only; test_queue_snapshot_only_matches_the_anchored_agent_pr_pattern (agent/issue-12-retry, agent/issue-, agent/issue-abc, feature/agent/issue-12)",
    "per-repo READY equals list-ready-tasks.sh under LANDING=pr": "same anchored pattern + single-page pulls?state=open&limit=50 shape as list-ready-tasks.sh lines 172-174; awaiting-merge leaves ready",
    "fleet summary shows awaiting-merge in its own column, no double-count": "repostats.summary awaiting_merge counter + app.py AWAITING MERGE column; test_summary_counts_awaiting_merge_in_its_own_column asserts ready=1 awaiting_merge=2 total_ready=1",
    "failing pulls read degrades to today's counting and does not raise": "_awaiting_merge_numbers try/except -> empty set; test_queue_snapshot_degrades_to_ready_when_the_pulls_read_fails",
    "tests updated same commit for both queue reader and fleet summary": "test_tracker.py, test_repostats.py, test_app.py all in this commit",
    "full offline suite green": "72/72 bash test files PASS"
  },
  "summary": "Taught the TUI queue reader the swarm's third ready-filter — an unblocked ready-for-agent issue with an open agent/issue-<N> PR becomes awaiting-merge, counted in its own fleet column instead of READY.",
  "blockers": []
}
**close-report** for #86 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 86, "status": "success", "commits": [ "1a909dfd50deb83a5e7d2527ab94163da420f27a" ], "changed_files": [ "tui/data/tracker.py", "tui/tests/test_tracker.py", "fleet-tui/repostats.py", "fleet-tui/tests/test_repostats.py", "fleet-tui/app.py", "fleet-tui/tests/test_app.py", "STATUS.md" ], "tests": [ { "command": "for t in tests/*.sh onboarding/tests/*.sh; do case \"$t\" in *fakebin*|*fixtures*) continue;; esac; bash \"$t\" || echo FAIL; done", "exit_code": 0 }, { "command": "python3 standalone harness: tui/tests/test_tracker.py (16 tests)", "exit_code": 0 }, { "command": "python3 standalone harness: fleet-tui/tests/test_repostats.py (3 tests)", "exit_code": 0 }, { "command": "python3 ast-extract harness: fleet-tui/app.py repo_row assertions", "exit_code": 0 } ], "criteria": { "unblocked ready-for-agent + open agent PR reported as awaiting-merge not ready": "tracker.py queue_snapshot sets state=awaiting-merge; test_queue_snapshot_marks_awaiting_merge_when_an_open_agent_pr_exists", "same issue with PR closed/merged returns to ready": "PR absent from pulls?state=open set -> state stays ready-for-agent; test_queue_snapshot_returns_to_ready_when_the_agent_pr_is_closed", "blocked-by-DAG takes precedence, reported once deterministically, rule in a comment": "queue_snapshot only checks awaiting-merge when not blocked_by; comment states the rule; test_queue_snapshot_dag_block_takes_precedence_over_awaiting_merge", "ref that only resembles the pattern does not match": "_AGENT_PR_REF ^agent/issue-([0-9]+)$ anchored digits-only; test_queue_snapshot_only_matches_the_anchored_agent_pr_pattern (agent/issue-12-retry, agent/issue-, agent/issue-abc, feature/agent/issue-12)", "per-repo READY equals list-ready-tasks.sh under LANDING=pr": "same anchored pattern + single-page pulls?state=open&limit=50 shape as list-ready-tasks.sh lines 172-174; awaiting-merge leaves ready", "fleet summary shows awaiting-merge in its own column, no double-count": "repostats.summary awaiting_merge counter + app.py AWAITING MERGE column; test_summary_counts_awaiting_merge_in_its_own_column asserts ready=1 awaiting_merge=2 total_ready=1", "failing pulls read degrades to today's counting and does not raise": "_awaiting_merge_numbers try/except -> empty set; test_queue_snapshot_degrades_to_ready_when_the_pulls_read_fails", "tests updated same commit for both queue reader and fleet summary": "test_tracker.py, test_repostats.py, test_app.py all in this commit", "full offline suite green": "72/72 bash test files PASS" }, "summary": "Taught the TUI queue reader the swarm's third ready-filter — an unblocked ready-for-agent issue with an open agent/issue-<N> PR becomes awaiting-merge, counted in its own fleet column instead of READY.", "blockers": [] } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/dev-factory#86
No description provided.