#216 #265

Closed
matou-build-agent wants to merge 1 commit from agent/issue-216 into main

closes #216

closes #216
sandcastle: #238 — MVP Factory Board: collector done[] closed-in-24h read
All checks were successful
ci / static (pull_request) Successful in 2m24s
ci / test (pull_request) Successful in 5m24s
4fdb359eab
Add the board's Done column data as an additive done[] field on the v5
snapshot (no version bump — BT-1/#237 did 4→5).

Key decisions / files:
- fleet-tui/repostats.py: new fleet_done(api, repos, token, now) — the one
  genuinely new read. Per repo it paginates state=closed&since=<now-24h>
  the same page-until-short-page way tracker.fetch_open_issues walks open
  issues; `since` is only a server-side pre-filter (matches updated_at), so
  the authoritative 24 h cutoff is re-applied Python-side on each row's
  closed_at. Rows shaped {repo,number,title,closed_at}. Per-repo isolation,
  Done-column flavour: a failed/mid-page-fail read leaves that repo's done[]
  empty and emits NO error row (the Done column has no error lane), never
  blanking the snapshot.
- fleet-tui/collector.py: build_document composes it behind an injectable
  done_fn (default repostats.fleet_done), fed the document's own `now` so the
  cutoff anchors to generated_at; done is [] when no api/token (never absent).
- fleet-tui/floor/server/fixtures/snapshot.json: representative done[] (two
  rows closed within 24 h of generated_at).
- Tests red-first then green: tests/test_repostats.py (test_done_rows_closed_
  within_24h, test_done_excludes_older_than_24h, test_done_degrades_to_empty_
  on_repo_error, test_done_shape) + tests/test_collector.py (done rides the
  document / empty without a tracker / fed the document clock). Root
  tests/collector-test.sh mocks done_fn (stays offline) + asserts the column.
  Run: cd fleet-tui && .venv/bin/python -m pytest -q tests/test_collector.py
  tests/test_repostats.py -> 31 passed.

No board page / server / tui/** / writes. fleet-tui/** vendor-excluded — no
re-vendor. STATUS.md header line + docs/journal/2026-10-16-238.md. Advances

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Owner

Closed unmerged (Ben, 2026-10-17). Placeholder junk: this PR was opened by the #238 run against a stale agent/issue-<N> branch, so its head is the #238 commit 4fdb359e (collector done[]), not work for the ticket its body names — that ticket is already closed or tracked elsewhere. The #238 commit itself landed on main as 25fbe5c (rebased). Nothing to merge; see #253/#269 for the stale-placeholder cleanup.

Closed unmerged (Ben, 2026-10-17). Placeholder junk: this PR was opened by the #238 run against a stale `agent/issue-<N>` branch, so its head is the #238 commit `4fdb359e` (collector `done[]`), not work for the ticket its body names — that ticket is already closed or tracked elsewhere. The #238 commit itself landed on `main` as `25fbe5c` (rebased). Nothing to merge; see #253/#269 for the stale-placeholder cleanup.
ben closed this pull request 2026-10-17 18:59:27 +00:00
All checks were successful
ci / static (pull_request) Successful in 2m24s
ci / test (pull_request) Successful in 5m24s

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
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!265
No description provided.